* insdel.c (prepare_to_modify_buffer): Don't set
[bpt/emacs.git] / src / ChangeLog
1 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
2
3 * insdel.c (prepare_to_modify_buffer): Don't set
4 saved-region-selection if modification hooks are disabled.
5
6 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
7
8 * cmds.c (Fdelete_char): Doc fix.
9
10 2010-10-19 Ken Brown <kbrown@cornell.edu>
11
12 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
13
14 2010-10-19 Kenichi Handa <handa@m17n.org>
15
16 Fix incorrect font metrics when the same font is opened with
17 different pixelsizes.
18
19 * xftfont.c: Include composite.h.
20 (xftfont_shape): New function.
21 (syms_of_xftfont): Set xftfont_driver.shape.
22
23 2010-10-18 Julien Danjou <julien@danjou.info>
24
25 * frame.c (Fframe_pointer_visible_p):
26 Add `frame-pointer-visible-p' to get the pointer visibility.
27
28 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
29
30 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
31 non-"EAGAIN"-like error to signal to Emacs that the socket should
32 be closed.
33
34 2010-10-15 Eli Zaretskii <eliz@gnu.org>
35
36 * unexcoff.c (make_hdr): Fix prototype according to changes in
37 2010-10-03T13:59:56Z!dann@ics.uci.edu.
38
39 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
40
41 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
42
43 * Makefile.in (really-oldXMenu): Fix typo in variable name that
44 made building the X menu fail.
45 (really-oldXMenu): Fix my previous fix.
46
47 2010-10-14 Damyan Pepper <damyanp@gmail.com>
48
49 Fix handling of font properties on Windows (bug#6303).
50 * font.c (font_filter_properties): New function, refactored from
51 ftfont_filter_properties.
52 * font.h (font_filter_properties): Declare.
53 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
54 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
55 (w32font_filter_properties): New function.
56 (w32font_driver): Add w32font_filter_properties.
57
58 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
59
60 * font.c (Ffont_variation_glyphs):
61 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
62
63 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
64
65 * w32fns.c (w32_wnd_proc, file_dialog_callback):
66 * w32font.c (w32_generic_family):
67 * w32inevt.c (key_event):
68 * w32menu.c (fill_in_menu):
69 * w32proc.c (reader_thread, w32_executable_type, compare_env)
70 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
71 * w32term.c (w32_read_socket): Make static.
72
73 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
74
75 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
76 prototypes; all callers changed.
77
78 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
79
80 * makefile.w32-in (TLIB2): Rename from TLIBW32.
81 (OBJ2): New macro.
82 (WIN32OBJ, FONTOBJ): Remove.
83 (OBJ1): Redistribute object files with OBJ2.
84 (LIBS, $(TEMACS)): Use TLIB2.
85 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
86 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
87
88 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
89
90 * emacs.c (Vdynamic_library_alist)
91 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
92 Doc fix.
93
94 * lisp.h (Vdynamic_library_alist): Declare extern.
95
96 * image.c (Vimage_library_alist)
97 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
98 (lookup_image_type): Use Vdynamic_library_alist.
99 (Finit_image_library): Doc fix.
100
101 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
102
103 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
104 (lispdir): Remove trailing /, update all uses.
105
106 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
107
108 * nsterm.m (Qleft): Declare.
109 (ns_right_alternate_modifier): New variable
110 (NSRightAlternateKeyMask): New define.
111 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
112 ns_right_alternate_modifier isn't Qleft.
113 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
114 as emacs modifier for NSRightAlternateKeyMask.
115 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
116
117 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
118
119 * gnutls.c (emacs_gnutls_write): If we're trying to write before
120 gnutls is ready, return EAGAIN as the errno.
121
122 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
123
124 * vm-limit.c:
125 * unexhp9k800.c:
126 * unexelf.c:
127 * unexaix.c:
128 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
129
130 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
131 (PROFILING_LDFLAGS): Remove, not needed anymore.
132
133 * Makefile.in: Use $(...) everywhere instead of ${...}
134 (CRT_DIR): Move near potential user.
135 (START_FILE): Move near CRT_DIR, it might use it.
136
137 * sysdep.c (LPASS8): Remove, unused.
138 (emacs_ospeed): Change from being a global to a local in the only
139 user: init_baud_rate.
140
141 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
142
143 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
144 (emacs_gnutls_write): Remove the debuggin fsync call.
145 (emacs_gnutls_read): Return -1 if we got an error from
146 gnutls_read. This allows us to actually read lots of data from
147 the GnuTLS stream.
148 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
149 According to the documentation, this is correct, and it seems to
150 make things work.
151
152 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
153
154 * xterm.c (x_draw_relief_rect): Clear corner pixels.
155
156 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
157
158 * keyboard.c: Revert last change; it was not intended to be
159 synchronized with the trunk.
160
161 2010-10-08 Kenichi Handa <handa@m17n.org>
162
163 * coding.c (complement_process_encoding_system): Fix previous change.
164
165 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
166
167 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
168 (Fdbus_init_bus): ... here. (Bug#7113)
169
170 2010-10-08 Glenn Morris <rgm@gnu.org>
171
172 * buffer.c (before-change-functions, after-change-functions):
173 Three-year overdue doc fix following 2007-08-13 change.
174
175 2010-10-08 Kenichi Handa <handa@m17n.org>
176
177 * coding.c (coding_inherit_eol_type): If parent doesn't specify
178 eol-format, inherit from the system's default.
179 (complement_process_encoding_system): Make a new coding system
180 inherit the original eol-format.
181
182 2010-10-08 Kenichi Handa <handa@m17n.org>
183
184 * coding.c (complement_process_encoding_system): New function.
185
186 * coding.h (complement_process_encoding_system): Extern it.
187
188 * callproc.c (Fcall_process): Complement the coding system for
189 encoding arguments.
190 (Fcall_process_region): Complement the coding system for encoding
191 the input to the process.
192
193 * process.c (Fstart_process): Complement the coding system for
194 encoding arguments.
195 (send_process): Complement the coding system for encoding what
196 sent to the process.
197
198 2010-10-08 Kenichi Handa <handa@m17n.org>
199
200 * xfont.c (xfont_open): Fix setting of font->average_width from
201 :avgwidth property (Bug#7123).
202
203 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
204
205 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
206 is more portable.
207
208 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
209 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
210 has not defined SIGIO.
211
212 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
213
214 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
215 draw the outermost line using the black relief, for legibility.
216 Omit drawing the four corner pixels.
217
218 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
219
220 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
221 (read_key_sequence): Inline echo_prompt.
222 (echo_dash): Add a dash only if key is continued (Bug#7137).
223
224 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
225
226 Remove O_RDONLY, O_WRONLY definitions, not needed.
227 * unexcoff.c:
228 * lread.c:
229 * fileio.c:
230 * doc.c:
231 * callproc.c:
232 * alloc.c:
233 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
234
235 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
236
237 * gnutls.h (GNUTLS_LOG2): Convenience macro.
238
239 * gnutls.c: Add property list symbol holders.
240 (emacs_gnutls_handshake): Clarify how sockets are passed to
241 GnuTLS.
242 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
243 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
244 and keyfiles to be a list of file names. Default to "NORMAL" for
245 the priority string. Improve logging.
246
247 2010-10-03 Glenn Morris <rgm@gnu.org>
248
249 * fileio.c (Vdirectory_sep_char): Remove.
250
251 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
252
253 * termhooks.h: Remove #ifdef CONSP.
254
255 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
256
257 Include <fcntl.h> unconditionally.
258 * termcap.c:
259 * sysdep.c:
260 * lread.c:
261 * keyboard.c:
262 * filelock.c:
263 * fileio.c:
264 * doc.c:
265 * callproc.c:
266 * alloc.c: Remove include guards for <fcntl.h>, process.c already
267 does it.
268
269 * process.c: Do not include <sys/wait.h>, syswait.h does it.
270
271 * sysdep.c (flush_pending_output): Remove code, does not do
272 anything on any platform.
273
274 Remove unused code.
275 * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
276 select emulation, all systems support select.
277 (set_exclusive_use): Remove, the only user is in an #if 0 block.
278 * process.c (create_process): Remove #if 0 code.
279
280 Remove unused arguments for unexec.
281 The third one is never used, and the last two are always passed as zero.
282 * emacs.c (unexec): Add declaration.
283 (Fdump_emacs): Only pass the first two arguments to unexec.
284 Simplify #ifdef.
285 * unexw32.c (unexec):
286 * unexsol.c (unexec):
287 * unexhp9k800.c (unexec):
288 * unexcw.c (unexec): Remove the last 3 arguments, unused.
289 * unexelf.c (unexec): Remove the last 3 arguments, unused.
290 (find_section): Use const.
291 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
292 (unexec_error): Declare it NO_RETURN.
293 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
294 it as an argument, remove data_start and entry_address arguments, unused.
295 (unexec): Remove bss_start, data_start and
296 entry_address arguments.
297 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
298 it as an argument, remove data_start and entry_address arguments, unused.
299 (unexec): Remove bss_start, data_start and
300 entry_address arguments.
301
302 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
303
304 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
305
306 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
307 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
308 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
309 Fix typos in docstrings.
310 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
311 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
312
313 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
314
315 * keyboard.c (command_loop_1): Make sure the mark is really alive
316 before using it (Bug#7044).
317
318 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
319
320 * makefile.w32-in (tags): Rename target to full-tags.
321
322 2010-10-02 Eli Zaretskii <eliz@gnu.org>
323
324 * emacs.c (main): Remove !WINDOWSNT conditional.
325 (Fkill_emacs): Don't mention exemption on MS-Windows.
326
327 2010-10-02 Glenn Morris <rgm@gnu.org>
328
329 * character.c (Fchar_bytes): Remove obsolete function.
330 (syms_of_character): Remove Schar_bytes.
331
332 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
333 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
334 in batch-mode.
335 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
336 (kill-emacs-hook): Doc fix.
337
338 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
339
340 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
341 (parse_region): Reworked to take regions instead of strings, and
342 renamed to reflect that these are the libxml functions.
343
344 2010-10-01 Eli Zaretskii <eliz@gnu.org>
345
346 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
347 screen dimensions in tty->Wcm.
348
349 * xdisp.c (set_cursor_from_row): When the row is truncated and
350 point is outside the range of displayed characters, position the
351 cursor inside the scroll margin. (Bug#6349)
352
353 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
354
355 Do not include stdlib.h and string.h, config.h does it.
356 * xfont.c:
357 * w32term.c:
358 * w32reg.c:
359 * w32inevt.c:
360 * w32heap.c:
361 * w32console.c:
362 * w16select.c:
363 * unexsol.c:
364 * term.c:
365 * sound.c:
366 * scroll.c (m):
367 * gtkutil.c:
368 * font.c:
369 * filelock.c:
370 * fileio.c:
371 * dosfns.c:
372 * dbusbind.c:
373 * bidi.c:
374 * callproc.c:
375 * process.c:
376 * msdos.c:
377 * charset.c: Do not include stdlib.h and string.h, config.h does it.
378
379 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
380
381 * process.c: Move #include <pty.h> earlier.
382 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
383 (pty_name): Move definition later.
384
385 * nsselect.m (syms_of_nsselect):
386 * nsmenu.m (syms_of_nsmenu):
387 * nsfns.m (syms_of_nsfns):
388 * msdos.c (syms_of_msdos):
389
390 * image.c (syms_of_image):
391 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
392
393 * point.h: Remove, unused.
394
395 2010-10-01 Eli Zaretskii <eliz@gnu.org>
396
397 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
398 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
399 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
400
401 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
402
403 * xml.c (parse_string): Use const.
404
405 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
406
407 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
408 only override Vprint_level if it isn't already bound, and increase
409 the level to 8 to produce more useful backtraces for bug reports.
410
411 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
412
413 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
414
415 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
416
417 * w32console.c (vga_stdcolor_name): Remove unused function;
418 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
419
420 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
421
422 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
423 (Fgnutls_boot): Start the handshake.
424 (emacs_gnutls_read): Perform the handshake from the reader loop.
425 (Fgnutls_boot): Remove some debugging messages.
426 Change indentation throughout to use the Emacs style.
427 (emacs_gnutls_handshake): Cast the fds to something that's
428 possibly the expected length.
429 (emacs_gnutls_write): Return -1 if we try to write before handshake.
430
431 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
432
433 * process.c (make_process): Set the gnutls_p field to zero by
434 default.
435 (read_process_output): Always call the gnutls_read function if the
436 stream is a gnutls stream.
437 (send_process): Ditto for writes.
438
439 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
440 or write anything until the state is GNUTLS_STAGE_READY.
441 (Fgnutls_boot): Mark the stream as being a gnutls stream.
442
443 2010-09-29 Eli Zaretskii <eliz@gnu.org>
444
445 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
446 NEUTRAL_DIR.
447 (handle_invisible_prop, iterate_out_of_display_property)
448 (next_element_from_buffer): If bidi_it.first_elt is set, call
449 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
450 (Bug#7128)
451
452 * print.c (print_object): Fix format string and argument types for
453 printing a Lisp_Misc_Marker.
454
455 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
456 (load_overlay_strings, get_overlay_strings_1)
457 (get_overlay_strings, forward_to_next_line_start)
458 (back_to_previous_visible_line_start, reseat, reseat_to_string)
459 (get_next_display_element, next_element_from_string)
460 (next_element_from_c_string, next_element_from_buffer)
461 (move_it_vertically_backward, move_it_by_lines, add_to_log)
462 (message_dolog, message_log_check_duplicate, message2_nolog)
463 (message3, message3_nolog, vmessage, set_message, set_message_1)
464 (hscroll_window_tree, text_outside_line_unchanged_p)
465 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
466 (find_last_unchanged_at_beg_row)
467 (find_first_unchanged_at_end_row, row_containing_pos)
468 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
469 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
470 EMACS_INT for buffer and string positions.
471
472 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
473 (row_containing_pos): Adjust prototype.
474
475 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
476 (message2_nolog, set_message): Adjust prototypes.
477
478 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
479
480 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
481 (Fgnutls_boot): Use SDATA.
482 (Fgnutls_handshake): Remove unused var `max_log_level'.
483
484 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
485
486 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
487 (Bug#7113)
488
489 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
490
491 * xgselect.c (xg_select): Clear file descriptors not set from
492 rfds and wfds.
493
494 * process.c (wait_reading_process_output): Add missing FD_CLR
495 for write_mask (must mirror connect_wait_mask).
496
497 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
498
499 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
500 prefix.
501 (Fgnutls_boot): Use changed process members. Use log level with a
502 function parameter to set it. Bring back Emacs-level debugging
503 messages at log level 1 and 2.
504
505 * process.c (make_process): Initialize gnutls_log_level.
506
507 * process.h: Add gnutls_log_level and rename x509_cred and
508 anon_cred to have the gnutls_ prefix for consistency.
509
510 * gnutls.h (GNUTLS_LOG): Add convenience macro.
511
512 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
513
514 * w32.c (g_b_init_get_sid_identifier_authority)
515 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
516 Remove, not used.
517 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
518 (init_winsock): Remove useless assignment.
519 (open_process_token, get_token_information, lookup_account_sid)
520 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
521 (get_security_descriptor_owner, get_security_descriptor_group)
522 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
523 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
524 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
525 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
526 (unc_volume_file_attributes, convert_from_time_t)
527 (create_toolhelp32_snapshot, process32_first, process32_next)
528 (open_thread_token, impersonate_self, revert_to_self)
529 (get_process_memory_info, get_process_working_set_size)
530 (global_memory_status, global_memory_status_ex, socket_to_fd)
531 (shutdown_handler): Make static.
532
533 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
534
535 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
536 (xd_pending_messages): Functions removed.
537 (xd_read_queued_messages): Add parameters fd, *data, for_read in
538 order to be compatible with add_read_fd. Determine bus from data,
539 and call xd_read_message just for this bus.
540 (xd_add_watch): Use xd_read_queued_messages as callback function.
541 Add data.
542
543 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
544
545 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
546
547 * gnutls.c (gnutls_log_function): Added more debugging.
548 (emacs_gnutls_read): Don't infloop while reading.
549
550 2010-09-27 Kenichi Handa <handa@m17n.org>
551
552 These changes are to remove restriction on the number of glyphs in
553 one composition.
554
555 * dispextern.h (struct glyph): Change the member "slice" to union.
556 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
557 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
558
559 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
560 instead of glyph->slice.
561 (marginal_area_string): Likewise.
562
563 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
564 glyph->u.cmp.
565 (append_composite_glyph): Likewise.
566
567 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
568 glyph->u.cmp.
569 (fill_gstring_glyph_string, x_get_glyph_overhangs)
570 (append_composite_glyph): Likewise.
571 (fill_image_glyph_string): Use glyph->slice.img instead of
572 glyph->slice.
573 (append_glyph, produce_image_glyph, append_stretch_glyph)
574 (note_mouse_highlight): Likewise.
575
576 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
577
578 * process.c (add_keyboard_wait_descriptor)
579 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
580 (wait_reading_process_output): Don't pass write_mask to select
581 if SELECT_CANT_DO_WRITE_MASK is defined.
582 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
583
584 * process.h (add_read_fd, delete_read_fd, add_write_fd)
585 (delete_write_fd): Declare.
586
587 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
588 (write_mask): New variable.
589 (max_input_desc): Renamed from max_keyboard_desc.
590 (fd_callback_info): New variable.
591 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
592 New functions.
593 (Fmake_network_process): FD_SET write_mask.
594 (deactivate_process): FD_CLR write_mask.
595 (wait_reading_process_output): Connecting renamed to Writeok.
596 check_connect removed. check_write is new. Remove references to gpm.
597 Use Writeok/check_write unconditionally (i.e. no #ifdef
598 NON_BLOCKING_CONNECT) instead of Connecting.
599 Loop over file descriptors and call callbacks in fd_callback_info
600 if file descriptor is ready for I/O.
601 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
602 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
603 (keyboard_bit_set): Use max_input_desc.
604 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
605 Remove #ifdef subprocesses. Use max_input_desc.
606 (init_process): Initialize write_mask and fd_callback_info.
607
608 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
609
610 * dbusbind.c: Include process.h.
611 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
612 (xd_read_message_1): New functions.
613 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
614 Handle watch for both read and write.
615 (Fdbus_init_bus): Also register xd_toggle_watch.
616 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
617 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
618 to dbus_connection_flush.
619 (xd_read_message): Move most of the code to xd_read_message_1.
620 Call xd_read_message_1 until status is COMPLETE.
621
622 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
623
624 * term.c: Do not include sys/ioctl.h, not needed.
625 (init_tty): Reorder code to reduce the number of #ifdefs.
626 No code changes.
627
628 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
629
630 * process.h: Set up GnuTLS support.
631
632 * process.c (make_process, Fstart_process)
633 (read_process_output, send_process): Set up GnuTLS support for
634 process input/output file descriptors.
635
636 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
637
638 * gnutls.c: The source code for GnuTLS support in Emacs.
639
640 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
641
642 * config.in: Set up GnuTLS support.
643
644 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
645 (obj, LIBES): Set up GnuTLS support.
646
647 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
648
649 * w32.c (get_emacs_configuration_options): Fix previous change.
650
651 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
652
653 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
654 alive before using it (Bug#6977).
655
656 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
657
658 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
659
660 * dispextern.h: EMACS_INT/int fixup.
661
662 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
663 fixup.
664
665 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
666
667 2010-09-25 Eli Zaretskii <eliz@gnu.org>
668
669 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
670 (Fselect_window, window_scroll_pixel_based)
671 (window_scroll_line_based, Frecenter, Fset_window_configuration):
672 Use EMACS_INT for buffer positions.
673
674 * textprop.c (validate_interval_range, interval_of)
675 (property_change_between_p, Fadd_text_properties)
676 (set_text_properties_1, Fremove_text_properties)
677 (Fremove_list_of_text_properties, Ftext_property_any)
678 (Ftext_property_not_all, copy_text_properties)
679 (text_property_list, extend_property_ranges)
680 (verify_interval_modification): Use EMACS_INT for buffer
681 positions.
682
683 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
684 for buffer positions.
685
686 * process.c (read_process_output, send_process)
687 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
688 and string positions and size.
689
690 * print.c (print_object, print_string, strout): Use EMACS_INT for
691 string indices.
692
693 * minibuf.c (string_to_object): Use EMACS_INT for string position
694 and size.
695
696 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
697
698 * lread.c <read_from_string_index, read_from_string_index_byte>
699 <read_from_string_limit, readchar_count>: Define EMACS_INT.
700 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
701 buffer positions and string length.
702
703 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
704 EMACS_INT.
705 (echo_truncate, adjust_point_for_property, read_char)
706 (gen_help_event, make_lispy_event, modify_event_symbol)
707 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
708 for buffer positions and string length.
709
710 * keyboard.h (gen_help_event): Adjust prototype.
711
712 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
713
714 * commands.h <last_point_position>: Declare EMACS_INT.
715
716 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
717 (truncate_echo_area): Accept EMACS_INT argument.
718
719 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
720
721 * lisp.h (truncate_echo_area): Adjust prototype.
722
723 * composite.c (composition_adjust_point): Return EMACS_INT.
724
725 * composite.h (composition_adjust_point): Adjust prototype.
726
727 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
728
729 * process.c (Fmake_network_process): When arg :host is 'local,
730 use address 127.0.0.1, not name "localhost". (Bug#6781)
731
732 2010-09-24 Eli Zaretskii <eliz@gnu.org>
733
734 * indent.c (Fcurrent_indentation, indented_beyond_p)
735 (compute_motion): Use EMACS_INT for buffer position variables.
736
737 * lisp.h (indented_beyond_p): Adjust prototype.
738
739 * buffer.c (overlay_strings): Return EMACS_INT.
740
741 * buffer.h (overlay_strings): Adjust prototype.
742
743 * region-cache.c (pp_cache): Adjust format to arguments.
744
745 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
746 (call_debugger): Use EMACS_INT for specpdl_size related variables.
747 (verror): Use EMACS_INT for size of allocated buffer.
748
749 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
750 positions.
751
752 * xdisp.c (redisplay_internal, try_window_id)
753 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
754 EMACS_INT for buffer positions.
755
756 * dispextern.h (set_cursor_from_row): Adjust prototype.
757
758 * dispnew.c (increment_matrix_positions)
759 (increment_row_positions, copy_glyph_row_contents)
760 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
761 positions.
762
763 * dispextern.h (mode_line_string, marginal_area_string)
764 (increment_matrix_positions, increment_row_positions): Adjust
765 prototypes.
766
767 * data.c (Faref, Faset): Use EMACS_INT for string length and
768 positions.
769
770 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
771 characters to insert.
772
773 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
774 position and size.
775
776 * syntax.c (scan_words, update_syntax_table)
777 (prev_char_comend_first, back_comment, skip_chars)
778 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
779 EMACS_INT for buffer and string positions.
780
781 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
782
783 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
784 positions.
785
786 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
787
788 * scroll.c (calculate_scrolling, line_ins_del)
789 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
790 conversion.
791
792 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
793 (region_cache_backward, region_cache_forward)
794 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
795 conversion.
796
797 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
798
799 * eval.c (verror): Fix EMACS_INT/int conversion.
800
801 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
802 (print_preprocess, print_check_string_charset_prop)
803 (print_object): Fix EMACS_INT/int conversion.
804
805 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
806
807 2010-09-24 Eli Zaretskii <eliz@gnu.org>
808
809 * callproc.c (Fcall_process): Use EMACS_INT for count of
810 characters read from the subprocess.
811
812 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
813 positions.
814 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
815 positions.
816
817 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
818 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
819 length.
820 (advance_to_char_boundary, Fset_buffer_multibyte)
821 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
822 (overlay_touches_p, record_overlay_string, overlay_strings)
823 (recenter_overlay_lists, fix_start_end_in_overlays)
824 (modify_overlay, Fmove_overlay, report_overlay_modification)
825 (evaporate_overlays): Use EMACS_INT for buffer positions.
826
827 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
828 prototypes.
829
830 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
831 positions.
832
833 * fns.c (Fcompare_strings, Fstring_lessp, concat)
834 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
835 (Fsubstring_no_properties, substring_both, Ffillarray)
836 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
837 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
838 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
839 (Fmd5): Use EMACS_INT for buffer and string positions and length
840 variables and arguments.
841
842 * lisp.h (substring_both): Adjust prototype.
843
844 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
845
846 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
847 * w32fns.c (clipboard_sequence_fn): Don't declare.
848 (globals_of_w32fns): Don't initialize it.
849
850 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
851
852 * syntax.c (back_comment): Detect the case where a 1-char comment
853 starter is also the 2nd char of a 2-char comment ender.
854
855 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
856
857 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
858
859 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
860
861 * eval.c (verror): EMACS_INT/int cleanup.
862
863 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
864 unwind_protect more than 2GB worth of functions.
865
866 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
867
868 * lisp.h: Have oblookup take EMACS_INT to allow interning big
869 string and avoid compiler warnings.
870 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
871 all users.
872
873 * lread.c (oblookup): EMACS_INT/int cleanup.
874
875 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
876
877 2010-09-23 Eli Zaretskii <eliz@gnu.org>
878
879 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
880
881 * lisp.h (clip_to_bounds): Adjust prototype.
882
883 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
884
885 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
886
887 * lisp.h: doprnt.c EMACS_INT/int cleanup.
888
889 * doprnt.c (doprnt): EMACS_INT/int cleanup.
890
891 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
892 cleanup.
893
894 * lisp.h: Change the definition of all marker.c functions that
895 take and return buffer stuff to be EMACS_INT instead of int.
896
897 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
898 (buf_charpos_to_bytepos, bytepos_to_charpos)
899 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
900 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
901 for all buffer positions.
902
903 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
904
905 * intervals.c (traverse_intervals, rotate_right, rotate_left)
906 (split_interval_right, find_interval, next_interval)
907 (delete_node, delete_interval, interval_deletion_adjustment)
908 (adjust_intervals_for_deletion, merge_interval_right)
909 (merge_interval_left, graft_intervals_into_buffer)
910 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
911
912 * intervals.h (traverse_intervals): Update prototype.
913
914 2010-09-23 Eli Zaretskii <eliz@gnu.org>
915
916 * indent.c (compute_motion): Use EMACS_INT for arguments to
917 region_cache_forward.
918
919 * region-cache.c (struct boundary, struct region_cache): Use
920 EMACS_INT for positions.
921 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
922 (delete_cache_boundaries, set_cache_region)
923 (invalidate_region_cache, know_region_cache)
924 (region_cache_forward, region_cache_backward, pp_cache): Use
925 EMACS_INT for buffer positions.
926
927 * region-cache.h (know_region_cache, invalidate_region_cache)
928 (region_cache_forward, region_cache_backward): Adjust prototypes.
929
930 * search.c (string_match_1, fast_c_string_match_ignore_case)
931 (looking_at_1, scan_buffer, scan_newline)
932 (find_next_newline_no_quit, find_before_next_newline)
933 (search_command, trivial_regexp_p, search_buffer, simple_search)
934 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
935 and string positions and length.
936
937 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
938 (find_before_next_newline): Adjust prototypes.
939
940 * editfns.c (transpose_markers, update_buffer_properties)
941 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
942 (get_pos_property, Fconstrain_to_field)
943 (Fline_beginning_position, Fline_end_position, Fprevious_char)
944 (Fchar_after, Fchar_before, Finsert_char)
945 (Finsert_buffer_substring, Fcompare_buffer_substrings)
946 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
947 EMACS_INT for buffer and string position variables.
948 (Finsert_char): Protect against too large insertions.
949
950 * lisp.h (clip_to_bounds): Adjust prototype.
951
952 * intervals.c (traverse_intervals, rotate_right, rotate_left)
953 (balance_an_interval, split_interval_right, split_interval_left)
954 (find_interval, next_interval, update_interval)
955 (adjust_intervals_for_insertion, delete_node, delete_interval)
956 (interval_deletion_adjustment, adjust_intervals_for_deletion)
957 (offset_intervals, merge_interval_right, merge_interval_left)
958 (graft_intervals_into_buffer, adjust_for_invis_intang)
959 (move_if_not_intangible, get_local_map, copy_intervals)
960 (copy_intervals_to_string, compare_string_intervals)
961 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
962 and for interval tree size.
963
964 * intervals.h (traverse_intervals, split_interval_right)
965 (split_interval_left, find_interval, offset_intervals)
966 (graft_intervals_into_buffer, copy_intervals)
967 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
968 (update_interval): Adjust prototypes.
969
970 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
971 Use EMACS_INT for buffer position variables and arguments.
972
973 * composite.c (get_composition_id, find_composition)
974 (run_composition_function, compose_text)
975 (composition_gstring_width, autocmp_chars)
976 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
977 for buffer positions and string length variables and arguments.
978
979 * composite.h (get_composition_id, find_composition, compose_text)
980 (composition_gstring_width): Adjust prototypes.
981
982 * editfns.c (Fformat): Use EMACS_INT for string size variables.
983
984 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
985 EMACS_INT for string positions.
986
987 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
988 position arguments.
989
990 * intervals.h (get_property_and_range): Adjust prototype.
991
992 * character.c (parse_str_as_multibyte, str_as_multibyte)
993 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
994 (string_count_byte8, string_escape_byte8, c_string_width)
995 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
996 EMACS_INT for string length variables and arguments.
997
998 * character.h (parse_str_as_multibyte, str_as_multibyte)
999 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
1000 (c_string_width, strwidth, lisp_string_width): Adjust
1001 prototypes.
1002
1003 * font.c (font_intern_prop): Use EMACS_INT for string length
1004 variables.
1005
1006 * font.c (font_intern_prop): Use EMACS_INT for string length
1007 variables.
1008
1009 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
1010 variables.
1011
1012 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
1013 (Fmake_string): Protect against too large strings.
1014 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
1015 (live_misc_p): Use ptrdiff_t instead of int for pointer
1016 differences.
1017 (string_bytes, check_sblock, check_string_free_list)
1018 (allocate_string_data, compact_small_strings, Fmake_string)
1019 (Fmake_bool_vector, make_string, make_unibyte_string)
1020 (make_multibyte_string, make_string_from_bytes)
1021 (make_specified_string_string, Fmake_list, Fmake_vector): Use
1022 EMACS_INT for string length variables and arguments.
1023 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
1024 (Fpurecopy): Use EMACS_INT for string size.
1025 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
1026 for vector size.
1027
1028 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
1029 (make_string_from_bytes, make_specified_string_string)
1030 (make_pure_string, string_bytes, check_point_in_composition):
1031 Adjust prototypes.
1032
1033 2010-09-22 Eli Zaretskii <eliz@gnu.org>
1034
1035 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
1036 (check_translation): Use EMACS_INT for buffer positions and
1037 length.
1038
1039 * undo.c (record_marker_adjustment, record_delete)
1040 (record_change, record_point, record_insert)
1041 (record_property_change, Fprimitive_undo): Use EMACS_INT for
1042 buffer positions.
1043
1044 * lisp.h (record_marker_adjustment, record_delete)
1045 (record_change, record_point, record_insert)
1046 (record_property_change, Fprimitive_undo): Adjust prototypes.
1047
1048 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
1049 Eli Zaretskii <eliz@gnu.org>
1050
1051 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
1052
1053 2010-09-22 Eli Zaretskii <eliz@gnu.org>
1054
1055 * minibuf.c (Fminibuffer_contents)
1056 (Fminibuffer_contents_no_properties)
1057 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
1058 positions.
1059
1060 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
1061 mark.
1062
1063 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
1064 (allocate_string_data): Accept EMACS_INT for string length.
1065
1066 * editfns.c (Ffield_string, Ffield_string_no_properties)
1067 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
1068 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
1069 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
1070 (Ffield_end): Use EMACS_INT for buffer positions.
1071
1072 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
1073 point with mark.
1074
1075 * lisp.h (allocate_string_data, make_uninit_string)
1076 (make_uninit_multibyte_string, make_buffer_string)
1077 (make_buffer_string_both): Adjust prototypes.
1078
1079 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
1080
1081 * xml.c: Switch to GNU indentation.
1082 (make_dom): Change parse tree format to match xml.el.
1083 (Fxml_parse_html_string_internal): Rename from html-parse-string.
1084 (Fxml_parse_string_internal): Rename from xml-parse-string.
1085
1086 2010-09-22 Kenichi Handa <handa@m17n.org>
1087
1088 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
1089 only if we are not at a composition.
1090 (set_iterator_to_next): Give it->end_charpos to
1091 composition_compute_stop_pos.
1092 (set_iterator_to_next, next_element_from_buffer): Likewise.
1093
1094 * dispnew.c (buffer_posn_from_coords): Fix position when the
1095 current display element is a grapheme cluster in bidi-reordered
1096 region.
1097
1098 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
1099
1100 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
1101 the regions may overlap.
1102
1103 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
1104
1105 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
1106
1107 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
1108
1109 * emacs.c: Do not include sys/ioctl.h, not needed.
1110
1111 * doprnt.c: Do not include stdlib.h, config.h does it.
1112 Move #include before macro definition.
1113
1114 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
1115
1116 * Makefile.in (temacs): Link using $(CC) not $(LD).
1117 (LD_FIRSTFLAG): Define using autoconf.
1118 (LD): Remove.
1119
1120 Remove HAVE_TERMIOS definitions.
1121 * s/usg5-4-common.h (HAVE_TERMIOS):
1122 * s/template.h (HAVE_TERMIOS):
1123 * s/gnu-linux.h (HAVE_TERMIOS):
1124 * s/darwin.h (HAVE_TERMIOS):
1125 * s/cygwin.h (HAVE_TERMIOS):
1126 * s/bsd-common.h (HAVE_TERMIOS):
1127 * s/aix4-2.h (HAVE_TERMIOS):
1128 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
1129 defined on all non-MS platforms.
1130 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
1131
1132 * xterm.c (xt_action_hook): Use const.
1133
1134 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
1135
1136 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
1137 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1138 (gethostname) [!HAVE_SOCKETS]: Remove.
1139 (SOCK_REPLACE_HANDLE): Remove macro.
1140 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
1141 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
1142 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1143 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
1144
1145 2010-09-18 Eli Zaretskii <eliz@gnu.org>
1146
1147 * deps.mk (xml.o): Add dependencies.
1148
1149 * xdisp.c (Fcurrent_bidi_paragraph_direction):
1150 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
1151
1152 * bidi.c (bidi_paragraph_init): Accept an additional argument
1153 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
1154 search back until a paragraph with a strong directional character
1155 is found, and use that to determine paragraph's base direction.
1156
1157 * dispextern.h (bidi_paragraph_init): Update prototype.
1158
1159 2010-09-17 Eli Zaretskii <eliz@gnu.org>
1160
1161 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1162 of w32api >= 3.15. (Bug#6989)
1163
1164 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
1165
1166 * process.c (wait_reading_process_output): Don't message about
1167 accept-process-output unless the time limit really is zero.
1168
1169 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1170
1171 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
1172 int/Lisp_Object mixup).
1173
1174 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1175
1176 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
1177 not HELP.
1178
1179 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
1180
1181 * frame.c (Ftool_bar_pixel_width): New function to expose tool
1182 bar's pixel width to Lisp (Bug#7048).
1183
1184 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
1185
1186 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1187
1188 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1189
1190 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
1191 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
1192
1193 2010-09-17 Kenichi Handa <handa@m17n.org>
1194
1195 * ftfont.c (ftfont_check_otf): Fix previous change.
1196
1197 2010-09-14 Kenichi Handa <handa@m17n.org>
1198
1199 * ftfont.c (ftfont_check_otf): Fix the case of checking just
1200 existence of GSUB or GPOS.
1201
1202 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
1203
1204 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1205
1206 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
1207
1208 * xml.c (parse_buffer): Renamed to parse_string(), since that's
1209 what it does.
1210 (parse_string): Return nil when the document can't be parsed.
1211
1212 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
1213
1214 * xterm.c (get_current_vm_state): New function.
1215 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
1216 want_fullscreen so set_wm_state calls are few (Bug#7013).
1217 (x_handle_net_wm_state): Move code to get_current_vm_state and
1218 call that function.
1219
1220 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
1221
1222 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
1223
1224 2010-09-14 Kenichi Handa <handa@m17n.org>
1225
1226 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
1227 we may use designation or locking-shift.
1228
1229 2010-09-14 Kenichi Handa <handa@m17n.org>
1230
1231 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
1232 sequence when the source is multibyte.
1233
1234 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
1235
1236 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
1237 Don't make first argument optional. Doc fix.
1238
1239 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
1240
1241 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
1242 parameters for the doc string.
1243
1244 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
1245
1246 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
1247
1248 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1249
1250 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
1251 (syms_of_fns): Don't defsubr Sy_or_n_p.
1252 * lisp.h: Don't declare Fy_or_n_p.
1253 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
1254
1255 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1256
1257 * xml.c (Fxml_parse_buffer): New function to parse XML files.
1258
1259 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1260
1261 * xml.c: New file.
1262 (Fhtml_parse_buffer): New function to interface to the libxml2
1263 html parsing function.
1264
1265 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
1266
1267 * biditype.h: Regenerate.
1268
1269 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1270
1271 * nsimage.m (ns_load_image): Check argument types.
1272
1273 * image.c: Remove all uses of gcpro.
1274 (xpm_load): Check all lisp types.
1275 (pbm_load): Likewise.
1276 (png_load): Likewise.
1277 (jpeg_load): Likewise.
1278 (tiff_load): Likewise.
1279 (gif_load): Likewise.
1280 (imagemagick_load_image): Likewise.
1281 (imagemagick_load): Likewise.
1282 (svg_load): Likewise.
1283 (gs_load): Likewise.
1284
1285 2010-09-04 Eli Zaretskii <eliz@gnu.org>
1286
1287 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
1288 try to reorder grapheme clusters, since LGSTRING should always
1289 hold them in the logical order.
1290 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1291 return glyph codes in the logical order.
1292
1293 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1294
1295 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
1296 (imagemagick_load_image): Fix type mismatch.
1297 (Fimagemagick_types): Likewise. Doc fix.
1298
1299 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
1300
1301 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
1302
1303 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
1304
1305 * xselect.c: Remove declaration of cut-buffer objects and functions.
1306 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
1307 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
1308 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
1309 (Fx_rotate_cut_buffers_internal): Remove.
1310 (syms_of_xselect): Remove defsubr of above.
1311 Remove intern of QCUT_BUFFERn.
1312
1313 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1314
1315 * cmds.c (Vblink_paren_function): Remove.
1316 (internal_self_insert): Make it insert N chars at a time.
1317 Don't call blink-paren-function.
1318 (Fself_insert_command): Adjust accordingly.
1319 (syms_of_cmds): Don't declare blink-paren-function.
1320
1321 2010-08-31 Kenichi Handa <handa@m17n.org>
1322
1323 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1324 characters.
1325
1326 * term.c (encode_terminal_code): Fix the previous change.
1327 (produce_glyphs): Don't set it->char_to_display here.
1328 Don't handle unibyte-display-via-language-environment here.
1329 (produce_special_glyphs): Set temp_it.char_to_display before
1330 calling produce_glyphs.
1331
1332 * xdisp.c (get_next_display_element): Set it->char_to_display
1333 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1334 characters.
1335 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1336 calling PRODUCE_GLYPHS.
1337 (append_space_for_newline): Save and store it->char_to_display.
1338 Set it->char_to_display before calling PRODUCE_GLYPHS.
1339 (extend_face_to_end_of_line): Set it->char_to_display before
1340 calling PRODUCE_GLYPHS.
1341 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1342 character to its byte value.
1343 (get_char_glyph_code): New function.
1344 (produce_stretch_glyph): Set it2.char_to_display too before
1345 calling x_produce_glyphs.
1346 (x_produce_glyphs): Simplify by using the same code for ASCII and
1347 non-ASCII characters. Don't set it->char_to_display here.
1348 Don't handle unibyte-display-via-language-environment here. For a
1349 character of no glyph, use font->space_width instead of FONT_WIDTH.
1350
1351 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1352
1353 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1354
1355 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
1356
1357 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1358
1359 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1360
1361 * marker.c (Fcopy_marker): Make the first arg optional.
1362
1363 2010-08-30 Kenichi Handa <handa@m17n.org>
1364
1365 * composite.c (composition_update_it): Fix computing of
1366 cmp_it->width.
1367
1368 2010-08-29 Kenichi Handa <handa@m17n.org>
1369
1370 * term.c (encode_terminal_code): Encode byte chars to the
1371 corresponding bytes.
1372
1373 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1374
1375 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1376
1377 2010-08-26 Kenichi Handa <handa@m17n.org>
1378
1379 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1380 on calling composition_compute_stop_pos.
1381
1382 2010-08-25 Kenichi Handa <handa@m17n.org>
1383
1384 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1385 :otf.
1386
1387 * composite.c (composition_compute_stop_pos): Don't break
1388 composition at PT.
1389 (composition_reseat_it): Likewise. Fix calculation of character
1390 position starting a composition.
1391 (Fcomposition_get_gstring): Don't limit the number of components
1392 for automatic composition.
1393
1394 2010-08-25 Kenichi Handa <handa@m17n.org>
1395
1396 * composite.c (composition_compute_stop_pos): In forward search,
1397 pay attention to the possibility that some character after ENDPOS
1398 will be composed with charactrs before ENDPOS.
1399
1400 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
1401
1402 * keyboard.c (command_loop_1): Don't clobber primary selection
1403 during handle-switch-frame (Bug#6872).
1404
1405 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
1406
1407 * dbusbind.c: Accept UNIX domain sockets as bus address.
1408 (Fdbus_close_bus): New function.
1409 (Vdbus_registered_buses): New variable.
1410 (xd_initialize): Implement string as bus address.
1411 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1412 (Fdbus_get_unique_name, Fdbus_call_method)
1413 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1414 (Fdbus_method_error_internal, Fdbus_send_signal)
1415 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1416 check. This is done in xd_initialize_bus. Adapt doc string, if
1417 necessary.
1418 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1419 Vdbus_registered_buses.
1420 (Vdbus_registered_objects_table): Create hash.
1421
1422 2010-08-22 Juri Linkov <juri@jurta.org>
1423
1424 * keyboard.c (Fexecute_extended_command): Move reading a command name
1425 with `completing-read' to a new Elisp function `read-extended-command'.
1426 Call it to read a command to `function' (bug#5364, bug#5214).
1427
1428 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
1429
1430 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1431
1432 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
1433
1434 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1435 instead of SAFE_ALLOCA.
1436
1437 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
1438
1439 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1440 (Bug#6214).
1441
1442 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1443
1444 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1445
1446 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1447
1448 * doc.c (Fsnarf_documentation): Initialize skip_file before
1449 build-files test.
1450
1451 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
1452
1453 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1454 New definitions.
1455 (HAVE_TERMIO): Remove.
1456
1457 2010-08-22 Eli Zaretskii <eliz@gnu.org>
1458
1459 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1460
1461 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1462 for w32.
1463
1464 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1465 it's done in nt/config.nt.
1466
1467 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1468
1469 * unexcoff.c (report_error, make_hdr, write_segment)
1470 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1471 Convert argument lists and prototypes to ANSI C.
1472 (make_hdr, write_segment): Remove unused variables.
1473 (unexec): Remove commented-out line. Initialize `new' to shut up
1474 compiler warnings.
1475
1476 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1477
1478 Simplify termio code.
1479 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1480 HAVE_TERMIO code is obsolete.
1481 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1482 * systty.h: Do not define HAVE_TCATTR.
1483 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1484 Do not define EMACS_HAVE_TTY_PGRP. Only define
1485 EMACS_GET_TTY_PGRP for !DOS_NT.
1486 * sysdep.c: Include sysselect.h unconditionally. Do not include
1487 sys/ioctl.h and termios.h, systty.h does it. Use
1488 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1489 (init_baud_rate): Remove HAVE_TERMIO code.
1490 (child_setup_tty): Remove HAVE_TERMIO code.
1491 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1492 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1493 (new_ltchars, new_tchars): Remove, unused.
1494 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1495 code. Remove special casing for __mips__, it was a no-op. Remove
1496 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1497 (init_sys_modes): Remove HPUX special case.
1498 * process.c: Include stdlib.h unconditionally. Do not include
1499 fcntl.h, systty.h does it. Remove conditional code for
1500 HAVE_SERIAL, it is always true.
1501 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1502 always true when SIGNALS_VIA_CHARACTERS is true.
1503 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1504 !WINDOWSNT means HAVE_TERMIOS.
1505 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1506 conditional, which is true for all HAVE_TERMIOS systems.
1507 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1508 instead of HAVE_TERMIOS.
1509 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1510 EMACS_HAVE_TTY_PGRP.
1511 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1512 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1513 anyway.
1514
1515 2010-08-21 Eli Zaretskii <eliz@gnu.org>
1516
1517 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1518 mirroring pixel positions.
1519
1520 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1521
1522 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1523 write only.
1524 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1525 malloc_sbrk_used, nothing uses them.
1526
1527 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1528 defined, unconditionally defined in lisp.h.
1529
1530 * term.c: Do not include <termios.h>, systty.h does it.
1531
1532 * s/unixware.h (HAVE_TCATTR):
1533 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1534 systty.h defines it when HAVE_TERMIOS is defined.
1535
1536 2010-08-20 Eli Zaretskii <eliz@gnu.org>
1537
1538 * dispnew.c (buffer_posn_from_coords): Fix last change for text
1539 terminals: add one-character offset for R2L lines.
1540
1541 * emacs.c <emacs_version>: Add a comment regarding
1542 msdos/mainmake.v2's dependency on the syntax of this declaration.
1543
1544 2010-08-20 Eli Zaretskii <eliz@gnu.org>
1545
1546 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1547 position for R2L lines by mirroring the pixel position wrt the
1548 text are box. Improve commentary.
1549
1550 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1551
1552 * image.c (imagemagick_clear_image): Remove debugging output.
1553
1554 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1555
1556 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1557 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1558 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1559 self-insert-face.
1560 (syms_of_cmds): Initialize the new vars.
1561
1562 2010-08-19 Jason Rumney <jasonr@gnu.org>
1563
1564 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1565
1566 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1567
1568 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1569
1570 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1571
1572 2010-08-18 Eli Zaretskii <eliz@gnu.org>
1573
1574 * xterm.c (x_draw_bar_cursor):
1575 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1576 R2L, draw the bar cursor on its right rather than on its left.
1577
1578 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1579
1580 * eval.c (Fdefmacro): Only obey one declaration.
1581
1582 * casefiddle.c (casify_region): Setup gl_state.
1583
1584 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1585
1586 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1587
1588 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1589
1590 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
1591
1592 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
1593
1594 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1595 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1596 QPRIMARY => NXPrimaryPboard.
1597 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1598 NXPrimaryPboard => QPRIMARY.
1599 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1600 NXSecondaryPboard = SecondarySelection.
1601 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1602
1603 2010-08-18 Joakim Verona <joakim@verona.se>
1604
1605 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1606 defined:
1607 (imagemagick_image_p): New function to test for ImageMagic image.
1608 (imagemagick_load): New function to load ImageMagick image.
1609 (imagemagick_load_image): New function, helper for imagemagick_load.
1610 (imagemagick-types): New function.
1611 (Qimagemagick): New Lisp_object.
1612 (imagemagick-render-type): New variable, decides which renderer to use.
1613
1614 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1615
1616 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1617 is a string.
1618
1619 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1620
1621 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1622 x_set_tool_bar_position handler.
1623
1624 2010-08-17 Eli Zaretskii <eliz@gnu.org>
1625
1626 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1627 x_set_tool_bar_position handler, needed to support changes from
1628 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1629
1630 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1631
1632 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1633 declaration (Bug#6863).
1634 (syms_of_nsselect): Don't intern QPRIMARY.
1635
1636 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1637
1638 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1639
1640 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
1641
1642 * keyboard.c (command_loop_1): Avoid setting selection twice,
1643 since it's done in deactivate-mark as well.
1644 (Vselect_active_regions): Change default to t. Replace `lazy'
1645 with non-default value `only', meaning only set PRIMARY for
1646 temporarily active regions.
1647
1648 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1649 select-active-regions.
1650
1651 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1652
1653 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1654 isn't a string.
1655
1656 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1657
1658 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1659
1660 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1661
1662 * keyboard.c (parse_tool_bar_item): malloc buf.
1663 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1664 new_lbl (Bug#6855).
1665
1666 2010-08-14 Eli Zaretskii <eliz@gnu.org>
1667
1668 * xterm.c (x_draw_stretch_glyph_string):
1669 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1670 the cursor on the right edge of the stretch glyph.
1671
1672 * xdisp.c (window_box_right_offset, window_box_right):
1673 Fix commentary.
1674
1675 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1676 direction when point is inside a run of whitespace characters.
1677
1678 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1679
1680 2010-08-14 Jason Rumney <jasonr@gnu.org>
1681
1682 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1683
1684 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
1685
1686 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1687
1688 2010-08-13 Jason Rumney <jasonr@gnu.org>
1689
1690 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1691 (MessageBoxW_Proc): New function typedef.
1692 (unicode-message-box): New function pointer.
1693 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1694
1695 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1696
1697 * frame.h (Qtool_bar_position): Declare.
1698
1699 * xfns.c (Fx_create_frame): Call x_default_parameter for
1700 Qtool_bar_position.
1701
1702 2010-08-13 Eli Zaretskii <eliz@gnu.org>
1703
1704 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1705 (report_error, report_error_1): Ditto.
1706 (write_segment): Remove "#if 0" unused code.
1707 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1708 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1709 (start_of_text): Remove unused function (was used only if NO_REMAP
1710 was NOT defined).
1711
1712 * msdos.c (IT_set_face): Fix format string to match argument
1713 types.
1714 (IT_write_glyphs, IT_note_mode_line_highlight)
1715 (IT_set_frame_parameters): Remove unused variables.
1716 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1717 (IT_set_terminal_modes): Disambiguate expression in if clause.
1718 (Fmsdos_remember_default_colors): Return Qnil.
1719 (IT_set_frame_parameters): Add parens to disambiguate boolean
1720 expression for logging the cursor type to termscript.
1721 (keyboard_layout_list, keypad_translate_map)
1722 (grey_key_translate_map): Add braces in inner initializers.
1723 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1724 (dos_rawgetc): Remove unused label.
1725 (XMenuActivate): Add braces to remove ambiguous `else'.
1726 (dos_ttraw): Always return a value.
1727 (spawnve): Declare.
1728 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1729
1730 * dosfns.h (x_set_title): Declare.
1731
1732 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1733 Remove unused variables.
1734
1735 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1736 variables.
1737 (init_dosfns): Declare get_lim_data.
1738 (system_process_attributes): Declare Fget_internal_run_time.
1739
1740 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1741 list to be consistent with menu.h.
1742
1743 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1744 warnings due to mixing of "char *" and "const char *".
1745
1746 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1747
1748 Introduce a new comment style "c" flag.
1749 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1750 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1751 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1752 (syntax_prefix_flag_p): New function.
1753 (Fstring_to_syntax): Understand new "c" flag.
1754 (Finternal_describe_syntax_value): Recognize new flag; use the
1755 SYNTAX_FLAGS_* macros.
1756 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1757 comment style to accomodate the new styles.
1758 (back_comment, forw_comment, Fforward_comment, scan_lists)
1759 (scan_sexps_forward): Update code to obey the new comment style flag.
1760
1761 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1762
1763 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1764
1765 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1766
1767 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1768 first.
1769 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
1770
1771 * gtkutil.h (xg_check_special_colors): Declare.
1772
1773 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1774 (xg_create_frame_widgets): Connect theme name changes to
1775 style_changed_cb.
1776
1777 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1778 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1779 (x_term_init): Use char[] display_opt and name_opt instead of
1780 string literal. file is const char*.
1781
1782 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1783 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1784 props. Free them at the end.
1785
1786 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1787
1788 * xrdb.c (get_system_app): Make path const and use char *p for
1789 non-const char.
1790
1791 * xmenu.c (Fx_popup_dialog): error_name is const char*.
1792 (xmenu_show): error parameter is const char **. pane_string is const
1793 char *.
1794 (button_names): Is const char *.
1795 (xdialog_show): error_name and pane_string is const.
1796
1797 * process.h (synch_process_death): Is const char*.
1798
1799 * w32menu.c (w32_menu_show):
1800 * nsmenu.m (ns_menu_show): error parameter is const char **.
1801
1802 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1803 is const char **.
1804
1805 * menu.c (Fx_popup_menu): error_name is const.
1806
1807 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1808 with unsigned char and XtPointer with void *.
1809
1810 * gtkutil.h: Replace widget_value with struct _widget_value.
1811 (enum button_type, struct _widget_value): Remove and use the one from
1812 keyboard.h.
1813
1814 * gtkutil.c (get_utf8_string): Always return an allocated string.
1815 Parameter is const.
1816 (create_dialog, xg_create_one_menuitem, create_menus)
1817 (xg_item_label_same_p, xg_update_menu_item): Free result from
1818 get_utf8_string.
1819 (xg_separator_p, xg_item_label_same_p): label is const.
1820
1821 * font.h (font_open_by_name): Make name const.
1822
1823 * font.c (font_open_by_name): Make name const.
1824
1825 * floatfns.c (matherr): Use a const char* variable for x->name.
1826
1827 * emacs.c (main): Pass char[] to putenv instead of literal.
1828
1829 * callproc.c (synch_process_death): Make const.
1830 (Fcall_process): Make signame const.
1831
1832 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1833 (addDisplayItemWithImage): Use const char*.
1834
1835 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1836 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1837
1838 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1839
1840 * keyboard.h (_widget_value): name, value and key are const char*.
1841
1842 * unexmacosx.c (unexec_error): Use const char *.
1843
1844 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1845
1846 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
1847 (font_parse_name, font_open_by_name):
1848 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
1849 (font_parse_name, font_open_by_name): Remove const.
1850
1851 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1852
1853 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1854 definition.
1855
1856 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1857 * m/amdx86-64.h: Likewise.
1858 * m/arm.h: Likewise.
1859 * m/hp800.h: Likewise.
1860 * m/ia64.h: Likewise.
1861 * m/ibmrs6000.h: Likewise.
1862 * m/ibms390.h: Likewise.
1863 * m/intel386.h: Likewise.
1864 * m/iris4d.h: Likewise.
1865 * m/m68k.h: Likewise.
1866 * m/macppc.h: Likewise.
1867 * m/mips.h: Likewise.
1868 * m/sh3.h: Likewise.
1869 * m/sparc.h: Likewise.
1870 * m/template.h: Likewise.
1871 * m/vax.h: Likewise.
1872 * m/xtensa.h: Likewise.
1873 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1874 WORDS_BIG_ENDIAN.
1875 * lisp.h: Likewise.
1876 * md5.c: Likewise.
1877 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1878
1879 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1880
1881 Use const char* instead of char*.
1882 Reduce the number of warnings with -Wwrite-strings.
1883 * xrdb.c (get_environ_db, get_system_name):
1884 * unexelf.c (find_section):
1885 * term.c (string_cost, string_cost_one_line, per_line_cost)
1886 (get_named_tty, init_tty):
1887 * sysdep.c (sys_subshell):
1888 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1889 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1890 * search.c (Freplace_match):
1891 * process.c (Fmake_network_process, send_process, init_process):
1892 * lread.c (Fload, init_lread):
1893 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1894 * keyboard.c (parse_tool_bar_item, struct event_head):
1895 * gtkutil.h (xg_get_font_name):
1896 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1897 (make_widget_for_menu_item, make_menu_item, create_menus)
1898 (xg_make_tool_item):
1899 * font.c (parse_matrix, font_parse_name):
1900 * floatfns.c (rounding_driver, float_error_fn_name):
1901 * filelock.c (get_boot_time_1, lock_file_1):
1902 * fileio.c (barf_or_query_if_file_exists, check_writable):
1903 * editfns.c (get_system_name, get_operating_system_release)
1904 (Fencode_time, Fset_time_zone_rule):
1905 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1906 * buffer.c (defvar_per_buffer): Use const.
1907
1908 2010-08-08 Kenichi Handa <handa@m17n.org>
1909
1910 * charset.c: Include <stdlib.h>.
1911 (struct charset_sort_data): New struct.
1912 (charset_compare): New function.
1913 (Fsort_charsets): New function.
1914 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1915
1916 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1917 number in CTEXT extended segment.
1918
1919 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1920
1921 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1922 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1923
1924 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1925
1926 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1927 (Fhash_table_size): Fix typos in docstrings.
1928 (Fmake_hash_table): Doc fix.
1929
1930 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1931
1932 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1933 Doc fix (bug#5625).
1934
1935 2010-08-08 Ken Brown <kbrown@cornell.edu>
1936
1937 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1938 the MSDOS definition.
1939
1940 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1941
1942 Use const char* instead of char*.
1943 * xterm.c (x_create_toolkit_scroll_bar):
1944 * xfont.c (xfont_list_pattern):
1945 * xfns.c (x_default_scroll_bar_color_parameter)
1946 (xic_create_fontsetname, x_default_font_parameter)
1947 (x_screen_planes):
1948 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1949 (store_mode_line_string, decode_mode_spec, display_string):
1950 * menu.c (digest_single_submenu):
1951 * keymap.h (initial_define_key, initial_define_lispy_key):
1952 * keymap.c (initial_define_key, initial_define_lispy_key):
1953 * image.c (image_error, image_keyword):
1954 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1955 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1956 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1957 (ftfont_list, ftfont_match):
1958 * frame.c (frame_parm_table):
1959 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1960 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1961 (font_add_log, font_deferred_log):
1962 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1963 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1964 (font_add_log, font_deferred_log):
1965 * emacs.c (argmatch):
1966 * dispextern.h (struct it):
1967 * coding.c (ENCODE_DESIGNATION):
1968 * charset.c (define_charset_internal): Use const.
1969
1970 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1971
1972 * xrdb.c: Remove include guard.
1973 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1974 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1975 realloc->xrealloc instead of using #defines.
1976
1977 2010-08-08 Eli Zaretskii <eliz@gnu.org>
1978
1979 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
1980 * editfns.c (Fline_beginning_position, Fline_end_position):
1981 State in the doc strings that start and end of line are in the
1982 logical order.
1983
1984 * xdisp.c (display_line): Move the handling of overlay arrow after
1985 the call to find_row_edges. (Bug#6699)
1986
1987 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
1988
1989 * keyboard.c (command_loop_1):
1990 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1991
1992 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
1993
1994 * insdel.c (prepare_to_modify_buffer): Save active region text to
1995 Vsaved_region_selection.
1996
1997 * xselect.c (QPRIMARY): Move to keyboard.c.
1998
1999 * keyboard.c (Vselect_active_regions): Move from simple.el.
2000 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
2001 (command_loop_1): Set window selection prior to deactivating the mark.
2002
2003 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
2004
2005 * alloc.c (lisp_malloc):
2006 * buffer.c (set_buffer_internal, set_buffer_internal_1):
2007 * charset.h (emacs_mule_charset):
2008 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
2009 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
2010 (bitch_at_user):
2011 * lisp.h (Fcheck_coding_system, Fget_text_property)
2012 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
2013 Remove duplicate declarations.
2014
2015 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2016
2017 * process.c: Simplify include logic.
2018
2019 * keyboard.h (quit_char): Add declaration.
2020 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
2021 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
2022 Add declarations.
2023 * sysdep.c:
2024 * w32.c: Remove the above declarations.
2025
2026 Remove extern declarations in .c files, .h files have them.
2027 * xterm.c:
2028 * xdisp.c:
2029 * msdos.c:
2030 * image.c:
2031 * gtkutil.c:
2032 * fileio.c:
2033 * eval.c: Remove declarations.
2034
2035 * frame.c (frame_params): Make const.
2036
2037 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
2038
2039 * emacs.c (emacs_copyright, emacs_version): Make static.
2040 (Vinitial_window_system, Vauto_save_list_file_name)
2041 (Vinhibit_redisplay): Remove declarations.
2042 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
2043 for AIX.
2044
2045 Use const for some arrays and functions.
2046 * xterm.h (xg_set_icon_from_xpm_data):
2047 * xfns.c (xg_set_icon_from_xpm_data):
2048 * term.c (fkeys):
2049 * keyboard.c (lispy_accent_keys, lispy_function_keys)
2050 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
2051 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
2052 (frame.c frame_parms):
2053 * emacs-icon.h (gnu_xpm_bits):
2054 * callint.c (callint_argfuns): Use const.
2055
2056 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2057
2058 * sysdep.c: Move include term.h last of includes (Bug#6812).
2059
2060 2010-08-06 Eli Zaretskii <eliz@gnu.org>
2061
2062 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
2063
2064 * msdos.c (IT_display_cursor): Log cursor position on termscript.
2065
2066 * .gdbinit (pgx): Display the avoid_cursor_p flag.
2067
2068 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
2069
2070 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
2071
2072 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2073
2074 * xterm.h (x_get_focus_frame): Declare.
2075
2076 * keyboard.h (poll_for_input_1): Unconditionally declare.
2077
2078 * nsterm.h (x_set_menu_bar_lines): Declare.
2079
2080 * window.c: Don't include menu.h, it depends on lots of other .h-files.
2081
2082 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
2083
2084 * window.c: Include menu.h.
2085
2086 * unexmacosx.c (print_region_list, print_regions)
2087 (build_region_list, find_emacs_zone_regions)
2088 (unexec_regions_merge, read_load_commands, dump_it)
2089 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
2090
2091 * term.c: Check HAVE_SYS_IOCTL_H.
2092
2093 * sysdep.c: Check HAVE_TERM_H.
2094
2095 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
2096
2097 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
2098 (ns_ring_bell, ns_defined_color, hide_hourglass)
2099 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
2100 Convert to ANSI C prototypes.
2101 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
2102 before code.
2103
2104 * nsterm.h : Include sysselect.h.
2105 (x_sync, x_get_focus_frame, x_set_mouse_position)
2106 (x_set_mouse_pixel_position, x_make_frame_visible)
2107 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
2108 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
2109 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
2110 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
2111 Declare.
2112
2113 * nsmenu.m (popup_activated, name_is_separator)
2114 (syms_of_nsmenu): Convert to ANSI C prototypes.
2115 (runMenuAt): Prototypes and move declarations before code.
2116
2117 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
2118
2119 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
2120 prototypes.
2121
2122 * nsfns.m (have_menus_p, ns_display_info_for_name)
2123 (x_set_cursor_type, ns_appkit_version_str)
2124 (ns_appkit_version_int, ns_do_applescript)
2125 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
2126 (syms_of_nsfns): Convert to ANSI C prototypes.
2127
2128 * menu.h (x_set_menu_bar_line): Declare.
2129 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
2130
2131 * lisp.h (fmod_float): Declare.
2132
2133 * image.c (xpm_scan, xpm_make_color_table_v)
2134 (xpm_put_color_table_v, xpm_get_color_table_v)
2135 (xpm_make_color_table_h, xpm_put_color_table_h)
2136 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
2137 (xpm_load): Convert to ANSI C prototypes.
2138
2139 * emacs.c: Include nsterm.h if HAVE_NS.
2140
2141 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
2142
2143 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2144
2145 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
2146 subprocesses, only MSDOS does not define HAVE_SOCKETS.
2147 (socket_options): Use const char* for name.
2148
2149 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
2150
2151 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
2152
2153 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
2154 Don't declare xmalloc_widget_value and digest_single_submenu.
2155
2156 * w32font.c (Qlatin): Remove declaration.
2157
2158 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
2159
2160 * dired.c (compile_pattern): Restore declaration.
2161
2162 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
2163
2164 Remove extern declarations in .c files, .h files have them.
2165 * data.c:
2166 * dired.c:
2167 * editfns.c:
2168 * filelock.c:
2169 * fns.c:
2170 * font.c:
2171 * fontset.c:
2172 * frame.c:
2173 * fringe.c:
2174 * ftfont.c:
2175 * gtkutil.c:
2176 * indent.c:
2177 * keyboard.c:
2178 * keymap.c:
2179 * lread.c:
2180 * menu.c:
2181 * print.c:
2182 * search.c:
2183 * sound.c:
2184 * window.c:
2185 * xdisp.c:
2186 * xfaces.c:
2187 * xfns.c:
2188 * xfont.c:
2189 * xftfont.c:
2190 * xmenu.c:
2191 * xterm.c: Remove declarations.
2192
2193 Cleanup syssignal.h.
2194 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
2195 (main_thread): Move down to remove #ifdef.
2196 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
2197 Remove conditional definition following unconditional ones.
2198
2199 * lisp.h: Remove HAVE_SHM code, unused.
2200 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
2201 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
2202 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
2203 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
2204 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
2205 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
2206 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
2207 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
2208 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
2209 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
2210 (Qwindow_scroll_functions, Vafter_load_alist)
2211 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
2212 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
2213 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
2214 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
2215 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
2216 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
2217 (initial_argv, last_nonmenu_event, load_in_progress)
2218 (noninteractive_need_newline, scroll_margin): Add declarations.
2219
2220 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
2221 declarations, menu.h has them.
2222 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
2223 (Vinput_method_function, Qinput_method_function)
2224 (Qevent_symbol_element_mask, last_event_timestamp):
2225 * dispextern.h (Voverflow_newline_into_fringe):
2226 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
2227 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
2228 (syms_of_w32font, syms_of_nsfont):
2229 * fontset.h (find_font_encoding, Qlatin):
2230 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
2231 (Vtool_bar_mode, set_frame_menubar):
2232 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
2233 * xterm.h (Qx_gtk_map_stock):
2234 * keymap.h (meta_prefix_char): Add declarations.
2235
2236 * term.c: Remove dead code.
2237
2238 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
2239 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
2240 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
2241 which is what was there before BSD_PGRPS was removed.
2242
2243 2010-08-05 Eli Zaretskii <eliz@gnu.org>
2244
2245 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
2246
2247 * unexcoff.c: Renamed from unexec.c.
2248
2249 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2250
2251 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
2252
2253 2010-08-03 Johan Bockgård <bojohan@gnu.org>
2254
2255 * data.c (Flocal_variable_p): Handle variable aliases correctly.
2256 (Bug#6744)
2257
2258 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2259
2260 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
2261 to TRUE if depth of screen is < 16.
2262
2263 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
2264 USE_GTK_TOOLTIP.
2265 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
2266 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
2267 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
2268 USE_GTK_TOOLTIP.
2269 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
2270
2271 * xterm.h (USE_GTK_TOOLTIP): New define.
2272 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
2273
2274 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
2275 to Control-D (Bug#6771).
2276
2277 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
2278
2279 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
2280 Wording by Drew Adams <drew.adams@oracle.com>.
2281
2282 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
2283
2284 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
2285 ttip_lbl.
2286
2287 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
2288 calling gtk_widget_queue_draw.
2289 (x_free_frame_resources): Call xg_free_frame_widgets.
2290
2291 * xfns.c (x_gtk_use_system_tooltips): New variable.
2292 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
2293 new gtkutil tooltip functions to show the tooltip.
2294 (Fx_hide_tip): Call xg_hide_tooltip.
2295 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
2296
2297 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
2298 (xg_show_tooltip, xg_hide_tooltip): Declare.
2299
2300 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
2301 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
2302 New functions.
2303 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
2304 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
2305 Remove code that is commented out.
2306
2307 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
2308
2309 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
2310
2311 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
2312
2313 * xselect.c (x_own_selection): Use list4.
2314
2315 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2316
2317 * buffer.c (Qwindow): Do not define, already defined in data.c.
2318 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
2319
2320 2010-07-29 Chad Brown <yandros@mit.edu>
2321
2322 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2323 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2324 * config.in: Undef HAVE_DIRENT_H.
2325 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
2326 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
2327
2328 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2329
2330 Rename s/usg5-4.h -> s/usg5-4-common.h.
2331 * s/usg5-4.h: Rename file to ...
2332 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2333 * s/unixware.h:
2334 * s/sol2-6.h:
2335 * s/irix6-5.h: Update includes accordingly.
2336
2337 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2338
2339 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2340
2341 * xterm.h (struct x_output): Add toolbar_top_height,
2342 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2343 Remove toolbar_height.
2344 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
2345 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2346 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2347 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2348
2349 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2350
2351 * xfns.c (x_set_tool_bar_position): New function.
2352 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2353 (x_frame_parm_handlers): Add x_set_tool_bar_position.
2354 (syms_of_xfns): If USE_GTK, provide move-toolbar.
2355
2356 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2357 and FRAME_TOOLBAR_LEFT_WIDTH.
2358
2359 * gtkutil.h (xg_change_toolbar_position): Declare.
2360
2361 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2362 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2363 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2364 (xg_create_frame_widgets): Create a hobox for placing widgets
2365 vertically. Use gtk_box_pack_start.
2366 (xg_height_or_width_changed): Renamed from xg_height_changed.
2367 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2368 (xg_update_frame_menubar, free_frame_menubar): Change to
2369 xg_height_or_width_changed.
2370 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2371 size correctly. Remove hardcoded 4, instead use handlebox size -
2372 toolbar size.
2373 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
2374 size correctly. Use handlebox size + toolbar size as additional size.
2375 (xg_pack_tool_bar): POS is a new parameter.
2376 Set orientation of tool bar based on pos.
2377 Only make handlebox_widget if NULL.
2378 Check if tool bar goes to vbox or hbox depending on pos.
2379 (xg_update_tool_bar_sizes): New function.
2380 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
2381 height, call xg_update_tool_bar_sizes instead.
2382 (free_frame_tool_bar): Remove from hbox or vbox depending on
2383 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2384 (xg_change_toolbar_position): New function.
2385
2386 * frame.h (struct frame): Add tool_bar_position.
2387 (Qbottom): Declare.
2388
2389 * frame.c (Qtool_bar_position): New variable.
2390 (make_frame): Set tool_bar_position to Qtop.
2391 (frame_parms): Add tool-bar-position.
2392 (x_report_frame_params): Store tool_bar_position.
2393 (x_set_fringe_width): Reset wm size hint after fringe changes.
2394
2395 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2396
2397 Make lisp_time_argument declaration work on all systems.
2398 * lisp.h (lisp_time_argument): Move declaration ...
2399 * systime.h (lisp_time_argument): ... here
2400 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2401
2402 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2403
2404 * vm-limit.c (POINTER): Add typedef for it.
2405 (start_of_data): Change return type from POINTER to char *.
2406
2407 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2408 HAVE_WINDOW_SYSTEM.
2409
2410 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2411
2412 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2413 Remove reference to __osf__, unused.
2414
2415 * mem-limits.h: Remove duplicated includes.
2416 (NULL): Remove definition, unused.
2417 (POINTER): Remove definition.
2418 (start_of_data): Use char* in prototype, as the function
2419 definition does.
2420
2421 Remove extern declarations from .c files, and them to .h files.
2422 * keyboard.h (Qhelp_echo, waiting_for_input)
2423 (input_available_clear_time, ignore_mouse_drag_p)
2424 (Vdouble_click_time, real_this_command, Vthis_original_command):
2425 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2426 (Voverriding_local_map_menu_flag):
2427 * lisp.h (Qinteractive_form, use_file_dialog)
2428 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2429 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2430 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2431 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2432 (Qfunction, debug_on_next_call, Qfield)
2433 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2434 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2435 (Qfile_directory_p, Qinsert_file_contents)
2436 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2437 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2438 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2439 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2440 (Qminibuffer_prompt)
2441 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2442 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2443 (gray_bitmap_bits, xic_create_fontsetname):
2444 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2445
2446 * xsmfns.c (Vuser_login_name):
2447 * xrdb.c (Vdouble_click_time):
2448 * xfaces.c (xic_create_fontsetname):
2449 * w32select.c (waiting_for_input):
2450 * print.c (minibuffer_auto_raise):
2451 * msdos.c (Qhelp_echo):
2452 * macros.c (real_this_command):
2453 * keymap.c (Voverriding_local_map):
2454 * xterm.c (poll_for_input_1, gray_bitmap_width)
2455 (gray_bitmap_height, gray_bitmap_bits;
2456 * xmenu.c ( Voverriding_local_map)
2457 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2458 (use_file_dialog, Xt_app_con):
2459 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2460 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2461 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2462 (Qtool_bar_lines, ignore_mouse_drag_p):
2463 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2464 (Qrear_nonsticky, nconc2):
2465 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2466 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2467 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2468 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2469 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2470 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2471 (gc_in_progress):
2472 * doc.c (Voverriding_local_map, Qremap):
2473 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2474 (Vcompletion_regexp_list):
2475 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2476 (Qcompletion_ignore_case):
2477 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2478 (Vhistory_length, Vthis_original_command, real_this_command)
2479 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2480 * image.c (Qrisky_local_variable):
2481 * fontset.c (QCname):
2482 * fns.c (minibuffer_auto_raise, QCname):
2483 * dispnew.c (char_ins_del_cost):
2484 * composite.c (font_fill_lglyph_metrics):
2485 * cmds.c (Qface, Vtranslation_table_for_input):
2486 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2487 * ccl.c (charset_unicode):
2488 * callproc.c (Vtemporary_file_directory):
2489 * buffer.c (emacs_strerror): Remove extern declarations.
2490
2491 * data.c (Qwindow): Make non-static, used from other files too.
2492 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2493
2494 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2495 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2496 * s/usg5-4.h (COFF):
2497 * s/template.h:
2498 * s/msdos.h (COFF, NO_REMAP):
2499 * s/ms-w32.h (NO_REMAP):
2500 * s/hpux10-20.h (NO_REMAP):
2501 * m/sparc.h (SEGMENT_MASK):
2502 * m/m68k.h (NO_REMAP):
2503 * m/intel386.h (SEGMENT_MASK):
2504 * m/arm.h (NO_REMAP):
2505 * m/alpha.h (COFF):
2506 * m/template.h: Remove references to unused defines.
2507
2508 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2509
2510 * xsettings.c (Ftool_bar_get_system_style): Also check for
2511 Qtext_image_horiz.
2512
2513 * xdisp.c (Qtext_image_horiz): Define.
2514 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
2515 to documentation of tool-bar-style.
2516
2517 * lisp.h (Qtext_image_horiz): Declare.
2518
2519 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2520 style text_image_horiz.
2521
2522 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2523
2524 * emacs.c (Fkill_emacs): Remove return statement.
2525
2526 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2527 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2528 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2529 local extern declarations.
2530
2531 * xmenu.c: Do not included lwlib.h, not needed.
2532
2533 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2534
2535 * process.c: Move definitions earlier to minimize #ifdefs.
2536
2537 * xterm.h (x_get_customization_string, x_load_resources)
2538 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2539 (x_check_errors, x_property_data_to_lisp, defined_color)
2540 (xic_set_xfontset, x_defined_color): Use const.
2541
2542 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2543 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2544
2545 * xselect.c (selection_data_to_lisp_data)
2546 (x_property_data_to_lisp):
2547 * xrdb.c (x_get_string_resource, file_p)
2548 (x_get_customization_string, magic_file_p, search_magic_path)
2549 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2550 (x_get_string_resource): Use const.
2551
2552 * xfns.c: Include xlwmenu.h when USE_LUCID.
2553 (x_defined_color, xic_set_xfontset): Use const.
2554 (Fx_hide_tip): Remove local extern declaration.
2555
2556 * xfaces.c (Qmouse_face): Remove declaration.
2557 (face_color_gray_p, tty_defined_color, defined_color)
2558 (face_color_gray_p, face_color_supported_p): Add const.
2559
2560 * xdisp.c (do_mouse_tracking): Remove declaration.
2561 (add_to_log): Use const.
2562
2563 * minibuf.c (Qmouse_face): Remove declaration.
2564
2565 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2566
2567 * keyboard.h (do_mouse_tracking): Add declaration.
2568
2569 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2570 (QCdata, QCtype, Qcenter): Remove declarations.
2571
2572 * frame.c (x_get_resource_string, x_get_string_resource)
2573 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2574 (x_default_parameter): Use const.
2575
2576 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2577 (QCheight, QCsize, QCname): Remove declarations.
2578
2579 * emacs.c (main): Remove local extern declaration.
2580
2581 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2582 declarations.
2583
2584 * dispnew.c: Remove duplicate #include <unistd.h>.
2585 (update_window, update_frame_1, init_display): Remove local extern
2586 declarations.
2587
2588 * dispextern.h (add_to_log): Remove declaration.
2589 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2590 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2591
2592 * dired.c (scmp): Add const.
2593 (directory_files_internal): Remove local extern declaration.
2594
2595 * data.c (Finteractive_form): Use const.
2596
2597 * composite.c (syms_of_composite): Remove local extern declarations.
2598
2599 * charset.c (add_to_log): Remove declaration.
2600
2601 * character.c (strwidth, parse_str_to_multibyte): Add const.
2602
2603 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2604
2605 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2606
2607 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
2608 (Lisp_Subr): Make doc and intspec constant.
2609 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2610 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2611 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2612 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2613 (display_arg): Add declarations.
2614
2615 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
2616
2617 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2618
2619 * window.c (Fwindow_height): Doc fix (bug#6518).
2620
2621 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
2622
2623 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2624
2625 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2626
2627 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2628 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2629 functions.
2630
2631 * frame.h (Qtty_color_mode): Add declaration.
2632
2633 * lisp.h (Ftop_level, Fexit_recursive_edit)
2634 (Fabort_recursive_edit): Mark as NO_RETURN.
2635
2636 2010-07-26 Kenichi Handa <handa@m17n.org>
2637
2638 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
2639 number of glyphs gets smaller than the original length. (Bug#6621)
2640
2641 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
2642
2643 * lread.c (unreadpure, mapatoms_1): Make static.
2644
2645 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
2646
2647 * terminfo.c (tparam): Fix prototype of tparm.
2648
2649 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2650
2651 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2652 find start of text segment.
2653 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2654 is defined.
2655
2656 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2657
2658 2010-07-25 Ken Brown <kbrown@cornell.edu>
2659
2660 * vm-limit.c (check_memory_limits): Fix previous change;
2661 accidentally reverted an earlier change.
2662
2663 2010-07-25 Ken Brown <kbrown@cornell.edu>
2664
2665 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2666 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2667
2668 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
2669
2670 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2671 * dired.c (opendir, readdir): Fix prototypes.
2672 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2673 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2674 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2675 (telldir): Remove declaration.
2676 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2677 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2678 * syssignal.h (strsignal): Fix prototype.
2679 * term.c (tparam): Fix prototype.
2680 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2681 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2682 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2683 and __morecore.
2684 * w32gui.h (XParseGeometry): Fix prototype.
2685 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2686 * w32term.c (my_set_focus): Declare inside #if 0.
2687 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2688 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2689 (drain_message_queue, get_next_msg, post_msg, parse_button)
2690 (ClipboardSequence_Proc): Fix prototypes.
2691 (wait_for_sync): Remove declaration.
2692
2693 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
2694
2695 * w32fns.c (w32_to_x_color): Remove, unused.
2696
2697 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2698
2699 * lisp.h: Remove leftover P_.
2700
2701 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2702
2703 * ecrt0.c, unexalpha.c: Remove files, unused.
2704
2705 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2706
2707 * cmds.c (internal_self_insert): Make static.
2708 * lisp.h (internal_self_insert): Remove declaration.
2709
2710 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
2711
2712 * alloc.c (free_float):
2713 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2714 * frame.c (delete_frame_handler):
2715 * ralloc.c (reorder_bloc):
2716 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2717 Remove unused static functions.
2718
2719 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2720 it is called only from NS code.
2721
2722 * w32term.c (my_set_focus): #ifdef away; it is called only from
2723 "#ifdef 0" code.
2724
2725 * w32fns.c (x_edge_detection):
2726 * xfaces.c (may_use_scalable_font_p):
2727 Remove obsolete static declarations.
2728
2729 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
2730
2731 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2732 (emacs_blocked_realloc, uninterrupt_malloc):
2733 * fringe.c (w32_reset_fringes):
2734 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2735 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2736 * sound.c (be2hs, do_play_sound):
2737 * vm-limit.c (get_lim_data, ret_lim_data):
2738 * w32term.c (x_free_frame_resources):
2739 * xfaces.c (x_create_gc, x_free_gc):
2740 Convert definitions to standard C.
2741
2742 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2743
2744 * eval.c (Feval, Ffuncall): Use the new names.
2745
2746 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2747 (DEFUN): Add braces around the union initialisation and use ## to
2748 specify the right union alternative and avoid a cast.
2749
2750 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
2751
2752 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2753
2754 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
2755
2756 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2757
2758 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2759
2760 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2761 is related to the menu bar (Bug#6499).
2762 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
2763
2764 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2765
2766 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2767
2768 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2769
2770 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2771 i.e. don't put back ButtonRelease (Bug#6608).
2772
2773 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2774 instead of Window. Call xg_event_is_for_menubar when
2775 USE_GTK (Bug#6499).
2776
2777 * gtkutil.h (xg_event_is_for_menubar): Declare.
2778
2779 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2780
2781 2010-07-16 Eli Zaretskii <eliz@gnu.org>
2782
2783 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2784 when it's the same as the old foreground. (Bug#6609)
2785
2786 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2787
2788 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2789 widget is non-null (Bug#6645).
2790
2791 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2792
2793 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2794 Convert old-style definition.
2795
2796 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2797 timestamp argument.
2798
2799 2010-07-15 Eli Zaretskii <eliz@gnu.org>
2800
2801 * fringe.c (update_window_fringes): Restore mistakenly reverted
2802 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2803
2804 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2805
2806 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2807 (SET_SAVED_KEY_EVENT): Remove (not used).
2808 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2809 remove size parameter.
2810 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2811 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2812 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2813 ButtonRelease.
2814 (x_set_window_size_1): scroll_bar_actual_width is always
2815 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
2816
2817 * xdisp.c (pending_menu_activation): Remove extern declaration.
2818 (prepare_menu_bars): Remove setting of pending_menu_activation.
2819
2820 * xmenu.c (pending_menu_activation): Remove.
2821 (x_activate_menubar): Set popup_activated_flag for Xt also.
2822 Remove setting of pending_menu_activation.
2823 (set_frame_menubar): Remove check of pending_menu_activation.
2824 Declare menubar_size before code. Correct spelling in comment.
2825
2826 2010-07-14 Kenichi Handa <handa@m17n.org>
2827
2828 * font.c (font_open_entity): Cancel previous change.
2829 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2830
2831 2010-07-13 Eli Zaretskii <eliz@gnu.org>
2832
2833 Remove subprocesses #ifdefs.
2834 * process.c <inhibit_sentinels>: Move to the common part.
2835 (Fwaiting_for_user_input_p): Move to the common part; return nil
2836 if async subprocesses aren't supported.
2837 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2838 MS-DOS. Remove "#ifdef subprocesses".
2839 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2840 (gettimeofday): Remove "#ifdef subprocesses".
2841 (wait_without_blocking): Remove function.
2842 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2843 Remove "#ifdef subprocesses".
2844 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2845 compiled on MS-DOS.
2846 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2847 wait_for_termination on MS-DOS.
2848 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2849 initialization of inhibit_sentinels.
2850 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2851 subprocesses" conditional.
2852 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2853 wait_for_termination, since `buffer' cannot be an integer when
2854 async subprocesses are not supported
2855 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2856 for ifdefing away the call to Fprocess_status.
2857
2858 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2859 away the entire body of the function.
2860
2861 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2862
2863 Remove subprocesses #ifdefs from term.c.
2864 * process.c (add_keyboard_wait_descriptor)
2865 (delete_keyboard_wait_descriptor): Move to common section, do
2866 nothing when subprocesses is not defined.
2867 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2868 Remove subprocesses #ifdefs.
2869
2870 Convert maybe_fatal to standard C.
2871 * lisp.h (verror): Declare.
2872 * eval.c (verror): New function containing the code from ...
2873 (error): ... this. Call verror.
2874 * term.c (vfatal): New function containing the code from ...
2875 (fatal): ... this. Call vfatal.
2876 (maybe_fatal): Convert to standard C, use variable number of
2877 arguments. Declare as non-return.
2878 (init_tty): Fix maybe_fatal call.
2879
2880 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2881
2882 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2883 (_scroll_bar_note_movement): Convert definitions to standard C.
2884 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2885 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2886
2887 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2888
2889 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2890 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2891 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2892 (xaw_jump_callback, xaw_scroll_callback)
2893 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2894 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2895 definitions to standard C.
2896 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2897 (popup_activate_callback, popup_deactivate_callback)
2898 (menu_highlight_callback, menubar_selection_callback)
2899 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2900 (free_frame_menubar, popup_selection_callback, as)
2901 (create_and_show_popup_menu, dialog_selection_callback)
2902 (create_and_show_dialog):
2903 * xfns.c (hack_wm_protocols, x_window):
2904 * xfaces.c (x_update_menu_appearance):
2905 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2906 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2907 (set_frame_size, update_wm_hints, setup_frame_gcs)
2908 (update_various_frame_slots, update_from_various_frame_slots)
2909 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2910 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2911 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2912
2913 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2914
2915 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
2916
2917 2010-07-12 Eli Zaretskii <eliz@gnu.org>
2918
2919 * process.c (setup_process_coding_systems): Move to the part
2920 shared by non-subprocesses systems, and make its body empty when
2921 subprocesses is not defined.
2922 (close_process_descs): Move to the part shared by non-subprocesses
2923 systems.
2924 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2925 ANSI C.
2926
2927 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2928
2929 * editfns.c (transpose_markers): Convert old-style definition.
2930 * emacs.c (abort, shut_down_emacs, fixup_locale)
2931 (synchronize_system_time_locale)
2932 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2933 * floatfns.c (extract_float, matherr, init_floatfns)
2934 (syms_of_floatfns): Likewise.
2935 * fns.c (make_hash_table): Likewise.
2936 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2937 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2938 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2939 (ftfont_variation_glyphs): Likewise.
2940 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2941 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2942 * lread.c (read_filtered_event): Likewise.
2943 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2944 * process.c (wait_reading_process_output): Likewise.
2945 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2946 * search.c (search_buffer, boyer_moore): Likewise.
2947 * syntax.c (scan_sexps_forward): Likewise.
2948 * xdisp.c (try_scrolling): Likewise.
2949 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2950 (face_at_string_position): Likewise.
2951 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2952 * xselect.c (x_get_window_property, receive_incremental_selection)
2953 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2954 Likewise.
2955 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2956
2957 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2958
2959 * callproc.c (child_setup): Remove subprocesses conditional.
2960 Remove code dealing with SET_EMACS_PRIORITY, unused.
2961
2962 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2963 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2964
2965 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2966 (__do_global_dtors, __main): Use void in definition.
2967 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2968 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2969 the only users from ...
2970 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2971 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2972 (HAVE_VOLATILE): Remove, unused.
2973
2974 Convert more function definitions to standard C.
2975 * xdisp.c (window_box_edges, handle_single_display_spec)
2976 (display_string): Convert definition to standard C.
2977 * scroll.c (do_direct_scrolling, scrolling_1):
2978 * dispnew.c (allocate_matrices_for_frame_redisplay)
2979 (mirrored_line_dance):
2980 * coding.c (code_convert_string):
2981 * charset.c (map_charset_chars):
2982 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2983 (Fregister_ccl_program, Fregister_code_conversion_map):
2984 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2985 (head_table): Make static and const.
2986
2987 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2988
2989 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2990 (PROFILING_LDFLAGS): Set from substitution.
2991 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2992 CFLAGS last.
2993
2994 2010-07-12 Kenichi Handa <handa@m17n.org>
2995
2996 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2997 (shortlisp): Likewise.
2998
2999 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
3000
3001 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
3002 of FONT_ENTITY_INDEX.
3003 (Ffont_get): If KEY is :otf and the font-object doesn't have the
3004 property, get the property value dynamically.
3005 (Ffont_put): Accept font-entity and font-object too.
3006 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
3007 return value changed.
3008 (syms_of_font): Adjusted for the above change.
3009
3010 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3011
3012 * blockinput.h: Remove obsolete comment.
3013
3014 * lisp.h: Include <stddef.h>.
3015 (OFFSETOF): Don't define.
3016 (VECSIZE): Use offsetof instead of OFFSETOF.
3017 (PSEUDOVECSIZE): Likewise.
3018 * process.c (conv_sockaddr_to_lisp): Likewise.
3019 * alloc.c: Don't include <stddef.h>.
3020 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
3021
3022 * process.c: Remove obsolete comment.
3023
3024 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
3025
3026 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
3027
3028 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3029
3030 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
3031 index, rindex.
3032 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
3033 * editfns.c (Fuser_full_name, Fformat): Likewise.
3034 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
3035 * fileio.c (Ffile_symlink_p): Likewise.
3036 * filelock.c (current_lock_owner): Likewise.
3037 * font.c (font_parse_name, font_parse_family_registry): Likewise.
3038 * fontset.c (fontset_pattern_regexp): Likewise.
3039 * lread.c (read1): Likewise.
3040 * sysdep.c (init_system_name): Likewise.
3041 * xfns.c (select_visual): Likewise.
3042 * s/hpux10-20.h (index, rindex): Don't define.
3043 * s/ms-w32.h (index): Likewise.
3044 * s/usg5-4.h: Likewise.
3045
3046 * callproc.c (relocate_fd): Use F_DUPFD if defined.
3047
3048 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
3049 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
3050 (egetenv): Likewise.
3051 * doprnt.c (doprnt): Likewise.
3052 * editfns.c (set_time_zone_rule, format2): Likewise.
3053 * emacs.c (decode_env_path): Likewise.
3054 * eval.c (signal_error, error): Likewise.
3055 * insdel.c (replace_range_2): Likewise.
3056 * keyboard.c (cmd_error_internal): Likewise.
3057 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
3058 * print.c (write_string, write_string_1, print_error_message):
3059 Likewise.
3060 * vm-limit.c (warn_function, memory_warnings): Likewise.
3061 * xdisp.c (message1, message1_nolog, message_with_string)
3062 (vmessage, message, message_nolog): Likewise.
3063 * emacs.c: Remove duplicate declaration.
3064 * keyboard.h: Likewise.
3065 * lisp.h: Update prototypes.
3066
3067 * eval.c: Fix indentation problem.
3068
3069 * keyboard.c: Include "process.h"
3070
3071 * eval.c: Remove obsolete noinline declaration.
3072 * fns.c: Likewise.
3073
3074 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
3075
3076 * doprnt.c (doprnt): Take a va_list argument instead of count and
3077 pointer.
3078 * eval.c (error): Change to a standard-C variadic function.
3079 * xdisp.c (vmessage): Renamed from message, made static, and
3080 changed to take a va_list argument.
3081 (message): New variadic wrapper.
3082 (message_nolog): Now a variadic function, calling vmessage.
3083 * lisp.h: Include stdarg.h for va_list.
3084 (doprnt, error, message, message_nolog): Decls updated.
3085
3086 2010-07-11 Eli Zaretskii <eliz@gnu.org>
3087
3088 * process.c (syms_of_process) <delete-exited-processes>: Define
3089 even if !subprocesses.
3090 (delete_exited_processes): Ditto.
3091
3092 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
3093 (delete_exited_processes): Don't define.
3094
3095 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
3096
3097 * frame.c (make_frame): Initialize menu_bar_lines and
3098 tool_bar_lines members.
3099 (make_initial_frame, make_terminal_frame): Initialize
3100 menu_bar_lines using value of menu-bar-mode.
3101
3102 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
3103
3104 2010-07-10 Eli Zaretskii <eliz@gnu.org>
3105
3106 * process.c: Reshuffle #include's. Condition some of the global
3107 and static variables on `subprocesses'.
3108 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3109 Leave only one implementation.
3110 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
3111 (kill_buffer_processes, Flist_system_processes)
3112 (Fprocess_attributes, init_process, syms_of_process): Unify the
3113 implementations for with subprocesses and without them.
3114
3115 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
3116
3117 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
3118 correct size for Motif.
3119 (free_frame_menubar): Call x_set_window_size to update frame size.
3120
3121 * xfns.c (x_window): Set borderWidth to 0 for pane and
3122 EmacsFrame. Frame size calculation is wrong otherwise.
3123
3124 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
3125
3126 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
3127 allows to suppress errors when polling in Emacs' main loop.
3128 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
3129 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3130 (Fdbus_method_error_internal, Fdbus_send_signal)
3131 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
3132 (Fdbus_register_method): Use it. (Bug#6579)
3133
3134 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3135
3136 * alloc.c: Convert DEFUNs to standard C.
3137 * buffer.c:
3138 * bytecode.c:
3139 * callint.c:
3140 * callproc.c:
3141 * casefiddle.c:
3142 * casetab.c:
3143 * category.c:
3144 * character.c:
3145 * charset.c:
3146 * chartab.c:
3147 * cmds.c:
3148 * coding.c:
3149 * composite.c:
3150 * data.c:
3151 * dbusbind.c:
3152 * dired.c:
3153 * dispnew.c:
3154 * doc.c:
3155 * dosfns.c:
3156 * editfns.c:
3157 * emacs.c:
3158 * eval.c:
3159 * fileio.c:
3160 * filelock.c:
3161 * floatfns.c:
3162 * fns.c:
3163 * font.c:
3164 * fontset.c:
3165 * frame.c:
3166 * fringe.c:
3167 * image.c:
3168 * indent.c:
3169 * insdel.c:
3170 * keyboard.c:
3171 * keymap.c:
3172 * lread.c:
3173 * macros.c:
3174 * marker.c:
3175 * menu.c:
3176 * minibuf.c:
3177 * msdos.c:
3178 * nsfns.m:
3179 * nsmenu.m:
3180 * nsselect.m:
3181 * print.c:
3182 * process.c:
3183 * search.c:
3184 * sound.c:
3185 * syntax.c:
3186 * term.c:
3187 * terminal.c:
3188 * textprop.c:
3189 * undo.c:
3190 * w16select.c:
3191 * w32console.c:
3192 * w32fns.c:
3193 * w32font.c:
3194 * w32menu.c:
3195 * w32proc.c:
3196 * w32select.c:
3197 * window.c:
3198 * xdisp.c:
3199 * xfaces.c:
3200 * xfns.c:
3201 * xmenu.c:
3202 * xselect.c:
3203 * xsettings.c:
3204 * xsmfns.c: Likewise.
3205
3206 2010-07-08 Eli Zaretskii <eliz@gnu.org>
3207
3208 * process.c (kbd_is_on_hold, hold_keyboard_input)
3209 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
3210
3211 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
3212
3213 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
3214 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
3215 unless USE_LUCID.
3216
3217 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3218
3219 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
3220 declaration.
3221
3222 Clean up include guards.
3223 * tparam.c: Remove include guards for config.h, string.h and code
3224 that assumes #ifndef emacs.
3225 * termcap.c:
3226 * unexalpha.c:
3227 * sysdep.c:
3228 * filemode.c:
3229 * filelock.c:
3230 * bidi.c: Likewise.
3231
3232 Remove prefix-args.c
3233 * prefix-args.c: Remove file.
3234 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
3235 * Makefile.in (temacs${EXEEXT}): Remove references to
3236 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
3237 (mostlyclean): Remove reference to prefix-args.
3238 (prefix-args): Remove.
3239
3240 Simplify cstart_of_data, start_of_code and related code.
3241 * mem-limits.h: Remove !emacs and _LIBC conditional code.
3242 (start_of_data): Merge into start_of_data function.
3243 * sysdep.c (start_of_text): Remove. Move simplified versions of
3244 it in the only users: unexaix.c and unexec.c.
3245 (read_input_waiting): Remove local declaration of quit_char.
3246 (start, etext): Remove declarations.
3247 (start_of_data): Merge with the version in mem-limits.h and move
3248 to vm-limits.c.
3249 * vm-limit.c (start_of_data): Merged and simplified version of the
3250 code formerly in mem-limits.h and sysdep.c.
3251 * unexec.c (start): New declaration, moved from sysdep.c.
3252 (start_of_text): Simplified version of the code formerly in sysdep.c.
3253 * unexaix.c (start_of_text): Simplified version of the code
3254 formerly in sysdep.c.
3255 * m/alpha.h (HAVE_TEXT_START): Remove.
3256 (TEXT_START): Move ...
3257 * unexalpha.c (TEXT_START): ... here.
3258 * s/hpux10-20.h (TEXT_START): Remove.
3259 * s/darwin.h (TEXT_START):
3260 * m/mips.h (TEXT_START):
3261 * m/macppc.h (HAVE_TEXT_START):
3262 * m/m68k.h (TEXT_START):
3263 * m/iris4d.h (TEXT_START):
3264 * m/intel386.h (TEXT_START):
3265 * m/ibmrs6000.h (TEXT_START):
3266 * m/ia64.h (HAVE_TEXT_START):
3267 * s/msdos.h (TEXT_START): Likewise.
3268
3269 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
3270
3271 * alloc.c (overrun_check_malloc, overrun_check_realloc)
3272 (overrun_check_free, xstrdup, allocate_string)
3273 (allocate_string_data, compact_small_strings, Fmake_string)
3274 (make_unibyte_string, make_multibyte_string)
3275 (make_string_from_bytes, make_specified_string, make_float)
3276 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
3277 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
3278 memcpy, memmove, memset, memcmp.
3279 * atimer.c (start_atimer, set_alarm): Likewise.
3280 * buffer.c (clone_per_buffer_values, report_overlay_modification)
3281 (mmap_realloc, init_buffer_once): Likewise.
3282 * callint.c (Fcall_interactively): Likewise.
3283 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
3284 (getenv_internal_1): Likewise.
3285 * casefiddle.c (casify_object): Likewise.
3286 * ccl.c (ccl_driver): Likewise.
3287 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
3288 * charset.c (load_charset_map_from_file)
3289 (load_charset_map_from_file, load_charset_map_from_vector)
3290 (Fdefine_charset_internal): Likewise.
3291 * cm.c (Wcm_clear): Likewise.
3292 * coding.c (decode_eol, decode_coding_object)
3293 (Fset_coding_system_priority, make_subsidiaries): Likewise.
3294 * data.c (Faset): Likewise.
3295 * dired.c (directory_files_internal, file_name_completion_stat):
3296 Likewise.
3297 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
3298 (clear_glyph_row, copy_row_except_pointers)
3299 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
3300 (save_current_matrix, restore_current_matrix)
3301 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
3302 (mirror_line_dance, scrolling_window): Likewise.
3303 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
3304 Likewise.
3305 * doprnt.c (doprnt): Likewise.
3306 * editfns.c (Fuser_full_name, make_buffer_string_both)
3307 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
3308 * emacs.c (sort_args): Likewise.
3309 * eval.c (Fapply, Ffuncall): Likewise.
3310 * fileio.c (Ffile_name_directory, make_temp_name)
3311 (Fexpand_file_name, search_embedded_absfilename)
3312 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
3313 (auto_save_error): Likewise.
3314 * fns.c (Fstring_equal, Fcopy_sequence, concat)
3315 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
3316 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3317 (Fmake_hash_table): Likewise.
3318 * fringe.c (Fdefine_fringe_bitmap): Likewise.
3319 * ftfont.c (ftfont_text_extents): Likewise.
3320 * getloadavg.c (getloadavg): Likewise.
3321 * image.c (define_image_type, make_image, make_image_cache)
3322 (x_create_x_image_and_pixmap, xbm_image_p)
3323 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3324 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3325 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3326 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3327 (tiff_image_p, tiff_read_from_memory, gif_image_p)
3328 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3329 Likewise.
3330 * indent.c (scan_for_column, compute_motion): Likewise.
3331 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3332 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3333 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3334 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3335 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3336 (store_user_signal_events, menu_bar_items, tool_bar_items)
3337 (process_tool_bar_item, append_tool_bar_item)
3338 (read_char_minibuf_menu_prompt, read_key_sequence)
3339 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3340 Likewise.
3341 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3342 Likewise.
3343 * lisp.h (STRING_COPYIN): Likewise.
3344 * lread.c (Fload, read1, oblookup): Likewise.
3345 * msdos.c (Frecent_doskeys): Likewise.
3346 * nsfns.m (Fx_create_frame): Likewise.
3347 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3348 Likewise.
3349 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3350 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3351 Likewise.
3352 * nsmenu.m (ns_update_menubar): Likewise.
3353 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3354 * print.c (print_unwind, printchar, strout, print_string)
3355 (print_error_message): Likewise.
3356 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3357 (Fmake_network_process, Fnetwork_interface_list)
3358 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3359 (init_process): Likewise.
3360 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3361 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3362 Likewise.
3363 * scroll.c (do_scrolling, do_direct_scrolling)
3364 (scrolling_max_lines_saved): Likewise.
3365 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3366 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3367 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3368 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3369 (emacs_set_tty): Likewise.
3370 * term.c (encode_terminal_code, calculate_costs)
3371 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3372 Likewise.
3373 * termcap.c (tgetst1, gobble_line): Likewise.
3374 * termhooks.h (EVENT_INIT): Likewise.
3375 * tparam.c (tparam1): Likewise.
3376 * unexalpha.c (unexec): Likewise.
3377 * unexec.c (write_segment): Likewise.
3378 * unexmacosx.c (unexec_write_zero): Likewise.
3379 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3380 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3381 * w32font.c (w32font_list_family, w32font_text_extents)
3382 (w32font_list_internal, w32font_match_internal)
3383 (w32font_open_internal, compute_metrics, Fx_select_font):
3384 Likewise.
3385 * w32menu.c (set_frame_menubar, add_menu_item)
3386 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3387 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3388 * w32uniscribe.c (uniscribe_list_family): Likewise.
3389 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3390 * window.c (make_window, replace_window, set_window_buffer)
3391 (Fsplit_window): Likewise.
3392 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3393 (add_to_log, message3, x_consider_frame_title)
3394 (append_space_for_newline, extend_face_to_end_of_line)
3395 (decode_mode_spec_coding, init_glyph_string): Likewise.
3396 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3397 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3398 (face_attr_equal_p, make_realized_face, make_face_cache)
3399 (free_realized_faces, lookup_named_face, smaller_face)
3400 (face_with_height, lookup_derived_face)
3401 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3402 (Finternal_set_font_selection_order, realize_default_face)
3403 (compute_char_face, face_at_buffer_position)
3404 (face_for_overlay_string, face_at_string_position, merge_faces):
3405 Likewise.
3406 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3407 (Fx_window_property, x_create_tip_frame)
3408 (Fx_backspace_delete_keys_p): Likewise.
3409 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3410 (xfont_text_extents): Likewise.
3411 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3412 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3413 * xselect.c (x_queue_event, x_get_window_property)
3414 (receive_incremental_selection): Likewise.
3415 * xsmfns.c (x_session_check_input): Likewise.
3416 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3417 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3418 Likewise.
3419 * character.h (BCOPY_SHORT): Removed.
3420 * config.in: Regenerate.
3421 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3422 * emacs.c (main) [PROFILING]: Don't declare
3423 dump_opcode_frequencies.
3424 * lisp.h (safe_bcopy): Remove declaration.
3425 (memset) [!HAVE_MEMSET]: Declare.
3426 (memcpy) [!HAVE_MEMCPY]: Likewise.
3427 (memmove) [!HAVE_MEMMOVE]: Likewise.
3428 (memcmp) [!HAVE_MEMCMP]: Likewise.
3429 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3430 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3431 Don't define.
3432 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3433 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3434 (BCOPY_DOWNWARD_SAFE): Don't define.
3435 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3436 (memcpy) [!HAVE_MEMCPY]: Define.
3437 (memmove) [!HAVE_MEMMOVE]: Define.
3438 (memcmp) [!HAVE_MEMCMP]: Define.
3439
3440 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3441
3442 * process.c (kbd_is_on_hold): New variable.
3443 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3444 New functions.
3445 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3446 select on empty input mask.
3447 (init_process): Initialize kbd_is_on_hold to 0.
3448
3449 * process.h (hold_keyboard_input, unhold_keyboard_input)
3450 (kbd_on_hold_p): Declare.
3451
3452 * keyboard.c (input_available_signal): Declare.
3453 (kbd_buffer_nr_stored): New function.
3454 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3455 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3456 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3457 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3458 (tty_read_avail_input): If input is on hold, return.
3459 Don't read more that free slots in kbd_buffer (Bug#6571).
3460
3461 2010-07-07 Eli Zaretskii <eliz@gnu.org>
3462
3463 * msdos.h:
3464 * msdos.c:
3465 * dosfns.c:
3466 * w16select.c: Convert function definitions to ANSI C.
3467
3468 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3469 Remove unused prototypes.
3470
3471 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
3472
3473 * coding.c, sysdep.c: Convert some more functions to standard C.
3474
3475 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
3476
3477 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3478 (encode_coding_object): Use SPECPDL_INDEX.
3479 (syms_of_coding): Use DOS_NT.
3480
3481 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3482
3483 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3484
3485 Make the function member of Lisp_Subr use standard C prototypes.
3486 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3487 (DECL_ALIGN): Add a cast for the function.
3488 * eval.c (Feval, Ffuncall): Use the proper type for each type
3489 function call.
3490
3491 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
3492
3493 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3494 fringe face id, so face-remapping-alist works (Bug#6091).
3495
3496 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
3497
3498 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3499 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3500 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3501
3502 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3503
3504 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3505 * lisp.h: Declare x_get_keysym_name.
3506 * keyboard.c (modify_event_symbol): Don't declare
3507 x_get_keysym_name here.
3508
3509 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3510
3511 * ecrt0.c: Revert conversion to standard C.
3512
3513 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3514
3515 * vm-limit.c (memory_warnings):
3516 * keyboard.c (modify_event_symbol):
3517 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3518 (round2, emacs_rint):
3519 * process.c (send_process, old_sigpipe): Convert function
3520 definitions and declarations to standard C.
3521
3522 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
3523
3524 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3525 * xdisp.c: Convert function definitions to standard C.
3526
3527 * cm.c (cmputc): Arg C is now int, not char.
3528 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3529
3530 2010-07-05 James Cloos <cloos@jhcloos.com>
3531
3532 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3533
3534 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3535 _NET_WM_ICON_NAME atoms.
3536
3537 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3538 and _NET_WM_ICON_NAME properties, too, matching what is
3539 done in the Gtk+ case.
3540
3541 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3542
3543 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3544
3545 * xsmfns.c (SSDATA): New macro.
3546 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3547 passed to strlen/strcpy/strcat.
3548 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
3549 7:th arg to XChangeProperty to (unsigned char *).
3550
3551 * xsettings.c (something_changedCB, parse_settings)
3552 (apply_xft_settings): Reformat prototype.
3553 (something_changedCB, init_gconf): Remove unused variable i.
3554 (read_settings): Remove unused variable long_len.
3555
3556 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3557 (xg_get_image_for_pixmap, create_dialog)
3558 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3559 (menuitem_highlight_callback, make_menu_item)
3560 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3561 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3562 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3563 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3564 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3565 (xg_tool_bar_item_expose_callback): Reformat prototype.
3566 (xg_update_menubar): GList *group => GSList *group.
3567 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3568 before use.
3569 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3570 to GTK_IMAGE (wimage).
3571
3572 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3573
3574 * atimer.c: Use "" instead of <> for local includes for
3575 consistency with the rest of the code.
3576
3577 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3578 * xrdb.c (get_system_name):
3579 * window.c (shrink_windows):
3580 * syntax.c (forw_comment):
3581 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3582 (ins_del_costs):
3583 * mem-limits.h (start_of_data):
3584 * lread.c (readevalloop):
3585 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3586 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3587 * frame.c (x_get_focus_frame):
3588 * floatfns.c (fmod_float):
3589 * fileio.c (choose_write_coding_system):
3590 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3591 (malloc_initialize_hook, sort_args, synchronize_locale):
3592 * doprnt.c (doprnt):
3593 * dired.c (compile_pattern):
3594 * data.c (fmod_float):
3595 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3596 (map_char_table_for_charset):
3597 * charset.c (define_charset_internal):
3598 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3599 to standard C.
3600
3601 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
3602 Stefan Monnier <monnier@iro.umontreal.ca>
3603
3604 * lread.c (read1): Fix up last change to not mess up `c'.
3605
3606 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3607
3608 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3609
3610 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3611
3612 Fix prototypes.
3613
3614 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
3615 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
3616 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3617 arg, as required by internal_condition_case_1.
3618 * print.c (strout): Use const char* for arg PTR.
3619 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3620 (analyse_first): Fix "const const".
3621 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
3622 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
3623 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
3624
3625 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3626
3627 * alloc.c: Convert function definitions to standard C.
3628 * atimer.c:
3629 * bidi.c:
3630 * bytecode.c:
3631 * callint.c:
3632 * callproc.c:
3633 * casefiddle.c:
3634 * casetab.c:
3635 * category.c:
3636 * ccl.c:
3637 * character.c:
3638 * charset.c:
3639 * chartab.c:
3640 * cmds.c:
3641 * coding.c:
3642 * composite.c:
3643 * data.c:
3644 * dbusbind.c:
3645 * dired.c:
3646 * dispnew.c:
3647 * doc.c:
3648 * doprnt.c:
3649 * ecrt0.c:
3650 * editfns.c:
3651 * fileio.c:
3652 * filelock.c:
3653 * filemode.c:
3654 * fns.c:
3655 * font.c:
3656 * fontset.c:
3657 * frame.c:
3658 * fringe.c:
3659 * ftfont.c:
3660 * ftxfont.c:
3661 * gtkutil.c:
3662 * indent.c:
3663 * insdel.c:
3664 * intervals.c:
3665 * keymap.c:
3666 * lread.c:
3667 * macros.c:
3668 * marker.c:
3669 * md5.c:
3670 * menu.c:
3671 * minibuf.c:
3672 * prefix-args.c:
3673 * print.c:
3674 * ralloc.c:
3675 * regex.c:
3676 * region-cache.c:
3677 * scroll.c:
3678 * search.c:
3679 * sound.c:
3680 * strftime.c:
3681 * syntax.c:
3682 * sysdep.c:
3683 * termcap.c:
3684 * terminal.c:
3685 * terminfo.c:
3686 * textprop.c:
3687 * tparam.c:
3688 * undo.c:
3689 * unexelf.c:
3690 * window.c:
3691 * xfaces.c:
3692 * xfns.c:
3693 * xfont.c:
3694 * xftfont.c:
3695 * xgselect.c:
3696 * xmenu.c:
3697 * xrdb.c:
3698 * xselect.c:
3699 * xsettings.c:
3700 * xsmfns.c:
3701 * xterm.c: Likewise.
3702
3703 2010-07-03 Eli Zaretskii <eliz@gnu.org>
3704
3705 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3706 frames other than the initial one. Fix reversal of colors when
3707 `reverse' is specified in the frame parameters. Call
3708 update_face_from_frame_parameter instead of
3709 internal-set-lisp-face-attribute. Initialize screen colors from
3710 initial_screen_colors[] when f->default_face_done_p is zero,
3711 instead of depending on being called with default-frame-alist as
3712 the alist argument.
3713
3714 * xfaces.c (update_face_from_frame_parameter): Move out of
3715 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3716 with HAVE_WINDOW_SYSTEM.
3717
3718 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3719 to menu-bar-mode, if not set in the frame parameters or in
3720 default-frame-alist.
3721
3722 * w32console.c (sys_tputs): Adjust argument list to prototype in
3723 term.c.
3724
3725 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
3726
3727 * lisp.h (memory_warnings): Fix prototype.
3728
3729 * cm.h (evalcost): Fix prototype.
3730
3731 * cm.c (evalcost): Fix arg type.
3732
3733 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3734
3735 * term.c (term_clear_mouse_face, Fidentity):
3736 * syssignal.h (signal_handler_t):
3737 * lisp.h (memory_warnings):
3738 * coding.h (preferred_coding_system):
3739 * cm.h (evalcost):
3740 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3741
3742 2010-07-02 Eli Zaretskii <eliz@gnu.org>
3743
3744 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3745 from prototypes.
3746
3747 * msdos.h (load_pixmap): Don't define away.
3748
3749 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3750
3751 * lisp.h:
3752 * atimer.h: Remove define for P_.
3753
3754 * alloc.c: Remove __P and P_ from .c and .m files.
3755 * atimer.c:
3756 * buffer.c:
3757 * callint.c:
3758 * category.c:
3759 * charset.c:
3760 * chartab.c:
3761 * cm.c:
3762 * coding.c:
3763 * composite.c:
3764 * data.c:
3765 * dired.c:
3766 * dispnew.c:
3767 * doc.c:
3768 * editfns.c:
3769 * emacs.c:
3770 * eval.c:
3771 * fileio.c:
3772 * filelock.c:
3773 * fns.c:
3774 * font.c:
3775 * fontset.c:
3776 * frame.c:
3777 * ftfont.c:
3778 * ftxfont.c:
3779 * gmalloc.c:
3780 * gtkutil.c:
3781 * image.c:
3782 * indent.c:
3783 * intervals.c:
3784 * keyboard.c:
3785 * keymap.c:
3786 * lread.c:
3787 * marker.c:
3788 * menu.c:
3789 * minibuf.c:
3790 * print.c:
3791 * process.c:
3792 * scroll.c:
3793 * search.c:
3794 * sound.c:
3795 * strftime.c:
3796 * syntax.c:
3797 * sysdep.c:
3798 * term.c:
3799 * terminal.c:
3800 * textprop.c:
3801 * unexalpha.c:
3802 * w32console.c:
3803 * w32fns.c:
3804 * w32font.c:
3805 * w32menu.c:
3806 * w32term.c:
3807 * w32uniscribe.c:
3808 * window.c:
3809 * xdisp.c:
3810 * xfaces.c:
3811 * xfns.c:
3812 * xfont.c:
3813 * xftfont.c:
3814 * xmenu.c:
3815 * xselect.c:
3816 * xterm.c: Likewise.
3817
3818 Remove P_ and __P macros.
3819 * atimer.h: Remove P_ and __P macros.
3820 * buffer.h:
3821 * category.h:
3822 * ccl.h:
3823 * character.h:
3824 * charset.h:
3825 * cm.h:
3826 * coding.h:
3827 * composite.h:
3828 * dispextern.h:
3829 * disptab.h:
3830 * dosfns.h:
3831 * font.h:
3832 * fontset.h:
3833 * frame.h:
3834 * gtkutil.h:
3835 * indent.h:
3836 * intervals.h:
3837 * keyboard.h:
3838 * keymap.h:
3839 * lisp.h:
3840 * macros.h:
3841 * md5.h:
3842 * menu.h:
3843 * msdos.h:
3844 * nsterm.h:
3845 * puresize.h:
3846 * region-cache.h:
3847 * syntax.h:
3848 * syssignal.h:
3849 * systime.h:
3850 * termhooks.h:
3851 * w32font.h:
3852 * w32term.h:
3853 * widget.h:
3854 * window.h:
3855 * xgselect.h:
3856 * xsettings.h:
3857 * xterm.h: Likewise.
3858
3859 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3860
3861 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3862
3863 Cleanup old code.
3864 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3865 * syssignal.h: Remove code for Lynx, not supported anymore.
3866 * vm-limit.c: Remove unused code the depends on emacs not being
3867 defined and NO_LIM_DATA being defined.
3868 * mem-limits.h: Remove dead code.
3869
3870 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3871
3872 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3873
3874 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3875 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3876
3877 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3878 parameters, they are already absolute.
3879
3880 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3881 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
3882
3883 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3884
3885 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3886 Update FRAME_TOOLBAR_HEIGHT.
3887
3888 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3889 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
3890
3891 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
3892
3893 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3894 check default-frame-alist.
3895
3896 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3897
3898 * process.c (create_process): Avoid using invalid file descriptors.
3899
3900 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3901
3902 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3903
3904 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3905 Improve documentation. Return font regardless of use_system_font.
3906 (syms_of_xsettings): Improve documentation for font-use-system-font.
3907
3908 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
3909
3910 * xfaces.c (realize_face): Garbage the frame if a face is removed
3911 (Bug#6593).
3912
3913 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3914
3915 * keyboard.c: Remove duplicate <setjmp.h>.
3916 (read_key_sequence): Remove volatile qualifiers.
3917
3918 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3919
3920 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3921 (struct glyph_row): New members left_fringe_offset and
3922 right_fringe_offset.
3923
3924 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3925 specially.
3926 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3927 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3928
3929 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
3930 Take account of bitmap offset.
3931 (draw_window_fringes): Take account of window vscroll.
3932 (update_window_fringes): Likewise. Extend top-aligned top indicator
3933 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3934 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3935 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3936
3937 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3938
3939 * w32fns.c (Qtooltip): Declare.
3940 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3941
3942 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3943
3944 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3945 grab on just Press (Bug#6499).
3946
3947 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
3948
3949 * frame.c (Qtooltip): New var.
3950 (delete_frame): Use it. Fix faulty if statement. Don't update
3951 mode line for tooltip frames. Suggested by Martin Rudalics.
3952
3953 * xfns.c (x_create_tip_frame):
3954 * w32fns.c (x_create_tip_frame): Use it.
3955
3956 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
3957
3958 * xftfont.c (xftfont_open): Check font width one by one also when
3959 spacing is dual.
3960
3961 * ftfont.c (ftfont_open): Ditto.
3962
3963 2010-06-30 Glenn Morris <rgm@gnu.org>
3964
3965 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3966
3967 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3968
3969 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3970 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3971 * s/darwin.h (SYSTEM_MALLOC):
3972 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3973
3974 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3975
3976 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3977 (ns_get_screen): Don't assign integer to f.
3978 (Fx_display_color_cells): Declarations before statements.
3979
3980 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3981
3982 * xfns.c (x_default_font_parameter): Remove got_from_system
3983 (Bug#6526).
3984
3985 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3986 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3987 defines based on what configure finds.
3988
3989 * xterm.c (XTflash): Use gtk_widget_get_window.
3990 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3991 gtk_adjustment_get_page_size.
3992 (handle_one_xevent): Use gtk_widget_get_mapped.
3993 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3994 messages.
3995
3996 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3997
3998 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3999 HAVE_GTK_FILE_SELECTION_NEW.
4000
4001 * gtkutil.c (xg_display_open, xg_display_close): Remove
4002 HAVE_GTK_MULTIDISPLAY, it is always defined.
4003 (xg_display_open): Return type is void.
4004 (gtk_widget_set_has_window)
4005 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
4006 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
4007 (gtk_adjustment_set_page_increment)
4008 (gtk_adjustment_get_step_increment): #define these if not found
4009 by configure.
4010 (remove_submenu): New define based on Gtk+ version.
4011 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
4012 gtk_widget_get_window.
4013 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
4014 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
4015 (create_dialog): Use gtk_dialog_get_action_area and
4016 gtk_dialog_get_content_area.
4017 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
4018 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
4019 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
4020 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
4021 g_object_ref and g_object_unref.
4022 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
4023 gtk_widget_get_sensitive.
4024 (xg_update_submenu): Use remove_submenu.
4025 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
4026 properties instead to get old x and y position.
4027 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
4028 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
4029 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
4030 (xg_get_tool_bar_widgets): New function.
4031 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
4032 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
4033 (toolbar_set_orientation): New #define based on if configure
4034 finds gtk_orientable_set_orientation.
4035 (xg_create_tool_bar): Call toolbar_set_orientation.
4036 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
4037 instead of gtk_box_pack_start_defaults.
4038
4039 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
4040
4041 * cmds.c (Fdelete_backward_char): Move into Lisp.
4042
4043 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
4044
4045 * s/freebsd.h (BSD4_2): Remove redundant definition.
4046 bsd-common.h defines it already.
4047
4048 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
4049
4050 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
4051 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
4052 tool-bar-mode, which are now set using these X resources at
4053 startup, to determine the defaults (Bug#2249).
4054
4055 * w32fns.c (Fx_create_frame):
4056 * nsfns.m (Fx_create_frame): Likewise.
4057
4058 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
4059
4060 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
4061
4062 * gtkutil.c (xg_update_scrollbar_pos):
4063 Avoid C99 mid-block variable declaration.
4064
4065 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
4066
4067 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
4068
4069 * gtkutil.h (xg_show_scroll_bar): Remove.
4070
4071 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
4072 if height is less than scroll bar min size.
4073 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
4074
4075 * xfns.c (x_default_font_parameter): Try to open font from system
4076 before using it (bug#6478). Rename got_from_gconf to got_from_system.
4077
4078 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
4079
4080 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
4081
4082 2010-06-20 Eli Zaretskii <eliz@gnu.org>
4083
4084 * xdisp.c (try_scrolling): When scroll-conservatively is set to
4085 most-positive-fixnum, be extra accurate when scrolling window
4086 start, to avoid missing the cursor line.
4087
4088 2010-06-19 Eli Zaretskii <eliz@gnu.org>
4089
4090 * xdisp.c (try_scrolling): Compute the limit for searching point
4091 in forward scroll from scroll_max, instead of an arbitrary limit
4092 of 10 screen lines. See
4093 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
4094 and
4095 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
4096 for details.
4097
4098 2010-06-16 Glenn Morris <rgm@gnu.org>
4099
4100 * editfns.c (Fbyte_to_string): Pacify compiler.
4101
4102 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
4103
4104 * lread.c (read1): Phase out old-style backquotes a bit more.
4105
4106 2010-06-12 Eli Zaretskii <eliz@gnu.org>
4107
4108 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
4109 bidimirror.h.
4110
4111 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
4112
4113 * bidi.c (bidi_initialize): Remove explicit initialization of
4114 bidi_type_table; include biditype.h instead. Don't support
4115 entries whose second codepoint is zero. Initialize bidi_mirror_table.
4116 (bidi_mirror_char): Use bidi_mirror_table.
4117
4118 * biditype.h: New file.
4119
4120 * bidimirror.h: New file.
4121
4122 * window.c (syms_of_window): Doc fix (bug#6409).
4123
4124 2010-06-12 Romain Francoise <romain@orebokech.com>
4125
4126 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
4127 ediff-hook.
4128
4129 2010-06-10 Glenn Morris <rgm@gnu.org>
4130
4131 * editfns.c (Fbyte_to_string): Pacify compiler.
4132
4133 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
4134
4135 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
4136
4137 * alloc.c (Fmake_byte_code): Don't access undefined argument
4138 (Bug#6517).
4139
4140 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
4141
4142 * xdisp.c (next_element_from_image): Ensure that after-strings are
4143 read the next time we hit handle_stop (Bug#1336).
4144
4145 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
4146
4147 * lread.c (read1): Signal error if #s is not followed by paren.
4148
4149 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
4150
4151 * image.c (free_image): Mark frame as garbaged (Bug#6426).
4152
4153 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
4154
4155 2010-06-15 Glenn Morris <rgm@gnu.org>
4156
4157 * editfns.c (Fbyte_to_string): Pacify compiler.
4158
4159 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
4160
4161 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
4162 Check `object's type before accessing its guts.
4163
4164 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
4165
4166 * s/usg5-4.h: Fix previous change.
4167 Suggested by Lawrence Mitchell <wence@gmx.li>
4168
4169 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
4170
4171 * minibuf.c (Fall_completions): Add more checks.
4172
4173 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
4174
4175 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
4176
4177 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
4178
4179 * lread.c (X_OK): Remove, unused.
4180
4181 * dispnew.c: Remove obsolete comment.
4182
4183 Remove INCLUDED_FCNTL.
4184 * xterm.c (INCLUDED_FCNTL):
4185 * callproc.c (INCLUDED_FCNTL):
4186 * alloc.c (INCLUDED_FCNTL):
4187 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
4188 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
4189
4190 2010-06-07 Martin Rudalics <rudalics@gmx.at>
4191
4192 * window.c (Fselect_window): Move `record_buffer' up to the
4193 beginning of this function, so the buffer gets recorded
4194 even if the selected window does not change.
4195 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
4196
4197 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
4198
4199 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
4200 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
4201
4202 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
4203
4204 Remove BSTRING related code, all platforms define it.
4205 * s/usg5-4.h (BSTRING): Remove definition.
4206 * s/template.h (BSTRING):
4207 * s/msdos.h (BSTRING):
4208 * s/ms-w32.h (BSTRING):
4209 * s/hpux10-20.h (BSTRING):
4210 * s/gnu-linux.h (BSTRING):
4211 * s/darwin.h (BSTRING):
4212 * s/cygwin.h (BSTRING):
4213 * s/bsd-common.h (BSTRING):
4214 * s/aix4-2.h (BSTRING): Likewise.
4215 * sysdep.c: Remove code depending on BSTRING not being defined.
4216
4217 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
4218
4219 Remove obsolete macro BASE_LEADING_CODE_P.
4220 * character.h (BASE_LEADING_CODE_P): Remove.
4221 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
4222 * buffer.c (Fset_buffer_multibyte):
4223 * indent.c (scan_for_column, compute_motion):
4224 * insdel.c (count_combining_before, count_combining_after):
4225 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
4226
4227 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
4228
4229 Turn `directory-sep-char' into a noop.
4230
4231 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
4232 (DIRECTORY_SEP): Define unconditionally.
4233
4234 * s/ms-w32.h (DIRECTORY_SEP): Remove.
4235
4236 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
4237 call dostounix_filename directly.
4238
4239 * fileio.c (CORRECT_DIR_SEPS): Remove.
4240 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
4241 (Fsubstitute_in_file_name): Use dostounix_filename instead.
4242 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
4243 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
4244
4245 * w32proc.c (CORRECT_DIR_SEPS): Remove.
4246 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
4247
4248 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
4249
4250 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
4251 (Bug#6346)
4252
4253 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
4254
4255 * ccl.c (Fccl_program_p): Fix typo in docstring.
4256
4257 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
4258
4259 Move UNEXEC definition to autoconf.
4260 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
4261 * s/sol2-10.h (UNEXEC):
4262 * s/irix6-5.h (UNEXEC):
4263 * s/hpux10-20.h (UNEXEC):
4264 * s/gnu-linux.h (UNEXEC):
4265 * s/darwin.h (UNEXEC):
4266 * s/cygwin.h (UNEXEC):
4267 * s/bsd-common.h (UNEXEC):
4268 * s/aix4-2.h (UNEXEC):
4269 * m/alpha.h (UNEXEC): Likewise.
4270 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
4271
4272 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
4273
4274 Remove obsolete pre-unicode2 macros.
4275 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
4276 * composite.c (composition_reseat_it):
4277 * data.c (Faset):
4278 * fns.c (Ffillarray):
4279 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
4280 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
4281
4282 2010-06-03 Juri Linkov <juri@jurta.org>
4283
4284 * buffer.c (Fother_buffer): Add CHECK_FRAME.
4285 (Fswitch_to_buffer): Remove unused variable `err'.
4286
4287 2010-06-03 Glenn Morris <rgm@gnu.org>
4288
4289 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
4290
4291 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
4292 now that AH_BOTTOM does it.
4293
4294 * m/hp800.h (HAVE_ALLOCA):
4295 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
4296
4297 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
4298 Remove NOT_C_CODE tests, it is always true now.
4299
4300 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
4301
4302 Fix config.h includes.
4303 * xsettings.c:
4304 * xgselect.c:
4305 * nsterm.m:
4306 * nsselect.m:
4307 * nsimage.m:
4308 * nsfont.m:
4309 * nsfns.m:
4310 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
4311 other files do.
4312
4313 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4314
4315 * s/sol2-6.h: Remove obsolete comments.
4316
4317 Remove unnecessary alloca.h includes.
4318 * keymap.c: Do not include alloca.h, config.h does that.
4319 * sysdep.c: Likewise. Do not define fwrite, not used.
4320
4321 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4322
4323 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4324 the HAVE_TERMIO where it belongs (bug#6149).
4325
4326 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4327
4328 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4329 of bug#6305).
4330
4331 2010-05-30 Eli Zaretskii <eliz@gnu.org>
4332
4333 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4334 state is always cached (bug#6306).
4335
4336 2010-05-29 Eli Zaretskii <eliz@gnu.org>
4337
4338 Fix cursor motion in bidi-reordered continued lines.
4339 * xdisp.c (try_cursor_movement): Backup to non-continuation line
4340 only after finding point's row. Fix the logic. Rewrite the loop
4341 over continuation lines in bidi-reordered buffers. Return
4342 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4343 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4344
4345 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
4346
4347 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4348
4349 2010-05-28 Kenichi Handa <handa@m17n.org>
4350
4351 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4352 Don't sheck SPEC if it is nil.
4353 (font_list_entities): Call font_delete_unmatched if
4354 Vface_ignored_fonts is non-nil. (Bug#6287)
4355
4356 2010-05-28 Glenn Morris <rgm@gnu.org>
4357
4358 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4359
4360 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
4361
4362 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4363 whether to trash.
4364 (internal_delete_file, Frename_file): Callers changed.
4365 (delete_by_moving_to_trash): Doc fix.
4366 (Fdelete_directory_internal): Don't move to trash.
4367
4368 * callproc.c (delete_temp_file):
4369 * buffer.c (Fkill_buffer): Callers changed.
4370
4371 * lisp.h: Update prototype.
4372
4373 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
4374
4375 * xdisp.c (redisplay_window): After redisplay, check if point is
4376 still valid before setting it (Bug#6177).
4377
4378 2010-05-27 Glenn Morris <rgm@gnu.org>
4379
4380 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4381 Convert comments to Makefile format.
4382
4383 * Makefile.in (bootstrap-clean): No more Makefile.c.
4384
4385 2010-05-26 Glenn Morris <rgm@gnu.org>
4386
4387 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4388 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4389
4390 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4391 Remove.
4392 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4393
4394 2010-05-26 Kenichi Handa <handa@m17n.org>
4395
4396 * composite.c (composition_compute_stop_pos): Fix condition for
4397 backward scanning.
4398
4399 2010-05-25 Glenn Morris <rgm@gnu.org>
4400
4401 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4402 Move before TEMACS_LDFLAGS.
4403 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4404 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4405
4406 * Makefile.in (NOT_C_CODE): No longer define.
4407 (config.h): No longer include.
4408
4409 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4410 variables it may reference.
4411
4412 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4413 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4414
4415 2010-05-25 Kenichi Handa <handa@m17n.org>
4416
4417 * dispextern.h (struct composition_it): New members rule_idx and
4418 charpos.
4419
4420 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4421 that the character positions of IT point the last character of the
4422 current grapheme cluster.
4423 (next_element_from_composition): Don't change character positions
4424 of IT.
4425 (append_composite_glyph): Set glyph->charpos to
4426 it->cmp_it.charpos.
4427
4428 * composite.c (autocmp_chars): Change the first argument to RULE,
4429 and try composition with RULE only.
4430 (composition_compute_stop_pos): Record the index number of the
4431 composition rule in CMP_IT->rule_idx.
4432 (composition_reseat_it): Call autocmp_chars repeatedly until the
4433 correct rule of the composition is found.
4434 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4435 is at the last character of the current grapheme cluster when
4436 CMP_IT->reversed_p is nonzero.
4437
4438 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4439
4440 * editfns.c (Fbyte_to_string): New function.
4441
4442 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4443
4444 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4445 Suggested by Masatake YAMATO <yamato@redhat.com>.
4446
4447 2010-05-23 Eli Zaretskii <eliz@gnu.org>
4448
4449 * dispextern.h (init_iterator): Sync prototype with changed definition.
4450
4451 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4452
4453 * s/netbsd.h: If terminfo is found, use it in preference to
4454 termcap. (Bug#6190) [Backport from trunk]
4455
4456 2010-05-19 Eli Zaretskii <eliz@gnu.org>
4457
4458 Redesign and reimplement bidi-aware edge positions of glyph rows.
4459
4460 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4461 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4462 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4463 and maxpos members instead of start.pos and end.pos, respectively.
4464
4465 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4466 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4467 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
4468 (try_window_reusing_current_matrix, try_window_id):
4469 Use ROW->minpos rather than ROW->start.pos.
4470 (init_from_display_pos, init_iterator): Use EMACS_INT for
4471 character and byte positions.
4472 (find_row_edges): Rename from find_row_end. Accept additional
4473 arguments for minimum and maximum buffer positions seen by
4474 display_line for this row. Don't use iterator to find the
4475 position following the maximum one; instead, increment the
4476 position found by display_line directly. Fix logic; eol_pos
4477 should be tested before the rest. Handle the case of characters
4478 delivered from display vector (bug#6036). Fix tests related to
4479 it->method. Handle the truncated_on_right_p rows.
4480 (RECORD_MAX_MIN_POS): New macro.
4481 (display_line): Use it to record the minimum and maximum buffer
4482 positions for glyphs in the row being assembled. Record the
4483 position of the newline that terminates the line. If word wrap is
4484 in effect, restore minimum and maximum positions seen up to the
4485 wrap point, when iterator returns to it.
4486 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4487 row and cursor not already at point. Restore original pre-bidi
4488 code for unidirectional buffers.
4489
4490 * dispnew.c (increment_row_positions, check_matrix_invariants):
4491 Increment and check row->start.pos and row->end.pos, in addition
4492 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4493
4494 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4495 Display truncated_on_left_p and truncated_on_right_p flags.
4496 Formatting fixes.
4497 (pmtxrows): Display the ordinal number of each row. Don't display
4498 rows beyond the last one.
4499
4500 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4501 it is not copied by bidi_copy_it.
4502
4503 2010-05-22 Eli Zaretskii <eliz@gnu.org>
4504
4505 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4506 (Bug#6237)
4507
4508 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
4509
4510 * image.c (Fimage_flush): Rename from image-refresh.
4511
4512 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
4513
4514 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4515 just one window.
4516
4517 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4518 (clear_image_cache): If the number of cached images is unusually
4519 large, decrease the cache eviction delay (Bug#6230).
4520
4521 2010-05-21 Glenn Morris <rgm@gnu.org>
4522
4523 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4524 Move these rules to ns.mk.
4525 * ns.mk: New file.
4526
4527 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4528
4529 * Makefile.in (CANNOT_DUMP): New, set by configure.
4530 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4531
4532 2010-05-20 Juri Linkov <juri@jurta.org>
4533
4534 * fileio.c (Fdelete_file): Change interative spec to use
4535 `read-file-name' like in `find-file-read-args' where the default
4536 value is `default-directory' instead of `buffer-file-name'.
4537 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4538
4539 2010-05-20 Kevin Ryde <user42@zip.com.au>
4540
4541 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4542 (Voverriding_terminal_local_map, Vsystem_key_alist)
4543 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4544
4545 2010-05-20 Glenn Morris <rgm@gnu.org>
4546
4547 * Makefile.in (DEPDIR): New constant.
4548 (DEPFLAGS): Set with configure, not cpp.
4549 (MKDEPDIR): New, set by configure.
4550 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4551 (clean): Use $DEPDIR.
4552 (deps_frag): Include from configure.
4553 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4554 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4555
4556 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4557 reallocation of the cache. (Bug#6210)
4558
4559 2010-05-19 Glenn Morris <rgm@gnu.org>
4560
4561 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4562
4563 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4564 (GNULIB_VAR): Remove.
4565 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4566
4567 * m/ibms390x.h (LINKER):
4568 * m/macppc.h (LINKER) [GNU_LINUX]:
4569 * s/aix4-2.h (ORDINARY_LINK):
4570 * s/cygwin.h (LINKER):
4571 * s/darwin.h (ORDINARY_LINK):
4572 * s/gnu.h (ORDINARY_LINK):
4573 * s/netbsd.h (LINKER):
4574 * s/usg5-4.h (ORDINARY_LINK):
4575 Move to configure.
4576
4577 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4578
4579 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
4580
4581 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4582 prevent stack overflow if number of arguments is too large
4583 (Bug#6214).
4584
4585 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
4586
4587 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4588
4589 2010-05-18 Glenn Morris <rgm@gnu.org>
4590
4591 * s/gnu-linux.h: Combine two conditionals.
4592
4593 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
4594 $(POST_ALLOC_OBJ).
4595
4596 * Makefile.in (RALLOC_OBJ): New, set by configure.
4597 (rallocobj): Replace with the previous variable.
4598 (otherobj): Use $RALLOC_OBJ.
4599
4600 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4601 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4602
4603 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4604 (gmallocobj, vmlimitobj): Replace with previous two variables.
4605 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4606
4607 2010-05-17 Glenn Morris <rgm@gnu.org>
4608
4609 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4610 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4611
4612 2010-05-16 Glenn Morris <rgm@gnu.org>
4613
4614 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4615
4616 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4617
4618 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4619 trailing "/".
4620
4621 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4622 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4623
4624 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4625 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4626 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4627 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4628 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4629
4630 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4631 Remove ${STARTFLAGS}, nothing ever sets it.
4632
4633 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4634
4635 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4636
4637 2010-05-16 Glenn Morris <rgm@gnu.org>
4638
4639 * Makefile.in (LIBX_BASE): Always define.
4640
4641 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4642
4643 * Makefile.in (LIBXT): Always define.
4644
4645 2010-05-15 Glenn Morris <rgm@gnu.org>
4646
4647 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
4648
4649 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4650 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4651
4652 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
4653
4654 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
4655 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4656
4657 * emacs.c (main): Initialize initial-environment and
4658 process-environment before generating from env, not after.
4659
4660 Handle --version reasonably in CANNOT_DUMP configuration.
4661 * emacs.c (emacs_version, emacs_copyright): New string variables.
4662 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4663 (syms_of_emacs): Defvar them, and initialize them from the C
4664 string variables.
4665 (main): If initialization hasn't been done, print initial version
4666 info from the C strings, instead of starting an interactive session.
4667
4668 2010-05-15 Eli Zaretskii <eliz@gnu.org>
4669
4670 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4671 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
4672 (bidi_paragraph_init): Remove redundant assertion that we are at
4673 the beginning of a line after call to bidi_find_paragraph_start.
4674
4675 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4676 (syms_of_xdisp): Defsubr it.
4677
4678 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4679
4680 * Makefile.in: Fix MSDOS-related comments.
4681
4682 2010-05-15 Glenn Morris <rgm@gnu.org>
4683
4684 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4685 (really-lwlib, really-oldXMenu): Always define.
4686 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4687
4688 * Makefile.in: Simplify cpp conditional.
4689
4690 * Makefile.in (${ns_appdir}): Simplify using umask.
4691
4692 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4693
4694 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4695
4696 * eval.c (specbind): Remove left-over duplicate test.
4697 Disallow let-binding frame-local vars. Add comment.
4698
4699 2010-05-14 Eli Zaretskii <eliz@gnu.org>
4700
4701 Make the cache of bidi iterator states dynamically allocated.
4702 * bidi.c (bidi_cache_shrink): New function.
4703 (bidi_init_it): Call it.
4704 (bidi_cache_iterator_state): Enlarge the cache if needed.
4705
4706 * bidi.c (bidi_move_to_visually_next): Rename from
4707 bidi_get_next_char_visually. All callers changed.
4708
4709 2010-05-14 Kenichi Handa <handa@m17n.org>
4710
4711 * dispextern.h (struct composition_it): New member reversed_p.
4712
4713 * composite.c (composition_compute_stop_pos): Search backward if
4714 ENDPOS < CHARPOS.
4715 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4716 Set CMP_IT->reversed_p.
4717 (composition_update_it): Pay attention to CMP_IT->reversed_p.
4718
4719 * xdisp.c (set_iterator_to_next):
4720 Call composition_compute_stop_pos with negative ENDPOS if we are
4721 scanning backward. Call composition_compute_stop_pos if scan
4722 direction is changed.
4723 (next_element_from_buffer): Call composition_compute_stop_pos with
4724 negative ENDPOS if we are scanning backward.
4725 (next_element_from_composition): Pay attention to
4726 IT->cmp_it.reversed_p.
4727
4728 2010-05-14 Kenichi Handa <handa@m17n.org>
4729
4730 * font.c (font_range): Return the range for the font found at first.
4731
4732 2010-05-14 Glenn Morris <rgm@gnu.org>
4733
4734 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4735
4736 * Makefile.in (mktime, X11, register): Move undefs to configure.
4737
4738 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4739 (MSDOS_X_OBJ): New variable.
4740 (MSDOS_SUPPORT_REAL): New constant.
4741 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4742 (obj): Use MSDOS_X_OBJ.
4743 (lisp): Use MSDOS_SUPPORT as a variable.
4744
4745 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4746 (GPM_MOUSE_SUPPORT): Now it's a constant.
4747 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4748 not cpp.
4749
4750 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
4751 (ns_appresdir): Remove, unused.
4752
4753 * Makefile.in (SHELL): Move outside cpp section.
4754
4755 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4756
4757 2010-05-13 Glenn Morris <rgm@gnu.org>
4758
4759 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4760 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4761
4762 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4763 HAVE_WINDOW_SYSTEM must be too.
4764
4765 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4766 (lisp): Remove WINNT_SUPPORT.
4767
4768 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4769 Let configure set these variables (to empty) in this case as well.
4770
4771 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4772 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4773
4774 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4775 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4776 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4777 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4778 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
4779 the values output by configure.
4780 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4781
4782 2010-05-12 Glenn Morris <rgm@gnu.org>
4783
4784 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4785 (LINKER_WAS_SPECIFIED): Remove.
4786
4787 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4788 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4789 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4790 * s/cygwin.h (LIB_GCC):
4791 * s/freebsd.h (LIB_GCC):
4792 * s/gnu-linux.h (LIB_GCC):
4793 * s/msdos.h (LIB_GCC):
4794 * s/netbsd.h (LIB_GCC):
4795 Move to configure.
4796
4797 2010-05-11 Karel Klic <kklic@redhat.com>
4798
4799 * ftfont.c: Fix incorrect parentheses of #if condition for
4800 definining M17N_FLT_USE_NEW_FEATURE.
4801
4802 2010-05-11 Glenn Morris <rgm@gnu.org>
4803
4804 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4805 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4806
4807 2010-05-10 Eli Zaretskii <eliz@gnu.org>
4808
4809 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4810 unibyte buffers. See
4811 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4812
4813 2010-05-10 Glenn Morris <rgm@gnu.org>
4814
4815 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4816 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4817 (LIBES): Use LIBS_SYSTEM as a variable.
4818 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4819 * s/aix4-2.h (LIBS_SYSTEM):
4820 * s/freebsd.h (LIBS_SYSTEM):
4821 * s/hpux10-20.h (LIBS_SYSTEM):
4822 * s/sol2-6.h (LIBS_SYSTEM):
4823 * s/unixware.h (LIBS_SYSTEM):
4824 Move to configure.
4825
4826 * s/aix4-2.h (MAIL_USE_LOCKF):
4827 * s/bsd-common.h (MAIL_USE_FLOCK):
4828 * s/darwin.h (MAIL_USE_FLOCK):
4829 * s/gnu-linux.h (MAIL_USE_FLOCK):
4830 * s/irix6-5.h (MAIL_USE_FLOCK):
4831 * s/template.h (MAIL_USE_FLOCK):
4832 Move to configure.
4833
4834 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
4835
4836 * Version 23.2 released.
4837
4838 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
4839
4840 * composite.c (autocmp_chars): Save point as marker before calling
4841 auto-composition-function (Bug#5984).
4842
4843 * lisp.h (restore_point_unwind): Add prototype.
4844
4845 * fileio.c (restore_point_unwind): Remove static attribute.
4846
4847 2010-05-08 Kenichi Handa <handa@m17n.org>
4848
4849 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4850 new feature of libotf and m17n-flt.
4851 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4852 Call OTF_check_features even if no specific feature is given.
4853 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4854 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4855 that OUT is NULL. Use OTF_drive_gsub_with_log and
4856 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4857 OTF_drive_gpos.
4858 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
4859 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4860 Setup mflt_enable_new_feature and mflt_try_otf.
4861
4862 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4863
4864 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4865
4866 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4867 box and toolbar (Bug #6139).
4868 (xg_create_tool_bar): Remove comment (Bug #6139).
4869 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4870 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4871
4872 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
4873
4874 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4875 Update dependencies.
4876
4877 2010-05-08 Eli Zaretskii <eliz@gnu.org>
4878
4879 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4880 R2L lines.
4881
4882 2010-05-08 Glenn Morris <rgm@gnu.org>
4883
4884 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4885
4886 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4887 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4888 (termcapobj): Replace with TERMCAP_OBJ.
4889 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4890 (LIBES): Use LIBS_TERMCAP as a variable.
4891
4892 * s/freebsd.h (osreldate.h): No longer include, since this file
4893 does not use __FreeBSD_version any more.
4894
4895 * s/aix4-2.h (TERMINFO):
4896 * s/cygwin.h (TERMINFO):
4897 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4898 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4899 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4900 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4901 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4902 * s/irix6-5.h (TERMINFO):
4903 * s/netbsd.h (LIBS_TERMCAP):
4904 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4905 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4906 * s/usg5-4.h (TERMINFO):
4907 Move to configure.
4908
4909 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4910
4911 * eval.c (unbind_to): Don't unbind a local binding into the global
4912 binding when the local binding disappeared. Inversely, don't unbind
4913 a global binding into a newly created local binding.
4914 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4915 can specify the frame to use, when applicable. Adjust callers.
4916
4917 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
4918 Stefan Monnier <monnier@iro.umontreal.ca>
4919
4920 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4921
4922 2010-05-07 Eli Zaretskii <eliz@gnu.org>
4923
4924 * w32fns.c: Include w32.h.
4925 (Fw32_shell_execute): Decode the error message before passing it
4926 to `error'. (Bug#6126)
4927
4928 * msdos.c (dos_set_window_size):
4929 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4930 instead of `XSYMBOL (foo)->value'.
4931
4932 2010-05-07 Eli Zaretskii <eliz@gnu.org>
4933
4934 Fix the MS-DOS build, broken by autoconfiscation.
4935
4936 * Makefile.in: Don't use Make-style comments past the "start of
4937 cpp stuff" line.
4938 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4939
4940 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4941 edited directly by msdos/sed1v2.inp).
4942
4943 2010-05-07 Glenn Morris <rgm@gnu.org>
4944
4945 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4946 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4947 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4948 move out of cpp section.
4949 * s/freebsd.h (LD_SWITCH_SYSTEM):
4950 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4951 * s/netbsd.h (LD_SWITCH_SYSTEM):
4952 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4953
4954 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4955
4956 Define LIB_STANDARD and START_FILES using autoconf.
4957 * s/usg5-4.h (LIB_STANDARD):
4958 * s/netbsd.h (START_FILES):
4959 * s/irix6-5.h (LIB_STANDARD):
4960 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4961 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4962 * s/freebsd.h (START_FILES):
4963 * s/darwin.h (START_FILES):
4964 * s/cygwin.h (START_FILES):
4965 * s/aix4-2.h (LIB_STANDARD):
4966 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4967 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4968 autoconf, not cpp.
4969
4970 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4971
4972 Remove NEED_BSDTTY and NEED_UNISTD_H.
4973 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4974 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4975 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4976 <sys/ptyio.h> and <unistd.h>.
4977
4978 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4979
4980 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4981 * s/gnu.h (START_FILES): Remove empty definition.
4982
4983 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4984
4985 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4986
4987 2010-05-06 Glenn Morris <rgm@gnu.org>
4988
4989 * Makefile.in (CPP, LN_S): Remove unused variables.
4990
4991 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4992
4993 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4994
4995 2010-05-05 Lawrence Mitchell <wence@gmx.li>
4996
4997 * m/sparc.h: Fix typo in earlier change.
4998
4999 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5000
5001 Misc tweaks.
5002 * eval.c (Fdefvaralias): Remove unintended nested if.
5003 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
5004
5005 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
5006
5007 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
5008
5009 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5010
5011 Remove BSD_PGRPS.
5012 * s/bsd-common.h (BSD_PGRPS): Remove undef.
5013 * s/gnu-linux.h (BSD_PGRPS): Remove.
5014 * term.c (dissociate_if_controlling_tty):
5015 * sysdep.c (narrow_foreground_group, widen_foreground_group)
5016 (init_sys_modes, reset_sys_modes):
5017 * emacs.c (main):
5018 * callproc.c (Fcall_process, child_setup): Remove code depending
5019 on BSD_PGRPS.
5020
5021 Remove POSIX_SIGNALS.
5022 * s/usg5-4.h (POSIX_SIGNALS):
5023 * s/netbsd.h (POSIX_SIGNALS):
5024 * s/msdos.h (POSIX_SIGNALS):
5025 * s/ms-w32.h (POSIX_SIGNALS):
5026 * s/hpux11.h (POSIX_SIGNALS):
5027 * s/gnu.h (POSIX_SIGNALS):
5028 * s/gnu-linux.h (POSIX_SIGNALS):
5029 * s/freebsd.h (POSIX_SIGNALS):
5030 * s/darwin.h (POSIX_SIGNALS):
5031 * s/cygwin.h (POSIX_SIGNALS):
5032 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
5033 * s/unixware.h:
5034 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
5035 * process.c (create_process):
5036 * syssignal.h:
5037 * sysdep.c (wait_for_termination, init_signals):
5038 * process.c (create_process):
5039 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
5040 remove all code that assumes the contrary.
5041
5042 2010-05-04 Glenn Morris <rgm@gnu.org>
5043
5044 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
5045 variable.
5046 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5047 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
5048 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5049 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
5050 LD_SWITCH_SYSTEM_tmp.
5051 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
5052 New variables, set by configure.
5053
5054 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5055 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
5056 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5057 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
5058 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
5059
5060 * s/aix4-2.h (C_SWITCH_SYSTEM):
5061 * m/alpha.h (C_SWITCH_MACHINE):
5062 Move to configure.in.
5063 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
5064 New variables, set by configure.
5065 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
5066 $c_switch_machine and $c_switch_system.
5067
5068 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5069
5070 * s/hpux10-20.h (LIB_STANDARD): New definition.
5071 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
5072 on it, not used anymore.
5073
5074 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
5075
5076 * eval.c (internal_condition_case_n): Rename from
5077 internal_condition_case_2.
5078 (internal_condition_case_2): New function.
5079
5080 * xdisp.c (safe_call): Use internal_condition_case_n.
5081
5082 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
5083 (internal_delete_file, Frename_file): Callers changed.
5084
5085 * buffer.c (Fkill_buffer):
5086 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
5087
5088 * lisp.h: Update prototypes.
5089
5090 2010-05-03 Glenn Morris <rgm@gnu.org>
5091
5092 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
5093 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
5094 (LIBXT): Set with configure, not cpp.
5095 (LIBX): Remove.
5096 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
5097
5098 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5099
5100 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
5101 The FreeBSD is not needed, the default works, Solaris version is
5102 not needed, and the remaining case is not supported by configure.
5103
5104 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
5105
5106 * xsmfns.c (CHDIR_OPT): New define.
5107 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
5108 restarting emacs.
5109
5110 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
5111 shut_down_emacs.
5112
5113 * emacs.c (USAGE1): Mention --chdir.
5114 (main): Handle --chdir.
5115 (standard_args): Add --chdir.
5116 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
5117 #5552).
5118
5119 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
5120
5121 Remove LD_SWITCH_MACHINE.
5122 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
5123 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
5124
5125 Clean up IRIX code.
5126 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
5127 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
5128
5129 Clean up AIX code.
5130 * m/ibmrs6000.inp: Remove file, unused.
5131 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
5132 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
5133 definition ...
5134 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
5135
5136 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
5137 unused.
5138
5139 2010-05-01 Eli Zaretskii <eliz@gnu.org>
5140
5141 Emulate POSIX_SIGNALS on MS-Windows.
5142
5143 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
5144 (SIG_SETMASK, SIG_UNBLOCK): Define.
5145
5146 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
5147 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
5148 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
5149
5150 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
5151 New stubs.
5152
5153 Miscellaneous fixes of bidi display.
5154
5155 * xdisp.c (find_row_end): New function, refactored from display_line.
5156 (display_line): Use it.
5157 (extend_face_to_end_of_line): In almost-filled rows, extend only
5158 if the row is R2L and not continued.
5159 (display_line): Fix prepending of truncation glyphs to R2L rows.
5160 Preserve overlay and string info in row->end.
5161 (insert_left_trunc_glyphs): Support addition of left truncation
5162 glyphs to R2L rows.
5163 (set_cursor_from_row): Don't place cursor on the vertical border
5164 glyph between adjacent windows. Fix a crash when a display string
5165 is continued to the next line. Don't return zero if cursor was
5166 found by `cursor' property of a display string.
5167 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
5168 test for that explicitly.
5169
5170 2010-05-01 Glenn Morris <rgm@gnu.org>
5171
5172 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
5173 for clarity.
5174 (OTHER_OBJ): Remove.
5175 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
5176 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
5177
5178 2010-05-01 Karel Klíč <kklic@redhat.com>
5179
5180 * fileio.c (Ffile_selinux_context): Context functions may return null.
5181
5182 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
5183
5184 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
5185
5186 2010-04-30 Glenn Morris <rgm@gnu.org>
5187
5188 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
5189 (OTHER_OBJ): Define as a separate variable, for clarity.
5190
5191 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
5192
5193 * xsettings.c: include limits.h and update file comment.
5194
5195 2010-04-30 Glenn Morris <rgm@gnu.org>
5196
5197 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
5198 Set with configure, not cpp.
5199 (LIBW): Remove, replace with $TOOLKIT_LIBW.
5200
5201 * Makefile.in (mallocobj): Remove.
5202 (otherobj): Simplify using @OTHER_OBJ@.
5203
5204 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
5205 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
5206 Don't bother making nsgui.h dependency platform-specific.
5207
5208 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
5209
5210 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
5211
5212 * process.c (read_process_output, exec_sentinel): Don't burp if the
5213 sentinel/filter kills the current buffer (bug#6060).
5214
5215 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
5216 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
5217 Remove unused var `args'.
5218 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
5219 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
5220 * doc.c (store_function_docstring): Use XSETCAR.
5221
5222 2010-04-28 Glenn Morris <rgm@gnu.org>
5223
5224 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
5225 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
5226
5227 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
5228
5229 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
5230 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
5231
5232 * Makefile.in (FONT_OBJ): New, set by configure.
5233 (FONT_DRIVERS): Use $FONT_OBJ.
5234
5235 * Makefile.in (LIBXMU): Set with configure, not cpp.
5236 * s/aix4-2.h (LIBXMU):
5237 * s/hpux10-20.h (LIBXMU):
5238 Remove definition, now set in configure.
5239
5240 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
5241
5242 * m/amdx86-64.h [i386]: Move this test to configure.in.
5243
5244 2010-04-27 Glenn Morris <rgm@gnu.org>
5245
5246 * Makefile.in (LIBXTR6): Set with configure, not cpp.
5247 * s/unixware.h (NEED_LIBW): Remove definition.
5248
5249 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
5250 (TOOLKIT_LIBW): New, set by configure.
5251 (@X_TOOLKIT_TYPE@): No longer define it.
5252
5253 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
5254 (MOTIF_LIBW): Set with configure, not cpp.
5255 * s/aix4-2.h (LIB_MOTIF):
5256 * s/gnu-linux.h (LIB_MOTIF):
5257 * s/unixware.h (LIB_MOTIF): Move to configure.in.
5258
5259 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
5260
5261 Reduce CPP usage.
5262 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5263 (obj): Use autoconf for unexec instead of cpp.
5264 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
5265 definitions and undefs. Inline definitions in the only user.
5266 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
5267
5268 2010-04-27 Glenn Morris <rgm@gnu.org>
5269
5270 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
5271 since the defaults (set by the system file) are fine in most cases.
5272 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
5273 * m/ibms390x.h (START_FILES, LIB_STANDARD):
5274 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
5275 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
5276 Remove definitions, since they are set correctly in s/gnu-linux.h.
5277 * s/freebsd.h (START_FILES, LIB_STANDARD):
5278 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5279 * s/hpux10-20.h (START_FILES):
5280 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
5281 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
5282
5283 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
5284 (MOTIF_LIBW): Use $LIBXP.
5285 (otherobj): Use $WIDGET_OBJ.
5286
5287 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
5288
5289 * Makefile.in (LIBS_MACHINE): Remove, unused.
5290
5291 Use autoconf instead of cpp for LIB_MATH.
5292 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
5293 * s/cygwin.h (LIB_MATH): Likewise.
5294 * Makefile.in (LIB_MATH): Do not define with cpp.
5295 (LIBES): Use autoconf for LIB_MATH.
5296
5297 2010-04-26 Kenichi Handa <handa@m17n.org>
5298
5299 * composite.c (Ffind_composition_internal): Fix the return value
5300 for an automatic composition.
5301
5302 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
5303
5304 Remove all NO_ARG_ARRAY uses.
5305 * fns.c (concat2, concat3, nconc2):
5306 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
5307 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
5308 * m/xtensa.h (NO_ARG_ARRAY):
5309 * m/template.h (NO_ARG_ARRAY):
5310 * m/sparc.h (NO_ARG_ARRAY):
5311 * m/sh3.h (NO_ARG_ARRAY):
5312 * m/mips.h (NO_ARG_ARRAY):
5313 * m/macppc.h (NO_ARG_ARRAY):
5314 * m/iris4d.h (NO_ARG_ARRAY):
5315 * m/intel386.h (NO_ARG_ARRAY):
5316 * m/ibms390x.h (NO_ARG_ARRAY):
5317 * m/ibms390.h (NO_ARG_ARRAY):
5318 * m/ibmrs6000.h (NO_ARG_ARRAY):
5319 * m/ia64.h (NO_ARG_ARRAY):
5320 * m/hp800.h (NO_ARG_ARRAY):
5321 * m/arm.h (NO_ARG_ARRAY):
5322 * m/amdx86-64.h (NO_ARG_ARRAY):
5323 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5324
5325 2010-04-25 Eli Zaretskii <eliz@gnu.org>
5326
5327 * xdisp.c (display_line): Don't assume 2nd call to
5328 get_next_display_element cannot return zero. (Bug#6030)
5329 (iterate_out_of_display_property): New function, body from pop_it.
5330 (pop_it): Use it.
5331
5332 2010-04-24 Glenn Morris <rgm@gnu.org>
5333
5334 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5335 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5336 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5337 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
5338
5339 2010-04-24 Eli Zaretskii <eliz@gnu.org>
5340
5341 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5342 use `get_next_display_element' and `set_iterator_to_next' to
5343 advance to the next character, when looking for the character that
5344 begins the next row.
5345
5346 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
5347 definition of "struct Lisp_Symbol".
5348
5349 2010-04-24 Glenn Morris <rgm@gnu.org>
5350
5351 * Makefile.in (CRT_DIR): New variable, set by configure.
5352 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5353 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5354
5355 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5356
5357 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5358
5359 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5360
5361 Remove redundant flags.
5362 * s/freebsd.h (C_SWITCH_SYSTEM):
5363 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5364 * s/netbsd.h (C_SWITCH_SYSTEM):
5365 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5366 of these.
5367
5368 Simplify m/intel386.h.
5369 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5370 user: ecrt0.c.
5371 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5372 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5373 the only user: s/unixware.h.
5374 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5375 from m/intel386.h.
5376 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5377 moved here from m/intel386.h.
5378
5379 * m/mips.h: Remove #if 0 code.
5380
5381 2010-04-23 Eli Zaretskii <eliz@gnu.org>
5382
5383 Fix display of composed characters from L2R scripts in bidi buffers.
5384 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5385 After advancing IT past the composition, resync the bidi iterator
5386 with IT's position. (Bug#5977)
5387
5388 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5389
5390 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5391 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5392
5393 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5394
5395 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5396
5397 2010-04-23 Eli Zaretskii <eliz@gnu.org>
5398
5399 Support `display' text properties and overlay strings in bidi buffers.
5400 * xdisp.c (pop_it): When the stack is popped after displaying
5401 from a string, bidi-iterate to exit from the text portion covered
5402 by the `display' property or overlay. (Bug#5988, bug#5920)
5403
5404 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5405
5406 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5407 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5408
5409 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5410 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5411
5412 Simplify STARTFILES definition.
5413 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5414 relying on Makefile.in to define it.
5415 * s/cygwin.h (START_FILES): Likewise.
5416 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5417
5418 Clean up Solaris code.
5419 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5420 (LIB_MOTIF): Remove, configure takes care of this.
5421 (NOT_USING_MOTIF): Remove, unused.
5422 * xrdb.c: Remove #if 0-ed #include.
5423 (SYSV): Remove conditional for old SysV.
5424 * sysdep.c (closedir): Remove conditional code for Solaris,
5425 Solaris has closedir.
5426
5427 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5428
5429 * xsettings.c (read_and_apply_settings): Check if current_font is
5430 NULL before strcmp (Bug#6001).
5431
5432 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5433
5434 Clean up HP-UX files.
5435 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5436 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5437 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5438 * s/hpux10-20.h: ... to the only user, here.
5439
5440 2010-04-21 Eli Zaretskii <eliz@gnu.org>
5441
5442 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5443 use buffer-local values of paragraph-start and paragraph-separate.
5444 <paragraph_start_re, paragraph_separate_re>: Rename from
5445 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5446 (Bug#5992)
5447
5448 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5449
5450 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5451 current_tool_bar_style are new.
5452 (store_config_changed_event): Rename from store_font_changed_event.
5453 (XSETTINGS_TOOL_BAR_STYLE): New define.
5454 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5455 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5456 HAVE_XFT.
5457 (something_changedCB): store_font_changed_event is now
5458 store_config_changed_event.
5459 (parse_settings): Rename from parse_xft_settings. Read
5460 non-xft xsettings outside #ifdef HAVE_XFT.
5461 (read_settings): Renamed from read_xft_settings.
5462 (apply_xft_settings): Take current settings as parameter. Do not
5463 call read_(xft)_settings.
5464 (read_and_apply_settings): New function.
5465 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5466 read_and_apply_settings if there are settings to be read.
5467 (init_xsettings): Renamed from init_xfd_settings.
5468 Call read_and_apply_settings unconditionally.
5469 (xsettings_initialize): Call init_xsettings.
5470 (Ftool_bar_get_system_style): New function.
5471 (syms_of_xsettings): Define Qmonospace_font_name and
5472 Qtool_bar_style. Initialize current_tool_bar_style to nil.
5473 defsubr Stool_bar_get_system_style. Fprovide on
5474 dynamic-setting.
5475 Move misplaced HAVE_GCONF
5476
5477 * xsettings.h (Ftool_bar_get_system_style): Declare.
5478
5479 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5480 Qtext, Qboth, Qboth_horiz are new.
5481 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5482 Vtool_bar_style, tool_bar_max_label_size.
5483
5484 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5485
5486 * keyboard.c: QClabel is new.
5487 (parse_tool_bar_item): Take out QClabel from tool bar items.
5488 Try to construct a label if ther is no QClabel.
5489 (syms_of_keyboard): Intern :label as QClabel.
5490
5491 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5492 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5493 New.
5494
5495 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5496 dynamic-setting.el.
5497
5498 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5499 (xg_make_tool_item, xg_show_toolbar_item): New function.
5500 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5501 Call xg_make_tool_item to make a tool bar item.
5502 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5503
5504 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5505 into account for toolbars.
5506
5507 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5508
5509 * data.c (make_blv): Declarations before code (Bug#5993).
5510
5511 2010-04-21 Glenn Morris <rgm@gnu.org>
5512
5513 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5514 Define using autoconf, not cpp.
5515 (LIBXSM): New variable, set by autoconf.
5516 (LIBXT): Use $LIBXSM.
5517
5518 2010-04-21 Dan Nicolaescu <local_user@dannlt>
5519
5520 Remove NOMULTIPLEJOBS, unused.
5521 * s/template.h (NOMULTIPLEJOBS):
5522 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5523
5524 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5525 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5526 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5527 detects -znocombreloc and passes it to the linker
5528 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5529
5530 2010-04-21 Glenn Morris <rgm@gnu.org>
5531
5532 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5533
5534 2010-04-21 Karel Klíč <kklic@redhat.com>
5535
5536 * Makefile.in (LIBSELINUX_LIBS): New.
5537 (LIBES): Add $LIBSELINUX_LIBS.
5538 * eval.c, lisp.h (call7): New function.
5539 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5540 (Ffile_selinux_context, Fset_file_selinux_context):
5541 New functions.
5542 (Fcopy_file): New parameter preserve-selinux-context.
5543 (Frename_file): Preserve selinux context when renaming by copy-file.
5544
5545 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
5546 Eli Zaretskii <eliz@gnu.org>
5547
5548 Don't depend on cm.c or termcap.c on Windows, use stubs.
5549 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5550 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5551 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5552 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5553 (sys_tputs, sys_tgetstr): New stubs.
5554 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5555 (tputs, tgetstr): New; define to sys_*.
5556
5557 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
5558
5559 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5560
5561 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5562
5563 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5564 Just signal a warning rather than an error when inside a let.
5565 (Fmake_variable_frame_local): Add the same test.
5566
5567 * font.c (syms_of_font): Make the style table vars read-only.
5568
5569 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5570 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5571
5572 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5573
5574 2010-04-20 Eli Zaretskii <eliz@gnu.org>
5575
5576 Fix R2L paragraph display on TTY.
5577
5578 * xdisp.c (unproduce_glyphs): New function.
5579 (display_line): Use it when produced glyphs are discarded from R2L
5580 glyph rows.
5581 (append_composite_glyph): In R2L rows, prepend the glyph rather
5582 than appending it.
5583
5584 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5585 rather than append it. Set up the resolved_level and bidi_type
5586 attributes of the appended glyph.
5587 (produce_special_glyphs): Mirror the backslash continuation
5588 character in R2L lines.
5589
5590 Implement display of R2L paragraphs in GUI sessions.
5591
5592 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5593 append_stretch_glyph.
5594 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5595 off-by-one error in computing x at end of text in the row.
5596 (append_stretch_glyph): In reversed row, prepend the glyph rather
5597 than append it. Set resolved_level and bidi_type of the glyph.
5598 (extend_face_to_end_of_line): If the row is reversed, prepend a
5599 stretch glyph whose width is such that the rightmost glyph will be
5600 drawn at the right margin of the window. Fix off-by-one error on
5601 TTY frames in testing whether a line needs face extension. Fix
5602 face extension at ZV. If this is the last glyph row, use
5603 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5604 region face.
5605 (set_cursor_from_row, display_line): Use
5606 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5607 row->continuation_lines_width.
5608 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5609 are at ZV. Fixes a crash when reseated to ZV by
5610 try_window_reusing_current_matrix.
5611 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5612 which happens with R2L glyph rows. Fixes a crash when inserting a
5613 character at end of an R2L line.
5614 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5615 treat them as having zero-width characters. Improve comments.
5616 Don't reverse pos_before and pos_after for reversed glyph rows.
5617 Set cursor.x to negative value when the cursor might be on the
5618 left fringe.
5619 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5620 left fringe, not the right one.
5621 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5622 (erase_phys_cursor): For reversed cursor_row, support cursor on
5623 the left fringe.
5624
5625 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5626 of continuation indicators on the fringes.
5627 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5628 left fringe.
5629
5630 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5631 draw cursor on the left fringe.
5632
5633 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5634 cursor on the left fringe.
5635
5636 * dispnew.c (update_text_area): Handle reversed desired rows when
5637 the cursor is on the left fringe.
5638 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5639 below, not by 0, for when the cursor is on the left fringe.
5640
5641 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5642
5643 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5644 widget is a scrollbar.
5645
5646 2010-04-20 Kenichi Handa <handa@m17n.org>
5647
5648 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5649 only when the arg CHARSET_LIST is nil.
5650
5651 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5652
5653 Make variable forwarding explicit rather the using special values.
5654 Basically, this makes the structure of buffer-local values and object
5655 forwarding explicit in the type of Lisp_Symbols rather than use
5656 special Lisp_Objects for that. This tends to lead to slightly more
5657 verbose code, but is more C-like, simpler, and makes it easier to make
5658 sure we handled all cases, among other things by letting the compiler
5659 help us check it.
5660 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5661 Removing forwarding objects.
5662 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5663 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5664 explicit rather than hiding them inside Lisp_Object "values".
5665 (XFWDTYPE): New macro.
5666 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5667 (XBUFFER_LOCAL_VALUE): Remove.
5668 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5669 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5670 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5671 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5672 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5673 Remove the Lisp_Misc_* header.
5674 (struct Lisp_Buffer_Local_Value): Redefine.
5675 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5676 (struct Lisp_Misc_Any): Add filler to get the right size.
5677 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5678 Lisp_Intfwd.
5679 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5680 (DEFVAR_KBOARD): Allocate a forwarding object.
5681 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5682 (let_shadows_global_binding_p): New function.
5683 (union Lisp_Val_Fwd): New type.
5684 (make_blv): New function.
5685 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5686 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5687 (swap_in_symval_forwarding, find_symbol_value, Fset)
5688 (let_shadows_buffer_binding_p, set_internal, default_value)
5689 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5690 (Fkill_local_variable, Fmake_variable_frame_local)
5691 (Flocal_variable_p, Flocal_variable_if_set_p)
5692 (Fvariable_binding_locus):
5693 * xdisp.c (select_frame_for_redisplay):
5694 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5695 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5696 * frame.c (store_frame_param):
5697 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5698 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5699 value structure.
5700 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5701 (clone_per_buffer_values): Only adjust markers into the current buffer.
5702 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5703 (Fbuffer_local_value, set_buffer_internal_1)
5704 (swap_out_buffer_local_variables):
5705 Adapt to the new symbol value structure.
5706 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5707 (defvar_per_buffer): Take a new arg for the fwd object.
5708 (buffer_lisp_local_variables): Return a proper alist (different fix
5709 for bug#4138).
5710 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5711 (Fgarbage_collect): Don't handle buffer_defaults specially.
5712 (mark_object): Handle new symbol value structure rather than the old
5713 special Lisp_Misc_* objects.
5714 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5715 * term.c (set_tty_color_mode):
5716 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5717 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5718 a buffer_local_flags.
5719 * print.c (print_object): Get rid of impossible forwarding objects.
5720
5721 2010-04-19 Eli Zaretskii <eliz@gnu.org>
5722
5723 * bidi.c (bidi_get_type, bidi_get_category)
5724 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
5725 (bidi_type_of_next_char, bidi_level_of_next_char):
5726 Declare static. Use `INLINE' rather than `inline'.
5727
5728 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
5729
5730 * dired.c (Ffile_attributes): Fix typo in docstring.
5731
5732 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5733
5734 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5735 NSInteger (Bug#5811).
5736
5737 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5738
5739 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5740 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5741
5742 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5743
5744 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5745
5746 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
5747
5748 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5749 terminal frames (Bug#5837).
5750
5751 2010-04-19 Eli Zaretskii <eliz@gnu.org>
5752
5753 * .gdbinit (xsubchartable): New command.
5754
5755 2010-04-19 Eli Zaretskii <eliz@gnu.org>
5756
5757 * xdisp.c (display_line): Don't write beyond the last glyph row in
5758 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
5759 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5760 and
5761 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5762
5763 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5764
5765 * alloc.c (Fpurecopy): Hash-cons if requested.
5766 (syms_of_alloc): Update purify-flag docstring.
5767
5768 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5769
5770 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5771 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5772
5773 2010-04-17 Eli Zaretskii <eliz@gnu.org>
5774
5775 Fix a crash when an NSM character is inserted at BEGV.
5776
5777 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5778 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5779 NEUTRAL_B or UNKNOWN_BT.
5780
5781 2010-04-16 Eli Zaretskii <eliz@gnu.org>
5782
5783 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5784 other rows with cursor unless they are different from this row and
5785 this row is part of a continued line. (Bug#5943)
5786
5787 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5788
5789 * s/freebsd.h: Restore osreldate.h include.
5790 Suggested by Naohiro Aota.
5791
5792 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5793
5794 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5795
5796 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5797
5798 * s/cygwin.h: Avoid linking against static libgcc.
5799
5800 2010-04-15 Juri Linkov <juri@jurta.org>
5801
5802 * window.c: Add Qscroll_command.
5803 Remove Vscroll_preserve_screen_position_commands.
5804 (window_scroll_pixel_based, window_scroll_line_based): Check the
5805 `scroll-command' property on the last command instead of searching
5806 the last command in Vscroll_preserve_screen_position_commands.
5807 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5808 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5809 (scroll-preserve-screen-position): Doc fix.
5810 (Vscroll_preserve_screen_position_commands): Remove variable.
5811
5812 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5813
5814 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5815
5816 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5817
5818 Reduce cpp use in Makefile.in.
5819 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5820 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5821 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5822 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5823 (CRT0_COMPILE): Remove, inline it in the only user.
5824
5825 2010-04-14 Juri Linkov <juri@jurta.org>
5826
5827 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5828 `scroll-up-command' and `M-v' from `scroll-down' to
5829 `scroll-down-command'.
5830
5831 2010-04-14 Juri Linkov <juri@jurta.org>
5832
5833 * window.c (Vscroll_preserve_screen_position_commands): New variable
5834 with the default value as the list of Qscroll_down and Qscroll_up.
5835 (window_scroll_pixel_based, window_scroll_line_based): Search the
5836 last command in the list Vscroll_preserve_screen_position_commands
5837 instead of comparing with Qscroll_up and Qscroll_down.
5838
5839 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5840
5841 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5842 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5843 does that.
5844
5845 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5846 to zero.
5847
5848 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5849
5850 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5851
5852 Try to solve the problem of spurious EOF chars in long lines of text
5853 sent to interactive subprocesses.
5854 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5855 (system_process_attributes): Remove unused var `ttotal'.
5856 * process.c (send_process): Don't bother breaking long line with EOF
5857 chars when talking to ttys any more.
5858 (wait_reading_process_output): Output a warning when called in such
5859 a way that it could block without being interruptible.
5860
5861 Try to detect file modification within the same second.
5862 * buffer.h (struct buffer): New field modtime_size.
5863 * buffer.c (reset_buffer): Initialize it.
5864 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5865 (Fverify_visited_file_modtime): Check it.
5866 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5867 (Fset_visited_file_modtime): Set (or clear) it.
5868
5869 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5870
5871 * process.c (status_notify): Remove unused var `ro'.
5872
5873 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5874
5875 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5876 more than one visual (Bug#5938).
5877
5878 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5879
5880 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5881 Undefine.
5882
5883 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5884
5885 Remove C_SWITCH_SYSTEM_TEMACS.
5886 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5887 (malloc, realloc, free): Use emacs, not temacs for conditional
5888 definition.
5889
5890 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5891 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5892
5893 Use autoconf, not cpp for some variables.
5894 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5895 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5896 (ALL_CFLAGS): Use them as make variables.
5897 (really-lwlib, really-oldXMenu): Do not pass them.
5898
5899 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5900
5901 * xmenu.c (apply_systemfont_to_dialog): New.
5902 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5903
5904 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5905
5906 * process.c (exec_sentinel): Preserve current-buffer.
5907
5908 * process.c (read_process_output): Move the save-current-buffer to
5909 apply to both the filter and the non-filter branches.
5910
5911 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5912
5913 * s/msdos.h (UNEXEC): New definition.
5914
5915 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5916
5917 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5918 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5919
5920 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5921 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5922 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5923 TRY_WINDOW_CHECK_MARGINS.
5924
5925 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5926 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5927 width only when it is for padding.
5928
5929 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5930
5931 * xfns.c (Fx_show_tip): Call try_window in a loop until
5932 fonts_changed_p is zero (Bug#2423).
5933
5934 2010-04-08 Eli Zaretskii <eliz@gnu.org>
5935
5936 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5937 the end of TEXT_AREA. (Bug#5856)
5938
5939 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5940
5941 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5942 HAVE_GCONF.
5943
5944 2010-04-08 Eli Zaretskii <eliz@gnu.org>
5945
5946 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5947 prev.orig_type, for resolving type of NSM. (Bug#5858)
5948
5949 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5950
5951 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5952 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5953 in current_font.
5954 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
5955 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5956 New functions.
5957 (syms_of_xsettings): Initialize current_font.
5958 defsubr Sfont_get_system_normal_font.
5959
5960 * xsettings.h (Ffont_get_system_normal_font)
5961 (xsettings_get_system_normal_font): Declare.
5962
5963 * xfns.c (extern xlwmenu_default_font): Remove.
5964 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5965 to xlwmenu.c.
5966
5967 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5968 menu items in UTF-8.
5969
5970 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5971 (apply_systemfont_to_menu): New function.
5972 (set_frame_menubar, create_and_show_popup_menu): Call
5973 apply_systemfont_to_menu.
5974
5975 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5976
5977 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5978 FRAME_LINE_TO_PIXEL_Y.
5979
5980 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5981 pixelwidth/height.
5982
5983 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5984
5985 Simplify code for HP machines.
5986 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5987 for GNU_LINUX, not needed.
5988 (UNEXEC, NEED_BSDTTY): Move definitions...
5989 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5990
5991 * m/iris4d.h (UNEXEC): Move definition ...
5992 * s/irix6-5.h (UNEXEC): ... here.
5993
5994 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5995
5996 * xfns.c (set_machine_and_pid_properties): New function.
5997 (Fx_create_frame): Call set_machine_and_pid_properties.
5998
5999 2010-04-03 Eli Zaretskii <eliz@gnu.org>
6000
6001 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
6002 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
6003 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
6004
6005 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
6006 in this function. (Bug#5703)
6007
6008 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
6009
6010 * nsterm.h: Fix last change.
6011
6012 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
6013
6014 * m/intel386.h (NO_REMAP): Move definition ...
6015 * s/msdos.h (NO_REMAP): ... here.
6016
6017 * m/vax.h (CRT0_DUMMIES): Remove, unused.
6018
6019 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
6020 used on those platforms.
6021
6022 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
6023
6024 Remove extern errno declarations.
6025 * xterm.c:
6026 * xrdb.c:
6027 * w32term.c:
6028 * unexec.c:
6029 * unexaix.c:
6030 * sysdep.c:
6031 * process.c:
6032 * lread.c:
6033 * keyboard.c:
6034 * floatfns.c:
6035 * filelock.c:
6036 * fileio.c:
6037 * emacs.c (main):
6038 * ecrt0.c:
6039 * dispnew.c:
6040 * callproc.c:
6041 * buffer.c: Remove errno extern declarations.
6042 * s/netbsd.h (NEED_ERRNO): Remove.
6043
6044 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
6045
6046 Remove all uses of LIBX11_SYSTEM.
6047 * Makefile.in (LIBX11_SYSTEM): Remove.
6048 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
6049 instead.
6050
6051 2010-04-01 Eli Zaretskii <eliz@gnu.org>
6052
6053 Remove support for DJGPP v1.x (bug#5813).
6054
6055 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
6056 * s/msdos.h:
6057 * unexec.c (make_hdr, copy_text_and_data):
6058 * sysdep.c (wait_for_termination, sys_subshell):
6059 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
6060 (IT_set_terminal_modes, __write, _rename, gethostname)
6061 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
6062 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
6063 the value of __DJGPP__.
6064 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
6065 compatibility code.
6066 * lread.c:
6067 * gmalloc.c (memalign):
6068 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
6069 * emacs.c (main):
6070 * dosfns.c (init_dosfns):
6071 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
6072
6073 2010-04-01 Eli Zaretskii <eliz@gnu.org>
6074
6075 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
6076 string with `cursor' property comes from an `after-string'
6077 overlay. (Bug#5816)
6078
6079 2010-04-01 Glenn Morris <rgm@gnu.org>
6080
6081 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
6082 Define as Makefile variables.
6083 (LIBX): Use above variables rather than directly using autoconf.
6084
6085 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
6086
6087 Clean up BSD_SYSTEM use.
6088 * xterm.c:
6089 * process.c:
6090 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
6091 for including <sys/ioctl.h>.
6092 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
6093 code is only used for MSDOS.
6094
6095 2010-03-31 Juri Linkov <juri@jurta.org>
6096
6097 * image.c: Add `Qextension_data'.
6098 (syms_of_image): Initialize and staticpro `Qextension_data'.
6099 (Fimage_metadata): Rename from `Fimage_extension_data'.
6100 (gif_load): Put GIF extension data to the property
6101 `Qextension_data'.
6102
6103 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
6104
6105 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
6106 * nsterm.h: Fix prototype.
6107
6108 2010-03-31 Eli Zaretskii <eliz@gnu.org>
6109
6110 * xdisp.c (highlight_trailing_whitespace): Support highlight of
6111 trailing whitespace in right-to-left rows.
6112
6113 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6114
6115 Get rid of the direct_output optimizations.
6116 * keyboard.c (nonundocount): Remove extern declaration.
6117 (command_loop_1): Remove brittle optimisation for cheap and
6118 common operations.
6119 * xdisp.c (redisplay_internal): Don't bother checking
6120 redisplay_performed_directly_p any more.
6121 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
6122 any more.
6123 * dispnew.c (redisplay_performed_directly_p)
6124 (direct_output_for_insert, direct_output_forward_char):
6125 * dispextern.h (redisplay_performed_directly_p)
6126 (direct_output_for_insert, direct_output_forward_char): Remove.
6127 * cmds.c (nonundocount): Make it static.
6128
6129 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
6130
6131 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
6132
6133 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
6134
6135 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
6136 invisible (Bug#5766).
6137
6138 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
6139
6140 * xdisp.c (x_consider_frame_title, update_window_cursor):
6141 Remove HAVE_NS conditionals.
6142 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
6143
6144 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
6145 filename for the title.
6146 (ns_set_doc_edited): Do nothing if the selected window is a
6147 minibuffer window.
6148
6149 * nsterm.h: Add prototypes for ns_set_name_as_filename and
6150 ns_set_doc_edited.
6151
6152 * nsterm.m: Remove unneeded prototype.
6153
6154 2010-03-31 Glenn Morris <rgm@gnu.org>
6155
6156 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
6157 in the DOC file. (Bug#5336)
6158
6159 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
6160
6161 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
6162
6163 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6164
6165 * window.c (keys_of_window): Remove redundant/overridden bindings.
6166
6167 2010-03-30 Eli Zaretskii <eliz@gnu.org>
6168
6169 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
6170 Restore original behavior when the iterator is not bidi_p.
6171
6172 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6173
6174 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
6175
6176 2010-03-30 Eli Zaretskii <eliz@gnu.org>
6177
6178 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
6179 are outside the range of cached character positions.
6180
6181 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
6182
6183 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
6184
6185 2010-03-30 Eli Zaretskii <eliz@gnu.org>
6186
6187 Initial support for bidirectional editing.
6188
6189 * Makefile.in (obj): Include bidi.o.
6190 (bidi.o): New target.
6191
6192 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
6193 ($(BLD)/bidi.$(O)): New target.
6194
6195 * bidi.c: New file.
6196
6197 * buffer.h (struct buffer): New members bidi_display_reordering
6198 and bidi_paragraph_direction.
6199
6200 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
6201 and bidi_paragraph_direction.
6202 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
6203 and bidi-paragraph-direction.
6204 (Fbuffer_swap_text): Swap the values of
6205 bidi_display_reordering and bidi_paragraph_direction.
6206
6207 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
6208 (bidi_type_t, bidi_dir_t): New types.
6209 (bidi_saved_info, bidi_stack, bidi_it): New structures.
6210 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
6211 prev_stop, base_level_stop, and eol_pos.
6212 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
6213 (IT_STACK_SIZE): Enlarge to 5.
6214 (struct glyph_row): New member reversed_p.
6215 <string_buffer_position>: Update prototype.
6216 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
6217 glyph_row if bidi_it.paragraph_dir == R2L.
6218 (struct glyph): New members resolved_level and bidi_type.
6219
6220 * dispnew.c (direct_output_forward_char): Give up if we need bidi
6221 processing or buffer's direction is right-to-left.
6222 (prepare_desired_row): Preserve the reversed_p flag.
6223 (row_equal_p): Compare the reversed_p attributes as well.
6224
6225 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
6226 bidi_init_it and set it->paragraph_embedding from the current
6227 buffer's value of bidi_paragraph_direction.
6228 (reseat_1): Initialize bidi_it.first_elt.
6229 (set_iterator_to_next, next_element_from_buffer): Use the value of
6230 paragraph_embedding to determine the paragraph direction.
6231 (set_iterator_to_next): Under bidi reordering, call
6232 bidi_get_next_char_visually. Call bidi_paragraph_init if the
6233 new_paragraph flag is set in the bidi iterator.
6234 (next_element_from_buffer): If bidi_it.first_elt is set,
6235 initialize paragraph direction and find the first character to
6236 display in the visual order. If reseated to a middle of a line,
6237 prime the bidi iterator starting at the line's beginning. Handle
6238 the situation where we overstepped stop_charpos due to
6239 non-linearity of the bidi iteration. Likewise for when we back up
6240 beyond the previous stop_charpos. When moving across stop_charpos,
6241 record it in prev_stop.
6242 (display_line): Set row->end and it->start for the next row to the
6243 next character in logical order. Always extend reversed_p rows to
6244 the end of line, even if they end at ZV. Copy the reversed_p flag
6245 to the next glyph row. Keep calling set_cursor_from_row for
6246 bidi-reordered rows even if we already have a possible candidate
6247 for cursor position. Set row_end after all the row's glyphs have
6248 been produced, by looping over the glyphs. Record the position
6249 after EOL in it->eol_pos, and use it to set end_pos of the last
6250 row produced for a continued line.
6251 <Qright_to_left, Qleft_to_right>: New variables.
6252 (syms_of_xdisp): Initialize and staticpro them.
6253 (string_buffer_position_lim): New function.
6254 (string_buffer_position): Most of code moved to
6255 string_buffer_position_lim. Last argument and return value are
6256 now EMACS_INT; all callers changed.
6257 (set_cursor_from_row): Rewritten to support bidirectional text and
6258 reversed glyph rows.
6259 (text_outside_line_unchanged_p, try_window_id): Disable
6260 optimizations if we are reordering bidirectional text and the
6261 paragraph direction can be affected by the change.
6262 (append_glyph, append_composite_glyph)
6263 (produce_image_glyph, append_stretch_glyph): Set the
6264 resolved_level and bidi_type members of each glyph.
6265 (append_glyph): If the glyph row is reversed, prepend the glyph
6266 rather than appending it.
6267 (handle_stop_backwards): New function.
6268 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
6269 (reseat): call handle_stop_backwards to recompute prev_stop and
6270 base_level_stop for the new position.
6271 (handle_invisible_prop): Under bidi iteration, skip invisible text
6272 using bidi_get_next_char_visually. If we are `reseat'ed, init the
6273 paragraph direction. Update IT->prev_stop after skipping
6274 invisible text.
6275 (move_it_in_display_line_to): New variables prev_method
6276 and prev_pos. Compare for strict equality in
6277 BUFFER_POS_REACHED_P.
6278 (try_cursor_movement): Examine all the candidate rows that occlude
6279 point, to return the best match. If rows are bidi-reordered
6280 and point moved backwards, back up to the row that is not a
6281 continuation line, and start looking for a suitable row from
6282 there.
6283
6284 * term.c (append_glyph): Reverse glyphs by pre-pending them,
6285 rather than appending, if the glyph_row's reversed_p flag is set.
6286 Set the resolved_level and bidi_type members of each glyph.
6287
6288 * .gdbinit (pbiditype): New command.
6289 (pgx): Use it to display bidi level and type of the glyph.
6290 (pitx): Display some bidi information about the iterator.
6291 (prowlims, pmtxrows): New commands.
6292
6293 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6294
6295 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
6296 * s/usg5-4.h (LIBS_DEBUG):
6297 * s/irix6-5.h (C_DEBUG_SWITCH):
6298 * s/gnu-linux.h (LIBS_DEBUG):
6299 * s/darwin.h (LIBS_DEBUG):
6300 * s/bsd-common.h (LIBS_DEBUG):
6301 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
6302 * m/iris4d.h (LIBS_DEBUG):
6303 * m/hp800.h (LIBS_DEBUG): Remove definitions.
6304
6305 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
6306 (LIBS_DEBUG): Remove definition.
6307
6308 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
6309
6310 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
6311 Windows.
6312
6313 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6314
6315 * process.c (Fmake_network_process): Don't call turn_on_atimers around
6316 `connect' (Bug#5723).
6317
6318 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
6319
6320 * process.c (Fmake_network_process): Call `select' for interrupted
6321 `connect' rather than creating new socket (Bug#5173).
6322
6323 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
6324
6325 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6326
6327 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6328
6329 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6330
6331 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6332
6333 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6334 XLoadQueryFont.
6335
6336 2010-03-24 Kenichi Handa <handa@m17n.org>
6337
6338 * coding.c (decode_coding_ccl): Fix previous change for the
6339 multibyte case.
6340 (encode_coding_ccl): Don't setup ccl program here. Fix for the
6341 case that the output buffer is fullfilled.
6342 (encode_coding): Setup ccl program here.
6343
6344 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
6345
6346 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6347
6348 Simplify LIBS_MACHINE definitions.
6349 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6350 * m/iris4d.h (LIBS_MACHINE): Likewise.
6351 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6352 * s/aix4-2.h (LIBS_SYSTEM): ... here.
6353 * s/netbsd.h: Remove commented out code.
6354
6355 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6356
6357 Remove dead code dealing with POSIX_SIGNALS.
6358 * atimer.c (set_alarm): Remove dead code, all USG systems define
6359 POSIX_SIGNALS.
6360 * data.c (arith_error): Likewise.
6361 * keyboard.c (input_available_signal, handle_user_signal)
6362 (interrupt_signal): Likewise.
6363 * process.c (sigchld_handler): Likewise.
6364 (create_process): Remove if 0 code. Remove HPUX conditional when
6365 !defined (POSIX_SIGNALS), it cannot be true.
6366 * syssignal.h: Remove USG5_4 and USG conditionals when
6367 !POSIX_SIGNALS, they cannot be true.
6368
6369 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6370 NO_SOCK_SIGIO, not used anymore.
6371
6372 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6373
6374 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6375 support vax on BSDs.
6376
6377 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6378 * s/aix4-2.h (ORDINARY_LINK): ... here.
6379
6380 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6381
6382 * Makefile.in (abs_builddir): Define.
6383 (bootstrap_exe): Use it.
6384 (VPATH): Use $(srcdir) instead of @srcdir@.
6385
6386 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6387
6388 * Makefile.in (bootstrap_exe): Use an absolute name.
6389
6390 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6391
6392 Remove support for old GNU/Linux using libc version 5.
6393 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6394 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6395
6396 Consolidate redundant definitions in s/bsd-common.h.
6397 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6398 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6399 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6400 doing it in all files that include this one.
6401 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6402 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6403 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6404 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6405 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6406 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6407 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6408 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6409 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6410
6411 Consolidate redundant definitions.
6412 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6413 it's undefined in all files that include this one.
6414 (POSIX_SIGNALS): Define here instead of doing it in all files that
6415 include this one.
6416 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6417 (POSIX_SIGNALS): Do not define.
6418 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6419 (POSIX_SIGNALS): Do not define.
6420 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6421 (POSIX_SIGNALS): Do not define.
6422
6423 Remove support for old UNIX System V systems.
6424 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6425 * s/usg-5-4-2.h: Remove.
6426
6427 Remove support for Solaris on PPC and for old versions.
6428 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6429 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6430 that cancel each other.
6431 * s/sol2-3.h:
6432 * s/sol2-4.h:
6433 * s/sol2-5.h: Remove.
6434 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6435 (NO_REMAP): Remove, unused.
6436 (UNEXEC): Move definition ...
6437 * s/aix4-2.h (UNEXEC): ... here.
6438
6439 * s/openbsd.h: Remove support for non-ELF and for systems that do
6440 not support shared libraries.
6441 * s/netbsd.h:
6442 * s/freebsd.h: Likewise.
6443
6444 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6445
6446 Remove non-working support for lynxos 3.0.
6447 * s/lynxos.h: Remove file.
6448
6449 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6450 COFF_BSD_SYMBOLS, nothing defines it anymore.
6451
6452 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6453
6454 Remove obsolete uses of HAVE_SHM.
6455 * emacs.c (standard_args):
6456 (Fdump_emacs):
6457 (syms_of_emacs): Remove code depending on HAVE_SHM.
6458
6459 * alloc.c: Remove HAVE_SHM dependent definition.
6460
6461 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6462
6463 2010-03-18 Glenn Morris <rgm@gnu.org>
6464
6465 * emacs.c (USAGE4): Hard-code bug address.
6466 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6467 (bug_reporting_address): Remove.
6468 (main): Don't call bug_reporting_address.
6469
6470 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6471 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6472
6473 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
6474
6475 * xfns.c (Fx_create_frame):
6476 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6477 on left.
6478
6479 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6480
6481 * editfns.c (Fformat): Account for string precision when computing
6482 field width (Bug#5710).
6483
6484 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
6485
6486 * xfns.c (Fx_create_frame): Set default to Qright.
6487
6488 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6489 all window systems.
6490
6491 2010-03-12 Eli Zaretskii <eliz@gnu.org>
6492
6493 These changes remove termcap.c from the build on Posix platforms.
6494 * Makefile.in (termcapobj): Move termcap.o from here...
6495 (MSDOS_OBJ): ...to here.
6496 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6497 now identical to when LIBS_TERMCAP is defined.
6498
6499 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6500
6501 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6502
6503 * config.in: Regenerated. (See top-level ChangeLog.)
6504
6505 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
6506
6507 * Branch for 23.2.
6508
6509 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6510
6511 Cleanup setup of gl_state in various parts of the code.
6512 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6513 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6514 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6515 (skip_chars):
6516 * regex.c (regex_compile): Use it.
6517 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6518 it's now set in regex_compile when/if we need it.
6519
6520 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6521
6522 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6523 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6524 (QUIT): Use it to consolidate code and remove redundancy.
6525 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6526
6527 * regex.c (regex_compile): Setup gl_state as well.
6528
6529 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6530 (in_classes): Use CONSP before XCAR/XCDR.
6531
6532 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
6533
6534 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6535 definitions, so that keyboard macros are correctly handled
6536 (Bug#5481).
6537
6538 2010-03-02 Eli Zaretskii <eliz@gnu.org>
6539
6540 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6541 text that could be relocated inside the call to emacs_mule_char.
6542 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6543 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6544
6545 2010-03-02 Kenichi Handa <handa@m17n.org>
6546
6547 * character.c (parse_str_as_multibyte): Fix handling of the
6548 multibyte form of raw-bytes.
6549 (str_as_multibyte): Likewise.
6550
6551 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6552 form of raw-bytes.
6553
6554 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
6555
6556 * charset.c (load_charset_map_from_file)
6557 (load_charset_map_from_vector): Zero out allocated
6558 charset_map_entries before using them.
6559
6560 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6561
6562 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6563
6564 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
6565
6566 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6567 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
6568
6569 2010-02-26 Kenichi Handa <handa@m17n.org>
6570
6571 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6572
6573 * xdisp.c (reseat_to_string): Fix previous change.
6574
6575 2010-02-26 David Reitter <david.reitter@gmail.com>
6576
6577 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6578 Lisp_Object (Bug#4736).
6579
6580 2010-02-25 Kenichi Handa <handa@m17n.org>
6581
6582 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6583
6584 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6585
6586 * xterm.c (XTflash): Move declarations before statements.
6587
6588 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6589 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6590 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6591 (xg_create_tool_bar): Remove unused variables.
6592 (x_wm_set_size_hint): Move declarations before statements.
6593 (xg_create_frame_widgets): Remove variable grav.
6594
6595 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
6596
6597 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6598
6599 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6600
6601 * term.c (fatal): Add a final \n if needed (bug#5596).
6602
6603 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
6604
6605 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6606
6607 2010-02-18 Glenn Morris <rgm@gnu.org>
6608
6609 * callint.c (Finteractive): Doc fix.
6610
6611 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6612
6613 * coding.c (record_conversion_result):
6614 Handle CODING_RESULT_INSUFFICIENT_DST.
6615 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6616 memory allocation error.
6617
6618 2010-02-17 Kenichi Handa <handa@m17n.org>
6619
6620 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6621 Fix for the case that the output buffer is fullfilled.
6622 (decode_coding): Setup ccl program here. Keep looping when the
6623 decoder stopped because the output buffer is
6624 fullfilled (bug#5534).
6625
6626 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6627
6628 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6629
6630 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
6631 bug #5571.
6632 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
6633 overdrawn.
6634
6635 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6636
6637 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6638 doing_interact here.
6639 (ice_connection_closed): New function.
6640 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6641 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6642 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6643 returns I/O error.
6644 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6645 bug #5512.
6646
6647 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
6648
6649 * nsfont.m (nsfont_open): The system's value for the font descent
6650 is negative, so round it down to avoid clipping.
6651
6652 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
6653
6654 * charset.c (load_charset_map_from_file)
6655 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
6656 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
6657
6658 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
6659
6660 * charset.c (load_charset_map_from_file): Allocate large
6661 charset_map_entries structure on the heap rather than the stack.
6662 (Bug#5526).
6663
6664 2010-01-31 Kenichi Handa <handa@m17n.org>
6665
6666 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
6667 size in NAME is invalid, return -1 (Bug#5396).
6668
6669 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
6670
6671 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6672 <deactivated@gmail.com> (Bug#3605).
6673
6674 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
6675
6676 * fileio.c (Frename_file): Correctly rename symlinks to
6677 directories (Bug#5496).
6678
6679 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6680
6681 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6682
6683 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6684
6685 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6686
6687 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
6688
6689 * frame.c (DEFAULT_ROWS): Change default to 35.
6690
6691 * xfns.c (x_default_font_parameter): Change default XFT font to
6692 monospace-10 (Bug#3643).
6693
6694 2010-01-29 Eli Zaretskii <eliz@gnu.org>
6695
6696 * w32inevt.c (key_event): Remove unnecessary comparison of
6697 event->uChar.AsciiChar with 128.
6698
6699 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
6700
6701 * fileio.c (Frename_file): Fix last change (Bug#5487).
6702
6703 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6704
6705 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6706
6707 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6708
6709 * xfns.c (Fx_create_frame): Remove window size matching code from
6710 2010-01-15.
6711 (x_get_current_desktop, x_get_desktop_workarea): Remove.
6712
6713 2010-01-27 Jason Rumney <jasonr@gnu.org>
6714
6715 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
6716 (key_event): Use unicode for characters 128 and higher (Bug#4567).
6717
6718 2010-01-27 Kenichi Handa <handa@m17n.org>
6719
6720 * regex.c (analyse_first): Fix setting of fastmap for unibyte
6721 pattern string (Bug#4209).
6722
6723 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
6724
6725 * fileio.c (Frename_file): Call copy-directory and
6726 delete-directory for directories, in order to handle cross-device
6727 renaming (Bug#3353).
6728
6729 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6730
6731 * xfns.c (Fx_create_frame): If frame height is too big, try
6732 sizes 24 and 10. Bug #3643.
6733
6734 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6735
6736 Try and fix bug#788, hopefully for real this time.
6737 * keymap.c (shadow_lookup): Add `remap' arg.
6738 (describe_map, describe_vector): Update calls to shadow_lookup.
6739 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6740 `remapped' so this flag is applicable to `sequence'. Be careful to
6741 perform remapping during shadow_lookup check of remapped_sequences.
6742
6743 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6744
6745 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6746 png_check_sig, which has been removed in libpng 1.4.
6747
6748 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6749
6750 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6751 lacks this header file).
6752
6753 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6754
6755 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6756 as in Emacs 22.
6757
6758 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6759
6760 * lisp.h (make_pure_string): String pointer arg now points to const.
6761
6762 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6763 args now point to const.
6764
6765 2010-01-22 Eli Zaretskii <eliz@gnu.org>
6766
6767 * lread.c (Fload): Don't treat files without .elc extension as
6768 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6769 them. (bug#5303)
6770
6771 2010-01-20 Kenichi Handa <handa@m17n.org>
6772
6773 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6774 treat the source as actual byte sequence.
6775
6776 2010-01-19 Alan Mackenzie <acm@muc.de>
6777
6778 Fix spurious before-change-functions invocation from (insert ?\n).
6779 * textprop.c (set_text_properties): Rename parameter
6780 `signal_after_change_p' to `coherent_change_p', and make the
6781 invocation of `modify_region' conditional on it.
6782
6783 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6784
6785 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6786 for debug purpose.
6787 (syms_of_xsettings): Declare xft-settings.
6788
6789 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
6790
6791 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6792
6793 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6794
6795 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6796
6797 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
6798
6799 * emacs.c (standard_args): Adjust arg priorities to reflect how
6800 they are processed in startup.el.
6801
6802 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6803
6804 * Makefile.in (lisp, shortlisp): Update.
6805
6806 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6807
6808 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6809 code, link the new kboard into all_kboard before running Lisp code,
6810 and protect the new terminal with GCPRO (Bug#5365).
6811 (x_term_init): Remove unused var `atom'.
6812 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6813
6814 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6815
6816 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6817 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6818 to find out usable size of the desktop. Don't make frames larger than
6819 this. Bug #3643.
6820
6821 2010-01-15 Kenichi Handa <handa@m17n.org>
6822
6823 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6824
6825 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
6826
6827 * nsterm.m (Qnone): Define.
6828
6829 * nsfns.m (Qnone): Move definition to nsterm.m.
6830
6831 2010-01-14 Kenichi Handa <handa@m17n.org>
6832
6833 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6834 systems.
6835
6836 2010-01-14 Kenichi Handa <handa@m17n.org>
6837
6838 Make auto-composition work on all buffers even if they are
6839 fundamental mode.
6840
6841 * composite.c (Vauto_composition_mode): New variable.
6842 (composition_compute_stop_pos): Check Vauto_composition_mode
6843 instead of Vauto_composition_function.
6844 (composition_adjust_point, Ffind_composition_internal): Likewise.
6845 (syms_of_composite): Declare Lisp variable
6846 "auto-composition-mode" here.
6847
6848 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
6849
6850 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6851 during call to vendor-specific-keysyms (Bug#5365).
6852
6853 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6854
6855 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6856 Call SIGNAL_THREAD_CHECK (Bug#5333).
6857
6858 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6859 Call SIGNAL_THREAD_CHECK.
6860
6861 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6862
6863 Try to fix bug#5314. This is probably not the final word, tho.
6864 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6865 recent-auto-save-p as a side-effect.
6866 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6867 * buffer.c (Fkill_buffer, reset_buffer):
6868 * editfns.c (Fsubst_char_in_region):
6869 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6870 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6871
6872 2010-01-13 Kenichi Handa <handa@m17n.org>
6873
6874 Display buffer name, etc. in mode line by composing correctly.
6875
6876 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6877 STRING is not nil.
6878 (display_mode_element): Adjust for the change of
6879 decode_mode_spec and display_line.
6880 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6881 (display_string): Handle the case that STRING is non-null and
6882 LISP_STRING is not nil.
6883
6884 * xterm.c (x_draw_composite_glyph_string_foreground):
6885 Pay attention to s->face->overstrike.
6886
6887 * composite.c (composition_reseat_it): Don't check PT if STRING is
6888 non nil.
6889
6890 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6891
6892 * keyboard.c (read_char): Don't apply previous change when current
6893 buffer is unchanged by command execution.
6894
6895 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6896
6897 * keyboard.c (read_char): Return after executing from special map.
6898
6899 2010-01-12 Glenn Morris <rgm@gnu.org>
6900
6901 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6902 bug-gnu-emacs rather than emacs-pretest-bug.
6903
6904 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
6905
6906 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6907 initializing the Lisp variables that depend on them.
6908
6909 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6910
6911 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6912 Clear areas that will not be updated after change of menu bar lines.
6913 Clear the menu bar window's current matrix when the window gets empty.
6914
6915 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
6916
6917 * intervals.h, textprop.c (extend_property_ranges): Return value
6918 and args changed. Discard properties that begin at or after the
6919 new end (Bug#5306).
6920
6921 * editfns.c (Fformat): Caller changed.
6922
6923 * nsterm.m (ns_set_default_prefs): Delete function.
6924 (syms_of_nsterm): Initialize ns_command_modifier,
6925 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6926 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6927
6928 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6929 position (Bug#4040).
6930
6931 2010-01-09 Eli Zaretskii <eliz@gnu.org>
6932
6933 * editfns.c (Ffloat_time): Doc fix.
6934
6935 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6936
6937 * xfns.c (Fx_create_frame): Don't create frame larger than display
6938 by default bug#3643.
6939
6940 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6941
6942 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6943 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6944 windows above internal border.
6945
6946 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6947 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6948 windows above internal border.
6949
6950 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6951 tool bar windows specially.
6952
6953 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6954
6955 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6956 specially.
6957 (XTflash): Take account of menu bar height.
6958
6959 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6960 specially.
6961
6962 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6963
6964 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
6965 also be true before we can return early (bug #5339).
6966
6967 2010-01-06 David Reitter <david.reitter@gmail.com>
6968
6969 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6970 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6971 (Bug#3233).
6972
6973 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6974
6975 * font.c (font_open_entity): Enable chache and call cached_font_ok
6976 for the driver if defined.
6977 (QCuser_spec): New symbol.
6978 (font_spec_from_name): Save name as user-spec.
6979 (font_load_for_lface): Keep user-spec instead of name.
6980 (font_open_by_name): Save name as user-spec.
6981 (syms_of_font): Initialize QCuser_spec.
6982 (font_clear_prop): Clear name if it exists in font (bug#5157).
6983
6984 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6985 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6986 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6987
6988 * font.h (struct font_driver): Add cached_font_ok.
6989
6990 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6991
6992 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6993
6994 * xterm.c (x_new_font): Move code for setting rows/cols before
6995 resizing ...
6996 (x_set_window_size): ... to here. Bug #2568.
6997
6998 * gtkutil.c (xg_clear_under_internal_border): New function.
6999 (xg_frame_resized, xg_frame_set_char_size):
7000 Call xg_clear_under_internal_border.
7001 (xg_update_scrollbar_pos): Clear under old scroll bar position.
7002
7003 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
7004
7005 * keyboard.c (read_key_sequence): Catch keyboard switch after
7006 making a new tty frame (Bug#5095).
7007
7008 2010-01-05 Kenichi Handa <handa@m17n.org>
7009
7010 * fontset.c (fontset_find_font): Fix getting the frame pointer.
7011
7012 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
7013
7014 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
7015 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
7016 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
7017
7018 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
7019
7020 * dbusbind.c (xd_add_watch): Improve debug message.
7021 (xd_remove_watch): Improve debug message. If DATA is the session
7022 bus, unset D-Bus session environment.
7023 (Fdbus_init_bus): Pass the bus as argument to
7024 dbus_connection_set_watch_functions. (Bug#5283)
7025
7026 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
7027
7028 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
7029
7030 * lread.c (syms_of_lread): Make it clearer that these are the
7031 names of loaded files (Bug#5068).
7032
7033 * eval.c (run_hook_with_args): Handle the case where the global
7034 value has the obsolete single-function form (Bug#5026).
7035
7036 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
7037
7038 * minibuf.c (Fall_completions): Minor optimization.
7039
7040 2009-12-26 Eli Zaretskii <eliz@gnu.org>
7041
7042 * .gdbinit (pgx): Fix display of composite glyphs.
7043 Display cmp.from and cmp.to as well.
7044 (pitx): Fix last change.
7045
7046 2009-12-25 Kenichi Handa <handa@m17n.org>
7047
7048 * composite.h (composition_adjust_point): Update prototype.
7049
7050 * composite.c (composition_reseat_it): Don't make a composition
7051 spanning over point.
7052 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
7053 composable characters.
7054 (composition_adjust_point): New arg NEW_PT. Callers changed.
7055
7056 * keyboard.c (command_loop_1): Force redisplay if the last point
7057 was within a composition.
7058 (adjust_point_for_property): Don't adjust point for automatic
7059 composition when called after buffer modification.
7060
7061 2009-12-19 Eli Zaretskii <eliz@gnu.org>
7062
7063 * .gdbinit (pitx): Don't use enum names, use their values.
7064 Remove reference to non-existing value GET_FROM_COMPOSITION.
7065 (pgx): Don't use enum names, use their values.
7066 (pitmethod): New helper command.
7067 (pitx): Use it to display iteration method.
7068 (pgrowit): New command.
7069
7070 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
7071
7072 Update dependencies in Makefile.in.
7073
7074 * Makefile.in (alloc.o): Depend on termhooks.h.
7075 (atimer.o): Depend on blockinput.h.
7076 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
7077 and frame.h.
7078 (callint.o): Depend on systime.h, coding.h, and composite.h.
7079 (callproc.o): Depend on buffer.h.
7080 (casefiddle.o): Don't depend on charset.h.
7081 (casetab.o): Depend on character.h.
7082 (ccl.o): Depend on composite.h.
7083 (chartab.o): Depend on ccl.h.
7084 (cm.o): Depend on dispextern.h.
7085 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
7086 (coding.o): Don't depend on $(INTERVALS_H).
7087 (composite.o): Don't depend on dispextern.h explicitly (it's in
7088 $(INTERVALS_H)). Depend on ccl.h.
7089 (data.o): Depend on systime.h, coding.h, composite.h,
7090 dispextern.h, font.h, and ccl.h.
7091 (dired.o): Depend on composite.h.
7092 (dispnew.o): Depend on coding.h. Don't depend explicitly on
7093 composite.h (it's in $(INTERVALS_H)).
7094 (doc.o): Depend on systime.h, coding.h, and composite.h.
7095 (editfns.o): Don't depend explicitly on dispextern.h.
7096 (emacs.o): Depend on frame.h and coding.h.
7097 (eval.o): Depend on coding.h, composite.h, and xterm.h.
7098 (fileio.o): Depend on frame.h and commands.h. Don't depend
7099 explicitly on dispextern.h.
7100 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
7101 composite.h.
7102 (fns.o): Don't depend on termhooks.h.
7103 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
7104 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
7105 coding.h, $(INTERVALS_H), window.h, xterm.h.
7106 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
7107 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
7108 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
7109 fontset.h, ccl.h, and ftfont.h.
7110 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7111 (gtkutil.o): Depend on dispextern.h and composite.h.
7112 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
7113 termhooks.h, and ccl.h.
7114 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
7115 (intervals.o): Depend on systime.h and coding.h.
7116 (keyboard.o): Depend on composite.h and coding.h.
7117 (keymap.o): Depend on coding.h and frame.h.
7118 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
7119 (macros.o): Depend on systime.h, coding.h, and composite.h.
7120 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
7121 and atimer.h.
7122 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
7123 dispextern.h explicitly.
7124 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
7125 Don't depend explicitly on dispextern.h and composite.h.
7126 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
7127 (regex.o): Don't depend on charset.h.
7128 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
7129 (search.o): Don't depend explicitly on composite.h.
7130 (sound.o): Depend on atimer.h and systime.h.
7131 (syntax.o): Don't depend explicitly on composite.h.
7132 (sysdep.o): Depend on coding.h and composite.h.
7133 (term.o): Depend on xterm.h and buffer.h.
7134 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
7135 (textprop.o): Don't depend on dispextern.h explicitly.
7136 (undo.o): Depend on dispextern.h.
7137 (window.o): Depend on coding.h and termhooks.h. Don't depend on
7138 dispextern.h and composite.h explicitly.
7139 (xdisp.o): Depend on ccl.h.
7140 (xfaces.o): Depend on coding.h and ccl.h.
7141 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
7142 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7143 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
7144 ftfont.h.
7145 (xgselect.o): New dependency.
7146 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
7147 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
7148 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
7149 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
7150 (xsmfns.o): Depend on frame.h and dispextern.h.
7151 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
7152 sysselect.h.
7153
7154 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
7155
7156 * font.c (Fclear_font_cache): Pass correct cache argument to
7157 font_clear_cache.
7158
7159 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
7160
7161 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
7162 twice.
7163
7164 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
7165
7166 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
7167 calling file-remote-p. Reported by Jim Meyering.
7168
7169 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
7170
7171 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
7172 avoid compiler warnings. (Bug #5217)
7173
7174 2009-12-14 Kenichi Handa <handa@m17n.org>
7175
7176 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
7177 in 8-bit encoding.
7178
7179 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
7180
7181 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
7182 tooltip windows.
7183
7184 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
7185
7186 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
7187 Xatom_net_window_type.
7188
7189 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
7190 Xatom_net_window_type.
7191
7192 * xterm.c (my_log_handler): New function.
7193 (x_term_init): Set my_log_handler as log handler during gtk_init
7194 so we can filter out buggy messages. (Bug #5120).
7195
7196 * xterm.c (xg_scroll_callback): Parameter list changed,
7197 use parameter GtkScrollType to determine scroll/line/page.
7198 Only allow dragging if a button < 4 is grabbed (bug #5177).
7199 (xg_end_scroll_callback): New function.
7200 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
7201 xg_create_scroll_bar.
7202
7203 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
7204 (scroll_end_callback): Remove.
7205 (xg_create_scroll_bar): Add parameter end_callback, bind it to
7206 button-release-event. Replace value-changed event with change-value,
7207 bug #5177.
7208 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
7209 bug #5177.
7210
7211 * gtkutil.h (XG_LAST_SB_DATA): Remove.
7212 (xg_create_scroll_bar): Add GCallback end_callback.
7213
7214 * xftfont.c (QClcdfilter): New variable.
7215 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
7216 (syms_of_xftfont): Initialize QClcdfilter.
7217
7218 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7219
7220 * xsettings.c (struct xsettings): Add member seen.
7221 (parse_xft_settings): Update member seen with what we have read.
7222 Return non-zero if Xft-settings have been parsed, 0 otherwise.
7223 (apply_xft_settings): Only update Xft settings with what member seen
7224 indicates as new.
7225
7226 2009-12-12 Eli Zaretskii <eliz@gnu.org>
7227
7228 * dispextern.h (struct text_pos): Use EMACS_INT.
7229 (struct glyph): Use EMACS_INT for charpos.
7230 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
7231 region_beg_charpos, region_end_charpos,
7232 redisplay_end_trigger_charpos, and also for
7233 iterator_stack_entry.end_charpos and
7234 iterator_stack_entry.stop_charpos.
7235
7236 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7237
7238 * gtkutil.c (scroll_end_callback): New function (bug #5177).
7239 (xg_create_scroll_bar): Call scroll_end_callback on button release
7240 event (bug #5177).
7241 (xg_event_is_for_scrollbar): != replaced with ==.
7242
7243 2009-12-12 Kenichi Handa <handa@m17n.org>
7244
7245 * ftfont.c (struct ftfont_info): New member matrix.
7246 (ftfont_open): Setup xftfont_info->matrix.
7247 (MFLTFontFT): New member matrix.
7248 (FLOOR, CEIL, ROUND): New macros.
7249 (ftfont_get_metrics): Handle matrix transformation.
7250 (ftfont_shape_by_flt): New arg matrix. Callers changed.
7251
7252 * xftfont.c (struct xftfont_info): New member matrix.
7253 (xftfont_open): Setup xftfont_info->matrix.
7254
7255 2009-12-10 Kenichi Handa <handa@m17n.org>
7256
7257 * xdisp.c (append_space_for_newline): Consider face-remapping.
7258
7259 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
7260
7261 * xsettings.c: Include "keyboard.h".
7262
7263 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
7264
7265 Fix implicit function declarations.
7266 * cmds.c: Include "frame.h".
7267 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
7268 * frame.h: Move declaration of delete_frame outside of
7269 HAVE_WINDOW_SYSTEM.
7270
7271 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
7272
7273 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
7274
7275 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
7276 GTK builds.
7277
7278 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
7279
7280 * unexelf.c (unexec): Don't search for .data twice.
7281
7282 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
7283
7284 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
7285 if push failed.
7286 (handle_line_prefix): Set avoid_cursor_p here. Check return value
7287 of push_display_prop (Bug#5000).
7288
7289 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
7290 value of font_list_entities (Bug#5085).
7291
7292 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
7293
7294 Fix `string-to-number' to deal consistently with integers and floats.
7295 * lread.c (isfloat_string): New argument ignore_trailing to accept all
7296 trailing characters, not just whitespace.
7297 (read1): Pass new arg 0 to keep old behavior.
7298 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
7299 trailing chars, as it is already done for integers. Doc fixes.
7300 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
7301
7302 2009-12-04 Eli Zaretskii <eliz@gnu.org>
7303
7304 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
7305 Delete unused enumeration value.
7306
7307 2009-12-03 Eli Zaretskii <eliz@gnu.org>
7308
7309 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
7310
7311 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
7312
7313 * process.c (Fmake_network_process): Fix up the tests for
7314 "connectionless socket", so they DTRT for seqpacket sockets as well.
7315
7316 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7317
7318 * process.c (Qseqpacket): New symbol.
7319 (HAVE_SEQPACKET): New macro.
7320 (Fmake_network_process): Accept new :type `seqpacket'.
7321 (init_process): Add `seqpacket' feature when applicable.
7322 (syms_of_process): Initialize Qseqpacket.
7323
7324 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7325
7326 * font.c (font_load_for_lface, font_open_by_name): Don't store name
7327 if entity is Qnil.
7328
7329 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
7330
7331 * print.c (print_preprocess): Preprocess the key_and_value table of
7332 hashtables, even tho they're "hidden" (bug#5082).
7333
7334 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
7335
7336 * frame.c (frame_make_pointer_invisible)
7337 (frame_make_pointer_visible): Declare f before statements.
7338
7339 2009-11-28 Eli Zaretskii <eliz@gnu.org>
7340
7341 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7342 omitted dependencies on lisp.h.
7343
7344 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
7345
7346 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7347 is NULL.
7348
7349 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7350
7351 * frame.c (frame_make_pointer_invisible)
7352 (frame_make_pointer_visible): Just return if there isn't any selected
7353 frame.
7354
7355 * search.c (simple_search): Remove warning by making *p const.
7356
7357 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7358
7359 * xdisp.c (power_letter): Remove duplicate const.
7360
7361 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7362
7363 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7364
7365 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
7366 defaults (bug #5025).
7367
7368 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7369
7370 * insdel.c (adjust_markers_for_delete): Move it in the
7371 right direction! (bug#4803)
7372
7373 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7374
7375 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7376
7377 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7378
7379 2009-11-24 Glenn Morris <rgm@gnu.org>
7380
7381 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7382
7383 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7384
7385 * Makefile.in: Must create deps for ecrt0.o in its rule.
7386
7387 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7388 because that is what Gtk+ font dialog understands.
7389
7390 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7391 of Fcopy_sequence.
7392 (font_open_by_name): Put name given into QCname for font-object returned.
7393
7394 * frame.c (x_set_font): Save original font name as frame parameter
7395 font-parameter.
7396
7397 * xsettings.c (set_default_xft_settings): New function.
7398 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7399 is found.
7400
7401 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7402
7403 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7404 searching backwards through multibyte buffer.
7405
7406 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7407
7408 * xterm.c: #include xgselect.h.
7409 (x_initialize): Call xgselect_initialize.
7410
7411 * xsettings.c (something_changedCB): C++ comments => C comments.
7412 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7413 does that now.
7414
7415 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7416 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7417 (scroll_bar_button_cb): Remove.
7418 (create_menus): C++ comments => C comments. Don't bind grab-notify
7419 event.
7420 (xg_create_scroll_bar): Don't bind button-press-event and
7421 button-release-event.
7422
7423 * process.c: Include xgselect.h if defined (USE_GTK) ||
7424 defined (HAVE_GCONF).
7425 (wait_reading_process_output): Call xg_select for the same condition.
7426
7427 * xgselect.c (xg_select): New function to better integrate with
7428 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7429
7430 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7431
7432 * Makefile.in (XOBJ): Add xgselect.o.
7433
7434 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7435
7436 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7437 Remove ignored second argument. All callers changed.
7438 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7439 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7440 * xdisp.c (string_char_and_length): Likewise.
7441
7442 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7443
7444 * xterm.c (x_new_font):
7445 * print.c (print_object):
7446 * cmds.c (Fself_insert_command): Move declarations before statements.
7447
7448 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7449
7450 * s/cygwin.h: Remove unneeded linker flags.
7451
7452 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7453
7454 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7455
7456 * xsettings.h: Declare xsettings_get_system_font.
7457
7458 * xsettings.c (xsettings_get_system_font): New function.
7459 (init_gconf): No use initiating gconf unless we have Xft also.
7460 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7461 HAVE_GCONF.
7462
7463 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7464 add a blank entry so it doesn't collapse into nothing.
7465
7466 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7467
7468 * lread.c (Funintern): Comment out last change.
7469
7470 2009-11-19 Richard Stallman <rms@gnu.org>
7471
7472 * lread.c (Funintern): Error if symbol is t or nil.
7473
7474 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7475
7476 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7477 representation of Lisp integers.
7478 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7479
7480 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7481
7482 * lisp.h: Remove declaration of Ffont_get_system_font.
7483 * xfns.c: Move include of "xsettings.h".
7484 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7485
7486 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7487
7488 * xsettings.c (something_changedCB, Ffont_get_system_font):
7489 Check use_system_font.
7490 (syms_of_xsettings): DEFVAR font-use-system-font.
7491
7492 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7493
7494 * xfns.c (x_default_font_parameter): Remove dead assignment.
7495
7496 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7497
7498 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7499
7500 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
7501 not have FC_LCD_*. #define them if not there.
7502
7503 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
7504
7505 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7506
7507 * xterm.c (handle_one_xevent): Call xft_settings_event for
7508 ClientMessage, PropertyNotify and DestroyNotify.
7509 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7510 Call xsettings_initialize.
7511
7512 * xftfont.c (xftfont_fix_match): New function.
7513 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7514 Call xftfont_fix_match after XftFontMatch.
7515
7516 * xfont.c (xfont_driver): Initialize all members.
7517
7518 * xfns.c (x_default_font_parameter):
7519 Try font from Ffont_get_system_font.
7520 Do not get font from x_default_parameter if we got one from
7521 Ffont_get_system_font.
7522 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
7523
7524 * w32font.c (w32font_driver): Initialize all members.
7525
7526 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7527
7528 * lisp.h: Declare syms_of_xsettings.
7529
7530 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7531 Handle CONFIG_CHANGED_EVENT.
7532
7533 * ftfont.c (ftfont_filter_properties): New function.
7534
7535 * frame.c (x_set_font): Remove unused variable lval.
7536
7537 * font.h (struct font_driver): Add filter_properties.
7538
7539 * font.c (font_put_extra): Don't return if val is nil, it means
7540 boolean option is off.
7541 (font_parse_fcname): Collect all extra properties in extra_props
7542 and call filter_properties for all drivers with extra_props and
7543 font as parameter.
7544 (font_open_entity): Do not use cache, it does not pick up new
7545 fontconfig settings like hinting.
7546 (font_load_for_lface): If spec had a name in it, store it in entity.
7547
7548 * emacs.c (main): Call syms_of_xsettings.
7549
7550 * config.in: HAVE_GCONF is new.
7551
7552 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7553 xsettings.o is new.
7554
7555 2009-11-17 Kenichi Handa <handa@m17n.org>
7556
7557 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7558 back to the default font in case that no suitable font is found.
7559
7560 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7561
7562 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7563 Suggested by Chad Brown <yandros@mit.edu>.
7564 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7565
7566 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7567
7568 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7569
7570 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7571
7572 * Makefile.in: Ignore errors from mkdir when creating deps directory.
7573
7574 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7575
7576 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7577 has a parent.
7578
7579 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
7580 dependency files in deps/. Include those files into Makefile.
7581
7582 * config.in: Generated (AUTO_DEPEND).
7583
7584 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
7585
7586 * dbusbind.c (Vdbus_registered_objects_table): Rename from
7587 Vdbus_registered_functions_table, because it contains also
7588 properties. Fix docstring.
7589 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
7590
7591 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7592
7593 * alloc.c (mark_object): Don't reprocess marked strings.
7594 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7595 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7596
7597 2009-11-13 Kenichi Handa <handa@m17n.org>
7598
7599 * category.c (word_boundary_p): Adjust for the change of the
7600 semantics of Vword_combining_categories.
7601 (Vword_combining_categories): Describe the slight change of the
7602 semantics.
7603
7604 2009-11-13 Eli Zaretskii <eliz@gnu.org>
7605
7606 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7607
7608 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7609
7610 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7611
7612 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7613
7614 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
7615
7616 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7617
7618 2009-11-11 David Reitter <david.reitter@gmail.com>
7619
7620 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7621 variables to fix 2009-11-09 change.
7622
7623 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7624
7625 * process.c (ifflag_def): Make flag_sym constant.
7626 (Fnetwork_interface_info): Use a constant pointer.
7627 (ifflag_table):
7628 * xfns.c (cursor_bits):
7629 * xdisp.c (power_letter):
7630 * termcap.c (speeds, esctab):
7631 * sysdep.c (baud_convert):
7632 * keyboard.c (lispy_accent_codes, modifier_names):
7633 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7634 (jpeg_format, tiff_format, gif_format, svg_format)
7635 (interlace_start, interlace_increment, gs_format):
7636 * gtkutil.c (separator_names):
7637 * fringe.c (swap_nibble):
7638 * fns.c (base64_value_to_char, base64_char_to_value):
7639 * fileio.c (make_temp_name_tbl):
7640 * coding.c (suffixes): Make constant.
7641
7642 * frame.c (make_initial_frame):
7643 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7644 build_string.
7645 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7646
7647 * s/freebsd.h:
7648 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7649
7650 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7651 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7652
7653 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7654 * xterm.c (syms_of_xterm):
7655 * xfaces.c (syms_of_xfaces):
7656 * xdisp.c (syms_of_xdisp):
7657 * lread.c (syms_of_lread):
7658 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7659 build_string.
7660
7661 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7662
7663 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7664
7665 * fns.c (Fplist_get): Merge the active and the commented out code.
7666
7667 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7668
7669 * keyboard.h: Declare timer_check.
7670
7671 * keyboard.c (timer_check_2): New function that does what the old
7672 timer_check did.
7673 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7674 returned, i.e. don't return -1 with timers pending.
7675
7676 * process.c: Remove extern declaration of timer_check.
7677
7678 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7679 even if timer_check returned -1.
7680
7681 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7682 xg_dialog_data.
7683 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7684 the event loop.
7685 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7686 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7687 Destroy the dialog after xg_dialog_run.
7688
7689 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7690
7691 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7692
7693 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7694
7695 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7696
7697 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
7698
7699 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7700
7701 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7702
7703 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7704 w32menu.c, and nsmenu.m.
7705 Simplify the obsolete case where position is nil.
7706 (cleanup_popup_menu): New function, moved from nsmenu.m.
7707 (struct skp): Remove slot `notreal'.
7708 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7709 adjust callers.
7710 (single_menu_item): Adjust call to parse_menu_item.
7711 (syms_of_menu): Defsubr x-popup-menu.
7712 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7713 (keymap_panes): Don't export any more.
7714 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7715 (xmenu_show): Declare.
7716 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7717 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7718 * keyboard.h (parse_menu_item): Update declaration.
7719 * xmenu.c (Fx_popup_menu): Remove.
7720 (syms_of_xmenu): Don't defsubr x-popup-menu.
7721 * w32menu.c (Fx_popup_menu): Remove.
7722 (syms_of_w32menu): Don't defsubr x-popup-menu.
7723 * nsmenu.m (cleanup_popup_menu): Remove.
7724 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7725 moved to menu.c's Fx_popup_menu.
7726 (Fx_popup_menu): Remove.
7727 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7728 menu_items (it's done in menu.c already).
7729
7730 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7731
7732 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7733 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7734
7735 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
7736
7737 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
7738 xmenu_show. Hide any tooltip before opening a menu.
7739 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7740 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7741
7742 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7743
7744 Let integers use up 2 tags to give them one extra bit and thus double
7745 their range.
7746 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7747 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7748 New macros.
7749 (enum Lisp_Type): Use them. Give explicit values.
7750 (Lisp_Type_Limit): Remove.
7751 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7752 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7753 Pay attention to USE_2_TAGS_FOR_INTS.
7754 (INTEGERP): Use LISP_INT_TAG_P.
7755 * fns.c (internal_equal): Simplify the default case.
7756 (sxhash): Use case_Lisp_Int.
7757 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7758 any more.
7759 (Ftype_of): Use case_Lisp_Int.
7760 (store_symval_forwarding): Take into account the fact that Ints can
7761 now have more than one tag.
7762 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
7763 (buffer_slot_type_mismatch):
7764 * xfaces.c (face_attr_equal_p):
7765 * print.c (print_object):
7766 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7767 Use case_Lisp_Int.
7768
7769 2009-11-06 Eli Zaretskii <eliz@gnu.org>
7770
7771 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7772
7773 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7774 warning.
7775
7776 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7777
7778 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7779
7780 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7781
7782 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7783 ButtonPressRelease and MotionNotify (bug#4870).
7784
7785 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7786
7787 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7788
7789 * xterm.c (syms_of_xterm):
7790 * xselect.c (syms_of_xselect):
7791 * xmenu.c (syms_of_xmenu):
7792 * xfns.c (syms_of_xfns):
7793 * xfaces.c (syms_of_xfaces):
7794 * xdisp.c (syms_of_xdisp):
7795 * window.c (syms_of_window):
7796 * w32fns.c (syms_of_w32fns):
7797 * undo.c (syms_of_undo):
7798 * textprop.c (syms_of_textprop):
7799 * terminal.c (syms_of_terminal):
7800 * syntax.c (syms_of_syntax):
7801 * sound.c (syms_of_sound):
7802 * search.c (syms_of_search):
7803 * print.c (syms_of_print):
7804 * minibuf.c (syms_of_minibuf):
7805 * macros.c (syms_of_macros):
7806 * keymap.c (syms_of_keymap, initial_define_key)
7807 (initial_define_lispy_key):
7808 * keyboard.c (syms_of_keyboard):
7809 * insdel.c (syms_of_insdel):
7810 * image.c (syms_of_image):
7811 * fringe.c (syms_of_fringe):
7812 * frame.c (syms_of_frame):
7813 * fontset.c (syms_of_fontset):
7814 * fns.c (syms_of_fns):
7815 * fns.c (syms_of_fns):
7816 * fileio.c (syms_of_fileio):
7817 * fileio.c (syms_of_fileio):
7818 * eval.c (syms_of_eval):
7819 * doc.c (syms_of_doc):
7820 * dispnew.c (syms_of_display):
7821 * dired.c (syms_of_dired):
7822 * dbusbind.c (syms_of_dbusbind):
7823 * data.c (syms_of_data):
7824 * composite.c (syms_of_composite):
7825 * coding.c (syms_of_coding):
7826 * cmds.c (syms_of_cmds):
7827 * charset.c (define_charset_internal, syms_of_character):
7828 * ccl.c (syms_of_ccl):
7829 * category.c (syms_of_category, init_category_once):
7830 * casetab.c (syms_of_casetab):
7831 * casefiddle.c (syms_of_casefiddle):
7832 * callint.c (syms_of_callint):
7833 * bytecode.c (syms_of_bytecode):
7834 * buffer.c (keys_of_buffer, syms_of_buffer):
7835 * alloc.c (syms_of_alloc):
7836 * process.c (syms_of_process, init_process):
7837 * lread.c (syms_of_lread, init_obarray):
7838 * font.c (build_style_table):
7839 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7840 intern_c_string, calls to make_pure_string with
7841 make_pure_c_string. Use pure_cons instead of Fcons.
7842
7843 * process.c (socket_options): Make it const.
7844 (set_socket_option, init_process): Use a const pointer.
7845
7846 * lread.c (intern_c_string): New function.
7847 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7848 (defvar_int): Uset it. Make the name const char*.
7849
7850 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7851 (defvar_int): Update prototypes.
7852 (DEFUN, EXFUN): Support for prototypes is now required.
7853 (intern_c_string): New prototype.
7854 (struct Lisp_Subr): Make symbol_name constant.
7855
7856 * font.c (struct table_entry): Remove unused member. Make NAMES
7857 constant.
7858 (weight_table, slant_table, width_table): Make constant.
7859
7860 * emacs.c (struct standard_args): Make name and longname constant.
7861
7862 * character.h (DEFSYM): Use intern_c_string.
7863
7864 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7865
7866 * alloc.c (make_pure_c_string): New function.
7867
7868 * eval.c (Fautoload): Purecopy all arguments.
7869
7870 2009-11-05 Kenichi Handa <handa@m17n.org>
7871
7872 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7873 the buffer in case of replace.
7874
7875 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7876
7877 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7878
7879 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7880
7881 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7882 when applicable (bug#4851).
7883
7884 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7885 (P_): Support for prototypes is now required.
7886
7887 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
7888
7889 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7890 (Bug#4827).
7891
7892 2009-10-30 Eli Zaretskii <eliz@gnu.org>
7893
7894 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
7895
7896 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7897
7898 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7899
7900 * lread.c (Fload): Purecopy the file name when building
7901 Vpreloaded_file_list.
7902
7903 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7904
7905 * w32fns.c (syms_of_w32fns): Change default value of
7906 w32-scroll-lock-modifier to nil. (Bug#2827)
7907
7908 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
7909
7910 * minibuf.c (Fall_completions): Fix typos in docstring.
7911
7912 2009-10-26 Andreas Schwab <schwab@redhat.com>
7913
7914 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7915
7916 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
7917
7918 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7919 For delta < 0, skip check that only makes sense when the mini-window
7920 is going to be enlarged. (Bug#4534)
7921
7922 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
7923
7924 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7925 string in menu maps (Bug#4471).
7926
7927 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
7928
7929 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7930 FRAME_NS_VIEW on terminal frames (Bug#4765).
7931
7932 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7933
7934 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7935 DBUS_TYPE_UINTnn separately to get proper sign extension.
7936
7937 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7938 can properly handle unsigned types.
7939 (make_uid, make_gid): Remove.
7940
7941 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7942 types again.
7943
7944 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
7945 (system_process_attributes): Likewise.
7946
7947 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7948
7949 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7950
7951 * eval.c (Fautoload): Purecopy the filename. Simplify.
7952
7953 * category.c (Fdefine_category): Purecopy docstring.
7954
7955 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7956
7957 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7958
7959 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7960
7961 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
7962
7963 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7964 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7965 (Bug#4775).
7966
7967 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7968
7969 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7970 (init_fileio_once):
7971 * lisp.h (init_fileio_once): Remove.
7972 * emacs.c (main): Don't call init_fileio_once.
7973
7974 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7975
7976 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7977
7978 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7979
7980 * doprnt.c (doprnt): Fix overflow check.
7981
7982 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7983
7984 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7985
7986 * xterm.h (x_wait_for_event): Declare it.
7987
7988 * xterm.c (pending_event_wait): New variable.
7989 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7990 see pending_event_wait.eventtype.
7991 (handle_one_xevent): Don't change gravity when parent changes.
7992 (x_new_font): Call change_frame_size with new rows/columns before we
7993 try to resize the frame.
7994 (x_wait_for_event): New function.
7995 (x_set_window_size_1): Don't change gravity unless change_gravity
7996 is set.
7997 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7998 don't change frame size, instead wait for the ConfigureNotify.
7999 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
8000 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
8001 (x_initialize): Initialize pending_event_wait.
8002
8003 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
8004 size.
8005
8006 * widget.c (EmacsFrameSetValues): Add comment.
8007 (EmacsFrameSetCharSize): Just call x_set_window_size.
8008
8009 * gtkutil.c (xg_frame_set_char_size): Flush events and call
8010 x_wait_for_event.
8011 (flush_and_sync): Remove again.
8012 (xg_get_font_name): Suggest monospace if no previous font is known.
8013
8014 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
8015
8016 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
8017 8th bit, since that only made sense in the ASCII world (bug#4751).
8018
8019 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8020
8021 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
8022 processing pending events when event is filtered for input method.
8023 (Bug#3681)
8024
8025 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
8026
8027 * fns.c: Add #endif accidentally removed in previous change.
8028
8029 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8030
8031 * fns.c: Remove code for unsupported system: MAC_OS.
8032 * image.c: Likewise. Include setjmp.h.
8033
8034 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
8035
8036 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
8037 pixel -1 (bug #4742).
8038
8039 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8040
8041 * process.c (create_pty): Remove conditionals for no longer
8042 supported systems: UNIPLUS and RTU.
8043
8044 * xterm.c:
8045 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
8046
8047 * alloc.c: Do not define struct catchtag.
8048 * eval.c: Move struct catchtag definition ...
8049 * lisp.h: ... here.
8050
8051 * image.c: Move png.h #include earlier to avoid warnings.
8052
8053 * xterm.c:
8054 * xsmfns.c:
8055 * xselect.c:
8056 * xrdb.c:
8057 * xmenu.c:
8058 * xftfont.c:
8059 * xfont.c:
8060 * xfns.c:
8061 * xfaces.c:
8062 * xdisp.c:
8063 * window.c:
8064 * widget.c:
8065 * w32xfns.c:
8066 * w32uniscribe.c:
8067 * w32term.c:
8068 * w32select.c:
8069 * w32reg.c:
8070 * w32proc.c:
8071 * w32menu.c:
8072 * w32inevt.c:
8073 * w32heap.c:
8074 * w32font.c:
8075 * w32fns.c:
8076 * w32console.c:
8077 * w32.c:
8078 * w16select.c:
8079 * vm-limit.c:
8080 * unexsol.c:
8081 * unexec.c:
8082 * unexcw.c:
8083 * unexaix.c:
8084 * undo.c:
8085 * tparam.c:
8086 * textprop.c:
8087 * terminfo.c:
8088 * terminal.c:
8089 * termcap.c:
8090 * term.c:
8091 * syntax.c:
8092 * sound.c:
8093 * sheap.c:
8094 * search.c:
8095 * scroll.c:
8096 * region-cache.c:
8097 * regex.c:
8098 * ralloc.c:
8099 * process.c:
8100 * print.c:
8101 * nsterm.m:
8102 * nsselect.m:
8103 * nsmenu.m:
8104 * nsimage.m:
8105 * nsfont.m:
8106 * nsfns.m:
8107 * msdos.c:
8108 * minibuf.c:
8109 * menu.c:
8110 * marker.c:
8111 * macros.c:
8112 * keymap.c:
8113 * keyboard.c:
8114 * intervals.c:
8115 * insdel.c:
8116 * indent.c:
8117 * gtkutil.c:
8118 * ftxfont.c:
8119 * ftfont.c:
8120 * fringe.c:
8121 * frame.c:
8122 * fontset.c:
8123 * font.c:
8124 * fns.c:
8125 * floatfns.c:
8126 * filelock.c:
8127 * fileio.c:
8128 * emacs.c:
8129 * editfns.c:
8130 * dosfns.c:
8131 * doprnt.c:
8132 * doc.c:
8133 * dispnew.c:
8134 * dired.c:
8135 * dbusbind.c:
8136 * data.c:
8137 * composite.c:
8138 * coding.c:
8139 * cmds.c:
8140 * cm.c:
8141 * chartab.c:
8142 * charset.c:
8143 * character.c:
8144 * ccl.c:
8145 * category.c:
8146 * casetab.c:
8147 * casefiddle.c:
8148 * callproc.c:
8149 * callint.c:
8150 * bytecode.c:
8151 * buffer.c:
8152 * atimer.c: Include setjmp.h. (Bug#4643)
8153
8154 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
8155
8156 Remove leftover table unibyte_to_multibyte_table.
8157 * character.c (unibyte_to_multibyte_table): Remove.
8158 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
8159 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
8160 * character.h (UNIBYTE_TO_CHAR): New macro.
8161 (MAKE_CHAR_MULTIBYTE): Use it.
8162 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
8163 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
8164 (message_dolog, set_message_1):
8165 * search.c (Freplace_match):
8166 * editfns.c (Fcompare_buffer_substrings):
8167 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
8168 (concat):
8169 * insdel.c (copy_text, count_size_as_multibyte):
8170 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
8171 * term.c (produce_glyphs):
8172 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
8173 * regex.c (RE_CHAR_TO_MULTIBYTE):
8174 * cmds.c (internal_self_insert):
8175 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
8176
8177 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
8178
8179 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
8180
8181 * puresize.h (BASE_PURESIZE): Increase to 1310000.
8182
8183 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
8184
8185 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
8186
8187 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8188
8189 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
8190 still needed under Tiger.
8191
8192 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
8193
8194 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
8195 __Apple__.
8196
8197 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
8198
8199 2009-10-15 Kenichi Handa <handa@m17n.org>
8200
8201 * print.c (print_object): Escape a symbol like "2E10" too.
8202
8203 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
8204
8205 Cleanups and changes for 64-bit compile under Snow Leopard.
8206 Based on suggestions by Erik Charlebois.
8207
8208 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
8209
8210 * nsfont.m (ns_char_width): Replace deprecated call.
8211 (ns_findfonts, nsfont_list_family): Use long format in printf, and
8212 cast argument.
8213 (nsfont_open): Use ns_char_width() everywhere.
8214 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
8215
8216 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
8217
8218 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
8219 where appropriate.
8220
8221 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
8222 where appropriate.
8223 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
8224 Use stringWithUTF8String.
8225 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
8226
8227 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
8228 Add formal protocol mention to inheritance.
8229 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
8230
8231 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
8232 Fix printf format.
8233 (ns_query_color): Use CGFloat where appropriate.
8234 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
8235 (EmacsScroller-mouseDown:): Use long format in printf, and cast
8236 argument.
8237
8238 * config.in (NS_HAVE_NSINTEGER): Drop.
8239
8240 * dbusbind.c (dbus-method-return-internal)
8241 (dbus-method-error-internal): Use long format in printf, and cast
8242 argument.
8243
8244 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
8245 in printf, and cast argument.
8246
8247 * process.c (list_processes_1): Use long format in printf, and
8248 cast argument.
8249
8250 2009-10-11 Glenn Morris <rgm@gnu.org>
8251
8252 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
8253
8254 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
8255
8256 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
8257 menu bar with a small width so it doesn't enlarge the frame.
8258
8259 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
8260
8261 * fontset.c (Fset_fontset_font): Fix typos in error messages.
8262
8263 2009-10-06 Glenn Morris <rgm@gnu.org>
8264
8265 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
8266 SOME_MACHINE_LISP (this enters indirectly via DOC).
8267
8268 2009-10-05 Eli Zaretskii <eliz@gnu.org>
8269
8270 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
8271
8272 2009-10-04 Eli Zaretskii <eliz@gnu.org>
8273
8274 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
8275 Doc fix.
8276
8277 2009-10-03 Martin Rudalics <rudalics@gmx.at>
8278
8279 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
8280
8281 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
8282
8283 * lisp.h (Qdelete_directory_internal): Remove, because it is not
8284 used anymore outside fileio.c.
8285
8286 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
8287
8288 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
8289
8290 * lisp.h (Qdelete_directory_internal):
8291 Declare, instead of Qdelete_directory.
8292
8293 * w32fns.c (Fsystem_move_file_to_trash): Use it.
8294
8295 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
8296
8297 * eval.c (Fcalled_interactively_p): Add `kind' argument.
8298
8299 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
8300
8301 * fileio.c (Fdelete_directory_internal): Rename from
8302 Fdelete_directory. It is not a command anymore. It has no file
8303 name handler.
8304
8305 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
8306
8307 * xdisp.c (get_next_display_element): Use an enum in last change.
8308
8309 2009-09-28 Kenichi Handa <handa@m17n.org>
8310
8311 * xdisp.c (get_next_display_element): Pay attention to
8312 unibyte_display_via_language_environment in handling
8313 Vnobreak_char_display.
8314
8315 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8316
8317 * nsterm.h (ns_app_name): New extern variable.
8318
8319 * nsterm.m (ns_app_name): New variable.
8320 (ns_term_init): Set and use it.
8321 (ns_term_shutdown): Use it.
8322
8323 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
8324 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8325
8326 * nsfns.m (ns_set_name_iconic, ns_set_name)
8327 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8328 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8329
8330 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8331 Remove double-casting in client_data comparison.
8332
8333 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8334
8335 * keyboard.c (make_lispy_event): Remember last wheel direction.
8336 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8337
8338 2009-09-26 Glenn Morris <rgm@gnu.org>
8339
8340 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8341 internal.elc. Add term/pc-win.elc.
8342 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8343 term/x-win.elc.
8344 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8345 term/w32-win.elc.
8346 (NS_SUPPORT): New.
8347 (lisp): Add NS_SUPPORT.
8348 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8349
8350 2009-09-25 David Reitter <david.reitter@gmail.com>
8351
8352 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8353 on Mac OS X 10.6+ (bug#4513).
8354
8355 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
8356
8357 * frame.c (xrdb_get_resource): Return nil for empty string resources;
8358 some parts of Emacs code (like font selection) don't grok them.
8359 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
8360
8361 2009-09-24 Andreas Schwab <schwab@redhat.com>
8362
8363 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8364
8365 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
8366
8367 * dired.c (Fdirectory_files): Fix typo in docstring.
8368
8369 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8370
8371 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8372 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8373 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8374 under GNUstep.
8375 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8376
8377 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8378 glyph advancement.
8379
8380 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8381
8382 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
8383 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
8384
8385 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8386 deleted (bug #4492).
8387
8388 * nsfont.m (Vns_reg_to_script): New lisp variable.
8389 (syms_of_nsfont): Declare it.
8390 (ns_registry_to_script): New function.
8391 (ns_get_req_script): Call it.
8392 (ns_findfonts): Don't give up on non-unicode registry.
8393
8394 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8395
8396 2009-09-20 Tom Tromey <tromey@redhat.com>
8397
8398 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8399 batch mode (bug#4228).
8400
8401 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
8402
8403 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
8404 carefully. (Bug #4339)
8405
8406 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
8407
8408 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
8409
8410 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8411
8412 * emacs.c (inhibit_x_resources): Update doc string for NS.
8413 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
8414 legacy code for -NXHost. Fix error printf in daemon case.
8415
8416 * nsterm.h (ns_no_defaults): Remove.
8417
8418 * nsterm.m (ns_no_defaults): Remove.
8419 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8420 (ns_use_qd_smoothing): Remove legacy variable.
8421 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8422 don't update the NSWindow itself.
8423 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
8424 state detection and store user rect ourselves. (Bug #3581)
8425
8426 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8427 ns_use_qd_smoothing.
8428
8429 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8430 platform versions. Drop support for emacs-20-style face specs.
8431 (x-close-connection): Drop PSFlush() under OS X.
8432 (x-focus-frame): Activate the app first. (Bug #4180)
8433
8434 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
8435
8436 * emacs.c (inhibit_x_resources): New variable.
8437 (main) [HAVE_NS]: Don't process --quick command line option.
8438 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8439
8440 * lisp.h (inhibit_x_resources): Declare it extern.
8441
8442 * w32reg.c (x_get_string_resource):
8443 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8444
8445 2009-09-17 Eli Zaretskii <eliz@gnu.org>
8446
8447 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8448 Add lisp/term/internal.elc.
8449
8450 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8451
8452 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8453 (bug#4461).
8454
8455 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8456
8457 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8458
8459 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8460 (OBJECTS_MACHINE): Remove, unused.
8461
8462 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8463
8464 * frame.c (x_get_resource_string): Remove unused.
8465
8466 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8467
8468 * xterm.c (x_new_font): Call change_frame_size before calling
8469 x_set_window_size, in case frame size won't change.
8470
8471 * frame.c (x_set_font): Remove dead code.
8472
8473 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8474
8475 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8476
8477 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8478
8479 * lread.c (Fload): Don't output a message after loading an obsolete
8480 package any more (done in Lisp now).
8481
8482 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
8483
8484 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8485
8486 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8487
8488 * keymap.c (Fwhere_is_internal): Use nconc2.
8489
8490 2009-09-11 Alan Mackenzie <acm@muc.de>
8491
8492 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8493 batch mode.
8494
8495 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8496
8497 * xdisp.c (display_mode_element): Detect cycles.
8498
8499 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8500
8501 * keymap.c (where_is_internal): Don't erroneously return nil right after
8502 filling the cache.
8503 (where_is_internal_1): Fix up typo.
8504
8505 2009-09-11 Glenn Morris <rgm@gnu.org>
8506
8507 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8508 share a common doc-string.
8509
8510 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8511
8512 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8513 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8514
8515 * keymap.c (QCadvertised_binding): New constant.
8516 (syms_of_keymap): Initialize it.
8517 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8518 if applicable.
8519
8520 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8521
8522 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8523 (parse_menu_item): Streamline since bindings are recomputed all the
8524 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8525 more and don't support lmenu's menu-alias any more either.
8526
8527 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8528 (where_is_internal): Strip it down to only traverse the keymaps.
8529 Move the cache handling from Fwhere_is_internal to here.
8530 (Fwhere_is_internal): Move the handling of remapping and the choice of
8531 the best binding from where_is_internal to here.
8532 Unify the cached/noncached paths, so remapping is also handled
8533 correctly when the cache is used, and so the cache can be used to
8534 speed up remap-handling when applicable.
8535 Give preference to non-remapped bindings.
8536 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8537 non-remapped bindings.
8538 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8539 command remapping.
8540
8541 * xdisp.c (display_mode_element): Move list length limit from 50 to
8542 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8543
8544 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
8545
8546 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8547
8548 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8549
8550 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8551 (Bug#4334)
8552
8553 * keymap.c (where_is_internal): Filter out shadowed remappings.
8554 Assume that where_is_internal returns unshadowed bindings to simplify
8555 the code and get rid of the gotos. Use ASIZE.
8556
8557 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8558
8559 * xterm.c (x_focus_changed): If we get a focusout and pointer
8560 is invisible, make it visible.
8561
8562 * xterm.h: Remove condition for declaration of
8563 x_*_window_to_frame.
8564
8565 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8566
8567 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8568 initial terminal as well.
8569
8570 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8571
8572 * xterm.h: Rename x_non_menubar_window_to_frame to
8573 x_menubar_window_to_frame.
8574
8575 * xterm.c: Remove declarations also in xterm.h.
8576 (XTmouse_position): Do not return valid positions
8577 for clicks in the menubar and the toolbar for Gtk+.
8578
8579 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8580 if the widget for the event has the same top level as a frame,
8581 return the frame.
8582 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8583 internal windows, bug #4122.
8584 (x_non_menubar_window_to_frame): Remove.
8585
8586 2009-09-02 Glenn Morris <rgm@gnu.org>
8587
8588 * buffer.c (default-major-mode): Move most of the doc from here...
8589 (major-mode): ... to here.
8590
8591 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
8592
8593 * process.c (wait_reading_process_output): Keep the descriptor
8594 when pty is used by a non-child process, e.g., in I/O buffer of
8595 GDB this allows inferior to be restarted.
8596
8597 2009-08-29 Eli Zaretskii <eliz@gnu.org>
8598
8599 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8600 both branches into one.
8601
8602 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8603
8604 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8605 (main): Use enable-multibyte-characters rather than
8606 default-enable-multibyte-characters. Output a warning message when
8607 running a unibyte session.
8608
8609 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8610
8611 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8612 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8613 (copy_data_segment): Also copy __program_vars section.
8614 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8615 (dump_it) [LC_DYLD_INFO]: Use it.
8616
8617 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8618
8619 2009-08-28 Eli Zaretskii <eliz@gnu.org>
8620
8621 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8622 $(SRC)/buildobj.h.
8623 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8624 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8625 $(SRC)/buildobj.h.
8626 (clean): Add buildobj.h.
8627
8628 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8629
8630 * print.c (print_object): Set escapeflag to 1 when printing
8631 hashtable keys and values.
8632
8633 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8634
8635 * lread.c (read_integer): Use doubles (and potentially return a float
8636 number) as we do in string-to-number.
8637 (read1): Use strtol to read integers, signal errors on strtol's
8638 overflow and use floats if strtol's output is too large for
8639 Elisp integers.
8640
8641 2009-08-27 Eli Zaretskii <eliz@gnu.org>
8642
8643 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8644 (make-buildobj-SH): Fix last change.
8645 (SRC): Move to before where it's first used.
8646
8647 2009-08-27 Kenichi Handa <handa@m17n.org>
8648
8649 * process.c (send_process): Use encode_coding_object instead of
8650 encode_coding_string to perform eol-conversion even if the string
8651 is unibyte.
8652
8653 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8654 character.
8655
8656 * cmds.c (Fself_insert_command): Avoid unnecessay
8657 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
8658
8659 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8660
8661 * callproc.c (Fcall_process): Remove always true #if.
8662
8663 * lisp.h: Replace #if 0 code for checking with text pointing to
8664 the --enable-checking configure flag.
8665
8666 * emacs.c (main): Mention the --enable-profiling configure flag
8667 instead of using CFLAGS.
8668
8669 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
8670
8671 * Makefile.in (buildobj.h): New target.
8672 (doc.o): Depend on it.
8673 (temacs${EXEEXT}): Don't generate buildobj.lst.
8674 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8675 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8676 ($(BLD)/doc.$(O)): Depend on it.
8677 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8678 provided by Eli Zaretskii.)
8679 ($(TEMACS)): Don't generate buildobj.lst.
8680 * doc.c: Include buildobj.h.
8681 (buildobj): New static variable.
8682 (Fsnarf_documentation): Use it, instead of opening and reading
8683 buildobj.lst.
8684
8685 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
8686
8687 * dbusbind.c (Fdbus_call_method)
8688 (Fdbus_call_method_asynchronously): Use English numeric format for
8689 timeout values in doc string.
8690
8691 2009-08-25 Kenichi Handa <handa@m17n.org>
8692
8693 * alloc.c (mark_char_table): New function.
8694 (mark_object): Use mark_char_table for a char-table.
8695
8696 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8697 (CHAR_TABLE_REF): Use it.
8698
8699 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
8700
8701 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8702 before invoking the newly build emacs to check for load-path
8703 shadowing.
8704
8705 2009-08-22 Glenn Morris <rgm@gnu.org>
8706
8707 * Makefile.in (bootstrap_exe): New variable.
8708 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8709 Use ${bootstrap_exe}.
8710
8711 2009-08-22 Eli Zaretskii <eliz@gnu.org>
8712
8713 * coding.h (encode_coding_string): Don't encode unibyte strings.
8714 (Bug#4047)
8715
8716 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
8717
8718 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8719
8720 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8721 intended as hotfix only.
8722 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8723
8724 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8725
8726 * nsterm.m (ns_get_color): Update documentation properly for last
8727 change, and clean up loose ends in the code left by it. Fix
8728 longstanding bug with 16-bit hex parsing, and add support for
8729 yet another X11 format (rgb:r/g/b) for compatibility.
8730 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8731 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8732
8733 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8734
8735 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8736
8737 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
8738
8739 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8740 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8741 (xd_initialize, xd_pending_messages): Check, whether
8742 $DBUS_SESSION_BUS_ADDRESS is set.
8743
8744 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8745
8746 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8747
8748 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8749
8750 2009-08-20 Glenn Morris <rgm@gnu.org>
8751
8752 * emacs.c (system-type): Doc fix.
8753
8754 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8755
8756 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8757 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8758
8759 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
8760
8761 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8762 New functions.
8763 (xd_initialize): Revert change from 2009-08-16.
8764
8765 2009-08-18 Kenichi Handa <handa@m17n.org>
8766
8767 * fontset.c (Ffontset_font): If a nil element is found in a
8768 font-group vector, return nil.
8769
8770 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
8771
8772 * process.c (status_notify): Don't perform redisplay.
8773 (Fdelete_process, list_processes_1, process_send_signal):
8774 Expliticly perform redisplay.
8775 (wait_reading_process_output): Always check process status, but
8776 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8777
8778 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
8779
8780 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
8781 (XFLOAT_INIT): New macro for storing a float value.
8782 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8783 * fns.c (sxhash): Copy out the value of a float in order to
8784 examine its bytes.
8785 * dbusbind.c (xd_append_arg): Likewise.
8786
8787 * emacs.c (main): Don't call syms_of_data twice.
8788
8789 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
8790
8791 * dbusbind.c (xd_initialize): Add connection file descriptor to
8792 input_wait_mask, in order to let select() detect, whether a new
8793 message has been arrived.
8794 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
8795
8796 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
8797
8798 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8799 New functions.
8800
8801 * lisp.h (xd_pending_messages): Declare.
8802
8803 * keyboard.c (readable_events): Call xd_pending_messages.
8804
8805 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
8806
8807 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
8808
8809 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8810
8811 * buffer.c (set_buffer_internal_1)
8812 (swap_out_buffer_local_variables): Check for unbound local
8813 variables (Bug#4138).
8814
8815 2009-08-14 Eli Zaretskii <eliz@gnu.org>
8816
8817 * process.c (create_pty): Fix last change.
8818
8819 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
8820
8821 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8822 (xbm_load_image): Caller changed.
8823 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
8824
8825 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
8826
8827 * process.c (create_pty): New function.
8828 (Fstart_process): Use it to allow Emacs to just associate a pty
8829 with the buffer. See associated change in gdb-mi.el.
8830 (list_processes_1): Deal with no program name.
8831 (start_process_unwind): Use pid == -2 to mean no process.
8832
8833 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8834
8835 * cmds.c (nonundocount): New global variable.
8836 (keys_of_cmds): Initialize it.
8837 (Fself_insert_command): Use it to combine upto 20 sequential chars
8838 into a single undo entry, just like the Qself_insert_command code in
8839 keyboard.c does.
8840 Call frame_make_pointer_invisible, also like the Qself_insert_command
8841 code in keyboard.c does.
8842 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8843 than its own local replacement for it.
8844
8845 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
8846
8847 * fns.c (concat): Don't re-set string length to its current value.
8848
8849 * coding.h (decode_coding_string, encode_coding_string):
8850 Use SBYTES macro.
8851
8852 * doprnt.c (doprnt_lisp): Delete unused function.
8853 (doprnt): Merge with doprnt1, discarding lispstrings code.
8854 * lisp.h (doprnt_lisp): Don't declare.
8855
8856 2009-08-07 Juri Linkov <juri@jurta.org>
8857
8858 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8859
8860 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8861
8862 * print.c (syms_of_print): Undo previous change.
8863
8864 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8865
8866 * lread.c (read1, syms_of_lread): Read hashtables back from the
8867 readable format.
8868
8869 * print.c (print_preprocess, print_object): Print hashtables fully
8870 and readably.
8871 (syms_of_print): Provide 'hashtable-print-readable.
8872
8873 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8874
8875 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8876 no family set.
8877 (nsfont_open): Handle case when entity has no family.
8878
8879 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8880
8881 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8882 element, not a list, for match case.
8883
8884 2009-07-28 Kenichi Handa <handa@m17n.org>
8885
8886 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8887 rigidly.
8888
8889 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8890 font_parse_xlfd. Check font properties more rigidly.
8891
8892 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8893
8894 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8895 bsd-common.h.
8896
8897 2009-07-27 Kenichi Handa <handa@m17n.org>
8898
8899 * xfaces.c (face_with_height): Call font_clear_prop.
8900
8901 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
8902
8903 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8904
8905 * xterm.c (x_term_init): Use Qx.
8906
8907 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8908
8909 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
8910 (ns_get_color): Revert 2009-07-16 change.
8911
8912 2009-07-25 Eli Zaretskii <eliz@gnu.org>
8913
8914 * lread.c (syms_of_lread) <force_load_messages>: New variable.
8915 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
8916
8917 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
8918
8919 * coding.h (decode_coding_string, encode_coding_string):
8920 Use SCHARS macro.
8921
8922 * lread.c: Rewrite 2009-07-21 changes.
8923 (load_depth): Delete.
8924 (Qload_in_progress): New variable.
8925 (load_unwind): Don't reference load_depth or load_in_progress.
8926 (Fload): Likewise; specbind Qload_in_progress instead.
8927 (init_lread): Don't initialize load_depth.
8928 (syms_of_lread): Initialize and protect Qload_in_progress.
8929
8930 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8931
8932 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8933
8934 2009-07-23 Yavor Doganov <yavor@gnu.org>
8935
8936 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8937
8938 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8939
8940 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
8941 Bugs 3792, 3720, 2402.
8942 (ns_lookup_indexed_color): Check for bad index.
8943 (ns_index_color): Init unused slot to 0.
8944 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8945 Bug 3714, possibly 3082.
8946
8947 2009-07-22 Jason Rumney <jasonr@gnu.org>
8948
8949 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8950 Position IME window at cursor (Bug#2570).
8951 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8952 (globals_of_w32fns): Dynamically load functions required above.
8953
8954 * w32term.c (w32_draw_window_cursor): Send message to reposition
8955 any IME window.
8956
8957 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
8958
8959 * fileio.c: Revert 2009-07-16 changes.
8960 (Vauto_save_include_big_deletions): New variable.
8961 (Fdo_auto_save): Disable auto-save only if
8962 auto-save-include-big-deletions is nil.
8963
8964 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
8965
8966 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8967 the overflowed pixels into account (Bug#3879).
8968
8969 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
8970
8971 * lread.c (load_depth): New variable.
8972 (Fload, load_unwind, init_lread): Set it to the load recursion
8973 depth; set load_in_progress as a simple boolean based on the
8974 current load_depth. (Bug#3892)
8975
8976 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8977
8978 * nsfont.m (ns_has_attribute): Remove.
8979 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8980
8981 2009-07-18 Juri Linkov <juri@jurta.org>
8982
8983 * process.c (Fset_process_query_on_exit_flag): Mention killing
8984 a buffer in docstring.
8985
8986 2009-07-17 Kenichi Handa <handa@m17n.org>
8987
8988 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8989
8990 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8991
8992 * nsfns.m (Fns_set_alpha): Remove function.
8993 (syms_of_nsfns): Don't defsubr it.
8994
8995 * nsterm.m (ns_get_color): Remove incompatible color formats.
8996 (ns_color_to_lisp): Generate #rrggbb color format string.
8997
8998 2009-07-16 Richard Stallman <rms@gnu.org>
8999
9000 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
9001 (Fset_buffer_auto_saved): Handle save_length = -2.
9002
9003 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
9004
9005 * xterm.c (Qx_gtk_map_stock): New var.
9006
9007 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
9008 of calling intern each time.
9009
9010 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9011
9012 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
9013 does tiling.
9014
9015 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
9016
9017 2009-07-14 Kenichi Handa <handa@m17n.org>
9018
9019 * font.c (font_vconcat_entity_vectors): New function.
9020 (struct font_sort_data): New member font_driver_preference.
9021 (font_compare): Check font_driver_preference.
9022 (font_sort_entities): The format of the first argument changed.
9023 (font_delete_unmatched): Likewise.
9024 (font_list_entities): The return type changed.
9025 (font_select_entity): The format of the second argument changed.
9026 (font_find_for_lface): Adjuste for the above changes.
9027 Don't suppress the checking of C even if the repertory supports it.
9028 (Flist_fonts): Adjust for the above changes.
9029
9030 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
9031 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
9032 Reject a font who has adstyle property that is different from a
9033 langname derived from registry property.
9034 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
9035
9036 2009-07-13 Eli Zaretskii <eliz@gnu.org>
9037
9038 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
9039 local copy of dirfilename.
9040
9041 2009-07-13 Kenichi Handa <handa@m17n.org>
9042
9043 * chartab.c (sub_char_table_ref_and_range): Fix the range check
9044 against max_char.
9045
9046 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
9047 calling XSYMBOL (sym).
9048
9049 2009-07-11 Eli Zaretskii <eliz@gnu.org>
9050
9051 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
9052 New function.
9053 (directory_files_internal) [WINDOWSNT]:
9054 Bind w32-get-true-file-attributes to either t or nil, depending whether
9055 the filesystem of the directory is fast or slow.
9056
9057 * w32.c (logon_network_drive): Don't assume PATH is an absolute
9058 file name.
9059 (is_slow_fs): New function.
9060 (stat): Use it to determine whether to issue more system calls to
9061 get accurate file attributes, when w32-get-true-file-attributes is
9062 `local'.
9063
9064 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
9065
9066 * xfns.c (Fx_select_font): Remember last font selected in
9067 x_last_font_name and use that the next time. Also try the frame
9068 parameter font-parameter as default to the font dialog.
9069
9070 2009-07-10 Kenichi Handa <handa@m17n.org>
9071
9072 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
9073
9074 2009-07-09 Eli Zaretskii <eliz@gnu.org>
9075
9076 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9077
9078 * w32.c (stat): Treat UNC file names as residing on remote
9079 drives. (Bug#3542)
9080
9081 2009-07-09 Kenichi Handa <handa@m17n.org>
9082
9083 * fontset.c (fontset_find_font): Fix previous change.
9084
9085 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
9086
9087 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
9088 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
9089 error flag.
9090
9091 2009-07-08 Kenichi Handa <handa@m17n.org>
9092
9093 * fontset.c (fontset_find_font): Fix the logic of handling
9094 charset_matched.
9095 (font_for_char): Delete unused var.
9096 (generate_ascii_font_name): Delete it.
9097
9098 * coding.h (JIS_TO_SJIS2): Fix the code range check.
9099
9100 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
9101 (encode_coding_sjis): Fix the code range check.
9102
9103 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
9104
9105 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
9106 (Fexpand_file_name): Copy string data properly (Bug#3772).
9107
9108 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
9109
9110 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
9111 first MapNotify.
9112
9113 2009-07-07 Kenichi Handa <handa@m17n.org>
9114
9115 * character.h (unibyte_has_multibyte_table): Delete extern.
9116 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
9117
9118 * charset.c (Fset_charset_priority): Update charset_unibyte.
9119 (syms_of_charset): Initialize charset_unibyte.
9120
9121 * character.c (unibyte_has_multibyte_table): Delete it.
9122 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
9123 charset_unibyte.
9124 (multibyte_char_to_unibyte_safe): Likewise.
9125 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
9126
9127 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
9128 (x_produce_glyphs): Likewise.
9129
9130 * .gdbinit (xcharset): Fix the treating $arg0.
9131
9132 2009-07-04 Eli Zaretskii <eliz@gnu.org>
9133
9134 Emulation of `getloadavg' on MS-Windows.
9135 * w32.c: Include float.h.
9136 (g_b_init_get_native_system_info, g_b_init_get_system_times)
9137 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
9138 (get_native_system_info, get_system_times): New functions.
9139 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
9140 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
9141 (globals_of_w32): Initialize g_b_init_get_native_system_info,
9142 g_b_init_get_system_times, and num_of_processors.
9143
9144 2009-07-03 Jason Rumney <jasonr@gnu.org>
9145
9146 * w32term.c (w32_initialize): Use standard types.
9147
9148 2009-07-03 Eli Zaretskii <eliz@gnu.org>
9149
9150 * dired.c (Ffile_attributes): Decode user and group names by the
9151 locale's encoding. (Bug#3443)
9152
9153 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
9154
9155 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
9156 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
9157
9158 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
9159
9160 * term.c (init_tty): Remove spurious #ifdef.
9161
9162 * m/mips.h: Mention this file is also used for netbsd.
9163 * m/pmax.h: Remove file.
9164
9165 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
9166
9167 * xterm.h (struct x_display_info): Add invisible_cursor.
9168 (struct x_output): Add current_cursor.
9169
9170 * xterm.c (XTtoggle_invisible_pointer): New function.
9171 (x_define_frame_cursor): Don't define cursor if invisible or the
9172 same as before. Set current_cursor.
9173 (x_create_terminal): Set toggle_invisible_pointer_hook.
9174
9175 * xfns.c (make_invisible_cursor): New function.
9176 (x_set_mouse_color): Call make_invisible_cursor.
9177 Set current_cursor.
9178 (x_window): Set current_cursor.
9179
9180 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
9181
9182 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
9183 inserting a character.
9184 (read_avail_input): Call frame_make_pointer_visible.
9185
9186 * frame.c (Vmake_pointer_invisible): New variable.
9187 (frame_make_pointer_invisible, frame_make_pointer_visible):
9188 New functions.
9189 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
9190
9191 * frame.h: Declare frame_make_pointer_invisible and
9192 frame_make_pointer_visible.
9193 (struct frame): Add pointer_invisible.
9194
9195 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
9196
9197 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
9198 frame isn't visible.
9199 (xg_frame_resized): If width/height is -1, get size of window
9200 from X server.
9201
9202 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
9203 for MapNotify.
9204
9205 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
9206 here or call change_frame_size. Just call flush_and_sync.
9207 (flush_and_sync): Reintroduce.
9208
9209 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
9210
9211 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
9212
9213 * xterm.c (x_handle_net_wm_state): Also look for sticky.
9214 (x_term_init): Initialize Xatom_net_wm_state_sticky.
9215
9216 * frame.h: Declare Qsticky.
9217
9218 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
9219
9220 * nsfns.m (ns_frame_parm_handlers): Ditto.
9221
9222 * frame.c: Declare Qsticky.
9223 (frame_parms): Add sticky.
9224
9225 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
9226
9227 * xterm.h: Declare x_set_sticky.
9228
9229 * xterm.c (x_set_sticky): New function.
9230
9231 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
9232 (xg_tool_bar_menu_proxy): Attach enter/leave events to
9233 xg_tool_bar_proxy_help_callback.
9234
9235 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
9236
9237 * frame.c: Qmaximized is new.
9238 (x_set_frame_parameters): Do not handle fullscreen specially.
9239 Only set width and height if explicitly set.
9240 (x_set_fullscreen): Handle Qmaximized.
9241 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
9242 (syms_of_frame): Initialize Qmaximized.
9243
9244 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
9245 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
9246
9247 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
9248 for Expose event. Add call to x_check_fullscreen for MapNotify event.
9249 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
9250 set gravity to NorthWestGravity when USE_GTK.
9251 (set_wm_state): New function.
9252 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
9253 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
9254 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
9255 or the case when no window manager is running. That means remove calls
9256 to x_real_positions and x_fullscreen_adjust.
9257
9258 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
9259 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
9260 flush_and_sync.
9261 (xg_height_changed): New function.
9262 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
9263 and gtk_window_set_policy. Set frame gravity after parsing the
9264 geometry string.
9265 (xg_update_frame_menubar, free_frame_menubar)
9266 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9267 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
9268 Remove calls to xg_frame_set_char_size.
9269
9270 2009-07-01 Kenichi Handa <handa@m17n.org>
9271
9272 * keyboard.c (decode_keyboard_code): New function.
9273 (tty_read_avail_input): Decode the input bytes if necessary.
9274
9275 * coding.c (setup_coding_system):
9276 Initialize coding->carryover_bytes to 0.
9277 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9278 use Qno_conversion.
9279
9280 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9281
9282 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
9283
9284 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
9285
9286 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
9287
9288 2009-06-30 Jason Rumney <jasonr@gnu.org>
9289
9290 * w32term.c (w32_initialize): Use GetModuleHandle for library that
9291 is already loaded.
9292 Set user model ID if supported (bug#1849).
9293
9294 2009-06-29 Jim Meyering <meyering@redhat.com>
9295
9296 Remove useless if-before-xfree test.
9297 * nsfont.m (nsfont_close): Remove useless test.
9298 * term.c (delete_tty): Likewise.
9299 * w32.c (system_process_attributes): Likewise.
9300 * w32font.c (w32font_close): Likewise.
9301 * xfaces.c (x_free_gc): Likewise.
9302 * xselect.c (buffer): Likewise.
9303
9304 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
9305
9306 * process.c (send_process): Keep decoded string in a local
9307 variable and protect it from GC. (Bug#3521)
9308
9309 2009-06-28 Eli Zaretskii <eliz@gnu.org>
9310
9311 * term.c (create_tty_output) [MSDOS]: #ifdef away.
9312 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
9313
9314 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
9315
9316 * xdisp.c (start_display, handle_face_prop)
9317 (move_it_vertically_backward, cursor_row_fully_visible_p)
9318 (redisplay_window, try_window_id, produce_image_glyph):
9319 Delete some #ifdef-ed out code chunks that are now obsolete.
9320
9321 * xterm.c (x_update_window_begin, x_new_focus_frame)
9322 (x_scroll_bar_handle_click, handle_one_xevent)
9323 (handle_one_xevent, XTread_socket, x_focus_on_frame)
9324 (x_make_frame_visible, x_make_frame_invisible)
9325 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9326 code chunks that are now obsolete.
9327
9328 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
9329
9330 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9331 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
9332 for hours, when optimzation is enabled.
9333 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9334 (xd_read_message): Make them static.
9335
9336 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
9337
9338 * term.c (turn_on_face): Allow simultaneously bold and dim
9339 terminal faces (Bug#3530).
9340
9341 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
9342
9343 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9344
9345 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9346 truncation glyphs (Bug#3686).
9347
9348 2009-06-27 Glenn Morris <rgm@gnu.org>
9349
9350 * m/pmax.h: Restore file, with only netbsd portions.
9351
9352 2009-06-26 David Reitter <david.reitter@gmail.com>
9353
9354 * nsterm.m (keydown): Avoid infinite loop.
9355
9356 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9357
9358 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9359 the arg FORCE_SYMBOL.
9360
9361 2009-06-25 Kenichi Handa <handa@m17n.org>
9362
9363 * fontset.c (fontset_find_font): When a usable rfont_def is found
9364 in a fallback font-group, make it the first element of the group.
9365
9366 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
9367
9368 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9369
9370 2009-06-24 Kenichi Handa <handa@m17n.org>
9371
9372 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9373 set for C.
9374 (fontset_font): Record the availability of a font for C both in
9375 the realized fontsets of the current one and the default one.
9376
9377 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9378
9379 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9380 conditional, it is always defined on AIX.
9381
9382 2009-06-23 Miles Bader <miles@gnu.org>
9383
9384 * window.c (Vrecenter_redisplay): New variable.
9385 (syms_of_window): Initialize it.
9386 (Qtty): New extern declaration.
9387 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9388
9389 2009-06-23 Jim Meyering <meyering@redhat.com>
9390
9391 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9392 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
9393 pointer dereferences are guaranteed to be valid.
9394
9395 2009-06-23 Kenichi Handa <handa@m17n.org>
9396
9397 * emacs.c (main): Call init_font ().
9398
9399 * font.h (Vfont_log): Extern it.
9400 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9401
9402 * font.c (font_sort_entities, font_list_entities)
9403 (font_matching_entity, font_open_entity)
9404 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9405 (Vfont_log): Delete static.
9406 (font_log_env_checked): Delete this variable.
9407 (font_add_log): Don't check font_log_env_checked.
9408 (font_deferred_log): Check Vfont_log.
9409 (init_font): New function.
9410
9411 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9412
9413 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9414
9415 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9416
9417 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9418
9419 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9420 (face_for_char): Don't call font_deferred_log here.
9421 (font_for_char): Likewise.
9422
9423 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
9424
9425 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9426 rather than its background_width for drawing the overline and
9427 underline (Bug#489).
9428
9429 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9430 rather than its background_width for drawing the overline and
9431 underline (Bug#489).
9432 (xg_default_icon_file): New variable.
9433 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9434 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9435
9436 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9437 (load_overlay_strings): Remove externs.
9438 (fast_find_position): Function deleted.
9439 (mouse_face_from_buffer_pos): New function, based on
9440 fast_find_position. Correctly handle before-strings,
9441 display-strings, and after-strings (Bug#1220).
9442 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9443
9444 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
9445
9446 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
9447 (move_it_in_display_line_to, move_it_in_display_line_to)
9448 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9449
9450 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
9451
9452 * Branch for 23.1.
9453
9454 2009-06-21 Jason Rumney <jasonr@gnu.org>
9455
9456 * w32term.c (keyboard_codepage): New static variable.
9457 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9458 (w32_read_socket) [WM_CHAR]: Use it to decode character
9459 input (bug#3237).
9460 (w32_initialize): Initialize it.
9461 (codepage_for_locale): New function.
9462
9463 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
9464
9465 * process.c (status_message): Pass Faset index argument as a lisp
9466 object, so as to work with USE_LISP_UNION_TYPE.
9467
9468 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9469
9470 * coding.c (Ffind_coding_systems_region_internal):
9471 Cache checked characters.
9472
9473 2009-06-18 Kenichi Handa <handa@m17n.org>
9474
9475 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
9476
9477 2009-06-18 Andreas Schwab <aschwab@redhat.com>
9478
9479 * xdisp.c (redisplay_internal): Check that the frame is still
9480 live after redisplay of its windows.
9481 (redisplay_windows): Check that the window is still live.
9482
9483 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9484
9485 * coding.c (detect_coding_utf_16): Fix previous change.
9486
9487 2009-06-16 Kenichi Handa <handa@m17n.org>
9488
9489 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9490 UTF-16 by checking the dispersion of Eth and Oth bytes.
9491
9492 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9493
9494 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9495
9496 2009-06-15 Kenichi Handa <handa@m17n.org>
9497
9498 * process.c (status_message): Fix previous change. Be sure to
9499 decode a localized string.
9500
9501 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9502
9503 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9504 add comment explaining why.
9505
9506 2009-06-14 Sidney Markowitz <sidney@sidney.com>
9507
9508 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
9509
9510 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9511
9512 * nsfont.m (ns_attribute_value): Remove.
9513 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9514 (ns_has_attribute): Shrink the normal range.
9515 (ns_findfonts): Don't worry about requested spec in determining
9516 need for synthItal.
9517 (ns_get_covering_families): Retain scriptToFamilies.
9518
9519 2009-06-14 Seiji Zenitani <zenitani@mac.com>
9520
9521 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9522
9523 2009-06-11 Kenichi Handa <handa@m17n.org>
9524
9525 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9526 overhang for the static composition case.
9527
9528 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9529
9530 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9531 overhang for the automatic composition case.
9532
9533 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9534 composition case.
9535
9536 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
9537
9538 * xdisp.c (get_next_display_element): When handling wrap-prefix
9539 and line-prefix, treat \n as a control character (bug#3502).
9540
9541 2009-06-10 Kenichi Handa <handa@m17n.org>
9542
9543 * font.c (font_parse_family_registry): Fix for one-char foundry.
9544 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9545
9546 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9547
9548 * process.c (status_message): Fix handling of multibyte signal
9549 string (Bug#3499).
9550
9551 2009-06-09 Jim Meyering <meyering@redhat.com>
9552
9553 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9554 color name is missing.
9555
9556 2009-06-09 Kenichi Handa <handa@m17n.org>
9557
9558 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9559 FROM-CODE and TO-CODE are codepoints of CHARSET.
9560
9561 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9562
9563 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9564
9565 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9566
9567 Changes to support :script/:lang/:otf in NS font driver.
9568 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9569 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9570 indicate not part of font driver interface, and change callers.
9571 (ns_get_family): Remove pointless null check.
9572 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9573 ns_spec_to_descriptor, ns_descriptor_to_entity.
9574 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9575 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9576 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9577 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9578 (ns_get_req_script, ns_accumulate_script_ranges)
9579 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9580 New functions.
9581 (nsfont_list, nsfont_match): Use ns_findfonts.
9582 (nsfont_open): Use font descriptor instead of traits.
9583 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9584 (dump_glyphstring): Rename to ns_dump_glyphstring.
9585
9586 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9587
9588 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9589
9590 * fontset.c (fontset_from_font): Remove NS-specific code.
9591
9592 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
9593
9594 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9595 nonactive windows.
9596
9597 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
9598
9599 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
9600
9601 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9602
9603 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9604
9605 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
9606
9607 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9608 account for the overflowing of newlines into the last glyph on the
9609 display line (Bug#3482).
9610
9611 2009-06-05 David Reitter <david.reitter@gmail.com>
9612
9613 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9614 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
9615 Fns_selection_exists_p, Fns_selection_owner_p.
9616
9617 2009-06-03 Jason Rumney <jasonr@gnu.org>
9618
9619 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9620 available. (Bug#3379)
9621
9622 2009-05-29 Kenichi Handa <handa@m17n.org>
9623
9624 * coding.c (get_translation_table):
9625 Check Venable_character_translation.
9626
9627 2009-05-26 David Reitter <david.reitter@gmail.com>
9628
9629 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9630 (x_make_frame_visible): Move frame to front rather than calling
9631 ns_raise_frame().
9632 (keyDown:): Do not swallow events that aren't re-sent if frame
9633 isn't key window.
9634 (drawRect:): Do not set visibility/iconified flags because
9635 drawRect may be called by NSView even if the frame is hidden.
9636
9637 * nsfns.m (Fx_create_frame): Follow other ports in
9638 determining visibility; default to t. Ensure async_visible is set.
9639
9640 2009-05-23 Eli Zaretskii <eliz@gnu.org>
9641
9642 * dired.c (Ffile_attributes): Doc fix.
9643
9644 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
9645
9646 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9647
9648 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9649
9650 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9651 and xfont_scratch_props.
9652 (syms_of_xfont): Do it here instead.
9653 (xfont_find_ccl_program): Delete, unused.
9654 (xfont_open): Delete unused var `i'.
9655
9656 2009-05-21 Kenichi Handa <handa@m17n.org>
9657
9658 * fontset.c (Qlatin): Don't make it static.
9659
9660 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9661 New functions.
9662 (xfont_scripts_cache, xfont_scratch_props): New variables.
9663 (Qlatin, Vscalable_fonts_allowed): Extern it.
9664 (xfont_list_pattern): Argument changed. Callers changed.
9665 Check Vscalable_fonts_allowed. Check the support of a script.
9666 (xfont_list): Don't reject a font spec with :script property.
9667 (xfont_has_char): Fix setting of encoding.
9668 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9669 xfont_scratch_props.
9670
9671 2009-05-19 Kenichi Handa <handa@m17n.org>
9672
9673 * font.c (font_sort_entities): Rename from font_sort_entites.
9674 Callers changed.
9675
9676 2009-05-18 Kenichi Handa <handa@m17n.org>
9677
9678 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9679
9680 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9681
9682 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9683 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9684
9685 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9686
9687 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9688 (x_delete_terminal): Dissociate resource database from display and
9689 then call XrmDestroyDatabase before closing display.
9690
9691 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9692
9693 * nsterm.m (ns_read_socket): Remove unused variable.
9694 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9695 whether selected frame is viable before raising it (based on patch
9696 by David Reitter), and improve commentary.
9697 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9698
9699 2009-05-15 Kenichi Handa <handa@m17n.org>
9700
9701 * font.c (Ffont_spec): Check arguments.
9702
9703 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
9704
9705 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9706 weight when testing attributes (Bug#3282).
9707
9708 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9709
9710 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9711 what we expect to get in the next ConfigureNotify event.
9712
9713 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9714 before Xft one (Bug#1696).
9715
9716 2009-05-07 David Reitter <david.reitter@gmail.com>
9717
9718 * nsfns.m (Fx_display_planes): Compute bitplanes using
9719 NSBitsPerPixelFromDepth (Bug#3207).
9720
9721 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
9722
9723 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9724
9725 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
9726
9727 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9728
9729 2009-05-07 David Reitter <david.reitter@gmail.com>
9730
9731 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9732 Respect mouse face background.
9733
9734 2009-05-07 David Reitter <david.reitter@gmail.com>
9735
9736 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9737 Mouse movement/highlight: bracket drawing operations
9738 in ns_update_begin and ns_update_end.
9739
9740 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9741
9742 * nsfns.m (ns_get_screen): Rewrite.
9743 Don't presume selected-frame is of type `ns'.
9744
9745 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9746 all drivers.
9747
9748 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9749
9750 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9751
9752 * keyboard.h (add_user_signal): Fix typo in extern.
9753
9754 * lisp.h (add_user_signal): Remove extern.
9755
9756 * unexelf.c (unexec): Consider a section to precede the .bss section
9757 if its addresses overlap that of .bss.
9758 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9759 instead of dumping process.
9760
9761 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9762
9763 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9764
9765 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9766
9767 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9768
9769 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9770
9771 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9772 any statements.
9773
9774 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9775
9776 * process.c (read_process_output): Make sure the current buffer is
9777 always restored.
9778
9779 * coding.c (record_conversion_result): Don't modify
9780 Vlast_code_conversion_error for successful result.
9781 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9782
9783 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9784
9785 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
9786 (load_charset_map): Remove unnecessary code.
9787
9788 2009-04-30 David Reitter <david.reitter@gmail.com>
9789
9790 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
9791 through f24.
9792
9793 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
9794
9795 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9796
9797 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9798 face_at_buffer_position.
9799 (face_before_or_after_it_pos, get_next_display_element)
9800 (note_mouse_highlight): Update face_at_buffer_position call.
9801
9802 * term.c (term_mouse_highlight):
9803 * msdos.c (IT_note_mouse_highlight):
9804 * fontset.c (Finternal_char_font):
9805 * font.c (font_at, font_range): Update face_at_buffer_position call.
9806
9807 * dispextern.h (face_at_buffer_position): Update prototype.
9808
9809 2009-04-30 Kenichi Handa <handa@m17n.org>
9810
9811 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
9812
9813 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9814
9815 * callproc.c (Fcall_process): Fix GC protection. Make sure
9816 current buffer is always restored.
9817
9818 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9819
9820 * atimer.c (init_atimer): Also clear stopped_atimers.
9821
9822 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9823
9824 * process.c (create_process): Clean up merger residues of
9825 2008-07-17 change.
9826
9827 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
9828
9829 * lread.c (Vread_circle): New variable.
9830 (read1): Disable recursive read if Vread_circle is nil.
9831
9832 2009-04-29 Kenichi Handa <handa@m17n.org>
9833
9834 * fontset.h (set_default_ascii_font): Delete extern.
9835
9836 * fontset.c (set_default_ascii_font): Delete this unused function.
9837
9838 * frame.c (x_set_font): When ARG is a font-object, check if the
9839 font-object matches with the ASCII font-spec of the frame's
9840 fontset. If not, create a new fontset for the frame. (Bug #3075)
9841
9842 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9843
9844 * fns.c (Flocale_info): Protect vector from GC during decoding.
9845
9846 * process.c (Fstart_process): Protect argv strings from GC during
9847 encoding.
9848
9849 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9850
9851 * sysdep.c: Include <ctype.h>.
9852
9853 2009-04-27 David Reitter <david.reitter@gmail.com>
9854
9855 * nsfont.m (nsfont_open): Remove unused variable shrink.
9856 Remove commented-out code.
9857
9858 2009-04-26 Johan Bockgård <bojohan@gnu.org>
9859
9860 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9861
9862 2009-04-25 Jason Rumney <jasonr@gnu.org>
9863
9864 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9865
9866 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9867
9868 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9869 Swap bytes in short integer if fringe bitmap width > 8.
9870
9871 2009-04-23 Kenichi Handa <handa@m17n.org>
9872
9873 * xfaces.c (Fx_list_fonts): If a font size is specified in
9874 PATTERN, set it in returned scalable fonts.
9875
9876 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
9877
9878 * keyboard.c (Fset_input_meta_mode): Doc fix.
9879
9880 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9881
9882 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
9883
9884 * coding.c (Fterminal_coding_system): Doc fix.
9885
9886 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9887 (Fx_display_pixel_height, Fx_display_planes)
9888 (Fx_display_color_cells, Fx_server_max_request_size)
9889 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9890 (Fx_display_mm_height, Fx_display_mm_width)
9891 (Fx_display_backing_store, Fx_display_visual_class)
9892 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9893 Doc fixes, replacing "terminal id" with "terminal object".
9894 (check_x_display_info): Handle terminal objects instead of
9895 terminal ids.
9896
9897 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9898 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
9899 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9900 Doc fixes, replacing "terminal id" with "terminal object".
9901
9902 2009-04-21 Kenichi Handa <handa@m17n.org>
9903
9904 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
9905 (font_score): Check AVGWIDTH too.
9906
9907 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9908 worst case.
9909 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9910 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
9911
9912 2009-04-19 Jason Rumney <jasonr@gnu.org>
9913
9914 The following changes fix Bug#3005 for wide glyphs on each platform,
9915 without reintroducing Bug#1258 for stretch glyphs.
9916
9917 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9918 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9919 get_phys_cursor_geometry.
9920
9921 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
9922 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9923 using get_phys_cursor_geometry.
9924
9925 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9926 correctly calculated.
9927
9928 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9929
9930 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9931 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
9932 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9933 is deprecated.
9934
9935 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9936
9937 * font.c (font_put_frame_data): Use xfree instead of free.
9938
9939 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
9940
9941 * w32font.c (Qja, Qko): Remove declarations.
9942 (syms_of_w32font): Don't DEFSYM them.
9943
9944 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
9945
9946 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9947
9948 * font.h (Qja, Qko): Extern them.
9949
9950 * ftfont.c (Qja, Qko): Remove declarations.
9951
9952 * xfont.c (Qja, Qko): Remove declarations.
9953
9954 2009-04-17 Kenichi Handa <handa@m17n.org>
9955
9956 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9957 string from a vector to handle Latin-1 characters correctly.
9958
9959 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9960 entity even if the cache hits.
9961
9962 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9963
9964 * search.c (boyer_moore): Use zero as marker value for a possible
9965 match instead of depending on overflow behavior. (Bug#2844)
9966
9967 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9968 * lisp.h: Adjust prototypes.
9969
9970 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
9971
9972 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9973 change (Bug#3003).
9974
9975 2009-04-16 Kenichi Handa <handa@m17n.org>
9976
9977 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
9978
9979 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9980 adstyle.
9981
9982 * ftfont.c (Qja, Qko): Don't make them static.
9983 (enum ftfont_cache_for): New enum.
9984 (fc_charset_table): Undo the previous change.
9985 (ftfont_get_latin1_charset): Delete it.
9986 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9987 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
9988 non-scarable font, try to get AVERAGE_WIDTH.
9989 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9990 Change ft_face_cache from a list of a hash-table. Don't check
9991 `ja' and `ko' adstyle here.
9992 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9993 FTFONT_CACHE_FOR_CHARET.
9994 (ftfont_get_charset): Undo the previous change.
9995 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
9996 (ftfont_close): Likewise.
9997 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9998
9999 * font.c (font_sort_entites): Change the meaning of the arg
10000 BEST-ONLY. Don't optimize for VEC of lenght 1.
10001 (font_select_entity): Just return the value of font_sort_entites.
10002
10003 * xfaces.c (merge_face_vectors): Reflect font properties in
10004 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
10005 font_clear_prop if a face attribute doesn't change.
10006
10007 * charset.h (charset_ksc5601): Extern it.
10008
10009 * charset.c (charset_ksc5601): New variable.
10010 (Fdefine_charset_internal): Set charset_ksc5601.
10011 (init_charset_once): Initialize charset_ksc5601 to -1.
10012
10013 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10014
10015 * fileio.c (history_delete_duplicates): Remove unused declaration.
10016
10017 * callint.c (history_delete_duplicates): New declaration.
10018 (Fcall_interactively): Remove command history duplicates when
10019 history_delete_duplicates is true.
10020
10021 2009-04-14 Eli Zaretskii <eliz@gnu.org>
10022
10023 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
10024
10025 2009-04-14 Kenichi Handa <handa@m17n.org>
10026
10027 * font.c (Ffont_info): Fix docstring. Fix the second element of
10028 the returned value (bug#2949).
10029
10030 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
10031
10032 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
10033
10034 2009-04-14 Kenichi Handa <handa@m17n.org>
10035
10036 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
10037 encoding charset is ascii_compatible.
10038
10039 * charset.c (Fdefine_charset_internal): Make charset
10040 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
10041 code_offset is 0, and covers all ASCII characters.
10042
10043 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10044
10045 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
10046 (ns_string_to_pasteboard_internal):
10047 * nsmenu.m (process_dialog):
10048 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
10049 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
10050 * lisp.h (Fx_load_color_file): Declare.
10051
10052 2009-04-13 Kenichi Handa <handa@m17n.org>
10053
10054 * font.c (font_delete_unmatched): Preserve the order of list elements.
10055 (font_select_entity): Suppress the code to optimize for the same
10056 kind of fonts.
10057 (font_load_for_lface): Get a font that supports at least ASCII
10058 characters.
10059
10060 * ftfont.c (Qja, Qko): New variables.
10061 (fc_charset_table): Delete uniquifier data for iso8859-1.
10062 (ftfont_get_latin1_charset): New function.
10063 (get_adstyle_property): New function.
10064 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
10065 bitmap fonts.
10066 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
10067 Delete iso-8859-1 range from the charset of fonts whose adstyle is
10068 `ko' or `ja'.
10069 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
10070 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
10071 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
10072 property.
10073 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
10074 (syms_of_ftfont): DEFSYM Qja and Qko.
10075
10076 2009-04-09 Kenichi Handa <handa@m17n.org>
10077
10078 * charset.c (map_charset_chars): For a charset of `superset'
10079 method, fix calculation of code range.
10080
10081 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
10082 from the list of extra properties.
10083 (font_clear_prop): Be sure to delete `:name' font property.
10084
10085 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10086
10087 * dispnew.c (redraw_overlapping_rows): Fix detection of
10088 overlapping for topmost and bottommost rows.
10089
10090 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
10091
10092 2009-04-06 Jason Rumney <jasonr@gnu.org>
10093
10094 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
10095
10096 2009-04-06 Kenichi Handa <handa@m17n.org>
10097
10098 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
10099
10100 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
10101
10102 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10103
10104 * ftfont.c (ftfont_open): Fix checking of the return value of
10105 FT_Load_Char. Fix setting font->underline_thickness.
10106
10107 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
10108
10109 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
10110 (Fterminal_parameters, Fterminal_parameter)
10111 (Fset_terminal_parameter): In doc string, refer to terminal
10112 objects rather than terminal ids.
10113
10114 2009-04-04 Eli Zaretskii <eliz@gnu.org>
10115
10116 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
10117 ret_lim_data. (Bug#2867)
10118
10119 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
10120
10121 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
10122 so they don't get wider than the window, matching 2006-01-23
10123 change to the partner function in xdisp.c (Bug#2800).
10124
10125 2009-04-03 Kenichi Handa <handa@m17n.org>
10126
10127 * print.c (print_object): Make each lowest sub_char_table start a
10128 new line (Bug#2866).
10129
10130 2009-04-02 Kenichi Handa <handa@m17n.org>
10131
10132 * fontset.c (fontset_font): Record no-font when a fontset
10133 explicitly tells not to try another font-specs.
10134
10135 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
10136
10137 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
10138
10139 2009-03-30 Kenichi Handa <handa@m17n.org>
10140
10141 * fontset.c (fontset_from_font): Specify only registry in a
10142 font-spec for all characters supported by that registry.
10143
10144 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
10145 even if HAVE_M17N_FLT is not defined.
10146
10147 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
10148
10149 * ftfont.c: Conditionalize prototyping and use of
10150 ftfont_variation_glyphs.
10151
10152 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10153
10154 * frame.c (delete_frame): Work around compiler bug.
10155
10156 * editfns.c (general_insert_function): Adjust to insdel.c changes.
10157 * insdel.c (prepare_to_modify_buffer, signal_before_change):
10158 Some more EMACS_INT.
10159 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
10160
10161 * xdisp.c (dump_glyph): Fix typo.
10162
10163 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
10164 (adjust_markers_gap_motion, adjust_markers_for_delete)
10165 (adjust_markers_for_insert, adjust_point)
10166 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
10167 (make_gap, copy_text, count_size_as_multibyte, insert)
10168 (insert_and_inherit, insert_before_markers)
10169 (insert_before_markers_and_inherit, insert_1)
10170 (count_combining_before, count_combining_after, insert_1_both)
10171 (insert_from_string, insert_from_string_before_markers)
10172 (insert_from_string_1, insert_from_gap, insert_from_buffer)
10173 (insert_from_buffer_1, adjust_after_replace)
10174 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
10175 (replace_range_2, del_range, del_range_1, del_range_byte)
10176 (del_range_both, del_range_2, modify_region)
10177 (prepare_to_modify_buffer, signal_before_change)
10178 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
10179 for buffer positions and sizes.
10180 * lisp.h: Adjust prototypes accordingly.
10181
10182 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
10183 (non_regular_inserted, non_regular_nbytes, read_non_regular)
10184 (Finsert_file_contents): Use EMACS_INT for buffer positions.
10185
10186 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
10187
10188 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
10189
10190 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
10191 lines and columns so we keep the same pixel height and width.
10192
10193 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
10194 the property _NET_WM_STATE has changed.
10195 (x_handle_net_wm_state): New function to update frame parameter
10196 fullscreen.
10197 (x_term_init): Initialize atoms for _NET_WM_STATE.
10198
10199 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
10200
10201 2009-03-27 Kevin Ryde <user42@zip.com.au>
10202
10203 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
10204 Gpm_GetEvent as an error that justifies closing the filedescriptor.
10205 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
10206 (Fgpm_mouse_stop): Pass that new parameter.
10207 * termhooks.h (close_gpm): Adjust prototype.
10208
10209 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10210
10211 * lisp.h (Fx_focus_frame): Declare.
10212
10213 * callint.c (Fcall_interactively): For '^' just delegate the work to
10214 handle-shift-selection.
10215 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
10216
10217 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
10218
10219 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
10220
10221 * data.c (Qinteractive_form): New variable.
10222 (Finteractive_form): Use it.
10223
10224 * eval.c (Fcommandp): Use Qinteractive_form.
10225
10226 2009-03-24 Jason Rumney <jasonr@gnu.org>
10227
10228 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
10229 Calculate total size precisely. Decode environment variables
10230 before substituting. (Bug#38)
10231
10232 2009-03-24 Kenichi Handa <handa@m17n.org>
10233
10234 * font.c (find_font_encoding): Return Qnil for unsupported
10235 encoding (Bug#2722).
10236
10237 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
10238
10239 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
10240 that gdpy is set.
10241
10242 2009-03-22 Alan Mackenzie <acm@muc.de>
10243
10244 * callint.c (Finteractive): Clarify the doc string - even
10245 promptless elements need \n separators.
10246
10247 2009-03-22 Jason Rumney <jasonr@gnu.org>
10248
10249 * w32term.c (syms_of_w32term): Doc fix for
10250 x-use-underline-position-properties.
10251
10252 2009-03-21 Eli Zaretskii <eliz@gnu.org>
10253
10254 * w32.c (getpwuid): Change argument type to unsigned.
10255 (struct w32_id): Change type of `rid' member to unsigned.
10256 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
10257 argument ID to unsigned. All callers changed.
10258 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
10259
10260 2009-03-20 Eli Zaretskii <eliz@gnu.org>
10261
10262 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
10263 negative, produce a float value.
10264
10265 * dired.c (make_uid, make_gid): New functions.
10266 (Ffile_attributes): Use them to avoid negative UID and GID.
10267
10268 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
10269
10270 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
10271 (syms_of_keyboard) <command-hook-internal, input-method-function>:
10272 Fix typos in docstrings.
10273
10274 2009-03-19 Kenichi Handa <handa@m17n.org>
10275
10276 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
10277 changed, use font_load_for_lface to get a new font object.
10278 Call free_realized_fontset after handling ASCII font change.
10279
10280 * frame.c (x_set_font): Handle the case that ARG is a cons.
10281
10282 2009-03-19 Glenn Morris <rgm@gnu.org>
10283
10284 * fileio.c (Fsubstitute_in_file_name): Doc fix.
10285
10286 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
10287
10288 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
10289
10290 2009-03-19 Kenichi Handa <handa@m17n.org>
10291
10292 * charset.c (load_charset_map_from_file): When a mapfile can't be
10293 loaded, signal an error.
10294
10295 2009-03-18 Eli Zaretskii <eliz@gnu.org>
10296
10297 * dired.c (Ffile_attributes): Make sure UID and GID are always
10298 positive, even if the value is too large for a positive EMACS_INT.
10299 Doc fix.
10300
10301 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
10302
10303 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10304
10305 * xmenu.c (xdialog_show): Move Fredisplay call ...
10306 (Fx_popup_dialog): ... here.
10307
10308 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
10309
10310 * dired.c (file_name_completion): Disable the first optimization just
10311 installed, since it is not implemented correctly.
10312
10313 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10314
10315 * dired.c (file_name_completion): Check completion-ignored-extensions
10316 only if the entry can affect bestmatch.
10317 Stop the search early, as Ftry_completion already does.
10318
10319 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
10320
10321 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
10322
10323 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
10324
10325 * keyboard.c (parse_menu_item): Don't display remappings as menu
10326 equivalent bindings (Bug#788).
10327
10328 2009-03-15 Jason Rumney <jasonr@gnu.org>
10329
10330 * w32term.h (WM_EMACS_PAINT): New message.
10331 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10332 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10333 before passing to lisp thread. (Bug#950)
10334
10335 2009-03-14 David Reitter <david.reitter@gmail.com>
10336
10337 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10338 variable as it was never reset.
10339 (ns_term_init): Remove initialization of Lisp-settable defaults
10340 and ns_expand_space.
10341 (-setPanelFromDefaultValues): Remove ns_expand_space.
10342 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10343 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
10344 i.e. no additional spacing, similar to Carbon port.
10345
10346 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10347 * nsfns.m (ns-popup-prefs-panel): Remove.
10348
10349 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10350
10351 * sound.c (alsa_configure): Remove call to deprecated
10352 snd_pcm_sw_params_set_xfer_align.
10353
10354 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
10355
10356 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10357 after clicking in a detached tool bar.
10358 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10359
10360 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10361
10362 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10363 int/Lisp_Object mixup).
10364
10365 2009-03-13 Kenichi Handa <handa@m17n.org>
10366
10367 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
10368 Handle NAME nil and t correctly. Callers changed.
10369 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10370 (set_fontset_font): Change ARG to a vector. Handle range_list in
10371 ARG correctly.
10372 (Fset_fontset_font): Fix the case that TARGET is both a script
10373 name and charset name. Adjust the arg to set_fontset_font for
10374 the above change.
10375 (fontset_from_font): Fix previous change.
10376 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
10377 entry. If FONTSET is the default fontset, don't set the extra
10378 slot of the returning char-table.
10379
10380 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
10381
10382 * nsfns.m (Fx_close_connection): Doc fix.
10383 (Fns_do_applescript): Reflow docstring.
10384 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10385 (Fx_display_pixel_width, Fx_display_pixel_height)
10386 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10387 Fix typos in docstrings.
10388 (Fns_set_alpha): Fix typos in error messages.
10389
10390 2009-03-12 David Reitter <david.reitter@gmail.com>
10391
10392 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
10393 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10394 were used for such events.
10395
10396 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10397 (toggleToolbar, performDragOperation, runHelp): Use it.
10398
10399 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
10400 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10401
10402 2009-03-11 Kenichi Handa <handa@m17n.org>
10403
10404 * font.h (font_open_by_spec): Extern it.
10405
10406 * font.c (font_open_by_spec): New function.
10407 (font_open_by_name): Use font_open_by_spec.
10408
10409 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10410 fontset of the frame.
10411
10412 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10413 modify the default font of frames that use this fontset.
10414 (num_auto_fontsets): New variable.
10415 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10416 name. Be sure to set FONTSET_ASCII to the correct font name.
10417 (update_auto_fontset_alist): New function.
10418
10419 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
10420
10421 * makefile.w32-in: Update dependencies.
10422
10423 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10424
10425 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10426
10427 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10428
10429 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10430
10431 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
10432
10433 * lread.c (Feval_buffer): Doc fix.
10434
10435 2009-03-09 Kenichi Handa <handa@m17n.org>
10436
10437 * charset.c (Qfile_name_handler_alist): Extern it.
10438 (load_charset_map_from_file): Temporarily bind
10439 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10440
10441 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
10442
10443 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10444 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
10445
10446 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10447
10448 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10449 (x_set_window_size): Change back to calculated method of setting
10450 toolbar height under Cocoa. (Bug#2546)
10451 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10452 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10453
10454 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10455
10456 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10457 accelerator in parens under GNUstep.
10458
10459 2009-03-06 Kenichi Handa <handa@m17n.org>
10460
10461 These changes are to detect incorrect composition sequence without
10462 looking ahead the source. (Bug#2370)
10463
10464 * coding.h: Include "composite.h".
10465 (enum compisition_state): New enum.
10466 (struct compisition_status): New struct.
10467 (struct iso_2022_spec): New member cmp_status.
10468 (struct emacs_mule_spec): New struct.
10469 (struct coding_system): New members ctext_extended_segment_len and
10470 embedded_utf_8. Change the union member
10471 spec.emacs_mule_full_support to spec.emacs_mule.
10472
10473 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10474 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
10475 (MAX_ANNOTATION_LENGTH): Define to 5.
10476 (ADD_COMPOSITION_DATA): New arg nbytes.
10477 (emacs_mule_char): New arg cmp_status.
10478 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10479 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10480 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10481 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10482 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10483 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10484 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10485 (EMACS_MULE_COMPOSITION_END): New macro.
10486 (emacs_mule_finish_composition): New function.
10487 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10488 (decode_coding_emacs_mule): Avoid long looking ahead while
10489 handling composition.
10490 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10491 (ENCODE_COMPOSITION_RULE): New macro.
10492 (finish_composition): New function.
10493 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10494 (DECODE_COMPOSITION_START): New implementation.
10495 (DECODE_COMPOSITION_END): Likewise.
10496 (STORE_COMPOSITION_RULE): New macro.
10497 (decode_coding_iso_2022): Avoid long looking ahead while handling
10498 composition, CTEXT extended segment, and embedded UTF-8.
10499 (setup_coding_system): For a coding of type iso-2022, reset
10500 CODING_ISO_EXTSEGMENT_LEN (coding) and
10501 CODING_ISO_EMBEDDED_UTF_8 (coding).
10502 (get_translation): Delete arguments last_block, from_nchars,
10503 to_nchars. Callers changed.
10504 (produce_chars): Don't modify charbuf. Adjusted for the change of
10505 get_translation.
10506 (produce_composition): Adjust for the new annotation sequence.
10507 (handle_composition_annotation): Likewise.
10508 (consume_chars): Adjust for the change of get_translation.
10509
10510 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10511
10512 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
10513
10514 2009-03-05 Kenichi Handa <handa@m17n.org>
10515
10516 * font.c (font_select_entity): New function.
10517 (font_find_for_lface): Use font_select_entity to select a font.
10518
10519 * fontset.c (fontset_find_font): If a font found without
10520 restricting to the characters C doesn't support C, try to find a
10521 font with C restriction.
10522
10523 2009-03-04 Nikolaj Schumacher <me@nschum.de>
10524
10525 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
10526
10527 2009-03-04 Jason Rumney <jasonr@gnu.org>
10528
10529 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
10530 characters that have already been read. (Bug#2569)
10531
10532 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10533 Log an error message if check_image_size failed.
10534 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
10535 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10536
10537 2009-03-02 Eli Zaretskii <eliz@gnu.org>
10538
10539 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10540 when decoding process output.
10541
10542 2009-03-01 Richard M Stallman <rms@gnu.org>
10543
10544 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10545
10546 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10547
10548 2009-02-28 Eli Zaretskii <eliz@gnu.org>
10549
10550 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10551 (decode_coding_emacs_mule, decode_coding_iso_2022)
10552 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10553 (decode_coding_raw_text, decode_coding_charset)
10554 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10555 Honor inhibit-eol-conversion. (Bug #2186)
10556
10557 2009-02-28 Jason Rumney <jasonr@gnu.org>
10558
10559 * coding.c (detect_coding_charset): If not checking latin extra,
10560 fail on characters between 0x80 and 0xA0. (Bug#2354)
10561
10562 2009-02-28 Eli Zaretskii <eliz@gnu.org>
10563
10564 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
10565 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
10566
10567 2009-02-27 Glenn Morris <rgm@gnu.org>
10568
10569 * callint.c (Finteractive): Doc fix.
10570
10571 2009-02-27 Kenichi Handa <handa@m17n.org>
10572
10573 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10574
10575 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
10576
10577 * font.c (font_style_to_value): Set value for unknown symbols to
10578 100 instead of 255.
10579 (weight_table, slant_table, width_table): Treat "unspecified" as
10580 the default value.
10581
10582 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
10583
10584 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10585
10586 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
10587
10588 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10589 error as soon as a recursive load is detected.
10590
10591 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10592
10593 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10594 before caching.
10595
10596 2009-02-24 Kenichi Handa <handa@m17n.org>
10597
10598 * fontset.c (fontset_find_font): Fix the condition for checking
10599 unavailable font.
10600
10601 2009-02-24 Glenn Morris <rgm@gnu.org>
10602
10603 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10604 whitespace that confuses documentation.
10605
10606 2009-02-23 Miles Bader <miles@gnu.org>
10607
10608 * process.c (Flist_system_processes, Fprocess_attributes)
10609 (syms_of_process): Rename `system-process-attributes' to
10610 `process-attributes'.
10611
10612 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10613
10614 * coding.h (struct coding_system): Make safe_charsets a pointer to
10615 unsigned char.
10616 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10617 being 255.
10618 (SAFE_CHARSET_P): Likewise.
10619 (setup_iso_safe_charsets): Properly setup safe_charsets.
10620 (Fdefine_coding_system_internal): Likewise.
10621 (setup_coding_system): Likewise. Remove unneeded casts.
10622 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10623 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10624 unneeded casts.
10625
10626 * insdel.c (del_range_2): Don't modify gap contents when called
10627 from decode_coding_object. (Bug#1809)
10628
10629 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
10630
10631 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10632 Qfont_object.
10633 (Ftype_of): Recognize font objects.
10634
10635 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10636
10637 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10638 moved to data.c.
10639
10640 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10641
10642 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10643 async_iconified. Based on a patch by Christian Lynbech
10644 <christian.lynbech@tieto.com>.
10645 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10646
10647 2009-02-20 Glenn Morris <rgm@gnu.org>
10648
10649 * syntax.c (Fskip_chars_forward): Fix doc typo.
10650
10651 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
10652
10653 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10654
10655 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
10656
10657 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10658
10659 2009-02-19 Kenichi Handa <handa@m17n.org>
10660
10661 * coding.c (detect_coding): Preserve coding->mode.
10662 Don't overflow coding->carryover. (Bug#2370)
10663
10664 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10665
10666 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10667
10668 2009-02-18 Kenichi Handa <handa@m17n.org>
10669
10670 * font.c (font_check_otf_features): Fix handling of `nil' element.
10671 (Ffont_spec): Describe :lang and :otf in the docstring.
10672
10673 2009-02-16 Andreas Schwab <schwab@suse.de>
10674
10675 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10676 string.
10677
10678 2009-02-16 Kenichi Handa <handa@m17n.org>
10679
10680 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
10681 (Bug#1723)
10682
10683 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
10684
10685 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
10686
10687 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10688 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10689
10690 2009-02-14 Eli Zaretskii <eliz@gnu.org>
10691
10692 * msdos.c (MAX_SCREEN_BUF): New macro.
10693 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10694 Encode the entire run of glyphs sharing the same face, instead of
10695 doing that one glyph at a time (fixes a bug with displaying
10696 double-size characters).
10697
10698 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10699
10700 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10701
10702 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10703 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
10704 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
10705
10706 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
10707 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
10708
10709 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10710
10711 * keyboard.c (adjust_point_for_property): Allow stopping between two
10712 invisible areas.
10713
10714 2009-02-12 Jason Rumney <jasonr@gnu.org>
10715
10716 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10717 (add_font_entity_to_list): Call check_face_name even when family
10718 is unspecified.
10719
10720 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10721 Release DC when finished. Use NULL window to refer to desktop.
10722 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
10723
10724 * w32font.c (add_font_entity_to_list): Fix check for substituted
10725 raster fonts. (Bug#2219)
10726
10727 2009-02-12 Kenichi Handa <handa@m17n.org>
10728
10729 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10730 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10731 (autocmp_chars): Use fast_looking_at. Don't compose more
10732 characters than MAX_COMPOSITION_COMPONENTS.
10733 (find_automatic_composition): While looking forward and backward,
10734 check static composition. Fix where to stop looking forward.
10735 (composition_adjust_point): Fix checking of static composition.
10736 (Fcomposition_get_gstring): Pay attention to
10737 MAX_COMPOSITION_COMPONENTS.
10738
10739 * lisp.h (fast_looking_at): Extern it.
10740
10741 * search.c (fast_looking_at): New function.
10742
10743 * term.c (encode_terminal_code): Adjust for the change of
10744 <struct glyph>.u.cmp.to.
10745 (append_composite_glyph): Likewise.
10746
10747 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
10748 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10749 composition.
10750 (append_composite_glyph): Adjust for the change of
10751 <strcut glyph>.u.cmp.to.
10752
10753 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
10754
10755 * casetab.c (init_casetab_once):
10756 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10757 * font.c (font_update_lface):
10758 * fontset.c (Fnew_fontset):
10759 * ftfont.c (ftfont_drive_otf):
10760 * xfont.c (xfont_open):
10761 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10762
10763 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10764
10765 * fileio.c (Fwrite_region): !NILP -> CONSP.
10766
10767 2009-02-10 Andreas Schwab <schwab@suse.de>
10768
10769 * process.c (send_process): Properly relocate pointer into data
10770 when using encoded data. (Bug#2272)
10771
10772 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10773
10774 * coding.c (detect_coding_charset): Fix previous change.
10775
10776 2009-02-08 Jason Rumney <jasonr@gnu.org>
10777
10778 * w32fns.c (w32_hide_hourglass): Handle case where frame
10779 disappeared while hourglass was displayed. (Bug #2193)
10780
10781 2009-02-07 Andreas Schwab <schwab@suse.de>
10782
10783 * unexelf.c (unexec): Fix error message.
10784
10785 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10786
10787 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
10788 when modal window is active. (Bug #2152)
10789 (applicationShouldTerminate:): Remove now-unneeded while loop
10790 around NSRunAlertPanel.
10791
10792 * nsmenu.m (popupSession): New file-global variable.
10793 (pop_down_menu): End the popupSession before closing dialog.
10794 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10795 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10796 don't query NSApp for events (just sleep instead).
10797
10798 2009-02-07 Eli Zaretskii <eliz@gnu.org>
10799
10800 * coding.c (syms_of_coding) <translation-table-for-input>:
10801 Modify doc string to discourage use for character code unification.
10802
10803 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10804
10805 * atimer.c (run_timers): Update pending_atimers.
10806
10807 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
10808
10809 * image.c (svg_load_image): Fix last change.
10810
10811 * xfns.c (Fx_create_frame): Signal an error if no font is
10812 found (Bug#2147).
10813
10814 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
10815
10816 * character.c (syms_of_character) <script-representative-chars>:
10817 Fix typo in docstring.
10818
10819 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10820
10821 * nsmenu.m (pop_down_menu): New function.
10822 (ns_popup_dialog): Call it on unwind.
10823 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10824 call timer_check() (Bug#2154).
10825 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10826 handling_signal is set.
10827 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10828
10829 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
10830
10831 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10832
10833 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10834
10835 * keyboard.c (poll_for_input_1, handle_async_input):
10836 Set handling_signal under HAVE_NS.
10837
10838 2009-02-04 Glenn Morris <rgm@gnu.org>
10839
10840 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10841
10842 2009-02-04 Kenichi Handa <handa@m17n.org>
10843
10844 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10845
10846 * charset.c (Fchar_charset): New optional arg restriction.
10847
10848 * coding.h (coding_system_charset_list): Extern it.
10849
10850 * coding.c (coding_system_charset_list): New function.
10851
10852 * composite.c: Include coding.h and termhooks.h.
10853 (composition_gstring_p): Fix for the terminal case.
10854 (composition_gstring_width): Likewise.
10855 (fill_gstring_body): Likewise.
10856 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10857 the frame.
10858 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10859 is within a composition.
10860 (Fcomposition_get_gstring): Fix the terminal case.
10861
10862 * term.c (encode_terminal_code): Fix handling of composition.
10863 (produce_composite_glyph): For static composition, get pixel_width
10864 from struct composition.
10865
10866 2009-02-02 Andreas Schwab <schwab@suse.de>
10867
10868 * unexelf.c (unexec): Handle unaligned bss offset.
10869
10870 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10871
10872 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10873 XT,w32read_socket changes to ns_read_socket.
10874
10875 * keyboard.c (handle_interrupt): Don't call
10876 quit_throw_to_read_char() under NS.
10877
10878 * blockinput.h: Remove NS-specific code.
10879
10880 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10881
10882 * dispnew.c (window_change_signal): Don't try to get the size of a
10883 suspended tty frame.
10884 * term.c (Fresume_tty): Resize if the size has changed while the
10885 tty was suspended.
10886
10887 * alloc.c (mark_stack): Properly conditionalize previous change.
10888
10889 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
10890
10891 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10892 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10893 Remove; this code is not used on Windows.
10894
10895 2009-01-30 Eli Zaretskii <eliz@gnu.org>
10896
10897 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10898 EOLs that also has stray ^M characters.
10899
10900 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
10901
10902 * atimer.c (run_timers, alarm_signal_handler):
10903 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10904 * w32inevt.c (w32_console_read_socket):
10905 * w32term.c (w32_read_socket):
10906 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10907
10908 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
10909
10910 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10911 Initialize it as a relative filename pattern.
10912 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10913 (Fcall_process_region): Simplify temp file creation using
10914 temporary-file-directory.
10915
10916 2009-01-29 Eli Zaretskii <eliz@gnu.org>
10917
10918 * msdos.c: Rename pending_signals to msdos_pending_signals.
10919 (sig_suspender, sigprocmask): Adjust.
10920
10921 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
10922
10923 * keyboard.c (pending_signals): New var.
10924 (poll_for_input, input_available_signal, init_keyboard): Set it.
10925 (process_pending_signals): New function.
10926
10927 * lisp.h (QUIT): Check pending_signals instead of
10928 interrupt_input_pending. Use process_pending_signals.
10929
10930 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
10931
10932 * process.c (wait_reading_process_output): Use process_pending_signals.
10933
10934 * sysdep.c (emacs_write): Use process_pending_signals.
10935
10936 * xterm.c (XTread_socket): Update pending_signals.
10937
10938 * w32term.c (w32_read_socket): Update pending_signals.
10939
10940 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10941
10942 2009-01-29 Kenichi Handa <handa@m17n.org>
10943
10944 * xftfont.c (xftfont_has_char): New function.
10945 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10946
10947 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10948
10949 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10950 under GNUstep.
10951 (ns_query_color): New declaration.
10952
10953 * nsterm.m (ns_confirm_quit): New variable.
10954 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10955 (EmacsApp-applicationShouldTerminate:): Use it.
10956 (EmacsPrefsController): Let user set it.
10957 (ns_query_color): New function.
10958 (ns_defined_color): Use it.
10959 (ns_initialize): Drop.
10960 (ns_term_init): Add two lines from ns_initialize(), and set
10961 input_interrupt_mode to nil.
10962
10963 * image.c (svg_load_image): Don't right-shift background RGB when
10964 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
10965
10966 2009-01-28 Kenichi Handa <handa@m17n.org>
10967
10968 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
10969 (fontset_get_font_group): Remember that no font-group is specified
10970 for C.
10971
10972 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
10973
10974 * fns.c (concat): Check for string overflow (bug#1787).
10975
10976 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10977 Quadruple undo limits (bug#1501).
10978
10979 2009-01-27 Kenichi Handa <handa@m17n.org>
10980
10981 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10982 directly use GT_Get_Char_index.
10983
10984 * xftfont.c (struct xftfont_info): New member `index'.
10985
10986 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
10987 (Ffontset_font): Adjust for the change of fontset entry.
10988
10989 2009-01-26 Kenichi Handa <handa@m17n.org>
10990
10991 * fontset.c (fontset_find_font): Fix handling of non-cons return
10992 value of fontset_get_font_group.
10993 (fontset_font): Revert last change.
10994
10995 2009-01-26 Jason Rumney <jasonr@gnu.org>
10996
10997 * w32font.c (w32font_list_internal): Return quickly if registry is
10998 unknown. Simplify final return.
10999 (add_font_entity_to_list): Break complex logic down into more
11000 manageable chunks. Move unknown registry check to
11001 w32font_list_internal.
11002
11003 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
11004
11005 Changes to remove Feval calls from GUI under NS.
11006
11007 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
11008 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
11009 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
11010
11011 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
11012 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
11013 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
11014 instead of NON_ASCII_KEYSTROKE_EVENT.
11015 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
11016 (EmacsApp-applicationShouldTerminate:): Query user.
11017 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
11018 instead of Feval.
11019
11020 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
11021
11022 * keyboard.c (kbd_buffer_get_event): Check for it.
11023 (keys_of_keyboard): Define lispy keys for
11024 ns-put/unput-working-text.
11025
11026 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
11027 versions.
11028 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
11029
11030 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
11031
11032 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
11033 setting current_buffer directly. (Bug#2044)
11034
11035 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
11036
11037 * fontset.c (fontset_font): If we know there is no font, don't do
11038 any work. (Bug#1952, bug#1990).
11039
11040 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
11041
11042 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11043
11044 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
11045 (ns_no_defaults): New declaration.
11046 (main): Use it.
11047
11048 * nsterm.h (ns_no_defaults): New declaration.
11049
11050 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
11051
11052 * nsterm.m (ns_no_defaults): New variable.
11053 (ns_initialize): Don't read defaults when ns_no_defaults.
11054 (EmacsView-readSelectionFromPasteboard:)
11055 (writeSelectionToPasteboard:types:): New stubbed-out methods for
11056 NSServicesRequests protocol. (Bug#1435)
11057 (ns_dumpglyphs_stretch): New function.
11058 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
11059 of 2008-11-15 to other terms. (Bug#615)
11060
11061 * nsimage.m (setPixmapData:): Set to ignore image DPI.
11062
11063 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
11064
11065 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
11066 call for Sparc64.
11067
11068 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11069
11070 * nsfns.m:
11071 * nsgui.h:
11072 * nsmenu.m:
11073 * nsselect.m:
11074 * nsterm.h:
11075 * nsterm.m: Remove '23' comments that indicated code added during
11076 update from emacs-20 -> emacs-23.
11077
11078 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11079
11080 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
11081 ns_alternate_modifier. (Bug#1217)
11082
11083 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
11084 Display all shortcuts, including those w/o super modifier.
11085
11086 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
11087
11088 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
11089
11090 * fileio.c (Vwrite_region_post_annotation_function)
11091 (Vwrite_region_annotation_buffers): New vars.
11092 (build_annotations_unwind): Just reset
11093 Vwrite_region_annotation_buffers.
11094 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
11095 Call write-region-post-annotation-function.
11096 (build_annotations): Add to Vwrite_region_annotation_buffers if
11097 buffer changes.
11098
11099 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11100
11101 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
11102 Tiger.
11103 * nsfns.m (ns_do_applescript):
11104 Conditionalize typeUTF16ExternalRepresentation on Tiger.
11105
11106 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11107
11108 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
11109
11110 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11111
11112 * nsmenu.m (NSMENUPROFILE): Change #if style.
11113
11114 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
11115
11116 * nsterm.m (x_set_frame_alpha): Add prototype.
11117 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
11118 handle Ctrl-tab. (Bug#1841)
11119 (ns_get_color): Use unsigned long long for scanned hex string value.
11120 (ns_term_shutdown): Abort on non SIGTERM signals.
11121 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
11122 (EmacsPrefsController-setPanelFromDefaultValues): New function.
11123 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
11124 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
11125 (ns_defined_color): Fix settings of the XColor variable fields:
11126 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
11127
11128 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
11129 DPI. (Bug#1316)
11130 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
11131 values in onTiger section.
11132
11133 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
11134
11135 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
11136 Check return value of font_spec_from_name.
11137 (Fx_list_fonts): Doc fix. (Bug#1951)
11138
11139 * font.c (font_spec_from_name): Return Qnil if font name could not
11140 be parsed.
11141 (font_parse_name): Treat a `?' character as part of an XLFD.
11142
11143 * fns.c (Fsubstring): Doc fix.
11144
11145 2009-01-19 Kenichi Handa <handa@m17n.org>
11146
11147 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
11148 (ftfont_list): Likewise.
11149
11150 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
11151
11152 * dbusbind.c (Fdbus_register_signal):
11153 * process.c (conv_sockaddr_to_lisp):
11154 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
11155
11156 * callproc.c (Fgetenv_internal): Doc fix.
11157
11158 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
11159
11160 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
11161 it is not even used.
11162
11163 2009-01-16 Glenn Morris <rgm@gnu.org>
11164
11165 * font.c (Ffont_variation_glyphs): Silence compiler.
11166
11167 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
11168
11169 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
11170 Reported by David Robinow <drobinow@gmail.com>.
11171
11172 2009-01-15 Kenichi Handa <handa@m17n.org>
11173
11174 * coding.c (detect_coding_system): Fix handling of null_byte_found.
11175
11176 2009-01-14 Jason Rumney <jasonr@gnu.org>
11177
11178 * frame.c (x_set_font): Always store a font to the font parameter,
11179 never a fontset. (Bug#1562)
11180
11181 2009-01-14 Kenichi Handa <handa@m17n.org>
11182
11183 * coding.c (TWO_MORE_BYTES): New macro.
11184 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
11185
11186 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
11187
11188 * font.c (font_clear_prop): If clearing the family, clear the font
11189 width index too.
11190
11191 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
11192
11193 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
11194
11195 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
11196 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
11197 functions, use sizeof.
11198
11199 2009-01-12 Martin Rudalics <rudalics@gmx.at>
11200
11201 * keyboard.c (read_char): Fix case where last_nonmenu_event
11202 returned a bad value with submenus. (Bug#447)
11203
11204 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
11205
11206 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
11207 family, clear the font width index too.
11208
11209 2009-01-11 Jason Rumney <jasonr@gnu.org>
11210
11211 * keyboard.c (cmd_error_internal): Exit when errors occur before
11212 frame creation and not in daemon mode. (Bug#1836)
11213
11214 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
11215
11216 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
11217 of a display vector, backtrack.
11218 (try_window_reusing_current_matrix): Check glyph type before
11219 referencing charpos member.
11220
11221 2009-01-10 Eli Zaretskii <eliz@gnu.org>
11222
11223 Fix Bug #876:
11224
11225 * coding.c (inhibit_null_byte_detection): New variable.
11226 (detect_coding, detect_coding_system): Don't pay attention to null
11227 bytes if inhibit_null_byte_detection is non-zero.
11228 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
11229 <inhibit-iso-escape-detection>: Doc fix.
11230
11231 2009-01-09 Jason Rumney <jasonr@gnu.org>
11232
11233 * w32font.c (add_font_entity_to_list): Don't report unknown
11234 Windows charset as any unrecognized registry. (Bug#1548)
11235 Only report Unicode Plane 2 fonts as unicode-sip.
11236
11237 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
11238
11239 * xfaces.c (Fx_font_family_list): Delete function.
11240 Move compatibility version to faces.el.
11241
11242 * font.c (Ffont_family_list): Return a list of strings, not symbols.
11243
11244 2009-01-09 Martin Rudalics <rudalics@gmx.at>
11245
11246 * frame.c (x_set_frame_parameters): Remember requested value for
11247 fullscreen before it's reset by the parameter handler.
11248
11249 2009-01-09 Glenn Morris <rgm@gnu.org>
11250
11251 * keyboard.c (last_command_char): For clarity, rename to...
11252 (last_command_event): ... and update all users.
11253 (last_input_char): For clarity, rename to...
11254 (last_input_event): ... and update all users.
11255 (last-command-char, last-input-char): Move to subr.el as aliases.
11256 * cmds.c, commands.h: Update for last_command_char rename.
11257
11258 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
11259
11260 * font.c (font_open_for_lface): Handle unspecified height attribute.
11261
11262 2009-01-08 Jason Rumney <jasonr@gnu.org>
11263
11264 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
11265 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
11266 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
11267 Don't declare.
11268 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
11269 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
11270
11271 2009-01-07 Kenichi Handa <handa@m17n.org>
11272
11273 * fileio.c (Finsert_file_contents): In the case of replace,
11274 remember the coding system used for decoding in
11275 coding_system (Bug#1039).
11276
11277 * coding.c (decode_coding_utf_8): Check byte_after_cr before
11278 breaking the loop. (Bug#870)
11279 (decode_coding_utf_16, decode_coding_emacs_mule)
11280 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11281 (decode_coding_charset): Likewise.
11282
11283 2009-01-05 Martin Rudalics <rudalics@gmx.at>
11284
11285 * frame.c (x_set_frame_parameters): Make sure height (width) get
11286 applied when fullwidth (fullheight) is set. (Bug#1522)
11287
11288 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
11289
11290 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
11291 (utc_base): Declare as ULONGLONG, not long double.
11292 (convert_time_raw): Delete.
11293 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
11294 (initialize_utc_base): New function.
11295 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
11296 (convert_from_time_t): Use initialize_utc_base; compute result with
11297 64-bit arithmetic.
11298 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
11299
11300 2009-01-03 Eli Zaretskii <eliz@gnu.org>
11301
11302 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
11303 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
11304 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
11305 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
11306 [!subprocesses]: Define.
11307 (syms_of_process) [!subprocesses]: Intern and staticpro them.
11308 (Flist_system_processes, Fsystem_process_attributes)
11309 [!subprocesses]: Call list_system_processes and
11310 system_process_attributes instead of returning Qnil.
11311
11312 * dosfns.c (system_process_attributes, list_system_processes):
11313 New functions.
11314
11315 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
11316
11317 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11318 Don't use the default (no-op) implementation.
11319
11320 2009-01-03 Jason Rumney <jasonr@gnu.org>
11321
11322 * keyboard.c (parse_modifiers_uncached): Wheel events are
11323 clicks (bug#687).
11324
11325 * w32term.c (x_query_colors, x_query_color): New functions.
11326
11327 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11328 (svg_load_image): Cast returned pointers from dynamically loaded
11329 functions. Eliminate W32 specific code.
11330
11331 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
11332
11333 * nsfns.m (x_set_foreground_color, x_set_background_color)
11334 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11335 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11336 x_ prefix instead of ns_. Update references.
11337 (syms_of_nsfns): Add a FIXME comment.
11338
11339 * nsterm.m (x_set_cursor_type): New prototype.
11340 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11341
11342 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11343 for Solaris instead of incorrectly providing Qutime and Qcutime.
11344
11345 2009-01-02 Eli Zaretskii <eliz@gnu.org>
11346
11347 * w32.c (process_times): Compute sum of utime and stime.
11348 (system_process_attributes): Add Qtime to the alist.
11349
11350 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11351 and add them to the alist.
11352
11353 * process.c (top level) <Qtime, Qctime>: New variables.
11354 (syms_of_process): staticpro them.
11355 (Fsystem_process_attributes): Add their documentation to the doc
11356 string.
11357
11358 * process.h: Declare Qtime and Qctime.
11359
11360 2009-01-02 Jason Rumney <jasonr@gnu.org>
11361
11362 * image.c (Qgobject): New symbol.
11363 (syms_of_image): Initialize it.
11364 (init_svg_functions): Load some functions from gobject library.
11365
11366 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11367
11368 * frame.c (make_terminal_frame): Remove redundant code and useless
11369 block.
11370
11371 2009-01-01 Andreas Schwab <schwab@suse.de>
11372
11373 * process.c (conv_sockaddr_to_lisp): Add workaround for
11374 getsockname bug on BSD.
11375
11376 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
11377
11378 * xfns.c (x_create_tip_frame): Set border width of the X window.
11379
11380 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
11381
11382 2009-01-01 Jason Rumney <jasonr@gnu.org>
11383
11384 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
11385 Don't block input, as per earlier xterm.c changes.
11386
11387 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11388
11389 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11390 (ns_appkit_version_int): New function.
11391 (x-server-version): Use ns_appkit_version_int and follow 21+
11392 convention of returning 3 integers.
11393
11394 2008-12-30 Kenichi Handa <handa@m17n.org>
11395
11396 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11397 (CHAR_SURROGATE_PAIR_P): New macro.
11398
11399 * font.h (struct font_driver): New member get_variation_glyphs.
11400
11401 * font.c (font_range): Don't require a font for a variation selector.
11402 (Ffont_variation_glyphs): New function.
11403 (syms_of_font): Defsubr it.
11404
11405 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11406 ftfont_variation_glyphs.
11407 (setup_otf_gstring): New function.
11408 (ftfont_drive_otf): Use it.
11409 (ftfont_shape_by_flt): Handle variation selector.
11410 (ftfont_variation_glyphs): New function.
11411
11412 2008-12-30 Martin Rudalics <rudalics@gmx.at>
11413
11414 * frame.c (Vemacs_iconified): Remove.
11415
11416 2008-12-30 Jason Rumney <jasonr@gnu.org>
11417
11418 * frame.c (store_frame_param, x_get_arg): Enable newer code on
11419 WINDOWSNT too, as related changes have already been synced. (Bug#117)
11420
11421 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
11422
11423 * indent.c (Fvertical_motion): Don't advance iterator if we have
11424 reseated to the desired position.
11425
11426 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11427 checking for pos match.
11428
11429 2008-12-30 Kenichi Handa <handa@m17n.org>
11430
11431 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11432 just get the low 8-bit of the code.
11433
11434 * font.c (font_intern_prop): Validate str as multibyte.
11435
11436 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11437
11438 * dispextern.h (struct face): Move lface and hash from the middle
11439 of bitfields.
11440
11441 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11442
11443 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11444
11445 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11446 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11447 instead of intervals.h.
11448
11449 2008-12-26 Andreas Schwab <schwab@suse.de>
11450
11451 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11452 cons.
11453
11454 2008-12-26 Martin Rudalics <rudalics@gmx.at>
11455
11456 * textprop.c (Qminibuffer_prompt): New variable.
11457 (syms_of_textprop): Initialize it.
11458 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11459 in minibuffer-prompt face. (Bug#1662)
11460
11461 2008-12-25 Jason Rumney <jasonr@gnu.org>
11462
11463 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11464
11465 2008-12-24 Jason Rumney <jasonr@gnu.org>
11466
11467 * ralloc.c (r_alloc_reset_variable): New function.
11468
11469 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
11470 record of what points where. (Bug#716)
11471
11472 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11473
11474 * minibuf.c (read_minibuf): Follow the non-interactive case when
11475 running as a daemon, before detaching.
11476
11477 2008-12-22 Andreas Schwab <schwab@suse.de>
11478
11479 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11480 * gtkutil.c (free_widget_value): Use xfree instead of free.
11481
11482 2008-12-22 Martin Rudalics <rudalics@gmx.at>
11483
11484 * frame.c (delete_frame): New function derived from
11485 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11486 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11487 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11488 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11489 * frame.h: Extern delete_frame.
11490 * window.c (window_loop):
11491 * terminal.c (delete_terminal):
11492 * xterm.c (x_connection_closed):
11493 * xfns.c (Fx_hide_tip):
11494 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
11495
11496 2008-12-21 Jason Rumney <jasonr@gnu.org>
11497
11498 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11499 when character maps to .notdef character.
11500
11501 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11502
11503 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11504
11505 2008-12-20 Jason Rumney <jasonr@gnu.org>
11506
11507 * frame.c (Fmake_terminal_frame): Raise an error when called from
11508 a graphical frame on Windows. (Bug#1325)
11509
11510 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11511
11512 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11513
11514 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
11515
11516 * minibuf.c (Fread_buffer): Doc fix.
11517
11518 2008-12-20 Jason Rumney <jasonr@gnu.org>
11519
11520 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
11521 server name in UNC paths. (Bug#719)
11522
11523 * coding.c (decode_coding): Clear chars_at_source flag when using
11524 charbuf. (Bug#1035)
11525
11526 2008-12-19 Daniel Engeler <engeler@gmail.com>
11527
11528 * sysdep.c (serial_configure): Fix typo.
11529
11530 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11531
11532 * sysdep.c: Include alloca.h.
11533 (system_process_attributes): Add implementation for Solaris.
11534
11535 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
11536
11537 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11538
11539 Reorganize implementation of Flist_system_processes and
11540 Fsystem_process_attributes. No functional changes.
11541 * process.c: Don't #include pwd.h, grp.h and limits.h.
11542 (Flist_system_processes): Just call list_system_processes.
11543 (Fsystem_process_attributes): Just call system_process_attributes.
11544 (procfs_list_system_processes, time_from_jiffies)
11545 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11546 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11547
11548 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11549 (list_system_processes): Rename from
11550 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11551 Provide a do nothing implementation.
11552 (system_process_attributes): Rename from
11553 procfs_list_system_processes.
11554 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11555 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
11556
11557 * w32.c (list_system_processes): Rename from
11558 w32_list_system_processes.
11559 (system_process_attributes): Rename from
11560 w32_system_process_attributes.
11561
11562 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11563
11564 * process.h (w32_list_system_processes)
11565 (w32_system_process_attributes): Remove.
11566 (list_system_processes, system_process_attributes):
11567 New prototypes.
11568
11569 2008-12-19 Kenichi Handa <handa@m17n.org>
11570
11571 * xfont.c (xfont_decode_coding_xlfd): New function.
11572 (xfont_encode_coding_xlfd): New function.
11573 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11574 (xfont_list): Decode and encode XLFD by iso-8859-1.
11575 (xfont_match): Likewise.
11576 (xfont_list_family): Likewise.
11577 (xfont_open): Likewise.
11578
11579 * ftfont.c (ftfont_open): Generate a multibyte string if given
11580 names are utf-8.
11581
11582 * xftfont.c (xftfont_open): Generate a multibyte string if given
11583 names are utf-8.
11584
11585 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11586
11587 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11588 changed.
11589 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11590 clicked on a detached tool bar button.
11591
11592 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11593
11594 * emacs.c (main): Print and error and exit when no data is read
11595 from the pipe.
11596
11597 2008-12-17 Jason Rumney <jasonr@gnu.org>
11598
11599 * w32font.c (w32font_has_char): Always return -1.
11600
11601 2008-12-16 Kenichi Handa <handa@m17n.org>
11602
11603 * font.c (font_open_entity): Fix previous change.
11604
11605 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11606
11607 * process.c: Include <limits.h>.
11608
11609 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
11610
11611 * font.c (font_update_drivers): Fix mistake in reconstructing the
11612 driver list.
11613
11614 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
11615
11616 * font.c (font_clear_cache): Fix format of font cache data.
11617
11618 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
11619
11620 * xftfont.c (xftfont_open): Free Xft font pattern if
11621 XftFontOpenPattern fails.
11622
11623 * xterm.c (x_free_frame_resources): Remove extraneous call to
11624 free_frame_faces.
11625
11626 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11627
11628 * xterm.c (x_delete_display): Move xim_close_dpy call to
11629 x_delete_terminal.
11630 (x_delete_terminal): Call xim_close_dpy.
11631
11632 2008-12-13 Jason Rumney <jasonr@gnu.org>
11633
11634 * w32font.c (intern_font_name): New function.
11635 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11636 (w32font_open_internal, Fx_select_font): Decode font name.
11637 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11638
11639 * w32font.h (intern_font_name): Declare new function.
11640
11641 * w32uniscribe.c (add_opentype_font_name_to_list):
11642 Use intern_font_name.
11643
11644 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11645
11646 * frame.c (Fdelete_frame): Call free_font_driver_list.
11647
11648 * font.c (free_font_driver_list): Implement missing function.
11649
11650 * w32term.c (w32_term_init): Don't initialize the image cache
11651 here; it will be done in init_frame_faces.
11652
11653 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11654 (struct x_display_info): Remove unused member null_pixel. New
11655 member xim_callback_data.
11656
11657 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11658 (xim_initialize): Save pointer to callback function data.
11659 (xim_close_dpy): Free callback function data. Call XCloseIM,
11660 reverting 2008-11-04 change by David Smith.
11661 (x_term_init): Don't initialize the image cache here; it will be
11662 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11663 (x_delete_display): Free x_dnd_atoms member.
11664
11665 2008-12-13 Kenichi Handa <handa@m17n.org>
11666
11667 * font.c (font_rescale_ratio): Moved from xfaces.c.
11668 Argument type changed. Handle a font-spec too.
11669 (font_score): Check Vface_font_rescale_alist.
11670 (font_open_entity): Likewise. (Bug#1547)
11671
11672 * xfaces.c (font_rescale_ratio): Moved to font.c.
11673
11674 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11675
11676 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11677
11678 2008-12-12 Jason Rumney <jasonr@gnu.org>
11679
11680 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11681 Vwindow_system_version to the real w32 major version.
11682
11683 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11684
11685 * term.c (init_tty): Move setting the terminal name before the
11686 potential user: maybe_fatal.
11687
11688 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
11689
11690 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11691 all callers changed. Call free_frame_faces to free the face cache.
11692
11693 2008-12-11 Jason Rumney <jasonr@gnu.org>
11694
11695 * w32font.c (fill_in_logfont): Don't assume symbol script means
11696 SYMBOL_CHARSET. (Bug#547)
11697
11698 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
11699 size for surrogates. (Bug#1096, bug#872)
11700
11701 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
11702
11703 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11704
11705 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
11706
11707 * process.c (Fsystem_process_attributes, syms_of_process):
11708 Fix typo in name of Ssystem_process_attributes.
11709 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11710
11711 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
11712
11713 * syntax.c (Fmodify_syntax_entry): Doc fix.
11714
11715 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
11716
11717 * font.c (Ffont_spec): Move usage to end of docstring.
11718
11719 2008-12-10 Jason Rumney <jasonr@gnu.org>
11720
11721 * w32font.c (Qcham): New symbol.
11722 (font_supported_scripts): Add cham, and comments for other new
11723 scripts in bitfield from OpenType spec.
11724 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11725 contain characters beyond the bmp.
11726
11727 2008-12-10 Kenichi Handa <handa@m17n.org>
11728
11729 * ftfont.c (fc_charset_table): Add "unicode-sip".
11730 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
11731 Qunicode_sip.
11732
11733 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
11734
11735 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11736 (Fcoding_system_put): Use QCdefault_char.
11737 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11738
11739 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
11740
11741 * xftfont.c (syms_of_xftfont): Fix typo.
11742
11743 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
11744
11745 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11746
11747 * emacs.c (main): Close daemon_pipe on exec.
11748
11749 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
11750
11751 * termchar.h (struct tty): New members termcap_term_buffer and
11752 termcap_strings_buffer.
11753
11754 * term.c (encode_terminal_code): Free any previous memory blocks
11755 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
11756 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11757 All callers changed.
11758 (init_tty): Store termcap data and string buffers in new struct
11759 tty members termcap_term_buffer and termcap_strings_buffer.
11760 (delete_tty): Free them.
11761 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
11762
11763 2008-12-07 Seiji Zenitani <zenitani@mac.com>
11764
11765 * nsfns.m (ns_set_background_color): Remove code duplication.
11766 It was a substitute for face-transparency on OS X 10.3.
11767
11768 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
11769
11770 * coding.c (make_conversion_work_buffer): Disable buffer
11771 modification hooks in the work buffer.
11772
11773 2008-12-05 Eli Zaretskii <eliz@gnu.org>
11774
11775 * process.c (procfs_system_process_attributes): If `nread' has a
11776 negative value, assign zero to it.
11777
11778 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
11779
11780 * eval.c (Vdebug_on_error): Doc fix.
11781
11782 2008-12-05 Kenichi Handa <handa@m17n.org>
11783
11784 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11785 second character is a combining character.
11786
11787 2008-12-05 Eli Zaretskii <eliz@gnu.org>
11788
11789 * process.c (procfs_system_process_attributes): Don't use cmd,
11790 cmdsize, and q without initializing them first.
11791
11792 2008-12-04 Jason Rumney <jasonr@gnu.org>
11793
11794 * w32font.c (w32font_draw): Initialize orig_clip before getting
11795 it, and delete it when finished.
11796
11797 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11798
11799 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11800 case when running as a daemon before detaching.
11801
11802 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
11803
11804 * w32.c (init_environment): Don't unload library shell32.dll.
11805
11806 2008-12-03 Kenichi Handa <handa@m17n.org>
11807
11808 * font.c (font_at): Set `multibyte' at first.
11809
11810 * coding.c (decode_coding_charset): Check type of an element of
11811 vector VALIDS.
11812 (encode_coding_emacs_mule): Be sure to set `code'.
11813
11814 * fontset.c (face_for_char): Handle invalid charset property correctly.
11815 (font_for_char): Likewise.
11816
11817 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
11818
11819 * font.c (Fopen_font): Compute pixel size correctly.
11820 (font_update_lface): Handle fonts with corrupted size specs,
11821 i.e. non-int and non-float.
11822
11823 * ftfont.c (ftfont_match): Initialize entity variable.
11824 (ftfont_resolve_generic_family): Avoid using uninitialized var.
11825 (ftfont_list_family): Initialize list var earlier.
11826
11827 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11828
11829 * xterm.c (x_draw_glyph_string): Fall back on
11830 underline_minimum_offset for underline position.
11831
11832 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11833
11834 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11835
11836 * character.c (c_string_width): Specify the type for LEN.
11837
11838 2008-12-03 Kenichi Handa <handa@m17n.org>
11839
11840 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
11841 (decode_coding_utf_8): Likewise.
11842 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
11843 (produce_chars): Initialize consumed_chars to 0.
11844
11845 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
11846
11847 * keyboard.c (make_lispy_position): Only use PT if the selected
11848 window is current.
11849
11850 2008-12-02 Andreas Schwab <schwab@suse.de>
11851
11852 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11853
11854 * doprnt.c (doprnt1): Fix size of charbuf.
11855
11856 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
11857
11858 * keyboard.c (timer_check): Revert last change.
11859
11860 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
11861
11862 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11863
11864 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
11865
11866 * makefile.w32-in: Update dependencies.
11867 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11868
11869 2008-12-01 Andreas Schwab <schwab@suse.de>
11870
11871 * font.c (register_font_driver): Use xmalloc.
11872 (font_put_frame_data): Likewise.
11873
11874 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
11875
11876 * xfaces.c (realize_x_face): Make abort condition clearer.
11877
11878 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11879
11880 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
11881
11882 * keyboard.c (timer_check): After a timer runs, ensure that the
11883 selected window's buffer is current.
11884
11885 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
11886
11887 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11888 It was accidentally restored by the Unicode merge.
11889
11890 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11891
11892 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
11893
11894 * w32proc.c: Include "coding.h".
11895 (Fw32_short_file_name): Encode filename passed to Windows API.
11896 (Fw32_long_file_name): Encode filename passed to Windows API and
11897 decode back the result. (Bug#1433)
11898
11899 2008-11-29 Kenichi Handa <handa@m17n.org>
11900
11901 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11902 not before accessing it.
11903
11904 * charset.c (Fdefine_charset_internal): After calculating
11905 min_char, max_char, and fastmap, copy the charset structure again.
11906 (encode_char): Fix the previous change.
11907
11908 2008-11-28 Seiji Zenitani <zenitani@mac.com>
11909
11910 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11911
11912 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11913
11914 * nsterm.m (x_set_frame_alpha): New function.
11915
11916 2008-11-27 Eli Zaretskii <eliz@gnu.org>
11917
11918 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11919
11920 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
11921
11922 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11923 pointer to check_face_name.
11924
11925 2008-11-27 Kenichi Handa <handa@m17n.org>
11926
11927 * category.h (SET_CATEGORY_SET): Call set_category_set.
11928 (set_category_set): Extern it.
11929
11930 * category.c (hash_get_category_set): New function.
11931 (Fmodify_category_entry): Adjusted for the change of
11932 char_table_ref_and_range. Call hash_get_category_set to get a
11933 category set to store in the table.
11934
11935 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11936 Funify_charset.
11937
11938 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
11939 (DECODE_CHAR): Check if the decoder vector is ready.
11940 (ENCODE_CHAR): Check if the encoder char-table is ready.
11941 (maybe_unify_char): Extern it.
11942
11943 * charset.c (Vchar_unified_charset_table): Delete it.
11944 (inhibit_load_charset_map): New variable.
11945 (temp_charset_work): New variable.
11946 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11947 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11948 New macros.
11949 (load_charset_map): Meaning of control_flag changed. If
11950 inhibit_load_charset_map is nonzero, setup a table in
11951 temp_charset_work.
11952 (load_charset): New argument control_flag.
11953 (map_charset_for_dump): New function.
11954 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11955 map_charset_for_dump.
11956 (Fdefine_charset_internal): If the charset method is MAP, load
11957 mapping tables by calling load_charset.
11958 (Funify_charset): Don't load a mapping table but directly set
11959 Vchar_unify_table.
11960 (maybe_unify_char): New function.
11961 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11962 Handle the case of inhibit_load_charset_map being nonzero.
11963 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11964 Handle the case of inhibit_load_charset_map being nonzero.
11965 (Fclear_charset_maps): Just free temp_charset_work.
11966 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11967 variable.
11968
11969 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11970 change of char_table_ref_and_range.
11971 (char_table_ref_and_range): Change the meaning of argument FROM
11972 and TO. Now the caller must provide initial values for *FROM
11973 and *TO.
11974
11975 * fontset.c (fontset_add): Adjusted for the change of
11976 char_table_ref_and_range.
11977 (fontset_get_font_group): Likewise.
11978 (Ffontset_info): Likewise.
11979
11980 * keymap.c (describe_vector): Adjusted for the change of
11981 char_table_ref_and_range. For char-table, put boundary between
11982 non-ASCII and 8-bit characters.
11983
11984 * print.c (print_object): For bool-vector, delete unnecessary
11985 check of ASCII_BYTE_P.
11986
11987 2008-11-26 Jason Rumney <jasonr@gnu.org>
11988
11989 * w32font.c (w32font_open_internal): Don't include external
11990 leading in font height. (Bug#879)
11991
11992 2008-11-26 Glenn Morris <rgm@gnu.org>
11993
11994 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11995 redefinition with ifdef. (Bug#1383)
11996
11997 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11998
11999 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
12000
12001 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
12002
12003 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
12004 New EmacsView methods.
12005 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
12006 Fixes bug #1048,1357,1414.
12007
12008 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12009
12010 Fix bug #1362.
12011 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
12012 is not an indexed color.
12013 * nsterm.m (free_indexed_color): Add argument checking.
12014 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
12015
12016 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
12017
12018 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
12019 Document confirm-after-completion value for
12020 minibuffer-completion-confirm.
12021
12022 2008-11-24 Jason Rumney <jasonr@gnu.org>
12023
12024 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
12025 warning.
12026
12027 2008-11-23 Jason Rumney <jasonr@gnu.org>
12028
12029 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
12030 restored before returning.
12031
12032 * w32font.c (check_face_name): New function.
12033 (add_font_entity_to_list): Use it to filter out common substituted
12034 fonts. (Bug#642)
12035
12036 2008-11-22 Martin Rudalics <rudalics@gmx.at>
12037
12038 * buffer.c (Fswitch_to_buffer): Reword and mention new option
12039 confirm-nonexistent-file-or-buffer in doc-string.
12040
12041 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12042
12043 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
12044 Fix copy/paste typo. Add checks.
12045
12046 2008-11-21 Kenichi Handa <handa@m17n.org>
12047
12048 * coding.c (detect_coding_iso_2022): Reject invalid composition
12049 sequence.
12050 (DECODE_COMPOSITION_START): If the current source is the last
12051 block, and the current composition doesn't end, regard this
12052 sequence as invalid.
12053 (decode_coding_iso_2022): Handle invalid composition sequence.
12054
12055 2008-11-20 Martin Rudalics <rudalics@gmx.at>
12056
12057 * window.c (coordinates_in_window): Don't return
12058 ON_VERTICAL_BORDER for the rightmost position of a mode/header
12059 line when the window is not the rightmost one. (Bug#1372)
12060
12061 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
12062
12063 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
12064
12065 2008-11-15 Eli Zaretskii <eliz@gnu.org>
12066
12067 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
12068 and bright_bg if noninteractive is non-zero.
12069
12070 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12071
12072 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
12073 x_draw_glyph_string_background.
12074
12075 * w32term.c (x_draw_glyph_string): Likewise.
12076
12077 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
12078
12079 * xterm.c (x_draw_glyph_string): Stop drawing the background of
12080 the next glyph string once past the overhang width.
12081
12082 * nsterm.m (ns_draw_glyph_string): Likewise.
12083
12084 * w32term.c (x_draw_glyph_string): Likewise.
12085
12086 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
12087
12088 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
12089 double file close.
12090
12091 2008-11-14 Martin Rudalics <rudalics@gmx.at>
12092
12093 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
12094 dedicated status of window before attempting to display another
12095 buffer in it.
12096
12097 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
12098
12099 * msdos.c (Fmsdos_long_file_names):
12100 (syms_of_msdos) <dos-unsupported-char-glyph>:
12101 * dosfns.c (Fint86): Fix typos in docstrings.
12102
12103 2008-11-14 Eli Zaretskii <eliz@gnu.org>
12104
12105 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
12106
12107 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
12108
12109 * puresize.h (BASE_PURESIZE): Increase to 1260000.
12110
12111 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
12112
12113 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
12114
12115 * frame.h: Negative alpha means "don't touch".
12116
12117 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
12118
12119 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
12120
12121 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
12122
12123 * hftctl.c:
12124 * chpdef.h:
12125 * acldef.h: Remove files used only for systems no longer supported.
12126
12127 * Makefile.in: Fix .o alphabetical ordering.
12128 (hftctl.o): Remove dependency, file removed.
12129 (keymap.o, print.o): Depend on charset.h.
12130
12131 2008-11-10 Kenichi Handa <handa@m17n.org>
12132
12133 * character.c (Fget_byte): Fix and make it faster for unibyte target.
12134
12135 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
12136
12137 * dired.c (file_name_completion): If completion_ignore_case is
12138 enabled, ignore case when checking completion-regexp-list.
12139
12140 2008-11-08 Eli Zaretskii <eliz@gnu.org>
12141
12142 * vm-limit.c (get_lim_data): Fix last change.
12143
12144 2008-11-08 Kenichi Handa <handa@m17n.org>
12145
12146 * character.c (Fget_byte): New function.
12147 (syms_of_character): Defsubr Fget_byte.
12148
12149 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
12150
12151 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
12152 cursor position is valid after scrolling.
12153
12154 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
12155
12156 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
12157
12158 2008-11-06 Glenn Morris <rgm@gnu.org>
12159
12160 * xterm.c (handle_one_xevent): Don't let popup menus cause
12161 mouse-autoselect-window related window switching. (Bug#1261)
12162
12163 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
12164
12165 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
12166
12167 2008-11-04 Andreas Schwab <schwab@suse.de>
12168
12169 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
12170
12171 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
12172
12173 * xfns.c (Fx_wm_set_size_hint): New function.
12174
12175 2008-11-03 Martin Rudalics <rudalics@gmx.at>
12176
12177 * textprop.c (Fprevious_single_char_property_change): Return 0
12178 when there's no change in a string. (Bug#1301)
12179
12180 2008-11-02 Martin Rudalics <rudalics@gmx.at>
12181
12182 * frame.c (do_switch_frame): New argument NORECORD passed to
12183 Fselect_window.
12184 (Fselect_frame): New argument NORECORD passed to
12185 do_switch_frame.
12186 (Fset_frame_selected_window): New argument NORECORD passed to
12187 Fselect_frame.
12188 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
12189 in call of do_switch_frame.
12190 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
12191 Handle NORECORD argument in call of Fselect_frame.
12192 * lisp.h (do_switch_frame, Fselect_frame)
12193 (Fset_frame_selected_window): Adjust declarations.
12194 * window.c (select_frame_norecord): New function.
12195 (run_window_configuration_change_hook): Use it and call
12196 Fselect_frame with NORECORD set.
12197 (Fselect_window): Pass NORECORD to Fselect_frame.
12198 (Fset_window_configuration): Handle NORECORD argument in call of
12199 do_switch_frame.
12200 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
12201 Fset_frame_selected_window.
12202 * keyboard.c (command_loop_1): Handle NORECORD in call of
12203 Fselect_frame (currently ifdefd).
12204
12205 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
12206
12207 * emacs.c (USAGE2): Untabify.
12208
12209 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
12210
12211 * composite.c (fill_gstring_header): Fix copy/paste typo.
12212
12213 2008-10-31 Martin Rudalics <rudalics@gmx.at>
12214
12215 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
12216 (Fother_window): Rename argument and rewrite doc-string.
12217 (select_window_norecord): Fix return value. (Bug#1276)
12218
12219 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
12220
12221 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
12222 new frames overriding foreground for tooltips. Based on similar patch
12223 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
12224
12225 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
12226
12227 * emacs.c (Fdaemon_initialized): Initialize nfd.
12228
12229 2008-10-29 Martin Rudalics <rudalics@gmx.at>
12230
12231 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
12232 (Fwindow_text_height): Clarify doc-strings.
12233 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
12234 doc-string of window-scroll-functions.
12235
12236 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
12237
12238 * category.c (syms_of_category): Fix typo in docstring.
12239
12240 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
12241
12242 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
12243 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
12244 Fix typos in docstrings.
12245
12246 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
12247
12248 * emacs.c (daemon_pipe): Make non-static.
12249 (IS_DAEMON): Move definition ...
12250 * lisp.h (IS_DAEMON): ... here.
12251 (daemon_pipe): Declare.
12252 (is_daemon): Remove.
12253 * dispnew.c (init_display): Use IS_DAEMON.
12254
12255 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12256
12257 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
12258 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
12259
12260 * emacs.c (is_daemon): Remove.
12261 (main): Don't set is_daemon.
12262 (IS_DAEMON): New macro.
12263 (Fdaemonp, Fdaemon_initialized): Use it.
12264 (Fdaemon_initialized): Write a char into the pipe to make sure the
12265 parent exits.
12266 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
12267
12268 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
12269
12270 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
12271 over-sized glyph, draw it with the default glyph width.
12272
12273 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12274 glyph, draw it with the default glyph width.
12275
12276 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12277 glyph, draw it with the default glyph width.
12278
12279 * xdisp.c (try_scrolling): When computing the distance from the
12280 scroll margin to PT, try moving some distance past the window
12281 bottom before giving up.
12282
12283 2008-10-27 Martin Rudalics <rudalics@gmx.at>
12284
12285 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
12286 (Fset_window_buffer): Explain in doc-string that a window can be
12287 "strongly" dedicated to its buffer.
12288
12289 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
12290
12291 * emacs.c (daemon_name): New variable.
12292 (main): Deal with --daemon=SERVER_NAME.
12293 (Fdaemonp): Return a name if one was passed to --daemon.
12294
12295 2008-10-26 Romain Francoise <romain@orebokech.com>
12296
12297 * emacs.c (daemon_pipe): New variable.
12298 (main): Create a pipe before forking, make the parent exit only after
12299 the child has closed its end of the pipe. Move closing the
12300 descriptors ...
12301 (Fdaemon_initialized): ... here. New function.
12302
12303 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
12304
12305 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
12306 the previous unoptimized table.
12307
12308 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
12309 the distinction between non-nil and non-t value of `dedicated'.
12310
12311 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
12312
12313 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
12314 read_char_minibuf_menu_text is large enough to hold the menu string.
12315
12316 2008-10-25 Martin Rudalics <rudalics@gmx.at>
12317
12318 * window.c (Fget_buffer_window, Fdelete_windows_on)
12319 (Freplace_buffer_in_windows): Make buffer argument optional and
12320 rename to buffer_or_name.
12321
12322 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
12323
12324 * xdisp.c (handle_single_display_spec, handle_display_prop):
12325 Undo 2005-05-16 change.
12326 (handle_stop): Pop iterator if it's loaded with an empty string.
12327 (get_overlay_strings_1): Don't save iterator if it's loaded with
12328 an empty string (bug#1201).
12329
12330 2008-10-24 Kenichi Handa <handa@m17n.org>
12331
12332 * ftfont.c (ftfont_otf_features): Fix previous change.
12333 (ftfont_otf_capability): Check FeatureList.FeatureCount before
12334 calling ftfont_otf_features.
12335
12336 2008-10-24 Kenichi Handa <handa@m17n.org>
12337
12338 * font.c (font_match_p): Fix for the case that a vector of
12339 characters is in script-representative-chars.
12340
12341 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
12342
12343 * dbusbind.c (xd_in_read_queued_messages): New variable.
12344 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
12345 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12346 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
12347 macro. (Bug#1186)
12348
12349 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
12350
12351 * s/sol2-10.h: New file.
12352
12353 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
12354
12355 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12356 poor beast has survived 9+ years and the jump from xterm.c!).
12357
12358 2008-10-23 Martin Rudalics <rudalics@gmx.at>
12359
12360 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12361 Reword doc-string.
12362 (Fbury_buffer): In doc-string say what happens to the buffer's window.
12363
12364 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
12365
12366 * character.c (syms_of_character) <script-representative-chars>:
12367 <unicode-category-table>: Doc fixes.
12368
12369 2008-10-23 Noah Friedman <friedman@splode.com>
12370
12371 * coding.c (make_conversion_work_buffer): Check that
12372 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12373 Fget_buffer_create.
12374
12375 2008-10-23 Kenichi Handa <handa@m17n.org>
12376
12377 * font.c (font_add_log): Check the values of extra properties.
12378
12379 2008-10-22 Martin Rudalics <rudalics@gmx.at>
12380
12381 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12382 Reword doc-string.
12383 (Fset_window_parameter): Use NILP.
12384 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
12385 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12386
12387 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
12388
12389 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12390
12391 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12392
12393 * nsfns.m (ns_appkit_version): New function.
12394 (x-server-version): Use it.
12395 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12396 (x-server-vendor): Don't check_ns().
12397
12398 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12399
12400 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
12401
12402 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12403 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12404
12405 2008-10-22 Kenichi Handa <handa@m17n.org>
12406
12407 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12408 scripts.
12409
12410 * category.c (word_boundary_p): Check scripts instead of charset.
12411 Handle nil value in word-separating-categories and
12412 word-combining-categories.
12413 (syms_of_category): Fix docstrings of word-separating-categories
12414 and word-combining-categories.
12415
12416 2008-10-21 Eli Zaretskii <eliz@gnu.org>
12417
12418 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12419 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12420
12421 2008-10-21 Martin Rudalics <rudalics@gmx.at>
12422
12423 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12424 Rename arg "buffer" to "buffer_or_name".
12425 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12426 it optional.
12427 (no_switch_window): Remove since the return value is not used.
12428 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
12429 Consider window as dedicated when Fwindow_dedicated_p returns a
12430 non-nil value.
12431 * lisp.h: Remove prototype for no_switch_window.
12432
12433 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12434
12435 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
12436 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
12437
12438 2008-10-21 Kenichi Handa <handa@m17n.org>
12439
12440 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12441 check Vlatin_extra_code_table.
12442
12443 2008-10-20 Eli Zaretskii <eliz@gnu.org>
12444
12445 * fileio.c (Fset_file_modes): Doc fix.
12446
12447 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
12448
12449 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12450 in arrays.
12451
12452 2008-10-19 Martin Rudalics <rudalics@gmx.at>
12453
12454 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12455 Mention kill-buffer in doc-string.
12456 (Fset_window_buffer): Reinsert tem check removed in last commit.
12457 (Fenlarge_window, Fshrink_window): Have argument names and
12458 doc-string follow Elisp manual more closely.
12459
12460 2008-10-18 Eli Zaretskii <eliz@gnu.org>
12461
12462 * fileio.c (Fset_file_modes): Doc fix.
12463
12464 2008-10-18 Martin Rudalics <rudalics@gmx.at>
12465
12466 * window.c (Fwindow_width, Fset_window_start)
12467 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
12468 (Fdelete_windows_on, Freplace_buffer_in_windows):
12469 Make doc-strings follow code and Elisp manual more closely.
12470 (Fwindow_dedicated_p): Make window argument optional.
12471 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12472 (Fset_window_buffer): Respect any non-nil dedicated value for
12473 window. Rename "buffer" argument to "buffer_or_name".
12474
12475 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
12476
12477 * m/sh3.h: New file, machine description for SuperH.
12478
12479 2008-10-17 Martin Rudalics <rudalics@gmx.at>
12480
12481 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12482
12483 2008-10-17 Kenichi Handa <handa@m17n.org>
12484
12485 * ftfont.c (ftfont_otf_features): Fix indexing
12486 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12487
12488 2008-10-16 Magnus Henoch <mange@freemail.hu>
12489
12490 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12491 (Fdbus_call_method_asynchronously): Ditto.
12492 This change makes C-h f display the argument list.
12493
12494 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
12495
12496 * fileio.c (Fexpand_file_name): Doc fix.
12497
12498 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12499 of :foreground and :background equivalent to unspecified (20.x
12500 compatibility).
12501
12502 2008-10-15 Eli Zaretskii <eliz@gnu.org>
12503
12504 * buffer.c (syms_of_buffer): Doc fix.
12505
12506 2008-10-14 Kenichi Handa <handa@m17n.org>
12507
12508 * font.c (font_clear_prop): When clearing font width, clear the
12509 average width field too.
12510
12511 2008-10-12 Andreas Schwab <schwab@suse.de>
12512
12513 * ftfont.c (ftfont_shape_by_flt): Make static.
12514 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12515
12516 * font.c: Don't include <m17n-flt.h>.
12517
12518 2008-10-10 Eli Zaretskii <eliz@gnu.org>
12519
12520 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12521
12522 2008-10-09 Eli Zaretskii <eliz@gnu.org>
12523
12524 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12525 away code.
12526
12527 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
12528
12529 * dispnew.c (update_text_area): Avoid looping due to large glyph
12530 overhangs (bug#1070).
12531
12532 2008-10-09 Kenichi Handa <handa@m17n.org>
12533
12534 * fontset.c (face_for_char): If face->fontset is negative, just
12535 return ascii_face.
12536
12537 * font.c (font_delete_unmatched): Fix previous change.
12538 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
12539
12540 2008-10-09 Martin Rudalics <rudalics@gmx.at>
12541
12542 * frame.c (Fraise_frame): On text-only terminals select frame in
12543 order to make it visible. (Bug#1061)
12544
12545 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
12546
12547 * fontset.c (fontset_find_font): Check frame validity.
12548
12549 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
12550
12551 * gtkutil.c (xg_display_open): Reset default display if none exists.
12552 (xg_display_close): Allow Emacs to close all displays (bug#985).
12553
12554 2008-10-06 Andreas Schwab <schwab@suse.de>
12555
12556 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
12557
12558 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
12559
12560 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
12561
12562 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
12563
12564 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12565 during initialization.
12566
12567 2008-10-04 Eli Zaretskii <eliz@gnu.org>
12568
12569 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12570 whole thing on MSDOS frames as well as on a TTY.
12571
12572 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12573 well as for TTY.
12574 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12575 well as on a TTY.
12576
12577 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12578 as well as for TTY.
12579
12580 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12581
12582 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12583 MSDOS frames as well.
12584
12585 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12586
12587 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12588 correct arguments.
12589 * menu.c (find_and_return_menu_selection): Add cast.
12590
12591 2008-10-03 Glenn Morris <rgm@gnu.org>
12592
12593 * emacs.c (USAGE1): Add --daemon.
12594
12595 2008-10-02 Eli Zaretskii <eliz@gnu.org>
12596
12597 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12598 100, so it's in percents as advertised.
12599
12600 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12601
12602 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12603 (ns_output.current_cursor, ns_output.desired_cursor)
12604 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12605 (FRAME_NEW_CURSOR_COLOR): Remove.
12606
12607 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
12608 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
12609 enumeration (HOLLOW_BOX_CURSOR, etc.).
12610
12611 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12612 (draw_window_cursor): Simplify code.
12613 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12614 Don't change cursor type. In latter, call rehighlight instead of doing
12615 updates manually.
12616 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12617 Use core Emacs cursor types.
12618
12619 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
12620
12621 2008-10-02 Martin Rudalics <rudalics@gmx.at>
12622
12623 * process.c (Faccept_process_output): Fix doc-string.
12624
12625 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12626
12627 * gmalloc.c (__sbrk): Also define for uClibc.
12628
12629 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12630 for uClibc.
12631
12632 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12633
12634 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12635 styles.
12636 (nsfont_open): Reenable the cache.
12637
12638 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12639
12640 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12641 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12642
12643 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12644
12645 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12646 a suspended terminal.
12647
12648 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
12649
12650 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12651
12652 2008-09-30 Eli Zaretskii <eliz@gnu.org>
12653
12654 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12655
12656 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
12657
12658 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12659 in a continued line coincides with a line beginning.
12660
12661 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12662
12663 * nsfont.m (nsfont_trait_distance): Fix bug.
12664 (nsfont_list): Return a list rather than a vector (syncs with Handa
12665 changes of 2008-05-14).
12666 (nsfont_open): Improve logging.
12667
12668 2008-09-29 Andreas Schwab <schwab@suse.de>
12669
12670 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12671
12672 2008-09-28 Martin Rudalics <rudalics@gmx.at>
12673
12674 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12675 name as char-resolve-modifiers.
12676 Reported by: Markus Triska <markus.triska@gmx.at>
12677
12678 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12679
12680 * dispnew.c (init_display): Return earlier when running as a daemon.
12681
12682 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12683
12684 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12685
12686 2008-09-27 Eli Zaretskii <eliz@gnu.org>
12687
12688 * composite.c (Fcomposition_get_gstring)
12689 (Fcompose_region_internal, Fcompose_string_internal)
12690 (Ffind_composition_internal): Doc fix.
12691 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12692 (syms_of_composite) <auto-composition-function>: Doc fix.
12693 (syms_of_composite) <composition-function-table>: Doc fix.
12694
12695 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
12696
12697 * search.c (wordify): New argument for lax word-ends.
12698 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12699
12700 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12701
12702 * lisp.h (is_daemon): Declare.
12703 * dispnew.c (init_display): Do not try to initialize the terminal
12704 when running as a daemon.
12705
12706 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
12707
12708 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12709 x_display_pixel_height.
12710
12711 2008-09-22 Martin Rudalics <rudalics@gmx.at>
12712
12713 * undo.c (record_point): Don't call Fundo_boundary for first
12714 change. (Bug#731)
12715
12716 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
12717
12718 * emacs.c (Fdaemonp): Doc fix.
12719
12720 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12721
12722 * emacs.c (main): Place #ifdef in the proper place.
12723
12724 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12725
12726 * emacs.c (standard_args): Add --daemon.
12727 (main): Disconnect from the terminal when --daemon is passed.
12728 (is_daemon): New variable.
12729 (Fdaemonp): New function.
12730 (syms_of_emacs): Defsubr it.
12731
12732 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
12733
12734 * xdisp.c (get_next_display_element): Handle string display
12735 correctly when checking for the end of a box run.
12736
12737 2008-09-20 Glenn Morris <rgm@gnu.org>
12738
12739 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12740 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12741 (Frename_file): Avoid copying to trash if a rename involves
12742 a delete. (Bug#964).
12743
12744 2008-09-20 Eli Zaretskii <eliz@gnu.org>
12745
12746 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12747 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12748 frames as well as termcap frames.
12749 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12750 get_named_tty.
12751
12752 2008-09-19 Eli Zaretskii <eliz@gnu.org>
12753
12754 * process.c (procfs_system_process_attributes): Fix cmdline in
12755 case /proc/PID/cmdline is empty.
12756
12757 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12758 x_display_pixel_height.
12759
12760 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
12761
12762 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12763
12764 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12765 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12766
12767 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12768
12769 * dispextern.h (struct it): Move line_wrap away from the middle of
12770 bitfields. Move voffset in struct iterator_stack_entry after the
12771 bitfields. Move tab_width near after another short.
12772
12773 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12774
12775 * frame.h (struct frame): Move alpha from the middle of bitfields.
12776
12777 * window.h (struct window): Move frozen_window_start_p after the
12778 rest of the bitfields to reduce padding.
12779
12780 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
12781
12782 * xterm.h (x_display_info): Remove `height' and `width' members.
12783
12784 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12785
12786 * w32term.h (w32_display_info): Remove `height', `width',
12787 `height_in', and `width_in' members.
12788
12789 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12790 New functions.
12791 (x_calc_absolute_position): Use them.
12792 (x_term_init): Omit removed `height' and `width' members.
12793
12794 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12795 New functions.
12796 (w32_read_socket, x_calc_absolute_position): Use them.
12797 (w32_initialize_display_info, w32_term_init): Omit removed members
12798 of w32_display_info.
12799
12800 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12801 New functions.
12802 (ns_initialize_display_info): Omit removed members of ns_display_info.
12803
12804 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12805 New functions.
12806 (x_calc_absolute_position): Use them.
12807 (x_term_init): Omit removed `height' and `width' members.
12808
12809 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12810 (compute_tip_xy):
12811 * frame.c (x_fullscreen_adjust):
12812 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12813 x_display_pixel_width.
12814
12815 2008-09-18 Kenichi Handa <handa@m17n.org>
12816
12817 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12818 (composition_compute_stop_pos): Fix handling of static composition.
12819 (Fcomposition_get_gstring): Check FROM and TO at first.
12820
12821 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12822
12823 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
12824 mixup (YAILOM).
12825
12826 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
12827
12828 * indent.c (Fvertical_motion): Use position reported by iterator
12829 instead of PT for determining screen motion (bug#943).
12830
12831 2008-09-17 Romain Francoise <romain@orebokech.com>
12832
12833 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12834
12835 2008-09-17 Kenichi Handa <handa@m17n.org>
12836
12837 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12838
12839 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12840 if necessary.
12841
12842 2008-09-16 Kenichi Handa <handa@m17n.org>
12843
12844 * coding.c (make_conversion_work_buffer): Avoid calling
12845 Fget_buffer_create if it is not necessary.
12846
12847 2008-09-15 Martin Rudalics <rudalics@gmx.at>
12848
12849 * window.c (Fselect_window): Don't update window_select_count and
12850 use_time when norecord is not nil.
12851
12852 2008-09-14 Kenichi Handa <handa@m17n.org>
12853
12854 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12855 specpdl_ptr.
12856
12857 2008-09-12 Kenichi Handa <handa@m17n.org>
12858
12859 * indent.c (scan_for_column): Don't handle automatic composition
12860 if the current buffer is not associated with a window.
12861
12862 * composite.c (composition_reseat_it): If the current buffer is
12863 not associated with a window, ignore the automatic composition.
12864 (find_automatic_composition): Likewise.
12865
12866 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12867
12868 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12869 (Fgpm_mouse_stop): Use it.
12870 * termhooks.h (close_gpm): Declare.
12871 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12872 connection if Gpm_GetEvent fails.
12873
12874 * window.c (set_window_buffer): Always preserve current-buffer.
12875
12876 2008-09-12 Glenn Morris <rgm@gnu.org>
12877
12878 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12879
12880 2008-09-11 Glenn Morris <rgm@gnu.org>
12881
12882 * charset.c (charset-map-path): Doc fix.
12883
12884 2008-09-10 Kenichi Handa <handa@m17n.org>
12885
12886 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12887
12888 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12889 compose a grapheme cluster with the preceding base glyph.
12890
12891 * composite.c (composition_compute_stop_pos): Fix previous change.
12892 Reset cmp_it->id to -1 at first.
12893
12894 2008-09-10 Glenn Morris <rgm@gnu.org>
12895
12896 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12897
12898 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
12899
12900 * keyboard.c (read_key_sequence): Reapply translation maps when
12901 switching keyboards.
12902
12903 2008-09-09 Kenichi Handa <handa@m17n.org>
12904
12905 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12906 characters.
12907
12908 * composite.c (FORWARD_CHAR): Fix calculation
12909 of (POSITION).pos_byte.
12910 (composition_compute_stop_pos): Limit the search of composition to
12911 at most 500 characters ahead. If we reach the limit or find a
12912 newline, set cmp_it->ch to -2 and return 0.
12913 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12914
12915 2008-09-08 Kenichi Handa <handa@m17n.org>
12916
12917 * indent.c (Fvertical_motion): Be sure to set
12918 it_overshoot_expected if it.cmp_it.id is non-negative.
12919
12920 2008-09-07 Andreas Schwab <schwab@suse.de>
12921
12922 * callproc.c (Fcall_process): Don't hold references to string data
12923 across garbage collection. Move initialisation of new_argv down
12924 to avoid compiler bug.
12925
12926 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12927
12928 * process.c (Fsystem_process_attributes): Doc fix.
12929
12930 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
12931
12932 * callproc.c (Fcall_process): Canonicalize current directory name.
12933
12934 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12935 iterator advances to the next line if the current line ends in a
12936 continued tab.
12937
12938 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12939
12940 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12941 member to point to cmp_from.
12942
12943 * xdisp.c: Doc fix for references to gidx data member.
12944
12945 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12946
12947 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12948
12949 2008-09-07 Kenichi Handa <handa@m17n.org>
12950
12951 * composite.c (FORWARD_CHAR): Check STOP after
12952 incrementing (POSITION).pos.
12953
12954 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12955
12956 * process.c (Fsystem_process_attributes): Doc fix.
12957
12958 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
12959
12960 * keyboard.c (Ftop_level): Doc fix.
12961
12962 2008-09-06 Eli Zaretskii <eliz@gnu.org>
12963
12964 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12965 minibuffer, don't let lower part of menu invade the echo area.
12966
12967 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12968 "char *q" to access menu text and advance through it. Revert the
12969 change that displayed ">" instead of ASCII character 0x10.
12970
12971 2008-09-05 Eli Zaretskii <eliz@gnu.org>
12972
12973 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12974 toggle boxes and radio buttons on MS-DOS as well.
12975
12976 2008-09-05 Kenichi Handa <handa@m17n.org>
12977
12978 * composite.c (autocmp_chars): Check lookback count.
12979 (composition_compute_stop_pos): Set cmp_it->lookback.
12980 (composition_reseat_it): Check lookback count.
12981 (struct position_record): New struct.
12982 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12983 (find_automatic_composition): New function.
12984 (composition_adjust_point): Use find_automatic_composition.
12985
12986 * dispextern.h (struct composition_it): New member lookback.
12987
12988 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
12989
12990 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12991 if moving by a single line.
12992
12993 2008-09-02 Andreas Schwab <schwab@suse.de>
12994
12995 * xterm.c (x_delete_display): Fix merge error.
12996
12997 * fileio.c (Fexpand_file_name): Remove unused variables.
12998
12999 2008-09-02 Eli Zaretskii <eliz@gnu.org>
13000
13001 * fileio.c (Fexpand_file_name): Copy argument `name' into local
13002 storage on all platforms, not just on DOS_NT.
13003
13004 2008-09-02 Jason Rumney <jasonr@gnu.org>
13005
13006 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
13007 Ensure mouse is not grabbed after menu is finished.
13008
13009 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
13010
13011 * xfaces.c (Finternal_set_alternative_font_family_alist)
13012 (Finternal_set_alternative_font_registry_alist): Properly copy
13013 entire alist structure.
13014
13015 2008-09-01 Kenichi Handa <handa@m17n.org>
13016
13017 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
13018 representative chars of the script is a vector.
13019 (ftfont_list): Handle the case where the representative chars of
13020 the script is a vector.
13021
13022 * character.c (syms_of_character): Docstring of
13023 script-representative-chars fixed.
13024
13025 2008-08-31 Eli Zaretskii <eliz@gnu.org>
13026
13027 * msdos.c (BUILD_CHAR_GLYPH): New macro.
13028 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
13029 the menu. Allocate larger buffer for `text', to account for
13030 possible ^C characters.
13031
13032 2008-08-31 Martin Rudalics <rudalics@gmx.at>
13033
13034 * xdisp.c (prepare_menu_bars): Don't call
13035 Vwindow_size_change_functions with arg Qt.
13036
13037 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
13038
13039 * font.h (font_range):
13040 * fileio.c (report_file_error):
13041 * composite.c (composition_update_it): Yet another int/Lisp_Object
13042 mixup (YAILOM).
13043
13044 2008-08-30 Glenn Morris <rgm@gnu.org>
13045
13046 * data.c (Fmake_variable_frame_local): Doc fix.
13047
13048 * frame.c (Fmodify_frame_parameters): Doc fix.
13049
13050 2008-08-30 Eli Zaretskii <eliz@gnu.org>
13051
13052 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
13053 needed by GetTokenInformation.
13054 (w32_system_process_attributes): Check return values of all system
13055 APIs.
13056
13057 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
13058 only when the state changes.
13059 (IT_update_begin, IT_update_end): Add termscript trace.
13060
13061 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
13062 clipboard is unavailable. Set dst to NULL if it doesn't point to
13063 malloc'ed data.
13064 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
13065 passing random values to xfree.
13066
13067 * dispnew.c (init_display): Set `tty's association in frame's
13068 parameters alist to the name of the terminal device, if that is known.
13069
13070 2008-08-29 Jason Rumney <jasonr@gnu.org>
13071
13072 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
13073
13074 2008-08-29 Eli Zaretskii <eliz@gnu.org>
13075
13076 * composite.c (fill_gstring_body): Avoid compiler warnings.
13077
13078 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
13079 LGLYPH_SET_CODE to avoid compiler warnings.
13080
13081 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
13082
13083 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
13084
13085 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
13086 LGLYPH_SET_CODE.
13087
13088 2008-08-29 Kenichi Handa <handa@m17n.org>
13089
13090 * fileio.c (report_file_error): Don't downcase the first character
13091 of errstring if it is still unibyte.
13092
13093 2008-08-29 Kenichi Handa <handa@m17n.org>
13094
13095 These changes are to re-implement the automatic composition so
13096 that it doesn't use text properties.
13097
13098 * Makefile.in (ftfont.o): Depend on composite.h.
13099 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
13100
13101 * character.h (Vunicode_category_table): Extern it.
13102
13103 * character.c (Vunicode_category_table): New variable.
13104 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
13105
13106 * chartab.c (optimize_sub_char_table): Perform more greedy
13107 optimization.
13108
13109 * composite.h (enum composition_method):
13110 Delete COMPOSITION_WITH_GLYPH_STRING.
13111 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
13112 (Vcomposition_function_table): Extern it.
13113 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
13114 (composition_gstring_put_cache, composition_gstring_from_id)
13115 (composition_gstring_p, composition_gstring_width)
13116 (composition_compute_stop_pos, composition_reseat_it)
13117 (composition_update_it, composition_adjust_point): Extern them.
13118 (Fcomposition_get_gstring): EXFUN it.
13119
13120 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
13121 (Vcomposition_function_table)
13122 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
13123 (gstring_hash_table, gstring_work, gstring_work_headers):
13124 New variables.
13125 (gstring_lookup_cache, composition_gstring_put_cache)
13126 (composition_gstring_from_id, composition_gstring_p)
13127 (composition_gstring_width, fill_gstring_header)
13128 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
13129 (composition_reseat_it, composition_update_it)
13130 (composition_adjust_point, Fcomposition_get_gstring): New functions.
13131 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
13132 and gstring_work_headers. DEFVAR_LISP composition-function-table.
13133 Defsubr composition_get_gstring.
13134
13135 * dispextern.h (struct glyph): New union u.cmp. Delete the member
13136 cmp_id.
13137 (struct glyph_string): Delete the member gidx. New members
13138 cmp_id, cmp_from, and cmp_to.
13139 (enum it_method): Delete GET_FROM_COMPOSITION.
13140 (struct composition_it): New struct.
13141 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
13142 Delete c, len, cmp_id, cmp_len in u.comp.
13143
13144 * font.h (enum lgstring_indices): Delete it.
13145 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
13146 (enum lglyph_indices): Likewise.
13147 (font_range): Adjust extern.
13148 (font_fill_lglyph_metrics): Extern it.
13149
13150 * font.c (QCf): New variable.
13151 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13152 (font_prepare_composition): Delete this function.
13153 (font_range): Type and arguments changed.
13154 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
13155 (font_fill_lglyph_metrics): New function.
13156 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
13157 (syms_of_font): DEFSYM QCf. Delete defsubr for
13158 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
13159 Defsubr Sfont_shape_gstring.
13160
13161 * fontset.h (font_for_char): Extern it.
13162
13163 * fontset.c (font_for_char): New function.
13164
13165 * ftfont.c: Include composite.h.
13166 (ftfont_resolve_generic_family): Add langset "en" to pattern.
13167 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13168
13169 * indent.c: Include composite.h and dispextern.h.
13170 (check_composition): Delete this function.
13171 (scan_for_column): Handle composition by
13172 composition_compute_stop_pos, composition_reseat_it, and
13173 composition_update_it.
13174 (compute_motion): Likewise.
13175 (Fvertical_motion): Fix checking of composition.
13176
13177 * keyboard.c (adjust_point_for_property): Check composition by
13178 composition_adjust_point.
13179
13180 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
13181 struct glyph_string.
13182
13183 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
13184 (append_composite_glyph): Adjust for the change of struct it and
13185 struct glyph.
13186 (produce_composite_glyph): Likewise.
13187
13188 * w32term.c (x_draw_composite_glyph_string_foreground):
13189 Adjust for the change of struct glyph_string.
13190 (x_draw_glyph_string): Likewise.
13191
13192 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
13193 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13194
13195 * xdisp.c: Include font.h.
13196 (it_props): Delete the entry for Qauto_composed.
13197 (init_iterator): Initialize it->cmp_it.id to -1.
13198 (compute_stop_pos): Call composition_compute_stop_pos.
13199 (face_before_or_after_it_pos): Adjust for the change of struct it.
13200 (handle_auto_composed_prop): Delete it.
13201 (handle_composition_prop): Handle only static composition.
13202 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
13203 from xassert. Initialize it->cmp_it.stop_pos.
13204 (push_it): Adjust for the change of struct it.
13205 (pop_it): Likewise.
13206 (get_next_element): Delete next_element_from_composition.
13207 (CHAR_COMPOSED_P): New macro.
13208 (get_next_display_element): For automatic composition, get a face
13209 from the font in the glyph-string.
13210 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
13211 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
13212 (next_element_from_string): Check if the character at the current
13213 position is composed by CHAR_COMPOSED_P.
13214 (next_element_from_buffer): Likewise.
13215 (next_element_from_composition): Adjust for the change of struct it.
13216 Update it->cmp_it.
13217 (dump_glyph): Adjust for the change of struct glyph.
13218 (fill_composite_glyph_string): Adjust for the change of struct
13219 it and struct glyph. Don't handle automatic composition here.
13220 (fill_gstring_glyph_string): New function.
13221 (x_get_glyph_overhangs): Handle automatic composition.
13222 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
13223 (BUILD_GSTRING_GLYPH_STRING): New macro.
13224 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
13225 automatic composition.
13226 (append_composite_glyph): Adjust for the change of struct it and
13227 struct glyph.
13228 (x_produce_glyphs): Adjust for the change of struct it.
13229
13230 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13231 the change of struct glyph_string.
13232 (x_draw_glyph_string): Likewise.
13233
13234 2008-08-29 Glenn Morris <rgm@gnu.org>
13235
13236 * buffer.c (word-wrap): Doc fix.
13237 * xdisp.c (truncate-partial-width-windows): Doc fix.
13238 Increase default to 50.
13239
13240 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
13241
13242 * xdisp.c (update_tool_bar_unwind): New function.
13243 (update_tool_bar): Temporarily set selected frame before building
13244 tool-bar items.
13245
13246 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
13247
13248 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
13249 snprintf, respectively.
13250 (xd_append_arg): Convert strings with Fstring_make_unibyte.
13251
13252 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
13253
13254 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
13255 LDFLAGS to GNUstep CC invocation.
13256
13257 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
13258
13259 * indent.c (Fvertical_motion): Revert last change. Handle the
13260 general case where we are moving forward, and PT spans multiple
13261 screen lines.
13262
13263 * eval.c (find_handler_clause): Temporarily increase
13264 max-lisp-eval-depth while printing the backtrace buffer, to
13265 guarantee that help-mode code can run.
13266
13267 2008-08-27 Eli Zaretskii <eliz@gnu.org>
13268
13269 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
13270 colors under -rv.
13271 (IT_set_frame_parameters): Don't swap foreground and background
13272 colors if `(reverse . t)' is present in the frame properties.
13273 (internal_terminal_init): Call init_frame_faces only for the
13274 initial frame.
13275
13276 2008-08-27 Andreas Schwab <schwab@suse.de>
13277
13278 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
13279
13280 2008-08-27 Andreas Schwab <schwab@suse.de>
13281
13282 * search.c (search_buffer): Set char_base to zero only at the end.
13283
13284 2008-08-27 Kenichi Handa <handa@m17n.org>
13285
13286 * fileio.c (report_file_error): Fix handling of multibyte error string.
13287
13288 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
13289
13290 * xterm.c (x_term_init): Temporarily hide the partially
13291 initialized terminal while calling vendor-specific-keysyms.
13292
13293 2008-08-26 Eli Zaretskii <eliz@gnu.org>
13294
13295 * msdos.c (internal_terminal_init): Most initializations done only
13296 once, especially initial_screen_colors[] and termscript open.
13297
13298 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
13299
13300 * eval.c (Fcondition_case): Doc fix.
13301
13302 * widgetprv.h (EmacsFramePart): Change font member to the new font
13303 struct.
13304
13305 * widget.c: Include character.h and font.h for XSETFONT.
13306 (setup_frame_gcs): Compute X font id from font struct, just once.
13307
13308 2008-08-26 Eli Zaretskii <eliz@gnu.org>
13309
13310 * term.c (get_named_tty): Fix last change.
13311
13312 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
13313
13314 * indent.c (Fvertical_motion): If moving forward starting from a
13315 multi-line string, move the iterator to the last line of that string.
13316
13317 2008-08-25 Eli Zaretskii <eliz@gnu.org>
13318
13319 * frame.c (do_switch_frame): Mark previously displayed frame as
13320 obscured for FRAME_MSDOS_P frames as well.
13321
13322 2008-08-24 Eli Zaretskii <eliz@gnu.org>
13323
13324 * frame.c (make_terminal_frame): Initialize f->terminal,
13325 f->terminal->reference_count, and scroll bars on MS-DOS as well.
13326 Set the top frame to newly created frame.
13327 (Fmake_terminal_frame): Reuse the_only_display_info.
13328
13329 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13330 estimating available memory.
13331
13332 2008-08-23 David Reitter <david.reitter@gmail.com>
13333
13334 * nsterm.m (ns_draw_window_cursor): Don't call
13335 NSDisableScreenUpdates and NSEnableScreenUpdates on
13336 non-NS_IMPL_COCOA systems.
13337
13338 2008-08-23 Andreas Schwab <schwab@suse.de>
13339
13340 * process.c (procfs_system_process_attributes): Fix use of
13341 uninitialized variables.
13342
13343 2008-08-23 Eli Zaretskii <eliz@gnu.org>
13344
13345 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13346
13347 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13348 calling tty-set-up-initial-frame-faces.
13349
13350 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13351 Allow MSDOS frames along with X frames.
13352
13353 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13354 addition to output_termcap.
13355
13356 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13357
13358 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13359 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13360 highlight.
13361
13362 * process.c [!subprocesses]: Define QCname.
13363 (syms_of_process): Intern and staticpro it.
13364
13365 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
13366 Adjust for changes in encoding/decoding routines.
13367 Use encode_coding_object and decode_coding_object instead of
13368 encode_coding and decode_coding.
13369
13370 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
13371
13372 * dosfns.c: Include frame.h before termhooks.h.
13373 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13374 variable termscript.
13375
13376 * s/msdos.h (USER_FULL_NAME): Define.
13377 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13378
13379 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13380 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13381 pw->pw_gecos.
13382
13383 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13384 SELECTED_FRAME as additional (1st) argument.
13385 (tty_read_avail_input): Handle output_msdos_raw in
13386 addition to output_termcap.
13387
13388 * msdos.c: Include frame.h before termhooks.h.
13389 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13390 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13391 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13392 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13393 (IT_set_terminal_modes, IT_reset_terminal_modes)
13394 (IT_set_frame_parameters): Use tty->termscript instead of a global
13395 variable termscript.
13396 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13397 global variable terminal_coding. Don't refer to
13398 Vnonascii_translation_table.
13399 (internal_terminal_init): Set Vwindow_system in current_kboard.
13400 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13401 Announce date and time of session start, if termscript is open.
13402 Don't zero out the_only_display_info (it is done in
13403 term.c:init_tty). Open termscript only of not already open.
13404 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
13405 here instead of dos_ttraw. Don't initialize display if this is an
13406 initial tty. Don't set FRAME_FONT.
13407 (Vwindow_system_version): Bump to 23.
13408 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13409 is available, set up mouse_position_hook.
13410 (dos_ttraw, IT_set_terminal_modes): If called with initial
13411 terminal, do nothing.
13412 (IT_set_frame_parameters): Handle the Qtty_type frame
13413 parameter by calling internal_terminal_init.
13414 (dos_set_window_size, show_mouse_face)
13415 (clear_mouse_face, IT_note_mode_line_highlight)
13416 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13417 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13418 (initialize_msdos_display): New function.
13419 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13420 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13421 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13422 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
13423 Accept additional argument: a pointer to a frame. Update all callers.
13424 (request_sigio, unrequest_sigio): Don't define, now defined on
13425 sysdep.c.
13426 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13427
13428 * term.c [MSDOS]: Include msdos.h.
13429 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13430 conditional to DOS_NT. Allow only one call to this function in a
13431 session. Don't allocate a new struct tty_display_info; instead,
13432 reuse the_only_display_info. Call get_tty_size to get screen
13433 dimensions. Call init_baud_rate to set bad_rate.
13434 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13435 (Fsuspend_tty) [MSDOS]: Don't close input and output.
13436 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
13437 (get_tty_terminal, get_named_tty, Ftty_type)
13438 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13439 output_termcap.
13440 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13441 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
13442 only when subprocesses are supported.
13443
13444 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13445 f->output_data.x.
13446 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13447 terminal devices.
13448
13449 * msdos.h: Remove definition of struct x_display_info and struct
13450 x_output.
13451 (FRAME_FONT): Use output_data.tty.
13452 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
13453 (struct x_display_info): Rename from display_info. Update all users in
13454 msdos.c.
13455 (struct x_output): Remove background_pixel and foreground_pixel.
13456 (the_only_display_info): Rename from the_only_x_display.
13457 (dos_ttraw): Update prototype.
13458
13459 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13460 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13461
13462 2008-08-23 Jason Rumney <jasonr@gnu.org>
13463
13464 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13465 (fn_TIFFSetDirectory): New library function used.
13466 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13467 (tiff_load): Use :index to select among multiple images. Set count
13468 property when multiple images exist.
13469 (gif_format): Use :index, not :image.
13470
13471 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
13472
13473 * xdisp.c (try_scrolling): Check INT_MAX instead of
13474 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13475 to obtain INT_MAX.
13476
13477 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13478
13479 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13480
13481 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13482
13483 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13484 GNUstep library location.
13485
13486 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
13487
13488 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13489 before using it.
13490
13491 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13492
13493 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13494
13495 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13496 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13497 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13498 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13499 (EmacsApp-cursor_blink_handler): Remove declaration.
13500 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13501 match 01 Feb 2008 changes in xterm.c.
13502 (ns_read_socket): Add cast to avoid warning.
13503 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13504 GNUstep.
13505
13506 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
13507
13508 * xselect.c (x_get_foreign_selection): Return nil if desired
13509 selection could not be obtained, instead of signalling an error.
13510
13511 2008-08-20 David Reitter <david.reitter@gmail.com>
13512
13513 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13514 * nsterm.m: Remove ns-specific code for cursor blinking.
13515 (ns_draw_window_cursor): Clear cursor properly rather than
13516 redrawing the area. Respect width of bar cursors.
13517 These changes enable the use of generic blink-cursor-mode and
13518 generic cursor types in NS and support smooth cursor movements (do
13519 not blink off after command).
13520 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13521 Nextstep, too.
13522
13523 2008-08-19 Kenichi Handa <handa@m17n.org>
13524
13525 * font.c (Vfont_log_deferred): New variable.
13526 (font_add_log): Check Vfont_log_deferred.
13527 (font_deferred_log): New function.
13528
13529 * font.h (font_deferred_log): Extern it.
13530
13531 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13532 for sorting.
13533 (face_for_char): Use deferred log.
13534
13535 2008-08-18 Kenichi Handa <handa@m17n.org>
13536
13537 * fontset.c (face_for_char): Add font log.
13538
13539 * font.c (font_add_log): Add the font properties :script, :lang,
13540 and :otf in the log.
13541
13542 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
13543
13544 * xdisp.c: Remove dead code.
13545 (handle_invisible_prop, next_overlay_string): Defer call to
13546 setup_for_ellipsis.
13547 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13548
13549 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
13550
13551 * xfaces.c (lookup_derived_face): Properly handle possible zero
13552 return value of get_lface_attributes.
13553 (merge_faces): Don't tell lookup_derived_face to signal an error
13554 if face is not found.
13555
13556 * dired.c (Fdirectory_files): Doc fix.
13557
13558 * process.c (make_process): Initialize kill_without_query struct
13559 member.
13560
13561 2008-08-15 Eli Zaretskii <eliz@gnu.org>
13562
13563 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13564 Alternative calculation of totphys for Visual Studio 6.
13565
13566 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13567
13568 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13569 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13570 All users changed.
13571 (stat): Only root directory passed to GetDriveType. Allow RAM
13572 disk as well as local fixed disk when w32-get-true-file-attributes
13573 is set to `local'.
13574 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13575 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13576 (w32_cached_id, w32_add_to_cache): New functions.
13577 (get_name_and_id): Look account names in the cache before calling
13578 lookup_account_sid.
13579 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13580 New initialization flags.
13581 (globals_of_w32): Initialize them to zero.
13582 (w32_system_process_attributes): Use w32_cached_id and
13583 w32_add_to_cache.
13584
13585 2008-08-14 Lawrence Mitchell <wence@gmx.li>
13586
13587 * lread.c (Fread_char, Fread_char_exclusive): If no character
13588 event is read before timeout is reached, return nil, rather than
13589 converting to a number.
13590
13591 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
13592
13593 * fns.c (use_dialog_box): Doc fix.
13594
13595 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13596 on OS X.
13597
13598 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
13599
13600 * frame.c (Qns_parse_geometry): New var.
13601 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13602
13603 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
13604
13605 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13606 space character in calculating tabs.
13607
13608 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13609
13610 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13611
13612 2008-08-10 Glenn Morris <rgm@gnu.org>
13613
13614 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13615 silence gcc "limited range of data type" warnings in some
13616 make_fixnum_or_float calls.
13617
13618 2008-08-09 Eli Zaretskii <eliz@gnu.org>
13619
13620 * w32.c (w32_system_process_attributes): If the process does not
13621 exist, return nil.
13622
13623 * w32.c: Include thelp32.h, psapi.h and coding.h.
13624 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13625 declarations.
13626 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13627 (Process32Next_Proc): New typedefs.
13628 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13629 (g_b_init_process32_next, g_b_init_open_thread_token)
13630 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13631 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13632 (g_b_init_get_process_working_set_size)
13633 (g_b_init_global_memory_status_ex): New static variables.
13634 (globals_of_w32): Initialize them.
13635 (create_toolhelp32_snapshot, process32_first, process32_next)
13636 (open_thread_token, impersonate_self, revert_to_self)
13637 (get_process_memory_info, get_process_working_set_size)
13638 (global_memory_status, global_memory_status_ex): New wrapper
13639 functions.
13640 (w32_list_system_processes, w32_system_process_attributes)
13641 (enable_privilege, restore_privilege, ltime, process_times):
13642 New functions.
13643 (convert_time_raw): New function.
13644 (convert_time): Remove conversion of FILETIME into time in 100
13645 nsec units, call convert_time_raw instead.
13646
13647 * process.h (w32_list_system_processes, w32_system_process_attributes):
13648 Add prototypes.
13649 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13650 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13651 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13652 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13653
13654 * process.c (Fsystem_process_attributes): Doc fix.
13655
13656 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
13657
13658 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13659 a continued multi-char glyph; if so, advance to the actual glyph.
13660
13661 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13662
13663 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13664
13665 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13666 (.m.o): Use it.
13667 * config.in: Regenerate.
13668
13669 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
13670
13671 * xdisp.c (redisplay_window): Revert last change.
13672 (try_window): Check bottom scroll margin too.
13673
13674 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13675
13676 * config.in: Regenerate.
13677
13678 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13679 -list-load-path-shadows'.
13680 (nsgui.h): Reduce number of things depending on it.
13681
13682 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
13683
13684 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13685 instead of window-end which does the wrong thing at eob.
13686 (try_cursor_movement): Minor optimization.
13687 (redisplay_window): If scroll margin is defined, don't assume
13688 window doesn't need scrolling.
13689
13690 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13691
13692 * config.in: Regenerate.
13693
13694 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13695 (mostlyclean): Don't delete *.d under NS.
13696
13697 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13698
13699 2008-08-06 Kenichi Handa <handa@m17n.org>
13700
13701 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13702
13703 2008-08-06 Andreas Schwab <schwab@suse.de>
13704
13705 * config.in: Regenerate.
13706
13707 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
13708
13709 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13710 forcing a window start.
13711
13712 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13713 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13714
13715 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13716
13717 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13718 argument.
13719
13720 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
13721
13722 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13723 <scroll-down-aggressively, before-change-functions>:
13724 <after-change-functions>: Reflow docstrings.
13725
13726 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13727 Ken Raeburn <raeburn@gnu.org>
13728
13729 Dock menu customization, based on a patch by Ken Raeburn, plus some
13730 other fixes.
13731 * nsmenu.m (dockMenu): New variable.
13732 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13733
13734 * nsterm.h (dockMenu): Declare.
13735
13736 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13737 (ns_term_init): Initialize dockMenu.
13738 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13739 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13740 left.
13741
13742 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13743
13744 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
13745
13746 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13747
13748 * config.in: Regenerate.
13749
13750 2008-08-04 Seiji Zenitani <zenitani@mac.com>
13751
13752 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13753
13754 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
13755
13756 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13757
13758 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13759
13760 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13761
13762 * keyboard.h: Comment an #endif.
13763
13764 * lisp.h (have_menus_p): Adjust comment.
13765
13766 * menu.c (find_and_return_menu_selection): Fix comparison with
13767 client_data.
13768
13769 * nsmenu.m (popup_activated_flag): New variable.
13770 (popup_activated): New function.
13771 (menu-or-popup-active-p): New exported lisp definition.
13772 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13773 when popup done.
13774 (ns_popup_dialog): Set popup_activated_flag.
13775
13776 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13777 version for GNUstep (handled by conditional typedef in nsterm.m).
13778 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13779 in rgb.txt).
13780
13781 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13782
13783 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13784
13785 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13786
13787 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13788 shortcircuit if popup_activated like GTK and X toolkit.
13789
13790 * m/inter386.h: Change DARWIN to DARWIN_OS.
13791
13792 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13793 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13794 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13795 comment on NO_SOCK_SIGIO.
13796
13797 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
13798
13799 * nsterm.m (windowDidResize): Remove stopModal call.
13800
13801 2008-08-03 Andreas Schwab <schwab@suse.de>
13802
13803 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13804 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13805
13806 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
13807
13808 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13809 Don't use uninitialized pointer variable when using getrlimit.
13810
13811 2008-08-02 Jason Rumney <jasonr@gnu.org>
13812
13813 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13814
13815 2008-08-02 Eli Zaretskii <eliz@gnu.org>
13816
13817 * alloc.c (NSTATICS): Bump to 0x640.
13818
13819 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13820
13821 * lisp.h: Add prototype for directory_files_internal.
13822
13823 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13824 New functions.
13825 (syms_of_process): Defsubr them. Add initializations for various
13826 Q* symbols used in procfs_system_process_attributes.
13827 (procfs_list_system_processes, procfs_system_process_attributes)
13828 [HAVE_PROCFS]: New functions.
13829 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13830 (procfs_get_total_memory): New functions.
13831
13832 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
13833
13834 * xfaces.c (Fx_load_color_file): Fix previous change;
13835 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13836
13837 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
13838
13839 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13840
13841 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13842
13843 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13844
13845 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
13846
13847 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13848
13849 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13850 define NSApplicationDelegateReplySuccess.
13851 (EmacsView -converstationIdentifier): Use long instead of
13852 NSInteger for GNUstep, since it doesn't have NSInteger.
13853
13854 * xmenu.c: Revert last change.
13855
13856 * keyboard.h: Fix last change.
13857
13858 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
13859
13860 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13861 on Windows.
13862
13863 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13864
13865 Warning clearing and clean-up in NS port.
13866 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13867 Add prototypes.
13868 * nsgui.h (FACE_DEFAULT): Remove, unused.
13869 (XGCValues): Change colors to unsigned long.
13870 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13871 nsterm.m.
13872 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13873 (ns_list_fonts): Remove, unused.
13874 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13875 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13876 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13877 (nsfont_draw): Compare face colors to 0, not nil.
13878 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13879 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13880 (-addSubmenuWithTitle:): Use NSMenuItem class.
13881 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13882 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13883 (ns_clip_to_row): Make gc arg a BOOL.
13884 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13885 ns_clip_to_row() call.
13886 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13887 used). Cast FRAME_FONT assignments.
13888 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13889 (ns_string_to_lispmod): Change arg to const char.
13890 (ns_term_init): Use NSMenuItem class.
13891 (EmacsApp -openFile:): Move to different section of file.
13892 (EmacsApp -application:openFiles:): Don't return a value, call
13893 -replyToOpenOrPrint:.
13894 (EmacsView -keyDown:): Fix up cast.
13895 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13896 (EmacsView -menuDown:): Cast tag in call to
13897 find_and_call_menu_selection().
13898 (ns_list_fonts): Remove, unused.
13899 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13900 (ns_fontname_to_xlfd): Make static.
13901 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13902 Remove prototypes (now in keyboard.h).
13903 (next_menubar_widget_id): Remove, unused.
13904 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13905 Remove prototypes (now in keyboard.h).
13906 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13907
13908 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13909
13910 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13911 (floatfns.o): Depend on syssignal.h.
13912 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13913
13914 * systty.h: Fix previous change that removed BSD_TERMIOS.
13915 Add comments to #ifdefs.
13916
13917 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13918
13919 * w32fns.c (w32-load-color-file): Remove.
13920 (x-open-connection): Use renamed Fx_load_color_file.
13921 * xfaces.c (x-load-color-file): Add.
13922 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13923 Emacs.clr.
13924 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13925
13926 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
13927
13928 * dbusbind.c (Fdbus_call_method_asynchronously)
13929 (Fdbus_method_error_internal): New defuns.
13930 (xd_read_message): Handle also reply messages.
13931 (Vdbus_registered_functions_table): Extend docstring.
13932
13933 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
13934
13935 * keyboard.c (gobble_input): Fix previous change.
13936
13937 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13938
13939 * bitmaps/README:
13940 * xfns.c:
13941 * termcap.c:
13942 * term.c:
13943 * syswait.h:
13944 * systty.h:
13945 * systime.h:
13946 * syssignal.h:
13947 * sysdep.c:
13948 * process.h:
13949 * process.c:
13950 * print.c:
13951 * ndir.h:
13952 * lread.c:
13953 * keyboard.c:
13954 * getpagesize.h:
13955 * floatfns.c:
13956 * fileio.c:
13957 * emacs.c:
13958 * doc.c:
13959 * dispnew.c:
13960 * dired.c:
13961 * data.c:
13962 * callproc.c:
13963 * buffer.c:
13964 * README:
13965 * Makefile.in:
13966 * s/template.h:
13967 * s/msdos.h:
13968 * m/vax.h: Remove VMS support.
13969 * s/vms.h:
13970 * vlimit.h:
13971 * uaf.h:
13972 * temacs.opt:
13973 * param.h:
13974 * ioctl.h: Remove file.
13975
13976 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13977
13978 * s/ms-w32.h (MULTI_KBOARD): Remove.
13979 * xterm.c:
13980 * xselect.c:
13981 * xfns.c:
13982 * window.c:
13983 * w32term.c:
13984 * w32fns.c:
13985 * terminal.c:
13986 * termhooks.h:
13987 * term.c:
13988 * sysdep.c:
13989 * keyboard.h:
13990 * keyboard.c:
13991 * frame.h:
13992 * frame.c:
13993 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13994 * config.in: Regenerate.
13995
13996 2008-07-30 Jason Rumney <jasonr@gnu.org>
13997
13998 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13999
14000 * w32font.c (w32font_encode_char): Leave as unicode if in range.
14001 (w32font_open_internal): Get unicode version of textmetrics.
14002 Don't enable or disable glyph indices here.
14003 (w32font_open): Disable use of glyph indices.
14004
14005 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
14006
14007 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
14008
14009 * minibuf.c (Vread_buffer_function): Doc fix.
14010
14011 2008-07-30 John Paul Wallington <jpw@pobox.com>
14012
14013 * minibuf.c (read_buffer_completion_ignore_case): New var.
14014 (Fread_buffer): Use it.
14015
14016 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
14017
14018 * systty.h (sensemode): Remove empty #if. Remove reference to
14019 BSD_TERMIOS, unused.
14020
14021 * sysdep.c: Remove reference to DGUX.
14022 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
14023
14024 * config.in: Regenerate.
14025
14026 2008-07-30 Jason Rumney <jasonr@gnu.org>
14027
14028 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
14029
14030 2008-07-29 Jason Rumney <jasonr@gnu.org>
14031
14032 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
14033 is populated.
14034 (uniscribe_encode_char): Always use uniscribe.
14035 Avoid using context if cache is populated.
14036
14037 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
14038
14039 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
14040 open menu.
14041
14042 * gtkutil.c (menu_nav_ended): Remove.
14043 (create_menus): Remove signal connect for menu_nav_ended.
14044
14045 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
14046
14047 * xdisp.c (redisplay_window): Check return value of
14048 compute_window_start_on_continuation_line before forcing a window
14049 start.
14050
14051 2008-07-28 Jason Rumney <jasonr@gnu.org>
14052
14053 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
14054
14055 * w32term.c (w32_enable_unicode_output, cleartype_active):
14056 Remove obsolete display options.
14057 (x_draw_glyph_string_background): Don't use old cleartype_active
14058 workaround.
14059 (w32_initialize): Remove cleartype_active initialization.
14060 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
14061
14062 2008-07-28 Andreas Schwab <schwab@suse.de>
14063
14064 * lisp.h (init_weak_hash_tables, syms_of_font)
14065 (xd_read_queued_messages, syms_of_dbusbind): Declare.
14066 (remove_hash_entry): Don't declare.
14067 * eval.c (maybe_call_debugger): Make static and move before use.
14068 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
14069 * xdisp.c: Include "gtkutil.h" if USE_GTK.
14070 * xterm.h (x_set_frame_alpha): Declare.
14071
14072 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
14073
14074 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
14075 (create_menus): Connect selection-done to menu_nav_ended.
14076
14077 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14078
14079 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
14080 Set Vx_resource_name to a fallback. Replace read of 'buffered'
14081 parameter with read of 'alpha' one.
14082 (Qns_frame_parameter): Remove.
14083 * nsselect.m (selection-coding-system)
14084 (next-selection-coding-system, Vselection_coding_system)
14085 (Vnext_selection_coding_system): Drop.
14086
14087 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14088
14089 * nsfns.m (do-applescript, do_applescript): Rename to
14090 ns-do-applescript, ns_do_applescript, and move within file.
14091
14092 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
14093
14094 Remove support for Mac Carbon.
14095 * mactoolbox.c:
14096 * macterm.h:
14097 * macterm.c:
14098 * macselect.c:
14099 * macmenu.c:
14100 * macgui.h:
14101 * macfns.c:
14102 * mac.c: Remove file.
14103 * s/darwin.h:
14104 * m/intel386.h:
14105 * xfaces.c:
14106 * xdisp.c:
14107 * window.c:
14108 * tparam.c:
14109 * termhooks.h:
14110 * termcap.c:
14111 * term.c:
14112 * syssignal.h:
14113 * sysselect.h:
14114 * sysdep.c:
14115 * process.c:
14116 * lread.c:
14117 * lisp.h:
14118 * keyboard.c:
14119 * image.c:
14120 * fringe.c:
14121 * frame.h:
14122 * frame.c:
14123 * fontset.c:
14124 * font.h:
14125 * font.c:
14126 * fns.c:
14127 * fileio.c:
14128 * emacs.c:
14129 * dispnew.c:
14130 * dispextern.h:
14131 * config.in:
14132 * atimer.c:
14133 * Makefile.in: Remove code for Carbon.
14134
14135 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14136
14137 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
14138
14139 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14140
14141 * macterm.h (kCGBitmapByteOrder32Host): New define for
14142 non-universal SDKs.
14143
14144 * image.c (mac_create_cg_image_from_image, image_load_image_io)
14145 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14146
14147 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
14148 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14149
14150 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
14151
14152 * w32inevt.c: Include dispextern.h.
14153
14154 2008-07-26 Andreas Schwab <schwab@suse.de>
14155
14156 * print.c (print_object): Fix off-by-one in last change.
14157
14158 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
14159
14160 * term.c (syms_of_term): Don't initialize default_orig_pair,
14161 default_set_foreground and default_set_background on Windows.
14162
14163 2008-07-25 Jason Rumney <jasonr@gnu.org>
14164
14165 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
14166 ScriptItemize. Clean up return value checking. Remove unused
14167 variables.
14168 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
14169 shaping engine.
14170
14171 * w32font.c (w32font_has_char): Handle the case where we can't
14172 determine the script for a character.
14173
14174 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
14175
14176 * term.c (syms_of_term): Initialize default_orig_pair,
14177 default_set_foreground, and default_set_background.
14178
14179 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14180 clash (bug#86).
14181 (getloadavg): Callers changed.
14182
14183 * image.c (svg_load_image): Fix last change.
14184 (svg_load_image): Use rsvg_handle_get_dimensions to check that
14185 image size is valid. Use g_object_unref instead of deprecated
14186 rsvg_handle_free to free rsvg handle.
14187 (x_from_xcolors): Don't initialize pixmap (silence compiler).
14188
14189 2008-07-25 Jason Rumney <jasonr@gnu.org>
14190
14191 * w32font.c (w32font_encode_char): Encode characters outside BMP as
14192 surrogates before looking up glyph index.
14193 (w32font_text_extents): Encode as surrogates if falling back to
14194 functions that need UTF-16 wide chars.
14195
14196 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
14197 BMP as surrogates before looking up glyph index.
14198
14199 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
14200
14201 * image.c (svg_load_image): Check for failure in return value of
14202 rsvg_handle_get_pixbuf. Free rsvg handle when done.
14203
14204 2008-07-25 Jason Rumney <jasonr@gnu.org>
14205
14206 * w32font.c (Fx_select_font): Reverse sense of second arg.
14207
14208 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
14209
14210 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
14211 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
14212
14213 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
14214 (PURESIZE): Use it.
14215
14216 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
14217
14218 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
14219 * m/alpha.h (TEXT_END):
14220 * m/ibmrs6000.h (TEXT_END):
14221 * m/macppc.h (TEXT_END):
14222 * s/darwin.h (TEXT_END):
14223 * s/msdos.h (TEXT_END): Remove, unused.
14224 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
14225 * s/cygwin.h: Remove comment.
14226
14227 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
14228 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
14229 * m/intel386.h (DOT_GLOBAL_START):
14230 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
14231 (USG): Remove, file not used on USG platforms.
14232
14233 * Makefile.in (HAVE_X11): Remove empty #else.
14234
14235 2008-07-24 Andreas Schwab <schwab@suse.de>
14236
14237 * fileio.c (Finsert_file_contents): Properly adjust undo list
14238 after format conversion.
14239
14240 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
14241
14242 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
14243 (menu_nav_ended): Remove.
14244 (create_menus): Remove signal connect for menu_nav_ended.
14245 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
14246 create_menus.
14247 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
14248
14249 2008-07-23 Jason Rumney <jasonr@gnu.org>
14250
14251 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
14252 with opened font.
14253 (w32font_open): Set font type to gdi.
14254
14255 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
14256
14257 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
14258
14259 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
14260 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
14261 defines it.
14262 * unexec.c (ADDR_CORRECT): Define unconditionally.
14263
14264 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
14265
14266 * unexec.c: Remove code depending on !COFF and USG, the file is
14267 not used for such systems.
14268
14269 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
14270 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
14271 (LD_SWITCH_SYSTEM_1): Remove, update users.
14272
14273 * s/darwin.h (DATA_END):
14274 * m/intel386.h (DATA_END):
14275 * m/ibmrs6000.h (DATA_END):
14276 * m/alpha.h (DATA_END): Remove, unused.
14277
14278 * config.in: Regenerate.
14279 * s/ms-w32.h (subprocesses): Define unconditionally.
14280 * s/template.h (subprocesses): Update comment.
14281 * s/vms.h (subprocesses):
14282 * s/usg5-4.h (subprocesses):
14283 * s/hpux10-20.h (subprocesses):
14284 * s/gnu-linux.h (subprocesses):
14285 * s/cygwin.h (subprocesses):
14286 * s/bsd-common.h (subprocesses):
14287 * s/aix4-2.h (subprocesses):
14288 * s/darwin.h (subprocesses): Do not define, defined by default now.
14289
14290 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
14291 Remove all references.
14292 (temacs): Add GNUstep specific ld flags.
14293
14294 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
14295 similarly to what X does.
14296
14297 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14298
14299 * nsfns.m (x-list-fonts): Remove.
14300 (syms_of_nsfns): Drop the x-list-fonts declaration.
14301 * nsterm.m: Get rid of remaining "//" comments.
14302
14303 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
14304
14305 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
14306
14307 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
14308 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
14309 (Fns_own_selection_internal, Fx_disown_selection_internal)
14310 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
14311
14312 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
14313 ... */' style of docstrings. Doc fixes.
14314
14315 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14316
14317 * terminfo.c (UP, BC, PC): Undo previous change.
14318
14319 * nsfns.m: Rename ns prefixed functions/variables to the
14320 corresponding x versions. Update references.
14321
14322 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
14323
14324 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14325
14326 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14327
14328 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14329 Remove forwarding functions.
14330 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14331 non-static.
14332 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14333 non-static.
14334 (ns_frame_parm_handlers): Use the new names.
14335 (syms_of_nsfns): Move to the end of file.
14336
14337 * nsterm.m (syms_of_nsterm): Move to the end of file.
14338
14339 * dispnew.c (init_display): Remove code for X10.
14340
14341 2008-07-22 Jason Rumney <jasonr@gnu.org>
14342
14343 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14344 bare drive.
14345
14346 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14347
14348 * nsterm.m (syms_of_nsterm): Remove debugging println.
14349
14350 2008-07-22 David Reitter <david.reitter@gmail.com>
14351
14352 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14353 Carbon implementation of the same functionality: execute arbitrary
14354 AppleScript code.
14355
14356 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14357
14358 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14359 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14360 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14361 (Fx_display_mm_height, Fx_display_mm_width)
14362 (Fx_display_backing_store, Fx_display_visual_class)
14363 (Fx_display_save_under, Fx_open_connection)
14364 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14365 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14366 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14367 (Fx_display_pixel_width, Fx_display_pixel_height)
14368 (Fx_display_usable_bounds, Fx_display_planes)
14369 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14370 ... */' style of docstrings.
14371
14372 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14373
14374 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14375 on this platform.
14376 (mips):
14377 * m/iris4d.h (mips): Do not define.
14378 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14379
14380 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14381
14382 * image.c:
14383 * nsfns.m:
14384 * nsselect.m:
14385 * nsterm.h:
14386 * nsterm.m: Rename ns prefixed functions/variables to the
14387 corresponding x versions. Update references.
14388
14389 * m/ibms390x.h (NO_REMAP): Do not undefine.
14390
14391 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14392
14393 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
14394
14395 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14396 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14397 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14398 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14399 (Fns_display_mm_height, Fns_display_mm_width)
14400 (Fns_display_backing_store, Fns_display_visual_class)
14401 (Fns_display_save_under, Fns_open_connection)
14402 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14403 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14404 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14405 (Fns_display_pixel_width, Fns_display_pixel_height)
14406 (Fns_display_usable_bounds, Fx_display_planes)
14407 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14408
14409 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14410
14411 * print.c (print_object): Check print_depth before searching for
14412 circularities.
14413
14414 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
14415
14416 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14417 only sprintf.
14418
14419 2008-07-21 Kenichi Handa <handa@m17n.org>
14420
14421 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14422
14423 2008-07-20 Andreas Schwab <schwab@suse.de>
14424
14425 * syntax.c (find_start_pos, find_start_value)
14426 (find_start_value_byte, find_start_begv, find_defun_start)
14427 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14428
14429 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14430
14431 * s/sol2-3.h: Insert contents of s/sol2.h.
14432 (LD_SWITCH_SYSTEM): Remove redundant definition.
14433 * s/sol2.h: Remove, unused.
14434
14435 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14436
14437 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14438
14439 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14440
14441 * Makefile.in (ns_appdir): Fix typo in find command.
14442
14443 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14444
14445 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14446
14447 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14448 added not supported anymore.
14449
14450 * s/usg5-4-2.h (LIBS_SYSTEM):
14451 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14452
14453 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14454 * s/lynxos.h (GETPGRP_NO_ARG):
14455 * s/hpux10-20.h (NO_SIOCTL_H):
14456 * s/gnu.h (GETPGRP_NO_ARG):
14457 * s/gnu-linux.h (NO_SIOCTL_H):
14458 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14459 * s/cygwin.h (GETPGRP_NO_ARG):
14460 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14461 (C_DEBUG_SWITCH): Remove duplicate definition.
14462
14463 * m/ibms390.h: Remove boilerplate comments.
14464
14465 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14466
14467 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14468 (wait_reading_process_output): Remove code for SunOS, platform not
14469 supported anymore. Use SOLARIS2 instead of sun.
14470
14471 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14472
14473 * font.c (font_open_by_name): Under NS, default lface height to zero.
14474 (font_open_for_lface): Under NS, set size based on frame fontsize.
14475 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14476 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14477
14478 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14479
14480 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14481 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14482 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14483 YES/NO.
14484 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14485 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14486 * Makefile.in (clean): Clear out build destination dir.
14487
14488 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14489
14490 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14491 xterm, xselect.
14492 * lisp.h: Remove declaration of hash_remove.
14493 * nsgui.h: Remove redefinitions of hash_remove.
14494 * fns.c (hash_remove): Rename to hash_remove_from_table.
14495
14496 2008-07-19 Seiji Zenitani <zenitani@mac.com>
14497
14498 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14499 strdup() the family UTF8String before modifying it.
14500
14501 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14502
14503 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14504 NS_FACE_BACKGROUND with 0 instead of nil.
14505 * nsfont.m (nsfont_draw): Same.
14506
14507 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
14508
14509 * nsfns.m (ns_set_background_color): Fix crash.
14510
14511 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
14512
14513 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14514
14515 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14516
14517 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14518
14519 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14520
14521 * gtkutil.c: Include <config.h> instead of "config.h".
14522
14523 * lisp.h (Foverlay_buffer): Add EXFUN.
14524
14525 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14526 child process to complete child_setup. Undo 2005-09-21 change.
14527
14528 * s/darwin.h: Mention setsid after vfork.
14529
14530 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14531
14532 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14533 Depend on macgui.h.
14534
14535 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14536 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14537
14538 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14539 and f19.
14540 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14541
14542 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14543 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14544 Remove enumerators.
14545
14546 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14547 Check if FACE_FROM_ID returns NULL.
14548
14549 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14550
14551 * w32inevt.c (change_frame_size): Remove extern declaration.
14552 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14553 change_frame_size.
14554
14555 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14556
14557 * getloadavg.c: Revert last change (2008-07-15).
14558
14559 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14560
14561 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
14562 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
14563 from configure.
14564
14565 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14566
14567 * s/sol2.h:
14568 * s/sol2-4.h: Reorganize conditionals.
14569
14570 * ecrt0.c: Remove code depending on m68000, not used anymore.
14571
14572 * fns.c (hash_remove): Make static.
14573 * lisp.h (hash_remove): Don't prototype.
14574
14575 * m/ibmrs6000.h:
14576 * m/ibms390x.h:
14577 * m/macppc.h: Remove boilerplate comments.
14578
14579 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14580 Solaris, which does not need them.
14581
14582 * m/vax.h: Remove comments about unsupported systems.
14583
14584 * s/darwin.h: Reorganize ifdefs.
14585
14586 2008-07-17 Andreas Schwab <schwab@suse.de>
14587
14588 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14589
14590 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14591
14592 Use SDATA. Follow coding convention of placing operators at
14593 beginning of next line rather than end of previous line, and placing
14594 spaces around infix operators.
14595
14596 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14597 in case it was defined already.
14598 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14599 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14600 ns_default.
14601 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14602 Lisp_Objects.
14603 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14604 (ns_defined_color, ns_color_to_lisp): Declare.
14605 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14606 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14607 it's accepted even with USE_LISP_UNION_TYPE.
14608 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14609 (update_frame_tool_bar): Remove apparently obsolete tests for
14610 non-integerness of f->tool_bar_lines.
14611 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14612 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14613 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14614 (nsfont_open): Don't confuse NULL for Qnil.
14615 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14616 * menu.h (find_and_call_menu_selection):
14617 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14618 (find_and_return_menu_selection): Always return something.
14619 * frame.h: Include dispextern.h for Display_Info.
14620 (display_x_get_resource): Declare.
14621
14622 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14623
14624 * syntax.c: Remove stdio.h include accidentally introduced in
14625 Emacs.app commit.
14626 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14627 NS_IMPL_COCOA.
14628 * keyboard.c (handle_async_input, input_available_signal): Remove
14629 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14630
14631 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14632
14633 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14634 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14635 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14636 Use SDATA.
14637
14638 * keymap.c: Remove all NS-specific code.
14639 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14640 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14641 where_is_preferred_modifier, return a different value depending on how
14642 preferred is the binding.
14643 (where_is_internal): Adjust accordingly.
14644 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14645 Adjust to new preferred_sequence_p.
14646 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14647 * keyboard.c (parse_solitary_modifier): Not static any more.
14648 * keyboard.h (parse_solitary_modifier): Declare.
14649
14650 2008-07-16 Andreas Schwab <schwab@suse.de>
14651
14652 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14653 of easymenu.
14654
14655 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
14656
14657 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14658 that we don't move off the line.
14659
14660 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14661
14662 * keyboard.c (Qsuper): Remove.
14663 (parse_menu_item): Don't call where_is_internal specially for NS.
14664
14665 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14666
14667 * s/gnu-linux.h: Remove boilerplate comments.
14668
14669 * m/alpha.h (__ELF__): Consolidate conditions.
14670
14671 * m/m68k.h (linux): Use GNU_LINUX instead.
14672 Remove boilerplate comments.
14673
14674 * m/intel386.h: Undo refactoring from previous change.
14675 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14676 too, remove dead code.
14677 (linux): Use GNU_LINUX instead.
14678
14679 2008-07-16 Jason Rumney <jasonr@gnu.org>
14680
14681 * w32gui.h: Repeat 26 June changes lost by last change.
14682
14683 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14684
14685 * systty.h: Remove code for Aix on 386, unsupported platform.
14686
14687 * s/ms-w32.h: Remove boilerplate comments.
14688 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14689
14690 * s/gnu-linux.h (TERM): Remove support.
14691 (HAVE_SYSVIPC): Remove, unused.
14692 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14693 for this system.
14694
14695 * process.c: Remove support for IRIS, unused.
14696 Remove support for TERM, not relevant anymore.
14697
14698 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14699 used with the definition.
14700
14701 * s/aix4-2.h (static): Do not undef.
14702
14703 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14704 only used on Aix.
14705 (HAVE_SYSVIPC): Remove, unused.
14706
14707 * m/hp800.h (CANNOT_DUMP): Do not undef.
14708
14709 * m/alpha.h: Fix comment.
14710
14711 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14712 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14713 used by this configuration.
14714 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14715 * unexec.c: Remove code depending on HPUX and
14716 USG_SHARED_LIBRARIES, not used with this file. Remove code
14717 depending on IRIS, unused. Remove if 0-ed code.
14718
14719 * s/template.h: Remove comments about static.
14720
14721 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14722 Remove if 0-ed code.
14723 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14724 were the same as the default.
14725 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14726 Remove boilerplate comments.
14727 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14728 (HAVE_SYSVIPC): Remove, unused.
14729 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14730
14731 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14732 Remove boilerplate comments.
14733 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14734 Remove boilerplate comments.
14735 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14736 Remove boilerplate comments.
14737 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14738
14739 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14740 USG systems which do not use DATA_SEG_BITS.
14741 Refactor code. Remove boilerplate comments.
14742
14743 * m/ibms390.h:
14744 * m/m68k.h:
14745 * s/bsd-common.h:
14746 * s/cygwin.h:
14747 * s/darwin.h:
14748 * s/freebsd.h:
14749 * s/gnu.h:
14750 * s/msdos.h: Remove boilerplate comments.
14751
14752 * m/iris4d.h: Remove boilerplate comments and code for systems that
14753 do not use this file.
14754 (IRIS_4D): Remove, unused.
14755
14756 * m/mips.h: Remove boilerplate comments and code for systems that
14757 do not use this file.
14758 (SIGN_EXTEND_CHAR):
14759 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14760 * unexmips.c: Remove file, unused.
14761
14762 * editfns.c (Fuser_full_name): Replace the only use of
14763 USER_FULL_NAME with its value.
14764 * config.in: Regenerate.
14765
14766 2008-07-16 David Reitter <david.reitter@gmail.com>
14767
14768 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14769 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14770
14771 2008-07-16 Glenn Morris <rgm@gnu.org>
14772
14773 * emacs.c (system-type): Doc fix.
14774
14775 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14776
14777 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14778 If the cache doesn't work, let's fix it, rather than work around it.
14779
14780 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14781
14782 * Makefile.in: Correct additions for nsfont.o in last commit.
14783 * nsfont.m: New file (forgot last commit).
14784
14785 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14786
14787 * callproc.c (set_initial_environment): Initialize
14788 Vprocess_environment under CANNOT_DUMP (fixes crash when
14789 batch-compiling for bootstrap).
14790
14791 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14792 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14793
14794 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14795 CANNOT_DUMP case -- fix crash due to different init order.
14796
14797 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14798
14799 Changes and additions for NeXTstep windowing system (Cocoa and
14800 GNUstep) support.
14801
14802 * Makefile.in:
14803 * config.in: Support defines and build commands for NS port.
14804 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14805 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14806 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14807 windowing.
14808 (struct face): Add synth_ital field.
14809 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14810 (init_display): Initialize Vinitial_window_system to "ns" when so
14811 compiled.
14812 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14813 (display_arg): Use under NS.
14814 (main): Under NS, allocate autorelease pool and handle command line
14815 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14816 (standard_args): Add NS-specific args.
14817 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14818 * font.c (DEFAULT_ENCODING): New variable.
14819 (font_find_for_lface): Use it.
14820 (syms_of_font): Load syms_of_nsfont under NS.
14821 * font.h: Declare nsfont_driver when compiled under NS.
14822 * fontset.c: When compiling under NS, include nsterm.h.
14823 (fontset_from_font): Autoconstruct fontset under NS.
14824 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14825 symbol, document and use it.
14826 (do_switch_frame): When for_deletion under Cocoa, add
14827 Fraise_frame(Qnil).
14828 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14829 (x_get_arg): Allow "yes" and "no" as boolean values.
14830 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14831 Qright under Cocoa.
14832 (focus-follows-mouse): Default to 0 under NS.
14833 * frame.h (enum output_method): Add output_ns.
14834 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14835 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14836 (FRAME_WINDOW_P): NS-specific definition.
14837 * fringe.c (max_used_fringe_bitmap): Make public.
14838 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14839 (getloadavg): Use NeXT code under descendant OS's.
14840 * image.c (includes and header section, x_create_bitmap_from_data)
14841 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14842 (image_background_transparent, x_clear_image_1)
14843 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14844 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14845 (x_to_xcolors, x_from_xcolors, x_disable_image)
14846 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14847 other GUIs, including XPM support using code originally written for
14848 Carbon GUI.
14849 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14850 using NS API.
14851 (image_ascent): Use font metrics macros instead of direct struct field
14852 access.
14853 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14854 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14855 Also, handle NS as GTK for menu bar purposes.
14856 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14857 toolkit where they differ.
14858 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14859 use cachelist, still needed under NS.
14860 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14861 (struct widget_value): Define it here for menu.c.
14862 * keymap.c (includes): Include modifier internals.
14863 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14864 NS.
14865 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14866 support for preferring sequences using certain modifiers, specified by
14867 the FIRSTONLY argument.
14868 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14869 under NS GNUstep implementation.
14870 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14871 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14872 * menu.c: Include nsterm.h under NS.
14873 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14874 (free_menubar_widget_tree_value, update_submenu_strings)
14875 (find_and_call_menu_selection): Treat NS as X and NT.
14876 (find_and_return_menu_selection): New function, used for popup menus.
14877 * nsgui.h:
14878 * nsterm.h:
14879 * nsfns.m:
14880 * nsimage.m:
14881 * nsmenu.m:
14882 * nsselect.m:
14883 * nsterm.m: New files.
14884 * process.c (wait_reading_process_output): Under NS, call ns_select()
14885 instead of plain select().
14886 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14887 beginning of buffer.
14888 * sysselect.h (init_process): Rename when compiling under Cocoa to
14889 avoid name conflict.
14890 * termhooks.h (display_info): Add ns_display_info to union.
14891 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14892 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14893 COCOA environment.
14894 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14895 unexec() signature. (Note, this will dump, but the resulting file
14896 crashes; unexosx is used instead; keeping around for reference and
14897 possible aid in getting dump working under GNUstep.)
14898 * w32gui.h (button_type, widget_value): Remove definitions (now in
14899 keyboard.h).
14900 * window.c: Include nsterm.h when compiling under NS.
14901 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14902 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14903 other GUI windowing systems.
14904 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14905 GTK.
14906 (x_consider_frame_title): Under NS, set icon type and frame
14907 modified-state indicator; use ns_set_name_as_filename() when using
14908 formatted title.
14909 (update_window_cursor): Make public when compiling under NS.
14910 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14911 (hourglass_atimer, Vhourglass_delay
14912 * xfaces.c (header section, init_frame_faces, clear_font_table)
14913 (defined_color, unload_color, x_face_list_fonts)
14914 (prepare_face_for_display): Add NS support parallel to other GUIs.
14915 Emulate GCs like other non-X GUIs.
14916 (split_font_name): Don't lowercase font name under NS.
14917 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14918 under NS.
14919 * s/darwin.h: Add support for compilation under NS.
14920
14921 2008-07-15 Jason Rumney <jasonr@gnu.org>
14922
14923 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14924 (w32_show_hourglass): Rename from show_hourglass.
14925 (w32_hide_hourglass): Rename from hide_hourglass.
14926 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14927 (Vhourglass_delay): Declare extern.
14928 (hourglass_started): Remove.
14929
14930 * xdisp.c (Vhourglass_delay): Remove static.
14931 (hourglass_started, start_hourglass, cancel_hourglass):
14932 Don't include these versions on WINDOWSNT.
14933
14934 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14935
14936 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14937 variables (formerly in xfns.c).
14938 (show_hourglass, hide_hourglass): New prototypes (same).
14939 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14940 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14941 in xfns.c).
14942 (syms_of_xdisp): Declare/initialize display-hourglass,
14943 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14944 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14945 formerly in xfns.c.
14946 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14947 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14948 (start_hourglass, cancel_hourglass): Remove.
14949 (show_hourglass, hide_hourglass): Remove prototypes and static
14950 modifiers.
14951 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14952 hourglass_atimer, hourglass_shown_p declaration/initialization.
14953 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14954 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14955 (start_hourglass, cancel_hourglass): Remove.
14956 (show_hourglass, hide_hourglass): Remove prototypes and static
14957 modifiers.
14958 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14959 hourglass_atimer, hourglass_shown_p declaration/initialization.
14960 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14961 (DEFAULT_HOURGLASS_DELAY): Remove.
14962 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14963 hourglass_shown_p declaration/initialization.
14964
14965 2008-07-14 Jason Rumney <jasonr@gnu.org>
14966
14967 * w32fns.c (w32_get_arg): Remove wrapper function.
14968 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14969 directly.
14970 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14971
14972 2008-07-14 Kenichi Handa <handa@m17n.org>
14973
14974 * xfont.c (xfont_open): Add workaround for X's bug.
14975
14976 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14977
14978 * fontset.c: Include <stdio.h> unconditionally.
14979
14980 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
14981
14982 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14983 for filtering.
14984
14985 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14986
14987 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14988
14989 * m/macppc.h:
14990 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14991
14992 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
14993 (SPECIAL_EMACS_INT):
14994 * m/ia64.h (SPECIAL_EMACS_INT):
14995 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14996 * s/gnu.h (NLIST_STRUCT):
14997 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14998 * s/gnu-linux.h (LINUX):
14999 * s/msdos.h (HAVE_FACES):
15000 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
15001
15002 * systty.h:
15003 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
15004 anymore.
15005
15006 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
15007
15008 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
15009 always defined as int.
15010
15011 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
15012 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
15013 * s/gnu-linux.h (HAVE_WAIT_HEADER):
15014 * s/freebsd.h (HAVE_WAIT_HEADER):
15015 * s/bsd-common.h (HAVE_UNION_WAIT):
15016 * s/aix4-2.h (HAVE_WAIT_HEADER):
15017 * m/mips.h (HAVE_UNION_WAIT):
15018 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
15019 (COFF, static): Do not define, they are undefined later in the file.
15020
15021 * process.c (update_status): Don't use a union.
15022 (status_convert):
15023 (sigchld_handler): Use int instead of WAITTYPE.
15024
15025 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
15026
15027 * indent.c (Fvertical_motion): Restore hscroll before moving to
15028 goal column.
15029
15030 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15031
15032 * lisp.h: Remove left over code.
15033
15034 2008-07-11 Andreas Schwab <schwab@suse.de>
15035
15036 * lisp.h: Fix logic in last change.
15037
15038 * menu.h: New file.
15039 * menu.c: Include it.
15040 * xmenu.c: Likewise.
15041 * Makefile.in: Update dependencies.
15042
15043 2008-07-11 Kenichi Handa <handa@m17n.org>
15044
15045 * fontset.c (fontset_from_font): Cancel the previous change.
15046
15047 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15048
15049 * lisp.h:
15050 * w32heap.c:
15051 * emacs.c:
15052 * alloc.c: Replace all references of NO_UNION_TYPE with
15053 USE_LISP_UNION_TYPE.
15054
15055 * m/xtensa.h (NO_UNION_TYPE):
15056 * m/vax.h (NO_UNION_TYPE):
15057 * m/template.h (NO_UNION_TYPE):
15058 * m/sparc.h (NO_UNION_TYPE):
15059 * m/mips.h (NO_UNION_TYPE):
15060 * m/macppc.h (NO_UNION_TYPE):
15061 * m/m68k.h (NO_UNION_TYPE):
15062 * m/iris4d.h (NO_UNION_TYPE):
15063 * m/intel386.h (NO_UNION_TYPE):
15064 * m/ibms390x.h (NO_UNION_TYPE):
15065 * m/ibms390.h (NO_UNION_TYPE):
15066 * m/ibmrs6000.h (NO_UNION_TYPE):
15067 * m/ia64.h (NO_UNION_TYPE):
15068 * m/hp800.h (NO_UNION_TYPE):
15069 * m/arm.h (NO_UNION_TYPE):
15070 * m/amdx86-64.h (NO_UNION_TYPE):
15071 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
15072 defining it the same.
15073
15074 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
15075
15076 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
15077
15078 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15079
15080 * fileio.c:
15081 * sysdep.c:
15082 * systty.h:
15083 * m/ibmrs6000.h:
15084 * m/iris4d.h:
15085 * s/aix4-2.h:
15086 * s/freebsd.h:
15087 * s/gnu-linux.h:
15088 * s/hpux10-20.h:
15089 * s/hpux11.h:
15090 * s/netbsd.h:
15091 * s/sol2-3.h:
15092 * s/sol2-4.h:
15093 * s/sol2.h:
15094 * s/usg5-4.h:
15095 * s/vms.h: Remove references to unused variables.
15096
15097 2008-07-10 Andreas Schwab <schwab@suse.de>
15098
15099 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
15100 pattern before matching the generic family.
15101
15102 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15103
15104 * unexec.c:
15105 * s/vms.h:
15106 * s/usg5-4-2.h:
15107 * s/sol2-5.h:
15108 * s/freebsd.h:
15109 * s/darwin.h: Remove dead code.
15110
15111 * m/template.h:
15112 * m/sparc.h:
15113 * m/mips.h:
15114 * m/m68k.h:
15115 * m/iris4d.h:
15116 * m/intel386.h:
15117 * m/ibms390x.h:
15118 * m/ibms390.h:
15119 * m/ia64.h:
15120 * m/hp800.h:
15121 * m/arm.h:
15122 * m/amdx86-64.h: Remove dead code and references to unused
15123 and compiler defined symbols.
15124
15125 * unexmips.c:
15126 * unexelf.c: Remove references to desupported systems.
15127
15128 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
15129
15130 * m/powermac.h: Remove boilerplate comments.
15131 (NO_REMAP): Remove unused definition.
15132
15133 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
15134 define them.
15135
15136 2008-07-10 Kenichi Handa <handa@m17n.org>
15137
15138 * xfont.c (xfont_open): Log the reason of failure.
15139
15140 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
15141
15142 * fontset.c (fontset_get_font_group):
15143 * font.c (font_check_otf): Specify argument types.
15144
15145 2008-07-09 Kenichi Handa <handa@m17n.org>
15146
15147 * coding.c (detect_coding_utf_8): Set detect_info->found only when
15148 non-ASCII char is found.
15149
15150 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
15151 (reorder_font_vector): Change the arg preferred_family to font.
15152 Prefer the spec matching with font.
15153 (fontset_get_font_group): New function.
15154 (fontset_find_font): Change the format of an element of a realized
15155 fontset. Use fontset_get_font_group.
15156 (fontset_font): Try the current fontset, the default fontset, the
15157 fallbacks of the current fontset, and the fallbacks of the default
15158 fontset in this order.
15159 (face_for_char): Delete the shortcut to use the current font.
15160 (fontset_from_font): Don't set fonts for Latin in the fontset.
15161
15162 * font.h (font_make_object, font_match_p): Adjust prototypes.
15163
15164 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
15165
15166 * font.c (font_make_object): New arg entity and pixelsize.
15167 (font_check_otf_features, font_check_otf): New functions.
15168 (font_match_p): Check :lang, :script, and :otf properties.
15169
15170 * xfont.c (xfont_open): Adjust it for the change of
15171 font_make_object.
15172 (xfont_text_extents): Fix initial setting of metrics.
15173
15174 * ftfont.c (struct ftfont_info): New member index, delete member
15175 fc_charset_idx. Make the member order compatible with struct
15176 xftfont_info.
15177 (fc_charset_table): Change charset names to registry names.
15178 (ftfont_pattern_entity): Delete the args registry and
15179 fc_charset_idx. Change the value of :font-entity property
15180 to (FONTNAME . INDEX). Always set :registry property to
15181 `iso10646-1'.
15182 (struct ftfont_cache_data): New struct.
15183 (ftfont_lookup_cache): New arg for_face.
15184 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
15185 (ftfont_driver): Set the member otf_capability.
15186 (ftfont_get_charset): Adjust it for the change of
15187 fc_charset_table.
15188 (OTF_TAG_SYM): New macro.
15189 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
15190 for the change of fc_charset_table.
15191 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
15192 ftfont_pattern_entity. Add FC_INDEX to objset.
15193 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
15194 and ftfont_pattern_entity.
15195 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
15196 font_make_object, struct ftfont_info.
15197 (ftfont_has_char): Use ftfont_get_fc_charset.
15198 (ftfont_otf_features, ftfont_otf_capability): New functions.
15199 (ftfont_shape): Use ftfont_get_otf.
15200 (ftfont_text_extents): Fix initial setting of metrics.
15201
15202 * xftfont.c (struct xftfont_info): New member ft_size. Make the
15203 member order compatible with struct ftfont_info.
15204 (xftfont_open): Add FC_CHARSET to the pattern. Set
15205 xftfont_info->ft_size. Don't unlock the face. Check BDF
15206 properties if appropriate.
15207 (xftfont_close): Unlock the face.
15208 (xftfont_anchor_point, xftfont_shape): Deleted.
15209 (syms_of_xftfont): Don't set members anchor_point and shape of
15210 xftfont_driver.
15211
15212 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
15213 font_make_object.
15214
15215 * w32font.c (w32font_open): Adjust it for the change of
15216 font_make_object.
15217 (w32font_open_internal): Don't set properties of font_object here.
15218
15219 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
15220
15221 * macfns.c (x_create_tip_frame):
15222 * w32fns.c (x_create_tip_frame):
15223 * xfns.c (x_create_tip_frame): Pass parameter argument to
15224 face-set-after-frame-default.
15225
15226 * xfaces.c (Finternal_merge_in_global_face): Save merged
15227 attributes for the default face back into the face vector.
15228
15229 2008-07-08 Andreas Schwab <schwab@suse.de>
15230
15231 * fontset.h: Declare fontset_from_font. Don't declare
15232 new_fontset_from_font and fontset_from_font_name.
15233 * xterm.c: Include "fontset.h".
15234 * Makefile.in (xterm.o): Update dependencies.
15235
15236 2008-07-08 Glenn Morris <rgm@gnu.org>
15237
15238 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
15239 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
15240
15241 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
15242
15243 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
15244 (x_set_frame_parameters): Don't bind it.
15245
15246 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
15247
15248 * w32fns.c (map_w32_filename): Declare extern.
15249
15250 2008-07-07 Jason Rumney <jasonr@gnu.org>
15251
15252 * w32term.c (WS_EX_LAYERED): Define if not already.
15253
15254 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
15255
15256 * xfaces.c (set_font_frame_param): Don't try to set the font
15257 parameter if it is still unspecified in the lface.
15258
15259 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
15260
15261 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
15262 face if it didn't already exist.
15263
15264 * xdisp.c (try_window_id): Give up if word-wrapping is on.
15265
15266 2008-07-05 Andreas Schwab <schwab@suse.de>
15267
15268 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
15269
15270 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
15271
15272 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
15273 word-wrapping.
15274 (IT_DISPLAYING_WHITESPACE): New macro.
15275 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
15276 when word-wrapping. Simplify word-wrapping logic. Use correct
15277 pixel positions when saving copies of the iterator.
15278 (display_line): Use proper wrap point if the last character on a
15279 line was preceded by whitespace.
15280
15281 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
15282
15283 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
15284
15285 2008-07-04 Kenichi Handa <handa@m17n.org>
15286
15287 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
15288
15289 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
15290
15291 2008-07-02 Jason Rumney <jasonr@gnu.org>
15292
15293 * xfns.c (syms_of_xfns): Only define x-select-font when both
15294 HAVE_FREETYPE and USE_GTK.
15295
15296 * xdisp.c (next_element_from_display_vector): Move assignment out
15297 of if statement.
15298
15299 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
15300
15301 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
15302
15303 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
15304 (syms_of_fileio): Initialize and export them.
15305 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
15306
15307 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
15308 (Fsystem_move_file_to_trash): New function.
15309 (syms_of_w32fns): Export it to lisp.
15310
15311 2008-07-01 Jason Rumney <jasonr@gnu.org>
15312
15313 * w32font.c (w32font_text_extents): Don't count overhang as part
15314 of width.
15315
15316 2008-06-30 Miles Bader <miles@gnu.org>
15317
15318 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15319 Add `avoid_cursor_p' field.
15320
15321 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15322 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15323 (append_glyph, append_composite_glyph, produce_image_glyph)
15324 (append_stretch_glyph): Initialize avoid_cursor_p.
15325 (get_it_property): Rename from `get_line_height_property'.
15326 (x_produce_glyphs): Use get_it_property.
15327 (handle_line_prefix, push_display_prop): New functions.
15328 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15329 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15330 New variables.
15331 (syms_of_xdisp): Initialize them.
15332
15333 2008-06-30 Kenichi Handa <handa@m17n.org>
15334
15335 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15336 XftDefaultSubstitute (they are called in XftFontMatch).
15337 (xftfont_open): Fix args to ftfont_font_format.
15338
15339 * ftfont.c (fc_charset_table): New member lang.
15340 (ftfont_resolve_generic_family): New arg pattern.
15341 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
15342 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15343 (ftfont_open): Fix args to ftfont_font_format.
15344 (ftfont_font_format): New arg filename.
15345
15346 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
15347
15348 * xfaces.c (Finternal_merge_in_global_face): If default face was
15349 modified, realize it again. Update the font face attribute.
15350
15351 2008-06-29 Jason Rumney <jasonr@gnu.org>
15352
15353 * w32term.c (x_set_frame_alpha): Fix logic.
15354
15355 2008-06-29 Kenichi Handa <handa@m17n.org>
15356
15357 * fontset.c (Finternal_char_font): Return font-object instead of
15358 font-name.
15359
15360 * composite.c (get_composition_id): Fix the width calculation for TAB.
15361
15362 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15363
15364 * indent.c (Fvertical_motion): Properly handle float column arg.
15365
15366 2008-06-28 Jason Rumney <jasonr@gnu.org>
15367
15368 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15369 (pfnSetLayeredWindowAttributes): New function pointer.
15370 (w32_initialize): Initialize it when supported.
15371 (x_set_frame_alpha): New function.
15372
15373 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15374 (w32_frame_parm_handlers): Set alpha handler.
15375
15376 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15377
15378 2008-06-27 Jason Rumney <jasonr@gnu.org>
15379
15380 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15381 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15382 (w32_to_x_charset, x_to_w32_charset)
15383 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15384 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15385 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15386 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15387 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15388 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15389 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15390 (Qw32_charset_unicode): Remove.
15391 (syms_of_w32fns): Update for above changes.
15392
15393 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15394 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15395 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15396 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15397 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15398 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15399 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15400 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15401 (syms_of_w32font): Update for above changes.
15402
15403 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15404
15405 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15406 removed #if.
15407 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15408
15409 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
15410 Eli Zaretskii <eliz@gnu.org>
15411
15412 * makefile.w32-in (LOCAL_FLAGS):
15413 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15414
15415 * sysdep.c (_spawnlp, _getpid):
15416 Declare with explicit _cdecl instead of _CRTAPI1.
15417
15418 * editfns.c (Fget_internal_run_time):
15419 Check for WINDOWSNT with #ifdef, not #if.
15420
15421 2008-06-26 Jason Rumney <jasonr@gnu.org>
15422
15423 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15424
15425 * w32term.c (x_draw_glyph_string_foreground)
15426 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15427 Use FONT_HANDLE macro.
15428 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15429
15430 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15431 (uniscribe_encode_char): Use FONT_HANDLE macro.
15432
15433 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15434 (w32font_text_extents): Use precast w32_font.
15435 (w32font_close): Free cached metrics.
15436 (w32font_open_internal): Allocate space for name on stack.
15437
15438 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
15439
15440 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15441
15442 2008-06-26 Jason Rumney <jasonr@gnu.org>
15443
15444 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15445 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15446
15447 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
15448
15449 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15450
15451 2008-06-26 Jason Rumney <jasonr@gnu.org>
15452
15453 * w32bdf.c, w32bdf.h: Remove obsolete files.
15454
15455 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15456
15457 * w32gui.h: Don't include w32bdf.h.
15458 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15459 Remove obsolete font support.
15460
15461 * w32font.h (struct w32font_info): Remove compat_w32_font.
15462 Add hfont member.
15463 (FONT_COMPAT): Remove obsolete macro.
15464
15465 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15466 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15467 (w32font_open_internal): Remove compat code. Set new hfont member.
15468 (Fx_select_font): Use new hfont member.
15469
15470 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15471 (uniscribe_encode_char): Use new hfont member.
15472
15473 * w32term.c (x_draw_glyph_string_foreground)
15474 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15475 (x_draw_glyph_string): Use metrics in w32font_info.
15476
15477 2008-06-26 Kenichi Handa <handa@m17n.org>
15478
15479 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15480
15481 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15482
15483 * unexnext.c:
15484 * m/ews4800.h:
15485 * m/hp9000s300.h:
15486 * m/ibm370aix.h:
15487 * m/mips-siemens.h:
15488 * m/ncr386.h:
15489 * m/next.h:
15490 * m/pmax.h:
15491 * m/powerpcle.h:
15492 * m/tandem-s2.h:
15493 * s/386bsd.h:
15494 * s/bsd386.h:
15495 * s/bsd4-1.h:
15496 * s/bsd4-2.h:
15497 * s/bsdos2-1.h:
15498 * s/bsdos2.h:
15499 * s/bsdos3.h:
15500 * s/bsdos4.h:
15501 * s/nextstep.h:
15502 * s/ultrix4-3.h:
15503 * s/usg5-0.h:
15504 * s/usg5-2-2.h:
15505 * s/usg5-2.h:
15506 * s/usg5-4-3.h:
15507 * s/ux4800.h:
15508 * s/uxpds.h:
15509 * s/uxpv.h: Remove support for obsolete systems.
15510 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
15511 Remove, insert contents in s/hpux10-20.h.
15512 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15513 Remove, insert contents in s/aix4-2.h.
15514 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15515 * s/bsd4-3.h: Rename to ...
15516 * s/bsd-common.h: ... this.
15517 * data.c:
15518 * doc.c:
15519 * ecrt0.c:
15520 * emacs.c:
15521 * fileio.c:
15522 * floatfns.c:
15523 * keyboard.c:
15524 * mem-limits.h:
15525 * print.c:
15526 * process.c:
15527 * sysdep.c:
15528 * syssignal.h:
15529 * systty.h:
15530 * syswait.h:
15531 * term.c:
15532 * unexec.c:
15533 * unexelf.c:
15534 * unexhp9k800.c:
15535 * m/hp800.h:
15536 * m/ibmrs6000.h:
15537 * m/mips.h:
15538 * m/vax.h:
15539 * s/darwin.h:
15540 * s/freebsd.h:
15541 * s/gnu.h:
15542 * s/ms-w32.h:
15543 * s/msdos.h:
15544 * s/netbsd.h:
15545 * s/template.h: Remove references to obsolete variables.
15546
15547 * Makefile.in: Add dependencies for all unexec files.
15548 (admindir): Remove unused variable.
15549 (UNEXEC_SRC): Remove references.
15550
15551 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
15552
15553 * xfns.c (x_default_font_parameter): If Xft is available, first
15554 try Monospace-12 for the default font.
15555
15556 2008-06-25 Jason Rumney <jasonr@gnu.org>
15557
15558 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15559
15560 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15561
15562 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15563
15564 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15565
15566 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
15567
15568 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15569 <scroll-conservatively>: Fix typo in docstring.
15570
15571 * xselect.c (Fx_send_client_event): Doc fix.
15572
15573 2008-06-25 Kenichi Handa <handa@m17n.org>
15574
15575 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15576
15577 * font.c (font_parse_fcname): Remove unused variables.
15578 (font_sort_entites): Delete the arg SPEC. Caller changed.
15579 Fix for the case of ! best_only.
15580 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15581
15582 * lisp.h (Fstring_to_unibyte): EXFUN it.
15583
15584 * character.h (str_to_unibyte): Extern it.
15585
15586 * character.c (str_to_unibyte): New function.
15587
15588 * fns.c (Fstring_to_unibyte): New function.
15589 (syms_of_fns): Defsubr it.
15590
15591 2008-06-24 Kenichi Handa <handa@m17n.org>
15592
15593 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15594 DPI too.
15595 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15596
15597 2008-06-24 Andreas Schwab <schwab@suse.de>
15598
15599 * Makefile.in (${lispsource}loaddefs.el): Rename from
15600 ../lisp/loaddefs.el.
15601 (bootstrap-clean): Do what distclean does but don't remove
15602 Makefile.
15603 (distclean): Depend on bootstrap-clean and remove Makefile.
15604
15605 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
15606
15607 * buffer.h (struct buffer): New member word_wrap.
15608
15609 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15610 word-wrap.
15611 (init_buffer_once): Initialize them.
15612
15613 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15614 line_wrap enum possessing three possible values.
15615
15616 * termopts.h: Replace truncate_partial_width_windows with
15617 Vtruncate_partial_width_windows.
15618
15619 * dispnew.c (direct_output_for_insert): Avoid direct output when
15620 inserting a space with word wrap on.
15621
15622 * indent.c (compute_motion): Obey integer values of
15623 truncate-partial-width-windows.
15624
15625 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15626 replacing truncate_partial_width_windows.
15627 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15628 truncate only if the window width is below that integer.
15629 (start_display, resize_mini_window, produce_stretch_glyph)
15630 (display_string, move_it_in_display_line_to): Use line_wrap.
15631 (back_to_previous_visible_line_start, reseat_1): Reset
15632 string_from_display_prop_p.
15633 (display_line): Extend default face to end of line when wrapping.
15634
15635 2008-06-24 Kim F. Storm <storm@cua.dk>
15636
15637 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15638 to wrap continued lines at word boundaries.
15639
15640 2008-06-24 Jason Rumney <jasonr@gnu.org>
15641
15642 * font.c (Ffont_face_attributes): Multiply pixel size before point
15643 conversion to avoid multiplying rounding error.
15644
15645 2008-06-23 Jason Rumney <jasonr@gnu.org>
15646
15647 * w32term.c (x_draw_glyph_string_background)
15648 (x_draw_glyph_string): Remove old bdf font code.
15649
15650 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15651
15652 2008-06-22 Kenichi Handa <handa@m17n.org>
15653
15654 * font.c (font_find_for_lface): Try the adstyle specified in
15655 the property of LFACE_FONT of LFACE (if any).
15656
15657 2008-06-21 Seiji Zenitani <zenitani@mac.com>
15658 Ryo Yoshitake <ryo@shiftmode.net>
15659
15660 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15661
15662 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15663
15664 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15665 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15666 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15667 (witness-emacs): Remove.
15668 (lisp, shortlisp): Move loaddefs.el earlier.
15669 (mostlyclean): Forget about witness-emacs.
15670
15671 2008-06-22 Glenn Morris <rgm@gnu.org>
15672
15673 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15674 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15675
15676 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15677
15678 * Makefile.in (PRECOMP): Remove.
15679 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15680 (witness-emacs): Run `compile-first'.
15681 (.el.elc): Use the new compile-onefile target.
15682
15683 2008-06-21 Kenichi Handa <handa@m17n.org>
15684
15685 * xftfont.c (xftfont_open): Handle QCembolden only when
15686 FC_EMBOLDEN is defined.
15687
15688 2008-06-21 Andreas Schwab <schwab@suse.de>
15689
15690 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15691 (.el.elc): Likewise.
15692
15693 2008-06-21 Miles Bader <miles@gnu.org>
15694
15695 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15696 build dir, not the lisp source dir.
15697
15698 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15699
15700 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15701 (bootstrapclean): Remove.
15702 (.el.elc): New rule.
15703 (PRECOMP): New var.
15704 (../lisp/subdirs.el): Remove.
15705 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15706 (witness-emacs): New target.
15707 (mostlyclean): Remove witness-emacs as well.
15708 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15709 Add witness-emacs dependency.
15710
15711 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
15712
15713 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15714 defined by the font.
15715
15716 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15717
15718 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15719 (bootstrap-clean): New target that keeps TAGS around.
15720 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15721 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15722
15723 2008-06-20 Jason Rumney <jasonr@gnu.org>
15724
15725 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15726 Remove obsolete font code.
15727
15728 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15729 to determine language support.
15730
15731 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15732
15733 * sysdep.c (cfsetspeed): New fun extracted from the code.
15734 (cfmakeraw): Move before first use.
15735
15736 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15737
15738 * sysdep.c (cfmakeraw): Provide fallback implementation.
15739 (serial_configure): Provide fallback implementation of cfsetspeed.
15740
15741 2008-06-20 Kenichi Handa <handa@m17n.org>
15742
15743 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15744 the pattern.
15745
15746 * fontset.c (fontset_from_font): Copy font_spec before changing
15747 the elements.
15748
15749 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15750
15751 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15752
15753 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15754 for explicit `font' parameters.
15755
15756 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15757
15758 2008-06-19 Kenichi Handa <handa@m17n.org>
15759
15760 * frame.c: Include <ctype.h>.
15761 (x_set_font_backend): Allow spacing characters in the X resource
15762 for FontBackend.
15763
15764 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15765
15766 * w32fns.c, xfns.c (Qfont_param): New var.
15767 (syms_of_w32fns): Initialize it.
15768 (x_default_font_parameter): Record explicit `font' into
15769 `font-parameter'.
15770
15771 2008-06-18 Kenichi Handa <handa@m17n.org>
15772
15773 * font.c (font_parse_xlfd): Fix previous change.
15774 (font_parse_fcname): Don't use :fc-unknown-spec.
15775 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15776 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15777 (font_add_log): Prepend the driver name to the resulting fonts.
15778
15779 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15780 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15781 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15782
15783 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15784 (QCembolden): New variables.
15785 (syms_of_xftfont): DEFSYM them.
15786 (xftfont_open): Call XftFontMatch. Don't trust the result of
15787 XftTextExtents8 if the pixel_size is less than 5.
15788
15789 2008-06-18 Andreas Schwab <schwab@suse.de>
15790
15791 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15792 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15793
15794 2008-06-18 Jason Rumney <jasonr@gnu.org>
15795
15796 * w32font.c (w32font_list, w32font_match): Add logging.
15797
15798 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15799
15800 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
15801
15802 * font.c (font_parse_fcname): Store divider characters for
15803 unknown-spec list. For known key symbols, intern using correct
15804 symbol name.
15805
15806 2008-06-17 Kenichi Handa <handa@m17n.org>
15807
15808 * xfaces.c (realize_default_face): If the frame is not on window
15809 system, set the fontset of face to nil.
15810
15811 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15812
15813 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15814
15815 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
15816
15817 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15818 (build_font_name_from_vector): Delete externs.
15819
15820 * xfaces.c (struct font_name): Don't declare.
15821
15822 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15823
15824 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15825
15826 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
15827
15828 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15829
15830 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
15831
15832 * font.c (Ffont_spec): Fix usage in docstring.
15833 (Ffont_face_attributes): Doc fix.
15834
15835 2008-06-16 Andreas Schwab <schwab@suse.de>
15836
15837 * font.c (Ffont_face_attributes): Fix definition.
15838
15839 2008-06-16 Jason Rumney <jasonr@gnu.org>
15840
15841 * font.h (font_style_symbolic_from_value): Remove.
15842
15843 * font.c (font_style_symbolic_from_value): Remove.
15844 (font_style_symbolic): Revert to pre 2008-06-13 version.
15845
15846 * w32font.c (w32_to_fc_weight): New function.
15847 (w32font_full_name, logfont_to_fcname): Use it.
15848
15849 2008-06-16 Kenichi Handa <handa@m17n.org>
15850
15851 * font.c (font_check_object): Delete it.
15852 (font_clear_cache): Check if a font-object is alive.
15853 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15854 font-object to nil.
15855 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15856 (font_at): Don't call font_check_object.
15857 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15858
15859 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15860
15861 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15862
15863 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
15864
15865 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15866
15867 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
15868
15869 * font.c (font_parse_fcname): Only one decimal point.
15870 (font_unparse_fcname): Handle data in family and foundry indices
15871 as symbols, not strings.
15872 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15873
15874 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15875
15876 * font.h (font_unparse_gtkname): Add prototype.
15877
15878 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15879
15880 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15881
15882 2008-06-15 Andreas Schwab <schwab@suse.de>
15883
15884 * font.c (font_update_drivers): Fix crash when no drivers match.
15885
15886 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15887
15888 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15889 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15890
15891 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15892
15893 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15894
15895 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15896
15897 * process.c (Fserial_process_configure, Fprocess_send_eof):
15898 Use EQ to compare Lisp_Objects.
15899
15900 2008-06-13 Jason Rumney <jasonr@gnu.org>
15901
15902 * w32fns.c (Fw32_select_font): Remove old font API function.
15903
15904 * w32font.c (logfont_to_fcname): New function.
15905 (Fx_select_font): New font dialog function compatible with
15906 GTK/fontconfig version.
15907
15908 * font.c (font_style_symbolic_from_value): New function.
15909 (font_style_symbolic): Use it.
15910
15911 * font.h (font_style_symbolic_from_value): Declare new function.
15912
15913 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
15914
15915 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15916 <font-width-table>: Fix typos in docstrings.
15917
15918 2008-06-13 Daniel Engeler <engeler@gmail.com>
15919
15920 These changes add serial port access.
15921 * process.c: Add HAVE_SERIAL.
15922 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15923 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15924 (list_processes_1, select_wrapper, Fstop_process)
15925 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15926 (status_notify): Modify to handle serial processes.
15927 [HAVE_SERIAL] (Fserial_process_configure)
15928 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15929 New functions.
15930 * process.h (struct Lisp_Process): Add `type'.
15931 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15932 New functions.
15933 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15934 serial ports.
15935 (serial_open, serial_configure): New functions.
15936 * w32.h: Add FILE_SERIAL.
15937 (struct _child_process): Add ovl_read, ovl_write.
15938
15939 2008-06-13 Kenichi Handa <handa@m17n.org>
15940
15941 * dispextern.h (enum lface_attribute_index): New member
15942 LFACE_FOUNDRY_INDEX.
15943
15944 * font.c (font_score): Delete arg alternate_families. Check only
15945 weight, slant, width, and size. Ignore the difference of alias
15946 style symbols.
15947 (font_sort_entites): Adjust for the above change. Reflect the
15948 order of font-driver to scores.
15949 (font_list_entities): Don't check alternate_familes here.
15950 (font_clear_prop): Handle foundry.
15951 (font_update_lface): Don't parse "foundry-family" form here.
15952 Handle FONT_FOUNDRY_INDEX.
15953 (font_find_for_lface): Likewise. Handle alternate families here.
15954 If registry is nil, try iso8859-1 and ascii-0.
15955 (font_open_for_lface): Pay attention to size in ENTITY.
15956 (font_open_by_name): Simplify by calling font_load_for_lface.
15957 (free_font_driver_list): Delete it.
15958 (font_update_drivers): Preserve the order of backends.
15959 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15960 of font_score and font_sort_entites.
15961 (font_update_sort_order): Likewise.
15962
15963 * xfaces.c (LFACE_FOUNDRY): New macro.
15964 (check_lface_attrs): Check foundry.
15965 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15966 (merge_face_vectors): Check foundry.
15967 (merge_face_ref): Likewise.
15968 (Finternal_set_lisp_face_attribute): Likewise.
15969 (x_update_menu_appearance): Likewise.
15970 (Finternal_get_lisp_face_attribute): Likewise.
15971 (lface_hash): Likewise.
15972 (lface_same_font_attributes_p): Likewise.
15973 (x_supports_face_attributes_p): Likewise.
15974 (tty_supports_face_attributes_p): Likewise.
15975 (Finternal_set_alternative_font_family_alist): Intern strings.
15976 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15977 (realize_default_face): Set LFACE_FOUNDRY (lface).
15978
15979 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15980 font-driver at first.
15981
15982 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15983
15984 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15985
15986 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15987
15988 2008-06-12 Jim Meyering <meyering@redhat.com>
15989
15990 Make unexec_free handle NULL the same way free does.
15991 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15992
15993 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15994
15995 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15996 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15997 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15998 (WEAK_ALIAS): Simplify.
15999 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
16000 when searching a unibyte buffer.
16001
16002 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
16003
16004 * xfns.c (Fx_select_font): Rename from x-font-dialog.
16005
16006 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
16007
16008 * w32font.c: Include ctype.h.
16009
16010 2008-06-11 Jason Rumney <jasonr@gnu.org>
16011
16012 * w32font.c (w32font_encode_char): Detect missing glyphs that are
16013 misreported as space.
16014 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
16015 as aliases for registry iso10646-1.
16016
16017 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
16018
16019 * buffer.c (clone_per_buffer_values): Skip `name'.
16020
16021 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
16022
16023 * font.c (font_parse_fcname): Fix last change; accept decimal
16024 points in font size.
16025
16026 2008-06-10 Jason Rumney <jasonr@gnu.org>
16027
16028 * w32uniscribe.c (add_opentype_font_name_to_list):
16029 Skip non unicode fonts.
16030
16031 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
16032
16033 * xfns.c (Fx_font_dialog): New function.
16034
16035 * gtkutil.c (xg_dialog_response_cb): Rename from
16036 xg_file_response_callback.
16037 (pop_down_dialog): Rename from pop_down_file_dialog.
16038 (xg_get_file_name): Callers changed.
16039 (xg_get_font_name): New function.
16040
16041 * gtkutil.h (xg_get_font_name): Insert prototype.
16042
16043 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16044
16045 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
16046 x_underline_minimum_display_offset.
16047 (syms_of_xdisp): Declare it here rather than in xterm.c.
16048 * dispextern.h (underline_minimum_offset): Declare it.
16049 * w32term.c (x_draw_glyph_string): Use it.
16050 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
16051 (syms_of_xterm): Don't declare it any more.
16052 (x_draw_glyph_string): Adjust to the new name.
16053
16054 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
16055
16056 * xterm.c (x_underline_minimum_display_offset): New var.
16057 (x_draw_glyph_string): Use it.
16058 (syms_of_xterm): Declare it.
16059
16060 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
16061
16062 * font.c (font_parse_fcname): Accept GTK-style font names too.
16063
16064 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16065
16066 * dired.c (file_name_completion): Don't return t if the match is exact
16067 but with different capitalization.
16068 * minibuf.c (Ftry_completion): Simplify.
16069
16070 * window.c (Vwindow_point_insertion_type): New var.
16071 (set_window_buffer): Use it.
16072 (syms_of_window): Init and export it to Lisp.
16073
16074 2008-06-10 Kenichi Handa <handa@m17n.org>
16075
16076 * font.h (font_intern_prop): Prototype adjusted.
16077
16078 * font.c (font_intern_prop): New arg force_symbol.
16079 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
16080 Adjust for the change of font_intern_prop.
16081
16082 * ftfont.c (ftfont_pattern_entity):
16083 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
16084 (w32_registry):
16085 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
16086 the change of font_intern_prop.
16087
16088 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
16089
16090 * w32menu.c (digest_single_submenu): Declare extern.
16091
16092 2008-06-09 Jason Rumney <jasonr@gnu.org>
16093
16094 * w32term.c (x_make_frame_visible): Use alternate restore flags.
16095
16096 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
16097 (parse_single_submenu): Remove.
16098 (digest_single_submenu): Remove.
16099 (syms_of_w32menu): Don't initialise variables that have moved
16100 to menu.c.
16101 (set_frame_menubar): Sync with version in xmenu.c.
16102 (w32_menu_show): Sync with xmenu_show in xmenu.c.
16103
16104 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
16105 Make static again.
16106
16107 2008-06-09 Jason Rumney <jasonr@gnu.org>
16108
16109 Changes to w32 files related to the move of common menu code
16110 to menu.c on 2008-06-08 by Chong Yidong.
16111
16112 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
16113 defs to w32gui.h.
16114 (single_keymap_panes, push_menu_item, push_menu_pane):
16115 Make globally visible.
16116
16117 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
16118 (local_free, malloc_widget_value, free_widget_value)
16119 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
16120 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
16121 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
16122 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
16123 (menu_items, menu_items_allocated, menu_items_used)
16124 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
16125 (init_menu_items, finish_menu_items, discard_menu_items)
16126 (grow_menu_items, push_submenu_start, push_submenu_end)
16127 (push_left_right_boundary, push_menu_pane, push_menu_item)
16128 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
16129 (free_menubar_widget_tree_value, parse_single_submenu)
16130 (update_submenu_strings): Remove functions.
16131 (xmalloc_widget_value): Remove and declare extern.
16132
16133 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
16134 (OBJ1): Build it.
16135
16136 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
16137 (local_heap, local_alloc, local_free, malloc_widget_value)
16138 (free_widget_value): Define here.
16139
16140 2008-06-09 Kenichi Handa <handa@m17n.org>
16141
16142 * font.h (Qascii_0): Extern it.
16143
16144 * font.c (Qascii_0): New variable.
16145 (syms_of_font): DEFSYM it.
16146 (font_open_by_name): If the registry "iso8859-1" fails, try also
16147 "ascii-0".
16148
16149 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
16150
16151 2008-06-08 Kenichi Handa <handa@m17n.org>
16152
16153 * .gdbinit (xfont): New command.
16154
16155 2008-06-08 Andreas Schwab <schwab@suse.de>
16156
16157 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
16158 * Makefile.in (menu.o): Update dependencies.
16159
16160 * Makefile.in (obj): Always add menu.o.
16161 * emacs.c (main): Always call syms_of_menu.
16162 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
16163
16164 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
16165
16166 * Makefile.in: Compile menu.c.
16167
16168 * lisp.h: Declare syms_of_menu.
16169
16170 * emacs.c (main): Call syms_of_menu.
16171
16172 * keyboard.h: Relocate platform-independent menu definitions from
16173 xmenu.c.
16174
16175 * menu.c: New file. Relocate platform-independent menu
16176 definitions from xmenu.c. Suggested by Adrian Robert.
16177
16178 * xmenu.c: Remove platform-independent menu definitions.
16179 (menu_items, menu_items_inuse, menu_items_allocated)
16180 (menu_items_used, menu_items_n_panes)
16181 (menu_items_submenu_depth): Move to keyboard.h.
16182 (init_menu_items, finish_menu_items, unuse_menu_items)
16183 (discard_menu_items, restore_menu_items, save_menu_items)
16184 (grow_menu_items, push_submenu_start, push_submenu_end)
16185 (push_left_right_boundary, push_menu_pane, push_menu_item)
16186 (keymap_panes, single_keymap_panes, single_menu_item)
16187 (list_of_panes, list_of_items, find_and_call_menu_selection)
16188 (xmalloc_widget_value, free_menubar_widget_value_tree)
16189 (parse_single_submenu, digest_single_submenu)
16190 (update_submenu_strings): Move to menu.c.
16191
16192 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
16193
16194 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
16195
16196 2008-06-06 Miles Bader <miles@gnu.org>
16197
16198 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
16199 face, not frame default.
16200
16201 2008-06-05 Martin Rudalics <rudalics@gmx.at>
16202
16203 * window.c (pop_up_windows, pop_up_frames)
16204 (display_buffer_reuse_frames, Vpop_up_frame_function)
16205 (Vdisplay_buffer_function, Veven_window_heights)
16206 (Vspecial_display_buffer_names, Vspecial_display_regexps)
16207 (Vspecial_display_function, Vsame_window_buffer_names)
16208 (Vsame_window_regexps, split_height_threshold)
16209 (Vsplit_window_preferred_function): Move those vars to window.el.
16210 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
16211 (Fdisplay_buffer): Move those functions to window.el.
16212 (syms_of_window): Remove corresponding declarations.
16213 (display_buffer): New function.
16214 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
16215 * dispnew.c (Flast_nonminibuf_frame): New function.
16216 * buffer.c (Fpop_to_buffer): Move to window.el.
16217
16218 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16219
16220 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
16221
16222 2008-06-05 Kenichi Handa <handa@m17n.org>
16223
16224 * coding.c (detect_coding): Fix previous change.
16225 (detect_coding_system): Likewise.
16226
16227 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16228
16229 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
16230
16231 * keymap.c (Vminibuffer_local_filename_must_match_map):
16232 Rename from Vminibuffer_local_must_match_filename_map.
16233 (syms_of_keymap):
16234 * minibuf.c (Fcompleting_read): Adjust accordingly.
16235 * commands.h: Rename declaration as well.
16236
16237 2008-06-05 Kenichi Handa <handa@m17n.org>
16238
16239 * font.c (Ffont_spec): Don't use font_parse_family_registry for
16240 family name.
16241 (Ffont_put): Likewise.
16242
16243 * fontset.c (fontset_find_font): Call font_open_for_lface with the
16244 current font-spec.
16245
16246 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
16247 is unspecified.
16248
16249 * xfaces.c (realize_x_face): If the font-related face attributes
16250 are the same as those of default face, realize a new fontset from
16251 default->fontset.
16252 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
16253
16254 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16255
16256 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
16257 (move_it_in_display_line): New wrapper.
16258
16259 * window.c (window_scroll_pixel_based_preserve_x)
16260 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
16261 (window_scroll_pixel_based, window_scroll_line_based):
16262 Use them to preserve column positions.
16263 (syms_of_window): Initialize them.
16264
16265 * indent.c (Fvertical_motion): Extend first arg to allow passing an
16266 (HPOS . VPOS) pair.
16267
16268 * dispextern.h (move_it_in_display_line): Declare.
16269
16270 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
16271
16272 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
16273 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
16274 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
16275
16276 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
16277
16278 * window.c (Fset_window_parameter): Doc fix.
16279 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
16280
16281 2008-06-04 Joakim Verona <joakim@verona.se>
16282
16283 * window.h (struct window): Add new member window_parameters.
16284
16285 * window.c (Fwindow_parameters, Fwindow_parameter)
16286 (Fset_window_parameter): New defuns.
16287 (syms_of_window): Defsubr the new defuns.
16288 (make_window): Initialize window_parameters to nil.
16289
16290 2008-06-04 John Paul Wallington <jpw@pobox.com>
16291
16292 * eval.c (Fdefmacro): Doc fix.
16293
16294 2008-06-04 Kenichi Handa <handa@m17n.org>
16295
16296 * coding.c (detect_coding): Fix handling of coding->head_ascii.
16297 Be sure to call setup_coding_system when we find a proper coding system.
16298 (detect_coding_system): Fix handling of coding->head_ascii.
16299
16300 2008-06-03 Andreas Schwab <schwab@suse.de>
16301
16302 * font.c (font_prop_validate_spacing): Fix last change.
16303
16304 2008-06-03 Kenichi Handa <handa@m17n.org>
16305
16306 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
16307 (font_parse_fcname): Fix handling of unknown key.
16308
16309 * xfont.c (xfont_list): Try an alias.
16310
16311 * charset.c (char_charset): Return NULL if the arg charset_list is
16312 specified and C doesn't belong to any of them.
16313
16314 2008-06-02 Chip Coldwell <coldwell@redhat.com>
16315
16316 * font.c (font_pixel_size): Don't take cdr of an integer.
16317
16318 2008-06-02 Jim Meyering <meyering@redhat.com>
16319
16320 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16321 * alloc.c (xfree): Return right away for a NULL arg.
16322 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16323 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16324 * mac.c (create_apple_event_from_event_ref): Likewise.
16325 (create_apple_event_from_drag_ref, cfstring_create_normalized):
16326 Likewise.
16327 * doprnt.c (doprnt1): Likewise.
16328 * frame.c (frame): Likewise.
16329 * keyboard.c (wipe_kboard): Likewise.
16330 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16331 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16332 * term.c (tty_default_color_capabilities, maybe_fatal)
16333 (delete_tty): Likewise.
16334 * w16select.c (string): Likewise.
16335 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16336 * w32bdf.c (w32_free_bdf_font): Likewise.
16337 * w32fns.c (w32_unload_font): Likewise.
16338 * w32font.c (w32font_close): Likewise.
16339 * window.c (size_window): Likewise.
16340 * xselect.c (receive_incremental_selection): Likewise.
16341 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16342 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16343 * w32.c (stat): Likewise.
16344
16345 Remove useless if-before-free tests.
16346 * editfns.c (Fset_time_zone_rule): Likewise.
16347 * lread.c (nosuffix): Likewise.
16348 * ralloc.c (get_bloc): Likewise.
16349 * regex.c (reg_free): Likewise.
16350 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16351 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16352 * xsmfns.c (smc_save_yourself_CB): Likewise.
16353
16354 2008-06-02 Kenichi Handa <handa@m17n.org>
16355
16356 * font.c (font_find_for_lface): Handle float font size.
16357 (font_open_for_lface): Likewise.
16358
16359 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16360 comparing the properties.
16361
16362 2008-06-01 Jason Rumney <jasonr@gnu.org>
16363
16364 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16365 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16366 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16367 Don't add empty script list.
16368 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16369
16370 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16371
16372 * Makefile.in (dot, dotdot): Remove, update users.
16373 ".." has been used elsewhere in the file for a long time.
16374 (LIBXT_STATIC): Remove conditional based on unused variable.
16375
16376 2008-06-01 Miles Bader <miles@gnu.org>
16377
16378 * xfaces.c (Vface_remapping_alist): New variable.
16379 (syms_of_xfaces): Initialize it.
16380 (enum named_merge_point_kind): New type.
16381 (struct named_merge_point): Add `named_merge_point_kind' field.
16382 (push_named_merge_point): Make cycle detection respect different
16383 named-merge-point kinds.
16384 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16385 Remove face-name alias resolution.
16386 (lface_from_face_name): New definition using
16387 `lface_from_face_name_no_resolve'.
16388 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16389 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16390 (get_lface_attributes): New definition that layers face-remapping on
16391 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16392 (lookup_basic_face): New function.
16393 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16394 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16395 `get_lface_attributes'.
16396 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16397 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16398 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16399
16400 * xdisp.c (init_iterator): Pass base_face_id through
16401 `lookup_basic_face' when we actually use it as a face-id.
16402 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16403 DEFAULT_FACE_ID.
16404
16405 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16406 lookup the initial face-id.
16407
16408 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16409
16410 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
16411
16412 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16413 (Fremove_text_properties): Fix typos in docstrings.
16414
16415 2008-05-31 Kenichi Handa <handa@m17n.org>
16416
16417 * font.c (font_list_entities): Fix the car part of data to be
16418 stored in the cache.
16419
16420 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16421
16422 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16423
16424 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16425 Add a `test' argument so another predicate than `equal' can be used.
16426 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16427 (map_char_table): Remove unused vars `c' and `i'.
16428 * lisp.h (Foptimize_char_table): Adjust declaration.
16429 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16430
16431 2008-05-30 Kenichi Handa <handa@m17n.org>
16432
16433 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16434 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16435 defined.
16436
16437 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16438
16439 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16440 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16441 frame-local settings for the same variable.
16442
16443 2008-05-30 Kenichi Handa <handa@m17n.org>
16444
16445 * fontset.c (Ffont_info): Move to font.c.
16446 (syms_of_fontset): Delete defsubr of Sfont_info.
16447
16448 * font.c (font_style_to_value, font_score): Delete casting of the
16449 args to xstcasecmp.
16450 (register_font_driver): Increment num_font_drivers only when
16451 registering the driver globally.
16452 (Ffont_info): Move from fontset.c. Handle a font object too.
16453 (syms_of_font): Defsubr Sfont_info.
16454
16455 2008-05-29 Kenichi Handa <handa@m17n.org>
16456
16457 * coding.h (enum define_coding_utf8_arg_index): New enum.
16458 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16459 coding_attr_utf_bom.
16460 (enum utf_bom_type): Rename from utf_16_bom_type.
16461 (struct utf_16_spec): Adjust for the above change.
16462 (struct coding_system): Add utf_8_bom in `spec' union.
16463
16464 * coding.c (CODING_UTF_8_BOM): New macro.
16465 (enum coding_category): Delete coding_category_utf_8, add
16466 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16467 coding_category_utf_8_sig.
16468 (CATEGORY_MASK_UTF_8): Delete it.
16469 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16470 (CATEGORY_MASK_UTF_8_SIG): New macros.
16471 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16472 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16473 CATEGORY_MASK_UTF_8_SIG.
16474 (CATEGORY_MASK_UTF_8): New macro.
16475 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16476 (detect_coding_utf_8): Check BOM.
16477 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16478 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16479 (encode_coding_utf_16): Likewise.
16480 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16481 (detect_coding, detect_coding_system): Handle utf-8-auto.
16482 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16483 (syms_of_coding): Fix setting up of Vcoding_category_table.
16484
16485 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16486
16487 * process.c (Faccept_process_output): If `millisec' is non-nil,
16488 `seconds' default to 0.
16489 (wait_reading_process_output): Also return non-nil if we read output
16490 from a non-running process.
16491
16492 2008-05-29 Jason Rumney <jasonr@gnu.org>
16493
16494 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16495 `raster' specified.
16496 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16497 in the uniscribe backend, but disallow any font that has no
16498 unicode subrange support.
16499
16500 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
16501
16502 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16503 Fix typos in docstrings.
16504
16505 2008-05-29 Kenichi Handa <handa@m17n.org>
16506
16507 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16508 (Fx_family_fonts): Set frame correctly.
16509
16510 2008-05-28 Jason Rumney <jasonr@gnu.org>
16511
16512 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16513
16514 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16515
16516 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16517 calling build_annotations.
16518
16519 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
16520
16521 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16522 (Fencode_coding_string):
16523 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16524 <latin-extra-code-table>: Fix typos in docstrings.
16525 (syms_of_coding) <coding-system-alist>: Doc fix.
16526 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16527
16528 2008-05-28 Kenichi Handa <handa@m17n.org>
16529
16530 * fontset.c (Ffont_info): Don't call font_close_object.
16531
16532 * font.c (font_parse_family_registry): Use Ffont_put to validate
16533 foundry and family.
16534 (font_delete_unmatched): Don't check spacing.
16535 (font_list_entities): Add spacing to the spec to list fonts.
16536
16537 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16538 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16539
16540 * coding.c (encode_coding_raw_text): Fix previous change.
16541 (encode_coding_object): When the dst_object is a buffer and is
16542 different from src_object, move gap to PT.
16543
16544 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
16545
16546 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16547
16548 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16549
16550 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16551 all branches. Compute it differently.
16552
16553 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16554
16555 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
16556
16557 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16558 into "else if () ... else ...".
16559
16560 2008-05-27 Jason Rumney <jasonr@gnu.org>
16561
16562 * w32font.c (w32font_open_internal): Determine if glyph indices
16563 are likely to work here.
16564
16565 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
16566
16567 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16568 draw overlap glyphs with appropriate highlighting.
16569
16570 2008-05-27 Kenichi Handa <handa@m17n.org>
16571
16572 * xfont.c (xfont_open): Fix calculation of font->average_width.
16573
16574 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16575
16576 * casefiddle.c (casify_object): Try to guess better whether the
16577 argument is a byte or a char.
16578
16579 2008-05-26 Andreas Schwab <schwab@suse.de>
16580
16581 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16582 Always send multiples of format size.
16583
16584 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16585
16586 2008-05-26 Jason Rumney <jasonr@gnu.org>
16587
16588 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16589 (compute_metrics): Don't set failure if we just cleared the cache.
16590 (w32_weight_table): Remove unused variable.
16591 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16592 backwards compatibility.
16593
16594 2008-05-25 Kenichi Handa <handa@m17n.org>
16595
16596 * w32term.c (x_draw_glyph_string):
16597 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16598
16599 * xfaces.c: Delete unused function prototypes.
16600 (xstrlwr, font_frame): Delete them.
16601 (clear_face_cache): Delete unused variable.
16602
16603 * xftfont.c (xftfont_open): Delete unused variable.
16604 If underline_thickness is not 1, adjust underline_position.
16605
16606 * ftxfont.c (ftxfont_open): Delete unused variable.
16607
16608 * fontset.c (face_for_char): Optimize for the case of no charset
16609 property.
16610
16611 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16612 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16613 (otf_open, font_otf_capability, generate_otf_features)
16614 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16615 Comment out by surrounding "#if 0" and "#endif" for the moment.
16616 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16617 (syms_of_font): Codes for accessing above commented out.
16618
16619 2008-05-24 Eli Zaretskii <eliz@gnu.org>
16620
16621 * w32proc.c: Include dispextern.h.
16622
16623 * w32.c: Include dispextern.h.
16624
16625 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
16626
16627 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16628 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16629 Fix typos in docstrings.
16630
16631 2008-05-23 Jason Rumney <jasonr@gnu.org>
16632
16633 * xsmfns.c: Remove includes that are already included by config.h.
16634
16635 2008-05-23 Kenichi Handa <handa@m17n.org>
16636
16637 * charset.c (Qemacs, charset_emacs): New variables.
16638 (char_charset): Fix for non-Unicode characters.
16639 (syms_of_charset): Define charset_emacs.
16640
16641 * w32term.c (x_draw_glyph_string): Be sure to update
16642 s->underline_thickness and s->underline_position. Be sure to draw
16643 underline within the current line area.
16644
16645 * xterm.c (x_draw_glyph_string): Be sure to update
16646 s->underline_thickness and s->underline_position. Be sure to draw
16647 underline within the current line area.
16648
16649 * fontset.c: Delete unused variables and add casting for char *
16650 throughout the file.
16651 (fontset_font): Try the fallback fonts of the current fontset
16652 before consulting the default fontset.
16653
16654 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16655
16656 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16657
16658 2008-05-22 Jason Rumney <jasonr@gnu.org>
16659
16660 * font.c: Don't include strings.h.
16661
16662 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16663
16664 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16665 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16666 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16667 to call xstrcasecmp.
16668
16669 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16670
16671 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16672
16673 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16674
16675 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16676
16677 2008-05-22 Kenichi Handa <handa@m17n.org>
16678
16679 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16680
16681 * font.c (font_prop_validate_style): Adjust for the format
16682 change of font_style_table.
16683
16684 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16685 two args.
16686
16687 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16688 two args.
16689
16690 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16691
16692 * minibuf.c (keys_of_minibuf): Delete.
16693 * lisp.h (keys_of_minibuf): Delete.
16694 * emacs.c (main): Don't call keys_of_minibuf.
16695
16696 2008-05-22 Kenichi Handa <handa@m17n.org>
16697
16698 * ftfont.c (ftfont_resolve_generic_family): Rename from
16699 ftfont_list_generic_family. Return a single family for each
16700 generic family.
16701 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16702 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16703 Call font_add_log.
16704 (ftfont_match): Call font_add_log.
16705
16706 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16707 (FONT_DEBUG): Define it.
16708 (font_add_log): Extern it.
16709 (font_assert): Rename from xassert.
16710
16711 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16712 (xfont_list_family): Call font_add_log.
16713 (xfont_match): Likewise.
16714 (memq_no_quit): Delete.
16715
16716 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16717 call of Ffont_xlfd_name.
16718
16719 * xfaces.c (struct table_entry, slant_table, weight_table)
16720 (swidth_table): Move to font.c.
16721
16722 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16723 xassert are changed to font_assert. Delete many unused variables.
16724 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16725 New variables.
16726 (struct table_entry): Move from xfaces.c and modified.
16727 (weight_table, slant_table, width_table): Move from xfaces.c and
16728 contents adjusted for the change of struct table_entry.
16729 (font_style_to_value, font_style_symbolic): Adjust for the
16730 format change of font_style_table.
16731 (font_parse_family_registry): Don't overwrite existing foundry and
16732 family of font_spec.
16733 (font_score): Fix calculation of diff for sizes.
16734 (font_sort_entites): Call font_add_log.
16735 (font_delete_unmatched): Return a newly created list.
16736 (font_list_entities): Fix previous change. Call font_add_log.
16737 (font_matching_entity, font_open_entity, font_close_entity):
16738 Call font_add_log.
16739 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16740 (Finternal_set_font_style_table): Delete.
16741 (BUILD_STYLE_TABLE): New macro.
16742 (build_style_table): New function.
16743 (Vfont_log, font_log_env_checked): New variables.
16744 (font_add_log): New function.
16745 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16746 Declare Lisp variables "font-weight-table", "font-slant-table",
16747 "font-width-table", and "font-log". Initialize font_style_table.
16748
16749 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16750
16751 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16752
16753 2008-05-21 Seiji Zenitani <zenitani@mac.com>
16754 Ryo Yoshitake <ryo@shiftmode.net>
16755
16756 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16757 (Vframe_alpha_lower_limit): New variable.
16758 (x_set_alpha): New function.
16759
16760 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16761
16762 * xfns.c (x-create-frame, Qalpha):
16763 Initialize the frame parameter `alpha'.
16764 * xterm.c (OPAQUE, OPACITY): New.
16765 (x_set_frame_alpha): New function.
16766 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16767
16768 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16769 * w32fns.c (w32_frame_parm_handlers): Likewise.
16770
16771 2008-05-20 Jason Rumney <jasonr@gnu.org>
16772
16773 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16774 truetype fonts to opentype list.
16775
16776 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
16777
16778 * fontset.c (Ffontset_info): Doc fix.
16779 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16780 <ignore-relative-composition>: Fix typos in docstrings.
16781
16782 * font.c (syms-of-font) <font-encoding-alist>:
16783 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16784 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16785 (Ffont_otf_alternates): Doc fixes.
16786
16787 2008-05-20 Kenichi Handa <handa@m17n.org>
16788
16789 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16790 font.h through out the file.
16791 (FONT_DRIVERS): Rename from FONTOBJ.
16792 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16793 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16794
16795 * emacs.c (main): Call syms_of_font unconditionally.
16796
16797 * font.h (find_font_encoding): Extern it.
16798
16799 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16800 fontset.c.
16801 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
16802 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16803 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16804 only when HAVE_WINDOW_SYSTEM is defined.
16805 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16806 when HAVE_WINDOW_SYSTEM is defined.
16807
16808 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16809 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16810
16811 * xfaces.c: Include font.h unconditionally.
16812 (merge_face_ref, merge_face_vectors)
16813 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16814
16815 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16816
16817 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16818 indirect_variable.
16819 * eval.c (lisp_indirect_variable): New fun.
16820 (Fuser_variable_p): Use it.
16821
16822 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16823
16824 * lisp.h (indirect_variable):
16825 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16826 Use Lisp_Symbol pointers rather than Lisp_Object.
16827 Adjust callers.
16828 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16829 To this end, change calling-convention.
16830
16831 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16832 if some non-hidden buffers are selected by string&pred.
16833
16834 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
16835
16836 * process.c (wait_reading_process_output): Always check status
16837 when in batch mode.
16838
16839 2008-05-19 Kenichi Handa <handa@m17n.org>
16840
16841 * font.c (font_list_entities): Fix handling of cache.
16842 (font_matching_entity): Likewise.
16843
16844 * ftfont.c (cs_iso8859_1): Delete.
16845 (ft_face_cache): New variable.
16846 (struct ftfont_info): New member fc_charset_idx.
16847 (ftfont_build_basic_charsets): Delete.
16848 (fc_charset_table): New variable.
16849 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16850 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16851 Callers changed.
16852 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16853 (ftfont_spec_pattern): New argument fc_charset_idx.
16854 Check registry more rigidly. Change callers.
16855 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16856 change of :font-entity property of the font.
16857
16858 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16859 property of the font.
16860
16861 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
16862
16863 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16864 (Funencodable_char_position, Fcheck_coding_systems_region)
16865 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16866 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16867 (Ffind_operation_coding_system, Fset_coding_system_priority)
16868 (Fcoding_system_eol_type): Doc fixes.
16869
16870 2008-05-17 Glenn Morris <rgm@gnu.org>
16871
16872 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16873
16874 2008-05-16 Eli Zaretskii <eliz@gnu.org>
16875
16876 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16877 and st_gid.
16878
16879 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16880 HAVE_WINDOW_SYSTEM is not defined.
16881
16882 * xfaces.c (merge_face_ref, merge_face_vectors)
16883 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16884 HAVE_WINDOW_SYSTEM is defined.
16885 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16886
16887 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16888
16889 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16890
16891 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16892
16893 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16894
16895 2008-05-15 Kenichi Handa <handa@m17n.org>
16896
16897 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16898 preference.
16899
16900 2008-05-15 Glenn Morris <rgm@gnu.org>
16901
16902 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16903
16904 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
16905
16906 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16907 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16908
16909 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16910
16911 2008-05-15 Kenichi Handa <handa@m17n.org>
16912
16913 * ftfont.c (ftfont_list): Downcase family name to check generic
16914 families.
16915
16916 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16917 font-spec for QCfont value.
16918
16919 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16920 buffer. Check the return value of it.
16921
16922 2008-05-14 Jason Rumney <jasonr@gnu.org>
16923
16924 * w32term.c (w32_get_glyph_overhangs): Remove.
16925 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16926
16927 2008-05-14 Kenichi Handa <handa@m17n.org>
16928
16929 * font.c (font_prop_validate): Make nil a valid value.
16930 (font_clear_cache): Check if the cached vector of entities is nil
16931 or not.
16932
16933 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16934
16935 * emacs.c (main_thread): Conditionalize on
16936 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16937 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16938
16939 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16940 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16941 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16942
16943 2008-05-14 Kenichi Handa <handa@m17n.org>
16944
16945 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16946 has no corresponding coding system.
16947
16948 2008-05-14 Jason Rumney <jasonr@gnu.org>
16949
16950 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16951
16952 * w32font.h (w32font_open_internal): Update declaration.
16953
16954 * w32font.c (w32font_open_internal): Change last argument from
16955 w32font_info struct to font object. Fill in font object from
16956 font_entity. Get Outline metrics if possible. Use them to
16957 calculate underline position and thickness. Use xlfd name as name
16958 property. Don't set codepage.
16959 (w32font_open): Pass font_object to w32font_open_internal. Don't
16960 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16961 (w32font_draw): Use s->font.
16962 (clear_cached_metrics): Don't clear non-existent blocks.
16963
16964 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16965 font was not found.
16966 (x_draw_glyph_string): Use underline position and thickness from font.
16967
16968 * w32uniscribe.c (uniscribe_open): Pass font_object to
16969 w32font_open_internal.
16970
16971 2008-05-14 Kenichi Handa <handa@m17n.org>
16972
16973 These changes are to delete all legacy font-handling codes, and
16974 make Emacs use only font-backends.
16975
16976 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16977 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16978
16979 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16980
16981 * charset.h (Vcharset_non_preferred_head)
16982 (Vcurrent_iso639_language): Extern them.
16983
16984 * charset.c (Vcharset_non_preferred_head): New variable.
16985 (Vcurrent_iso639_language): New variable.
16986 (syms_of_charset): Declare it as a Lisp variable.
16987 (char_charset): Don't check non preferred charsets. As a last
16988 resort, return charset_unicode.
16989 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16990
16991 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16992 conditionals. Don't check enable_font_backend. Delete all codes
16993 used only when USE_FONT_BACKEND is not defined.
16994
16995 * dispextern.h (struct glyph_string): Change type of `font' to
16996 `struct font *'.
16997 (struct glyph_string): New member underline_position and
16998 underline_thickness.
16999 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
17000 (struct face): Change type of `font' to `struct font *'. Remove
17001 members `font_name', `font_info_id'.
17002 (per_char_metric, encode_char): Delete externs.
17003 (calc_pixel_width_or_height): Adjust the prototype.
17004
17005 * emacs.c (enable_font_backend): Delete extern.
17006 (main): Don't set enable_font_backend. Don't check the command
17007 line argument "-disable-font-backend".
17008
17009 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
17010 (enum font_property_index): New members FONT_DPI_INDEX,
17011 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
17012 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
17013 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
17014 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
17015 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
17016 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
17017 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
17018 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
17019 (struct font_spec, struct font_entity): New structs.
17020 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
17021 (struct font): Many members from old "struct font_info" moved to
17022 here. Members font and entity deleted.
17023 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
17024 the new font-related objects.
17025 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
17026 (CHECK_FONT_GET_OBJECT): Likewise.
17027 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
17028 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
17029 (struct font_driver): New members case_sensitive anc check. Type
17030 of the member list and open changed.
17031 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
17032 (font_symbolic_width, font_find_object, font_get_spec)
17033 (font_set_lface_from_name): Delete extern.
17034 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
17035
17036 * font.c: Include <strings.h>.
17037 (enable_font_backend): Delete it.
17038 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
17039 (CHECK_VALIDATE_FONT_SPEC): Delete it.
17040 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
17041 (null_string): Delete it.
17042 (null_vector): Make it static.
17043 (font_family_alist): Delete it.
17044 (Qnormal): Extern it.
17045 (QCextra, QClanguage): Delete it.
17046 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
17047 (font_make_spec, font_make_entity, font_make_object)
17048 (font_intern_prop): Renamed from intern_downcase. Don't downcase
17049 the string. Callers changed.
17050 (font_pixel_size): Adjusted for the format change of font-related
17051 objects.
17052 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
17053 (font_style_to_value, font_style_symbolic): New function.
17054 (build_font_family_alist): Delete it.
17055 (font_registry_charsets): Use Fassoc_string instead of
17056 assq_no_quit.
17057 (font_prop_validate_symbol): Don't return null_string.
17058 (font_prop_validate_style): Adjusted for the change of
17059 style-related values in a font vector.
17060 (font_property_table): Delete entries for QClanguage and
17061 QCantialias, add entries for QCavgwidth.
17062 (get_font_prop_index): Delete the 2nd argument FROM.
17063 (font_prop_validate): Arguments changed.
17064 (font_put_extra): Adjusted for the change of font-related objects.
17065 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
17066 (font_parse_fcname, font_unparse_fcname)
17067 (font_prepare_composition): Likewise.
17068 (font_parse_family_registry): Renamed from font_merge_old_spec.
17069 (otf_open): Delete the 1st arg entity.
17070 (font_otf_capability): Adjusted for the above change.
17071 (font_score): New arg alternate_families. Adjusted for the change
17072 of font-related objects.
17073 (font_sort_entites): New arg best_only.
17074 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
17075 Delete them.
17076 (font_match_p): Check alternate families.
17077 (font_find_object): Delete it.
17078 (font_check_object): New function.
17079 (font_clear_cache): Adjusted for the change of font-related objects.
17080 (font_delete_unmatched): New arg.
17081 (font_list_entities): Call font_driver->list with a spec that
17082 doesn't specify style-related properties.
17083 (font_matching_entity): Arguments changed. Caller changed.
17084 (font_open_entity): Adjusted for the change of font-related objects.
17085 (font_close_object, font_has_char, font_encode_char)
17086 (font_get_name, font_get_spec): Likewise.
17087 (font_spec_from_name, font_clear_prop, font_update_lface):
17088 New functions.
17089 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
17090 (font_prepare_for_face, font_done_for_face, font_open_by_name)
17091 (font_at): Adjusted for the change of font-related objects.
17092 (font_range): New function.
17093 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
17094 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
17095 (Fcopy_font_spec, Fmerge_font_spec): New function.
17096 (Ffont_family_list): Renamed from list-families.
17097 (Finternal_set_font_style_table): Arguments changed.
17098 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
17099 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
17100 change of font-related objects.
17101 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
17102
17103 * fontset.h (struct font_info): Delete it. Most members go to
17104 struct font.
17105 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
17106 (enum FONT_SPEC_INDEX): Delete it.
17107 (font_info, list_fonts_func, load_font_func, query_font_func)
17108 (set_frame_fontset_func, find_ccl_program_func)
17109 (get_font_repertory_func, new_fontset_from_font_name): Delete
17110 externs.
17111 (fontset_from_font_name): Extern it.
17112 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
17113 (FONT_INFO_FROM_FACE): Deleted.
17114 (face_for_font): Adjust prototype.
17115
17116 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
17117 conditionals. Don't check enable_font_backend. Delete all codes
17118 used only when USE_FONT_BACKEND is not defined.
17119 (get_font_info_func, list_font_func, load_font_func)
17120 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
17121 (get_font_repertory_func): Delete them.
17122 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
17123 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
17124 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
17125 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
17126 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
17127 (fontset_compare_rfontdef): New function.
17128 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
17129 rfont-defs by qsort. Adjusted for the change of font-group vector.
17130 (load_font_get_repertory): Deleted.
17131 (fontset_find_font): Use new macros to ref/set elements of
17132 font-def and rfont-def.
17133 (fontset_font): Fix the timing of remembering that no font for C.
17134 (free_face_fontset): Do nothing if the face has no fontset.
17135 (face_suitable_for_char_p): Use new macros to ref/set elements of
17136 rfont-def.
17137 (face_for_char): Likewise. Call face_for_char with font_object.
17138 (fs_load_font): Delete. Delete #pragma surrounding it.
17139 (fs_query_fontset): Use strcasecmp instead of strcmp.
17140 (generate_ascii_font_name): Adjusted for the format change of
17141 font-spec.
17142 (Fset_fontset_font): Likewise. Use new macros to set elements of
17143 font-def.
17144 (Fnew_fontset): Use font_unparse_xlfd to generate
17145 FONTSET_ASCII (fontset).
17146 (new_fontset_from_font_name): Deleted.
17147 (fontset_from_font): Renamed from new_fontset_from_font. Check if
17148 a fontset is already created for the font. FIx updating of
17149 Vfontset_alias_alist.
17150 (fontset_ascii_font): Deleted.
17151 (Ffont_info): Adjusted for the format change of font-spec.
17152 (Finternal_char_font): Likewise.
17153 (Ffontset_info): Likewise.
17154 (syms_of_fontset): Don't check load_font_func.
17155
17156 * fns.c (internal_equal): Handle PREV_FONT.
17157
17158 * frame.h: Delete USE_FONT_BACKEND conditional.
17159
17160 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
17161 conditionals. Don't check enable_font_backend. Delete all codes
17162 used only when USE_FONT_BACKEND is not defined.
17163 (x_set_font): Call x_new_font, not x_new_fontset2.
17164 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
17165 already set for the frame.
17166
17167 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
17168 a font-entity by font_make_entity. Use font_intern_prop instead
17169 of intern_downcase. Use FONT_SET_STYLE to set a style-related
17170 font property. If a font is scalable, set avgwidth property to 0.
17171 Set font-entity property by font_put_extra.
17172 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
17173 (ffont_driver): Adjusted for the change of struct font_driver.
17174 (ftfont_spec_pattern): New function.
17175 (ftfont_list): Return a list, not vector.
17176 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
17177 (ftfont_list_family): Don't downcase names.
17178 (ftfont_free_entity): Deleted.
17179 (ftfont_open): Return a font-object. Adjusted for the change of
17180 struct font. Get underline_thickness and underline_position from
17181 font property. Don't update dpyinfo->smallest_font_height and
17182 dpyinfo->smallest_char_width.
17183 (ftfont_close): Don't free `struct font'.
17184 (ftfont_has_char): Adjusted for the format change of font-entity.
17185 (ftfont_encode_char, ftfont_text_extents): Likewise.
17186
17187 * ftxfont.c (ftxfont_list): Return a list, not vector.
17188 (ftxfont_open): Return a font-object. Adjusted for the change of
17189 struct font. Get underline_thickness and underline_position from
17190 font property. Don't update dpyinfo->smallest_font_height and
17191 dpyinfo->smallest_char_width.
17192 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
17193 (ftxfont_draw): Adjusted for the change of struct font.
17194
17195 * image.c (image_ascent): Don't include "charset.h". Include
17196 "character.h" and "font.h".
17197
17198 * lisp.h (enum pvec_type): New member PREV_FONT.
17199 (Fassoc_string): EXFUN it.
17200
17201 * print.c: Include font.h.
17202 (print_object): Handle font-related objects.
17203
17204 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
17205 conditionals. Don't check enable_font_backend. Delete all codes
17206 used only when USE_FONT_BACKEND is not defined.
17207 (handle_auto_composed_prop): Do nothing if it->f is not on a
17208 window system. Check how many following characters can be
17209 displayed by the same font.
17210 (calc_pixel_width_or_height): Type of the 4th arg is changed to
17211 'struct font *'.
17212 (get_char_face_and_encoding): Assign the whole encoding task to
17213 the `encode-char' method of a font driver.
17214 (fill_composite_glyph_string): Adjusted for the change of `struct
17215 face' and `struct glyph_string'.
17216 (fill_glyph_string): Likewise.
17217 (get_per_char_metric): Arguments changed.
17218 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
17219 and `struct glyph_string'.
17220 (produce_stretch_glyph, calc_line_height_property)
17221 (x_produce_glyphs): Likewise.
17222
17223 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
17224 conditionals. Don't check enable_font_backend. Delete all codes
17225 used only when USE_FONT_BACKEND is not defined. Use
17226 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
17227 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
17228 (Qp): Extern them.
17229 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
17230 Deleted.
17231 (struct font_name): Deleted.
17232 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
17233 (compare_fonts_by_sort_order): New function.
17234 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
17235 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
17236 Deleted.
17237 (Fx_family_fonts): Use font_list_entities, and sort fonts by
17238 compare_fonts_by_sort_order.
17239 (Fx_font_family_list): Call Ffont_family_list.
17240 (face_numeric_value, face_numeric_weight, face_numeric_slant)
17241 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
17242 (face_symbolic_slant, face_symbolic_swidth)
17243 (split_font_name_into_vector, build_font_name_from_vector)
17244 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
17245 (font_rescale_ratio, split_font_name, build_font_name)
17246 (free_font_names, sort_fonts, x_face_list_fonts)
17247 (face_font_available_p, sorted_font_list, cmp_font_names)
17248 (font_list_1, concat_font_list, font_list, remove_duplicates):
17249 Deleted.
17250 (Fx_list_fonts): Use Ffont_list.
17251 (LFACE_AVGWIDTH): Deleted.
17252 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
17253 by FONTP.
17254 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
17255 (set_lface_from_font_name): Delete it.
17256 (set_lface_from_font): Renamed from
17257 set_lface_from_font_and_fontset. Caller changed. Don't set
17258 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
17259 for face.
17260 (merge_face_vectors): Copy font-spec if necessary.
17261 Clear properties of the font-spec if necessary.
17262 (merge_face_ref): Clear properties of the font-spec if necessary.
17263 (Finternal_set_lisp_face_attribute): Likewise.
17264 (set_font_frame_param): Use font_load_for_lface to load a
17265 font-object, and call Fmodify_frame_parameters with it.
17266 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
17267 font name by Ffont_xlfd_name.
17268 (Finternal_lisp_face_attribute_values): Don't check QCweight,
17269 QCslant, and QCwidth.
17270 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
17271 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
17272 Compare fonts by EQ.
17273 (lookup_non_ascii_face): Deleted.
17274 (face_for_font): The 2nd argument changed.
17275 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
17276 Check atomic font properties by case insensitive.
17277 (realize_non_ascii_face): Set face->overstrike correctly.
17278 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
17279 (dump_realized_face): Get font name from
17280 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
17281
17282 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
17283 conditionals. Don't check enable_font_backend. Delete all codes
17284 used only when USE_FONT_BACKEND is not defined.
17285 (xic_create_xfontset): Original code deleted and renamed from
17286 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
17287 (x_make_gc): Don't set GCFont in GCs.
17288 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
17289 opened by "fixed".
17290 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
17291 find_ccl_program_func, query_font_func, set_frame_fontset_func,
17292 get_font_repertory_func.
17293
17294 * xfont.c: Include <stdlib.h> and "ccl.h".
17295 (struct xfont_info): New structure.
17296 (xfont_query_font): Deleted.
17297 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17298 moved from xterm.c.
17299 (xfont_driver): Adjusted for the change of struct font_driver.
17300 (compare_font_names): New function.
17301 (xfont_list_pattern): Sort font names case insensitively. Make
17302 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
17303 (xfont_list): Return a list, not vector.
17304 (xfont_match): If the font doesn't have QCname property, generate
17305 a name from the other font properties.
17306 (xfont_open): Return a font-object. Adjusted for the change of
17307 struct font. Get underline_thickness and underline_position from
17308 font property. Don't update dpyinfo->smallest_font_height and
17309 dpyinfo->smallest_char_width.
17310 (xfont_close): Don't free struct font.
17311 (xfont_prepare_face): Adjusted for the change of struct font.
17312 (xfont_done_face): Deleted.
17313 (xfont_has_char): Adjusted for the change of struct font.
17314 (xfont_encode_char, xfont_draw): Likewise.
17315 (xfont_check): New function.
17316
17317 * xftfont.c (xftfont_list): Adjusted for the change of `list'
17318 callback function.
17319 (xftfont_match): Adjusted for the format change of font-entity.
17320 (xftfont_open): Adjusted for the format change of font-entity and
17321 font-object. Adjusted for the change of struct font. Return a
17322 font-object. Don't update dpyinfo->smallest_font_height and
17323 dpyinfo->smallest_char_width.
17324 (xftfont_close): Block input while calling XftFontClose.
17325 (xftfont_prepare_face): Don't block input while calling
17326 xftfont_get_colors. Adjusted for the change of struct font.
17327 (xftfont_shape): Return value of error case fixed.
17328
17329 * xrdb.c (x_load_resources): Don't setup a fontset resource.
17330
17331 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17332 conditionals.
17333 (FONT_WIDTH): Return (f)->max_width.
17334 (struct x_display_info): Delete member `font'.
17335 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17336 (x_find_ccl_program, x_get_font_repertory): Delete externs.
17337 (struct x_output): Change type of `font' to `struct font *'.
17338
17339 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
17340 conditionals. Don't check enable_font_backend. Delete all codes
17341 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
17342 (x_per_char_metric, x_encode_char): Deleted.
17343 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17344 (x_compute_glyph_string_overhangs): Adjusted for the change of
17345 `struct face'.
17346 (x_draw_glyph_string_foreground)
17347 (x_draw_composite_glyph_string_foreground): Likewise.
17348 (x_draw_glyph_string): Likewise. Use font->underline_position and
17349 font->underline_thickness.
17350 (x_new_font): Renamed from x_new_fontset2.
17351 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17352 (x_check_font): Call `check' method of a font driver.
17353 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17354 (x_query_font, x_get_font_repertory): Deleted.
17355 (x_find_ccl_program): Renamed and moved to xfont.c.
17356 (x_redisplay_interface): Adjusted for the change of `struct
17357 redisplay_interface'.
17358
17359 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17360 conditionals. Don't check enable_font_backend. Delete all codes
17361 used only when USE_FONT_BACKEND is not defined. Surround non-used
17362 code by "#ifdef OLD_FONT" and "endif".
17363 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17364
17365 * w32font.h (struct w32font_info): New member.
17366 (FONT_COMPAT): New macro.
17367 (w32font_open_internal): Prototype adjusted.
17368
17369 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17370 OLD_FONT" and "endif".
17371
17372 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17373 conditionals. Don't check enable_font_backend. Delete all codes
17374 used only when USE_FONT_BACKEND is not defined.
17375 (w32font_open): Return a font-object. Make a font-object by
17376 font_make_object. Adjusted for the change of struct w32font_info.
17377 (w32font_close): Don't free struct font. Adjusted for the change
17378 of struct w32font_info.
17379 (w32font_encode_char, w32font_text_extents, w32font_draw):
17380 Adjusted for the change of struct w32font_info.
17381 (w32font_draw): Likewise.
17382 (w32font_list_internal): Return a list, not vector.
17383 (w32font_open_internal): Change the 4th arg to font-object.
17384 Adjusted for the change of struct w32font_info and font-object format.
17385 (add_font_name_to_list): Don't downcase names.
17386 (w32_enumfont_pattern_entity): Make a font-entity by
17387 font_make_entity. Adjusted for the format change of font-entity.
17388 Use FONT_SET_STYLE to set a style-related font property. If a
17389 font is scalable, set avgwidth property to 0. Set font-entity
17390 property by font_put_extra.
17391 (font_matches_spec): Adjusted for the format change of font-entity.
17392 (w32_weight_table, w32_decode_weight): New variables.
17393 (w32_encode_weight): New function.
17394 (fill_in_logfont): Adjusted for the format change of font-spec.
17395 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17396 weight value.
17397 (w32font_driver): Adjusted for the change of struct font_driver.
17398
17399 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17400 conditionals. Don't check enable_font_backend. Surround non-used
17401 code by "#ifdef OLD_FONT" and "endif".
17402 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17403 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17404
17405 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17406 conditionals. Don't check enable_font_backend. Delete all codes
17407 used only when USE_FONT_BACKEND is not defined. Surround non-used
17408 code by "#ifdef OLD_FONT" and "endif".
17409
17410 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17411 (uniscribe_open): Return value changed to font-object.
17412 Adjusted for the format change of font-object.
17413 (uniscribe_otf_capability): Adjusted for the change of struct font.
17414 (add_opentype_font_name_to_list): Don't downcase names.
17415 (uniscribe_font_driver): Adjusted for the change of struct
17416 font_driver.
17417
17418 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
17419
17420 * dispnew.c (update_frame_1): Check if tty output is still valid
17421 before flushing it.
17422
17423 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17424
17425 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17426 to Gtk+ menus.
17427
17428 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17429
17430 * dired.c (file_name_completion): Tweak the code so as to always do it
17431 in a single pass. Tighten the scope of some variables.
17432
17433 * dired.c (Qdefault_directory): New var.
17434 (file_name_completion): Use it instead of Fexpand_file_name.
17435 (syms_of_dired): Initialize it.
17436
17437 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17438
17439 * fileio.c (double_dollars): Remove dead code.
17440
17441 2008-05-10 Eli Zaretskii <eliz@gnu.org>
17442
17443 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17444 Mention w32-get-true-file-attributes in doc string.
17445
17446 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17447
17448 2008-05-09 Glenn Morris <rgm@gnu.org>
17449
17450 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17451 2008-04-23.
17452
17453 2008-05-09 Eli Zaretskii <eliz@gnu.org>
17454
17455 Support for reporting owner and group of each file on MS-Windows:
17456 * dired.c (stat_uname, stat_gname): New functions, with special
17457 implementation for w32.
17458 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17459
17460 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17461 (dflt_group_name): New static variable.
17462 (dflt_group): Rename from the_group.
17463 (init_user_info): Init dflt_group fields. Get user's group name
17464 from LookupAccountSid.
17465 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17466 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17467 New initialization states.
17468 (globals_of_w32): Initialize them to zero. Initialize the default
17469 group name to "None".
17470 (GetFileSecurity_Name): New global var, the name of the function
17471 to call for GetFileSecurity.
17472 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17473 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17474 (get_file_security, get_security_descriptor_owner)
17475 (get_security_descriptor_group, is_valid_sid)
17476 (get_file_security_desc, get_rid, get_name_and_id)
17477 (get_file_owner_and_group): New functions.
17478 (stat): Use get_file_security_desc and get_file_owner_and_group to
17479 report the owner and primary group of each file. Don't ignore the
17480 high 32 bits of file's size, now that st_size is 64-bit wide.
17481 Fix test when to get true file attributes.
17482 (init_user_info): Use get_rid instead of equivalent inline code.
17483 (fstat): Don't ignore the high 32 bits of file's size.
17484
17485 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
17486
17487 * image.c (png_load): Use correct bit-depth for setting background
17488 color.
17489
17490 2008-05-08 Eli Zaretskii <eliz@gnu.org>
17491
17492 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17493 epa-hook.elc.
17494
17495 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
17496
17497 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17498
17499 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17500
17501 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17502 because the original parameters are in pure storage now.
17503 (mac_window): Remove unused params. Update callers.
17504
17505 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17506
17507 * lread.c (substitute_object_recurse): Use lower-level primitives.
17508 Don't signal errors when traversing sub-char-tables.
17509 Don't loop over all the possible characters when traversing char-tables.
17510
17511 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17512 just like we do in print.c.
17513
17514 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17515
17516 * minibuf.c (Ftry_completion): Remove code left over from when we used
17517 scmp instead of Fcompare_strings.
17518
17519 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
17520
17521 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17522
17523 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17524
17525 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17526 Create bitmap context in native byte order.
17527
17528 * macterm.c (XDrawLine)
17529 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17530 context in native byte order.
17531
17532 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17533
17534 * config.in: Regenerate.
17535
17536 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17537 New definitions for Image I/O support.
17538 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17539 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17540 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17541 (mac_data_provider_release_data, image_load_image_io)
17542 [USE_MAC_IMAGE_IO]: New functions.
17543 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17544 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17545 (init_image_func_pointer) [MAC_OSX]: Remove function.
17546 (image_load_quartz2d) [MAC_OSX]: Check availability of
17547 CGImageCreateWithPNGDataProvider at compile time.
17548 Use lowercase `false' for boolean constant.
17549 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17550 Use image_load_image_io.
17551 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17552 Don't check MyCGImageCreateWithPNGDataProvider.
17553 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17554 Don't call init_image_func_pointer.
17555
17556 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17557
17558 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17559 Make variable non-static.
17560 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17561 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17562
17563 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17564 (RED_FROM_ULONG): Mask off higher bits.
17565 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17566
17567 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17568 Include AvailabilityMacros.h.
17569 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17570 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17571
17572 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17573
17574 * chartab.c (Fset_char_table_range): If range is t, really set all
17575 chars to that value.
17576
17577 2008-05-03 Eli Zaretskii <eliz@gnu.org>
17578
17579 * dired.c (Ffile_attributes): Don't allow the device number become
17580 negative.
17581
17582 2008-05-02 Daiki Ueno <ueno@unixuser.org>
17583
17584 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17585
17586 2008-05-02 Juri Linkov <juri@jurta.org>
17587
17588 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17589 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17590 DEFAULT argument as a list of default values in docstrings.
17591
17592 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
17593
17594 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17595
17596 2008-05-01 Martin Rudalics <rudalics@gmx.at>
17597
17598 * dispnew.c (change_frame_size_1): Preserve small windows when
17599 shrinking frames by calling set_window_height|width with third
17600 arg 2.
17601
17602 * window.h (struct window): Replace field too_small_ok by field
17603 resize_proportionally.
17604
17605 * window.c (make_window): Initialize resize_proportionally.
17606 (enlarge_window): Temporarily set resize_proportionally to make
17607 sure that shrink_windows does scale the window proportionally.
17608 (shrink_windows): When window has resize_proportionally set try
17609 to shrink it proportionally by stealing from other windows.
17610 (struct saved_window, Fset_window_configuration)
17611 (compare_window_configurations): Handle resize_proportionally.
17612 (WINDOW_TOTAL_SIZE): New macro.
17613 (window_min_size, shrink_windows, size_window): Use it.
17614 (check_min_window_sizes): Remove. Invalid values of
17615 window-min-height|width are handled by window_min_size_2 now.
17616 (size_window, Fsplit_window, enlarge_window)
17617 (adjust_window_trailing_edge, grow_mini_window): Don't call
17618 check_min_window_sizes.
17619 (window_min_size_2, window_min_size_1, window_min_size):
17620 New argument safe_p for retrieving "safe" minimum sizes.
17621 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17622 (adjust_window_trailing_edge, grow_mini_window):
17623 Adjust arguments of window_min_size... functions.
17624 (shrink_windows): Argument min_size removed. New argument
17625 safe_p allows shrinking windows to their safe minimum sizes.
17626 Calculate minimum size and decide whether a window shall be
17627 deleted for each window individually.
17628 (size_window): When nodelete_p equals 2, tell shrink_windows to
17629 delete windows only if their new minimum size is no more safe.
17630 (shrink_window_lowest_first): Call window_min_size_1 to make
17631 sure to preserve modeline of bottom-most window when resizing
17632 the minibuffer.
17633 (Fset_window_configuration, Fcurrent_window_configuration)
17634 (compare_window_configurations): Do not handle
17635 window-min-height|width any more.
17636 (syms_of_window): Clarify window-min-height|width doc-strings.
17637
17638 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17639
17640 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17641 some more. Copy some of the code from Ftry_completions.
17642 Remove special case code that dates back to initial revision when the
17643 slash was only added when necessary and that can't trigger nowadays.
17644
17645 2008-04-27 Kenichi Handa <handa@m17n.org>
17646
17647 * font.c (font_prop_validate): Signal `error' instead of `font'.
17648
17649 2008-04-29 Jason Rumney <jasonr@gnu.org>
17650
17651 * w32fns.c (Fw32_battery_status): New defun.
17652 (syms_of_w32fns): Defsubr it.
17653
17654 2008-04-28 Andreas Schwab <schwab@suse.de>
17655
17656 * dired.c (file_name_completion): Fix another mixing of encoded
17657 and decoded names.
17658
17659 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
17660
17661 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17662
17663 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
17664
17665 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17666
17667 2008-04-27 Andreas Schwab <schwab@suse.de>
17668
17669 * dired.c (file_name_completion): Fix inappropriate mixing of
17670 encoded and decoded names.
17671
17672 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17673
17674 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17675
17676 2008-04-26 Eli Zaretskii <eliz@gnu.org>
17677
17678 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17679 2008-03-31, it's not needed anymore with `struct stat' definition
17680 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17681 for the same reasons.
17682
17683 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17684
17685 * m/sparc.h: Additional redefinitions for GNU/Linux.
17686
17687 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17688
17689 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17690 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17691 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17692 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17693 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17694 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17695 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17696 Likewise.
17697
17698 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17699 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17700 (mac_ax_number_of_characters): Add externs.
17701 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17702 [USE_MAC_TSM]: Likewise.
17703 (mac_handle_text_input_event) [MAC_OSX]:
17704 Handle kEventTextInputOffsetToPos for no active input area case.
17705 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17706 (mac_handle_document_access_event)
17707 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17708 (install_application_handler) [MAC_OSX]: Register handlers for
17709 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17710 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17711 Register mac_handle_document_access_event.
17712
17713 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17714 Make functions non-static.
17715
17716 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17717
17718 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17719 (read_file_name_completion_ignore_case, insert_default_directory)
17720 (Qdefault_directory): Move to minibuffer.el.
17721 (Fread_file_name): Call the new `read-file-name' instead.
17722
17723 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17724
17725 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17726 Make function non-static.
17727 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17728 Remove function.
17729 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17730 Move to mactoolbox.c.
17731 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17732
17733 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17734 (mac_rect_make): New macro.
17735
17736 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17737 instead of float.
17738 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17739 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17740 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17741 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17742 CGRectMake.
17743 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17744 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17745 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17746 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17747 instead of WindowRef in argument type.
17748 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17749 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17750 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17751 instead of DISPLAY. All uses changed.
17752 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17753 (x_calc_absolute_position): Simplify so as not to use
17754 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17755
17756 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17757 instead of WindowRef in argument type.
17758 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17759 [TARGET_API_MAC_CARBON]: Remove externs.
17760 (create_apple_event, mac_event_parameters_to_lisp)
17761 [TARGET_API_MAC_CARBON]: Add externs.
17762
17763 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17764 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17765 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17766 is clicked.
17767 (x_activate_menubar): Remove extern for saved_menu_event_location.
17768 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17769 Move from mac.c.
17770
17771 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17772
17773 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17774 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17775
17776 2008-04-23 Jason Rumney <jasonr@gnu.org>
17777
17778 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17779 attributes only for local files.
17780
17781 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17782 default to Qlocal.
17783
17784 2008-04-22 Juri Linkov <juri@jurta.org>
17785
17786 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17787 read-buffer-to-switch instead of using the letter "B".
17788
17789 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17790
17791 * fileio.c (Qdefault_directory): New variable.
17792 (Fread_file_name): Use it to pass `dir' to the completion functions.
17793
17794 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
17795
17796 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17797
17798 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17799
17800 * keyboard.c (Vpre_help_message): Remove.
17801 (show_help_echo): Remove default C code.
17802
17803 * dired.c (directory_files_internal, file_name_completion):
17804 Only call ENCODE_FILE if the string is indeed decoded.
17805
17806 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17807
17808 * Makefile.in (TOOLKIT_DEFINES): Remove.
17809 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17810
17811 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17812
17813 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17814 (mactoolbox.o): New target.
17815
17816 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17817 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17818
17819 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17820 Use mac_set_frame_window_background instead of XSetWindowBackground.
17821 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17822 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17823 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17824 instead of SetWindowTitleWithCFString.
17825 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17826 Move function to mactoolbox.c.
17827 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17828 Use mac_set_window_modified instead of SetWindowModified.
17829 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17830 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17831 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17832 FrontNonFloatingWindow. Use mac_activate_window instead of
17833 ActivateWindow. Use mac_active_non_floating_window instead of
17834 ActiveNonFloatingWindow.
17835 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17836 Use mac_show_hourglass and mac_hide_hourglass.
17837 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17838 instead of GetGlobalMouse.
17839 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17840 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17841 Use mac_bring_window_to_front instead of BringToFront.
17842 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17843 mactoolbox.c.
17844 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17845 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17846 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17847 mactoolbox.c.
17848
17849 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17850 (XtPointer): Move typedef from macmenu.c.
17851 (enum button_type): Move enum from macmenu.c.
17852 (widget_value): Move typedef from macmenu.c.
17853 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17854 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17855 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17856 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17857 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17858 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17859 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17860 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17861 (Selection): Move typedef from macselect.c.
17862 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17863 macterm.c.
17864 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17865 (mac_is_window_collapsed, mac_bring_window_to_front)
17866 (mac_send_window_behind, mac_hide_window, mac_show_window)
17867 (mac_collapse_window, mac_front_non_floating_window)
17868 (mac_active_non_floating_window, mac_activate_window)
17869 (mac_move_window_structure, mac_move_window, mac_size_window)
17870 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17871
17872 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17873 (enum mac_menu_kind): Move enum to mactoolbox.c.
17874 (min_menu_id): Move variable to mactoolbox.c.
17875 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17876 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17877 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17878 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17879 [TARGET_API_MAC_CARBON]: Likewise.
17880 (XtPointer): Move typedef to macgui.h.
17881 (enum button_type): Move enum to macgui.h.
17882 (widget_value): Move typedef to macgui.h.
17883 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17884 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17885 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17886 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17887 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17888 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17889 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17890 (popup_activated_flag): Make variable non-static.
17891 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17892 (add_menu_item, fill_menu, dispose_menus):
17893 Move functions to mactoolbox.c.
17894 (restore_show_help_function, menu_target_item_handler)
17895 (install_menu_target_item_handler, mac_handle_dialog_event)
17896 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17897 [TARGET_API_MAC_CARBON]: Likewise.
17898 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17899 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17900 (find_and_call_menu_selection, name_is_separator): Make function
17901 non-static.
17902 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17903 to mactoolbox.c.
17904 (set_frame_menubar): Don't call install_menu_quit_handler.
17905 (menu_item_selection): New variable.
17906 (mac_menu_show): Use create_and_show_popup_menu.
17907 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17908 selection but set variable menu_item_selection. All uses changed.
17909 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17910 Call install_menu_quit_handler. Move to mactoolbox.c.
17911
17912 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17913 (Selection): Move typedef to macgui.h.
17914 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17915 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17916 Make variables non-static.
17917 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17918 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17919 Make functions non-static.
17920 (Vmac_service_selection) [MAC_OSX]: Likewise.
17921 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17922 (mac_valid_selection_target_p, mac_clear_selection)
17923 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17924 (mac_put_selection_value, mac_selection_has_target_p)
17925 (mac_get_selection_value, mac_get_selection_target_list)
17926 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17927 Move functions to mactoolbox.c.
17928 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17929 Likewise.
17930 (copy_scrap_flavor_data, mac_handle_service_event)
17931 (install_service_handler) [MAC_OSX]: Likewise.
17932 (syms_of_macselect) <Vmac_dnd_known_types>:
17933 Use mac_dnd_default_known_types.
17934
17935 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17936 Move to mactoolbox.c.
17937 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17938 (Fx_selection_owner_p): Add EXFUN.
17939 (install_window_handler, remove_window_handler, XSetWindowBackground):
17940 Remove externs.
17941 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17942 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17943 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17944 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17945 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17946 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17947 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17948 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17949 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17950 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17951 (mac_valid_selection_target_p, mac_clear_selection)
17952 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17953 (mac_put_selection_value, mac_selection_has_target_p)
17954 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17955 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17956 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17957 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17958 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17959 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17960 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17961 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17962 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17963
17964 * mactoolbox.c: New file.
17965
17966 2008-04-18 Jason Rumney <jasonr@gnu.org>
17967
17968 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17969
17970 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17971
17972 * character.c (Fmultibyte_char_to_unibyte):
17973 Return latin1 chars unchanged.
17974
17975 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17976 relocated if it points to `name'.
17977
17978 2008-04-17 Kenichi Handa <handa@m17n.org>
17979
17980 * data.c (Faset): Allow setting a multibyte character in an
17981 ASCII-only unibyte string.
17982
17983 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17984
17985 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17986
17987 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17988 done in config.h.
17989
17990 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
17991
17992 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17993 (Fchar_direction): Add usage in the docstring.
17994
17995 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
17996
17997 * keyboard.c (read_key_sequence): Remove always-true checks.
17998
17999 2008-04-14 Jason Rumney <jasonr@gnu.org>
18000
18001 * w32font.c (w32font_open_internal): Set max_bounds.descent in
18002 compatibility struct, for better underline positioning.
18003
18004 2008-04-13 David Hansen <david.hansen@gmx.net>
18005
18006 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
18007 string.
18008
18009 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
18010
18011 * m/hp800.h (XUINT, XSET): Remove.
18012
18013 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
18014
18015 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
18016 previous change.
18017
18018 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
18019
18020 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
18021 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
18022
18023 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18024
18025 * keymap.h (map_keymap_canonical): Declare.
18026 * xmenu.c (single_keymap_panes): Use it.
18027
18028 2008-04-11 Glenn Morris <rgm@gnu.org>
18029
18030 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
18031 set the target's value to that of the alias.
18032
18033 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18034
18035 * term.c (set_tty_color_mode): Left over typo.
18036
18037 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
18038
18039 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
18040 only after check for file name handler functions. Signal, when
18041 native functionality is not supported.
18042 (syms_of_fileio): Declare it unconditionally.
18043
18044 2008-04-10 Jason Rumney <jasonr@gnu.org>
18045
18046 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
18047 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
18048
18049 * w32.c (logon_network_drive): Also logon to remote drives that
18050 are mapped to drive letters.
18051
18052 2008-04-10 Glenn Morris <rgm@gnu.org>
18053
18054 * xdisp.c (truncate-partial-width-windows): Doc fix.
18055
18056 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
18057
18058 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
18059 Move functions to minibuffer.el.
18060 (syms_of_fileio): Don't declare them.
18061
18062 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18063
18064 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
18065 (syms_of_minibuf): Remove its initialization.
18066
18067 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
18068
18069 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
18070
18071 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
18072
18073 2008-04-09 Jason Rumney <jasonr@gnu.org>
18074
18075 * makefile.w32-in (distclean): Delete makefile too.
18076 (maintainer-clean): New target.
18077
18078 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
18079
18080 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
18081 for new font backend and composite cases.
18082
18083 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
18084
18085 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
18086 Most of the code moved to run_timers.
18087 (do_pending_atimers): Call run_timers.
18088 (run_timers): New function.
18089
18090 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
18091 run atimers.
18092
18093 * process.c (wait_reading_process_output): The same as above.
18094
18095 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18096
18097 * minibuf.c (last_exact_completion): Remove variable.
18098 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
18099 (complete_and_exit_1, complete_and_exit_2)
18100 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
18101 (Fdisplay_completion_list, display_completion_list_1)
18102 (Fminibuffer_completion_help, Fself_insert_and_exit)
18103 (Fexit_minibuffer, Fminibuffer_message): Move functions to
18104 minibuffer.el.
18105 (syms_of_minibuf): Remove corresponding initializations.
18106
18107 * keyboard.c (Qdeactivate_mark): New var.
18108 (command_loop_1): Use it to call `deactivate-mark'.
18109 (syms_of_keyboard): Initialize it.
18110
18111 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
18112 to another frame.
18113 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
18114 Don't call set_tty_color_mode.
18115 (store_frame_param): Reset previous_frame rather than call
18116 set_tty_color_mode.
18117 * term.c (set_tty_color_mode): Rewrite.
18118 * dispextern.h (set_tty_color_mode): New type.
18119 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
18120
18121 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
18122
18123 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
18124 for generic chars, which do not exist any more in emacs-unicode.
18125
18126 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
18127
18128 * coding.c (detect_coding_emacs_mule)
18129 (Ffind_operation_coding_system): Fix typo.
18130
18131 2008-04-08 Jason Rumney <jasonr@gnu.org>
18132
18133 * w32uniscribe.c (SNAME): Extract only symbol name.
18134
18135 * w32font.h (struct w32_metric_cache): New struct.
18136 (w32font_info): Use it.
18137 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
18138 (CACHE_BLOCKSIZE): New constants.
18139
18140 * w32font.c (Qja, Qko, Qzh): New symbols.
18141 (syms_of_w32font): Initialise them.
18142 (font_matches_spec): Use them to filter by language.
18143 (recompute_cached_metrics): Remove function.
18144 (compute_metrics, clear_cached_metrics): New functions.
18145 (w32font_encode_char): Use them to manage metric cache.
18146 (w32font_text_extents): Cache metrics for all glyphs on demand.
18147 Delay converting glyph indices to WORD until needed.
18148 (w32font_open_internal): Initialize metric cache to empty.
18149 (registry_to_w32_charset): Charset should always be a symbol.
18150 (fill_in_logfont, list_all_matching_fonts): Family should
18151 always be a symbol.
18152
18153 2008-04-06 Jason Rumney <jasonr@gnu.org>
18154
18155 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
18156 Give up if glyph indices not supported. Use uniscribe obtained
18157 ABC widths for individual metrics. Map glyph clusters back to
18158 characters using fClusterStart flag. Return number of glyphs
18159 produced, not chars processed.
18160 (uniscribe_shape): Map char at FROM to current glyph.
18161
18162 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18163
18164 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
18165 Use SetMenuItemHierarchicalMenu.
18166
18167 2008-04-05 Jason Rumney <jasonr@gnu.org>
18168
18169 * image.c (pbm_load): Allow color values up to 65535.
18170 Throw an error if max_color_idx is outside the supported range.
18171 Report an error when image size is invalid.
18172 Read two bytes at a time when raw images have max_color_idx above 255.
18173
18174 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
18175
18176 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
18177 append "CCL: Quitted" when the CCL program is quitted.
18178 (setup_ccl_program): Initialize ccl->quit_silently to zero.
18179
18180 * ccl.h (struct ccl_program): New member quit_silently.
18181
18182 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
18183
18184 * search.c (compile_pattern_1): Treat non-nil and non-string of
18185 search-spaces-regexp as nil.
18186
18187 * minibuf.c (Fassoc_string): Tweak docstring.
18188
18189 2008-04-05 Eli Zaretskii <eliz@gnu.org>
18190
18191 * dired.c (Ffile_attributes): Support inode numbers wider than 32
18192 bits. Remove ugly WINDOWSNT-specific kludge introduced on
18193 2008-03-14 to force inode be positive.
18194
18195 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
18196 _S_* ones, since we now use our own sys/stat.h.
18197 (stat, fstat): Don't mangle the inode number.
18198 (init_user_info): Don't restrict UID and GID to 0-60000 range.
18199
18200 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
18201
18202 * frame.h (struct frame): Give one more bit to `visible' since we use
18203 values larger than 1 to indicate obscured frames on ttys.
18204
18205 * keymap.c (Qkeymap_canonicalize): New var.
18206 (Fmap_keymap_internal): New fun.
18207 (describe_map): Use keymap-canonicalize.
18208
18209 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
18210 (Fundo_boundary): Set them.
18211 (syms_of_undo): Initialize them.
18212 (record_point): Use them instead of last_point_position*.
18213 (last_undo_buffer): Change type.
18214
18215 2008-04-04 Jason Rumney <jasonr@gnu.org>
18216
18217 * w32font.c (w32font_text_extents): Use font's ascent and descent.
18218 (recompute_cached_metrics): Don't set ascent and descent per char.
18219
18220 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
18221 (uniscribe_check_otf): Add GC protection before consing.
18222 Rearrange loop for counting features.
18223
18224 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
18225
18226 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
18227 buffer with byte-size of source buffer.
18228
18229 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
18230
18231 * callint.c (Fcall_interactively): Handle temporary region even
18232 when shift-select-mode is off.
18233
18234 2008-04-03 Jason Rumney <jasonr@gnu.org>
18235
18236 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
18237
18238 2008-04-03 Kenichi Handa <handa@m17n.org>
18239
18240 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
18241 (CATEGORY_MASK_UTF_16): Likewise.
18242 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
18243 binary file.
18244 (detect_coding): Add null-byte detection for a binary file.
18245 (detect_coding_system): Likewise.
18246
18247 2008-04-03 Jason Rumney <jasonr@gnu.org>
18248
18249 * w32uniscribe.c: New file.
18250
18251 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
18252
18253 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
18254
18255 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
18256 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
18257 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
18258 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
18259 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
18260 (Qphonetic): New symbols.
18261 (syms_of_w32font): Initialize them.
18262 (font_supported_scripts): Use them.
18263 (w32font_list_family): List all charsets.
18264 (w32font_text_extents, recompute_cached_metrics): Fix metric
18265 calculations.
18266 (w32_enumfont_pattern_entity): Make full_type a DWORD.
18267 Give opentype fonts their own format.
18268 (font_matches_spec): New arguments backend and logfont.
18269 Handle :otf spec for uniscribe backend.
18270 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
18271 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
18272
18273 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
18274 font backend.
18275 (globals_of_w32fns): Initialize uniscribe font backend.
18276
18277 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
18278 dependencies.
18279 (w32uniscribe.$(O)): New file to build.
18280 (FONT_OBJ): Include w32uniscribe.$(O).
18281 (LIBS): Add uniscribe libraries.
18282
18283 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
18284
18285 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
18286
18287 * callint.c (Vshift_select_mode): New var.
18288 (Finteractive): Document new ^ spec.
18289 (Fcall_interactively): Call handle-shift-selection if the ^ spec
18290 is present.
18291
18292 * keyboard.c (Vthis_command_keys_shift_translated): New var.
18293 (command_loop_1): Avoid running the direct display versions of
18294 forward-char and backward-char if shift-selection may occur.
18295 (read_key_sequence): Set Vthis_command_keys_shift_translated if
18296 shift-translation takes place.
18297
18298 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
18299 avoid clobbering by define-minor-mode.
18300
18301 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
18302 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
18303
18304 * syntax.c (Fforward_word): Add ^ interactive spec.
18305
18306 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
18307 (Fscroll_right): Add ^ interactive spec.
18308
18309 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
18310
18311 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
18312
18313 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
18314
18315 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
18316
18317 2008-03-31 Juri Linkov <juri@jurta.org>
18318
18319 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18320
18321 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
18322
18323 * gtkutil.c (xg_set_geometry): Fix indentation.
18324 (xg_resize_outer_widget): Remove.
18325 (x_wm_size_hint_off): Fix indentation.
18326 (xg_frame_set_char_size): Call flush_and_sync after
18327 gtk_window_resize.
18328 (x_wm_set_size_hint): Pass NULL as geometry window to
18329 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18330 Add menu bar and tool bar height to base height.
18331 (xg_update_frame_menubar, free_frame_menubar)
18332 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18333 (update_frame_tool_bar, free_frame_tool_bar):
18334 Change xg_resize_outer_widget to xg_frame_set_char_size.
18335
18336 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
18337
18338 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18339 (Fdbus_call_method): New parameter TIMEOUT.
18340 (dbus-send-signal): Optimize UNGCPRO call.
18341
18342 2008-03-29 Juri Linkov <juri@jurta.org>
18343
18344 * window.c (Fdisplay_buffer): Move call to
18345 Vsplit_window_preferred_function out of conditions that check
18346 if window is eligible for vertical splitting.
18347 When Vsplit_window_preferred_function is non-nil, call it and use
18348 its non-nil return value as window. Otherwise, continue doing
18349 vertical splitting using Fsplit_window with arg horflag=nil.
18350 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18351 default value from `split-window' to nil.
18352
18353 2008-03-29 Juri Linkov <juri@jurta.org>
18354
18355 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18356 for interactive code letters 'b' and 'B'.
18357
18358 2008-03-29 Eli Zaretskii <eliz@gnu.org>
18359
18360 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18361 multibyte string.
18362
18363 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18364
18365 * keyboard.c (pending_funcalls): New var.
18366 (timer_check): Run it.
18367 (syms_of_keyboard): Initialize it.
18368 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18369 (Vdelete_terminal_functions): New vars.
18370 (syms_of_terminal): Initialize them.
18371 (Fdelete_terminal): Run delete-terminal-functions.
18372 * xdisp.c (safe_eval): Rewrite.
18373 (safe_call2): New fun.
18374 * frame.c (Qdelete_frame_functions): New var.
18375 (syms_of_frame): Initialize it.
18376 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18377 * lisp.h (safe_call2, pending_funcalls): Declare.
18378
18379 2008-03-28 Andreas Schwab <schwab@suse.de>
18380
18381 * indent.c (Fmove_to_column): Move declaration before statements.
18382
18383 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18384
18385 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18386 (struct frame): Use bit fields for boolean vars.
18387
18388 * process.c (server_accept_connection): Simplify naming.
18389 (emacs_get_tty_pgrp): Use SDATA.
18390
18391 * coding.c (decode_coding_object): Fix last change.
18392
18393 2008-03-27 Jason Rumney <jasonr@gnu.org>
18394
18395 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18396
18397 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18398
18399 * charset.c (Fdefine_charset_internal): Change the way of
18400 registering charsets in Vcharset_order_list.
18401 (syms_of_charset): Make the charset `eight-bit' supplementary.
18402
18403 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18404
18405 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18406 operations, to avoid having the difference between pointers
18407 overflow.
18408
18409 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18410
18411 * indent.c (check_display_width): New fun.
18412 (scan_for_column): Use it.
18413
18414 * data.c (syms_of_data): Mark most-positive-fixnum and
18415 most-negative-fixnum as constants.
18416
18417 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18418
18419 * indent.c (scan_for_column): Extract from current_column_1.
18420 Merge with the same code from Fmove_to_column.
18421 (current_column_1, Fmove_to_column): Use it.
18422
18423 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18424
18425 * keymap.c (map_keymap_internal): New fun.
18426 (map_keymap): Use it.
18427 (Fmap_keymap_internal): New fun.
18428 (Fmap_keymap): Remove left-out test from before make_save_value.
18429
18430 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18431
18432 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18433 Use XCAR/XCDR.
18434
18435 * process.h (struct Lisp_Process): Remove filter_multibyte.
18436 * process.c (QCfilter_multibyte): Remove.
18437 (setup_process_coding_systems): Don't use filter_multibyte.
18438 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18439 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18440 (Fset_process_filter_multibyte): Change the coding-system to
18441 approximate the previous behavior.
18442 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18443 coding-system.
18444
18445 * coding.c (decode_coding_object): When not decoding into a buffer,
18446 obey the coding system's preference of (uni|multi)byte.
18447
18448 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18449
18450 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18451 every char is changed and has a different byte-length.
18452 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18453 Fix int -> EMACS_INT.
18454
18455 2008-03-23 David Hansen <david.hansen@gmx.net>
18456
18457 * dbusbind.c (xd_read_message): Remove extra copying of message
18458 strings. Check for NULL `interface' or `member'.
18459
18460 2008-03-22 Eli Zaretskii <eliz@gnu.org>
18461
18462 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18463 cFileName a file name that includes `?' characters, use the 8+3
18464 alias in cAlternateFileName instead.
18465
18466 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18467
18468 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18469
18470 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18471
18472 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18473 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18474 work on current_buffer only instead (that was already the case
18475 for some of the code anyway).
18476 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18477 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18478 (SET_PT, SET_PT_BOTH): Adjust.
18479 * intervals.h (set_point, temp_set_point, set_point_both)
18480 (temp_set_point_both): Remove redundant declarations.
18481
18482 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18483
18484 * fileio.c (Finsert_file_contents):
18485 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18486 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18487 when buffer != current_buffer anyway.
18488
18489 2008-03-20 Andreas Schwab <schwab@suse.de>
18490
18491 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18492 as default.
18493
18494 2008-03-19 Jason Rumney <jasonr@gnu.org>
18495
18496 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18497 (syms_of_w32fns): Initialize them.
18498 (HOURGLASS_ID): New constant.
18499 (x_window_to_frame): Don't check hourglass_window.
18500 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18501 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18502 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18503 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18504 Only change the cursor if hourglass is not active.
18505 (Fx_create_frame): Initialize frame's current_cursor.
18506 (hourglass_atimer): Remove.
18507 (hourglass_started): New function.
18508 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18509 (show_hourglass): Adapt to w32, changing argument to frame.
18510
18511 * w32term.h (struct w32_output): Remove hourglass_window.
18512 Add current_cursor.
18513
18514 * eval.c (call_debugger, Fsignal):
18515 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18516 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18517 (Fexecute_extended_command, cancel_hourglass_unwind):
18518 * minibuf.c (read_minibuf):
18519 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18520
18521 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18522
18523 * window.c (run_funs): New fun.
18524 (run_window_configuration_change_hook): Use it to run the buffer-local
18525 and the global part of the hook.
18526
18527 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18528 (unwind_format_mode_line): Restore selected window.
18529 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18530
18531 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18532
18533 * editfns.c (Fchar_equal): Check they are valid characters.
18534
18535 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18536
18537 2008-03-17 Andreas Schwab <schwab@suse.de>
18538
18539 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18540 against a charset.
18541
18542 * lisp.h (Fbuffer_list): Declare.
18543
18544 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
18545
18546 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18547 handlebox_widget is != 0.
18548
18549 2008-03-16 Juri Linkov <juri@jurta.org>
18550
18551 * callint.c (Fcall_interactively): For interactive code letters
18552 'b' and 'B' put the buffer list into the list of default "future"
18553 values of the minibuffer.
18554
18555 2008-03-16 Andreas Schwab <schwab@suse.de>
18556
18557 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18558 modifiers.
18559
18560 * regex.c (re_match_2_internal): Correct matching of a charset
18561 against latin-1 characters.
18562
18563 2008-03-16 Kenichi Handa <handa@m17n.org>
18564
18565 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18566 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18567 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18568 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18569 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18570 CHAR_STRING_ADVANCE.
18571 (produce_chars): Fix for the case that the source and the
18572 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18573 instead of CHAR_STRING_ADVANCE.
18574 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18575 STRING_CHAR_ADVANCE.
18576
18577 2008-03-15 Andreas Schwab <schwab@suse.de>
18578
18579 * regex.c (re_match_2_internal): Correct matching of eight bit
18580 characters in unibyte strings.
18581
18582 2008-03-15 Martin Rudalics <rudalics@gmx.at>
18583
18584 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18585 at end of range when it coincides with the end of the buffer.
18586
18587 2008-03-14 Eli Zaretskii <eliz@gnu.org>
18588
18589 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18590
18591 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18592
18593 2008-03-14 Jason Rumney <jasonr@gnu.org>
18594
18595 * editfns.c (initial_tz): New variable.
18596 (syms_of_editfns): Initialize it.
18597 (Fset_time_zone_rule): Set it when first called.
18598 Use it when TZSTRING is nil.
18599
18600 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18601 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18602 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18603 (globals_of_w32fns): Initialize them.
18604 (compute_tip_xy): Use them to position tooltips.
18605
18606 2008-03-14 Glenn Morris <rgm@gnu.org>
18607
18608 * emacs.c (main): Revert previous change.
18609 (standard_args): Revert -internal-script back to -scriptload,
18610 and remove the long-option form.
18611
18612 2008-03-13 Glenn Morris <rgm@gnu.org>
18613
18614 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18615 Remove option -enable-font-backend.
18616
18617 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18618
18619 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18620
18621 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18622
18623 * xterm.c (x_connection_closed): For GTK: If this is the last
18624 terminal just exit without closing the display.
18625
18626 2008-03-11 Jason Rumney <jasonr@gnu.org>
18627
18628 * w32font.c (w32font_full_name): Use floor to round.
18629
18630 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18631
18632 * sound.c (alsa_configure): Declare vol at beginning of block.
18633
18634 * fontset.c (Ffontset_info): Remove extra semicolon.
18635
18636 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18637
18638 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18639 size of resulting string.
18640
18641 2008-03-10 Jason Rumney <jasonr@gnu.org>
18642
18643 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18644
18645 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18646
18647 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18648 Don't pretend as if characters with display property haven't been
18649 consumed for string-replacing-string case.
18650
18651 2008-03-08 Kim F. Storm <storm@cua.dk>
18652
18653 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18654 (get_next_display_element, next_element_from_string)
18655 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18656
18657 2008-03-08 Andreas Schwab <schwab@suse.de>
18658
18659 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18660
18661 2008-03-06 Jason Rumney <jasonr@gnu.org>
18662
18663 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18664 when charset not specified. Only translate ANSI to unicode when
18665 font_type is truetype.
18666 (w32font_coverage_ok): New function.
18667 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18668
18669 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18670
18671 * lread.c (Fread_char): Resolve modifiers.
18672 (Fread_char_exclusive): Likewise.
18673
18674 * character.c (char_resolve_modifier_mask): New function.
18675 (char_string): Use char_resolve_modifier_mask.
18676 (Fchar_resolve_modifiers): New function.
18677 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18678 function.
18679
18680 2008-03-04 Jason Rumney <jasonr@gnu.org>
18681
18682 * makefile.w32-in: Always include w32font.c in the build.
18683 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18684
18685 2008-03-04 Andreas Schwab <schwab@suse.de>
18686
18687 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18688 (versionclean): Likewise.
18689
18690 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
18691
18692 * .cvsignore: Add oo.
18693
18694 2008-03-03 Andreas Schwab <schwab@suse.de>
18695
18696 * coding.c (decode_coding_object): Inhibit gap shrinking while
18697 decoding in place.
18698
18699 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18700
18701 * w32term.c: Remove unused include "gnu.h".
18702 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18703
18704 * gnu.h: Rename to ...
18705 * emacs-icon.h: ... this.
18706 * xterm.c: Use emacs-icon.h instead of gnu.h.
18707 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18708
18709 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
18710
18711 * w32font.c: Include math.h.
18712
18713 2008-03-03 Jason Rumney <jasonr@gnu.org>
18714
18715 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18716 Compute options separately.
18717 (w32font_open_internal): Set glyph_idx before caching metrics.
18718
18719 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18720 Define if system headers don't.
18721 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18722 (w32font_encode_char): Don't declare here.
18723
18724 * w32font.c (Quniscribe, QCformat): New symbols.
18725 (syms_of_w32font): Define them.
18726 (w32font_has_char): Indicate uncertainty.
18727 (w32font_encode_char): Encode as glyph point. Make static.
18728 (recompute_cached_metrics): New function.
18729 (w32font_open_internal): Use it. Set font to use glyph points
18730 initially. Set format based on type of font.
18731 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18732 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18733 on it. Set format based on information available here.
18734 (add_font_entity_to_list): Identify backend based on opentype_only.
18735
18736 2008-03-02 Andreas Schwab <schwab@suse.de>
18737
18738 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18739
18740 * coding.c (decode_coding_big5, produce_chars):
18741 Fix typos in last change.
18742
18743 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18744
18745 * gnu.h: New icon.
18746
18747 2008-03-02 Kenichi Handa <handa@m17n.org>
18748
18749 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18750 `dos', don't decode '\r' if that is the last in the source.
18751 (decode_coding_utf_16, decode_coding_emacs_mule)
18752 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18753 (decode_coding_raw_text, decode_coding_charset): Likewise.
18754 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18755
18756 2008-03-01 Jason Rumney <jasonr@gnu.org>
18757
18758 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18759
18760 2008-03-01 Kim F. Storm <storm@cua.dk>
18761
18762 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18763
18764 2008-03-01 Jason Rumney <jasonr@gnu.org>
18765
18766 * w32font.c (w32font_full_name): New function.
18767 (w32font_open_internal): Use it.
18768
18769 2008-03-01 Kim F. Storm <storm@cua.dk>
18770
18771 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18772
18773 2008-03-01 Jason Rumney <jasonr@gnu.org>
18774
18775 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18776
18777 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18778
18779 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18780 xg_frame_resized when the event is for the edit widget.
18781
18782 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18783
18784 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18785 set_char_size.
18786 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18787 operations on widgets here. Just set frame size if needed.
18788 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18789 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18790 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18791 the whole frame.
18792 (xg_create_tool_bar): Move attachment of the tool bar to
18793 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18794 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18795
18796 2008-03-01 Jason Rumney <jasonr@gnu.org>
18797
18798 * w32fns.c (w32_msg_pump): Disable debug code.
18799
18800 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18801
18802 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18803
18804 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
18805
18806 * xdisp.c (next_overlay_string): Don't set
18807 overlay_strings_at_end_processed_p if we're currently reading from
18808 a display string.
18809
18810 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18811
18812 * xdisp.c (get_overlay_strings_1): Fix typo.
18813
18814 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
18815
18816 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18817
18818 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18819
18820 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18821
18822 * xdisp.c (display_mode_element): Cancel the previous change.
18823 (decode_mode_spec): Likewise.
18824 (handle_auto_composed_prop): Don't make composition if it->string
18825 is a string.
18826
18827 2008-02-27 Kim F. Storm <storm@cua.dk>
18828
18829 * lisp.h (GLYPH): Change type from int to struct with separate char
18830 and face_id members.
18831 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18832 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18833 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18834 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18835 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18836 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18837 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18838 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18839 handle new Lisp glyph code encoding, either an integer or a cons.
18840
18841 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18842 (GLYPH_ALIAS): Delete.
18843 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18844 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18845 (GLYPH_FROM_CHAR): Replace macro by ...
18846 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18847
18848 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18849 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18850 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18851 (GLYPH_INVALID_P): New macro.
18852 (spec_glyph_lookup_face): Update prototype.
18853
18854 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18855 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18856 new glyph code encoding.
18857 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18858 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18859
18860 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18861 Adapt to new glyph type and new glyph code encoding.
18862
18863 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18864
18865 * indent.c (current_column, current_column_1, Fmove_to_column)
18866 (compute_motion): Adapt to new glyph code encoding.
18867
18868 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18869
18870 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
18871
18872 * process.c (wait_reading_process_output): Check for window
18873 changes caused by timers.
18874 Suggested by Johan Bockgård.
18875
18876 2008-02-27 Glenn Morris <rgm@gnu.org>
18877
18878 * emacs.c (USAGE1): Add `--disable-font-backend'.
18879
18880 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18881
18882 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18883 is made to the buffer.
18884
18885 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18886
18887 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18888 (face_at_string_position):
18889 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18890 (face_at_string_position):
18891 * xdisp.c (display_string, next_overlay_change):
18892 * buffer.h (overlays_at):
18893 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18894 Update callers.
18895
18896 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
18897
18898 * editfns.c (Fformat): Doc fix.
18899
18900 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
18901
18902 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18903 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18904 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18905
18906 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18907
18908 * buffer.c (Fbuffer_swap_text): New function.
18909 (syms_of_buffer): Defsubr it.
18910
18911 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
18912
18913 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18914
18915 2008-02-25 Jason Rumney <jasonr@gnu.org>
18916
18917 * w32font.c (w32font_draw): Draw one character at a time when padding.
18918
18919 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18920
18921 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18922 Handle a nil arg. Use run_window_configuration_change_hook.
18923 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18924 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18925 Use run_window_configuration_change_hook.
18926
18927 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18928
18929 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18930 1-pixel width.
18931
18932 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18933
18934 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18935 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18936 if the glyph in the font is zero pixel with.
18937
18938 * dispextern.h (struct glyph_string): New member padding_p.
18939
18940 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18941
18942 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18943
18944 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18945
18946 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18947
18948 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18949
18950 2008-02-25 Jason Rumney <jasonr@gnu.org>
18951
18952 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18953
18954 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18955
18956 Allow fine-grained image-cache flushing.
18957 * dispextern.h (struct image): Add `dependencies' field.
18958 (clear_image_caches): Change arg to Lisp_Object.
18959 * image.c (make_image): Initialize `dependencies' field.
18960 (clear_image_cache): Change arg to allow fine-grained flushing.
18961 Perform the flush even if image-cache-eviction-delay is nil.
18962 (clear_image_caches): Change arg to Lisp_Object.
18963 (Fclear_image_cache): Expand meaning of the argument.
18964 (mark_image): Mark `dependencies' field.
18965 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18966 (lface_hash): Use XHASH rather than XFASTINT.
18967 (face_at_buffer_position): Fix int -> EMACS_INT position.
18968 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18969 (select_frame_for_redisplay): Remove code duplication.
18970 (redisplay_internal): Adapt arg to call to clear_image_caches.
18971
18972 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18973
18974 * s/vms4-0.h:
18975 * s/vms4-2.h:
18976 * s/vms4-4.h:
18977 * s/vms5-5.h: Remove, unused.
18978
18979 * s/irix5-2.h:
18980 * s/irix6-0.h:
18981 * s/riscos5.h:
18982 * s/mach-bsd4-3.h:
18983 * m/mips4.h: Remove files for obsolete systems.
18984
18985 * Makefile.in:
18986 * filelock.c:
18987 * unexmips.c:
18988 * m/hp9000s300.h:
18989 * m/iris4d.h:
18990 * s/aix3-1.h:
18991 * s/hpux.h:
18992 * s/msdos.h:
18993 * s/usg5-0.h:
18994 * s/usg5-2-2.h:
18995 * s/usg5-2.h:
18996 * s/usg5-3.h: Remove references to obsolete variables.
18997
18998 * s/irix5-0.h: Remove, move all the contents ...
18999 * s/irix6-5.h: ... here. Simplify.
19000 * config.in: Regenerate.
19001
19002 2008-02-24 Jason Rumney <jasonr@gnu.org>
19003
19004 * w32term.c (x_draw_glyph_string_background): Clear the background
19005 manually when cleartype is in use.
19006 (x_draw_glyph_string_foreground): Draw text transparently when
19007 cleartype is in use.
19008
19009 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
19010 a font into it unless we have to.
19011
19012 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19013
19014 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
19015 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
19016
19017 2008-02-18 Jason Rumney <jasonr@gnu.org>
19018
19019 * w32fns.c (Fw32_shell_execute): Encode parameters.
19020
19021 2008-02-09 Eli Zaretskii <eliz@gnu.org>
19022
19023 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
19024
19025 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
19026
19027 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
19028
19029 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
19030
19031 * xterm.c (x_set_offset): Don't change the gravity if
19032 CHANGE_GRAVITY is -1.
19033
19034 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
19035
19036 * fileio.c (auto_save_error_occurred): New var.
19037 (auto_save_error): Set it.
19038 (Fdo_auto_save): Don't overwrite the error message if an auto-save
19039 error occurred.
19040
19041 2008-02-23 Eli Zaretskii <eliz@gnu.org>
19042
19043 * w32.c (globals_of_w32): Add initializations for
19044 g_b_init_get_sid_sub_authority and
19045 g_b_init_get_sid_sub_authority_count.
19046
19047 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
19048
19049 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
19050 (font_parse_xlfd): Use them for sanity check.
19051 (Finternal_set_font_style_table): Make sure the table is bijective.
19052
19053 Consolidate the image_cache to the terminal struct.
19054 * termhooks.h (P_): Remove redundant def.
19055 (struct terminal): New field `image_cache'.
19056 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
19057 of FRAME_X_IMAGE_CACHE.
19058 * xterm.h (struct x_display_info): Remove image_cache field.
19059 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19060 * w32term.h (struct w32_display_info): Remove image_cache field.
19061 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19062 * macterm.h (struct mac_display_info): Remove image_cache field.
19063 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19064 * xterm.c (x_term_init):
19065 * w32term.c (w32_term_init):
19066 * macterm.c (mac_term_init): Set the image_cache in the terminal.
19067 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
19068 Remove declarations.
19069 (clear_image_caches, mark_image_cache): New declarations.
19070 * xfaces.c (clear_face_cache):
19071 * xdisp.c (redisplay_internal): Use clear_image_caches.
19072 * image.c (clear_image_cache): Don't check that a frame is on
19073 a window-system before checking if it shares the same cache.
19074 (clear_image_caches): New function.
19075 (Fclear_image_cache): Use it.
19076 (mark_image): Move from allo.c.
19077 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
19078 * alloc.c (mark_image, mark_image_cache): Move to image.c.
19079 (mark_object): Don't call mark_image_cache for frames.
19080 (mark_terminals): Call mark_image_cache.
19081
19082 * lisp.h (Fdelete_terminal): Declare.
19083
19084 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
19085 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
19086 wrong_type_argument.
19087
19088 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
19089
19090 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
19091 malayalam.el, and tamil.el. Add sinhala.el.
19092
19093 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
19094
19095 * xterm.c (x_connection_closed): Consolidate identical tests.
19096 (x_delete_terminal): Don't crash if called via x_connection_closed.
19097
19098 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
19099
19100 * xdisp.c (decode_mode_spec): New arg string.
19101 (display_mode_element): Adjust for the above change.
19102
19103 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19104
19105 * callint.c (Fcall_interactively): Use AREF.
19106
19107 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
19108
19109 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
19110
19111 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
19112
19113 * xfns.c (Fx_show_tip): Set string to " " if empty.
19114
19115 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
19116
19117 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
19118 with Qt.
19119
19120 2008-02-17 Kenichi Handa <handa@m17n.org>
19121
19122 * ftfont.c (ftfont_shape): Return Lispy number.
19123
19124 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
19125 for GCs.
19126 (Finternal_set_font_selection_order): Call font_update_sort_order
19127 only when enable_font_backend is set.
19128 (realize_x_face): Set face->font_info to that of default face only
19129 when enable_font_backend is set.
19130
19131 * xdisp.c (handle_composition_prop): Set it->c to the fist
19132 character of the composed region.
19133 (fill_composite_glyph_string): Set base_face->font_info to
19134 s->font_info. Get a face for ascii from base_face->ascii_face.
19135 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
19136 with a face already decided.
19137 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
19138 non-negative.
19139 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
19140 call font_prepare_composition unconditionally.
19141
19142 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
19143
19144 * xterm.h (struct x_display_info): New member font.
19145
19146 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
19147 (x_set_mouse_face_gc, x_new_font): Likewise.
19148 (x_term_init): Setup display_info->font.
19149 (x_delete_terminal): Free display_info->font.
19150
19151 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
19152
19153 * ftxfont.c (ftxfont_default_fid): Delete it.
19154 (ftxfont_open): Set xfont->fid to 0.
19155 (ftxfont_end_for_frame): Clear data specific to the frame and the
19156 font-driver.
19157
19158 * xftfont.c (xftfont_default_fid): Delete it.
19159 (xftfont_open): Set xfont->fid to 0.
19160
19161 * fontset.c (FONTSET_OBJLIST): New macro.
19162 (fontset_find_font): Update font-object list of the fontset.
19163 (free_realized_fontset): New function.
19164 (free_face_fontset): Call free_realized_fontset.
19165 (Ffont_info): Call font_close_object only when enable_font_backend
19166 is set.
19167
19168 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
19169 [HAVE_NTGUI]: Include w32term.h.
19170 [MAC_OS]: Include macterm.ch.
19171 (font_otf_ValueRecord): Use make_number.
19172 (font_finish_cache): Fix handling of reference count.
19173 (font_clear_cache): Update num_fonts.
19174 (font_open_entity): Update smallest_char_width and
19175 smallest_font_height of the frame.
19176 (font_close_object): Update num_fonts.
19177 (Fclear_font_cache): Fix finding the target cache data.
19178
19179 2008-02-16 Glenn Morris <rgm@gnu.org>
19180
19181 * fontset.c (Finternal_char_font): Fix compilation warning.
19182
19183 2008-02-16 Eli Zaretskii <eliz@gnu.org>
19184
19185 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
19186 instead of char arrays. Enlarge the size of array passed to
19187 get_token_information.
19188
19189 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
19190 warnings.
19191
19192 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
19193
19194 * .gdbinit: Don't set `args', it breaks gdb --args.
19195
19196 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
19197
19198 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
19199 within a narrowed buffer.
19200
19201 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
19202
19203 * coding.c (decode_coding_object, encode_coding_object):
19204 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
19205
19206 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
19207
19208 * coding.c (coding_set_destination): Use BEG_BYTE rather than
19209 hardcoding 1.
19210 (detect_coding_system):
19211 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
19212 (string_char_to_byte, string_byte_to_char, insert_from_gap):
19213 * insdel.c (insert_from_gap):
19214 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
19215 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
19216 (string_to_multibyte):
19217 * character.c (chars_in_text, multibyte_chars_in_text):
19218 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
19219
19220 * character.h (FETCH_STRING_CHAR_ADVANCE)
19221 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
19222 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
19223 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
19224
19225 * casefiddle.c (casify_region): Only call after-change and composition
19226 functions on the part of the region that was changed.
19227
19228 * keyboard.c (read_avail_input):
19229 * frame.c (Fdelete_frame): Call Fdelete_terminal.
19230
19231 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19232
19233 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
19234 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
19235
19236 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
19237
19238 * w32menu.c (push_submenu_start, push_submenu_end)
19239 (push_left_right_boundary, push_menu_pane, push_menu_item):
19240 * keyboard.c (read_key_sequence): Don't pass args with side effects
19241 to AREF, it fails when compiling with -DENABLE_CHECKING.
19242
19243 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
19244
19245 * Makefile.in (${lispsource}international/charprop.el):
19246 Delete this target.
19247
19248 * search.c (boyer_moore): Fix incorrect synching of the trunk and
19249 emacs-unicode-2.
19250
19251 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19252
19253 * terminal.c (Fdelete_terminal): Clean up the `force' path.
19254
19255 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19256
19257 * frame.c (Qnoelisp): New symbol.
19258 (syms_of_frame): Initialize it.
19259 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
19260 harmless Elisp code, from a strong `force' from x_connection_closed.
19261 * frame.h (Qnoelisp): Declare.
19262 * xterm.c (x_connection_closed): Pass `noelisp'.
19263
19264 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
19265 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
19266 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
19267 rather than `int' for the type of `type'.
19268
19269 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
19270
19271 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
19272
19273 * Makefile.in (GNUC): Remove support for gcc-1.x.
19274
19275 2008-02-10 Richard Stallman <rms@gnu.org>
19276
19277 * lisp.h (ASET): Use AREF, not ASLOT.
19278
19279 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19280
19281 * lisp.h (ASET): Check bounds.
19282
19283 2008-02-10 Glenn Morris <rgm@gnu.org>
19284
19285 * buffer.c (mode-name): Doc fix.
19286
19287 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19288
19289 * Makefile.in:
19290 * emacs.c:
19291 * gmalloc.c:
19292 * keyboard.c:
19293 * lisp.h:
19294 * m/ibm370aix.h:
19295 * process.c:
19296 * regex.c:
19297 * s/hpux.h:
19298 * sysdep.c:
19299 * sysselect.h:
19300 * systty.h:
19301 * unexec.c:
19302 * w32term.c:
19303 * xsmfns.c:
19304 * xterm.c: Remove code that deals with obsolete variables.
19305
19306 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
19307
19308 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
19309 nothing else needs it anymore.
19310
19311 2008-02-09 Eli Zaretskii <eliz@gnu.org>
19312
19313 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
19314 instead of unibyte_char_to_multibyte.
19315
19316 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19317
19318 * s/gnu-linux.h: Remove commented out code.
19319
19320 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19321
19322 * Makefile.in: Update what RMS says about using autoconf.
19323 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19324 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19325 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19326 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19327
19328 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
19329
19330 * keymap.c (Fkey_description): Move side effect outside of macro call.
19331
19332 * xfaces.c (Finternal_make_lisp_face):
19333 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19334
19335 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19336 (syms_of_fontset): Use ASET.
19337
19338 * fns.c (concat): Move side effect outside of macro call.
19339 (hash_clear): Use ASET.
19340
19341 2008-02-08 Richard Stallman <rms@gnu.org>
19342
19343 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19344 If FORCE, and frame has a surrogate minibuffer for another frame,
19345 delete the other frame first.
19346
19347 2008-02-07 Timo Savola <timo.savola@iki.fi>
19348
19349 * xterm.c (x_detect_focus_change): Handle embed client message.
19350 (handle_one_xevent): Ditto.
19351 (handle_one_xevent): If embedded and we get a button press/release,
19352 request focus.
19353 (xembed_set_info, xembed_send_message): New functions.
19354 (x_make_frame_visible): Call xembed_set_info if embedded.
19355 (x_make_frame_invisible): Call xembed_set_info if embedded.
19356 (x_term_init): Initialize Xatom_XEMBED.
19357 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19358 (x_iconify_frame): Ditto.
19359
19360 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19361 (enum xembed_info, enum xembed_message, enum xembed_focus)
19362 (enum xembed_modifier, enum xembed_accelerator): New.
19363 (xembed_set_info, xembed_send_message): Declare.
19364 (FRAME_X_EMBEDDED_P): New.
19365
19366 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19367 gtk_plug_new.
19368
19369 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19370 window ID of a frame.
19371 (x_window): Reparent frame if embedded.
19372 (Fx_create_frame): Don't set border width if embedded.
19373
19374 * emacs.c (USAGE3): Add --parent-id.
19375 (standard_args): Ditto.
19376
19377 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19378
19379 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19380
19381 2008-02-07 Jim Meyering <meyering@redhat.com>
19382
19383 Use "do...while (0)", not "if (1)...else" in macro definitions.
19384 The latter provokes a warning from gcc about the empty else, when
19385 followed by ";". Also, without that trailing semicolon, it would
19386 silently swallow up any following statement.
19387 * syntax.h (SETUP_SYNTAX_TABLE)
19388 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19389 * buffer.h (DECODE_POSITION): Likewise.
19390 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19391 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19392 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19393 (FETCH_CHAR_ADVANCE): Likewise.
19394 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19395
19396 2008-02-07 Jim Meyering <meyering@redhat.com>
19397
19398 * lread.c [lint]: Don't include <sys/inode.h>.
19399
19400 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19401
19402 * xselect.c (x_handle_dnd_message):
19403 * xmenu.c (digest_single_submenu, xmenu_show):
19404 * xdisp.c (with_echo_area_buffer_unwind_data)
19405 (format_mode_line_unwind_data, unwind_format_mode_line)
19406 (display_menu_bar):
19407 * eval.c (Ffetch_bytecode):
19408 * doc.c (store_function_docstring):
19409 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19410 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19411 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19412
19413 2008-02-07 Kenichi Handa <handa@m17n.org>
19414
19415 * ftxfont.c (ftxfont_open): Don't set
19416 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19417
19418 * ftfont.c (ftfont_open): Fix previous change.
19419
19420 2008-02-06 Jason Rumney <jasonr@gnu.org>
19421
19422 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19423 Use cached metrics for ASCII characters.
19424 (w32font_open_internal): Don't set font's owning_frame.
19425 Cache metrics for ASCII characters.
19426
19427 * w32font.h (struct w32font_info): Add ascii_metrics.
19428 Remove owning_frame.
19429
19430 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19431
19432 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19433 to negative value.
19434
19435 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19436
19437 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19438
19439 * charset.c (syms_of_charset): Set QCtest and Qeq.
19440
19441 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19442
19443 * process.c (Fstart_process):
19444 * callproc.c (Fcall_process): Handle the case where
19445 Funhandled_file_name_directory returns nil.
19446
19447 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19448 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19449 * font.c (check_gstring): Use them and AREF to access the vector before
19450 we know it's really a gstring.
19451 (Ffont_shape_text): Fix typo.
19452 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
19453
19454 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19455 Declare.
19456
19457 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19458
19459 2008-02-05 Jason Rumney <jasonr@gnu.org>
19460
19461 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19462 Set smallest_font_height and smallest_char_width in display info.
19463
19464 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19465
19466 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19467
19468 2008-02-05 Miles Bader <miles@gnu.org>
19469
19470 * xfaces.c (get_lface_attributes, merge_named_face)
19471 (lookup_named_face, lookup_derived_face, realize_named_face):
19472 Revert 2008-02-01 change by cyd@stupidchicken.com.
19473
19474 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19475
19476 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19477 fallback fonts.
19478 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19479
19480 2008-02-04 Jason Rumney <jasonr@gnu.org>
19481
19482 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19483 set full_name.
19484 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19485
19486 2008-02-03 Jason Rumney <jasonr@gnu.org>
19487
19488 * makefile.w32-in (OBJ1): Include font.o here.
19489 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19490
19491 2008-02-02 Jason Rumney <jasonr@gnu.org>
19492
19493 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19494
19495 2008-02-01 Jason Rumney <jasonr@gnu.org>
19496
19497 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19498
19499 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19500
19501 2008-02-01 Andreas Schwab <schwab@suse.de>
19502
19503 * Makefile.in (shortlisp, lisp): Update for rename of
19504 ../lisp/language/myanmar.el.
19505
19506 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
19507
19508 * xfaces.c (get_lface_attributes): Delete function.
19509 (merge_named_face, lookup_named_face, lookup_derived_face)
19510 (realize_named_face): Call lface_from_face_name directly, and use
19511 the fact that merge_face_vectors does not alter its FROM argument.
19512
19513 2008-02-01 Jason Rumney <jasonr@gnu.org>
19514
19515 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19516 input in the default locale. Handle non-Unicode multibyte input.
19517
19518 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19519
19520 * fontset.c (reorder_font_vector): Exclude nil elements from the
19521 font group. Don't try multiple fonts.
19522 (fontset_font): Adjust for the above change.
19523 (Finternal_char_font): Return nil if the found font doesn't
19524 contain the character ch.
19525
19526 * Makefile.in (lisp, shortlisp): Add cham.el.
19527
19528 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19529
19530 * font.h (FONTP): Make it return 1 also for a font-object.
19531
19532 * .gdbinit (xfontset): New function.
19533
19534 * font.c (font_find_for_lface): Check if the character C is
19535 supported or not only for the first font.
19536
19537 * fontset.c (reorder_font_vector): Fix typo.
19538 (fontset_find_font): Don't add a font-spec specifying a script.
19539 Use 0 (not Qt) for the indication of empty font-group. Change the
19540 format of RFONT-DEF. Return Qt if no font in the font-group
19541 support the character.
19542 (fontset_font): Adjust for the above change. If no font was
19543 found the character, remember that.
19544 (face_for_char): Adjust for the change of RFONT-DEF.
19545 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19546 no font for the target.
19547 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19548
19549 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19550
19551 * font.c (font_load_for_face): Handle the case that the font in
19552 face->lface is a string.
19553
19554 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19555
19556 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19557
19558 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19559
19560 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19561 Fix previous change. If the frame is not on a window system,
19562 signal an error.
19563
19564 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19565
19566 * coding.c (decode_coding_object, encode_coding_object): Adjust
19567 marker positions after conversion.
19568
19569 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19570
19571 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19572
19573 * font.c (font_find_for_lface): Fix the handling of the return
19574 value of font_has_char.
19575 (Ffont_shape_text): Fix previous change.
19576
19577 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19578 (fontset_ref_and_range): Delete it.
19579 (fontset_find_font): Call char_table_ref_and_range instead of
19580 FONTSET_REF_AND_RANGE.
19581 (make_fontset): Don't setup font groups of Latin here.
19582 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19583 (new_fontset_from_font): Make the specified font the default for
19584 all Latin characters.
19585
19586 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19587
19588 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19589 is on a window system before accessing the fontset of the frame.
19590
19591 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19592
19593 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19594
19595 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19596 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19597
19598 * font.c (Ffont_shape_text): If the font driver doesn't have a
19599 shaper function, make zero-width glyphs to have at least one-pixel
19600 width. Fix setting of `to' field of glyphs.
19601
19602 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19603
19604 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19605 glyphs.
19606
19607 * font.h (struct font_driver): Improve docstring of member `shape'.
19608
19609 2008-02-01 Kenichi Handa <handa@m17n.org>
19610
19611 * composite.c (syms_of_composite): Fix docstring of
19612 auto-composition-function.
19613
19614 * font.h (LGLYPH_SIZE): New macro.
19615
19616 * font.c (Ffont_fill_gstring): Stop filling when a character not
19617 supported by the font is found.
19618 (Ffont_shape_text): When a shape callback function returns nil,
19619 try at most two more times with larger gstring.
19620 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19621
19622 * xdisp.c (handle_auto_composed_prop): Change the argument to
19623 auto-composition-function.
19624
19625 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19626 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19627 Lispy glyph and store it in the lgstring.
19628
19629 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19630
19631 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19632
19633 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19634
19635 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19636
19637 * fontset.c (Vfont_encoding_charset_alist): New variable.
19638 (syms_of_fontset): DEFVAR it.
19639 (reorder_font_vector, fontset_find_font): Optimize for the case of
19640 no need of reordering.
19641 (face_for_char): Map the charset property by
19642 Vfont_encoding_charset_alist.
19643
19644 2008-02-01 Jason Rumney <jasonr@gnu.org>
19645
19646 * w32font.c (logfonts_match): Don't check adstyle here.
19647 (font_matches_spec): Check here against physical font instead.
19648 (add_font_entity_to_list): Avoid some substitutions.
19649
19650 * font.c (font_parse_fcname): Default weight and slant to normal.
19651 (font_score): Prefer normal fonts if weight or slant unspecified.
19652 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19653 match freetype scores.
19654
19655 2008-02-01 Jason Rumney <jasonr@gnu.org>
19656
19657 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19658 font, as it may have been deleted.
19659 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19660 most common hyphenless variation.
19661 (logfonts_match): Check generic family.
19662 (font_matches_spec): Don't check generic family here.
19663 (fill_in_logfont): Set generic family based on adstyle.
19664
19665 * w32font.h (w32font_get_cache): Update declaration.
19666
19667 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19668
19669 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19670
19671 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19672 If none of the new drivers are available, call font_update_drivers
19673 with the old drivers.
19674
19675 * w32font.c (w32font_get_cache): Adjust the argument type.
19676
19677 * xfont.c (xfont_get_cache): Adjust the argument type.
19678
19679 * font.h (struct font_driver): Change argument type of get_cache.
19680
19681 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19682
19683 * font.c (Ffont_get): Fix arguments to Fassoc.
19684 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19685 (font_clear_cache): New function.
19686 (font_list_entities, font_matching_entity): Use font_get_cache.
19687 (font_update_drivers): Call font_clear_cache when finishing a driver.
19688
19689 * fontset.c (fontset_find_font): Fix previous change.
19690
19691 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19692
19693 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19694 dpyinfo->font_table.
19695 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19696 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19697
19698 * font.c (font_at): Handle the case that the arg C is negative.
19699 Handle the unibyte case.
19700 (Ffont_at): Call font_at with the arg C -1.
19701
19702 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19703 the position here, and call font_at with the arg C -1.
19704 Don't check the range of the existing composition at the point.
19705
19706 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19707
19708 * fontset.c (fontset_add): New args charset_id and family.
19709 Change caller.
19710 (load_font_get_repertory, fontset_find_font): Assume that
19711 font_spec is always a font-spec object.
19712 (Fset_fontset_font): Always store a font-spec object in a fontset.
19713
19714 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19715 instead of get_property_and_range.
19716
19717 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19718
19719 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19720 (xftfont_open): Don't keep locking face.
19721 (xftfont_close): Don't unlock face.
19722 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19723
19724 * fontset.c (fontset_find_font): Don't prefer a font of
19725 supplementary charset.
19726
19727 2008-02-01 Kenichi Handa <handa@m17n.org>
19728
19729 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19730 script, langsys_tag to langsys, new member script.
19731 (OTF_TAG_STR): Terminate by '\0'.
19732 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
19733 listing to the script specified in that property. Fix arg to
19734 OTF_check_features.
19735
19736 2008-02-01 Jason Rumney <jasonr@gnu.org>
19737
19738 * w32font.h: New file.
19739
19740 * w32font.c: Include it.
19741 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19742 (w32font_open): Set owning_frame.
19743 (w32font_text_extents): Use owning_frame.
19744 (struct font_callback_data): Add opentype_only field.
19745 (add_font_entity_to_list): Use it to filter fonts.
19746 Don't check against full name.
19747 (w32font_list_internal): New function.
19748 (w32font_list): Use it.
19749 (w32font_match_internal): New function.
19750 (w32font_match): Use it.
19751 (w32font_open_internal): New function.
19752 (w32font_open): Use it.
19753 (w32font_get_cache, w32font_close, w32font_has_char)
19754 (w32font_encode_char, w32font_text_extents, w32font_draw):
19755 Make non-static.
19756
19757 * makefile.w32-in (w32font.o): Depend on w32font.h.
19758
19759 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19760
19761 * charset.c (Fdefine_charset_internal): Record a supplementary
19762 charset at the tail of Vcharset_order_list.
19763
19764 * font.c (Ffont_shape_text): Fix the return value.
19765
19766 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19767
19768 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19769
19770 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19771
19772 * ftfont.c (struct OpenTypeSpec): New struct.
19773 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19774 (ftfont_get_open_type_spec): New function.
19775 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19776
19777 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19778
19779 2008-02-01 Jason Rumney <jasonr@gnu.org>
19780
19781 * w32font.c (add_font_entity_to_list): Compare only the beginning
19782 of full name.
19783
19784 2008-02-01 Kenichi Handa <handa@m17n.org>
19785
19786 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19787 Never return HANDLED_RECOMPUTE_PROPS.
19788
19789 2008-02-01 Kenichi Handa <handa@m17n.org>
19790
19791 * font.c (font_gstring_produce): Delete it.
19792
19793 * composite.h (COMPOSITION_METHOD):
19794 Handle COMPOSITION_WITH_GLYPH_STRING.
19795
19796 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19797
19798 * xfont.c (Qx): Delete.
19799 (syms_of_xfont): Don't initialize Qx.
19800
19801 * composite.h (enum composition_method):
19802 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19803
19804 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19805
19806 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19807 (choose_face_font): Accept new form of font-spec.
19808
19809 * frame.h (font_driver_list): Declare it unconditionally.
19810 (struct frame): Define members font_driver_list and font_data_list
19811 unconditionally.
19812
19813 * fontset.c: Include "font.h" unconditionally.
19814 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19815 (Fset_fontset_font): Accept a font-spec object.
19816
19817 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19818 PIXEL_SIZE part a wild card.
19819
19820 * dispextern.h (struct glyph_string): Define members clip and
19821 num_clips unconditionally.
19822 (struct face): Define members font_info and extra unconditionally.
19823
19824 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19825 ftfont_info only when HAVE_LIBOTF is defined.
19826
19827 2008-02-01 Andreas Schwab <schwab@suse.de>
19828
19829 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19830 and end.
19831
19832 2008-02-01 Jason Rumney <jasonr@gnu.org>
19833
19834 * w32font.c (w32font_driver): Add new fields.
19835
19836 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19837
19838 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19839 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19840 (LIBES): Add @M17N_FLT_CFLAGS@.
19841
19842 * composite.c (compose_text): Don't treat the new style
19843 composition specially.
19844
19845 * emacs.c (main): Call syms_of_font unconditionally.
19846
19847 * font.h (FONT_ENTITY_NOT_LOADABLE)
19848 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19849 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19850 (struct font_driver): New member shape.
19851 (font_registry_charsets): Extern it.
19852 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19853 (font_otf_capability, font_drive_otf): Delete their externs.
19854
19855 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19856 (font_charset_alist, font_registry_charsets): Move from xfont.c
19857 and rename.
19858 (font_prop_validate_otf): New function.
19859 (font_property_table): Register it for QCotf.
19860 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19861 (font_drive_otf): Delete.
19862 (font_prepare_composition): New arg F. Adjust for the change of
19863 lispy gstring.
19864 (font_find_for_lface): New arg C.
19865 (font_load_for_face): Adjust for the change of font_find_for_lface.
19866 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19867 lispy gstring.
19868 (Ffont_shape_text): New function.
19869 (Fopen_font): If the font size is not given, use 12-pixel.
19870 (Ffont_at): New arg STRING.
19871 (syms_of_font): Initialize font_charset_alist.
19872 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19873 conditionally.
19874
19875 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19876 fonts of the same font-spec. Change the format of RFONT-DEF.
19877 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19878 Adjust for the change of RFONT-DEF.
19879 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19880
19881 * ftfont.h: New file.
19882
19883 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19884 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19885 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19886 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19887 font_otf_capability and font_drive_otf, set ftfont_shape.
19888 (ftfont_list): Adjust for the change of :otf property value.
19889 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19890 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19891 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19892 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19893 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19894 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19895
19896 * w32term.c (x_draw_composite_glyph_string_foreground):
19897 Adjust for the change of lispy gstring.
19898
19899 * xdisp.c (handle_composition_prop): Adjust for the change of
19900 lispy gstring. Call a function for auto-composition with the
19901 third arg it->window.
19902 (fill_composite_glyph_string): Adjust for the change of lispy string.
19903 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19904
19905 * xfaces.c (set_font_frame_param): Adjust for the change of
19906 font_find_for_lface.
19907
19908 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19909 (xfont_registry_charsets): Likewise. Change caller.
19910 (syms_of_xfont): Don't handle x_font_charset_alist.
19911
19912 * xftfont.c: Include "ftfont.h".
19913 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19914 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19915 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19916 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19917 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19918 Set xftfont_driver.shape to xftfont_shape.
19919
19920 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19921 the change of lispy gstring.
19922
19923 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19924
19925 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19926
19927 2008-02-01 Jason Rumney <jasonr@gnu.org>
19928
19929 * w32font.c (w32font_draw): Fill background manually.
19930
19931 2008-02-01 Jason Rumney <jasonr@gnu.org>
19932
19933 * font.c (Qfontp): Remove unused symbol.
19934 (QCantialias): New symbol.
19935 (syms_of_font): Define it.
19936 (font_property_table): Set a validator for QCantialias.
19937
19938 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19939 Define if not already.
19940 (QCfamily): Share with xfaces.c.
19941 (Qstandard, Qsubpixel, Qnatural): New symbols.
19942 (syms_of_w32font): Define them. Don't define QCfamily here.
19943 (w32_antialias_type, lispy_antialias_type): New functions.
19944 (w32_enumfont_pattern_entity): New arg requested_font.
19945 Set antialias parameter if non-default was requested.
19946 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19947
19948 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19949
19950 * lread.c (read1): Undo the previous change.
19951
19952 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19953
19954 * frame.c (Fdelete_frame): Call font_update_drivers only when
19955 USE_FONT_BACKEND is defined.
19956
19957 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19958
19959 * font.h (struct font_bitmap): New member bits_per_pixel.
19960 (struct font_driver): New members start_for_frame and end_for_frame.
19961 (struct font_data_list): New struct.
19962 (font_put_frame_data, font_get_frame_data): Extern them.
19963
19964 * frame.h (struct frame): New member font_data_list.
19965
19966 * font.c (font_update_drivers): Call driver->start_for_frame and
19967 driver->end_for_frame at proper timings.
19968 (font_put_frame_data, font_get_frame_data): New functions.
19969 (Ffont_spec): Add usage in the docstring.
19970
19971 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19972 (Fdelete_frame): Call font_update_drivers.
19973
19974 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19975 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19976 (xftfont_get_xft_draw): New function.
19977 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19978 (xftfont_end_for_frame): New function.
19979 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19980
19981 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19982 Change argument. Cache GCs in the per-frame data.
19983 (struct ftxfont_frame_data): New struct.
19984 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19985 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19986 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19987 (ftxfont_end_for_frame): New function.
19988 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19989
19990 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19991
19992 2008-02-01 Kenichi Handa <handa@m17n.org>
19993
19994 * xselect.c (Vselection_coding_system)
19995 (Vnext_selection_coding_system): Delete them.
19996 (syms_of_xselect): Don't declare selection-coding-system and
19997 next-selection-coding-system. They are declared in select.el.
19998
19999 2008-02-01 Jason Rumney <jasonr@gnu.org>
20000
20001 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
20002
20003 * w32fns.c: Include imm.h.
20004 (get_composition_string_fn, get_ime_context_fn): New optional
20005 system functions.
20006 (globals_of_w32fns): Load them from imm32.dll.
20007 (ignore_ime_char): New flag.
20008 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
20009 WM_IME_ENDCOMPOSITION messages.
20010
20011 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
20012 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
20013
20014 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20015
20016 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
20017 (READCHAR_REPORT_MULTIBYTE): New macro.
20018 (readchar): New 2nd arg MULTIBYTE.
20019 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
20020 Make symbol's name multibyte according to the multibyteness of the
20021 source.
20022
20023 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20024
20025 * xfaces.c (face_for_overlay_string): Call lookup_face with
20026 correct arguments (fix of synching with the trunk).
20027
20028 2008-02-01 Kenichi Handa <handa@m17n.org>
20029
20030 * font.c (font_prop_validate_symbol, font_prop_validate_style)
20031 (font_prop_validate_non_neg, font_prop_validate_spacing):
20032 Delete argument prop_index.
20033 (font_property_table): Change arguments to validater. Change Callers.
20034 (font_lispy_object): Delete.
20035 (font_at): Use font_find_object instead fo font_lispy_object.
20036
20037 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20038
20039 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
20040 and file names.
20041
20042 2008-02-01 Jason Rumney <jasonr@gnu.org>
20043
20044 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
20045 (font_matches_spec): Remove debug output.
20046 (add_font_entity_to_list): Avoid using substituted fonts.
20047
20048 2008-02-01 Jason Rumney <jasonr@gnu.org>
20049
20050 * doc.c (Fsnarf_documentation):
20051 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
20052
20053 2008-02-01 Miles Bader <miles@gnu.org>
20054
20055 * dispextern.h (struct glyph_row): Only define "clip" field if
20056 HAVE_WINDOW_SYSTEM is defined.
20057
20058 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20059
20060 Fix up multi-tty merge.
20061
20062 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
20063 and indentation.
20064
20065 * xfaces.c (free_realized_face, clear_face_gcs):
20066 Include font_done_for_face in the input_blocked section, just in case.
20067
20068 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
20069 (get_char_face_and_encoding): Undo last change and remove the *other*
20070 duplicate definition (i.e. keep the one that's better scoped and that
20071 includes code for the font-backend).
20072
20073 * terminal.c (create_terminal): Default keyboard_coding to
20074 `no-conversion' and terminal_coding to `undecided'.
20075
20076 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
20077
20078 * fontset.c (free_realized_fontsets): Check that the table entry does
20079 contain a fontset before trying to compare it to `base'.
20080
20081 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
20082 syms_of_charset, and syms_of_coding earlier because init_window_once
20083 now needs Vcoding_system_hash_table to be setup.
20084
20085 * coding.h (default_buffer_file_coding): Remove.
20086
20087 * coding.c (default_buffer_file_coding): Remove.
20088 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
20089 than ->symbol, and use the terminal-local coding system.
20090 (syms_of_coding): Don't setup the coding-systems that are not
20091 terminal-local.
20092 (Fdefine_coding_system_internal): Use XCAR/XCDR.
20093
20094 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
20095 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
20096
20097 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
20098 in chartab.c and were re-added here by mistake.
20099 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
20100
20101 * doc.c (Fsnarf_documentation):
20102 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
20103 src to etc.
20104
20105 * ChangeLog.10: Add mistakenly removed entry.
20106
20107 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
20108
20109 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
20110
20111 2008-02-01 Miles Bader <miles@gnu.org>
20112
20113 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
20114 Add extra args to FACE_FOR_CHAR.
20115
20116 2008-02-01 Kenichi Handa <handa@m17n.org>
20117
20118 * keymap.c (where_is_internal_1): If key is a cons, store the copy
20119 in sequence.
20120
20121 * chartab.c (map_sub_char_table, map_char_table): If the range
20122 contains just one character, call the function with that character
20123 even if the depth is not 3.
20124
20125 2008-02-01 Jason Rumney <jasonr@gnu.org>
20126
20127 * w32font.c (w32font_text_extents): Calculate metrics for the
20128 whole string.
20129
20130 2008-02-01 Jason Rumney <jasonr@gnu.org>
20131
20132 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
20133
20134 2008-02-01 Jason Rumney <jasonr@gnu.org>
20135
20136 * w32term.c (x_set_glyph_string_clipping): Use
20137 get_glyph_string_clip_rects.
20138 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20139 Adjust for the change of struct glyph_string.
20140
20141 * w32font.c (w32font_draw): Do clipping here.
20142
20143 2008-02-01 Kenichi Handa <handa@m17n.org>
20144
20145 * xftfont.c (xftfont_draw): Adjust for the change of struct
20146 glyph_string.
20147
20148 * xterm.c (x_set_glyph_string_clipping): Use
20149 get_glyph_string_clip_rects.
20150 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20151 Adjust for the change of struct glyph_string.
20152
20153 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
20154 the resulting clip(s}.
20155 (expose_overlaps): Add arg r. Change callers. Set it to
20156 row->clip temporarily.
20157 (expose_window): Redraw rows overlapping the exposed area.
20158
20159 * dispextern.h (struct glyph_row): New member clip.
20160 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
20161 clip_height, new member clip, and num_clips.
20162
20163 2008-02-01 Kenichi Handa <handa@m17n.org>
20164
20165 * data.c (Fchar_or_string_p): Fix docstring.
20166
20167 2008-02-01 Kenichi Handa <handa@m17n.org>
20168
20169 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
20170 create a temporary XftDraw object.
20171
20172 2008-02-01 Kenichi Handa <handa@m17n.org>
20173
20174 * font.c (Ffontp): Fix docstring.
20175
20176 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
20177 strong evidence of ISO-2022.
20178
20179 2008-02-01 Kenichi Handa <handa@m17n.org>
20180
20181 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
20182 SYNTAX_ENTRY_FOLLOW_PARENT.
20183
20184 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20185
20186 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
20187 its type.
20188 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20189 Update to the new type of weak_hash_tables and next_weak.
20190
20191 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
20192 a plain C pointer to Lisp_Hash_Table.
20193
20194 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
20195 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
20196 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
20197 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
20198 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
20199 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
20200 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
20201 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
20202 (GC_EQ): Remove since they've been identical to their non-GC_
20203 alter-egos ever since the markbit was eradicated.
20204
20205 * alloc.c:
20206 * buffer.c:
20207 * buffer.h:
20208 * data.c:
20209 * fileio.c:
20210 * filelock.c:
20211 * fns.c:
20212 * frame.h:
20213 * lisp.h:
20214 * macterm.c:
20215 * print.c:
20216 * process.c:
20217 * w32fns.c:
20218 * w32menu.c:
20219 * w32term.c:
20220 * xfns.c:
20221 * xmenu.c:
20222 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
20223
20224 2008-02-01 Kenichi Handa <handa@m17n.org>
20225
20226 * chartab.c (map_sub_char_table): Make it work for the top-level
20227 char-table. Fix handling of parent char-table.
20228 (map_char_table): Adjust for the above change.
20229
20230 2008-02-01 Jason Rumney <jasonr@gnu.org>
20231
20232 * w32font.c (Qgdi): Rename from Qw32.
20233
20234 2008-02-01 Jason Rumney <jasonr@gnu.org>
20235
20236 * w32bdf.c (get_quoted_string): Make function static.
20237
20238 2008-02-01 Kenichi Handa <handa@m17n.org>
20239
20240 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
20241 bigger ascent and descent than those of the font, use them as
20242 font's ascent and descent.
20243
20244 2008-02-01 Kenichi Handa <handa@m17n.org>
20245
20246 * Makefile.in (${lispsource}international/charprop.el): Move this
20247 target within "#ifdef HAVE_UNIDATA" and "#endif".
20248
20249 2008-02-01 Kenichi Handa <handa@m17n.org>
20250
20251 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
20252 (shortlisp): Add ../lisp/language/tai-viet.el.
20253
20254 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
20255
20256 * Makefile.in (${lispsource}international/charprop.el): Depend on
20257 temacs${EXEEXT}.
20258
20259 2008-02-01 Jason Rumney <jasonr@gnu.org>
20260
20261 * w32font.c (w32font_close): Delete the GDI font object.
20262
20263 * w32menu.c: Include character.h.
20264
20265 * w32proc.c: Likewise.
20266
20267 * w32select.c: Likewise.
20268
20269 * makefile.w32-in (w32proc.o): Depend on character.h.
20270
20271 2008-02-01 Jason Rumney <jasonr@gnu.org>
20272
20273 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
20274
20275 * w32menu.c (syms_of_w32menu): Likewise.
20276
20277 * w32proc.c (syms_of_ntproc): Likewise.
20278
20279 * w32select.c (syms_of_w32select): Likewise.
20280
20281 * w32term.c (syms_of_w32term): Likewise.
20282
20283 2008-02-01 Jason Rumney <jasonr@gnu.org>
20284
20285 * w32font.c (w32font_draw): Delete brush after using it.
20286
20287 2008-02-01 Jason Rumney <jasonr@gnu.org>
20288
20289 * w32font.c (w32font_open): Don't set font_idx.
20290 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
20291 to font settings.
20292 (w32font_draw): Fill background explicitly.
20293
20294 2008-02-01 Jason Rumney <jasonr@gnu.org>
20295
20296 * w32term.c (w32_initialize): Don't call w32font_initialize.
20297
20298 * w32font.c (w32font_info): Remove subranges.
20299 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
20300 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
20301 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
20302 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
20303 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
20304 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
20305 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
20306 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
20307 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
20308 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
20309 New symbols.
20310 (font_callback_data): New struct.
20311 (w32font_list, w32font_match): Use it.
20312 (w32font_open): Don't populate subranges.
20313 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
20314 (w32font_encode_char): Always return unicode code-point as-is.
20315 (w32font_text_extents): Supply a transformation matrix to
20316 GetGlyphOutline. Never look up by glyph index. Avoid looping
20317 twice. Use unicode version of GetTexExtentPoint32 instead of
20318 glyph index version.
20319 (set_fonts_frame): Remove.
20320 (w32_enumfont_pattern_entity): Add frame parameter, use it to
20321 set frame parameter. Use backward compatible fake foundries.
20322 Save generic family in extra slot under QCfamily. Make width slot
20323 constant. Save QCspacing value. Save list of scripts instead of
20324 binary subranges.
20325 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20326 (add_font_entity_to_list): Use font_callback_data struct. Filter
20327 unwanted fonts.
20328 (add_one_font_entity_to_list): Use font_callback_data struct.
20329 (w32_registry): Default to iso10646_1.
20330 (fill_in_logfont): Use dpi from extra slot. Don't bother with
20331 string font registries. Don't fill in font name if it is a generic
20332 family name, fill family instead. Use spacing, family and script
20333 extra info to fill pitch, family and charset fields.
20334 (list_all_matching_fonts): Use font_callback_data struct.
20335 (unicode_range_for_char): Remove.
20336 (font_supported_scripts): New function.
20337 (w32font_initialize): Remove.
20338 (syms_of_w32font): Update which symbols are defined.
20339
20340 2008-02-01 Jason Rumney <jasonr@gnu.org>
20341
20342 * font.c (font_pixel_size): Reverse assq_no_quit args.
20343
20344 * w32term.h (FONT_WIDTH): Report max width, not average.
20345 (FONT_MAX_WIDTH): Remove.
20346 (FONT_AVG_WIDTH): New macro.
20347
20348 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20349 redefinition of FONT_WIDTH.
20350
20351 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20352 (w32_cache_char_metrics): Use FONT_WIDTH.
20353
20354 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20355
20356 2008-02-01 Jason Rumney <jasonr@gnu.org>
20357
20358 * w32font.c (w32font_open): Make lfHeight negative.
20359
20360 * w32fns.c (x_default_font_parameter): Use new style font name.
20361 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20362
20363 2008-02-01 Jason Rumney <jasonr@gnu.org>
20364
20365 * w32font.c (QCsubranges): New symbol.
20366 (w32font_open, w32font_has_char): Get subranges from subproperty
20367 of extra.
20368 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20369 (syms_of_w32font): Define :subranges symbol.
20370
20371 * font.c (font_put_extra): Expose externally.
20372
20373 * font.h (font_put_extra): Move declaration from font.c.
20374
20375 * font.c (Ffont_get): Use font driver to determine otf capability.
20376 (adjust_anchor): Check if driver defines anchor_point before using.
20377
20378 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20379 (w32font_draw): Use options.
20380 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20381 Fix detection of truetype fonts.
20382 (registry_to_w32_charset): Handle charsets other than iso8859-1
20383 expressed as lisp symbols.
20384 (w32_registry): Express charset as lisp symbol.
20385 (fill_in_logfont): Reverse pixel and point height logic.
20386 Don't set width here. Set quality to default.
20387
20388 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20389 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20390
20391 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20392 Remove redundant loop and allocation.
20393
20394 * makefile.w32-in (font.o, w32font.o): New objects.
20395 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20396 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20397
20398 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20399 STORE_XCHARB a valid l-value.
20400
20401 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20402 calculations for non-Truetype fonts.
20403 (x_draw_glyph_string): Sync with xterm.c.
20404 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20405 Remove redundant code.
20406 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20407
20408 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20409 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20410
20411 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20412 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20413
20414 * w32font.c: New file for w32 font backend.
20415
20416 2008-02-01 Kenichi Handa <handa@m17n.org>
20417
20418 * term.c: Don't include "buffer.h" twice.
20419
20420 2008-02-01 Kenichi Handa <handa@m17n.org>
20421
20422 * character.c (Funibyte_string): New function.
20423 (syms_of_character): Defsubr it.
20424
20425 2008-02-01 Jason Rumney <jasonr@gnu.org>
20426
20427 * w32term.c [USE_FONT_BACKEND]:
20428 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20429 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20430 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20431 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20432 (x_free_frame_resources): Sync with xterm.c.
20433
20434 2008-02-01 Andreas Schwab <schwab@suse.de>
20435
20436 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20437 char-table size.
20438
20439 2008-02-01 Kenichi Handa <handa@m17n.org>
20440
20441 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20442
20443 2008-02-01 Kenichi Handa <handa@m17n.org>
20444
20445 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20446 font_otf_gpos, add font_drive_otf.
20447
20448 * fontset.c (fontset_find_font): Pay attention to font size
20449 specified for a font.
20450 (reorder_font_vector): Check contents of font_def.
20451
20452 * font.c (struct otf_list): Delete it.
20453 (otf_list): Make it a lisp variable.
20454 (otf_open): Use lispy otf_list.
20455 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20456 (check_otf_features): New function.
20457 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20458 New functions.
20459 (font_drive_otf): New function merging font_otf_gsub and
20460 font_otf_gpos.
20461 (font_open_for_lface): New arg spec. Change argument order.
20462 (font_load_for_face): Adjust for the change of font_open_for_lface.
20463 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20464 Ffont_otf_gpos.
20465 (syms_of_font): Staticpro otf_list. Delete defsubr of
20466 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20467
20468 * xfaces.c (set_font_frame_param): Adjust for the change of
20469 font_open_for_lface.
20470
20471 * font.h (font_open_for_lface): Adjust prototype.
20472 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20473 member otf_drive.
20474 (font_otf_gsub, font_otf_gpos): Delete externs.
20475 (font_drive_otf): Extern it.
20476
20477 2008-02-01 Kenichi Handa <handa@m17n.org>
20478
20479 * font.c (font_at): If the window W is not on a window system,
20480 return Qnil.
20481
20482 * coding.c (produce_chars, encode_coding): Don't call
20483 insert_from_gap if no characters to produce.
20484
20485 2008-02-01 Kenichi Handa <handa@m17n.org>
20486
20487 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20488 Fclear_face_cache.
20489
20490 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20491
20492 2008-02-01 Miles Bader <miles@gnu.org>
20493
20494 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20495 Parse "--disable-font-backend" option.
20496 (standard_args): Add "--disable-font-backend" option.
20497
20498 2008-02-01 Kenichi Handa <handa@m17n.org>
20499
20500 * fontset.c (fontset_find_font): New function.
20501 (fontset_font): Use fontset_find_font.
20502 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20503 Register the specified font for all Latin characters.
20504 (new_fontset_from_font): Register the specified font for all Latin
20505 characters.
20506 (dump_fontset): For a realized fontset, include the base fontset
20507 name in the returned vector.
20508
20509 2008-02-01 Kenichi Handa <handa@m17n.org>
20510
20511 * character.h (CHAR_STRING): Cast C to unsigned on calling
20512 char_string.
20513
20514 * character.c (char_string): Type of arg C changed to unsigned.
20515 Signal an error if C is an invalid character code.
20516
20517 * editfns.c (general_insert_function, Fchar_to_string):
20518 Use CHARACTERP, not INTEGERP.
20519
20520 2008-02-01 Kenichi Handa <handa@m17n.org>
20521
20522 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20523 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20524
20525 * regex.c (analyse_first): Fix for multibyte characters in "case
20526 charset:" and "case categoryspec:".
20527
20528 2008-02-01 Andreas Schwab <schwab@suse.de>
20529
20530 * Makefile.in (LIBES): Move standard libraries to the end.
20531
20532 2008-02-01 Kenichi Handa <handa@m17n.org>
20533
20534 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20535 nonzero, don't shrink the buffer nextb.
20536
20537 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20538
20539 * coding.c (coding_alloc_by_making_gap): New arg offset.
20540 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20541 offset.
20542 (decode_coding_iso_2022): Update coding->safe_charsets.
20543 (decode_coding_gap): Temporarily set
20544 current_buffer->text->inhibit_shrinking to 1.
20545
20546 2008-02-01 Kenichi Handa <handa@m17n.org>
20547
20548 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20549 indexing into elements of s->cmp and s->char2b.
20550
20551 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
20552
20553 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20554
20555 2008-02-01 Kenichi Handa <handa@m17n.org>
20556
20557 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20558 target_multibyte instead of multibyte.
20559 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20560 (bcmp_translate): Change the argument name from multibyte to
20561 target_multibyte.
20562
20563 2008-02-01 Kenichi Handa <handa@m17n.org>
20564
20565 These changes are to compile a regexp into a pattern that can be
20566 used both for multibyte and unibyte targets.
20567
20568 * Makefile.in (search.o): Depend on charset.h.
20569
20570 * character.c (multibyte_char_to_unibyte_safe): New function.
20571
20572 * search.c: Include "charset.h".
20573 (compile_pattern_1): Delete argument multibyte. Don't set
20574 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20575 (compile_pattern): Don't compare cp->buf.target_multibyte.
20576 Compare cp->buf.charset_unibyte.
20577 (compile_pattern): Set cp->buf.target_multibyte.
20578
20579 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20580
20581 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20582
20583 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20584 multibyte. Change callers.
20585 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20586 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20587 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20588 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20589 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20590 (regex_compile): Make the compiled pattern usable both for
20591 multibyte and unibyte targets.
20592 (analyse_first): Make the fastmap usable both for multibyte and
20593 unibyte targets.
20594 (TRANSLATE_VIA_MULTIBYTE): Delete.
20595 (re_match_2_internal): Pay attention to the case that the
20596 multibyteness of bufp and target may be different.
20597
20598 2008-02-01 Kenichi Handa <handa@m17n.org>
20599
20600 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20601 empty box occupy at least one column width.
20602
20603 2008-02-01 Miles Bader <miles@gnu.org>
20604
20605 * Makefile.in: Remove redundant HAVE_XFT clause.
20606
20607 2008-02-01 Kenichi Handa <handa@m17n.org>
20608
20609 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20610
20611 2008-02-01 Kenichi Handa <handa@m17n.org>
20612
20613 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20614 being nil.
20615
20616 2008-02-01 Kenichi Handa <handa@m17n.org>
20617
20618 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20619
20620 2008-02-01 Kenichi Handa <handa@m17n.org>
20621
20622 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20623
20624 2008-02-01 Kenichi Handa <handa@m17n.org>
20625
20626 * search.c (simple_search): Fix previous change.
20627
20628 2008-02-01 Kenichi Handa <handa@m17n.org>
20629
20630 * xftfont.c (ftfont_font_format): Extern declaration.
20631
20632 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20633
20634 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20635 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20636
20637 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20638 (ftfont_font_format): Fix previous change.
20639
20640 * font.h (Ffont_xlfd_name): EXFUN it.
20641
20642 * font.c (font_parse_xlfd): Fix the array size of `f'.
20643 (register_font_driver): Use EQ to compare driver->type.
20644
20645 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20646 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20647 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20648
20649 2008-02-01 Kenichi Handa <handa@m17n.org>
20650
20651 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20652 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20653
20654 2008-02-01 Kenichi Handa <handa@m17n.org>
20655
20656 * xfont.c (xfont_open): Set font->format.
20657
20658 * xftfont.c (xftfont_open): Set font->format.
20659
20660 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20661 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20662 (ftfont_open): Set font->format.
20663 (ftfont_font_format): New function.
20664
20665 * font.h (struct font): New member format.
20666
20667 * font.c (Qopentype): New variable.
20668 (syms_of_font): Defsym it.
20669 (Fquery_font): Change the format of the last element of the return
20670 value.
20671
20672 2008-02-01 Kenichi Handa <handa@m17n.org>
20673
20674 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20675 last resort.
20676
20677 2008-02-01 Kenichi Handa <handa@m17n.org>
20678
20679 * coding.c (detect_coding_charset): Fix detection of multi-byte
20680 charset.
20681
20682 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20683
20684 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20685
20686 2008-02-01 Kenichi Handa <handa@m17n.org>
20687
20688 * xdisp.c (get_next_display_element): Set it->face_id for the
20689 first component of a composition.
20690 (x_produce_glyphs): Check if the font is changed or not for composition.
20691
20692 2008-02-01 Kenichi Handa <handa@m17n.org>
20693
20694 * fontset.c (Qlatin): New variable.
20695 (syms_of_fontset): Define it as a lisp symbol.
20696 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20697
20698 2008-02-01 Kenichi Handa <handa@m17n.org>
20699
20700 * font.c (font_unparse_fcname): Pay attention to the case that
20701 some of font property is a null string.
20702
20703 2008-02-01 Kenichi Handa <handa@m17n.org>
20704
20705 * term.c: Include "composite.h".
20706 (encode_terminal_code): Output all components of composition.
20707 Check the size of encode_terminal_src.
20708 (produce_glyphs): For composition, call produce_composite_glyph.
20709 (append_composite_glyph, produce_composite_glyph): New functions.
20710
20711 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20712 is not found, get font_info from the current ascii face.
20713
20714 2008-02-01 Kenichi Handa <handa@m17n.org>
20715
20716 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20717 buffer-file-name to Qnil before calling insert_from_buffer.
20718
20719 * font.c (font_unparse_fcname): Pay attention to the case that
20720 foundry is a null string.
20721
20722 2008-02-01 Kenichi Handa <handa@m17n.org>
20723
20724 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20725
20726 * font.c (Qunicode_sip): New variable.
20727 (syms_of_font): Declare it as a Lisp symbol.
20728
20729 * font.h (Qunicode_sip): Extern it.
20730
20731 2008-02-01 Kenichi Handa <handa@m17n.org>
20732
20733 * composite.c (get_composition_id): Pay attention to TAB component.
20734
20735 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20736 TAB. Adjust for the change of s->char2b which always points to
20737 the first element of allocated memory.
20738
20739 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20740
20741 * xdisp.c (handle_composition_prop): Set it->c to the first
20742 non-TAB component.
20743 (fill_composite_glyph_string): Change argument.
20744 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20745 (x_produce_glyphs): Fix handling of left/right padding.
20746
20747 2008-02-01 Kenichi Handa <handa@m17n.org>
20748
20749 * coding.c (detect_coding_system): Fix for handling off
20750 inhibit_iso_escape_detection. Fix for the case that no coding
20751 system is defined for a specific coding category.
20752
20753 2008-02-01 Kenichi Handa <handa@m17n.org>
20754
20755 * font.c (font_matching_entity): Delete unused local var.
20756
20757 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20758 opening a font.
20759
20760 * fileio.c (Finsert_file_contents): On recovering a file, assume
20761 Unix-like eol.
20762 (choose_write_coding_system): On auto-saving a file, force
20763 Unix-like eol.
20764
20765 * coding.c (setup_coding_system): Fix setting of
20766 coding->common_flags based on eol_type.
20767 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20768 inherit from it.
20769
20770 2008-02-01 Kenichi Handa <handa@m17n.org>
20771
20772 * alloc.c (NSTATICS): Increas to 0x600.
20773
20774 2008-02-01 Kenichi Handa <handa@m17n.org>
20775
20776 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20777 (ftfont_list): Don't check :name property.
20778 (ftfont_match): New function.
20779 (ftfont_pattern_entity): If the pattern doesn't contain
20780 FC_SPACING, don't assume FC_MONO.
20781
20782 * font.h (struct font_driver): New member `match'.
20783 (font_update_drivers): Adjust prototype.
20784
20785 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20786 property of FONT.
20787 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20788 them unconditionally.
20789 (font_matching_entity): New function.
20790 (font_open_by_name): Try font_matching_entity if exact match is
20791 not found.
20792 (font_update_drivers): Delete the arg FONT. Return a list of
20793 actually used backends. Don't free faces, font caches here.
20794 Don't store data in frame parameters. Don't call x_set_font.
20795 (Ffont_spec): Store :name property as is.
20796 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20797 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20798 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20799 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20800 Call font->driver->otf_gsub instead of font_otf_gsub.
20801
20802 * frame.c (x_set_font_backend): Do more works that were done in
20803 font_update_drivers before.
20804
20805 * xfont.c (xfont_match): New function.
20806 (xfont_driver): Set xfont_driver.match to xfont_match.
20807 (xfont_draw): Set font in GC if necessary.
20808
20809 * ftxfont.c (ftxfont_match): New function.
20810 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20811
20812 * xftfont.c (xftfont_match): New function.
20813 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20814
20815 2008-02-01 Kenichi Handa <handa@m17n.org>
20816
20817 * font.h (struct font): New member scalable.
20818 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20819 (font_otf_gsub): Adjust prototype.
20820
20821 * font.c (font_otf_capability): Fix handling of the default langsys.
20822 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20823 Check the contents of SPEC.
20824 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20825 (check_gstring): New function.
20826 (REPLACEMENT_CHARACTER): New macro.
20827 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20828 glyph codes of GSTRING.
20829 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20830 (font_prepare_composition): Set cmp->glyph_len.
20831 (font_open_entity): Set font->scalable.
20832 (Ffont_get): Handle :otf property.
20833 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20834 functions.
20835 (Fquery_font): Use font->font.full_name.
20836 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20837 Sfont_otf_alternates.
20838
20839 * ftfont.c (ftfont_open): Set font->font.full_name and
20840 font->font.name properly. Fix calculation of font->font.height
20841 and font->min_width.
20842
20843 * ftxfont.c (ftxfont_create_gcs): New function.
20844 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20845 (ftxfont_draw_backgrond): Fix filling region.
20846 (ftxfont_default_fid): New function.
20847 (ftxfont_open): Set xfont->fid to the return value of
20848 ftxfont_default_fid.
20849 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20850 (ftxfont_done_face): Free only GCs that are created by
20851 ftxfont_create_gcs.
20852 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20853
20854 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20855 Clip to src->width, etc (not src->clip_XXX).
20856
20857 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20858 FontBackend frame parameter.
20859
20860 2008-02-01 Kenichi Handa <handa@m17n.org>
20861
20862 * font.h (struct font_driver_list): New member `on'.
20863 (Fclear_font_cache): EXFUN it.
20864 (font_update_drivers): Extern it.
20865
20866 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20867 (font_list_entities): Check driver_list->on.
20868 (register_font_driver): Initialize `on' member to 0.
20869 (font_update_drivers): New function.
20870 (Fclear_font_cache): Check driver_list->on.
20871
20872 * frame.h (Qfont_backend): Extern it.
20873 (x_set_font_backend): Extern it.
20874
20875 * frame.c (Qfont_backend): New variable.
20876 (frame_parms): New element for font-backend.
20877 (x_set_font_backend): New function.
20878
20879 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20880 FontBackend frame parameter.
20881 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20882 x_set_font_backend.
20883
20884 * xfont.c (xfont_list): Don't try listing by :name property if the
20885 name is not for XLFD.
20886
20887 2008-02-01 Kenichi Handa <handa@m17n.org>
20888
20889 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20890 (LGLYPH_SET_TO): New macros.
20891 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20892 element of G is vector or not.
20893 (font_at): Extern it.
20894
20895 * font.c: Include window.h.
20896 (font_lispy_object): New function.
20897 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20898 end of valid glyph.
20899 (font_close_object): Fix getting (struct font *).
20900 (font_at): New function.
20901 (Ffont_get): If FONT is a font-object, get entity from it.
20902 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20903 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20904 range check.
20905 (Ffont_at): New function.
20906 (syms_of_font): Defsubr Sfont_at.
20907
20908 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20909 before the entry for Qcomposition.
20910 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20911 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20912 the font in gstring.
20913 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20914 LGLYPH_FORM (g) to detect the end of valid glyph.
20915 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20916 we are composing with gstring.
20917
20918 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20919 Check if adjustment is vector or not.
20920
20921 * Makefile.in (font.o): Make it depends on window.h.
20922
20923 2008-02-01 Kenichi Handa <handa@m17n.org>
20924
20925 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20926 adjustment is vector or not.
20927
20928 2008-02-01 Miles Bader <miles@gnu.org>
20929
20930 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20931
20932 2008-02-01 Kenichi Handa <handa@m17n.org>
20933
20934 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20935 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20936 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20937
20938 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20939 (DEVICE_DELTA): Fix typo.
20940 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20941 LGLYPH format.
20942
20943 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20944 the change of LGLYPH format.
20945
20946 2008-02-01 Kenichi Handa <handa@m17n.org>
20947
20948 * ftfont.c (ftfont_list): Fix typo.
20949 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20950
20951 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20952
20953 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20954
20955 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20956 xftface_info is non-NULL.
20957
20958 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20959
20960 * ftfont.c (ftfont_list): Move misplaced #endif.
20961
20962 2008-02-01 Kenichi Handa <handa@m17n.org>
20963
20964 * ftfont.c (ftfont_list): Pay attention to the case that
20965 FC_CAPABILITY is not defined.
20966
20967 2008-02-01 Kenichi Handa <handa@m17n.org>
20968
20969 * xftfont.c (xftfont_open): Set charset related members to -1.
20970
20971 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20972 QCname.
20973 (ftfont_open): Set charset related members to -1.
20974
20975 * fontset.c (Votf_script_alist): New variable.
20976 (syms_of_fontset): Initialize it.
20977 (fontset_font): Delete unused variable.
20978
20979 * fontset.h (Votf_script_alist): Extern it.
20980
20981 * font.c (font_find_for_lface): Optimize code.
20982
20983 * font.h (font_close_object, font_merge_old_spec): Extern them.
20984
20985 2008-02-01 Kenichi Handa <handa@m17n.org>
20986
20987 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20988 (syms_of_font): Initialize them.
20989 (font_pixel_size): Allow float value in dpi.
20990 (font_prop_validate_type): Delete.
20991 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20992 Change caller.
20993 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20994 (font_prop_validate_extra): Delete.
20995 (font_prop_validate_spacing): New function.
20996 (font_property_table): Add elements for all known properties.
20997 (get_font_prop_index): Rename from check_font_prop_name. New
20998 argument FROM. Change caller.
20999 (font_prop_validate): Validate all known properties.
21000 (font_put_extra): Delete argument force. Change caller.
21001 (font_expand_wildcards): Make it static. Fix the way of shrinking
21002 the possible range.
21003 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
21004 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
21005 Change caller.
21006 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
21007 (font_parse_fcname): Delete argument merge. Fix parsing of point
21008 size. Don't validate properties values here. Change caller.
21009 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
21010 (font_open_by_name): Delete unused variable.
21011 (Ffont_spec): Likewise. Validate property values.
21012 (Ffont_match_p): New function.
21013
21014 * font.h (QCscalable): Extern it.
21015 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
21016
21017 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
21018
21019 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
21020 (xfont_list_pattern): New function.
21021 (xfont_list): Use xfont_list_pattern.
21022
21023 2008-02-01 Kenichi Handa <handa@m17n.org>
21024
21025 * font.h (Flist_fonts): EXFUN it.
21026
21027 2008-02-01 Jason Rumney <jasonr@gnu.org>
21028
21029 * w32term.c (w32_initialize): Add back smoothing_type and
21030 smoothing_enabled definitions.
21031
21032 2008-02-01 Kenichi Handa <handa@m17n.org>
21033
21034 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
21035 s->face->font on determining underline position.
21036
21037 2008-02-01 Kenichi Handa <handa@m17n.org>
21038
21039 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
21040 (font_has_char): Accept font-object too.
21041 (font_find_for_lface): Try at first with a size specified in face.
21042
21043 2008-02-01 Kenichi Handa <handa@m17n.org>
21044
21045 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
21046 font_open_by_name.
21047
21048 2008-02-01 Kenichi Handa <handa@m17n.org>
21049
21050 * font.h (QCspacing, QCdpi): Extern them.
21051 (enum font_spacing): New enum.
21052 (FONT_PIXEL_SIZE_QUANTUM): New macro.
21053
21054 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
21055 (QCspacing, QCdpi): New variables.
21056 (syms_of_font): Initialize them.
21057 (font_pixel_size): New function.
21058 (font_put_extra): New function.
21059 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
21060 in FONT_EXTRA.
21061 (font_parse_fcname): Handle enumerated values (e.g. bold).
21062 Fix handling font size. Add QCname property that contains only
21063 unknown properties.
21064 (font_score): Change argument. Change caller. Pay attention to
21065 FONT_PIXEL_SIZE_QUANTUM.
21066 (font_sort_entites, font_list_entities, font_find_for_lface)
21067 (font_open_for_lface, font_open_by_name): Fix handling of font size.
21068 (Ffont_spec): Add QCname property that contains only unknown properties.
21069
21070 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
21071 include weight in listing pattern, instead check weight of each
21072 listed font. Don't include scalable in pattern. Pay attention to
21073 FONT_PIXEL_SIZE_QUANTUM.
21074
21075 2008-02-01 Kenichi Handa <handa@m17n.org>
21076
21077 * font.c (font_parse_fcname): Fix parsing of point-size.
21078 (font_unparse_fcname): Produce symbolic names for style properties.
21079 (font_list_entities): Handle float size correctly.
21080 (font_open_by_name): Prefer `normal' property values if the name
21081 doesn't specify them.
21082
21083 * fontset.c (Finternal_char_font): Use font_get_name, not
21084 Ffont_xlfd_name.
21085
21086 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
21087 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
21088 pattern. Don't force scalable.
21089
21090 * xftfont.c (xftfont_open): For generating a name, start from
21091 96-byte buffer.
21092
21093 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21094
21095 * frame.h (x_new_fontset2): Fix prototype.
21096
21097 2008-02-01 Kenichi Handa <handa@m17n.org>
21098
21099 * font.h (struct font_driver): Delete member parse_name.
21100 (font_match_p, font_get_spec, font_parse_fcname)
21101 (font_unparse_fcname): Extern them.
21102 (font_get_name): Adjust prototype.
21103
21104 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
21105 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
21106 (font_expand_wildcards): Fix handling ENCODING field. Avoid
21107 unnecessary checks for weight, slant, and swidth.
21108 (font_parse_fcname): New function.
21109 (font_unparse_fcname): New function.
21110 (font_parse_name): New function.
21111 (font_match_p): New function.
21112 (font_get_name): Change return value to Lisp string.
21113 (font_get_spec): New function.
21114 (Qunspecified, Qignore_defface): Don't extern them.
21115 (font_find_for_lface): Assume that LFACE is fully specified.
21116 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
21117 object, use it for FACE.
21118 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
21119 driver->parse_name.
21120 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
21121
21122 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
21123 prototype.
21124
21125 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
21126 argument F. Don't call Fnew_fontset. Instead, directly call
21127 make_fontset.
21128
21129 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
21130
21131 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
21132 of x_new_fontset2.
21133
21134 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
21135 (Qsans__serif): New variables.
21136 (ftfont_generic_family_list): New variable.
21137 (syms_of_ftfont): Initialize the above variables.
21138 (ftfont_pattern_entity): Delete argument NAME.
21139 (ftfont_list_generic_family): New function.
21140 (ftfont_parse_name): Delete this function.
21141 (ftfont_list): Try generic family only when FcFontList found no font.
21142 (ftfont_list_family): Fix args to FcObjectSetBuild.
21143
21144 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
21145 object in attrs[LFACE_FONT_INDEX].
21146 (set_lface_from_font_name): Cancel all changes for font-backend.
21147 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
21148 function.
21149 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
21150 font object in QCfont attribute.
21151 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
21152 (realize_default_face) [USE_FONT_BACKEND]: Call
21153 set_lface_from_font_and_fontset.
21154
21155 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
21156 "fixed", and signal error here if no suitable font was found.
21157
21158 * xfont.c (xfont_parse_name): Delete this function.
21159
21160 * xftfont.c (xftfont_open): Change coding style of error
21161 handling. Generate fontconfig's fontname pattern.
21162
21163 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
21164 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
21165
21166 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
21167 Both args FONTSET and FONT_OBJECT must be existing ones.
21168
21169 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21170
21171 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
21172
21173 2008-02-01 Kenichi Handa <handa@m17n.org>
21174
21175 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
21176
21177 * font.h (struct font): Fix typo.
21178
21179 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
21180 XLFD_XXX_INDEX.
21181 (enum xlfd_field_mask): New enum.
21182 (intern_font_field): Changed argument. Change caller. If digits
21183 are followed by non-digits, return a symbol.
21184 (font_expand_wildcards): New function.
21185 (font_parse_xlfd): Fix wildcard handling.
21186 (Ffont_spec): If :name is specified, reflect the info in the other
21187 properties.
21188
21189 * ftfont.c (ftfont_pattern_entity): Fix typo.
21190 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
21191 locale.
21192
21193 2008-02-01 Kenichi Handa <handa@m17n.org>
21194
21195 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
21196
21197 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
21198 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
21199 registry doesn't specify encoding part.
21200 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
21201 (font_open_by_name): At first try parsing the name.
21202 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
21203 as Lisp symbols.
21204
21205 * fontset.c (reorder_font_vector): Pay attention to the case that
21206 the 3rd element of font_def is nil.
21207 (fontset_font): For the default fontset, append one more fontset
21208 elements for a script-based font specification. Don't add script
21209 attribute on finding a font.
21210 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
21211 font name.
21212 (fontset_ascii_font): If a font can't be opened, return nil.
21213
21214 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
21215 (ftfont_pattern_entity): New function.
21216 (ftfont_get_cache): Assume that freetype_font_cache is already
21217 initialized.
21218 (ftfont_list): Handle the case that a file is specified in font
21219 name. Use ftfont_pattern_entity to generate entities.
21220 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
21221 (syms_of_ftfont): Initialize freetype_font_cache.
21222
21223 * xftfont.c (xftfont_open): Make the font name fontconfig's
21224 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
21225 (xftfont_close): Free font->font.name if not NULL.
21226
21227 * xfont.c (xfont_list): If script is specified for a font, return
21228 null_vector.
21229 (xfont_list_family): Declare argument type.
21230
21231 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
21232 name, set LFACE_FONT (lface) to nil.
21233
21234 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
21235 return Qnil.
21236
21237 2008-02-01 Kenichi Handa <handa@m17n.org>
21238
21239 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
21240 (standard_args): Add "-enable-font-backend".
21241
21242 2008-02-01 Kenichi Handa <handa@m17n.org>
21243
21244 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
21245 (struct xftdraw_list, xftdraw_list): Delete them.
21246 (register_xftdraw, check_xftdraw): Delete them.
21247 (xftfont_prepare_face): Don't call register_xftdraw.
21248 (xftfont_done_face): Don't call check_xftdraw.
21249 (xftfont_draw): Get background color only when with_background is
21250 nonzero.
21251
21252 * xfont.c (xfont_encode_char): Fix calculation of char2b.
21253
21254 2008-02-01 Kenichi Handa <handa@m17n.org>
21255
21256 These changes are for the new font handling codes.
21257
21258 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
21259 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
21260 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
21261 (FONTSRC, FONTOBJ): New variables.
21262 (obj): Add $(FONTOBJ).
21263 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
21264 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
21265 @LIBOTF_LIBS@.
21266 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
21267 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
21268
21269 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
21270
21271 * character.h (Vscript_representative_chars): Extern it.
21272
21273 * character.c (Vscript_representative_chars): New variable.
21274 (syms_of_character): Declare it as a Lisp variable.
21275
21276 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
21277 enable_font_backend is nonzero, accept the composition method
21278 COMPOSITION_WITH_GLYPH_STRING.
21279
21280 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
21281 enumeration COMPOSITION_WITH_GLYPH_STRING.
21282
21283 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
21284 members clip_x, clip_y, clip_width, and clip_height.
21285 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
21286
21287 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
21288 --enable-font-backend. Call syms_of_font.
21289
21290 * fns.c (assoc_no_quit): New function.
21291
21292 * fontset.h (FONT_INFO_FROM_FACE): New macro.
21293 (face_for_font, new_fontset_from_font)
21294 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
21295
21296 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
21297 (fontset_font, fontset_ascii, face_for_char)
21298 (make_fontset_for_ascii_face, Ffont_info)
21299 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
21300 is nonzero, use font-backend mechanism.
21301 (find_font_encoding): Make it non-static.
21302 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
21303 New functions.
21304
21305 * frame.h (struct frame): New members resx and resy.
21306 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
21307 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
21308
21309 * frame.c [USE_FONT_BACKEND]: Include "font.h".
21310 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
21311
21312 * lisp.h (assoc_no_quit): Extern it.
21313
21314 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
21315 Through out the file, use FONT_INFO_FROM_FACE instead of
21316 FONT_INFO_FROM_ID, use get_per_char_metric instead of
21317 rif->per_char_metric.
21318 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21319 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21320 (get_glyph_face_and_encoding, fill_composite_glyph_string)
21321 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21322 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21323 nonzero, use font-backend mechanism.
21324 (get_per_char_metric): New function.
21325
21326 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21327 (set_lface_from_font_name)
21328 (set_font_frame_param, free_realized_face)
21329 (prepare_face_for_display, clear_face_gcs)
21330 (Finternal_set_font_selection_order, realize_x_face)
21331 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21332 font-backend mechanism.
21333 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21334 (load_face_font) [USE_FONT_BACKEND]: Abort.
21335 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21336 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21337
21338 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21339 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21340 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21341 nonzero, register all available font drivers. Call
21342 x_default_font_parameter for deciding a font.
21343 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21344
21345 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21346 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21347 (x_set_glyph_string_clipping_exactly)
21348 (x_compute_glyph_string_overhangs)
21349 (x_draw_glyph_string_foreground)
21350 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21351 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21352 enable_font_backend is nonzero, use font-backend mechanism.
21353 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21354
21355 2008-02-01 Kenichi Handa <handa@m17n.org>
21356
21357 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21358 system_eol_type.
21359 (syms_of_coding): Initialize system_eol_type.
21360
21361 * process.c (Fset_process_coding_system): Inherit system's eol
21362 format if necessary.
21363
21364 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21365
21366 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21367
21368 2008-02-01 Kenichi Handa <handa@m17n.org>
21369
21370 * coding.c (decode_eol): Pay attention to buffer relocation in
21371 del_range_2.
21372 (decode_coding): Call decode_eol before restoring undo_list.
21373
21374 2008-02-01 Kenichi Handa <handa@m17n.org>
21375
21376 * charset.c (Fdefine_charset_internal): Fix setting of
21377 emacs_mule_bytes.
21378
21379 2008-02-01 Kenichi Handa <handa@m17n.org>
21380
21381 * keyboard.c (read_char): Check if C is a character or not before
21382 looking up Vkeyboard_translate_table.
21383
21384 2008-02-01 Kenichi Handa <handa@m17n.org>
21385
21386 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21387 condition to terminate the loop.
21388
21389 2008-02-01 Kenichi Handa <handa@m17n.org>
21390
21391 * coding.c (produce_composition): Compare charbuf[i] instead of
21392 args[i] against 0.
21393 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21394
21395 2008-02-01 Kenichi Handa <handa@m17n.org>
21396
21397 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21398 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21399 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21400 detect_coding.
21401 (emacs_mule_char): Handle old style (Emacs 20) component character
21402 of a composition.
21403 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21404 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21405 composition rule.
21406 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21407
21408 2008-02-01 Kenichi Handa <handa@m17n.org>
21409
21410 * coding.c (encode_coding_ccl): Allocate destination dynamically
21411 when necessary.
21412
21413 2008-02-01 Kenichi Handa <handa@m17n.org>
21414
21415 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21416 the loop. When quitted, show a proper error message.
21417
21418 2008-02-01 Kenichi Handa <handa@m17n.org>
21419
21420 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21421 src->clip_head and src->clip_tail temporarily instead of src->hl.
21422
21423 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21424 character sequence.
21425 (Fccl_execute_on_string): Use ASET, not XSET.
21426
21427 2008-02-01 Kenichi Handa <handa@m17n.org>
21428
21429 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21430
21431 2008-02-01 Kenichi Handa <handa@m17n.org>
21432
21433 * coding.c (decode_coding): Fix the condition of terminating the
21434 decoding loop.
21435
21436 2008-02-01 Kenichi Handa <handa@m17n.org>
21437
21438 * data.c (Faset): On setting a character bigger than 255 in a
21439 unibyte string, signal an error instead of make the string multibyte.
21440
21441 2008-02-01 Kenichi Handa <handa@m17n.org>
21442
21443 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21444 made by a mapping table.
21445
21446 2008-02-01 Kenichi Handa <handa@m17n.org>
21447
21448 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21449 not.
21450 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21451 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21452
21453 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21454 s->face is NULL or not.
21455
21456 2008-02-01 Kenichi Handa <handa@m17n.org>
21457
21458 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21459 (x_draw_glyph_string): Fix drawing of right_overhang and
21460 left_overhang around/on cursor.
21461
21462 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21463
21464 2008-02-01 Kenichi Handa <handa@m17n.org>
21465
21466 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21467
21468 2008-02-01 Kenichi Handa <handa@m17n.org>
21469
21470 * coding.c (Fdefine_coding_system_internal)
21471 (Fdefine_coding_system_alias): Avoid a duplicated element in
21472 Vcoding_system_alist.
21473
21474 2008-02-01 Kenichi Handa <handa@m17n.org>
21475
21476 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21477
21478 * coding.c (Qcoding_system_define_form): New variable.
21479 (syms_of_coding): Intern and staticpro it.
21480 (Fcoding_system_p): Check Qcoding_system_define_form.
21481 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21482
21483 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21484 Fcoding_system_p.
21485 (CHECK_CODING_SYSTEM): If ID is not available, call
21486 Fcheck_coding_system.
21487 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21488 Try also Fcheck_coding_system.
21489
21490 2008-02-01 Kenichi Handa <handa@m17n.org>
21491
21492 * coding.c (code_conversion_restore): GCPRO arg.
21493
21494 2008-02-01 Kenichi Handa <handa@m17n.org>
21495
21496 * character.c (lisp_string_width): Check multibyteness of STRING.
21497
21498 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21499
21500 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21501 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21502 (decode_mac_font_name): Use decode_coding_c_string instead of
21503 decode_coding.
21504 (x_load_font): Initialize fontp->fontset to -1. Set
21505 fontp->encoding_type.
21506
21507 2008-02-01 Kenichi Handa <handa@m17n.org>
21508
21509 * search.c (search_buffer): Give up BM search on case-fold-search
21510 if one of a target character has a case-equivalence of different
21511 byte length even if that target character is an ASCII.
21512 (simple_search): Fix calculation of byte length of matched text.
21513 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21514
21515 2008-02-01 Kenichi Handa <handa@m17n.org>
21516
21517 * coding.c (decode_coding): Fix handling of invalid bytes.
21518
21519 2008-02-01 Kenichi Handa <handa@m17n.org>
21520
21521 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21522 Unicode characters.
21523
21524 2008-02-01 Kenichi Handa <handa@m17n.org>
21525
21526 * coding.c (encode_coding_object): If a pre-write-conversion
21527 function makes a new buffer, kill it.
21528
21529 2008-02-01 Kenichi Handa <handa@m17n.org>
21530
21531 * coding.c (QCascii_compatible_p): New variable.
21532 (syms_of_coding): Initialize it.
21533 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21534 calling string_char.
21535 (record_conversion_result): Add `default:' case.
21536 (coding_charset_list): Delete unused variable `coding_type'.
21537 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21538 property in the plist of the coding system.
21539 (Fcoding_system_put): Check QCascii_compatible_p.
21540
21541 2008-02-01 Miles Bader <miles@gnu.org>
21542
21543 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21544 removed calculation of frame `f', as it's now used.
21545
21546 2008-02-01 Kenichi Handa <handa@m17n.org>
21547
21548 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21549 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21550 (UNIDATA): New variable.
21551 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21552 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21553 $(RUN_TEMACS) unconditionally.
21554
21555 2008-02-01 Kenichi Handa <handa@m17n.org>
21556
21557 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21558 (admindir): New variable.
21559 ($(lispsource)international/charprop.el): New target.
21560
21561 2008-02-01 Miles Bader <miles@gnu.org>
21562
21563 * character.c (chars-in-region): Remove obsolete function.
21564 (syms_of_character): Remove its initialization.
21565
21566 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21567
21568 * w32select.c (validate_coding_system)
21569 (setup_windows_coding_system): New functions.
21570 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21571 setup_windows_coding_system.
21572 (setup_config, Fw32_get_clipboard_data): Use
21573 validate_coding_system.
21574 (Fx_selection_exists): Move call to setup_config to a place
21575 where signals are allowed.
21576
21577 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21578 (Fcheck_coding_system): Add declarations.
21579
21580 2008-02-01 Kenichi Handa <handa@m17n.org>
21581
21582 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21583
21584 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21585
21586 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21587 string as the second argument for x_new_fontset.
21588
21589 2008-02-01 Kenichi Handa <handa@m17n.org>
21590
21591 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21592 (encode_coding_object): Use safe_call instead of call2.
21593
21594 2008-02-01 Kenichi Handa <handa@m17n.org>
21595
21596 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21597
21598 * Makefile.in (lisp): Include charprop.el.
21599
21600 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21601
21602 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21603 Not sure if it's unnecessary.
21604
21605 2008-02-01 Steven Tamm <steventamm@mac.com>
21606
21607 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21608 some possibly unnecessary fontset checking code that crashed
21609 when creating a new frame.
21610
21611 2008-02-01 Kenichi Handa <handa@m17n.org>
21612
21613 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21614 lookup_face.
21615
21616 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21617
21618 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21619
21620 2008-02-01 Kenichi Handa <handa@m17n.org>
21621
21622 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21623 (coding_charset_list): New function.
21624
21625 * coding.h (coding_charset_list): Extern it.
21626
21627 2008-02-01 Kenichi Handa <handa@m17n.org>
21628
21629 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21630 concatenation of family and registry.
21631
21632 2008-02-01 Kenichi Handa <handa@m17n.org>
21633
21634 * character.h (BYTE8_STRING): Fix typo.
21635
21636 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21637 string to multibyte (sync to HEAD).
21638
21639 * casefiddle.c (casify_region): Handle changes in byte-length
21640 using replace_range_2 (sync to HEAD).
21641
21642 2008-02-01 Andreas Schwab <schwab@suse.de>
21643
21644 * chartab.c (map_char_table): GCPRO table and arg.
21645
21646 2008-02-01 Kenichi Handa <handa@m17n.org>
21647
21648 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21649 already at limit.
21650
21651 2008-02-01 Kenichi Handa <handa@m17n.org>
21652
21653 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21654 instead of fast_c_string_match_ignore_case.
21655 (find_font_encoding): Change argument to Lisp_Object. Use
21656 fast_string_match_ignore_case instead of
21657 fast_c_string_match_ignore_case. Change caller.
21658
21659 2008-02-01 Kenichi Handa <handa@m17n.org>
21660
21661 * xdisp.c (get_next_display_element): In unibyte case, decide to
21662 display in octal form by checking a character by
21663 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21664
21665 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21666
21667 * character.c (unibyte_has_multibyte_table): New variable.
21668
21669 * character.h (unibyte_has_multibyte_table): Extern it.
21670 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21671
21672 2008-02-01 Kenichi Handa <handa@m17n.org>
21673
21674 * coding.c (encode_coding_iso_2022): Fix handling of charset
21675 annotation.
21676
21677 2008-02-01 Kenichi Handa <handa@m17n.org>
21678
21679 * coding.c (setup_coding_system): If coding_system is nil, use
21680 Qundecided.
21681 (Fterminal_coding_system): Return nil if terminal coding system is
21682 `undecided'.
21683 (syms_of_coding): Define coding-system `undecided' here. Setup
21684 terminal_coding as `undecided'.
21685
21686 2008-02-01 Kenichi Handa <handa@m17n.org>
21687
21688 * xdisp.c (message_dolog, set_message_1): Call
21689 unibyte_char_to_multibyte with arg type int.
21690
21691 * lread.c (read1): Fix reading of a char-table.
21692
21693 * print.c (print_object): Include sub char-table in circularities
21694 detection.
21695
21696 2008-02-01 Kenichi Handa <handa@m17n.org>
21697
21698 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21699 Append the found sequences in car of ARGS instead of prepending.
21700
21701 2008-02-01 Kenichi Handa <handa@m17n.org>
21702
21703 * fileio.c (report_file_error): Make a unibyte string from
21704 strerror (errorno).
21705 (Fsubstitute_in_file_name): Fix the arg to
21706 unibyte_char_to_multibyte. It is evaluated twice.
21707
21708 2008-02-01 Kenichi Handa <handa@m17n.org>
21709
21710 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21711
21712 2008-02-01 Kenichi Handa <handa@m17n.org>
21713
21714 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21715 BOM is not found.
21716 (detect_coding, detect_coding_system): Optimization for ISO-2022
21717 when no 8-bit data is found.
21718
21719 2008-02-01 Jason Rumney <jasonr@gnu.org>
21720
21721 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21722
21723 2008-02-01 Kenichi Handa <handa@m17n.org>
21724
21725 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21726 CHARS.
21727
21728 2008-02-01 Steven Tamm <steventamm@mac.com>
21729
21730 * macterm.c (mac_encode_char): Add charset argument and update
21731 to use encoding_type.
21732 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21733 switch to pure fontset.
21734 (decode_mac_font_name): Temporarily remove decoding.
21735 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21736 (x_load_font): Temporarily remove encoding.
21737
21738 2008-02-01 Kenichi Handa <handa@m17n.org>
21739
21740 * xfaces.c (Fface_font): If frame is not on a window system,
21741 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21742 refer to face->font.
21743 (split_font_name_into_vector, build_font_name_from_vector)
21744 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21745 when HAVE_WINDOW_SYSTEM is defined.
21746
21747 2008-02-01 Kenichi Handa <handa@m17n.org>
21748
21749 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21750 (x_produce_glyphs): Fix setting of members of cmp in case
21751 cmp->glyph_len is zero.
21752
21753 * fontset.c (Fset_fontset_font): Fix docstring.
21754 (Ffontset_info): Make it backward compatible. New arg ALL.
21755
21756 2008-02-01 Kim F. Storm <storm@cua.dk>
21757
21758 * process.c (read_process_output): Grow decoding_buf when needed;
21759 this could cause a crash in allocate_string and compact_small_strings.
21760
21761 2008-02-01 Kenichi Handa <handa@m17n.org>
21762
21763 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21764
21765 2008-02-01 Kenichi Handa <handa@m17n.org>
21766
21767 * coding.c (setup_coding_system): Set coding->common_flags
21768 correctly for raw-text.
21769 (consume_chars): On encoding unibyte text by raw-text, don't check
21770 multibyte form.
21771 (encode_coding): On encoding by raw-text, never use translation tables.
21772
21773 * fileio.c (e_write): Short cut for the case of no encoding.
21774
21775 2008-02-01 Kenichi Handa <handa@m17n.org>
21776
21777 * coding.c (detect_coding, detect_coding_system): Delete unused
21778 variables.
21779
21780 2008-02-01 Kenichi Handa <handa@m17n.org>
21781
21782 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21783 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21784
21785 2008-02-01 Kenichi Handa <handa@m17n.org>
21786
21787 * coding.c (Ffind_coding_systems_region_internal): Include
21788 raw-text and no-conversion in the result.
21789
21790 2008-02-01 Kenichi Handa <handa@m17n.org>
21791
21792 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21793 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21794 FONT_DEF.
21795 (font_def_arg, add_arg, from_arg, to_arg): New args.
21796 (set_fontset_font): Change argument.
21797 (Fset_fontset_font): Fix for the case that TARGET is a script
21798 name and charset name.
21799 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21800
21801 2008-02-01 Kenichi Handa <handa@m17n.org>
21802
21803 * fontset.c (fontset_font): Rename from fontset_face. Change return
21804 value.
21805 (face_suitable_for_char_p, face_for_char): Adjust for the change
21806 of fontset_font.
21807 (make_fontset_for_ascii_face): Fix setting of the fontset element
21808 for ASCII.
21809 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21810 to get a font name.
21811 (Ffontset_info): Adjust for the change of fontset_font.
21812
21813 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21814
21815 * character.h (LEADING_CODE_LATIN_1_MIN)
21816 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21817
21818 2008-02-01 Kenichi Handa <handa@m17n.org>
21819
21820 * editfns.c (check_translation): New function.
21821 (Ftranslate_region_internal): Handle M:N mapping.
21822
21823 2008-02-01 Kenichi Handa <handa@m17n.org>
21824
21825 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21826
21827 2008-02-01 Kenichi Handa <handa@m17n.org>
21828
21829 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21830 goto invalid_code.
21831 (decode_coding_iso_2022): Fix handling of invalid designation.
21832
21833 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21834 after calling code_conversion_save.
21835
21836 2008-02-01 Kenichi Handa <handa@m17n.org>
21837
21838 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21839
21840 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21841
21842 * fontset.c: Include "intervals.h".
21843 (fontset_face): Fix comparing of Lisp_Objects.
21844 (free_face_fontset, new_fontset_from_font_name): Fix
21845 Lisp_Object/int mixup.
21846
21847 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21848
21849 * coding.c: Add many prototypes for static functions.
21850 (get_translation_table): Allow max_lookup to be NULL.
21851 (decode_coding, Ffind_coding_systems_region_internal)
21852 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21853 get_translation_table with max_lookup NULL.
21854
21855 2008-02-01 Kenichi Handa <handa@m17n.org>
21856
21857 * coding.c (get_translation_table): Declare it as Lisp_Object.
21858 (LOOKUP_TRANSLATION_TABLE): New macro.
21859 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21860 instead of CHAR_TABLE_REF.
21861
21862 2008-02-01 Kenichi Handa <handa@m17n.org>
21863
21864 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21865 annotation data format.
21866 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21867 Change arguments FROM and TO to single argument NCHARS. Change caller.
21868 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21869 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21870 (decode_coding_ccl, decode_coding_charset): Pay attention to
21871 coding->charbuf_used.
21872 (get_translation): New function.
21873 (produce_chars): New arguments translation_table and last_block.
21874 Translate characters here. Return number of carryover chars.
21875 Change caller.
21876 (produce_composition): New argument pos. Change caller.
21877 Adjust for the change of annotation data format.
21878 (produce_charset, produce_annotation): Likewise.
21879 (decode_coding, encode_coding): Don't call translate_chars.
21880 (consume_chars): New arg translation_table. Change caller.
21881 (translate_chars): Delete.
21882 (syms_of_coding): Make translation-table's number of extra slots 2.
21883
21884 2008-02-01 Kenichi Handa <handa@m17n.org>
21885
21886 * search.c (simple_search): Fix setting this_pos_byte in backward
21887 search.
21888
21889 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21890 byte sequence.
21891 (detect_coding_ccl): Fix setting of the variable valids.
21892
21893 2008-02-01 Kenichi Handa <handa@m17n.org>
21894
21895 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21896
21897 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21898
21899 * editfns.c (Ftranslate_region_internal): Rename from
21900 Ftranslate_region. Accept a char-table in TABLE.
21901 (syms_of_editfns): Defsubr Stranslate_region_internal.
21902
21903 * xfaces.c (set_lface_from_font_name): If a font is specified for
21904 a frame, generate a fontset from the font.
21905 (build_scalable_font_name): If the scalable font is requested for
21906 a specific size, don't change that size.
21907 (try_font_list): Try a scalable font also in the case that a
21908 pattern string is specified.
21909
21910 2008-02-01 Kenichi Handa <handa@m17n.org>
21911
21912 * xfaces.c (Fface_font): New optional arg CHARACTER.
21913
21914 2008-02-01 Kenichi Handa <handa@m17n.org>
21915
21916 * charset.h (CHARSET_OFFSET): New macro.
21917
21918 2008-02-01 Kenichi Handa <handa@m17n.org>
21919
21920 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21921
21922 * fontset.c (fontset_face): Handle the case that repertory is a
21923 char-table.
21924 (find_font_encoding): Return nil for unknown encoding.
21925 (Fset_fontset_font): Ignore a font of unknown encoding.
21926
21927 2008-02-01 Kenichi Handa <handa@m17n.org>
21928
21929 * keymap.c (describe_vector): Handle default value of a char table.
21930
21931 * fontset.c (fontset_face): Handle fallback fonts correctly.
21932 (Ffontset_info): Return infomation about fallback fonts.
21933
21934 2008-02-01 Kenichi Handa <handa@m17n.org>
21935
21936 * fontset.c (FONTSET_DEFAULT): New macro.
21937 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21938 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21939 the case that it is nil.
21940 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21941 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21942
21943 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21944 subset or superset.
21945
21946 2008-02-01 Kenichi Handa <handa@m17n.org>
21947
21948 * emacs.c (main): Call init_charset after syms_of_XXX.
21949
21950 * charset.c (Vcharset_map_directory): Delete.
21951 (Vcharset_map_path): New variable.
21952 (load_charset_map_from_file): Use Vcharset_map_path instead.
21953 (init_charset): Initialize Vcharset_map_path.
21954 (syms_of_charset): Delete declaration of "charset-map-directory",
21955 add declaration of "charset-map-path".
21956
21957 2008-02-01 Kenichi Handa <handa@m17n.org>
21958
21959 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21960 ASCII only string.
21961
21962 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21963
21964 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21965 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21966
21967 2008-02-01 Kenichi Handa <handa@m17n.org>
21968
21969 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21970
21971 * coding.c (QCmnemonic, QCdefalut_char)
21972 (QCdecode_translation_table, QCencode_translation_table)
21973 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21974 (get_translation_table): Return a list of translation tables if
21975 necessary.
21976 (decode_coding): Call get_translation_table with ENCODEP 0.
21977 (char_encodable_p): If translation_table is non-nil, always call
21978 translate_char.
21979 (Fdefine_coding_system_internal): Accept list of translation
21980 tables as :encode-translation-table and :decode-translation-table.
21981 (Fcoding_system_put): New function.
21982 (syms_of_coding): Declare new symbols. Defsubr
21983 Scoding_system_put.
21984 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21985 typically JISX0212.
21986
21987 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21988 when the charset is superset type.
21989
21990 * character.c (translate_char): Accept list of translation tables.
21991
21992 2008-02-01 Kenichi Handa <handa@m17n.org>
21993
21994 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21995 (CODING_ATTR_TRANS_TBL): New macro.
21996
21997 * coding.c (get_translation_table): New function.
21998 (translate_chars): Fix the bug of skipping annotation data.
21999 (decode_coding, encode_coding): Utilize get_translation_table.
22000 (char_encodable_p, Funencodable_char_position): Translate char if
22001 necessary.
22002 (Ffind_coding_systems_region_internal)
22003 (Fcheck_coding_systems_region): Setup translation table for encode
22004 in a coding system attribute vector in advance.
22005 (Fdefine_coding_system_internal): Allow a symbol as translation
22006 table. For shift-jis type coding system, allow 4th charset.
22007
22008 2008-02-01 Kenichi Handa <handa@m17n.org>
22009
22010 * coding.c (decode_coding_sjis): Check the first byte rigidly.
22011
22012 * xdisp.c (get_next_display_element): Pass -1 as POS to
22013 FACE_FOR_CHAR if displaying a C-string.
22014
22015 2008-02-01 Kenichi Handa <handa@m17n.org>
22016
22017 * composite.c (get_composition_id): Handle xoff and yoff in a
22018 composition rule.
22019
22020 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
22021 (struct composition): New member lbearing and rbearing.
22022
22023 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
22024 (x_get_glyph_overhangs): Handle a composition glyph.
22025 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
22026
22027 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
22028 composition glyph.
22029
22030 2008-02-01 Kenichi Handa <handa@m17n.org>
22031
22032 * print.c: Include charset.h.
22033 (Vprint_charset_text_property): New variable.
22034 (Qdefault): Extern it.
22035 (PRINT_STRING_NON_CHARSET_FOUND)
22036 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
22037 (print_check_string_result): New variable.
22038 (print_check_string_charset_prop): New function.
22039 (print_prune_charset_plist): New variable.
22040 (print_prune_string_charset): New function.
22041 (print_object): Call print_prune_string_charset if
22042 Vprint_charset_text_property is not t.
22043 (print_interval): Print nothing if interval->plist is nil.
22044 (syms_of_print): Declare Vprint_charset_text_property as a lisp
22045 variable. Init and staticpro print_prune_charset_plist.
22046
22047 2008-02-01 Kenichi Handa <handa@m17n.org>
22048
22049 * fontset.c (new_fontset_from_font_name): Use the specified font
22050 for all characters in the new fontset.
22051
22052 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22053 OBJECT args.
22054
22055 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
22056 OBJECT args for composition too.
22057
22058 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22059 OBJECT args.
22060
22061 2008-02-01 Kenichi Handa <handa@m17n.org>
22062
22063 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
22064
22065 * fontset.c (reorder_font_vector): Adjust for the change of
22066 FONT_DEF format.
22067 (fontset_face): New arg id. Change caller.
22068 (face_for_char): New args pos and object.
22069 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
22070 (fs_query_fontset): Check NAME by Fassoc too.
22071 (Fset_fontset_font): Allow non-XLFD font name.
22072 (Ffontset_info): Adjust for the change of FONT_DEF format.
22073
22074 * fontset.h (face_for_char): Adjust prototype.
22075
22076 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
22077 (append_space, extend_face_to_end_of_line)
22078 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22079 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
22080
22081 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
22082 POS and OBJECT args.
22083
22084 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
22085 POS and OBJECT args.
22086
22087 2008-02-01 Jason Rumney <jasonr@gnu.org>
22088
22089 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
22090 of GlobalAlloc'ed memory.
22091
22092 2008-02-01 Kenichi Handa <handa@m17n.org>
22093
22094 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
22095
22096 * charset.h (charset_table_used): Delete extern.
22097
22098 * charset.c (charset_table_used): Make it static.
22099 (map_charset_chars): Fix args to c_function with.
22100
22101 * chartab.c (map_sub_char_table_for_charset): Fix args to
22102 c_function with.
22103
22104 * coding.h (enum coding_result_code): Delete
22105 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
22106
22107 * coding.c (Qinsufficient_source, Qinconsistent_eol)
22108 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
22109 (Vlast_code_conversion_error): New variables.
22110 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
22111 (ONE_MORE_BYTE): Record error if any instead of signaling an
22112 error. If non-ASCII multibyte char is found, return the negative
22113 value of the code. All callers changed to check it.
22114 (ONE_MORE_BYTE_NO_CHECK): Likewise.
22115 (record_conversion_result): New function. Change all codes setting
22116 coding->result to call this function.
22117 (detect_coding_utf_8, decode_coding_utf_8)
22118 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
22119 Don't use the local variable incomplete.
22120 (emacs_mule_char): Change the second arg to `const'.
22121 (decode_coding): Fix of flushing out unprocessed data.
22122 (make_conversion_work_buffer): Fix making of a work buffer.
22123 (decode_coding_object): Return coding->dst_object.
22124
22125 * fontset.c (set_fontset_font): Fix args.
22126
22127 * lisp.h (CHARACTERBITS): Define as 22.
22128
22129 * process.c (send_process): Be sure to set coding->src_multibyte.
22130
22131 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
22132
22133 2008-02-01 Kenichi Handa <handa@m17n.org>
22134
22135 * xdisp.c (handle_auto_composed_prop): Give limit to
22136 Fnext_single_char_property_change.
22137
22138 2008-02-01 Kenichi Handa <handa@m17n.org>
22139
22140 * composite.c (syms_of_composite): Don't make the composition hash
22141 table weak.
22142
22143 * fontset.c (Fset_fontset_font): Fix docstring.
22144
22145 * lisp.h (detect_coding_system): Adjust prototype.
22146
22147 * fileio.c (kill_workbuf_unwind): Delete this function.
22148 (Finsert_file_contents): Adjust the call of detect_coding_system.
22149 Get conversion_buffer by code_conversion_save. Use the macro
22150 CODING_MAY_REQUIRE_DECODING. After decoding, update
22151 coding_system.
22152
22153 * coding.h (make_conversion_work_buffer): Delete extern.
22154 (code_conversion_save): Extern it.
22155
22156 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
22157 (CODING_GET_INFO): Delete argument eol_type. Change callers.
22158 (decode_coding_utf_8): Don't do eol converion.
22159 (detect_coding_utf_16): Check coding->src_chars, not
22160 coding->src_bytes. Add heuristics for those that have no signature.
22161 (decode_coding_emacs_mule, decode_coding_iso_2022)
22162 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22163 Don't do eol converion.
22164 (adjust_coding_eol_type): Return a new coding system.
22165 (detect_coding): Don't detect eol. Fix for utf-16 detection.
22166 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
22167 each change.
22168 (decode_coding): Pay attention to undo_list. Do eol conversion for
22169 all types of coding-systems (if necessary).
22170 (Vcode_conversion_work_buf_list): Delete it.
22171 (Vcode_conversion_reused_workbuf): Rename from
22172 Vcode_conversion_reused_work_buf.
22173 (Vcode_conversion_workbuf_name): New variable.
22174 (reused_workbuf_in_use): New variable.
22175 (make_conversion_work_buffer): Delete the arg DEPTH.
22176 (code_conversion_restore): Change argument to cons.
22177 (code_conversion_save): Delete the argument BUFFER. Change callers.
22178 (detect_coding_system): New argument src_chars. Change callers.
22179 Fix for utf-16 detection.
22180 (init_coding_once): Don't use ISO_carriage_return.
22181 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
22182 reused_workbuf_in_use.
22183
22184 2008-02-01 Kenichi Handa <handa@m17n.org>
22185
22186 * keymap.c (store_in_keymap): Pay attention to the case that idx
22187 is a cons specifying a character range.
22188
22189 2008-02-01 Kenichi Handa <handa@m17n.org>
22190
22191 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
22192 HANDLED_RECOMPUTE_PROPS.
22193
22194 * coding.c (Fdefine_coding_system_internal): Fix checking of
22195 ascii compatibility.
22196
22197 2008-02-01 Kenichi Handa <handa@m17n.org>
22198
22199 * charset.c (find_charsets_in_text): Delete unused locale variable.
22200 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
22201
22202 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
22203 Resync charset_list to Vemacs_mule_charset_list.
22204
22205 * keymap.c (store_in_keymap): Pay attention to the case that idx
22206 is a cons specifying a character range.
22207
22208 2008-02-01 Kenichi Handa <handa@m17n.org>
22209
22210 * composite.c (update_compositions): Bind inhibit-read-only, etc
22211 to t before calling remove-list-of-text-properties.
22212
22213 * print.c (print_object): Always print ASCII chars as is.
22214
22215 2008-02-01 Kenichi Handa <handa@m17n.org>
22216
22217 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
22218
22219 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
22220 is a char table.
22221
22222 2008-02-01 Kenichi Handa <handa@m17n.org>
22223
22224 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
22225
22226 2008-02-01 Kenichi Handa <handa@m17n.org>
22227
22228 * xfaces.c (set_lface_from_font_name): Fix for the case that
22229 FONTNAME is not fontset name.
22230
22231 2008-02-01 Kenichi Handa <handa@m17n.org>
22232
22233 * fns.c (base64_encode_1): Fix previous change.
22234
22235 2008-02-01 Kenichi Handa <handa@m17n.org>
22236
22237 * fontset.c (set_fontset_font): New function.
22238 (Fset_fontset_font): If a font is specified for a charset, use
22239 map_charset_chars to store the font spec in a fontset.
22240
22241 2008-02-01 Kenichi Handa <handa@m17n.org>
22242
22243 * fontset.c (fontset_face): Create a fallback fontset on demand.
22244 (make_fontset): Don't create a fallback fontset here.
22245 (free_face_fontset): Free a fallback fontset (if any) too.
22246 (n_auto_fontsets): Delete this variable.
22247 (auto_fontset_alist): New variable.
22248 (new_fontset_from_font_name): Check auto_fontset_alist.
22249 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
22250 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
22251 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
22252 Defsubr Sfontset_list_all.
22253
22254 2008-02-01 Kenichi Handa <handa@m17n.org>
22255
22256 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
22257
22258 2008-02-01 Kenichi Handa <handa@m17n.org>
22259
22260 * fontset.c (Fnew_fontset): Check NAME more rigidly.
22261
22262 2008-02-01 Kenichi Handa <handa@m17n.org>
22263
22264 * editfns.c (Fgoto_char): Fix docstring.
22265
22266 2008-02-01 Kenichi Handa <handa@m17n.org>
22267
22268 * insdel.c (insert_from_gap): Adjust intervals correctly.
22269
22270 2008-02-01 Jason Rumney <jasonr@gnu.org>
22271
22272 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
22273 (pfnGetFontUnicodeRanges): New dynamically loaded function.
22274 (w32_initialize): Try to load it.
22275 (x_get_font_repertory): Use it if available.
22276 (w32_encode_char): Add shortcut for unicode output.
22277
22278 * w32fns.c (w32_load_system_font): Default charset to -1.
22279 (x_to_w32_charset): Match all fonts for unicode.
22280 (w32_to_x_charset): New parameter matching. Don't return partial
22281 or wildcard charsets.
22282 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
22283 (w32_codepage_for_font): Return CP_UNICODE for unicode.
22284 (w32_to_x_font): Match charset to real charset.
22285 (enum_font_cb2): Always list unicode versions.
22286
22287 * makefile.w32-in (temacs): Increase EMHEAP.
22288
22289 2008-02-01 Jason Rumney <jasonr@gnu.org>
22290
22291 * w32term.c (w32_encode_char): New charset parameter.
22292 font_info.encoding becomes encoding_type.
22293 (x_get_font_repertory): New function. Warning: stub only!
22294 (x_new_font): Return quickly if font already set.
22295 (x_new_fontset): fontsetname parameter is Lisp_Object.
22296 Use new fs_query_fontset. Try new_fontset_from_font_name.
22297 Use fontset_name for return value.
22298
22299 * w32term.h: Declare x_get_font_repertory.
22300
22301 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
22302 place of find_charset_in_text. Use encode_coding_object in place
22303 of encode_coding.
22304 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
22305 decode_coding.
22306
22307 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
22308 of x_new_fontset.
22309 (w32_load_system_font): Initialize charset as unicode.
22310 font_info.encoding becomes encoding_type.
22311 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
22312 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
22313 (syms_of_w32fns): Set get_font_repertory_func.
22314
22315 * w32console.c: Include character.h. Use terminal_encode_buffer
22316 from term.c.
22317 (write_glyphs): Use new version of encode_terminal_code. Use
22318 encode_coding_object in place of encode_coding.
22319
22320 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22321 encoding becomes encoding_type.
22322
22323 * term.c (terminal_encode_buffer): Make externally visible.
22324
22325 * makefile.w32-in: Add character.h dependancies.
22326 (character.o, chartab.o): New targets.
22327
22328 2008-02-01 Kenichi Handa <handa@m17n.org>
22329
22330 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22331 CODING_ID_EOL_TYPE.
22332
22333 2008-02-01 Andreas Schwab <schwab@suse.de>
22334
22335 * coding.c (produce_chars): Revert last change.
22336
22337 2008-02-01 Kenichi Handa <handa@m17n.org>
22338
22339 * charset.h (charset_unicode): Extern it.
22340
22341 * charset.c (string_xstring_p): Check by (C >= 0x100).
22342 (find_charsets_in_text): Change format of the arc CHARSETS. New
22343 arg MULTIBYTE.
22344 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22345 change of find_charsets_in_text.
22346 (Fsplit_char): Fix doc. Never return unknown.
22347
22348 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22349
22350 * coding.c (Fdefine_coding_system_alias): Update
22351 Vcoding_system_list.
22352
22353 * fontset.c (load_font_get_repertory): Pay attention to the case
22354 that ENCODING of a font is specified by a char-table.
22355
22356 * xterm.c (x_get_font_repertory): Handle the case that the
22357 encoding of font is other than Unicode.
22358
22359 2008-02-01 Kenichi Handa <handa@m17n.org>
22360
22361 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22362 if a character is encodable by the terminal coding system. If
22363 not, produces proper number of `?'s. Update
22364 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22365 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22366
22367 2008-02-01 Kenichi Handa <handa@m17n.org>
22368
22369 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22370 variables.
22371 (encode_terminal_code): Change argument. Encode multiple
22372 characters at once. Store the result of encoding in
22373 terminal_encode_buffer.
22374 (write_glyphs, insert_glyphs): Adjust for the change of
22375 encode_terminal_code.
22376 (term_init): Initialize terminal_encode_buffer and
22377 terminal_encode_buf_size.
22378
22379 * coding.c (consume_chars): If coding->src_object is nil, don't
22380 check annotation.
22381
22382 2008-02-01 Kenichi Handa <handa@m17n.org>
22383
22384 * character.c (char_string): Use ASCII_CHAR_P instead of
22385 SINGLE_BYTE_CHAR_P.
22386
22387 2008-02-01 Kenichi Handa <handa@m17n.org>
22388
22389 * xdisp.c (handle_auto_composed_prop): Check if the last
22390 characters of auto-composed region is newly composed with the
22391 following characters.
22392 (handle_composition_prop): Fix checking of point being inside
22393 composition.
22394
22395 2008-02-01 Kenichi Handa <handa@m17n.org>
22396
22397 * fns.c (concat): Don't change multibyteness of the result by
22398 concatenating an 8-bit character.
22399
22400 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22401 multibyteness of the result when newelt is an 8-bit character.
22402
22403 2008-02-01 Dave Love <fx@gnu.org>
22404
22405 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22406 EMACS_INT.
22407
22408 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22409
22410 * xfaces.c (face_numeric_value): Declare dim size_t.
22411 (Finternal_lisp_face_equal_p): Remove unused f.
22412
22413 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22414 (MATRIX_ROW): Remove unused vars.
22415 (draw_glyphs, x_insert_glyphs, fast_find_position)
22416 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22417 byte/char counts.
22418
22419 * regex.c (regex_compile): Remove unused var.
22420
22421 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22422
22423 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22424 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22425
22426 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22427
22428 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22429
22430 * fileio.c (Fwrite_region): Remove unused var.
22431
22432 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22433 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22434
22435 * composite.c (Fremove_list_of_text_properties): Declare.
22436
22437 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22438 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22439 (coding_inherit_eol_type): Remove unused attrs.
22440 (detect_coding): Cast arg of detect_eol.
22441
22442 * charset.c (syms_of_charset): Remove unused var p.
22443 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22444 byte/char counts.
22445
22446 * casetab.c (set_case_table): Remove unused var.
22447
22448 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22449 unused vars.
22450
22451 2008-02-01 Dave Love <fx@gnu.org>
22452
22453 * xterm.c (x_bitmap_mask): Declare.
22454
22455 2008-02-01 Dave Love <fx@gnu.org>
22456
22457 * xterm.c (x_term_init): Fix type error.
22458
22459 * lisp.h: Add Funibyte_char_to_multibyte.
22460
22461 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22462 (Fset_coding_system_priority): Doc fix.
22463
22464 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22465
22466 * indent.c (check_composition): Make start and end EMACS_INT.
22467
22468 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22469
22470 * xdisp.c (handle_composition_prop, check_point_in_composition):
22471 Make buffer positions EMACS_INT.
22472
22473 * composite.c (find_composition, run_composition_function)
22474 (update_compositions, Ffind_composition_internal): Make buffer
22475 positions EMACS_INT.
22476
22477 * composite.h (find_composition, update_compositions): Make
22478 position args EMACS_INT.
22479
22480 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22481
22482 * intervals.c (get_property_and_range):
22483 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22484
22485 * unexalpha.c: Don't include varargs.h.
22486
22487 2008-02-01 Dave Love <fx@gnu.org>
22488
22489 * coding.h (ENCODE_UTF_8): New.
22490
22491 * Makefile.in (gtkutil.o): Depend on coding.h.
22492
22493 * coding.c (Fset_coding_system_priority): Doc fix.
22494
22495 2008-02-01 Kenichi Handa <handa@m17n.org>
22496
22497 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22498 the case of auto saving.
22499
22500 2008-02-01 Andreas Schwab <schwab@suse.de>
22501
22502 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22503 `range' from GC.
22504
22505 2008-02-01 Kenichi Handa <handa@m17n.org>
22506
22507 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22508
22509 2008-02-01 Kenichi Handa <handa@m17n.org>
22510
22511 * fileio.c (choose_write_coding_system): Return a decided coding system.
22512 (Fwrite_region): Set Vlast_coding_system_used to the return value
22513 of choose_write_coding_system.
22514
22515 2008-02-01 Kenichi Handa <handa@m17n.org>
22516
22517 * charset.c (Fset_charset_priority): Pay attention to duplicated
22518 arguments.
22519
22520 * coding.c (QCcategory): New variable.
22521 (syms_of_coding): Defsym it. Set all elements of
22522 Vcoding_category_table and their symbol values.
22523 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22524 coding-category-XXX, and coding-category-list.
22525 (Fdefine_coding_system_internal): Add category in the plist.
22526
22527 2008-02-01 Kenichi Handa <handa@m17n.org>
22528
22529 * callproc.c (Fcall_process): Handle carryover correctly.
22530
22531 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22532 (raw_text_coding_system): Check NILP (coding_system).
22533 (coding_inherit_eol_type): Check NILP (coding_system) and
22534 NILP (parent).
22535 (consume_chars): Fix for the case of raw-text.
22536
22537 * process.c (read_process_output): Handle carryover correctly.
22538
22539 2008-02-01 Dave Love <fx@gnu.org>
22540
22541 * regex.c (re_search_2): Fix last change.
22542
22543 2008-02-01 Kenichi Handa <handa@m17n.org>
22544
22545 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22546 target_multibyte. Even in a unibyte case, return a converted
22547 multibyte char.
22548 (GET_CHAR_AFTER): New macro.
22549 (PATFETCH): Translate via multibyte char.
22550 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22551 (SETUP_MULTIBYTE_RANGE): New macro.
22552 (regex_compile): Setup compiled code so that its multibyteness
22553 matches that of a target. Fix the handling of "[X-YZ]" using
22554 SETUP_MULTIBYTE_RANGE.
22555 (analyse_first) <charset>: For filling fastmap for all multibyte
22556 characters, don't check by BASE_LEADING_CODE_P.
22557 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22558 the same as RE_MULTIBYTE_P (bufp) now.
22559 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22560 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22561 (TRANSLATE_VIA_MULTIBYTE): New macro.
22562 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22563 It is the same as RE_MULTIBYTE_P (bufp) now.
22564 <exactn>: Translate via multibyte.
22565 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22566 translate it.
22567 <charset, charset_not>: Fetch a character by
22568 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22569 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22570 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22571 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22572 by GET_CHAR_AFTER.
22573 (bcmp_translate): Likewise.
22574
22575 * search.c (compile_pattern): Check the member target_multibyte,
22576 not the member multibyte of buf.
22577
22578 * lread.c (read1): While reading a string, set force_singlebyte
22579 and force_multibyte correctly.
22580
22581 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22582 up of unibyte_to_multibyte_table.
22583
22584 2008-02-01 Kenichi Handa <handa@m17n.org>
22585
22586 * coding.c (setup_coding_system): If coding has
22587 post-read-conversion or pre-write-conversion, set
22588 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22589 respectively.
22590 (decode_coding_gap): Run post-read-conversion if any.
22591
22592 * fileio.c (Finsert_file_contents): Even if we read into a
22593 unibyte buffer, check if we must decode the result or not.
22594
22595 2008-02-01 Kenichi Handa <handa@m17n.org>
22596
22597 * coding.c (make_conversion_work_buffer): Change the work buffer
22598 name to the same one as that of Emacs 21.
22599
22600 2008-02-01 Kenichi Handa <handa@m17n.org>
22601
22602 * coding.h (make_conversion_work_buffer): Adjust prototype.
22603 (code_conversion_restore): Don't extern it.
22604
22605 * coding.c (detected_mask): Delete unused variable.
22606 (decode_coding_iso_2022): Pay attention to the byte sequence of
22607 CTEXT extended segment, and retain those bytes as is.
22608 (decode_coding_ccl): Delete unused variable `valids'.
22609 (setup_coding_system): Delete unused variable `category'.
22610 (consume_chars): Delete unused variable `category'. Make it work
22611 for non-multibyte case.
22612 (make_conversion_work_buffer): Change argument.
22613 (saved_coding): Delete unused variable.
22614 (code_conversion_restore): Don't check saved_coding->destination.
22615 (code_conversion_save): New function.
22616 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22617 instead of record_unwind_protect.
22618 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22619 (detect_coding_system): Delete unused variable `mask'.
22620 (Fdefine_coding_system_internal): Delete unused variable id.
22621
22622 * fileio.c (kill_workbuf_unwind): New function.
22623 (Finsert_file_contents): On replacing, call
22624 make_conversion_work_buffer with correct args, and call
22625 record_unwind_protect with the first arg kill_workbuf_unwind.
22626
22627 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22628
22629 2008-02-01 Kenichi Handa <handa@m17n.org>
22630
22631 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22632 (fontset_add): Fix for the case that TO is less than TO1.
22633 (Ffontset_info): Don't use fallback fontset on checking the
22634 default fontset.
22635 (dump_fontset): New function for debugging.
22636
22637 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22638 coding_type is Qcharset.
22639
22640 2008-02-01 Kenichi Handa <handa@m17n.org>
22641
22642 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22643 (map_char_table): Don't inherit the value from the parent on
22644 initializing VAL. Adjust for the above change.
22645
22646 2008-02-01 Kenichi Handa <handa@m17n.org>
22647
22648 * coding.c (Qsignature, Qendian): Delete these variables.
22649 (syms_of_coding): Don't initialize them.
22650 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22651 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22652 detect_info->found.
22653 (decode_coding_utf_16): Don't detect BOM here.
22654 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22655 is NOT utf_16_without_bom.
22656 (setup_coding_system): For a coding system of type utf-16, check
22657 if the attribute :endian is Qbig or not (not nil or not), and set
22658 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22659 (detect_coding): If coding type is utf-16 and BOM detection is
22660 required, detect it.
22661 (Fdefine_coding_system_internal): For a coding system of type
22662 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22663
22664 2008-02-01 Kenichi Handa <handa@m17n.org>
22665
22666 * coding.c (coding_set_source): Fix for the case that the current
22667 buffer is different from coding->src_object.
22668 (decode_coding_object): Don't use the conversion work buffer if
22669 DST_OBJECT is a buffer.
22670
22671 2008-02-01 Dave Love <fx@gnu.org>
22672
22673 * lread.c (read_emacs_mule_char) [len==2]: Index
22674 emacs_mule_charset correctly.
22675
22676 2008-02-01 Dave Love <fx@gnu.org>
22677
22678 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22679 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22680 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22681 treated specially.)
22682 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22683 (detected_mask): Remove Big5 bits.
22684
22685 2008-02-01 Kenichi Handa <handa@m17n.org>
22686
22687 The following changes are to make the font rescaling facility
22688 compatible with Emacs 21.
22689
22690 * xfaces.c (Vface_font_rescale_alist): Rename from
22691 Vface_resizing_fonts.
22692 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22693 (font_rescale_ratio): Rename from font_resizing_ratio.
22694 (split_font_name): Set font->rescale_ratio.
22695 (better_font_p): Pay attention to font->rescale_ratio.
22696 (build_scalable_font_name): Likewise. Change RESX, and RESY
22697 fields.
22698 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22699
22700 2008-02-01 Kenichi Handa <handa@m17n.org>
22701
22702 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22703 (Qutf_16_le): Remove these variables.
22704 (syms_of_coding): Don't DEFSYM them.
22705 (decode_coding_utf_16): Fix handling of BOM.
22706 (encode_coding_utf_16): Fix handling of BOM.
22707
22708 2008-02-01 Kenichi Handa <handa@m17n.org>
22709
22710 * fileio.c (Finsert_file_contents): On replacing, before decoding
22711 the file into the work buffer, set point of the work buffer to the end.
22712
22713 2008-02-01 Dave Love <fx@gnu.org>
22714
22715 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22716
22717 2008-02-01 Dave Love <fx@gnu.org>
22718
22719 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22720 and fix C types.
22721
22722 2008-02-01 Kenichi Handa <handa@m17n.org>
22723
22724 * xdisp.c (SKIP_GLYPHS): New macro.
22725 (set_cursor_from_row): Pay attention to string display properties.
22726
22727 * category.c (copy_category_entry): Fix for the case that RANGE
22728 is an integer.
22729
22730 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22731
22732 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22733
22734 2008-02-01 Kenichi Handa <handa@m17n.org>
22735
22736 * charset.c (Fcharset_id_internal): New function.
22737 (syms_of_charset): Defsubr it.
22738
22739 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22740 with the last arg charset_list acquired from coding.
22741 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22742 the attribute coding_attr_ccl_valids.
22743
22744 * coding.h (enum define_coding_ccl_arg_index): Set the first
22745 member coding_arg_ccl_decoder to coding_arg_max.
22746
22747 * ccl.h (ccl_driver): Adjust prototype.
22748
22749 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22750 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
22751 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
22752 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22753 last arg Qnil.
22754
22755 2008-02-01 Kenichi Handa <handa@m17n.org>
22756
22757 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22758 call encode_char.
22759
22760 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22761
22762 2008-02-01 Dave Love <fx@gnu.org>
22763
22764 * composite.c (syms_of_composite): Make composition_hash_table weak.
22765
22766 2008-02-01 Kenichi Handa <handa@m17n.org>
22767
22768 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22769 (font_name_registry): Don't extern them.
22770 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22771
22772 * fontset.h (Qfontset): Don't extern it.
22773 (new_fontset_from_font_name): Extern it.
22774
22775 * fontset.c: Give 8 extra slots to fontset objects.
22776 (Qfontset_info): New variable.
22777 (syms_of_fontset): Defsym it.
22778 (FONTSET_FALLBACK): New macro.
22779 (fontset_face): Try also the default fontset.
22780 (make_fontset): Realize a fallback fontset from the default fontset.
22781 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22782 using split_font_name_into_vector and build_font_name_from_vector.
22783 (Fset_fontset_font): Access the elements of font_spec by enum
22784 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22785 name by using split_font_name_into_vector.
22786 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22787 generate a proper font name from the fontset name. Update
22788 Vfontset_alias_alist.
22789 (n_auto_fontsets): New variable.
22790 (new_fontset_from_font_name): New function.
22791 (Ffont_info): Store the information about fonts generated from the
22792 default fontset in the first extra slot of the returned char-table.
22793
22794 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22795 (font_name_registry): Delete function.
22796 (split_font_name_into_vector): New function.
22797 (build_font_name_from_vector): New function.
22798 (font_list): The argument REGISTRY is now a list of registry names.
22799 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22800 specifies an explicit font name, return the name as is. Make a
22801 list of registy names.
22802
22803 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22804 of x_new_fontset.
22805 (Fx_create_frame): Don't call x_new_fontset here. Just use
22806 x_list_fonts to check the existence of fonts.
22807
22808 * xterm.h (x_new_fontset): Adjust prototype.
22809
22810 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22811 string. Use new_fontset_from_font_name to create a fontset from a
22812 font name.
22813
22814 2008-02-01 Kenichi Handa <handa@m17n.org>
22815
22816 * syntax.c (Vfind_word_boundary_function_table): New name for
22817 Vnext_word_boundary_function_table.
22818 (find-word-boundary-function-table): New name for
22819 next-word-boundary-function-table.
22820
22821 2008-02-01 Dave Love <fx@gnu.org>
22822
22823 * Makefile.in: Fix some dependencies.
22824
22825 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22826 set it to nil before returning.
22827
22828 * composite.c (update_compositions): Fix type error.
22829
22830 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22831
22832 2008-02-01 Kenichi Handa <handa@m17n.org>
22833
22834 * xterm.c (x_new_font): Optimize for the case that the font is
22835 already set for the frame.
22836
22837 2008-02-01 Kenichi Handa <handa@m17n.org>
22838
22839 * chartab.c (char_table_ascii): Check if the char table contents
22840 is sub-char-table or not.
22841 (char_table_set, char_table_set_range): Fix argument to
22842 char_table_ascii.
22843
22844 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22845 (detect_coding_utf_8, detect_coding_utf_16)
22846 (detect_coding_emacs_mule, detect_coding_iso_2022)
22847 (detect_coding_sjis, detect_coding_big5)
22848 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22849 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22850 sequence is valid in this coding system. Change callers.
22851 (MAX_ANNOTATION_LENGTH): New macro.
22852 (ADD_ANNOTATION_DATA): New macro.
22853 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22854 ADD_ANNOTATION_DATA. Change the format of annotation data.
22855 (ADD_CHARSET_DATA): New macro.
22856 (emacs_mule_char): New argument ID. Change callers.
22857 (decode_coding_emacs_mule, decode_coding_iso_2022)
22858 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22859 Produce charset annotation data in coding->charbuf.
22860 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22861 to charset annotation data in coding->charbuf.
22862 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22863 coding->common_flags if the coding system is iso-2022 based and
22864 uses designation.
22865 (produce_composition): Adjust for the new annotation data format.
22866 (produce_charset): New function.
22867 (produce_annotation): Handle charset annotation.
22868 (handle_composition_annotation, handle_charset_annotation): New
22869 functions.
22870 (consume_chars): Handle charset annotation. Utilize the above two
22871 functions.
22872 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22873 buffer, get the deleted text as a string and set
22874 coding->src_object to that string.
22875 (detect_coding, detect_coding_system): Use the new struct
22876 coding_detection_info.
22877
22878 * coding.h (struct coding_detection_info): New structure.
22879 (struct coding_system): Adjust prototype of the member `detector'.
22880 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22881
22882 2008-02-01 Kenichi Handa <handa@m17n.org>
22883
22884 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22885
22886 2008-02-01 Dave Love <fx@gnu.org>
22887
22888 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22889 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22890 to new local and nullify apropos_accumulate before returning.
22891 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22892
22893 2008-02-01 Kenichi Handa <handa@m17n.org>
22894
22895 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22896 correctly.
22897
22898 2008-02-01 Dave Love <fx@gnu.org>
22899
22900 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22901
22902 2008-02-01 Kenichi Handa <handa@m17n.org>
22903
22904 The following changes are to make character composition happen
22905 automatically on displaying.
22906
22907 * Makefile.in (lisp, shortlisp): Add composite.elc.
22908
22909 * composite.h (Qauto_composed, Vauto_composition_function)
22910 (Qauto_composition_function): Extern them.
22911
22912 * composite.c (Vcomposition_function_table)
22913 (Qcomposition_function_table): Delete variables.
22914 (Qauto_composed, Vauto_composition_function)
22915 (Qauto_composition_function): New variables.
22916 (run_composition_function): Don't call
22917 compose-chars-after-function.
22918 (update_compositions): Clear `auto-composed' text property.
22919 (compose_chars_in_text): Delete this function.
22920 (syms_of_composite): Staticpro Qauto_composed and
22921 Qauto_composition_function. Declare Vauto_composition_function as
22922 a Lisp variable.
22923
22924 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22925
22926 * xdisp.c (it_props): Add an entry for Qauto_composed.
22927 (handle_auto_composed_prop): New function.
22928
22929 * xselect.c (selection_data_to_lisp_data): Don't call
22930 compose_chars_in_text.
22931
22932 2008-02-01 Dave Love <fx@gnu.org>
22933
22934 * keyboard.c (read_char): Modify checking around use of
22935 Vkeyboard_translate_table.
22936
22937 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22938 and fix C types.
22939
22940 2008-02-01 Kenichi Handa <handa@m17n.org>
22941
22942 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22943 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22944 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22945 the case that the last byte is '\r' correctly.
22946 (decode_coding): Flush out the unprocessed data correctly.
22947 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22948
22949 2008-02-01 Dave Love <fx@gnu.org>
22950
22951 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22952 Add XK_ISO... case.
22953 (xaw_scroll_callback): Revert last change.
22954
22955 2008-02-01 Kenichi Handa <handa@m17n.org>
22956
22957 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22958
22959 2008-02-01 Kenichi Handa <handa@m17n.org>
22960
22961 * xfaces.c (Vface_resizing_fonts): New variable.
22962 (struct font_name): New member `resizing_ratio'.
22963 (font_resizing_ratio): New function.
22964 (split_font_name): Set font->resizing_ratio.
22965 (better_font_p): Pay attention to font->resizing_ratio.
22966 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22967 RESX, and RESY fields.
22968 (try_alternative_families): Try scalable fonts if
22969 Vscalable_fonts_allowed is not Qt.
22970 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22971
22972 2008-02-01 Dave Love <fx@gnu.org>
22973
22974 * xterm.c (xaw_scroll_callback): Cast correctly.
22975
22976 2008-02-01 Dave Love <fx@gnu.org>
22977
22978 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22979 (lispy_kana_keys): Comment out.
22980 (make_lispy_event) [XK_kana_A]: Comment out.
22981
22982 * xterm.c (xaw_scroll_callback): Cast call_data.
22983 (XTread_socket): Deal with ASCII keysyms.
22984 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22985
22986 2008-02-01 Dave Love <fx@gnu.org>
22987
22988 * xterm.c (Vx_keysym_table): New.
22989 (syms_of_xterm): Initialize it.
22990 (XTread_socket): Use it.
22991 From head: Eliminate incorrect optimization that tried to avoid
22992 decoding the output of X*LookupString.
22993 (x_get_font_repertory): Delete charset declaration.
22994
22995 2008-02-01 Kenichi Handa <handa@m17n.org>
22996
22997 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22998 return 0.
22999 (Fdefine_coding_system_internal): Setup
23000 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
23001
23002 2008-02-01 Dave Love <fx@gnu.org>
23003
23004 * coding.c (Fcheck_coding_system): Doc fix.
23005
23006 * editfns.c (Finsert_byte): Return a proper value.
23007
23008 2008-02-01 Kenichi Handa <handa@m17n.org>
23009
23010 * coding.c (decode_coding): Fix args to translate_chars. Pay
23011 attention to Vstandard_translation_table_for_decode.
23012 (encode_coding): Fix args to translate_chars. Pay attention to
23013 Vstandard_translation_table_for_encode.
23014
23015 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
23016 SINGLE_BYTE_CHAR_P.
23017
23018 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
23019 not by SINGLE_BYTE_CHAR_P.
23020
23021 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
23022 SINGLE_BYTE_CHAR_P.
23023
23024 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
23025 SINGLE_BYTE_CHAR_P.
23026
23027 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
23028 by SINGLE_BYTE_CHAR_P.
23029
23030 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
23031 SINGLE_BYTE_CHAR_P.
23032
23033 2008-02-01 Dave Love <fx@gnu.org>
23034
23035 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
23036
23037 2008-02-01 Dave Love <fx@gnu.org>
23038
23039 * fns.c (Flanginfo): Fix typo.
23040
23041 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
23042
23043 2008-02-01 Kenichi Handa <handa@m17n.org>
23044
23045 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
23046 (detect_coding_emacs_mule, detect_coding_iso_2022)
23047 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
23048 incomplete byte sequence. Don't update *mask when correctly detected.
23049 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
23050 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
23051 (detect_coding, detect_coding_system): Adjust for the changes above.
23052
23053 2008-02-01 Kenichi Handa <handa@m17n.org>
23054
23055 * character.c (char_string): Rename from
23056 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
23057 (string_char): Rename from string_char.
23058
23059 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
23060 if C is greater than MAX_3_BYTE_CHAR.
23061 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
23062 string_char instead of string_char_with_unification.
23063
23064 2008-02-01 Dave Love <fx@gnu.org>
23065
23066 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
23067
23068 2008-02-01 Kenichi Handa <handa@m17n.org>
23069
23070 * keymap.c (push_key_description): Pay attention to force_multibyte.
23071
23072 * regex.c (re_search_2): Fix for the case of unibyte buffer.
23073
23074 2008-02-01 Dave Love <fx@gnu.org>
23075
23076 * charset.c (define_charset_internal): Rename `supprementary'.
23077
23078 * Makefile.in (lisp, shortlisp): Remove latin-N.
23079
23080 2008-02-01 Dave Love <fx@gnu.org>
23081
23082 * xfns.c (x_window, x_window): Use use_xim.
23083
23084 * xterm.c (use_xim): Initialize.
23085 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
23086 (x_term_init): Maybe set use_xim.
23087
23088 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
23089
23090 2008-02-01 Kenichi Handa <handa@m17n.org>
23091
23092 * search.c (search_buffer): Fix case-fold-search of multibyte
23093 characters.
23094 (boyer_moore): Rename the last argument to char_high_bits.
23095
23096 2008-02-01 Kenichi Handa <handa@m17n.org>
23097
23098 * xdisp.c (display_string): Fix for the case of zero width glyph.
23099
23100 * xfns.c (x_set_font): Change the error message of the case that
23101 x_new_fontset returns Qt.
23102
23103 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
23104 (Finternal_set_lisp_face_attribute): Use signal_error for the
23105 error of invalid fontset.
23106
23107 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
23108 fontset, return Qt.
23109
23110 2008-02-01 Dave Love <fx@gnu.org>
23111
23112 * unexelf.c (unexec): Make .got handling not SGI-specific.
23113
23114 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
23115
23116 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
23117
23118 * keyboard.c (read_key_sequence): Fix type error.
23119
23120 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
23121 type error.
23122
23123 * fontset.c (fontset_add): Return Lisp_Object.
23124
23125 2008-02-01 Dave Love <fx@gnu.org>
23126
23127 * charset.h (charset_ordered_list_tick): Declare extern.
23128
23129 2008-02-01 Kenichi Handa <handa@m17n.org>
23130
23131 The following changes (and some of 2008-02-01 changes of mine) are
23132 for handling syntax, category, and case conversion for unibyte
23133 characters by converting them to multibyte on the fly. With these
23134 changes, we don't have to setup syntax and case tables for unibyte
23135 characters in each language environment.
23136
23137 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
23138 multibyte if necessary.
23139
23140 * bytecode.c (Fbyte_code): Likewise.
23141
23142 * character.h (LEADING_CODE_LATIN_1_MIN)
23143 (LEADING_CODE_LATIN_1_MAX): New macros.
23144 (unibyte_to_multibyte_table): Extern it.
23145 (unibyte_char_to_multibyte): New macro.
23146 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
23147 (CHAR_LEADING_CODE): New macro.
23148 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
23149
23150 * character.c (unibyte_to_multibyte_table): New variable.
23151 (unibyte_char_to_multibyte): Move to character.h and define as macro.
23152 (multibyte_char_to_unibyte): If C is an eight-bit character,
23153 convert it to the corresponding byte value.
23154
23155 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
23156 not 1, signals an error. Update the elements of
23157 unibyte_to_multibyte_table.
23158 (init_charset_once): Initialize unibyte_to_multibyte_table.
23159 (syms_of_charset): Define the charset `iso-8859-1'.
23160
23161 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
23162 as is without converting it to unibyte. In a unibyte buffer,
23163 convert C to multibyte before checking the syntax.
23164
23165 * lisp.h (unibyte_char_to_multibyte): Delete extern.
23166
23167 * minibuf.c (Fminibuffer_complete_word): Use the macro
23168 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
23169
23170 * regex.h (struct re_pattern_buffer): New member target_multibyte.
23171
23172 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
23173 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
23174 that is zero, convert an eight-bit char to multibyte.
23175 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
23176 non-emacs case.
23177 (PATFETCH): Convert an eight-bit char to multibyte.
23178 (HANDLE_UNIBYTE_RANGE): New macro.
23179 (regex_compile): Setup the compiled pattern for multibyte chars
23180 even if the given regex string is unibyte. Use PATFETCH_RAW
23181 instead of PATFETCH in many places. To handle `charset'
23182 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
23183 only for ASCII chars.
23184 (analyse_first) <exactn>: Simplify because the compiled pattern
23185 is multibyte.
23186 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
23187 <charset>: Use CHAR_LEADING_CODE to get leading codes.
23188 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
23189 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
23190 multibyte always 1.
23191 (re_search_2): In emacs, set the locale variable multibyte to 1,
23192 otherwise to 0. New local variable target_multibyte. Check it
23193 to decide the multibyteness of STR1 and STR2. If
23194 target_multibyte is zero, convert unibyte chars to multibyte
23195 before translating and checking fastmap.
23196 (TARGET_CHAR_AND_LENGTH): New macro.
23197 (re_match_2_internal): In emacs, set the locale variable multibyte
23198 to 1, otherwise to 0. New local variable target_multibyte. Check
23199 it to decide the multibyteness of STR1 and STR2. Use
23200 TARGET_CHAR_AND_LENGTH to fetch a character from D.
23201 <charset, charset_not>: If multibyte is nonzero, check fastmap
23202 only for ASCII chars. Call bcmp_translate with
23203 target_multibyte, not with multibyte.
23204 <begline>: Declare the local variable C as `unsigned'.
23205 (bcmp_translate): Change the last arg name to target_multibyte.
23206
23207 * search.c (compile_pattern_1): Don't adjust the multibyteness of
23208 the regexp pattern and the matching target. Set cp->buf.multibyte
23209 to the multibyteness of the regexp pattern. Set
23210 cp->but.target_multibyte to the multibyteness of the matching target.
23211 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
23212 FETCH_STRING_CHAR_ADVANCE.
23213 (Freplace_match): Convert unibyte chars to multibyte.
23214
23215 * syntax.c (char_quoted, back_comment, scan_words)
23216 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
23217 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
23218 unibyte chars to multibyte.
23219 (skip_chars): Delete the arg syntaxp, and move the code for
23220 handling syntaxes to skip_syntaxes. Change callers.
23221 Fix the case that the multibyteness of STRING and the current
23222 buffer doesn't match.
23223 (skip_syntaxes): New function.
23224 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
23225 SINGLE_BYTE_CHAR_P.
23226
23227 2008-02-01 Kenichi Handa <handa@m17n.org>
23228
23229 * xfaces.c (QCfontset): New variable.
23230 (LFACE_FONTSET): New macro.
23231 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
23232 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
23233 (Finternal_set_lisp_face_attribute)
23234 (Finternal_get_lisp_face_attribute): Handle QCfontset.
23235 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
23236 check also LFACE_FONTSET_INDEX.
23237 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
23238 attrs[LFACE_FONT_INDEX].
23239 (syms_of_xfaces): Intern and staticpro QCfontset.
23240
23241 * dispextern.h (enum lface_attribute_index): New member
23242 LFACE_FONTSET_INDEX.
23243
23244 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
23245
23246 2008-02-01 Kenichi Handa <handa@m17n.org>
23247
23248 * coding.c (coding_set_destination): Fix coding->destination for
23249 the case converting a region.
23250 (encode_coding_utf_8): Encode eight-bit chars as single byte.
23251 (encode_coding_object): Fix coding->dst_pos and
23252 coding->dst_pos_byte for the case converting a region.
23253
23254 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
23255
23256 * character.h (BYTE8_STRING): New macro.
23257
23258 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
23259
23260 2008-02-01 Kenichi Handa <handa@m17n.org>
23261
23262 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
23263 characters by octal form.
23264
23265 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23266
23267 * buffer.h (_fetch_multibyte_char_len): Delete extern.
23268 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
23269 _fetch_multibyte_char_len.
23270 (FETCH_CHAR_AS_MULTIBYTE): New macro.
23271
23272 * casetab.c (set_canon, set_identity, shuffle): Simplify.
23273
23274 * casefiddle.c (casify_object): Simplify. Handle the case that
23275 the case conversion change the byte length.
23276 (casify_region): Likewise.
23277
23278 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
23279
23280 * character.c (_fetch_multibyte_char_len): Delete this variable.
23281 (syms_of_character): Setup Vprintable_chars.
23282
23283 * editfns.c (Fchar_equal): Fix for the unibyte case.
23284 (Finsert_byte): New function.
23285 (syms_of_editfns): Defsubr it.
23286
23287 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
23288 of direct code 0x3ffff.
23289
23290 * search.c (Freplace_match): Fix for the unibyte case.
23291
23292 2008-02-01 Kenichi Handa <handa@m17n.org>
23293
23294 * lread.c (safe_to_load_p): Fix the logic.
23295
23296 * syntax.c (scan_words): Don't treat characters belonging to
23297 different scripts as constituting a word.
23298
23299 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23300
23301 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
23302
23303 * emacs.c (main): In the case of --unibyte, instead of aborting on
23304 finding non-empty buffer, make it unibyte.
23305
23306 2008-02-01 Kenichi Handa <handa@m17n.org>
23307
23308 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
23309 to create a fontset.
23310
23311 2008-02-01 Dave Love <fx@gnu.org>
23312
23313 * character.c (Funibyte_char_to_multibyte): Doc fix.
23314
23315 * xfns.c [HAVE_STDLIB_H]: Fix last change.
23316
23317 2008-02-01 Kenichi Handa <handa@m17n.org>
23318
23319 * fontset.c (fontset_add): Make the type `int'.
23320 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23321
23322 * character.c (unibyte_char_to_multibyte)
23323 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23324 charset_unibyte, not charset_primary.
23325
23326 * charset.h (charset_unibyte): Extern it instead of charset_primary.
23327
23328 * charset.c (charset_unibyte): Rename from charset_primary.
23329 (Funibyte_charset): Rename from Fprimary_charset.
23330 (Fset_unibyte_charset): Rename from Fset_primary_charset.
23331 (syms_of_charset): Adjust for the above changes.
23332
23333 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23334 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23335 it->multibyte_p is zero.
23336
23337 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23338 Delete extern.
23339
23340 2008-02-01 Kenichi Handa <handa@m17n.org>
23341
23342 * coding.c (Fdefine_coding_system_internal): Fix category setting
23343 for a coding system of type iso-2022.
23344
23345 2008-02-01 Kenichi Handa <handa@m17n.org>
23346
23347 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23348
23349 2008-02-01 Kenichi Handa <handa@m17n.org>
23350
23351 * syntax.c (Vnext_word_boundary_function_table): New variable.
23352 (next-word-boundary-function-table): Declare it as a Lisp variable
23353 in syms_of_syntax.
23354 (scan_words): Call functions in Vnext_word_boundary_function_table
23355 if any.
23356
23357 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23358
23359 * fontset.c (fs_load_font): If fontp->charset is not negative,
23360 return fontp without setting its members.
23361
23362 2008-02-01 Dave Love <fx@gnu.org>
23363
23364 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23365
23366 * m/sparc.h (HAVE_ALLOCA): Delete.
23367
23368 * s/irix6-5.h: Don't include strings.h.
23369 (bcopy, bzero, bcmp): Don't undef.
23370
23371 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23372
23373 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23374 (TIOCSIGSEND): Don't test IRIX6.
23375 (bcopy, bzero, bcmp): Define conditionally.
23376
23377 2008-02-01 Kenichi Handa <handa@m17n.org>
23378
23379 * buffer.c (Qas, Qmake, Qto): New variables.
23380 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23381 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23382
23383 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23384 we are inserting a process output into a multibyte buffer.
23385
23386 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23387 multibyte_char_to_unibyte.
23388
23389 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23390 by the primary charset, make it eight-bit char.
23391 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23392
23393 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23394 (charset_8_bit__control, charset_8_bit_graphic)
23395 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23396 (define_charset_internal): New function.
23397 (syms_of_charset): Call define_charset_internal for pre-defined
23398 charsets.
23399
23400 * charset.h (charset_8_bit): Extern it.
23401
23402 * coding.c (make_conversion_work_buffer): Adjust for the change
23403 of Fset_buffer_multibyte.
23404 (encode_coding_raw_text): Increment p0 in the loop.
23405
23406 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23407
23408 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23409 for the change of Fset_buffer_multibyte.
23410
23411 * fns.c (Fstring_to_multibyte): New function.
23412 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23413
23414 2008-02-01 Dave Love <fx@gnu.org>
23415
23416 * xfns.c (x_put_x_image): Declare args.
23417
23418 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23419 (try_font_list): Declare an arg.
23420
23421 * xdisp.c (message2_nolog, set_message): Declare an arg.
23422
23423 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23424
23425 * syntax.c (scan_sexps_forward): Declare an arg.
23426
23427 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23428 Declare an arg.
23429
23430 * lisp.h (Fnew_fontset): Declare.
23431
23432 * keymap.c (push_key_description): Call CHARACTERP correctly.
23433
23434 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23435 (face_for_char): Delete unused vars.
23436 (Fset_fontset_font): Doc fix. Delete unused vars.
23437
23438 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23439
23440 * composite.c (update_compositions): Declare arg.
23441
23442 * cm.c (calccost, cmgoto): Declare args.
23443
23444 * charset.c: Remove `emacs' conditional. Doc fixes.
23445 (map_char_table_for_charset): Declare.
23446
23447 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23448
23449 * ccl.c: Remove `emacs' conditional.
23450
23451 2008-02-01 Kenichi Handa <handa@m17n.org>
23452
23453 The following changes are to allow specifying multiple font
23454 patterns for a character range (specified by script or charset).
23455
23456 * Makefile.in (abbrev.o): Depend on syntax.h.
23457 (xfaces.o): Depend on charset.h.
23458
23459 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23460 SINGLE_BYTE_CHAR_P.
23461
23462 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23463
23464 * character.h (Vchar_script_table): Extern it.
23465
23466 * character.c (Vscript_alist): Delete.
23467 (Vchar_script_table, Qchar_script_table): New variable.
23468 (syms_of_character): Declare Vchar_script_table as a lisp variable
23469 and initialize it.
23470
23471 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23472 have property char-table-extra-slots, make no extra slot.
23473
23474 * dispextern.h (struct face): Delete member `charset'.
23475 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23476 SINGLE_BYTE_CHAR_P.
23477 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23478 Add prototypes.
23479 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23480 (generate_ascii_font_name): Rename from generate_ascii_font.
23481
23482 * fontset.h (get_font_repertory_func): New prototype.
23483 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23484 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23485
23486 * fontset.c (Qprepend, Qappend): New variables.
23487 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23488 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23489 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23490 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23491 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23492 (load_font_get_repertory): New functions.
23493 (fontset_set): Delete.
23494 (fontset_face): New arg FACE. Return face ID, not face.
23495 Complete re-write to handle new fontset structure. Change caller.
23496 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23497 (face_for_char): Don't call lookup_face.
23498 (make_fontset_for_ascii_face): New arg FACE.
23499 (fs_load_font): New arg CHARSET_ID. Don't check
23500 Vfont_encoding_alist here.
23501 (find_font_encoding): New function.
23502 (list_fontsets): Use STRINGP, not ! NILP.
23503 (accumulate_script_ranges): New function.
23504 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23505 re-written to handle new fontset structure.
23506 (Ffontset_font): Return a copy of element.
23507 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23508 docstring of font-encoding-alist.
23509
23510 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23511 (Fset_fotset_font): Fix arguments to 5.
23512
23513 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23514
23515 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23516 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23517 (highlight_trailing_whitespace): Adjust for the change of
23518 lookup_named_face.
23519
23520 * xfaces.c: Include charset.h.
23521 (load_face_font): Delete argument C. Change caller.
23522 (generate_ascii_font_name): Rename from generate_ascii_font.
23523 (font_name_registry): New function.
23524 (cache_face): Store ascii faces before non-ascii faces in buckets.
23525 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23526 Lookup only ascii faces.
23527 (lookup_non_ascii_face): New function.
23528 (lookup_named_face): Delete argument C. Change caller.
23529 (lookup_derived_face): Delete argument C. Change caller.
23530 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23531 a string, just call font_list with it.
23532 (choose_face_font): Delete arguments FACE and C. New arg
23533 FONT_SPEC. Change caller.
23534 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23535 Change caller.
23536 (realize_non_ascii_face): New function.
23537 (realize_x_face): Call load_face_font here.
23538 (realize_tty_face): Delete argument C. Change caller.
23539 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23540 get a face ID.
23541 (dump_realized_face): Don't print charset of FACE.
23542
23543 * xfns.c (x_set_font): Always call x_new_fontset and
23544 store_frame_parameter.
23545 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23546 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23547
23548 * xterm.h (x_get_font_repertory): Extern it.
23549
23550 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23551 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23552 it->multibyte_p is zero.
23553 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23554 (x_new_fontset): If FONTSETNAME doesn't match any existing
23555 fontsets, create a new one.
23556 (x_get_font_repertory): New function.
23557
23558 2008-02-01 Kenichi Handa <handa@m17n.org>
23559
23560 * coding.c (Ffind_coding_systems_region_internal): Detect an
23561 ASCII only string correctly.
23562
23563 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23564 version is 0.
23565
23566 2008-02-01 Kenichi Handa <handa@m17n.org>
23567
23568 * lread.c: Include "coding.h".
23569 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23570 (load_each_byte, unread_char): New variables.
23571 (readchar_backlog): Delete.
23572 (readchar): Return a character unless load_each_byte is nonzero.
23573 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23574 cons. If unread_char is not -1, simply return it.
23575 (unreadchar): Handle the case that readcharfun is
23576 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23577 (read_multibyte): Delete.
23578 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23579 (read_emacs_mule_char): New functions.
23580 (Fload): Even if the file doesn't have the extension ".elc", if
23581 safe_to_load_p returns a positive version number, assume that the
23582 file contains bytecompiled code. If the version is less than 22,
23583 load the file while decoding multibyte sequences by emacs-mule.
23584 (readevalloop): Don't use readchar_backlog.
23585 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23586 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23587 (read_escape): Delete the arg BYTEREP.
23588 (read1): Set load_each_byte to 1 temporarily while handling
23589 #@NUMBER. Don't call read_multibyte.
23590 (read_vector): Call Fread with a cons. If readcharfun is
23591 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23592 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23593 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23594 and Qload_force_doc_strings.
23595
23596 2008-02-01 Kenichi Handa <handa@m17n.org>
23597
23598 * xdisp.c (face_before_or_after_it_pos): Call
23599 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23600
23601 2008-02-01 Kenichi Handa <handa@m17n.org>
23602
23603 * character.h (TRAILING_CODE_P): New macro.
23604 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23605 (string_char_with_unification): Fix prototype.
23606 (Vscript_alist): Extern it.
23607
23608 * character.c (Vscript_alist): New variable.
23609 (string_char_with_unification, str_as_unibyte)
23610 (string_escape_byte8): Add `const' to local variables.
23611 (syms_of_character): Declare script-alist as a Lisp variable.
23612
23613 * charset.h (Vcharset_ordered_list): Extern it.
23614 (charset_ordered_list_tick): Extern it.
23615 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23616 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23617 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23618 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23619 (Funify_charset): Adjust for the change of Funify_charset.
23620
23621 * charset.c (charset_ordered_list_tick): New variable.
23622 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23623 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
23624 deunify instead of unify a charset.
23625 (string_xstring_p): Add `const' to local variables.
23626 (find_charsets_in_text): Add `const' to arguments and local variables.
23627 (encode_char): Adjust for the change of Funify_charset. Fix
23628 detecting of invalid code.
23629 (Fset_charset_priority): Increment charset_ordered_list_tick.
23630 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23631 and TO_CODE.
23632
23633 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23634 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23635 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23636 (decode_coding_ccl, consume_chars)
23637 (Ffind_coding_systems_region_internal)
23638 (Fcheck_coding_systems_region): Add `const' to local variables.
23639
23640 * print.c (print_object): Use octal form for printing the
23641 contents of a bool vector.
23642
23643 2008-02-01 Dave Love <fx@gnu.org>
23644
23645 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23646 <version == 20>: Refuse to load.
23647
23648 2008-02-01 Dave Love <fx@gnu.org>
23649
23650 * fns.c: Move coding.h.
23651 (Qcodeset, Qdays, Qmonths): New.
23652 (concat): Use CHARACTERP instead of INTEGERP.
23653 (Flocale_codeset): Delete.
23654 (Flanginfo): New function.
23655 (syms_of_fns): Change accordingly.
23656
23657 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23658
23659 2008-02-01 Dave Love <fx@gnu.org>
23660
23661 * casetab.c (init_casetab_once, init_casetab_once): Fix
23662 CHAR_TABLE_SET call.
23663
23664 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23665
23666 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23667
23668 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23669 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23670 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23671
23672 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23673
23674 * coding.c (ENCODE_DESIGNATION, decode_eol)
23675 (make_conversion_work_buffer, code_conversion_restore)
23676 (Fdefine_coding_system_internal): Convert Lisp types.
23677 (code_conversion_restore): Use EQ, not ==.
23678 (Fencode_coding_string): Fix code_convert_string call.
23679
23680 * coding.h (code_convert_region): Fix prototype.
23681
23682 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23683
23684 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23685 (Ffontset_info): Convert Lisp types.
23686
23687 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23688
23689 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23690
23691 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23692
23693 * chartab.c: Include "...h", not <...h> in some cases.
23694
23695 * callproc.c (Fcall_process): Remove unused variables.
23696
23697 2008-02-01 Dave Love <fx@gnu.org>
23698
23699 * coding.c (Fset_coding_system_priority): Allow null arg list.
23700
23701 2008-02-01 Dave Love <fx@gnu.org>
23702
23703 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23704 (Fself_insert_and_exit): Use CHARACTERP.
23705
23706 * callproc.c (Fcall_process): Remove unused vars.
23707
23708 * xterm.c (XTread_socket): Add extra dead keysyms.
23709
23710 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23711
23712 * dispextern.h: Remove prototypes for redraw_frame,
23713 redraw_garbaged_frames.
23714
23715 * cmds.c (Fself_insert_command): Use CHARACTERP.
23716
23717 * chartab.c (make_sub_char_table): Remove unused var.
23718 (Fset_char_table_default, Fmap_char_table): Doc fix.
23719
23720 * keymap.c (access_keymap): Remove generic char code.
23721 (push_key_description): Use CHARACTERP.
23722
23723 2008-02-01 Dave Love <fx@gnu.org>
23724
23725 * charset.c: Doc fixes.
23726 (Funify_charset): Extra checking.
23727
23728 2008-02-01 Dave Love <fx@gnu.org>
23729
23730 * lread.c: Remove some unused variables.
23731 (safe_to_load_p): If safe, return the magic number version byte.
23732 (Fload): Maybe use load-with-code-conversion.
23733
23734 2008-02-01 Kenichi Handa <handa@m17n.org>
23735
23736 * category.c (Fmodify_category_entry): Don't modify the contents
23737 of category_set for characters out of the range. Avoid
23738 unnecessary modification.
23739
23740 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23741 Vchar_unify_table. The default value of the table is now nil.
23742
23743 * character.c (syms_of_character): Setup Vchar_width_table for
23744 eight-bit-control and raw-byte chars.
23745
23746 * charset.h (enum define_charset_arg_index): Delete
23747 charset_arg_parents and add charset_arg_subset and
23748 charset_arg_superset.
23749 (enum charset_attr_index): Delete charset_parents and add
23750 charset_subset and charset_superset.
23751 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23752 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23753 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23754 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23755 (CHARSET_SUPERSET): New macros.
23756 (charset_work): Extern it.
23757 (ENCODE_CHAR): Use charset_work.
23758 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23759 (map_charset_chars): Extern it.
23760
23761 * charset.c (load_charset_map): Set the default value of encoder
23762 and deunifier char-tables to nil.
23763 (map_charset_chars): Change argument. Change callers. Use
23764 map_char_table_for_charset instead of map_char_table.
23765 (Fmap_charset_chars): New optional args from_code and to_code.
23766 (Fdefine_charset_internal): Adjust for the change of
23767 `define-charset' (:parents -> :subset or :superset).
23768 (charset_work): New variable.
23769 (encode_char, syms_of_charset): Adjust for the change of
23770 Fdefine_charset_internal.
23771 (Ffind_charset_string): Setup the vector `charsets' correctly.
23772
23773 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23774 the previous change.
23775 (char_table_ref_and_range): Adjust for the above change.
23776 (map_sub_char_table_for_charset): New function.
23777 (map_char_table_for_charset): New function.
23778
23779 * keymap.c (describe_vector): Handle a char-table directly here.
23780 (describe_char_table): Delete.
23781
23782 * lisp.h (map_charset_chars): Delete.
23783
23784 2008-02-01 Dave Love <fx@gnu.org>
23785
23786 * fns.c (count_combining): Comment out (unused).
23787 (Flocale_codeset): New.
23788 (syms_of_fns): Defsubr it.
23789
23790 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23791 (size_t): Remove.
23792
23793 2008-02-01 Dave Love <fx@gnu.org>
23794
23795 * Makefile.in (chartab.o): Depend on charset.h.
23796
23797 2008-02-01 Kenichi Handa <handa@m17n.org>
23798
23799 * character.c (syms_of_character): Set the default value of
23800 Vprintable_chars to Qnil.
23801
23802 2008-02-01 Dave Love <fx@gnu.org>
23803
23804 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23805
23806 2008-02-01 Kenichi Handa <handa@m17n.org>
23807
23808 * charset.c (load_charset_map): Handle the case that from < to
23809 correctly.
23810
23811 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23812 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23813 Pay attention to raw-8-bit chars.
23814
23815 2008-02-01 Kenichi Handa <handa@m17n.org>
23816
23817 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23818 It is not bytecompiled now.
23819
23820 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23821 (charset_jisx0208): New variables.
23822 (Fdefine_charset_internal): Setup them if appropriate.
23823 (init_charset_once): Initialize them to -1.
23824
23825 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23826 (charset_jisx0208): Extern them.
23827
23828 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23829 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23830 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23831 (setup_iso_safe_charsets): Fix arguments to Fassq.
23832 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23833 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23834 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23835 (encode_coding_iso_2022): Change the 1st arg to
23836 ENCODE_ISO_CHARACTER to a variable.
23837
23838 2008-02-01 Kenichi Handa <handa@m17n.org>
23839
23840 * charset.h (enum define_charset_arg_index): New enums
23841 charset_arg_min_code and charset_arg_max_code.
23842 (struct charset): New member char_index_offset.
23843
23844 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23845 Take charset->char_index_offset into account.
23846 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23847 args[charset_arg_max_code]. Setup charset.char_index_offset.
23848 (syms_of_charset): Fix args to Fdefine_charset_internal.
23849
23850 2008-02-01 Dave Love <fx@gnu.org>
23851
23852 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23853
23854 2008-02-01 Dave Love <fx@gnu.org>
23855
23856 * coding.c: Doc fixes.
23857 (Fcoding_system_aliases): Fix return value.
23858 (Qmac): Remove (duplicated) definition.
23859
23860 2008-02-01 Dave Love <fx@gnu.org>
23861
23862 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23863 New functions.
23864
23865 * character.c (Fstring): Doc fix.
23866
23867 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23868
23869 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
23870 (font-encoding-alist): Doc fix.
23871
23872 2008-02-01 Dave Love <fx@gnu.org>
23873
23874 * term.c (costs_set): Declare static, non-initialized for pcc.
23875 (encode_terminal_code): Remove unused var.
23876
23877 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23878 for K&R.
23879
23880 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23881
23882 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23883 (suffixes): Move out of make_subsidiaries for K&R.
23884
23885 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23886
23887 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23888
23889 2008-02-01 Dave Love <fx@gnu.org>
23890
23891 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23892
23893 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23894
23895 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
23896
23897 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23898
23899 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23900
23901 2008-02-01 Kenichi Handa <handa@m17n.org>
23902
23903 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23904 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23905
23906 2008-02-01 Kenichi Handa <handa@m17n.org>
23907
23908 * coding.c (decode_coding_charset): Adjust for the change of
23909 Fdefine_coding_system_internal.
23910 (Fdefine_coding_system_internal): For a coding system of
23911 `charset' type, store a list of charset IDs in
23912 `charset_attr_charset_valids' element of coding attributes.
23913
23914 2008-02-01 Kenichi Handa <handa@m17n.org>
23915
23916 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23917 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23918 caller. Handle 2-byte and 3-byte charsets correctly.
23919 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23920 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23921 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23922 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23923 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23924 sequence.
23925 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23926 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23927 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23928 and alt&rule composition.
23929 (decode_coding_iso_2022): Handle composition correctly.
23930 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23931
23932 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23933 re-defining a charset. If the charset has :emacs-mule-id, setup
23934 emacs_mule_bytes.
23935 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23936
23937 2008-02-01 Kenichi Handa <handa@m17n.org>
23938
23939 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23940 (encode_coding_big5, encode_coding_charset): If coding requires safe
23941 encoding, produce a character specified by
23942 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23943
23944 2008-02-01 Dave Love <fx@gnu.org>
23945
23946 * xterm.c (XSetIMValues): Declare.
23947
23948 * process.c: Conditionally include sys/wait.h, pty.h.
23949
23950 * print.c (print_object): Fix print format for 64-bit systems.
23951
23952 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23953
23954 * buffer.c (emacs_strerror): Declare.
23955
23956 * fontset.c (Fclear_face_cache): Declare.
23957 (accumulate_font_info): Comment-out (unused).
23958 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23959 variables.
23960
23961 * character.h (string_escape_byte8): Declare.
23962
23963 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23964 unused vars.
23965 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23966 (Fmap_charset_chars): Doc fix.
23967
23968 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23969 (Fset_coding_system_priority, Fset_coding_system_priority)
23970 (Fdefine_coding_system_internal): Doc fix.
23971
23972 2008-02-01 Dave Love <fx@gnu.org>
23973
23974 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23975
23976 2008-02-01 Kenichi Handa <handa@m17n.org>
23977
23978 * character.c (string_escape_byte8): Make multibyte string with
23979 correct size.
23980
23981 * charset.c (Fmake_char): Delete unnecessary code.
23982
23983 2008-02-01 Kenichi Handa <handa@m17n.org>
23984
23985 * xfns.c (x_encode_text): Allocate coding.destination here, and
23986 call encode_coding_object with dst_object Qnil.
23987
23988 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23989 multibyte form correctly.
23990
23991 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23992 against Vfont_encoding_alist.
23993
23994 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23995 handling of charset list.
23996 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23997 (decode_coding_object): Move point to coding->dst_pos before
23998 calling post-read-conversion function.
23999 (encode_coding_object): Give correct arguments to
24000 pre-write-conversion. Ignore the return value of
24001 pre-write-conversion function. Pay attention to the case that
24002 pre-write-conversion changes the current buffer. If dst_object is
24003 Qt, even if coding->src_bytes is zero, allocate at least one byte
24004 to coding->destination.
24005
24006 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
24007
24008 * charset.c (Fmake_char): Make it more backward compatible.
24009 (Fmap_charset_chars): Fix docstring.
24010
24011 2008-02-01 Dave Love <fx@gnu.org>
24012
24013 * coding.c: Doc fixes.
24014 (Fdefine_coding_system_alias): Use names, not symbols, in
24015 coding-system-alist.
24016
24017 2008-02-01 Kenichi Handa <handa@m17n.org>
24018
24019 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
24020 of calling free_realized_face.
24021
24022 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
24023
24024 * charset.c (read_hex): Don't treat SPC as a comment starter.
24025 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
24026 (Fdecode_char): Fix typo.
24027
24028 2008-02-01 Kenichi Handa <handa@m17n.org>
24029
24030 * charset.h (struct charset): New member `code_space_mask'.
24031
24032 * coding.c (coding_set_source): Delete the local variable beg_byte.
24033 (encode_coding_charset, Fdefine_coding_system_internal):
24034 Delete the local variable charset.
24035 (Fdefine_coding_system_internal): Setup
24036 attrs[coding_attr_charset_valids] correctly.
24037
24038 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
24039 member to check if CODE is valid or not.
24040 (Fdefine_charset_internal): Initialize `code_space_mask' member.
24041 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
24042 is within the range of charset->min_code and carset->max_code.
24043
24044 2008-02-01 Dave Love <fx@gnu.org>
24045
24046 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
24047
24048 * dispextern.h (generate_ascii_font): Fix return type.
24049
24050 * xfaces.c (generate_ascii_font): Fix arg declaration.
24051
24052 * coding.c (coding_inherit_eol_type)
24053 (Fset_terminal_coding_system_internal)
24054 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
24055
24056 2008-02-01 Kenichi Handa <handa@m17n.org>
24057
24058 * coding.c (decode_coding_charset, encode_coding_charset): Handle
24059 multiple charsets correctly.
24060
24061 2008-02-01 Kenichi Handa <handa@m17n.org>
24062
24063 * search.c (boyer_moore): Fix handling of multibyte character
24064 translation.
24065
24066 * xdisp.c (display_mode_element): When the variable `elt' is
24067 changed, update `this' and `lisp_string'.
24068
24069 2008-02-01 Kenichi Handa <handa@m17n.org>
24070
24071 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
24072
24073 * callproc.c (Fcall_process): Be sure to give the current buffer
24074 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
24075
24076 * charset.c (struct charset_map_entries): New struct.
24077 (load_charset_map): Rename from parse_charset_map. New args
24078 entries and n_entries. Change caller.
24079 (load_charset_map_from_file): Rename from load_charset_map.
24080 Change caller. New arg control_flag. Call load_charset_map at
24081 the tail.
24082 (load_charset_map_from_vector): New function.
24083 (Fdefine_charset_internal): Setup charset.compact_codes_p.
24084 (encode_char): If the charset is compact, change a character index
24085 to a code point.
24086
24087 * coding.c (coding_alloc_by_making_gap): Check the case that the
24088 source and destination are the same correctly.
24089 (decode_coding_raw_text): Set coding->consumed_char and
24090 coding->consumed to 0.
24091 (produce_chars): If coding->chars_at_source is nonzero, update
24092 coding->consumed_char and coding->consumed before calling
24093 alloc_destination.
24094 (Fdefine_coding_system_alias): Register ALIAS in
24095 Vcoding_system_alist.
24096 (syms_of_coding): Define `no-conversion' coding system at the tail.
24097
24098 * fileio.c (Finsert_file_contents): Set coding_system instead of
24099 val. If the current buffer is multibyte, always call
24100 decode_coding_gap.
24101
24102 * xfaces.c (try_font_list): Give higher priority to fontset's
24103 family than face's family.
24104
24105 2008-02-01 Kenichi Handa <handa@m17n.org>
24106
24107 * callproc.c (Fcall_process): Be sure to give the current buffer
24108 to decode_coding_c_string.
24109
24110 * xfaces.c (try_font_list): Give a family specified in a fontset
24111 higher priority than a family specified in a face.
24112
24113 2008-02-01 Kenichi Handa <handa@m17n.org>
24114
24115 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
24116 Fix arguments to insert_from_buffer.
24117
24118 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
24119
24120 2008-02-01 Kenichi Handa <handa@m17n.org>
24121
24122 * coding.c (produce_chars): Set the variable `multibytep' correctly.
24123 (decode_coding_gap): Set coding->dst_multibyte correctly.
24124
24125 2008-02-01 Kenichi Handa <handa@m17n.org>
24126
24127 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
24128 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
24129 (encode_coding_utf_16): Substitute coding->default_char for
24130 non-Unicode characters.
24131 (decode_coding): Don't call record_insert here.
24132 (setup_coding_system): Initialize `surrogate' of
24133 coding->spec.utf_16 to 0.
24134 (EMIT_ONE_BYTE): Fix for multibyte case.
24135
24136 * insdel.c (insert_from_gap): Call record_insert.
24137
24138 2008-02-01 Kenichi Handa <handa@m17n.org>
24139
24140 * casefiddle.c (casify_region): Fix multibyte case.
24141
24142 * character.c (c_string_width): Add return type `int'.
24143 (char_string_with_unification): Delete arg ADVANCED.
24144
24145 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
24146 (CHAR_STRING): Adjust for the change of char_string_with_unification.
24147 (CHAR_STRING_ADVANCE): Make it do-while statement.
24148
24149 * chartab.c (sub_char_table_set_range): Optimize for the case
24150 DEPTH == 3. Add workaround code for a GCC optimization bug.
24151
24152 * charset.c (parse_charset_map): Remove an unused variable.
24153
24154 * coding.c: Delete unused variables.
24155
24156 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
24157 earlier. If inserted is zero and the coding system doesn't
24158 require flushing, don't call decode_coding_gap.
24159
24160 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
24161
24162 2008-02-01 Kenichi Handa <handa@m17n.org>
24163
24164 The following changes are for using Unicode as an internal
24165 character model, and use UTF-8 format for buffer/string
24166 representation.
24167
24168 * .gdbinit (xchartable): Adjust for the change of char table structure.
24169 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
24170
24171 * Makefile.in (obj): Add character.o and chartab.o.
24172 (lisp, shortlisp): Remove utf-8.elc.
24173 (*.o): For many files, change dependency on charset.h to
24174 character.h, and add dependency on character.h.
24175 (character.o, chartab.o): New targets.
24176
24177 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
24178 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
24179 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
24180 of "charset.h".
24181
24182 * dired.c, filelock.c: Include "character.h".
24183
24184 * alloc.c: Include "character.h" instead of "charset.h".
24185 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
24186 (syms_of_alloc): Remove defsubr for Smake_char_table.
24187
24188 * buffer.c: Include "character.h" instead of "charset.h", don't
24189 include "coding.h".
24190 (Fset_buffer_multibyte): Adjust for UTF-8.
24191
24192 * buffer.h: EXFUN Fbuffer_live_p.
24193
24194 * callproc.c: Include "character.h" instead of "charset.h".
24195 (Fcall_process): Big change for the new code-conversion APIs.
24196
24197 * casetab.c: Include "character.h" instead of "charset.h".
24198 (set_canon, set_identity, shuffle): Adjust for the new
24199 map_char_table spec.
24200 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
24201 accessing the char table structure.
24202
24203 * chartab.c: New file that implements char table.
24204
24205 * category.c: Include "character.h".
24206 (copy_category_entry): New function.
24207 (copy_category_table): Call map_char_table and copy_category_entry.
24208 (Fmake_category_table): Initialize all top-level slots.
24209 (char_category_set): New function.
24210 (modify_lower_category_set): Delete.
24211 (Fmodify_category_entry): Call char_table_ref_and_range.
24212
24213 * category.h (CATEGORY_SET): Just call char_category_set.
24214
24215 * ccl.c: Include "character.h".
24216 (Qccl, Qcclp): New variables.
24217 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
24218 it's less than 256.
24219 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
24220 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
24221 and DST type.
24222 (ccl_driver): Change types of argument, adjust code accordingly.
24223 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
24224 ccl_driver.
24225 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
24226
24227 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
24228 New members src_multibyte, dst_multibyte, consumed, and produced.
24229 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
24230 (CODING_SPEC_CCL_PROGRAM): New macro.
24231 (ccl_driver): Update prototype.
24232 (Qccl, Qcclp, Fccl_program_p): Extern them.
24233 (CHECK_CCL_PROGRAM): New macro.
24234
24235 * character.c, character.h, chartab.c: New files.
24236
24237 * charset.c: Mostly re-written. Move character and multibyte sequence
24238 handling codes to character.c.
24239
24240 * charset.h: Mostly re-written. Move character and multibyte sequence
24241 handling codes to character.h.
24242
24243 * coding.c, coding.h: Mostly re-written.
24244
24245 * composite.c: Include "character.h" instead of "charset.h".
24246 (CHAR_WIDTH): Move to character.h.
24247 (HASH_KEY, HASH_VALUE): Delete.
24248
24249 * composite.h (enum composition_method): Change order of enumeration
24250 symbols.
24251
24252 * data.c: Include "character.h" instead of "charset.h".
24253 (Faref): Call CHAR_TABLE_REF for a char table.
24254 (Faset): Call CHAR_TABLE_SET for a char table.
24255
24256 * dispextern.h (free_realized_face, check_face_attribytes)
24257 (generate_ascii_font): Extern them.
24258 (free_realized_multibyte_face): Delete extern.
24259
24260 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
24261 table structure.
24262
24263 * editfns.c: Include "character.h" instead of "charset.h".
24264 (Fchar_to_string): Always call CHAR_STRING.
24265
24266 * emacs.c (main): Call init_charset_once, init_charset,
24267 syms_of_chartab, and syms_of_character.
24268
24269 * fileio.c: Include "character.h" instead of "charset.h".
24270 (Finsert_file_contents): Big change for the new code-conversion API.
24271 (choose_write_coding_system, Fwrite_region): Likewise.
24272 (build_annotations_2): Delete.
24273 (e_write): Big change for the new code-conversion API.
24274
24275 * fns.c: Include "character.h" instead of "charset.h".
24276 (copy_sub_char_table): Move to chartab.c.
24277 (Fcopy_sequence): Call copy_char_table for a char table.
24278 (concat): Delete codes calling count_multibyte.
24279 (string_char_to_byte, string_byte_to_char): Adjust for the new
24280 multibyte form.
24281 (internal_equal): Adjust for the change of char table structure.
24282 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
24283 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
24284 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
24285 (char_table_translate, optimize_sub_char_table)
24286 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
24287 chartab.c.
24288 (char_table_ref_and_index): Delete.
24289 (HASH_KEY, HASH_VALUE): Move to lisp.h.
24290 (Fmd5): Call preferred_coding_system instead of accessing
24291 Vcoding_category_list. Adjust for the new code-conversion API.
24292 (syms_of_fns): Move defsubr for char table related functions to
24293 chartab.c.
24294
24295 * fontset.c: Mostly re-written.
24296
24297 * fontset.h (struct font_info): Change type of the member encoding_type.
24298 (enum FONT_SPEC_INDEX): New enum.
24299 (fontset_font_pattern, fs_load_font): Update prototype.
24300 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
24301
24302 * indent.c: Include "character.h" instead of "charset.h".
24303 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
24304
24305 * insdel.c: Include "character.h" instead of "charset.h".
24306 (copy_text): Don't refer to Vnonascii_translation_table.
24307 (insert_from_gap): New function.
24308
24309 * keyboard.c: Include "character.h" instead of "charset.h".
24310 (command_loop_1): Never call direct_output_forward_char before
24311 a non-ASCII character.
24312 (read_char): If Vkeyboard_translate_table is a char table, always
24313 translate a character.
24314
24315 * keymap.c: Include "character.h".
24316 (store_in_keymap): Handle the case that IDX is a cons.
24317 (Fdefine_key): Handle the case that KEY is a cons and the car part
24318 is also a cons (range).
24319 (push_key_description): Adjust for the new character code.
24320 (describe_vector): Call describe_char_table for a char table.
24321 (describe_char_table): New function.
24322
24323 * keymap.h (describe_char_table): Extern it.
24324
24325 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24326 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24327 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24328 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24329 Delete.
24330 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24331 structure.
24332 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24333 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24334 (CHARTAB_SIZE_BITS_3): New macros.
24335 (chartab_size): Extern it.
24336 (struct Lisp_Char_Table): Re-design.
24337 (struct Lisp_Sub_Char_Table): New structure.
24338 (HASH_KEY, HASH_VALUE): Move from fns.c.
24339 (CHARACTERBITS): Define as 22.
24340 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24341 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24342 (GC_SUB_CHAR_TABLE_P): New macro.
24343 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24344 (code_convert_string_norecord): Deleted extern.
24345 (init_character_once, syms_of_character, init_charset)
24346 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24347
24348 * lread.c: Include "character.h".
24349 (read_multibyte): New arg NBYTES.
24350 (read_escape): Change the meaning of returned *BYTEREP.
24351 (to_multibyte): Delete.
24352 (read1): Adjust the handling of char table and string.
24353
24354 * print.c: Include "character.h" instead of "charset.h".
24355 (print_string): Convert 8-bit raw bytes to octal form by
24356 string_escape_byte8.
24357 (print_object): Adjust for the new multibyte form. Print 8-bit
24358 raw bytes always in octal form. Handle sub char table correctly.
24359
24360 * process.c: Include "character.h" instead of "charset.h".
24361 (read_process_output, send_process): Adjust for the new
24362 code-conversion API.
24363
24364 * puresize.h (BASE_PURESIZE): Increase.
24365
24366 * regex.c: Include "character.h" instead of "charset.h".
24367 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24368 (regex_compile): Accept a range whose starting and ending
24369 character have different leading bytes.
24370 (analyse_first): Adjust for the above change.
24371
24372 * search.c: Include "character.h" instead of "charset.h".
24373 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24374 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24375
24376 * syntax.c: Include "character.h" instead of "charset.h".
24377 (syntax_parent_lookup): Delete.
24378 (Fmodify_syntax_entry): Accept a cons as CHAR.
24379 (skip_chars): Adjust for the new multibyte form.
24380 (init_syntax_once): Call char_table_set_range instead of directly
24381 accessing the structure of a char table.
24382
24383 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24384 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24385 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24386 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24387
24388 * term.c: Include "buffer.h" and "character.h".
24389 (encode_terminal_code, write_glyphs): Adjust for the new
24390 code-conversion API.
24391 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24392
24393 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24394
24395 * xdisp.c: Include "character.h".
24396 (get_next_display_element): Adjust for the new multibyte form.
24397 (disp_char_vector): Adjust for the new char table structure.
24398 (decode_mode_spec_coding): Adjust for the new structure of
24399 coding system.
24400 (decode_mode_spec): Adjust for the new code-conversion API.
24401
24402 * xfaces.c: Include "character.h" instead of "charset.h".
24403 (load_face_font): Adjust for the change of choose_face_font and
24404 FS_LOAD_FONT.
24405 (generate_ascii_font): New function.
24406 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24407 (set_font_frame_param): Adjust for the change of choose_face_font.
24408 (free_realized_face): Make it public.
24409 (free_realized_faces_for_fontset): Rename from
24410 free_realized_multibyte_face. Free also faces realized for ASCII.
24411 (choose_face_font): Change arguments. Adjust for the change of
24412 fontset_font_pattern and FS_LOAD_FONT.
24413
24414 * xfns.c: Include "character.h".
24415 (x_encode_text): Adjust for the new code-conversion API.
24416
24417 * xselect.c: Don't include "charset.h".
24418 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24419
24420 * xterm.c: Include "character.h".
24421 (x_encode_char): New argument CHARSET. Change caller.
24422 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24423 Call ENCODE_CHAR instead of SPLIT_CHAR.
24424 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24425 CHAR_WIDTH instead of CHARSET_WIDTH.
24426 (XTread_socket): Adjust for the new code-conversion API.
24427 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24428 (x_load_font): Adjust for the change of struct font.
24429
24430 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24431
24432 * xfaces.c (face_at_buffer_position): Remove unused vars.
24433
24434 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24435
24436 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24437 Fix overflow checking.
24438
24439 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24440
24441 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24442 Cancel previous change.
24443
24444 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24445
24446 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24447 ccl->eight_bit_control. Fix check for buffer overflow.
24448 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24449 (ccl_driver): Initialize extra_bytes to 0.
24450
24451 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24452
24453 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24454 return it ORed with ctrl_modifier.
24455
24456 2008-01-29 Miles Bader <miles@gnu.org>
24457
24458 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24459
24460 2008-01-28 Jason Rumney <jasonr@gnu.org>
24461
24462 * w32.c (stat): Don't double check for networked drive.
24463
24464 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24465
24466 * window.c (run_window_configuration_change_hook): New function.
24467 Code extracted from set_window_buffer. Set the selected frame.
24468 (set_window_buffer): Use it.
24469 * window.h (run_window_configuration_change_hook): Declare.
24470 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24471
24472 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24473
24474 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24475
24476 * Makefile.in: Remove references to unused macros.
24477
24478 2008-01-26 Eli Zaretskii <eliz@gnu.org>
24479
24480 * w32.c (g_b_init_get_sid_sub_authority)
24481 (g_b_init_get_sid_sub_authority_count): New static variables.
24482 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24483 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24484 (init_user_info): Use them to retrieve uid and gid.
24485 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24486 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24487 st_uid and st_gid of the file.
24488
24489 2008-01-26 Jason Rumney <jasonr@gnu.org>
24490
24491 * w32.c (logon_network_drive): New function.
24492 (stat): Use it.
24493
24494 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
24495
24496 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24497 invisible text covered with an ellipsis.
24498
24499 2008-01-25 Richard Stallman <rms@gnu.org>
24500
24501 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24502 jump back to beginning. Move some other initializations after that.
24503 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24504 New variables.
24505 (syms_of_xdisp): Init them.
24506
24507 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24508
24509 * buffer.c (reset_buffer_local_variables):
24510 Implement `permanent-local-hook'.
24511 (Qpermanent_local_hook): New variable.
24512 (syms_of_buffer): Init and staticpro it.
24513
24514 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
24515
24516 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24517
24518 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24519
24520 * fns.c (Fclrhash): Return TABLE.
24521
24522 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24523
24524 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24525 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24526 is set even without positional changes.
24527 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24528
24529 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24530
24531 2008-01-23 Jason Rumney <jasonr@gnu.org>
24532
24533 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24534
24535 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24536 the unicode range available in MULE by locale-coding-system.
24537 Improve dbcs lead byte detection. Set event timestamp and modifiers
24538 earlier.
24539
24540 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24541
24542 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24543 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24544 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24545 when used on child processes.
24546
24547 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
24548
24549 * dbusbind.c (Fdbus_method_return_internal): Rename from
24550 Fdbus_method_return.
24551 (Fdbus_unregister_object): Move to dbus.el.
24552 (Fdbus_call_method, Fdbus_method_return_internal)
24553 (Fdbus_send_signal): Improve debug messages.
24554
24555 2008-01-20 Martin Rudalics <rudalics@gmx.at>
24556
24557 * undo.c (undo_inhibit_record_point): New variable.
24558 (syms_of_undo): Initialize it.
24559 (record_point): Don't record point when undo_inhibit_record_point
24560 is set.
24561
24562 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24563
24564 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24565
24566 * xdisp.c (Qauto_hscroll_mode): New var.
24567 (syms_of_xdisp): Initialize it.
24568 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24569 window's buffer.
24570 (hscroll_windows): Don't check automatic_hscrolling_p here.
24571
24572 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24573 vscroll if we're setting window-buffer to the value it already has.
24574
24575 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24576
24577 * m/intel386.h: Remove references to XENIX.
24578
24579 2008-01-17 Andreas Schwab <schwab@suse.de>
24580
24581 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24582 instead of HAVE_X86_64_LIB64_DIR.
24583 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24584
24585 2008-01-17 Glenn Morris <rgm@gnu.org>
24586
24587 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24588 to HAVE_X86_64_LIB64_DIR.
24589
24590 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24591
24592 * s/irix3-3.h:
24593 * s/irix4-0.h:
24594 * s/386-ix.h:
24595 * s/domain.h:
24596 * s/hpux9-x11r4.h:
24597 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24598
24599 * sysdep.c: Remove code containing references to symbols defined
24600 by unsupported systems.
24601
24602 2008-01-16 Glenn Morris <rgm@gnu.org>
24603
24604 * coding.c (select-safe-coding-system-function): Doc fix.
24605
24606 2008-01-15 Glenn Morris <rgm@gnu.org>
24607
24608 * config.in: Revert 2008-01-13 change: this is a generated file.
24609
24610 2008-01-13 Tom Tromey <tromey@redhat.com>
24611
24612 * lisp.h: Fix typo.
24613
24614 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24615
24616 * m/sequent-ptx.h:
24617 * m/sequent.h:
24618 * s/ptx.h:
24619 * s/ptx4-2.h:
24620 * s/ptx4.h: Remove files for systems no longer supported.
24621
24622 * callproc.c (Fcall_process): Fix previous change.
24623
24624 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24625
24626 * unexsunos4.c: Remove file, system not supported anymore.
24627
24628 * m/mips.h:
24629 * m/intel386.h:
24630 * callproc.c:
24631 * config.in:
24632 * ecrt0.c:
24633 * emacs.c:
24634 * fileio.c:
24635 * frame.c:
24636 * getpagesize.h:
24637 * keyboard.c:
24638 * lread.c:
24639 * process.c:
24640 * puresize.h:
24641 * sysdep.c:
24642 * systty.h:
24643 * syswait.h:
24644 * unexec.c:
24645 * xdisp.c:
24646 * alloc.c: Remove code containing references to symbols defined by
24647 unsupported systems.
24648
24649 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24650
24651 * coding.c (detect_coding_mask): Fix previous change.
24652
24653 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24654
24655 * coding.c (detect_coding_iso2022): New arg
24656 latin_extra_code_state. Allow Latin extra codes only
24657 when *latin_extra_code_state is nonzero.
24658 (detect_coding_mask): If there is a NULL byte, detect the encoding
24659 as UTF-16 or binary. If Latin extra codes exist, detect the
24660 encoding as ISO-2022 only when there's no other proper encoding is
24661 found.
24662
24663 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24664
24665 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24666 #ifdef MAC_OS.
24667
24668 2008-01-08 Richard Stallman <rms@gnu.org>
24669
24670 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24671
24672 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
24673
24674 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24675 menu bar in parentheses.
24676
24677 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24678
24679 * m/7300.h:
24680 * m/acorn.h:
24681 * m/alliant-2800.h:
24682 * m/alliant.h:
24683 * m/alliant1.h:
24684 * m/alliant4.h:
24685 * m/altos.h:
24686 * m/amdahl.h:
24687 * m/apollo.h:
24688 * m/att3b.h:
24689 * m/aviion-intel.h:
24690 * m/aviion.h:
24691 * m/celerity.h:
24692 * m/clipper.h:
24693 * m/cnvrgnt.h:
24694 * m/convex.h:
24695 * m/cydra5.h:
24696 * m/delta88k.h:
24697 * m/dpx2.h:
24698 * m/dual.h:
24699 * m/elxsi.h:
24700 * m/f301.h:
24701 * m/gould-np1.h:
24702 * m/gould.h:
24703 * m/i860.h:
24704 * m/ibmps2-aix.h:
24705 * m/ibmrt-aix.h:
24706 * m/ibmrt.h:
24707 * m/irist.h:
24708 * m/is386.h:
24709 * m/isi-ov.h:
24710 * m/mega68.h:
24711 * m/mg1.h:
24712 * m/news-r6.h:
24713 * m/news-risc.h:
24714 * m/news.h:
24715 * m/nh3000.h:
24716 * m/nh4000.h:
24717 * m/ns16000.h:
24718 * m/ns32000.h:
24719 * m/nu.h:
24720 * m/orion.h:
24721 * m/orion105.h:
24722 * m/paragon.h:
24723 * m/pfa50.h:
24724 * m/plexus.h:
24725 * m/pyramid.h:
24726 * m/pyrmips.h:
24727 * m/sh3el.h:
24728 * m/sps7.h:
24729 * m/sr2k.h:
24730 * m/stride.h:
24731 * m/sun1.h:
24732 * m/sun2.h:
24733 * m/sun3-68881.h:
24734 * m/sun3-fpa.h:
24735 * m/sun3-soft.h:
24736 * m/sun3.h:
24737 * m/sun386.h:
24738 * m/symmetry.h:
24739 * m/tad68k.h:
24740 * m/tahoe.h:
24741 * m/targon31.h:
24742 * m/tek4300.h:
24743 * m/tekxd88.h:
24744 * m/tower32.h:
24745 * m/tower32v3.h:
24746 * m/ustation.h:
24747 * m/wicat.h:
24748 * m/xps100.h:
24749 * s/cxux.h:
24750 * s/cxux7.h:
24751 * s/dgux.h:
24752 * s/dgux4.h:
24753 * s/dgux5-4-3.h:
24754 * s/dgux5-4r2.h:
24755 * s/esix.h:
24756 * s/esix5r4.h:
24757 * s/hiuxmpp.h:
24758 * s/hiuxwe2.h:
24759 * s/iris3-5.h:
24760 * s/iris3-6.h:
24761 * s/isc2-2.h:
24762 * s/isc3-0.h:
24763 * s/isc4-0.h:
24764 * s/isc4-1.h:
24765 * s/newsos5.h:
24766 * s/newsos6.h:
24767 * s/osf1.h:
24768 * s/osf5-0.h:
24769 * s/riscix1-1.h:
24770 * s/riscix12.h:
24771 * s/sco4.h:
24772 * s/sco5.h:
24773 * s/sunos4-0.h:
24774 * s/sunos4-1.h:
24775 * s/sunos413.h:
24776 * s/sunos4shr.h:
24777 * s/umax.h:
24778 * s/unipl5-2.h:
24779 * s/xenix.h:
24780 * cxux-crt0.s:
24781 * unexapollo.c:
24782 * unexconvex.c:
24783 * unexenix.c:
24784 * unexsni.c: Remove files for systems no longer supported.
24785
24786 * m/intel386.h: Remove references to unsupported systems.
24787
24788 * w32.c (get_emacs_configuration): Remove reference to i860.
24789
24790 * sysdep.c: Remove dead code.
24791
24792 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24793
24794 * s/rtu.h:
24795 * m/masscomp.h: Remove files. Platform is obsolete.
24796
24797 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
24798
24799 * dbusbind.c (Fdbus_method_return): New function.
24800 (xd_read_message): Add the serial number to the event.
24801 (Fdbus_register_method): Activate the function.
24802
24803 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24804
24805 * keyboard.c (read_key_sequence): Fix typo.
24806
24807 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
24808
24809 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24810 (xd_signature, xd_append_arg): Handle element type detection for
24811 empty arrays.
24812 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24813 SDATA () calls; this must be solved more general.
24814 (Fdbus_register_signal): Use SBYTES instead of strlen.
24815
24816 2008-01-03 Magnus Henoch <magnus@zemdatav>
24817
24818 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24819 unsigned int for byte values (necessary for big-endian platform).
24820 (Fdbus_call_method): Handle the case of no returned arguments.
24821
24822 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24823
24824 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24825
24826 2007-12-31 Magnus Henoch <mange@freemail.hu>
24827
24828 * dbusbind.c (xd_signature): Signature of variant is just "v".
24829
24830 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
24831
24832 * dbusbind.c: Fix several errors and compiler warnings.
24833 Reported by Tom Tromey <tromey@redhat.com>.
24834 (XD_ERROR, XD_DEBUG_MESSAGE)
24835 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24836 (xd_append_arg): Part for basic D-Bus types rewritten.
24837 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24838 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24839 appropriate.
24840 (xd_read_message): Return Qnil. Don't signal an error; it is not
24841 useful during event reading.
24842 (Fdbus_register_signal): Signal an error if the check for
24843 FUNCTIONP fails.
24844 (Fdbus_register_method): New function. The implementation is not
24845 complete, the call of the function signals an error therefore.
24846 (Fdbus_unregister_object): New function, renamed from
24847 Fdbus_unregister_signal. The initial check signals an error, if
24848 the object is not well formed.
24849
24850 2007-12-30 Richard Stallman <rms@gnu.org>
24851
24852 * textprop.c (get_char_property_and_overlay):
24853 Signal error if POSITION is out of range in a buffer.
24854
24855 2007-12-29 Martin Rudalics <rudalics@gmx.at>
24856
24857 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24858 because the original parameters are in pure storage now.
24859
24860 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24861
24862 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24863
24864 2007-12-22 Eli Zaretskii <eliz@gnu.org>
24865
24866 * callint.c (syms_of_callint) <command-history>: Add reference to
24867 history-length in the doc string.
24868
24869 2007-12-17 Jason Rumney <jasonr@gnu.org>
24870
24871 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24872 before passing as wParam.
24873
24874 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
24875
24876 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24877 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24878 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24879 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24880 as number.
24881 (Fdbus_call_method): Fix docstring.
24882
24883 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
24884
24885 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24886 New macros.
24887 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24888 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24889 Simplify.
24890 (xd_signature): New function.
24891 (xd_append_arg): Compute also signatures. Major rewrite.
24892 (xd_retrieve_arg): Make debug messages friendly.
24893 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24894 Check for signatures of arguments.
24895
24896 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
24897
24898 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24899 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24900 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24901 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24902 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24903 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24904 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24905 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24906 (xd_retrieve_value): Remove. Functionality included in ...
24907 (xd_append_arg): New function.
24908 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24909
24910 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
24911
24912 * dbusbind.c (top): Include <stdio.h>.
24913 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24914 dbus_message_new_method_call and dbus_message_new_signal.
24915 (Fdbus_register_signal): Rename unique_name to uname.
24916 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24917 non-existing unique name. Fix typos in matching rule. Return an
24918 object which is useful in Fdbus_unregister_signal.
24919 (Fdbus_unregister_signal): Reimplementation, in order to remove
24920 only the corresponding entry.
24921 (Vdbus_registered_functions_table): Change the order of entries.
24922 Apply these changes in xd_read_message and Fdbus_register_signal.
24923
24924 2007-12-16 Andreas Schwab <schwab@suse.de>
24925
24926 * fileio.c (Finsert_file_contents): Fix overflow check to not
24927 depend on undefined integer overflow.
24928
24929 2007-12-14 Jason Rumney <jasonr@gnu.org>
24930
24931 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24932 for characters above 127.
24933
24934 2007-12-13 Jason Rumney <jasonr@gnu.org>
24935
24936 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24937 before dereferencing array.
24938 (lookup_vk_code): Remove zero comparison.
24939
24940 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
24941
24942 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24943 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24944 Use `unsigned int' instead of `uint'.
24945 (xd_read_message, Fdbus_register_signal): Split expressions into
24946 multiple lines before operators "&&" and "||", according to the
24947 GNU Coding Standards.
24948
24949 2007-12-14 Eli Zaretskii <eliz@gnu.org>
24950
24951 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24952
24953 2007-12-12 Juri Linkov <juri@jurta.org>
24954
24955 * buffer.c (Frename_buffer): In interactive spec replace
24956 `read-buffer' with `read-string' that uses `buffer-name-history'
24957 as history, and the current buffer's name as default.
24958
24959 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24960
24961 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24962 manipulating the backtrace manually.
24963 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24964 (struct backtrace, backtrace_list): Remove.
24965 (command_loop_1): Remove dead var `no_direct'.
24966
24967 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24968 preserve non-built-in buffer-local variables.
24969 (Fkill_all_local_variables): Don't re-create&re-set permanent
24970 buffer-local variables.
24971
24972 2007-12-09 Juri Linkov <juri@jurta.org>
24973
24974 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24975 Lisp code that uses `read-buffer' with current buffer as default.
24976
24977 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
24978
24979 * dbusbind.c (xd_read_message): Generate an event for every
24980 registered handler. There might be several handlers registered
24981 for the same signal.
24982 (Fdbus_register_signal): Don't overwrite a registration for the
24983 same signal. Add a new registration if handlers are different.
24984 (Vdbus_registered_functions_table): Rework doc string.
24985
24986 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
24987
24988 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24989 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24990 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24991 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24992 Unify argument lists.
24993 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24994 arguments and hash table keys. Use unique name for service.
24995 (Fdbus_unregister_signal): Remove checks.
24996 (Vdbus_registered_functions_table): Fix doc string.
24997
24998 2007-12-05 Magnus Henoch <mange@freemail.hu>
24999
25000 * process.c (make_process): Initialize pty_flag to 0.
25001
25002 2007-12-05 Jason Rumney <jasonr@gnu.org>
25003
25004 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
25005 specified XBMs.
25006
25007 2007-12-05 Richard Stallman <rms@gnu.org>
25008
25009 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
25010
25011 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25012
25013 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
25014 New variable.
25015 (mac_try_close_socket) [MAC_OSX]: New function.
25016 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
25017 Update cfsockets_for_select. Replace invalid CFRunLoop source.
25018
25019 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
25020 Use mac_try_close_socket.
25021
25022 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25023
25024 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
25025 reloc_base.
25026 (copy_dysymtab): Compute relocation base here.
25027 (rebase_reloc_address) [__ppc64__]: New function.
25028 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
25029 changed.
25030
25031 2007-12-05 Jason Rumney <jasonr@gnu.org>
25032
25033 * w32proc.c (sys_spawnve): Quote args with wildcards.
25034
25035 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25036
25037 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
25038 __objc_* sections.
25039 (unrelocate) [_LP64]: Set relocation base to address of data segment.
25040
25041 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
25042
25043 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
25044 Move check for Vdbus_registered_functions_table to
25045 xd_read_queued_messages.
25046 (xd_read_queued_messages): Protect xd_read_message calls by
25047 internal_condition_case_1.
25048
25049 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
25050
25051 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
25052 Qdbus_system_bus and Qdbus_session_bus, respectively.
25053 (Vdbus_intern_symbols): Remove.
25054 (Vdbus_registered_functions_table): New hash table.
25055 (XD_SYMBOL_INTERN_SYMBOL): Remove.
25056 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
25057 Rewrite in order to manage registered functions by hash table
25058 Vdbus_registered_functions_table.
25059
25060 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
25061
25062 * xterm.c: Update URL to Window Manager Specification in comment.
25063
25064 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
25065
25066 * config.in (HAVE_DBUS): Add.
25067
25068 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
25069 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
25070 (obj): Add $(DBUS_OBJ).
25071 (LIBES): Add $(DBUS_LIBS).
25072 (dbusbind.o): New target.
25073
25074 * dbusbind.c: New file.
25075
25076 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
25077
25078 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
25079 (Qdbus_event): New Lisp symbol.
25080 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
25081 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
25082 (keys_of_keyboard): Define dbus-event.
25083
25084 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
25085
25086 2007-12-01 Richard Stallman <rms@gnu.org>
25087
25088 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
25089
25090 2007-11-30 Jason Rumney <jasonr@gnu.org>
25091
25092 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
25093 (w32con_reset_terminal_modes): Clear screen buffer.
25094 (w32_face_attributes): Don't use color indexes that are out of range.
25095 Only reverse the default colors.
25096
25097 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
25098 WINDOWSNT.
25099
25100 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
25101
25102 2007-11-29 Jason Rumney <jasonr@gnu.org>
25103
25104 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
25105 (w32_face_attributes): Use Vtty_defined_color_alist to determine
25106 if the terminal colors are initialized.
25107 (unspecified_fg, unspecified_bg): Remove unused declarations.
25108
25109 2007-11-29 Andreas Schwab <schwab@suse.de>
25110
25111 * keyboard.c (apply_modifiers): Fix typo.
25112
25113 2007-11-29 Richard Stallman <rms@gnu.org>
25114
25115 * keymap.c (Fcurrent_local_map): Doc fix.
25116
25117 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
25118
25119 * s/gnu-kfreebsd.h: New file.
25120
25121 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
25122
25123 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
25124 Don't cast redundantly.
25125
25126 * keyboard.c (KEY_TO_CHAR): New macro.
25127 (parse_modifiers, apply_modifiers): Accept integer arguments.
25128 (read_key_sequence): Use them to unify the "shift->unshift" mapping
25129 for chars and symbol keys.
25130 After doing such remapping, apply function-key-map again.
25131
25132 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
25133
25134 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
25135 compiled anymore.
25136
25137 2007-11-26 Andreas Schwab <schwab@suse.de>
25138
25139 * process.c (list_processes_1): Fix indentation level of the
25140 command column.
25141
25142 2007-11-23 Andreas Schwab <schwab@suse.de>
25143
25144 * editfns.c (Fformat): Handle %c specially since it requires the
25145 argument to be of type int.
25146
25147 2007-11-23 Markus Triska <markus.triska@gmx.at>
25148
25149 * emacs.c (main): Call init_editfns before init_process, since
25150 init_process sets Vprocess_connection_type depending on OS release.
25151
25152 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
25153
25154 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
25155 (find_symbol_value): Use do_symval_forwarding.
25156
25157 * data.c (set_internal): Set the value in the `cons-cell' (for
25158 Buffer_Local_values) not only for frame-local variables.
25159
25160 2007-11-22 Andreas Schwab <schwab@suse.de>
25161
25162 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
25163 values to sprintf.
25164 * keymap.c (Fsingle_key_description): Likewise.
25165 * print.c (print_object): Likewise.
25166
25167 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
25168
25169 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
25170 file for image is nil.
25171
25172 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
25173
25174 * term.c: Include stdarg.h.
25175 (fatal): Implement using varargs.
25176 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
25177
25178 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25179
25180 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
25181 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
25182 Update call to buffer_slot_type_mismatch.
25183 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
25184 (buffer_slot_type_mismatch): Update.
25185 * buffer.c (buffer_local_types): Remove.
25186 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
25187 (defvar_per_buffer): Set the type in the buffer_objfwd.
25188
25189 2007-11-21 Jason Rumney <jasonr@gnu.org>
25190
25191 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
25192 CreateFileMapping returns NULL on failure.
25193
25194 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25195
25196 * search.c (Fset_match_data): Remove the `evaporate' feature.
25197 (unwind_set_match_data): Don't use the `evaporate' feature.
25198
25199 2007-11-21 Jason Rumney <jasonr@gnu.org>
25200
25201 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
25202
25203 * w32console.c (w32con_write_glyphs): Remove unused variables.
25204
25205 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
25206
25207 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
25208
25209 * s/darwin.h (MULTI_KBOARD): Remove.
25210
25211 * macfns.c (x_create_tip_frame, Fx_create_frame)
25212 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
25213
25214 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
25215
25216 * buffer.c (Fbuffer_local_value): Remove redundant test.
25217 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
25218 than in `current-buffer' to match the comment.
25219 Do the swap using swap_in_global_binding.
25220
25221 * data.c (store_symval_forwarding, set_internal):
25222 * eval.c (specbind): Remove dead code.
25223
25224 * coding.c (detect_coding, Fupdate_coding_systems_internal):
25225 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
25226 Since we do not want to see internal Lisp_*fwd objects here.
25227
25228 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
25229
25230 * sysdep.c (init_system_name): Use getaddrinfo if available.
25231
25232 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
25233 (x_scroll_bar_note_movement): start, end, with, height in struct
25234 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
25235
25236 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
25237
25238 * puresize.h (BASE_PURESIZE): Increase to 1190000.
25239
25240 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
25241
25242 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
25243 This undoes Richard's change of 14-Oct-2002.
25244
25245 * alloc.c (allocate_other_vector):
25246 * lisp.h (allocate_other_vector): Remove.
25247
25248 * window.c (struct save_window_data): Move non-lisp data to the end
25249 and make it `int' rather than Lisp_Object.
25250 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
25251 Done wrap/unwrap integer values.
25252 (Fset_window_configuration, compare_window_configurations):
25253 Update use of fields to their new types.
25254
25255 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
25256 Turn integer fields into `int'. Merge x_window_low and x_window_high.
25257 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
25258 (SET_SCROLL_BAR_X_WINDOW): Remove.
25259 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
25260 Access the new x_window field directly.
25261 * xterm.c (x_scroll_bar_create): Use a pseudovector.
25262 Don't wrap/unwrap integers into Lisp_Objects.
25263 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
25264 (x_scroll_bar_report_motion):
25265 Don't wrap/unwrap integers into Lisp_Objects.
25266 (x_term_init): Use SDATA.
25267 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
25268 (x_scroll_bar_set_handle, x_scroll_bar_remove)
25269 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
25270 (x_scroll_bar_report_motion, x_scroll_bar_clear):
25271 * xfns.c (x_set_background_color):
25272 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
25273 Access the new x_window field directly.
25274
25275 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
25276 (allocate_pseudovector): Make non-static.
25277
25278 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
25279 (allocate_pseudovector): Declare.
25280 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
25281
25282 2007-11-15 Andreas Schwab <schwab@suse.de>
25283
25284 * editfns.c (Fformat): Correctly format EMACS_INT values.
25285 Also take precision into account when formatting an integer.
25286
25287 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
25288
25289 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
25290
25291 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
25292 (syms_of_keyboard): Defsubr it.
25293
25294 * data.c (swap_in_global_binding): Fix longstanding bug where
25295 store_symval_forwarding was not called with the right second argument,
25296 thus causing objfwd-ing from being dropped.
25297
25298 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
25299
25300 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
25301 (Fx_display_pixel_height, Fx_display_planes)
25302 (Fx_display_color_cells, Fx_server_max_request_size)
25303 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25304 (Fx_display_visual_class, Fx_display_save_under):
25305 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
25306 (Fx_display_pixel_height, Fx_display_planes)
25307 (Fx_display_color_cells, Fx_server_max_request_size)
25308 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25309 (Fx_display_mm_height, Fx_display_mm_width)
25310 (Fx_display_backing_store, Fx_display_visual_class)
25311 (Fw32_select_font, Fx_display_save_under):
25312 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
25313 (Fx_display_pixel_height, Fx_display_planes)
25314 (Fx_display_color_cells, Fx_server_max_request_size)
25315 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25316 (Fx_display_save_under): Fix typos in docstrings.
25317
25318 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
25319
25320 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25321 corresponding to deleted entries; they are an implementation detail.
25322 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25323 Remove variables.
25324 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25325 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25326 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25327 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25328 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25329 (Fw32_define_rgb_color, Fw32_load_color_file)
25330 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25331 Fix typos in docstrings.
25332 (Fx_server_version): Reflow docstring.
25333 (Fw32_shell_execute): Doc fixes.
25334
25335 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
25336
25337 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25338 if w32_parse_hot_key returned nil.
25339
25340 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
25341
25342 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25343
25344 2007-11-09 Jason Rumney <jasonr@gnu.org>
25345
25346 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25347
25348 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25349
25350 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25351 Remove W32_SCROLL_BAR_CLICK_EVENT.
25352
25353 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25354 Add MULTIMEDIA_KEY_EVENT.
25355
25356 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25357 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25358 (make_lispy_event) [WINDOWSNT]: Use it to translate
25359 MULTIMEDIA_KEY_EVENT.
25360
25361 * w32term.h (WM_APPCOMMAND): Define if not already.
25362 (GET_APPCOMMAND_LPARAM): Likewise.
25363
25364 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25365 WM_APPCOMMAND.
25366
25367 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25368 (syms_of_w32fns): Export and initialize it.
25369 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25370
25371 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
25372
25373 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25374 twice.
25375
25376 * xdisp.c (handle_face_prop): Fix last change.
25377
25378 2007-11-09 Richard Stallman <rms@gnu.org>
25379
25380 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25381 not just for after-strings and before-strings.
25382 Call face_for_overlay_string and pass the overlay to it.
25383 (handle_display_prop): Determine whether property came from an overlay.
25384 Pass OVERLAY arg to handle_single_display_spec.
25385 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25386 (load_overlay_strings): Fill in it->string_overlays.
25387 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25388
25389 * xfaces.c (face_for_overlay_string): Function renamed from
25390 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25391
25392 * dispextern.h (struct it): New elt string_overlays.
25393 New elt from_overlay, also in stack.
25394 Rearrange a few elements.
25395 (face_for_overlay_string): Decl renamed from
25396 face_at_buffer_position_no_overlays, and add argument.
25397
25398 2007-11-09 Richard Stallman <rms@gnu.org>
25399
25400 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25401 to get the base face for an overlay string.
25402
25403 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25404
25405 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25406
25407 * xdisp.c (handle_stop): Move some code out of loop.
25408
25409 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25410
25411 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25412 Fix conversion from Lisp object to ATSUFontID.
25413
25414 2007-11-09 Jason Rumney <jasonr@gnu.org>
25415
25416 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25417
25418 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25419
25420 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25421 Don't assume regions are aligned to page boundary.
25422 (print_load_command_name): Add LC_UUID if defined.
25423
25424 2007-11-09 Richard Stallman <rms@gnu.org>
25425
25426 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25427
25428 2007-11-07 Jason Rumney <jasonr@gnu.org>
25429
25430 * s/windows95.h: Remove.
25431
25432 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25433
25434 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25435 abort with a message on unhandled store_type values.
25436
25437 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25438
25439 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25440 Remove HAVE_X11R5 and HAVE_X11R4.
25441
25442 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25443
25444 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25445
25446 2007-11-01 Johan Bockgård <bojohan@gnu.org>
25447
25448 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25449 Don't set s->stippled_p here, since it has already been set by
25450 x_set_glyph_string_gc from x_draw_glyph_string.
25451
25452 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25453
25454 * sunfns.c: Remove file.
25455
25456 * m/sun386.h:
25457 * m/sun2.h:
25458 * m/sparc.h: Remove Sun windows code.
25459
25460 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25461
25462 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25463 (init_keyboard): Set current_kboard's window-system to nil.
25464 (tty_read_avail_input): Typo.
25465 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25466
25467 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25468
25469 * s/usg5-4.h:
25470 * s/usg5-3.h:
25471 * s/ptx.h:
25472 * m/is386.h:
25473 * m/ibmps2-aix.h:
25474 * Makefile.in: Remove all mentions of X10.
25475
25476 * dispnew.c (syms_of_display): Don't mention version 10.
25477
25478 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
25479
25480 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25481 ($(BLD)/abbrev.$(O)): Remove.
25482
25483 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25484
25485 Rewrite abbrev.c in Elisp.
25486 * image.c (Qcount): Don't declare as extern.
25487 (syms_of_image): Initialize and staticpro `Qcount'.
25488 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25489 * emacs.c (main): Don't call syms_of_abbrev.
25490 * Makefile.in (obj): Remove abbrev.o.
25491 (abbrev.o): Remove.
25492 * abbrev.c: Remove.
25493
25494 2007-10-26 Martin Rudalics <rudalics@gmx.at>
25495
25496 * window.c (window_min_size_2): Don't count header-line.
25497
25498 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25499
25500 * frame.h (struct frame): Move all bit fields after the first bit
25501 field to take advantage of the available space. Group all the
25502 chars together to reduce wasted space due to padding.
25503
25504 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
25505
25506 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25507
25508 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25509 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25510 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25511 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25512 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25513 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25514 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25515 (last_marked, mark_object_loop_halt): Make static.
25516
25517 * frame.c (syms_of_frame) <delete-frame-functions>:
25518 Fix typo in docstring.
25519
25520 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
25521
25522 * w32.c (init_environment): Fix tiny memory leak.
25523 (w32_get_resource): Remove unused variable `ok'.
25524
25525 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25526
25527 Make `window-system' into a keyboard-local variable (rather than
25528 frame-local as done originally by multi-tty).
25529
25530 * keyboard.h (struct kboard): Add Vwindow_system.
25531 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25532 (mark_kboards): Mark Vwindow_system.
25533
25534 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25535 (init_display): Don't set the obsolete `window-system' frame-param.
25536
25537 * xterm.c (x_term_init):
25538 * w32term.c (w32_create_terminal):
25539 * term.c (init_tty): Set Vwindow_system.
25540 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25541 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25542
25543 * xfns.c (Fx_create_frame, x_create_tip_frame):
25544 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25545 * macfns.c (Fx_create_frame):
25546 Don't set the obsolete `window-system' frame-param.
25547
25548 * frame.h (Qwindow_system): Remove.
25549 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25550 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25551
25552 2007-10-24 Richard Stallman <rms@gnu.org>
25553
25554 * frame.c (x_figure_window_size): For fullscreen case,
25555 set USPosition | PPosition without clobbering rest of window_prompting.
25556
25557 * keyboard.c (Fcurrent_idle_time): Doc fix.
25558
25559 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25560
25561 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25562
25563 * process.c (unwind_request_sigio): Only define if __ultrix__.
25564
25565 * callproc.c (child_setup): Remove spurious *.
25566
25567 * lisp.h (Fget_text_property): Declare.
25568 (have_menus_p): Declare it here rather than in sys-dep header files.
25569 * macterm.h (have_menus_p):
25570 * msdos.h (have_menus_p):
25571 * xterm.h (have_menus_p): Remove.
25572
25573 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25574 (Fmake_variable_frame_local): Just check the variable's const-ness
25575 rather than checking nil or t.
25576
25577 2007-10-22 Jason Rumney <jasonr@gnu.org>
25578
25579 * w32fns.c: Include math.h.
25580 (w32_abort): Declaration moved to nt/config.nt.
25581
25582 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25583 (abort): Redefinition moved to nt/config.nt.
25584
25585 * m/windowsnt.h: Remove.
25586
25587 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
25588
25589 * emacs.c (Fdump_emacs): Fix typo in message.
25590 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25591 <installation-directory>: Reflow docstring.
25592
25593 2007-10-22 Juri Linkov <juri@jurta.org>
25594
25595 * minibuf.c: Allow minibuffer default to be a list of default values.
25596 With empty input use the first element of this list as returned default.
25597 (string_to_object)
25598 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25599 (read_minibuf): If defalt is cons, set histstring to its car.
25600 (Fread_string): If default_value is cons, set val to its car.
25601 (Fread_buffer): If def is cons, use its car.
25602 (Fcompleting_read): If defalt is cons, set val to its car.
25603
25604 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
25605
25606 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25607
25608 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
25609
25610 * doc.c (Fdocumentation): Check for advice in all cases.
25611
25612 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
25613
25614 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25615
25616 2007-10-19 Richard Stallman <rms@gnu.org>
25617
25618 * doc.c (Fdocumentation): Check for and handle an advised function.
25619
25620 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
25621
25622 * process.c (Fset_process_filter): Doc fix.
25623
25624 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25625
25626 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25627 which caused key-translation-map to applied repeatedly (thus breaking
25628 double-mode).
25629
25630 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25631
25632 * xselect.c (x_own_selection, x_handle_selection_clear)
25633 (x_clear_frame_selections):
25634 * w32menu.c (list_of_panes, list_of_items):
25635 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25636 * textprop.c (validate_plist, interval_has_all_properties)
25637 (interval_has_some_properties, interval_has_some_properties_list)
25638 (add_properties, text_property_list):
25639 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25640 * minibuf.c (Fassoc_string):
25641 * macselect.c (x_own_selection, x_clear_frame_selections)
25642 (Fx_disown_selection_internal):
25643 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25644 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25645
25646 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
25647
25648 * process.c: Link to libs for calling res_init() if available.
25649 (Fmake_network_process): Call res_init() before getaddrinfo or
25650 gethostbyname, if possible.
25651
25652 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25653
25654 * lread.c (read1): Set pvectype for char_tables.
25655
25656 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25657 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25658 Add type checks.
25659 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25660
25661 * alloc.c (free_misc): Use XMISCTYPE.
25662 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25663
25664 2007-10-17 Glenn Morris <rgm@gnu.org>
25665
25666 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25667 (syms_of_minibuf): Add Qcompletion_ignore_case.
25668 * dired.c (Qcompletion_ignore_case): Change to external.
25669 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25670 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25671 (Fread_file_name): Use it rather than intern'ing.
25672
25673 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25674 (Fread_coding_system): Ignore case of user input.
25675
25676 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25677
25678 * xdisp.c (handle_display_prop): Ignore display specs after
25679 replacing one when string text is being replaced.
25680 (handle_single_display_spec): Pretend as if characters with display
25681 property haven't been consumed only when buffer text is being replaced.
25682
25683 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25684
25685 * xfns.c (Fx_create_frame, Fx_display_list):
25686 * window.c (window_fixed_size_p, enlarge_window)
25687 (shrink_window_lowest_first):
25688 * macterm.c (init_font_name_table):
25689 * macfns.c (Fx_create_frame, Fx_display_list):
25690 * lread.c (close_load_descs):
25691 * keyboard.c (read_char_x_menu_prompt):
25692 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25693 * coding.c (code_convert_region_unwind): Test the type of an object
25694 rather than just !NILP before extracting data from it.
25695
25696 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25697
25698 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25699 (XMISCANY): New macro.
25700 (XMISCTYPE): Use it.
25701 (struct Lisp_Misc_Any): New type.
25702 (union Lisp_Misc): Use it.
25703 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25704 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25705 (find_symbol_value, set_internal, default_value, Fset_default)
25706 (Fmake_variable_buffer_local, Fmake_local_variable)
25707 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25708 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25709 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25710 * alloc.c (allocate_buffer): Set the size and tag.
25711 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25712 Use XMISCANY.
25713 (die): Follow the GNU convention for error messages.
25714 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25715 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25716 tag any more.
25717 (set_buffer_internal_1):
25718 * frame.c (store_frame_param):
25719 * eval.c (specbind):
25720 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25721
25722 * doc.c (Fsnarf_documentation): Simplify.
25723
25724 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
25725
25726 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25727 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25728
25729 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25730
25731 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25732
25733 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
25734
25735 * eval.c (do_autoload): Don't save autoloads.
25736
25737 * data.c (Ffset): Save autoload of the function being set.
25738
25739 2007-10-07 John Paul Wallington <jpw@pobox.com>
25740
25741 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25742 parameter before setting up faces.
25743
25744 2007-10-13 Eli Zaretskii <eliz@gnu.org>
25745
25746 * ccl.c (Fregister_code_conversion_map):
25747 * keyboard.c (append_tool_bar_item): Reformat last change.
25748
25749 * lisp.h (eabs): Rename from `abs'. All callers changed.
25750
25751 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25752
25753 * buffer.c (add_overlay_mod_hooklist):
25754 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25755 * fontset.c (make_fontset):
25756 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25757 (append_tool_bar_item):
25758 * macmenu.c (grow_menu_items):
25759 * w32menu.c (grow_menu_items):
25760 * xmenu.c (grow_menu_items): Use larger_vector.
25761
25762 2007-10-13 Eli Zaretskii <eliz@gnu.org>
25763
25764 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25765 selected frame'' on MSDOS).
25766
25767 2007-10-12 Martin Rudalics <rudalics@gmx.at>
25768
25769 * frame.c (Qexplicit_name): New variable.
25770 (x_report_frame_params): Report it in parameter alist.
25771 (syms_of_frame): Intern and staticpro it.
25772
25773 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25774
25775 * macfns.c (x_create_tip_frame): Set terminal for frame.
25776
25777 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25778
25779 * frame.c (Qenvironment): Remove.
25780 (syms_of_frame) <Qenvironment>: Don't initialize.
25781 (Fdelete_frame): Don't treat the `environment' param specially.
25782 * frame.h (Qenvironment): Don't declare.
25783 * callproc.c (set_initial_environment): Don't set unused frame param.
25784
25785 * frame.c (Fframe_with_environment): Remove.
25786 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25787
25788 * lisp.h (Fframe_with_environment): Don't declare.
25789
25790 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
25791
25792 * indent.c (indent_tabs_mode, last_known_column)
25793 (last_known_column_modified): Make static.
25794 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25795
25796 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25797
25798 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25799
25800 2007-10-09 Jason Rumney <jasonr@gnu.org>
25801
25802 * w32term.c (x_set_window_size): Disable code that attempts to tell
25803 Lisp code about a size change before it actually happens.
25804
25805 2007-10-09 Richard Stallman <rms@gnu.org>
25806
25807 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25808 return HANDLED_RETURN.
25809
25810 2007-10-08 Martin Rudalics <rudalics@gmx.at>
25811
25812 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25813 when there's an unread command event.
25814
25815 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25816 window autoselection act appropriately when leaving selected frame.
25817 (syms_of_frame): Initialize focus_follows_mouse.
25818 * frame.h (focus_follows_mouse): Extern it.
25819 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25820 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25821 * msdos.c (dos_rawgetc): Likewise.
25822 * w32term.c (w32_read_socket): Likewise.
25823 * xterm.c (handle_one_xevent): Likewise.
25824 * xdisp.c (syms_of_xdisp): In doc-string of
25825 mouse-autoselect-window mention focus-follows-mouse.
25826
25827 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25828
25829 * macterm.c (mac_load_query_font): Fix missing return value.
25830 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25831 Add BLOCK_INPUT.
25832
25833 2007-10-08 Richard Stallman <rms@gnu.org>
25834
25835 * xdisp.c (get_window_cursor_type): Implement documented behavior
25836 for cursor-in-non-selected-windows = t.
25837
25838 2007-10-08 Jason Rumney <jasonr@gnu.org>
25839
25840 * w32.c (w32_get_resource): Always close registry keys.
25841
25842 2007-10-08 Jason Rumney <jasonr@gnu.org>
25843
25844 * makefile.w32-in (LIBS): Add COMCTL32.
25845
25846 * w32fns.c (globals_of_w32fns): Init common controls.
25847
25848 2007-10-08 Richard Stallman <rms@gnu.org>
25849
25850 * image.c (our_memory_buffer): Rename from omfib_buffer.
25851
25852 2007-10-08 Richard Stallman <rms@gnu.org>
25853
25854 * buffer.c (Foverlays_at): Doc fix.
25855
25856 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25857
25858 * fns.c (Fplist_put): Preserve uneven tail data.
25859
25860 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25861
25862 * termhooks.h (enum event_kind): Remove trailing comma.
25863
25864 * frame.h (enum): Remove trailing comma.
25865
25866 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25867
25868 * w32proc.c (delete_child): Don't terminate threads of zombies.
25869
25870 2007-10-08 Martin Rudalics <rudalics@gmx.at>
25871
25872 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25873
25874 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25875 last-repeatable-command.
25876 (init_kboard): Initialize Vlast_repeatable_command.
25877 (command_loop_1): Set it to real_this_command unless that was
25878 bound to an input event.
25879 (mark_kboards): Mark it.
25880
25881 2007-10-08 Richard Stallman <rms@gnu.org>
25882
25883 * eval.c (condition-case): Doc fix.
25884
25885 2007-10-08 Masatake YAMATO <jet@gyve.org>
25886
25887 * xfaces.c (tty_supports_face_attributes_p): Fix code
25888 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25889 was copied and not edited.
25890
25891 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25892
25893 Add new `input-decode-map' keymap and use it for terminal
25894 escape sequences.
25895 * keyboard.h (struct kboard): Add Vinput_decode_map.
25896 Remove Vlocal_key_translation_map.
25897 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25898 (init_kboard): Init input-decode-map.
25899 Replace local-key-translation-map back with key-translation-map.
25900 (syms_of_keyboard): Declare input-decode-map.
25901 Remove local-key-translation-map. Update docstrings.
25902 (mark_kboards): Mark Vinput_decode_map.
25903 Don't mark Vlocal_key_translation_map.
25904 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25905 Replace local-key-translation-map back with key-translation-map.
25906 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25907 Bind in input-decode-map rather than function-key-map.
25908
25909 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25910 This was made redundant by the previous introduction of XSETPVECTYPE.
25911
25912 2007-10-09 Richard Stallman <rms@gnu.org>
25913
25914 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25915
25916 2007-09-29 Richard Stallman <rms@gnu.org>
25917
25918 * eval.c (internal_condition_case_2, internal_condition_case_1)
25919 (internal_condition_case): Reenable abort if x_catching_errors ()
25920 to see if that really happens and why.
25921
25922 2007-10-06 Andreas Schwab <schwab@suse.de>
25923
25924 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25925
25926 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
25927
25928 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25929
25930 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25931
25932 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25933
25934 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25935
25936 * window.h (struct window):
25937 * window.c (struct save_window_data, struct saved_window):
25938 * termhooks.h (struct terminal):
25939 * process.h (struct Lisp_Process):
25940 * frame.h (struct frame):
25941 * buffer.h (struct buffer):
25942 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25943 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25944 The size field of (pseudo)vectors is now unsigned.
25945 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25946
25947 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25948 Turn `count' into an integer.
25949
25950 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25951 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25952 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25953 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25954 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25955
25956 * alloc.c (allocate_pseudovector): New fun.
25957 (ALLOCATE_PSEUDOVECTOR): New macro.
25958 (allocate_window, allocate_terminal, allocate_frame)
25959 (allocate_process): Use it.
25960 (mark_vectorlike): New function.
25961 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25962 (mark_terminals): Use it.
25963 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25964 (Fmake_byte_code): Use XSETPVECTYPE.
25965
25966 * frame.c (Fframe_parameters): Minor simplification.
25967
25968 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25969
25970 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25971
25972 * buffer.c (Fget_buffer_create, init_buffer_once):
25973 * lread.c (defsubr):
25974 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25975
25976 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25977 defined differently in the m/*.h files.
25978 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25979 (XSETPVECTYPE): New macro.
25980 (XSETPSEUDOVECTOR): Use it.
25981
25982 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25983 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25984
25985 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25986 * lread.c (defvar_per_buffer):
25987 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25988
25989 * window.c (candidate_window_p): Only consider as visible frames that
25990 are on the same terminal.
25991
25992 * m/ibms390x.h (MARKBIT): Remove unused macro.
25993
25994 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
25995
25996 * lread.c (Fload): Fix typo in docstring.
25997
25998 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25999
26000 * floatfns.c (Fexpt): Manually check for overflows, so that a power
26001 of a non-zero value can't yield zero.
26002
26003 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
26004
26005 * term.c (term_clear_mouse_face, term_mouse_highlight)
26006 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
26007
26008 * print.c (safe_debug_print): Use XHASH.
26009
26010 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
26011 Lisp elements such as tags.
26012 (XHASH): New macro.
26013 (EQ): Use it.
26014 (SREF, SSET, STRING_COPYIN): Use SDATA.
26015 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
26016
26017 * alloc.c (mark_terminal): Remove left-over declaration.
26018 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
26019 (allocate_vectorlike): Remove type argument. Adjust callers.
26020 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
26021 Only handle the one remaining MEM_TYPE_VECTORLIKE.
26022
26023 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
26024 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
26025 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
26026 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
26027 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
26028 Use them.
26029
26030 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
26031 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
26032 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
26033
26034 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
26035
26036 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
26037 loaded by default.
26038
26039 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
26040
26041 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
26042 on this tty.
26043 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
26044
26045 * term.c (mouse_face_window): Rename from Qmouse_face_window.
26046 Update all users.
26047 (handle_one_term_event): Use Gpm_DrawPointer.
26048 (Fgpm_mouse_start): Rename from Fterm_open_connection.
26049 Signal errors instead of returning nil. Always return nil.
26050 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
26051 Make it a noop if gpm-mouse was not activated.
26052 (syms_of_term): Update names.
26053
26054 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
26055
26056 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
26057 (init_sys_modes): Check that gpm_tty is the current tty.
26058
26059 * alloc.c (allocate_terminal): Set the vector size to only count the
26060 lisp fields. Initialize those to nil.
26061 (mark_object): Don't treat terminals specially.
26062 (mark_terminal): Remove.
26063 (mark_terminals): Use mark_object instead.
26064
26065 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
26066 the GC to the beginning.
26067
26068 * indent.h:
26069 * indent.c: Use EMACS_INT for ints coming from Elisp data.
26070
26071 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
26072
26073 2007-09-25 Jason Rumney <jasonr@gnu.org>
26074
26075 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
26076
26077 * w32console.c (create_w32cons_output): Remove.
26078
26079 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
26080
26081 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
26082 (reset_sys_modes): Use reset_terminal_modes_hook.
26083
26084 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
26085
26086 * eval.c (do_autoload): Don't output any message.
26087
26088 2007-09-24 Juri Linkov <juri@jurta.org>
26089
26090 * emacs.c (standard_args): Change priority of "--no-splash"
26091 from 40 to 3. Add "--no-desktop" with the same priority.
26092
26093 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
26094
26095 * alloc.c (gc_sweep): Check cons cell mark bits word by word
26096 and optimize the case where they are all 1.
26097
26098 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
26099
26100 * lisp.h (abs): Define if not defined.
26101 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
26102 Don't define `abs', since it's defined in lisp.h.
26103
26104 2007-09-22 Eli Zaretskii <eliz@gnu.org>
26105
26106 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
26107 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
26108 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
26109 (init_tty): Use DEV_TTY instead of "/dev/tty".
26110 [WINDOWSNT]: No need to protect from NAME arg being null.
26111
26112 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
26113
26114 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
26115 up the tty state.
26116
26117 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26118
26119 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
26120 (gpm_tty): Change its type.
26121 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
26122 (gpm_tty): Change its type and initialize it.
26123 (Fterm_open_connection): Check the frame is indeed a tty.
26124 Use the new gpm_tty.
26125 (Fterm_close_connection): Use the new gpm_tty.
26126 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
26127 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
26128
26129 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
26130
26131 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
26132 underline_color, to draw strike-through.
26133
26134 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26135
26136 * lisp.h (allocate_terminal): Declare.
26137
26138 * window.c (candidate_window_p): Consider frames that are being placed
26139 by the user as somewhere between visible and iconified.
26140 (window_loop): Prefer windows on the current frame.
26141 (Fselect_window): Move the use of select-frame to the beginning so we
26142 can just delegate all the work (it'll call us back anyway).
26143
26144 * frame.c (Qdisplay_environment_variable):
26145 * frame.h (Qdisplay_environment_variable): Delete.
26146
26147 * .gdbinit (xbacktrace): Print the arg's address rather than the value
26148 of the first arg, since that value may be a union.
26149
26150 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
26151 parameter rather than Qdisplay_environment_variable. If all else
26152 fails, look for DISPLAY in initial-environment.
26153
26154 2007-09-21 Glenn Morris <rgm@gnu.org>
26155
26156 * Makefile.in (emacstool): Remove target.
26157 (lisp, shortlisp): Remove termdev.elc.
26158
26159 2007-09-21 Markus Triska <markus.triska@gmx.at>
26160
26161 * xterm.c (x_delete_display): Compile session management conditionally.
26162
26163 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
26164
26165 * callproc.c (getenv_internal_1): New function.
26166 (getenv_internal): Use it.
26167 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
26168
26169 * terminal.c (get_terminal): Don't accept ints to represent terminals.
26170 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
26171 (Fset_terminal_parameter): Work with dead terminals as well.
26172 (Fmodify_terminal_parameters): Remove.
26173
26174 * terminal.c (get_terminal): Handle terminals.
26175 Make sure the terminal returned is live.
26176 (create_terminal): Use allocate_terminal.
26177 (mark_terminals): Move to alloc.c.
26178 (delete_terminal): Use terminal->name as liveness status.
26179 NULL out fields after freeing their contents.
26180 Don't deallocate the object.
26181 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
26182 rather than an int.
26183 (Fterminal_live_p): Accept non-integer arguments.
26184 (Fterminal_list): Return terminal objects rather than an ints.
26185
26186 * alloc.c (enum mem_type): New member for `terminal' objects.
26187 (allocate_terminal): New function.
26188 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
26189 Handle terminals.
26190 (mark_terminal): New fun.
26191 (mark_terminals): Move from terminal.c.
26192
26193 * term.c (get_tty_terminal): Don't treat output_initial specially.
26194 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
26195 (delete_tty): Use terminal->name as liveness status.
26196
26197 * termhooks.h (struct terminal): Make it into a pseudovector.
26198 Remove `deleted' replaced by checking `name's nullness.
26199
26200 * print.c (print_object): Handle terminals.
26201
26202 * lisp.h (enum pvec_type): New `terminal' pseudovector.
26203 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
26204
26205 * frame.c (make_terminal_frame):
26206 * keyboard.c (tty_read_avail_input):
26207 * w32term.c (x_delete_terminal):
26208 * xfns.c (Fx_create_frame, x_create_tip_frame):
26209 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
26210
26211 2007-09-20 Glenn Morris <rgm@gnu.org>
26212
26213 * process.c (Fmake_network_process): Doc fix.
26214
26215 2007-09-19 Jason Rumney <jasonr@gnu.org>
26216
26217 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
26218
26219 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
26220
26221 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
26222 Fix a C warning regarding variable constness.
26223
26224 * xterm.c (handle_one_xevent): Fix a C warning.
26225
26226 2007-09-18 Jason Rumney <jasonr@gnu.org>
26227
26228 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
26229
26230 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
26231
26232 * gtkutil.c (gdpy_def): New variable.
26233 (xg_initialize): Initialize gdpy_def.
26234 (xg_display_close): If no other display exists, set gdpy_def to a
26235 new connection.
26236
26237 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
26238
26239 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
26240 when we have no file name for the icon.
26241 (xg_tool_bar_expose_callback): Remove.
26242 (xg_create_tool_bar): Don't connect expose signal to
26243 xg_tool_bar_expose_callback.
26244 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
26245
26246 2007-09-16 Andreas Schwab <schwab@suse.de>
26247
26248 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
26249 values instead of zapping them.
26250
26251 2007-09-14 Glenn Morris <rgm@gnu.org>
26252
26253 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
26254 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
26255 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
26256 scope and rename to omfib_buffer for clarity.
26257 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
26258
26259 2007-09-14 Kenichi Handa <handa@m17n.org>
26260
26261 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
26262
26263 2007-09-13 Jason Rumney <jasonr@gnu.org>
26264
26265 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
26266
26267 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
26268
26269 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
26270 (mac_term_init): Call here instead, passing rif.
26271
26272 2007-09-13 Glenn Morris <rgm@gnu.org>
26273
26274 * s/hpux.h: No longer define `static' as nothing.
26275
26276 2007-09-13 Johan Bockgård <bojohan@gnu.org>
26277
26278 * callint.c (Fcall_interactively): Remove unused var `fun'.
26279
26280 2007-09-12 Romain Francoise <romain@orebokech.com>
26281
26282 * window.c (prefer_window_split_horizontally, display_buffer):
26283 Revert 2007-09-08 change.
26284
26285 2007-09-12 Glenn Morris <rgm@gnu.org>
26286
26287 * alloca.c: Remove file.
26288 * Makefile.in (alloca): Do not undef.
26289 (allocaobj, alloca.o): Remove.
26290 (otherobj): Remove allocaobj.
26291 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
26292 * regex.c (C_ALLOCA): Remove all references and code that was only
26293 used when this was defined.
26294 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
26295 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
26296 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
26297
26298 * Makefile.in (SOURCES, unlock, relock): Delete.
26299
26300 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
26301 (menu_grab_callback): All uses changed.
26302
26303 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
26304 (x_reply_selection_request): All uses changed.
26305
26306 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
26307
26308 * lread.c (load_warn_old_style_backquotes): Change message to look
26309 better when it appears in the middle of byte-compiler messages.
26310
26311 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
26312
26313 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
26314
26315 * xterm.c (x_create_terminal): Add comment.
26316
26317 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26318
26319 2007-09-10 Richard Stallman <rms@gnu.org>
26320
26321 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26322
26323 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
26324
26325 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26326 (DEFUN): Document `intspec', use it instead of `prompt'.
26327
26328 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26329
26330 * data.c (Finteractive_form): If the interactive specification starts
26331 with a `(', use it as a Lisp form.
26332
26333 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26334 name and file modes.
26335
26336 * callint.c (Fcall_interactively): Comment fixes.
26337
26338 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
26339
26340 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26341 and compiled functions.
26342
26343 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
26344
26345 * window.c (prefer_window_split_horizontally): New variable.
26346 (display_buffer): Consider splitting window horizontally depending
26347 on prefer_window_split_horizontally.
26348
26349 2007-09-08 Eli Zaretskii <eliz@gnu.org>
26350
26351 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26352
26353 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26354
26355 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26356
26357 * frame.c (x_set_frame_parameters): Check number is positive before
26358 using XFASTINT.
26359
26360 * window.c (freeze_window_start): Don't presume selected_window holds
26361 a window object.
26362 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26363
26364 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26365
26366 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26367
26368 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26369
26370 * window.c (Vsplit_window_preferred_function): New var.
26371 (Fdisplay_buffer): Use it.
26372 (syms_of_window): Export, and initialize it.
26373
26374 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26375
26376 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26377
26378 2007-09-06 Glenn Morris <rgm@gnu.org>
26379
26380 * gtkutil.c (menu_grab_callback) <cnt>:
26381 * xselect.c (x_reply_selection_request) <cnt>: Move static
26382 variable to file scope.
26383
26384 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26385
26386 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26387 consistent values of selected_frame and selected_window.
26388
26389 2007-09-04 Jason Rumney <jasonr@gnu.org>
26390
26391 * w32console.c (initialize_w32_display): Zero unused hooks.
26392
26393 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26394
26395 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26396 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26397
26398 2007-09-04 Jason Rumney <jasonr@gnu.org>
26399
26400 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26401 in w32console.c. Set up input. Remove XXX comments that have been
26402 confirmed as correct.
26403
26404 * s/ms-w32.h (MULTI_KBOARD): Define.
26405
26406 * w32console.c (one_and_only_w32cons): Remove.
26407 (initialize_w32_display): Take terminal argument.
26408
26409 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26410 initialize_w32_display.
26411 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26412
26413 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26414
26415 * keyboard.c (discard_mouse_events): Discard it.
26416 (make_lispy_event): Translate it to a lisp event.
26417 (lispy_wheel_names): Add wheel-left and right events.
26418 (syms_of_keyboard): Enlarge wheel_syms.
26419
26420 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26421 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26422
26423 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26424
26425 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26426 from WM_MOUSEHWHEEL.
26427 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26428
26429 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26430 terminal.
26431
26432 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26433 keyboard for the terminal.
26434
26435 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26436
26437 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26438 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26439 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26440 and resume-tty-function to resume-tty-hook.
26441 (Fsuspend_tty, Fresume_tty): Use new names.
26442
26443 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26444
26445 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26446 if it starts with "n:".
26447
26448 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26449
26450 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26451
26452 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26453
26454 * frame.h:
26455 * frame.c (Qterm_environment_variable): Remove.
26456 (syms_of_frame): Don't init and staticpro it.
26457
26458 * callproc.c (getenv_internal): Remove special case for $TERM.
26459
26460 * callproc.c (Vinitial_environment): New variable.
26461 (set_initial_environment): Initialize it.
26462 (syms_of_callproc): Declare it.
26463 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26464 TERM under which a process runs is never related to the TERM in which
26465 Emacs is running.
26466
26467 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26468
26469 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26470 * s/darwin.h: ... do it here.
26471
26472 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26473
26474 * lisp.h (set_initial_environment): Rename from set_global_environment.
26475
26476 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26477 removed by mistake on the multi-tty branch.
26478
26479 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26480 (Fmodify_frame_parameters): Return a value.
26481
26482 * image.c (png_load): Comment-out var only used in commented-out code.
26483
26484 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26485 before passing it to mark_object.
26486
26487 * xfaces.c (internal_resolve_face_name): Return a value.
26488 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26489
26490 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26491 (x_icon): Comment-out var only used in commented-out code.
26492
26493 2007-08-29 Romain Francoise <romain@orebokech.com>
26494
26495 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26496 QUIT hasn't been provided.
26497
26498 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26499
26500 * callproc.c (child_setup, getenv_internal): Use the
26501 display-environment-variable and term-environment-variable frame params.
26502 (set_initial_environment): Initialise Vprocess_environment.
26503
26504 * config.in: Disable multi-keyboard support on a mac.
26505
26506 * frame.c (Qterm_environment_variable)
26507 (Qdisplay_environment_variable): New variables.
26508 (syms_of_frame): Intern and staticpro them.
26509 (Fmake_terminal_frame): Disable output method test.
26510
26511 * frame.h: Declare them here.
26512
26513 * macfns.c (x_set_mouse_color): Get rif from the frame.
26514 (x_set_tool_bar_lines): Don't use updating_frame.
26515 (mac_window): Add 2 new parameters for consistency with other systems.
26516 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26517 frame parameters following what is done in X11 and w32. Don't use
26518 FRAME_MAC_DISPLAY_INFO.
26519 (Fx_open_connection, start_hourglass): Remove window-system check.
26520 (x_create_tip_frame): Get the keyboard from the terminal.
26521
26522 * macmenu.c: Reorder includes.
26523 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26524
26525 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26526 terminal parameter.
26527 (x_clear_frame): Add a frame parameter.
26528 (note_mouse_movement): Get rif from the frame.
26529 (mac_term_init): Initialize the terminal.
26530 (mac_initialize): Make static and move terminal initialization ...
26531 (mac_create_terminal): ... to this new function.
26532
26533 * macterm.h (struct mac_display_info): Add terminal.
26534 (mac_initialize): Delete declaration.
26535
26536 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26537
26538 * sysdep.c: Comment out text after #endif.
26539
26540 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26541 is defined. Better initialize ttys in windows. Use terminal
26542 specific mouse_position_hook.
26543
26544 * termhooks.h (union display_info): Add mac_display_info.
26545
26546 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26547 Set the default minibuffer frame, window_system and the rest of the
26548 frame parameters following what is done in X11.
26549
26550 * w32term.c (w32_initialize): Make static.
26551
26552 * xselect.c (x_handle_selection_clear): Only access
26553 terminal->kboard when MULTI_KBOARD is defined.
26554
26555 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26556 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26557
26558 2007-08-29 Jason Rumney <jasonr@gnu.org>
26559
26560 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26561 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26562
26563 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26564 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26565
26566 * keyboard.c (restore_kboard_configuration): Only define when
26567 MULTI_KBOARD defined.
26568
26569 * makefile.w32-in: Update dependancies from Makefile.in.
26570 (OBJ1): Add terminal.$(O)
26571
26572 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26573 Don't define function body.
26574 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26575
26576 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26577
26578 * w32.c (request_sigio, unrequest_sigio): Remove.
26579
26580 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26581 (w32con_clear_frame, w32con_clear_end_of_line)
26582 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26583 (w32con_delete_glyphs, w32con_set_terminal_window)
26584 (scroll_line, w32_sys_ring_bell): Add frame arg.
26585 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26586 Add terminal arg.
26587 (PICK_FRAME): Remove.
26588 (w32con_write_glyphs): Use frame specific terminal coding.
26589 (one_and_only_w32cons): New global variable.
26590 (initialize_w32_display): Use it for storing hooks.
26591 (create_w32cons_output): New function.
26592
26593 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26594 arg a frame.
26595
26596 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26597 Set window_system.
26598 (x_set_tool_bar_lines): Don't use updating_frame.
26599 (Fx_create_frame): Set terminal and ref count.
26600 (Fx_open_connection): Remove window-system check.
26601
26602 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26603
26604 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26605 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26606 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26607 Add frame arg.
26608 (x_delete_terminal, w32_create_terminal): New functions.
26609 (w32_term_init): Create a terminal.
26610 (w32_initialize): Move terminal specific initialization to
26611 w32_create_terminal.
26612
26613 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26614 (w32_clear_rect, w32_clear_area): Use background from frame.
26615 (w32_display_info): Add terminal.
26616 (w32_sys_ring_bell, x_delete_display): Declare here.
26617
26618 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26619
26620 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26621
26622 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26623
26624 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26625 Fix get_named_tty calls for the controlling tty.
26626
26627 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26628
26629 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
26630
26631 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26632
26633 * term.c (tty_insert_glyphs): Add missing first parameter.
26634
26635 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26636
26637 * buffer.c (Fbuffer_list, Fbury_buffer):
26638 Take frame->buried_buffer_list into account.
26639
26640 * cm.c (current_tty): New variable, for cmputc().
26641 (cmputc): Use it.
26642 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26643 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26644 (cmgoto): Add tty parameter. Pass it on to calccost().
26645 Use emacs_tputs() instead of tputs().
26646
26647 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26648 tputs().
26649 (current_tty): New variable, for cmputc().
26650 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26651
26652 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26653 (internal_condition_case, internal_condition_case_1)
26654 (internal_condition_case_2): Don't abort when x_catching_errors.
26655
26656 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26657 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26658 prevent crashes caused by bogus longjmps in read_char.
26659
26660 * keymap.h (Fset_keymap_parent): Add EXFUN.
26661
26662 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26663 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26664 Remove redundant definition.
26665
26666 * macfns.c (x_set_mouse_color, x_make_gc):
26667 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26668
26669 * w32term.c (x_free_frame_resources):
26670 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26671 (w32_initialize): Use the accessor macros for terminal characteristics.
26672
26673 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26674 Use the accessor macros for terminal characteristics.
26675 * msdos.c (internal_terminal_init): Use the accessor macros for
26676 terminal characteristics.
26677 (ScreenVisualBell, internal_terminal_init):
26678 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26679
26680 * termopts.h (no_redraw_on_reenter): Declare.
26681
26682 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26683 (mark_terminals, mark_ttys): Declare.
26684 (Fgarbage_collect): Call them.
26685 (mark_object): Mark buried_buffer_list.
26686
26687 * prefix-args.c: Include stdlib.h for exit.
26688
26689 * syssignal.h: Add comment.
26690
26691 * indent.c: Include stdio.h.
26692
26693 * window.h (Vinitial_window_system): Declare.
26694 (Vwindow_system): Delete declaration.
26695
26696 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26697
26698 * image.c (lookup_image): Don't initialize `c' until the xasserts
26699 have been run.
26700
26701 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26702 FRAME_FOREGROUND_PIXEL.
26703
26704 * print.c (print_preprocess): Don't lose print_depth levels while
26705 iterating.
26706
26707 * widget.c (update_from_various_frame_slots):
26708 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26709
26710 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26711 frames.
26712 (window_internal_height): Remove bogus make_number call.
26713 (init_window_once): Call make_terminal_frame with two zero parameters.
26714
26715 * fileio.c (Fread_file_name): Update comment.
26716
26717 * callint.c (Fcall_interactively):
26718 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26719 Make sure it is correctly unwound.
26720
26721 * xsmfns.c (x_session_close): New function.
26722
26723 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26724 Delete declarations.
26725
26726 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26727 (x_output): Remove background_pixel and foreground_pixel fields.
26728 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26729 (x_delete_device, x_session_close): Declare.
26730
26731 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26732 (read_filtered_event): Call `read_char' with a local
26733 `wrong_kboard_jmpbuf'.
26734
26735 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26736 Don't call single_kboard_state. Use FRAME_RIF.
26737
26738 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26739 systems.
26740
26741 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26742 (Fframe_with_environment, Fset_input_meta_mode)
26743 (Fset_quit_char): EXFUN.
26744 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26745 (init_sys_modes, reset_sys_modes): Update prototypes.
26746 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26747
26748 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26749 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26750 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26751 Delete declarations.
26752 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26753 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26754 New declarations.
26755
26756 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26757 already does that during init_display(). Call syms_of_keymap
26758 before syms_of_keyboard. Call `syms_of_terminal'.
26759 Call set_initial_environment, not set_process_environment.
26760 (shut_down_emacs): Call reset_all_sys_modes() instead of
26761 reset_sys_modes().
26762
26763 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26764 (internal_resolve_face_name, resolve_face_name_error): New functions.
26765 (resolve_face_name): Protect against loops and errors thrown by Fget.
26766 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26767 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26768
26769 * scroll.c: Replace CURTTY() with local variables throughout the
26770 file (where applicable).
26771 (calculate_scrolling, calculate_direct_scrolling)
26772 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26773 characteristics.
26774
26775 * keymap.c (Vfunction_key_map): Remove.
26776 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26777 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26778 (Vkey_translation_map): Remove.
26779 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26780 (Fdescribe_buffer_bindings)
26781 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26782 Update for terminal-local key-translation-map.
26783
26784 * Makefile.in (callproc.o): Update dependencies.
26785 (lisp, shortlisp): Add termdev.elc.
26786 (obj): Add terminal.o.
26787 (terminal.o): Add dependencies.
26788 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26789 (data.o, fns.o): Add termhooks.h dependency.
26790 (SOME_MACHINE_LISP): Add dnd.elc.
26791 (minibuf.o): Fix typo.
26792 Update dependencies.
26793
26794 * data.c (do_symval_forwarding, store_symval_forwarding)
26795 (find_symbol_value): Use the selected frame's keyboard, not
26796 current_kboard.
26797
26798 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26799 Vwindow_system.
26800
26801 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26802 Fmenu_bar_open.
26803 (syms_of_xmenu): Update defsubr.
26804 (mouse_position_for_popup, Fx_popup_menu)
26805 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26806 (set_frame_menubar, free_frame_menubar)
26807 (create_and_show_popup_menu, xmenu_show)
26808 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26809 an X frame.
26810
26811 * xselect.c (x_own_selection): Abort if not an X frame.
26812 (some_frame_on_display): Check if it is an X frame.
26813 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26814
26815 * coding.c: Include frame.h and termhooks.h.
26816 (terminal_coding, keyboard_coding): Delete.
26817 (Fset_terminal_coding_system_internal)
26818 (Fset_keyboard_coding_system_internal)
26819 (Fkeyboard_coding_system)
26820 (Fterminal_coding_system): Add a terminal parameter.
26821 Get terminal_coding from the terminal.
26822 (init_coding_once): Don't call setup_coding_system here.
26823
26824 * dispextern.h (set_scroll_region, turn_off_insert)
26825 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26826 (tty_clear_end_of_line, tty_setup_colors)
26827 (delete_tty, updating_frame)
26828 (produce_special_glyphs, produce_glyphs, write_glyphs)
26829 (insert_glyphs): Remove.
26830 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26831 (tty_turn_off_highlight, get_tty_size): Add declaration.
26832 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26833
26834 * frame.h (enum output_method): Add output_initial.
26835 (struct x_output): Delete.
26836 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26837 Access foreground_pixel and background_pixel directly from the frame.
26838 (tty_display): Delete.
26839 (struct frame): Add buried_buffer_list, foreground_pixel,
26840 background_pixel and terminal. Delete kboard.
26841 (union output_data): Add tty.
26842 (FRAME_KBOARD): Get the kboard from the terminal.
26843 (FRAME_INITIAL_P): New macro.
26844 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26845 (Qterm_environment_variable, Qdisplay_environment_variable)
26846 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26847 New declarations.
26848
26849 * termchar.h (tty_output, tty_display_info): New structures.
26850 (tty_list): Declare.
26851 (FRAME_TTY, CURTTY): New macros.
26852 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26853 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26854 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26855 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26856
26857 * callproc.c: Include frame.h and termhooks.h, for terminal
26858 parameters.
26859 (add_env): New function.
26860 (child_setup): Use it.
26861 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26862 (getenv_internal): Fix get_terminal_param call.
26863 (Fgetenv_internal, egetenv): Update doc.
26864 (syms_of_callproc): Initialize Vprocess_environment to nil.
26865 Register and initialize them. Remove obsolete defvars. Update doc
26866 strings.
26867 (child_setup): Handle Vlocal_environment_variables.
26868 (getenv_internal): Add terminal parameter.
26869 Handle Vlocal_environment_variables.
26870 (Fgetenv_internal): Add terminal parameter.
26871 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26872 environment in a frame (not terminal) parameter. Update doc strings.
26873 (set_initial_environment): Rename from set_global_environment.
26874 Store Emacs environment in initial frame parameter.
26875
26876 * xdisp.c (redisplay_internal): Update references to
26877 `previous_terminal_frame'.
26878 (display_mode_line, Fformat_mode_line): Replace calls to
26879 `push_frame_kboard' with `push_kboard'.
26880 (get_glyph_string_clip_rects): Add extra parentheses and
26881 braces to prevent compiler warnings.
26882 (calc_pixel_width_or_height): Add xassert to check that the
26883 frame is alive. Don't call `lookup_image' on a termcap frame.
26884 (message2_nolog, message3_nolog, redisplay_internal)
26885 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26886 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26887 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26888 (Fx_display_pixel_width, Fx_display_pixel_height)
26889 (Fx_display_planes, Fx_display_color_cells)
26890 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26891 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26892 (Fx_display_backing_store, Fx_display_visual_class)
26893 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26894 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26895
26896 * xfns.c (x_set_foreground_color x_set_background_color)
26897 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26898 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26899 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26900 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26901 terminal that is being deleted.
26902 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26903 frame parameter, and make sure it overrides any user-supplied setting.
26904 (Fx_close_connection, Fx_synchronize): Unify argument names with
26905 the rest of the DEFUNs.
26906
26907 * dispnew.c (Fsend_string_to_terminal): Update call to
26908 `get_tty_terminal'.
26909 (Fredraw_frame, Fsend_string_to_terminal)
26910 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26911 FRAME_TERMCAP_P and FRAME_TTY.
26912 (window_change_signal): Don't believe width/height values that are
26913 impossibly small.
26914 (Vinitial_window_system): Rename from Vwindow_system.
26915 (termscript, Wcm, rif): Delete.
26916
26917 * termhooks.h (struct terminal): New struct containing the
26918 previously global text display hooks and new members NAME,
26919 DELETED and PARAM_ALIST.
26920 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26921 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26922 (FRAME_RIF): New macros.
26923 (get_terminal_param, get_device): New declarations.
26924 (termscript): Delete declaration.
26925
26926 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26927 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26928 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26929 FRAME_FOREGROUND_PIXEL.
26930 (x_fully_uncatch_errors): Disable definition.
26931 (x_scroll_bar_expose): Fix reference to foreground pixel.
26932 (XTread_socket): Disable loop on all X displays.
26933 (x_delete_terminal): Don't set terminal->deleted and let
26934 delete_terminal delete the frames on the terminal.
26935 (x_delete_display): Doc update to reflect changes in
26936 delete_terminal.
26937 (x_display_info) <terminal>: Move member earlier in the struct.
26938 (deleting_tty): Remove old variable.
26939 (Fsuspend_tty): Call clear_tty_hooks.
26940 (Fresume_tty, init_tty): Call set_tty_hooks.
26941 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26942 errors on X frames.
26943 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26944 (handle_one_xevent): Initialize `f' to NULL.
26945 (x_delete_terminal, x_create_terminal): New functions.
26946 (XTset_terminal_modes, XTreset_terminal_modes)
26947 (XTread_socket, x_connection_closed, x_term_init)
26948 (x_term_init, x_delete_display): Add terminal parameter.
26949 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26950 X connections.
26951
26952 * frame.c: Include termchar.h.
26953 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26954 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26955 (Qdisplay_environment_variable): New vars.
26956 (Fframep): Deal with output_initial.
26957 (Fframe-live-p): Doc fix.
26958 (Fwindow-system): New function.
26959 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26960 (make_terminal_frame): Don't create frames on a terminal that is
26961 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26962 (store_frame_param): Check for found_for_frame before calling XFRAME.
26963 (Fmake_terminal_frame): Handle NULL tty names correctly.
26964 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26965 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26966 frames to refer to a deleted frame in their 'environment parameter.
26967 (Fframe_with_environment): New function.
26968 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26969 (get_future_frame_param): New function.
26970 (Fmake_terminal_frame): Use it.
26971 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26972
26973 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26974 * sysdep.c (reset_sys_modes): Update for renames.
26975
26976 * keyboard.c (tty_read_avail_input): New function.
26977 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26978 (syms_of_keyboard): Defsubr them.
26979 (Fset_input_meta_mode, Fset_quit_char): New functions.
26980 (Fset_input_mode): Split to above functions.
26981 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26982 parameter. Use it in call to `read_char'.
26983 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26984 Set wrong_kboard_jmpbuf correctly in recursive calls.
26985 Use current_kboard to access Vkeyboard_translate_table.
26986 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26987 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26988 Update longjmp invocations. Remember the original current_kboard,
26989 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26990 changes it. Comment out unnecessary calls to
26991 `record_single_kboard_state' and `any_kboard_state'.
26992 Update recursive calls.
26993 (wrong_kboard_jmpbuf): Remove global variable.
26994 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26995 Handle deleted interrupted_kboards correctly; that is a legal
26996 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26997 and read_char calls. Abort if interrupted_kboard died in read_char.
26998 (any_kboard_state, single_kboard_state)
26999 (push_frame_kboard): Remove function.
27000 (pop_kboard): Switch out of single_kboard mode if the kboard has
27001 been deleted. Remove unused variable. Help debugging by not
27002 changing current_kboard unnecessarily. Set current_kboard to the
27003 kboard of the selected frame when the stored kboard object has
27004 been deleted before pop_kboard.
27005 (temporarily_switch_to_single_kboard): Change first parameter to a
27006 frame pointer. Throw an error when caller wants to change kboards
27007 while in single_kboard mode. Don't push_kboard if we weren't in
27008 single kboard state. Don't pop_kboard if we popped into any
27009 kboard state.
27010 (restore_kboard_configuration): Abort if pop_kboard changed the
27011 kboard in single_kboard mode. Call pop_kboard only after setting
27012 up single_kboard mode.
27013 (Frecursive_edit): Switch to single_kboard mode only in nested
27014 command loops.
27015 (cmd_error, command_loop, command_loop_1, timer_check):
27016 Comment out unnecessary call to `any_kboard_state' and
27017 `record_single_kboard_state'.
27018 (delete_kboard): Exit single_kboard mode if we have just deleted
27019 that kboard. Use FRAME_KBOARD.
27020 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
27021 `fatal_error_signal'.
27022 (record_single_kboard_state): Don't push_kboard if we weren't in
27023 single kboard state. Don't pop_kboard if we popped into any
27024 kboard state.
27025 (push_frame_kboard): Rename to push_kboard.
27026 (kbd_buffer_get_event): Use FRAME_TERMINAL.
27027 (read_avail_input): Read input from all terminals.
27028 (mark_kboards): Also mark Vkeyboard_translate_table.
27029 (kbd_buffer_store_event_hold): Simplify condition.
27030 (read_key_sequence): Reinitialize fkey and keytran at each replay.
27031 (Vkeyboard_translate_table): Move to struct kboard.
27032 (init_kboard): Initialize Vkeyboard_translate_table.
27033 (syms_of_keyboard): Use DEFVAR_KBOARD to define
27034 Vkeyboard_translate_table. Update doc strings. Update docs of
27035 local-function-key-map and function-key-map.
27036
27037 * terminal.c: New file.
27038
27039 * term.c: Include errno.h.
27040 (Vring_bell_function, device_list, initial_device)
27041 (next_device_id, ring_bell, update_begin, update_end)
27042 (set_terminal_window, cursor_to, raw_cursor_to)
27043 (clear_to_end, clear_frame, clear_end_of_line)
27044 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
27045 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
27046 (syms_of_term): Move their initialization to terminal.c.
27047 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
27048 (Ftty_display_color_cells)
27049 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
27050 (clear_tty_hooks, set_tty_hooks)
27051 (init_tty, maybe_fatal): New functions.
27052 (Ftty_type): Return nil if terminal is not on a tty instead of
27053 throwing an error. Doc update.
27054 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
27055 Doc update. Initialize new subrs and variables.
27056 (delete_tty): Use terminal->deleted.
27057 (tty_set_terminal_modes): Rename from set_terminal_modes.
27058 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
27059 (set_scroll_region): Rename to `tty_set_scroll_region'.
27060 (turn_on_insert): Rename to `tty_turn_on_insert'.
27061 (turn_off_insert): Rename to `tty_turn_off_insert'.
27062 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
27063 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
27064 (toggle_highligh): Rename to `tty_toggle_highlight'.
27065 (background_highlight): Rename to `tty_background_highlight'.
27066 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
27067 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
27068 (tty_set_scroll_region, tty_background_highlight)
27069 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
27070 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
27071 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
27072 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
27073 Add static modifier.
27074 (tty_reset_terminal_modes, tty_set_terminal_window)
27075 (tty_set_scroll_region, tty_background_highlight)
27076 (tty_highlight_if_desired, tty_cursor_to)
27077 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
27078 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
27079 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
27080 renames.
27081
27082 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
27083
27084 * keyboard.c: Qrtl is new.
27085 (parse_tool_bar_item): Handle :rtl keyword.
27086 (syms_of_keyboard): Intern :rtl keyword.
27087
27088 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
27089
27090 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
27091 so no Lisp code is executed.
27092 (file_for_image, find_rtl_image): New functions.
27093 (xg_get_image_for_pixmap): Use file_for_image.
27094 (update_frame_tool_bar): If direction is RTL, use RTL image if
27095 defined. Use Gtk stock images if defined.
27096
27097 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27098
27099 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
27100 for nonexistent or zero-width glyph in composition glyph.
27101
27102 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
27103
27104 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
27105
27106 * xdisp.c (Finvisible_p): New function.
27107 (syms_of_xdisp): defsubr it.
27108
27109 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
27110
27111 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
27112 Doc fixes.
27113
27114 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27115
27116 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
27117
27118 2007-08-24 Martin Rudalics <rudalics@gmx.at>
27119
27120 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
27121 whether decoding has modified buffer contents.
27122
27123 2007-08-24 Jason Rumney <jasonr@gnu.org>
27124
27125 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
27126 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
27127 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
27128 (init_svg_functions) [HAVE_NTGUI]: New function.
27129 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
27130 (svg_load_image): Use them.
27131 (svg_load_image) [HAVE_NTGUI]: Implement background.
27132
27133 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27134
27135 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
27136 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
27137 (LIBX): Remove @RSVG_LIBS@.
27138 (LIBES): Add $(RSVG_LIBS).
27139
27140 * image.c (svg_load_image): Blend with specified background if exists.
27141 Use IMAGE_BACKGROUND. Add Mac OS Support.
27142
27143 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
27144 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
27145 Remove macros.
27146 [MAC_OSX] (socket_callback): Do nothing.
27147 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
27148 ReceiveNextEvent.
27149 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
27150 socket_callback.
27151 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
27152
27153 2007-08-22 Glenn Morris <rgm@gnu.org>
27154
27155 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
27156
27157 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
27158
27159 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
27160
27161 * image.c: Add support for SVG images. Some additional comments
27162 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
27163 (svg_image_p): New function to test for SVG image.
27164 (svg_load): New function to load SVG image.
27165 (svg_load_image): New function, helper for svg_load.
27166 (Qsvg): New Lisp_object.
27167 (svg_keyword_index): New enum.
27168 (svg_format): New static `image_keyword' struct.
27169 (svg_type): New static `image_type' struct.
27170 (librsvg/rsvg.h): Include it.
27171
27172 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
27173
27174 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
27175
27176 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
27177
27178 * lread.c (Qold_style_backquotes): New var.
27179 (syms_of_lread): Init and staticpro it.
27180 (load_warn_old_style_backquotes): New fun.
27181 (Fload): Use them to warn about old style backquotes.
27182 (end_of_file_error, Fload): Remove unused vars.
27183
27184 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
27185
27186 * lread.c (Vold_style_backquotes): New var.
27187 (syms_of_lread): Init and export it to Elisp.
27188 (read1): Set it when we find an old-style (back)quote.
27189
27190 2007-08-22 Jason Rumney <jasonr@gnu.org>
27191
27192 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
27193
27194 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
27195
27196 * puresize.h (BASE_PURESIZE): Increase to 1140000.
27197
27198 2007-08-19 Richard Stallman <rms@gnu.org>
27199
27200 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
27201
27202 2007-08-19 Andreas Schwab <schwab@suse.de>
27203
27204 * alloc.c (pure): Round PURESIZE up.
27205
27206 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
27207
27208 * xterm.c (handle_one_xevent): Remove check that mouse click is in
27209 active frame.
27210
27211 2007-08-16 Richard Stallman <rms@gnu.org>
27212
27213 * eval.c (Fcommandp): Add parens to clarify.
27214
27215 * minibuf.c (Fall_completions): Use enum for type of table.
27216
27217 * emacs.c (USAGE2): Improve text.
27218
27219 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
27220
27221 * term.c (tty_default_color_capabilities): Declare static
27222 variables in file scope, to avoid HPUX compiler problem.
27223
27224 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
27225
27226 * gtkutil.c (update_frame_tool_bar): Use -1 as index
27227 to gtk_toolbar_insert.
27228
27229 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
27230
27231 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
27232
27233 * insdel.c (reset_var_on_error): New fun.
27234 (signal_before_change, signal_after_change):
27235 Use it to reset (after|before)-change-functions to nil in case of error.
27236 Bind inhibit-modification-hooks to t.
27237 Don't bind (after|before)-change-functions to nil while they run.
27238
27239 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27240
27241 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
27242 filling pixmap with stippled background.
27243
27244 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27245
27246 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
27247 Don't use invisible frame as parent window for repositioning.
27248
27249 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
27250
27251 * print.c (new_backquote_output): Rename from old_backquote_output.
27252 (print): Inverse its logic (according to its name) so as to match the
27253 behavior of new_backquote_flag in lread.c.
27254
27255 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27256
27257 * gmalloc.c (posix_memalign): New function.
27258
27259 * macterm.c (frame_highlight, frame_unhighlight): Don't call
27260 ActivateControl/DeactivateControl here.
27261 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
27262 frame-notice-user-settings is non-nil.
27263 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
27264 for kEventParamFMFontStyle.
27265 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
27266 mac_pass_command_to_system and mac_pass_control_to_system here.
27267 (XTread_socket): Call ActivateControl/DeactivateControl here.
27268 (XTread_socket) [TARGET_API_MAC_CARBON]:
27269 Check mac_pass_command_to_system and mac_pass_control_to_system here.
27270 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
27271 for window repositioning.
27272
27273 2007-08-08 Glenn Morris <rgm@gnu.org>
27274
27275 * Replace `iff' in doc-strings and comments.
27276
27277 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
27278
27279 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
27280
27281 2007-08-07 Martin Rudalics <rudalics@gmx.at>
27282
27283 * fileio.c (Finsert_file_contents): Run format-decode and
27284 after_insert_file_functions on entire buffer when REPLACE is
27285 non-nil and inhibit modification_hooks and point_motion_hooks.
27286 For consistency, run after_insert_file_functions iff something
27287 got inserted. Move signal_after_change and update_compositions
27288 after code running after_insert_file_functions. Make sure that
27289 undo_list doesn't record intermediate steps of the decoding process.
27290
27291 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27292
27293 * emacs.c (main)
27294 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
27295 Call malloc_enable_thread on interactive startup.
27296
27297 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
27298 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
27299 [USE_PTHREAD]: Conditionalize with it.
27300 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
27301 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
27302 New functions.
27303
27304 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
27305
27306 * xdisp.c (redisplay_window): When restoring original buffer
27307 position, make sure it is still valid.
27308
27309 * image.c (png_load): Ignore png-supplied background color.
27310
27311 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27312
27313 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
27314 Use kCFAbsoluteTimeIntervalSince1970.
27315
27316 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27317 New variable.
27318 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27319 event loop should be quit.
27320 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27321 Quit dialog event loop if quit_dialog_event_loop is set.
27322
27323 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27324 (Selection): New typedef. Use instead of ScrapRef.
27325 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27326 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27327 (mac_clear_selection): Rename from clear_scrap.
27328 (get_flavor_type_from_symbol): New argument SEL and subsume function of
27329 scrap_has_target_type. All uses changed.
27330 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27331 (mac_selection_has_target_p): New functions.
27332 (mac_put_selection_value): Rename from put_scrap_string.
27333 (mac_get_selection_value): Rename from get_scrap_string.
27334 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27335 (put_scrap_private_timestamp, scrap_has_target_type)
27336 (get_scrap_private_timestamp): Remove functions.
27337 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27338 (x_own_selection, x_get_local_selection):
27339 Use mac_valid_selection_value_p.
27340 (x_own_selection): Don't use put_scrap_private_timestamp.
27341 Record OWNERSHIP-INFO into Vselection_alist instead.
27342 (x_get_local_selection): Don't check type if request is local.
27343 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27344 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27345
27346 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27347
27348 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27349 add comment explaining why.
27350
27351 2007-08-03 Richard Stallman <rms@gnu.org>
27352
27353 * fileio.c (Fvisited_file_modtime): Use make_time.
27354
27355 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27356
27357 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27358 build.
27359
27360 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27361
27362 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27363
27364 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27365
27366 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27367
27368 2007-07-30 Richard Stallman <rms@gnu.org>
27369
27370 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27371
27372 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27373
27374 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27375
27376 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
27377
27378 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27379 remote default-directory.
27380
27381 * buffer.c (mode-line-format): Update doc string.
27382
27383 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27384
27385 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27386 scroll bar gap.
27387 (x_scroll_bar_create): Set bar->fringe_extended_p.
27388 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27389 on frame edge. Check fringe background extension. Don't clear
27390 extended fringe background area.
27391
27392 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27393 (w32_fill_area): Enclose multiple statements with do ... while (0).
27394
27395 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27396 Extend fringe background to scroll bar gap.
27397 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27398 Set bar->fringe_extended_p.
27399 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27400 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27401 background extension. Don't clear extended fringe background area.
27402
27403 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27404 New member fringe_extended_p.
27405
27406 2007-07-25 Glenn Morris <rgm@gnu.org>
27407
27408 * Relicense all FSF files to GPLv3 or later.
27409
27410 * COPYING: Switch to GPLv3.
27411
27412 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27413
27414 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27415
27416 * data.c (Finteractive_form): Check for the presence of an
27417 `interactive-form' symbol property more thoroughly.
27418
27419 * data.c (Finteractive_form): Use an `interactive-form' property if
27420 present, analogous to the function-documentation property.
27421
27422 2007-07-24 Jason Rumney <jasonr@gnu.org>
27423
27424 * w32fns.c (x_real_positions): Get real position from OS instead of
27425 calculating it.
27426
27427 2007-07-23 Jason Rumney <jasonr@gnu.org>
27428
27429 * filelock.c (current_lock_owner): Allow for @ sign in username.
27430
27431 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
27432
27433 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27434 remote default-directory.
27435
27436 * buffer.c (mode-line-format): Describe above case in doc string.
27437
27438 2007-07-20 Eli Zaretskii <eliz@gnu.org>
27439
27440 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27441 Define if not defined.
27442
27443 2007-07-18 Jason Rumney <jasonr@gnu.org>
27444
27445 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27446
27447 2007-07-18 Richard Stallman <rms@gnu.org>
27448
27449 * data.c (Fsetq_default): Doc fix.
27450
27451 * eval.c (Fsetq): Doc fix.
27452
27453 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
27454
27455 * coding.c (Ffind_operation_coding_system):
27456 * eval.c (For, Fand): Doc fixes.
27457 Reported by Johan Bockgård.
27458
27459 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27460
27461 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27462
27463 * xterm.h: Declare x_ewmh_activate_frame.
27464
27465 * xterm.c (x_ewmh_activate_frame): New function.
27466 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27467
27468 2007-07-17 Martin Rudalics <rudalics@gmx.at>
27469
27470 * window.c (Fdisplay_buffer): If largest or LRU window is the
27471 only window, split it even if it is not eligible for splitting.
27472 This restores the original behavior broken by the 2007-07-15
27473 change.
27474
27475 2007-07-17 Glenn Morris <rgm@gnu.org>
27476
27477 * abbrev.c (abbrev_check_chars): New function.
27478 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27479 Call abbrev_check_chars to check abbrev characters are word
27480 constituents. Doc fix.
27481
27482 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27483
27484 * process.c (Fstart_process, Fmake_network_process)
27485 (read_process_output): Fix up last changes.
27486
27487 2007-07-16 Eli Zaretskii <eliz@gnu.org>
27488
27489 * makefile.w32-in (clean): Don't delete *~.
27490
27491 2007-07-16 Andreas Schwab <schwab@suse.de>
27492
27493 * window.c (Fdisplay_buffer): Use NILP.
27494 (Fset_window_scroll_bars): Likewise.
27495
27496 2007-07-15 Martin Rudalics <rudalics@gmx.at>
27497
27498 * window.c (window_min_size_2): New function.
27499 (window_min_size_1, size_window, Fdisplay_buffer)
27500 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27501 windows without mode- or header-lines when window-min-height is
27502 too small.
27503 (size_window): Reset nodelete_p after testing it, following an
27504 earlier note by Kim F. Storm.
27505 (display_buffer): Do not set split_height_threshold to twice the
27506 value of window_min_height to avoid changing the value of a
27507 customizable variable. Rather explicitly check whether the
27508 height of the window that shall be splitted is at least as large
27509 as split_height_threshold.
27510 (Fwindow_full_width_p): New defun.
27511 (syms_of_window): Defsubr it.
27512
27513 * window.h: Add EXFUN for Fwindow_full_width_p.
27514
27515 2007-07-14 Jason Rumney <jasonr@gnu.org>
27516
27517 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27518
27519 2007-07-14 Richard Stallman <rms@gnu.org>
27520
27521 * eval.c (maybe_call_debugger): New function.
27522 (find_handler_clause): Use maybe_call_debugger.
27523 Call it when the handler says `debug'.
27524 Eliminate DEBUGGER_VALUE_PTR.
27525 (Fsignal): Eliminate debugger_value.
27526 (Qdebug): New variable.
27527 (syms_of_eval): Initialize it.
27528
27529 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
27530
27531 * eval.c (Fprogn):
27532 * keyboard.c (Ftrack_mouse):
27533 * print.c (Fwith_output_to_temp_buffer):
27534 * window.c (Fsave_window_excursion): Doc fix.
27535
27536 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27537
27538 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27539
27540 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27541
27542 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27543 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27544 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27545 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27546 Remove unused encoding_carryover.
27547 * process.c: Adjust all functions accordingly.
27548
27549 2007-07-12 Richard Stallman <rms@gnu.org>
27550
27551 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27552
27553 2007-07-11 Jason Rumney <jasonr@gnu.org>
27554
27555 * makefile.w32-in (LIBS): Include OLE32.
27556
27557 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27558 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27559
27560 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27561
27562 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27563 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27564 from a Lisp_Object into a bare pointer.
27565 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27566 Adjust the code correspondingly.
27567
27568 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27569
27570 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27571 (term_show_mouse_face): Remove unused var `j'.
27572 (handle_one_term_event): Remove unused vars `i' and `j'.
27573 Don't cast return value of ttyname since it's not necessary.
27574
27575 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27576
27577 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27578 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27579
27580 * fns.c (map_char_table): Use an array of int for `indices' rather than
27581 an array of Lisp_Objects (which are only ever integers anyway).
27582 (Fmap_char_table): Update caller.
27583 * lisp.h: Update prototype.
27584 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27585 * fontset.c (Ffontset_info):
27586 * casetab.c (set_case_table): Update callers.
27587
27588 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27589
27590 * keymap.c (struct accessible_keymaps_data)
27591 (struct where_is_internal_data): New structures.
27592 (accessible_keymaps_1, where_is_internal_1): Use them to change
27593 interface to adhere to the one used by map_keymap.
27594 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27595 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27596
27597 * keymap.h (map_keymap_function_t): More informative prototype.
27598
27599 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27600
27601 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27602 (looking_at_1): Don't change search_regs and last_thing_searched
27603 if `inhibit-changing-match-data' is non-nil.
27604 (string_match_1, search_buffer, set_search_regs): Likewise.
27605 (syms_of_search): Add Lisp level definition for
27606 `inhibit-changing-match-data' and set it to nil.
27607 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27608 start and end of the match, instead of using values in search_regs.
27609
27610 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27611
27612 * minibuf.c (Fcompleting_read): New value `confirm-only'
27613 for `require-match'.
27614
27615 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27616
27617 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27618 part of the 2007-06-27 change to syms_of_fileio.
27619
27620 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27621
27622 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27623 Check WINDOWP before using XWINDOW. Consolidate return statements.
27624
27625 2007-06-27 Richard Stallman <rms@gnu.org>
27626
27627 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27628
27629 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
27630
27631 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27632
27633 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27634
27635 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27636 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27637 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27638 (_free_internal, memalign): Use them.
27639 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27640 Initialize to PTHREAD_MUTEX_INITIALIZER.
27641 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27642 (morecore_nolock): Rename from morecore. All uses changed.
27643 Use only nolock versions of internal allocation functions.
27644 (_malloc_internal_nolock, _realloc_internal_nolock)
27645 (_free_internal_nolock): New functions created from
27646 _malloc_internal, _realloc_internal, and _free_internal.
27647 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27648 Copy hook value to automatic variable before its use.
27649 (memalign): Copy hook value to automatic variable before its use.
27650
27651 2007-06-26 Kenichi Handa <handa@m17n.org>
27652
27653 * coding.c (Ffind_operation_coding_system): Docstring improved.
27654 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27655
27656 2007-06-25 David Kastrup <dak@gnu.org>
27657
27658 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27659 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27660 cater for additional parameter.
27661
27662 * keymap.h: Adjust number of parameters to `current-active-maps'.
27663
27664 * doc.c (Fsubstitute_command_keys): Adjust call of
27665 `current-active-maps'.
27666
27667 2007-06-25 David Kastrup <dak@gnu.org>
27668
27669 * callint.c (Fcall_interactively): Make the parsing of interactive
27670 specs somewhat more readable.
27671
27672 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27673
27674 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27675 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27676 if extended background has already been filled.
27677
27678 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27679
27680 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27681 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27682
27683 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27684 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27685 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27686 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27687 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27688 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27689 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27690 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27691 Run timers during dialog popup.
27692 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27693
27694 2007-06-21 Jason Rumney <jasonr@gnu.org>
27695
27696 * image.c (convert_mono_to_color_image): Swap fore and background.
27697
27698 2007-06-20 Jason Rumney <jasonr@gnu.org>
27699
27700 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27701 (w32_free_bdf_font): Unmap memory not handle.
27702
27703 2007-06-20 Sam Steingold <sds@gnu.org>
27704
27705 * gmalloc.c (__morecore): Fix the declaration to comply with the
27706 definition.
27707
27708 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
27709
27710 * w32term.c (w32_delete_display): Remove leftover declaration.
27711 (w32_define_cursor, w32_initialize): Make static.
27712
27713 * w32.c (_wsa_errlist): Fix typo in error message.
27714 (init_environment): Ignore any environment variable from the
27715 registry having a null value.
27716
27717 2007-06-20 Glenn Morris <rgm@gnu.org>
27718
27719 * Makefile.in (LIBGIF): Default to -lgif.
27720
27721 2007-06-17 Jason Rumney <jasonr@gnu.org>
27722
27723 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27724 unicode strings.
27725
27726 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
27727
27728 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27729 Fix typo in docstring.
27730
27731 2007-06-16 Eli Zaretskii <eliz@gnu.org>
27732
27733 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27734 and their keybindings.
27735
27736 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
27737
27738 * composite.c (update_compositions): Fix last fix.
27739
27740 2007-06-14 Jason Rumney <jasonr@gnu.org>
27741
27742 * w32.c (get_process_times_fn): New function pointer.
27743 (globals_of_w32): Intialize it if present in kernel32.dll.
27744 (w32_get_internal_run_time): New function.
27745
27746 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27747
27748 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27749
27750 * composite.c (update_compositions): Check the validness of
27751 compositions.
27752
27753 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27754
27755 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27756 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27757
27758 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27759 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27760
27761 * macgui.h (USE_MAC_TOOLBAR): New define.
27762
27763 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27764 Return immediately unless popup is activated.
27765
27766 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27767 background to scroll bar gap.
27768 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27769 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27770 scroll bars on frame edge. Check fringe background extension.
27771 Don't clear extended fringe background area.
27772 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27773 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27774 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27775 [USE_MAC_TOOLBAR]: New macros.
27776 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27777 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27778 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27779 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27780 [USE_MAC_TOOLBAR]: New functions.
27781 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27782 manually if previous repositioning has failed.
27783 (mac_handle_keyboard_event): Use precomputed event kind.
27784 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27785 as tool bar item click. Handle mouse movement over tool bar items.
27786
27787 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27788 toolbar_win_gravity.
27789 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27790 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27791 Add externs.
27792
27793 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27794 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27795
27796 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
27797
27798 * image.c (search_image_cache): Remove unused variable.
27799
27800 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
27801
27802 * xfns.c, xmenu.c: Link to xaw3d if available.
27803
27804 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27805
27806 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27807 frame_foreground and frame_background.
27808
27809 * image.c (lookup_image): Save frame foreground and background colors.
27810 (search_image_cache): Check if saved and current frame colors match.
27811
27812 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27813
27814 * regex.c (regex_compile): Remove the `regnum' counter.
27815 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27816
27817 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27818
27819 * term.c: Include intervals.h to declare Fget_text_property.
27820
27821 2007-06-10 Jason Rumney <jasonr@gnu.org>
27822
27823 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27824
27825 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
27826
27827 * callint.c (Fcall_interactively):
27828 * editfns.c (Fdelete_and_extract_region):
27829 * fileio.c (Fread_file_name):
27830 * fns.c (Fmapconcat):
27831 * keyboard.c (cmd_error_internal):
27832 * keymap.c (Fkey_description):
27833 * lread.c (openp):
27834 * minibuf.c (read_minibuf):
27835 * search.c (wordify):
27836 * sunfns.c (sel_read):
27837 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27838 * xfns.c (x_default_scroll_bar_color_parameter):
27839 * xmenu.c (menu_help_callback):
27840 * xselect.c (Fx_get_atom_name):
27841 * xterm.c (x_term_init): Use empty_unibyte_string.
27842
27843 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27844
27845 * alloc.c (init_strings): Initialize canonical empty strings.
27846 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27847 canonical empty string when the requested size is 0.
27848
27849 * emacs.c (empty_unibyte_string): Rename from empty_string.
27850 (empty_multibyte_string): New canonical empty string.
27851 (syms_of_emacs): Don't initialize empty_string.
27852
27853 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27854 string, if appropriate.
27855 (empty_unibyte_string, empty_multibyte_string): New externs.
27856 (empty_string): Remove extern.
27857
27858 * lread.c (syms_of_lread): Use empty_unibyte_string.
27859
27860 2007-06-07 Jason Rumney <jasonr@gnu.org>
27861
27862 * s/ms-w32.h: Don't define HAVE_TZNAME.
27863
27864 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27865
27866 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27867
27868 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27869
27870 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27871 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27872
27873 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27874 Don't call next handler.
27875 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27876 Remove argument. Install handler to application.
27877 (set_frame_menubar): Don't change deep_p.
27878 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27879 FRAME_OUTER_TO_INNER_DIFF_Y.
27880 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27881 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27882 [HAVE_DIALOGS]: New macros.
27883 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27884 Use them.
27885 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27886
27887 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27888 init_service_handler. All callers changed. Return OSStatus value.
27889
27890 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27891 All callers changed so as not to call SetPortWindowPort.
27892 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27893 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27894 mac_draw_string_common.
27895 (mac_draw_image_string_qd): Likewise.
27896 (mac_draw_string_common): Use them. Add INLINE.
27897 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27898 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27899 GetGlobalMouse.
27900 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27901 and FRAME_OUTER_TO_INNER_DIFF_Y.
27902 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27903 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27904 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27905 repositioning window to mac_handle_window_event.
27906 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27907 saving window location to mac_handle_window_event
27908 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27909 (install_menu_target_item_handler): Remove argument in extern.
27910 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27911 Also accept command events.
27912 (do_keystroke): New function created from XTread_socket.
27913 (init_command_handler): Remove functions.
27914 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27915 and save window location by kEventWindowShowing and kEventWindowHiding
27916 handlers here. Don't call next handler for window state change and
27917 focus events.
27918 (mac_handle_application_event, mac_handle_keyboard_event)
27919 [TARGET_API_MAC_CARBON]: New functions.
27920 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27921 kEventWindowShowing and kEventWindowHiding events. Move installation
27922 of mouse, font, text input and menu target item handlers to
27923 install_application_handler.
27924 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27925 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27926 New function.
27927 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27928 Register it.
27929 (XTread_socket) [TARGET_API_MAC_CARBON]:
27930 Consolidate SendEventToEventTarget calls.
27931 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27932 Move application activation handler to mac_handle_application_event.
27933 Move keyboard handler to mac_handle_keyboard_event.
27934 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27935 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27936 init_command_handler. Call install_application_handler.
27937
27938 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27939 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27940
27941 2007-06-07 Glenn Morris <rgm@gnu.org>
27942
27943 * emacs.c (main): Use `emacs-copyright' in --version output.
27944
27945 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
27946
27947 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27948
27949 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27950
27951 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27952
27953 * macgui.h: Replace WindowPtr with WindowRef.
27954
27955 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27956 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27957 Replace ControlHandle with ControlRef.
27958 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27959
27960 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27961 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27962 Replace ControlHandle with ControlRef.
27963 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27964 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27965
27966 * macterm.h (struct scroll_bar): Rename member control_handle_low
27967 and control_handle_high to control_ref_low and control_ref_high.
27968 All uses changed.
27969 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27970 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27971 respectively. All uses changed.
27972 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27973 (install_window_handler, remove_window_handler): Replace WindowPtr
27974 with WindowRef in externs.
27975
27976 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
27977
27978 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27979
27980 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
27981
27982 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27983
27984 * frame.c (Fmouse_position, Fmouse_pixel_position):
27985 Condition on HAVE_GPM too.
27986
27987 * term.c (term_mouse_highlight): Remove unused variables.
27988 (Fterm_open_connection): Set gpm_zerobased to 1.
27989 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27990 Use zero based co-ordinates.
27991 (handle_one_term_event): Report a drag as mouse movement too.
27992
27993 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27994
27995 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
27996
27997 * image.c (search_image_cache): New function. Require background
27998 color match if background color is unspecified in the image spec.
27999 (uncache_image, lookup_image): Use it.
28000
28001 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
28002
28003 * window.c (Fshrink_window): Reflow docstring.
28004
28005 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
28006
28007 * Version 22.1 released.
28008
28009 2007-06-01 Richard Stallman <rms@gnu.org>
28010
28011 * xfns.c (x_encode_text): Add GCPRO.
28012
28013 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28014
28015 * xfns.c (x_set_name_internal): Save encoded name before
28016 x_encode_text in case string data is relocated.
28017
28018 2007-05-31 Richard Stallman <rms@gnu.org>
28019
28020 * buffer.c (syms_of_buffer): Doc fix.
28021
28022 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
28023
28024 * sysdep.c (init_sys_modes): Add rather than replace with
28025 O_NONBLOCK.
28026
28027 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
28028 term_mouse_moveto.
28029
28030 * termhooks.h (term_mouse_moveto): New extern.
28031
28032 * term.c (mouse_face_window): Rename...
28033 (Qmouse_face_window): ...to this.
28034 (term_show_mouse_face, term_clear_mouse_face)
28035 (term_mouse_highlight): Use Qmouse_face_window.
28036 (term_mouse_moveto): New function.
28037 (term_mouse_position): Make it work.
28038 (syms_of_term): Uncomment assignment to mouse_position_hook.
28039 Staticpro Qmouse_face_window.
28040
28041 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28042
28043 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
28044 around current_column call.
28045
28046 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
28047
28048 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
28049 * xdisp.c (next_element_from_buffer):
28050 * window.c (delete_window):
28051 * term.c (term_mouse_highlight):
28052 * msdos.c (getdefdir):
28053 * macterm.c (mac_create_bitmap_from_bitmap_data)
28054 (init_font_name_table):
28055 * fns.c (Fsxhash):
28056 * data.c (Fmake_local_variable):
28057 * ccl.c (ccl_driver): Likewise.
28058
28059 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28060
28061 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
28062 Call mac_wakeup_from_rne on window size change.
28063
28064 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
28065
28066 * image.c (uncache_image): Fix typo.
28067
28068 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
28069
28070 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
28071
28072 2007-05-22 Richard Stallman <rms@gnu.org>
28073
28074 * xterm.c (x_connection_closed): Remove NO_RETURN.
28075
28076 2007-05-22 Martin Rudalics <rudalics@gmx.at>
28077
28078 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
28079
28080 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
28081
28082 * image.c (uncache_image): New function.
28083 (Fimage_refresh): New function.
28084
28085 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
28086
28087 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
28088
28089 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
28090
28091 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
28092 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
28093
28094 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
28095
28096 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
28097 conditional on [HAVE_GPM_H].
28098
28099 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
28100
28101 * syntax.c (skip_chars): Update syntax-table only after we checked that
28102 the new location is valid.
28103
28104 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28105
28106 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
28107 mac_get_window_bounds.
28108
28109 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
28110
28111 * Makefile.in (LIBGPM): Allow it to be set from configure.
28112 If set then link Emacs with it.
28113
28114 * config.in: Regenerate.
28115
28116 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
28117 New externs.
28118
28119 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
28120 Include gpm.h.
28121 (handle_one_term_event, term_gpm): New externs.
28122
28123 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
28124 and allow it to be interrupted by SIGIO.
28125
28126 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
28127 (wait_reading_process_output): Wait on gpm_fd too.
28128 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
28129 (add_gpm_wait_descriptor_called_flag): New variable.
28130 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
28131
28132 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
28133 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
28134 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
28135 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
28136 (make_lispy_event): Add case GPM_CLICK_EVENT.
28137 (read_avail_input): Handle mouse input.
28138
28139 * term.c (write_glyphs_with_face): New function.
28140 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
28141 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
28142 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
28143 (mouse_face_face_id, term_gpm, pos_x, pos_y)
28144 (last_mouse_x, last_mouse_y): New variables.
28145 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
28146 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
28147 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
28148 (Fterm_close_connection): New functions.
28149 (term_init): Initialise mouse_face_window.
28150
28151 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
28152
28153 * xdisp.c (redisplay_window): If first window line is a
28154 continuation line, recompute the new window start instead of
28155 recentering.
28156
28157 2007-05-18 Glenn Morris <rgm@gnu.org>
28158
28159 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
28160 Suggested by Alfred M. Szmidt <ams@gnu.org>.
28161
28162 2007-05-17 Glenn Morris <rgm@gnu.org>
28163
28164 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
28165
28166 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28167
28168 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
28169 dead key repeat and up events.
28170
28171 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
28172
28173 * image.c (pbm_load): Check image size for monochrome pbm.
28174
28175 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
28176
28177 * xterm.c (XTread_socket): Revert last change.
28178
28179 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
28180
28181 * image.c (pbm_load): Correctly check image size for greyscale pbm.
28182
28183 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
28184
28185 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28186
28187 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
28188 mixup (YAILOM).
28189
28190 2007-05-07 Andreas Schwab <schwab@suse.de>
28191
28192 * keymap.c (Flookup_key): Fix typo in last change.
28193
28194 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28195
28196 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
28197 mapping for unibyte strings.
28198
28199 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28200
28201 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
28202 (Fx_popup_dialog) [MAC_OSX]: Likewise.
28203
28204 2007-04-29 Richard Stallman <rms@gnu.org>
28205
28206 * insdel.c (replace_range): For undo, record insertion first.
28207
28208 2007-04-29 Andreas Schwab <schwab@suse.de>
28209
28210 * lisp.h (VECSIZE): Use OFFSETOF.
28211
28212 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28213
28214 * xdisp.c (try_window_reusing_current_matrix): Fix number of
28215 disabled lines.
28216
28217 2007-04-28 Richard Stallman <rms@gnu.org>
28218
28219 * lread.c (read_escape): In a string, \s is always space.
28220
28221 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
28222
28223 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
28224
28225 * gtkutil.c (xg_update_menubar, create_menus): Create empty
28226 submenu for menu bar items.
28227
28228 See ChangeLog.10 for earlier changes.
28229
28230 ;; Local Variables:
28231 ;; coding: utf-8
28232 ;; add-log-time-zone-rule: t
28233 ;; End:
28234
28235 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
28236
28237 This file is part of GNU Emacs.
28238
28239 GNU Emacs is free software: you can redistribute it and/or modify
28240 it under the terms of the GNU General Public License as published by
28241 the Free Software Foundation, either version 3 of the License, or
28242 (at your option) any later version.
28243
28244 GNU Emacs is distributed in the hope that it will be useful,
28245 but WITHOUT ANY WARRANTY; without even the implied warranty of
28246 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28247 GNU General Public License for more details.
28248
28249 You should have received a copy of the GNU General Public License
28250 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28251
28252 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40