Pass CFLAGS to the linker.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
4c620157
DN
12010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2
a4daeecf
DN
3 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4 (PROFILING_LDFLAGS): Remove, not needed anymore.
5
2cb72a75 6 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
7 (CRT_DIR): Move near potential user.
8 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 9
4c620157
DN
10 * sysdep.c (LPASS8): Remove, unused.
11 (emacs_ospeed): Change from being a global to a local in the only
12 user: init_baud_rate.
13
b845653d
LMI
142010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
15
16 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 17 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 18 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 19 gnutls_read. This allows us to actually read lots of data from
b845653d 20 the GnuTLS stream.
2e6c74c5
LMI
21 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
22 According to the documentation, this is correct, and it seems to
23 make things work.
b845653d 24
3625b3e2
CY
252010-10-09 Chong Yidong <cyd@stupidchicken.com>
26
27 * xterm.c (x_draw_relief_rect): Clear corner pixels.
28
8b1c619f
MA
292010-10-08 Michael Albinus <michael.albinus@gmx.de>
30
31 * keyboard.c: Revert last change; it was not intended to be
32 synchronized with the trunk.
33
93d50df8
KH
342010-10-08 Kenichi Handa <handa@m17n.org>
35
2b7c9342 36 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 37
4628bef1 382010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
39
40 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
41 (Fdbus_init_bus): ... here. (Bug#7113)
42
4628bef1 432010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
44
45 * buffer.c (before-change-functions, after-change-functions):
46 Three-year overdue doc fix following 2007-08-13 change.
47
4628bef1 482010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
49
50 * coding.c (coding_inherit_eol_type): If parent doesn't specify
51 eol-format, inherit from the system's default.
52 (complement_process_encoding_system): Make a new coding system
53 inherit the original eol-format.
54
4628bef1 552010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
56
57 * coding.c (complement_process_encoding_system): New function.
58
59 * coding.h (complement_process_encoding_system): Extern it.
60
61 * callproc.c (Fcall_process): Complement the coding system for
62 encoding arguments.
63 (Fcall_process_region): Complement the coding system for encoding
64 the input to the process.
65
66 * process.c (Fstart_process): Complement the coding system for
67 encoding arguments.
68 (send_process): Complement the coding system for encoding what
69 sent to the process.
70
4628bef1 712010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
72
73 * xfont.c (xfont_open): Fix setting of font->average_width from
74 :avgwidth property (Bug#7123).
75
4628bef1 762010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
77
78 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
79 is more portable.
80
81 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
82 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
83 has not defined SIGIO.
84
389454fb
CY
852010-10-08 Chong Yidong <cyd@stupidchicken.com>
86
87 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
88 draw the outermost line using the black relief, for legibility.
89 Omit drawing the four corner pixels.
90
51b403bd
CY
912010-10-04 Chong Yidong <cyd@stupidchicken.com>
92
93 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
94 (read_key_sequence): Inline echo_prompt.
95 (echo_dash): Add a dash only if key is continued (Bug#7137).
96
3e6ae1a4
DN
972010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
98
99 Remove O_RDONLY, O_WRONLY definitions, not needed.
100 * unexcoff.c:
101 * lread.c:
102 * fileio.c:
103 * doc.c:
104 * callproc.c:
105 * alloc.c:
106 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
107
c1ae068b
LMI
1082010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
109
110 * gnutls.h (GNUTLS_LOG2): Convenience macro.
111
112 * gnutls.c: Add property list symbol holders.
113 (emacs_gnutls_handshake): Clarify how sockets are passed to
114 GnuTLS.
115 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
116 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
117 and keyfiles to be a list of file names. Default to "NORMAL" for
118 the priority string. Improve logging.
119
e2afe435
GM
1202010-10-03 Glenn Morris <rgm@gnu.org>
121
122 * fileio.c (Vdirectory_sep_char): Remove.
123
dd5ecd6b
DN
1242010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
125
b5437a05
DN
126 * termhooks.h: Remove #ifdef CONSP.
127
4777478a
DN
128 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
129
a3d5088d
DN
130 Include <fcntl.h> unconditionally.
131 * termcap.c:
132 * sysdep.c:
133 * lread.c:
134 * keyboard.c:
135 * filelock.c:
136 * fileio.c:
137 * doc.c:
138 * callproc.c:
139 * alloc.c: Remove include guards for <fcntl.h>, process.c already
140 does it.
141
82719735
DN
142 * process.c: Do not include <sys/wait.h>, syswait.h does it.
143
9de940b5
DN
144 * sysdep.c (flush_pending_output): Remove code, does not do
145 anything on any platform.
146
57507bf8
DN
147 Remove unused code.
148 * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
149 select emulation, all systems support select.
150 (set_exclusive_use): Remove, the only user is in an #if 0 block.
151 * process.c (create_process): Remove #if 0 code.
152
dd5ecd6b
DN
153 Remove unused arguments for unexec.
154 The third one is never used, and the last two are always passed as zero.
155 * emacs.c (unexec): Add declaration.
156 (Fdump_emacs): Only pass the first two arguments to unexec.
157 Simplify #ifdef.
158 * unexw32.c (unexec):
159 * unexsol.c (unexec):
160 * unexhp9k800.c (unexec):
161 * unexcw.c (unexec): Remove the last 3 arguments, unused.
162 * unexelf.c (unexec): Remove the last 3 arguments, unused.
163 (find_section): Use const.
164 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
165 (unexec_error): Declare it NO_RETURN.
166 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
167 it as an argument, remove data_start and entry_address arguments, unused.
168 (unexec): Remove bss_start, data_start and
169 entry_address arguments.
170 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
171 it as an argument, remove data_start and entry_address arguments, unused.
172 (unexec): Remove bss_start, data_start and
173 entry_address arguments.
174
74f1829d
JB
1752010-10-03 Juanma Barranquero <lekktu@gmail.com>
176
7f467e14
JB
177 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
178
74f1829d
JB
179 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
180 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
181 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
182 Fix typos in docstrings.
183 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
184 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
185
6926550f
CY
1862010-10-03 Chong Yidong <cyd@stupidchicken.com>
187
188 * keyboard.c (command_loop_1): Make sure the mark is really alive
189 before using it (Bug#7044).
190
54b65f7b
JB
1912010-10-02 Juanma Barranquero <lekktu@gmail.com>
192
193 * makefile.w32-in (tags): Rename target to full-tags.
194
383ebd15
EZ
1952010-10-02 Eli Zaretskii <eliz@gnu.org>
196
197 * emacs.c (main): Remove !WINDOWSNT conditional.
198 (Fkill_emacs): Don't mention exemption on MS-Windows.
199
9c524fcb
GM
2002010-10-02 Glenn Morris <rgm@gnu.org>
201
3226d6ca
GM
202 * character.c (Fchar_bytes): Remove obsolete function.
203 (syms_of_character): Remove Schar_bytes.
204
9c524fcb
GM
205 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
206 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
207 in batch-mode.
208 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
209 (kill-emacs-hook): Doc fix.
210
1b217849
LMI
2112010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
212
213 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
214 (parse_region): Reworked to take regions instead of strings, and
215 renamed to reflect that these are the libxml functions.
216
54cc6a83
EZ
2172010-10-01 Eli Zaretskii <eliz@gnu.org>
218
0ebf79de
EZ
219 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
220 screen dimensions in tty->Wcm.
221
54cc6a83
EZ
222 * xdisp.c (set_cursor_from_row): When the row is truncated and
223 point is outside the range of displayed characters, position the
224 cursor inside the scroll margin. (Bug#6349)
225
321401d1
DN
2262010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
227
4cacd822
DN
228 Do not include stdlib.h and string.h, config.h does it.
229 * xfont.c:
230 * w32term.c:
231 * w32reg.c:
232 * w32inevt.c:
233 * w32heap.c:
234 * w32console.c:
235 * w16select.c:
236 * unexsol.c:
237 * term.c:
238 * sound.c:
239 * scroll.c (m):
240 * gtkutil.c:
241 * font.c:
242 * filelock.c:
243 * fileio.c:
244 * dosfns.c:
245 * dbusbind.c:
246 * bidi.c:
247 * callproc.c:
248 * process.c:
249 * msdos.c:
250 * charset.c: Do not include stdlib.h and string.h, config.h does it.
251
0781e7ab
DN
252 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
253
9bf58201
DN
254 * process.c: Move #include <pty.h> earlier.
255 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
256 (pty_name): Move definition later.
257
088dcc3e
DN
258 * nsselect.m (syms_of_nsselect):
259 * nsmenu.m (syms_of_nsmenu):
260 * nsfns.m (syms_of_nsfns):
261 * msdos.c (syms_of_msdos):
4cacd822 262
088dcc3e
DN
263 * image.c (syms_of_image):
264 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
265
321401d1
DN
266 * point.h: Remove, unused.
267
73077a9a
EZ
2682010-10-01 Eli Zaretskii <eliz@gnu.org>
269
270 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
271 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
272 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
273
55e572ef
DN
2742010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
275
276 * xml.c (parse_string): Use const.
277
d4b6d95d
LMI
2782010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
279
280 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
281 only override Vprint_level if it isn't already bound, and increase
282 the level to 8 to produce more useful backtraces for bug reports.
283
e4b6db12
DN
2842010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
285
286 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
287
1becef93
JB
2882010-09-30 Juanma Barranquero <lekktu@gmail.com>
289
290 * w32console.c (vga_stdcolor_name): Remove unused function;
291 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
292
df7fcaff
LMI
2932010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
294
bac5cef8
LMI
295 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
296 (Fgnutls_boot): Start the handshake.
297 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
298 (Fgnutls_boot): Remove some debugging messages.
299 Change indentation throughout to use the Emacs style.
300 (emacs_gnutls_handshake): Cast the fds to something that's
301 possibly the expected length.
302 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 303
df7fcaff
LMI
304 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
305
306 * process.c (make_process): Set the gnutls_p field to zero by
307 default.
308 (read_process_output): Always call the gnutls_read function if the
309 stream is a gnutls stream.
310 (send_process): Ditto for writes.
311
312 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
313 or write anything until the state is GNUTLS_STAGE_READY.
314 (Fgnutls_boot): Mark the stream as being a gnutls stream.
315
d585695f
EZ
3162010-09-29 Eli Zaretskii <eliz@gnu.org>
317
af7ef32d
EZ
318 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
319 NEUTRAL_DIR.
320 (handle_invisible_prop, iterate_out_of_display_property)
321 (next_element_from_buffer): If bidi_it.first_elt is set, call
322 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
323 (Bug#7128)
324
d585695f
EZ
325 * print.c (print_object): Fix format string and argument types for
326 printing a Lisp_Misc_Marker.
327
328 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
329 (load_overlay_strings, get_overlay_strings_1)
330 (get_overlay_strings, forward_to_next_line_start)
331 (back_to_previous_visible_line_start, reseat, reseat_to_string)
332 (get_next_display_element, next_element_from_string)
333 (next_element_from_c_string, next_element_from_buffer)
334 (move_it_vertically_backward, move_it_by_lines, add_to_log)
335 (message_dolog, message_log_check_duplicate, message2_nolog)
336 (message3, message3_nolog, vmessage, set_message, set_message_1)
337 (hscroll_window_tree, text_outside_line_unchanged_p)
338 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
339 (find_last_unchanged_at_beg_row)
340 (find_first_unchanged_at_end_row, row_containing_pos)
341 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
342 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
343 EMACS_INT for buffer and string positions.
344
345 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
346 (row_containing_pos): Adjust prototype.
347
348 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
349 (message2_nolog, set_message): Adjust prototypes.
350
a6f3211f
SM
3512010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
352
353 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
354 (Fgnutls_boot): Use SDATA.
355 (Fgnutls_handshake): Remove unused var `max_log_level'.
356
e0720500
MA
3572010-09-27 Michael Albinus <michael.albinus@gmx.de>
358
11a5af7c 359 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
360 (Bug#7113)
361
d8a4b27a
J
3622010-09-27 Jan Djärv <jan.h.d@swipnet.se>
363
42d3022b
J
364 * xgselect.c (xg_select): Clear file descriptors not set from
365 rfds and wfds.
366
d8a4b27a
J
367 * process.c (wait_reading_process_output): Add missing FD_CLR
368 for write_mask (must mirror connect_wait_mask).
369
8ed70bf3
LMI
3702010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
371
372 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
373 prefix.
374 (Fgnutls_boot): Use changed process members. Use log level with a
375 function parameter to set it. Bring back Emacs-level debugging
376 messages at log level 1 and 2.
377
378 * process.c (make_process): Initialize gnutls_log_level.
379
380 * process.h: Add gnutls_log_level and rename x509_cred and
381 anon_cred to have the gnutls_ prefix for consistency.
382
383 * gnutls.h (GNUTLS_LOG): Add convenience macro.
384
bedf4aab
JB
3852010-09-27 Juanma Barranquero <lekktu@gmail.com>
386
387 * w32.c (g_b_init_get_sid_identifier_authority)
388 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
389 Remove, not used.
390 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
391 (init_winsock): Remove useless assignment.
392 (open_process_token, get_token_information, lookup_account_sid)
393 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
394 (get_security_descriptor_owner, get_security_descriptor_group)
395 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
396 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
397 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
398 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
399 (unc_volume_file_attributes, convert_from_time_t)
400 (create_toolhelp32_snapshot, process32_first, process32_next)
401 (open_thread_token, impersonate_self, revert_to_self)
402 (get_process_memory_info, get_process_working_set_size)
403 (global_memory_status, global_memory_status_ex, socket_to_fd)
404 (shutdown_handler): Make static.
405
08609ffd
MA
4062010-09-27 Michael Albinus <michael.albinus@gmx.de>
407
408 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
409 (xd_pending_messages): Functions removed.
410 (xd_read_queued_messages): Add parameters fd, *data, for_read in
411 order to be compatible with add_read_fd. Determine bus from data,
412 and call xd_read_message just for this bus.
413 (xd_add_watch): Use xd_read_queued_messages as callback function.
414 Add data.
415
416 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
417
d2e9d0bb
LMI
4182010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
419
420 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 421 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 422
4be9765d
KH
4232010-09-27 Kenichi Handa <handa@m17n.org>
424
425 These changes are to remove restriction on the number of glyphs in
426 one composition.
427
428 * dispextern.h (struct glyph): Change the member "slice" to union.
429 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
430 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
431
432 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
433 instead of glyph->slice.
434 (marginal_area_string): Likewise.
435
436 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
437 glyph->u.cmp.
438 (append_composite_glyph): Likewise.
439
440 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
441 glyph->u.cmp.
442 (fill_gstring_glyph_string, x_get_glyph_overhangs)
443 (append_composite_glyph): Likewise.
444 (fill_image_glyph_string): Use glyph->slice.img instead of
445 glyph->slice.
446 (append_glyph, produce_image_glyph, append_stretch_glyph)
447 (note_mouse_highlight): Likewise.
448
3fad2ad2
J
4492010-09-26 Jan Djärv <jan.h.d@swipnet.se>
450
bf05eed6
J
451 * process.c (add_keyboard_wait_descriptor)
452 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
453 (wait_reading_process_output): Don't pass write_mask to select
454 if SELECT_CANT_DO_WRITE_MASK is defined.
455 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 456
3fad2ad2
J
457 * process.h (add_read_fd, delete_read_fd, add_write_fd)
458 (delete_write_fd): Declare.
459
460 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
461 (write_mask): New variable.
462 (max_input_desc): Renamed from max_keyboard_desc.
463 (fd_callback_info): New variable.
70e31436
JB
464 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
465 New functions.
3fad2ad2
J
466 (Fmake_network_process): FD_SET write_mask.
467 (deactivate_process): FD_CLR write_mask.
468 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
469 check_connect removed. check_write is new. Remove references to gpm.
470 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
471 NON_BLOCKING_CONNECT) instead of Connecting.
472 Loop over file descriptors and call callbacks in fd_callback_info
473 if file descriptor is ready for I/O.
474 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
475 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
476 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
477 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
478 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
479 (init_process): Initialize write_mask and fd_callback_info.
480
481 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
482
483 * dbusbind.c: Include process.h.
484 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
485 (xd_read_message_1): New functions.
70e31436
JB
486 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
487 Handle watch for both read and write.
3fad2ad2
J
488 (Fdbus_init_bus): Also register xd_toggle_watch.
489 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
490 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
491 to dbus_connection_flush.
70e31436 492 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
493 Call xd_read_message_1 until status is COMPLETE.
494
dce4c2ac
DN
4952010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
496
497 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
498 (init_tty): Reorder code to reduce the number of #ifdefs.
499 No code changes.
dce4c2ac 500
8af55556
TZ
5012010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
502
503 * process.h: Set up GnuTLS support.
504
505 * process.c (make_process, Fstart_process)
506 (read_process_output, send_process): Set up GnuTLS support for
507 process input/output file descriptors.
508
509 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
510
511 * gnutls.c: The source code for GnuTLS support in Emacs.
512
513 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
514
515 * config.in: Set up GnuTLS support.
516
517 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
518 (obj, LIBES): Set up GnuTLS support.
519
83e245c4
JB
5202010-09-26 Juanma Barranquero <lekktu@gmail.com>
521
522 * w32.c (get_emacs_configuration_options): Fix previous change.
523
d24ec09a
CY
5242010-09-25 Chong Yidong <cyd@stupidchicken.com>
525
526 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
527 alive before using it (Bug#6977).
528
b7bdc47c
LMI
5292010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
530
a952d5f3
LMI
531 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
532
533 * dispextern.h: EMACS_INT/int fixup.
534
535 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
536 fixup.
537
b7bdc47c
LMI
538 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
539
41118bd3
EZ
5402010-09-25 Eli Zaretskii <eliz@gnu.org>
541
2452438f
EZ
542 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
543 (Fselect_window, window_scroll_pixel_based)
544 (window_scroll_line_based, Frecenter, Fset_window_configuration):
545 Use EMACS_INT for buffer positions.
546
547 * textprop.c (validate_interval_range, interval_of)
548 (property_change_between_p, Fadd_text_properties)
549 (set_text_properties_1, Fremove_text_properties)
550 (Fremove_list_of_text_properties, Ftext_property_any)
551 (Ftext_property_not_all, copy_text_properties)
552 (text_property_list, extend_property_ranges)
553 (verify_interval_modification): Use EMACS_INT for buffer
554 positions.
555
f877c546
EZ
556 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
557 for buffer positions.
558
559 * process.c (read_process_output, send_process)
560 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
561 and string positions and size.
562
da43f021
EZ
563 * print.c (print_object, print_string, strout): Use EMACS_INT for
564 string indices.
565
566 * minibuf.c (string_to_object): Use EMACS_INT for string position
567 and size.
568
569 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
570
571 * lread.c <read_from_string_index, read_from_string_index_byte>
572 <read_from_string_limit, readchar_count>: Define EMACS_INT.
573 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
574 buffer positions and string length.
575
41118bd3
EZ
576 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
577 EMACS_INT.
578 (echo_truncate, adjust_point_for_property, read_char)
579 (gen_help_event, make_lispy_event, modify_event_symbol)
580 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
581 for buffer positions and string length.
582
583 * keyboard.h (gen_help_event): Adjust prototype.
584
585 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
586
587 * commands.h <last_point_position>: Declare EMACS_INT.
588
589 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
590 (truncate_echo_area): Accept EMACS_INT argument.
591
592 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
593
594 * lisp.h (truncate_echo_area): Adjust prototype.
595
596 * composite.c (composition_adjust_point): Return EMACS_INT.
597
598 * composite.h (composition_adjust_point): Adjust prototype.
599
ba3033ee
JB
6002010-09-25 Juanma Barranquero <lekktu@gmail.com>
601
602 * process.c (Fmake_network_process): When arg :host is 'local,
603 use address 127.0.0.1, not name "localhost". (Bug#6781)
604
4f3a2f8d
EZ
6052010-09-24 Eli Zaretskii <eliz@gnu.org>
606
5816888b
EZ
607 * indent.c (Fcurrent_indentation, indented_beyond_p)
608 (compute_motion): Use EMACS_INT for buffer position variables.
609
610 * lisp.h (indented_beyond_p): Adjust prototype.
611
612 * buffer.c (overlay_strings): Return EMACS_INT.
613
614 * buffer.h (overlay_strings): Adjust prototype.
615
616 * region-cache.c (pp_cache): Adjust format to arguments.
617
618 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
619 (call_debugger): Use EMACS_INT for specpdl_size related variables.
620 (verror): Use EMACS_INT for size of allocated buffer.
621
ace1712c
EZ
622 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
623 positions.
624
625 * xdisp.c (redisplay_internal, try_window_id)
626 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
627 EMACS_INT for buffer positions.
628
f5276b75 629 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
630
631 * dispnew.c (increment_matrix_positions)
632 (increment_row_positions, copy_glyph_row_contents)
633 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
634 positions.
635
636 * dispextern.h (mode_line_string, marginal_area_string)
637 (increment_matrix_positions, increment_row_positions): Adjust
638 prototypes.
639
640 * data.c (Faref, Faset): Use EMACS_INT for string length and
641 positions.
642
643 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
644 characters to insert.
645
646 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
647 position and size.
648
4f3a2f8d
EZ
649 * syntax.c (scan_words, update_syntax_table)
650 (prev_char_comend_first, back_comment, skip_chars)
651 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
652 EMACS_INT for buffer and string positions.
653
654 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
655
656 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
657 positions.
658
db063399
LMI
6592010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
660
f0812d35
LMI
661 * scroll.c (calculate_scrolling, line_ins_del)
662 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
663 conversion.
664
f5c7fc27
LMI
665 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
666 (region_cache_backward, region_cache_forward)
667 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
668 conversion.
669
db063399
LMI
670 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
671
672 * eval.c (verror): Fix EMACS_INT/int conversion.
673
07914cd0 674 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
675 (print_preprocess, print_check_string_charset_prop)
676 (print_object): Fix EMACS_INT/int conversion.
677
678 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
679
e6d4aefa
EZ
6802010-09-24 Eli Zaretskii <eliz@gnu.org>
681
69481da7
EZ
682 * callproc.c (Fcall_process): Use EMACS_INT for count of
683 characters read from the subprocess.
684
61bfec98
EZ
685 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
686 positions.
687 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
688 positions.
689
145582a0
EZ
690 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
691 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
692 length.
693 (advance_to_char_boundary, Fset_buffer_multibyte)
694 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
695 (overlay_touches_p, record_overlay_string, overlay_strings)
696 (recenter_overlay_lists, fix_start_end_in_overlays)
697 (modify_overlay, Fmove_overlay, report_overlay_modification)
698 (evaporate_overlays): Use EMACS_INT for buffer positions.
699
700 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
701 prototypes.
702
446470a9
EZ
703 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
704 positions.
705
e6d4aefa
EZ
706 * fns.c (Fcompare_strings, Fstring_lessp, concat)
707 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
708 (Fsubstring_no_properties, substring_both, Ffillarray)
709 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
710 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
711 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
712 (Fmd5): Use EMACS_INT for buffer and string positions and length
713 variables and arguments.
714
715 * lisp.h (substring_both): Adjust prototype.
716
eb652396
JB
7172010-09-24 Juanma Barranquero <lekktu@gmail.com>
718
719 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
720 * w32fns.c (clipboard_sequence_fn): Don't declare.
721 (globals_of_w32fns): Don't initialize it.
722
266a86bd 7232010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
724
725 * syntax.c (back_comment): Detect the case where a 1-char comment
726 starter is also the 2nd char of a 2-char comment ender.
727
266a86bd 7282010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
729
730 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
731
40283062
LMI
7322010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
733
db063399
LMI
734 * eval.c (verror): EMACS_INT/int cleanup.
735
faf8b5bc
LMI
736 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
737 unwind_protect more than 2GB worth of functions.
738
739 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
740
40283062
LMI
741 * lisp.h: Have oblookup take EMACS_INT to allow interning big
742 string and avoid compiler warnings.
743 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
744 all users.
745
746 * lread.c (oblookup): EMACS_INT/int cleanup.
747
748 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
749
fe3537c3
EZ
7502010-09-23 Eli Zaretskii <eliz@gnu.org>
751
752 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
753
754 * lisp.h (clip_to_bounds): Adjust prototype.
755
756 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
757
0350982f
LMI
7582010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
759
84c9ce05
LMI
760 * lisp.h: doprnt.c EMACS_INT/int cleanup.
761
762 * doprnt.c (doprnt): EMACS_INT/int cleanup.
763
764 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
765 cleanup.
766
0350982f
LMI
767 * lisp.h: Change the definition of all marker.c functions that
768 take and return buffer stuff to be EMACS_INT instead of int.
769
770 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
771 (buf_charpos_to_bytepos, bytepos_to_charpos)
772 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
773 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
774 for all buffer positions.
775
c50bd0d2
CY
7762010-09-23 Chong Yidong <cyd@stupidchicken.com>
777
778 * intervals.c (traverse_intervals, rotate_right, rotate_left)
779 (split_interval_right, find_interval, next_interval)
780 (delete_node, delete_interval, interval_deletion_adjustment)
781 (adjust_intervals_for_deletion, merge_interval_right)
782 (merge_interval_left, graft_intervals_into_buffer)
783 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
784
785 * intervals.h (traverse_intervals): Update prototype.
786
14162469
EZ
7872010-09-23 Eli Zaretskii <eliz@gnu.org>
788
c098fdb8
EZ
789 * indent.c (compute_motion): Use EMACS_INT for arguments to
790 region_cache_forward.
791
792 * region-cache.c (struct boundary, struct region_cache): Use
793 EMACS_INT for positions.
794 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
795 (delete_cache_boundaries, set_cache_region)
796 (invalidate_region_cache, know_region_cache)
797 (region_cache_forward, region_cache_backward, pp_cache): Use
798 EMACS_INT for buffer positions.
799
800 * region-cache.h (know_region_cache, invalidate_region_cache)
801 (region_cache_forward, region_cache_backward): Adjust prototypes.
802
803 * search.c (string_match_1, fast_c_string_match_ignore_case)
804 (looking_at_1, scan_buffer, scan_newline)
805 (find_next_newline_no_quit, find_before_next_newline)
806 (search_command, trivial_regexp_p, search_buffer, simple_search)
807 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
808 and string positions and length.
809
caefdbe7
EZ
810 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
811 (find_before_next_newline): Adjust prototypes.
c098fdb8 812
29cdc13e
EZ
813 * editfns.c (transpose_markers, update_buffer_properties)
814 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
815 (get_pos_property, Fconstrain_to_field)
816 (Fline_beginning_position, Fline_end_position, Fprevious_char)
817 (Fchar_after, Fchar_before, Finsert_char)
818 (Finsert_buffer_substring, Fcompare_buffer_substrings)
819 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
820 EMACS_INT for buffer and string position variables.
c098fdb8 821 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
822
823 * lisp.h (clip_to_bounds): Adjust prototype.
824
e79123aa
EZ
825 * intervals.c (traverse_intervals, rotate_right, rotate_left)
826 (balance_an_interval, split_interval_right, split_interval_left)
827 (find_interval, next_interval, update_interval)
828 (adjust_intervals_for_insertion, delete_node, delete_interval)
829 (interval_deletion_adjustment, adjust_intervals_for_deletion)
830 (offset_intervals, merge_interval_right, merge_interval_left)
831 (graft_intervals_into_buffer, adjust_for_invis_intang)
832 (move_if_not_intangible, get_local_map, copy_intervals)
833 (copy_intervals_to_string, compare_string_intervals)
834 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 835 and for interval tree size.
e79123aa
EZ
836
837 * intervals.h (traverse_intervals, split_interval_right)
838 (split_interval_left, find_interval, offset_intervals)
839 (graft_intervals_into_buffer, copy_intervals)
840 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
841 (update_interval): Adjust prototypes.
842
579c18d0
EZ
843 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
844 Use EMACS_INT for buffer position variables and arguments.
845
846 * composite.c (get_composition_id, find_composition)
847 (run_composition_function, compose_text)
848 (composition_gstring_width, autocmp_chars)
849 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
850 for buffer positions and string length variables and arguments.
851
852 * composite.h (get_composition_id, find_composition, compose_text)
853 (composition_gstring_width): Adjust prototypes.
854
855 * editfns.c (Fformat): Use EMACS_INT for string size variables.
856
857 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
858 EMACS_INT for string positions.
859
860 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
861 position arguments.
862
863 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
864
865 * character.c (parse_str_as_multibyte, str_as_multibyte)
866 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
867 (string_count_byte8, string_escape_byte8, c_string_width)
868 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
869 EMACS_INT for string length variables and arguments.
14162469
EZ
870
871 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
872 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
873 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
874 prototypes.
875
579c18d0
EZ
876 * font.c (font_intern_prop): Use EMACS_INT for string length
877 variables.
878
879 * font.c (font_intern_prop): Use EMACS_INT for string length
880 variables.
881
14162469
EZ
882 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
883 variables.
884
885 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
886 (Fmake_string): Protect against too large strings.
887 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
888 (live_misc_p): Use ptrdiff_t instead of int for pointer
889 differences.
890 (string_bytes, check_sblock, check_string_free_list)
891 (allocate_string_data, compact_small_strings, Fmake_string)
892 (Fmake_bool_vector, make_string, make_unibyte_string)
893 (make_multibyte_string, make_string_from_bytes)
894 (make_specified_string_string, Fmake_list, Fmake_vector): Use
895 EMACS_INT for string length variables and arguments.
896 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
897 (Fpurecopy): Use EMACS_INT for string size.
898 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
899 for vector size.
900
901 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
902 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
903 (make_pure_string, string_bytes, check_point_in_composition):
904 Adjust prototypes.
14162469 905
c8a66ab8
EZ
9062010-09-22 Eli Zaretskii <eliz@gnu.org>
907
908 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
909 (check_translation): Use EMACS_INT for buffer positions and
910 length.
911
912 * undo.c (record_marker_adjustment, record_delete)
913 (record_change, record_point, record_insert)
914 (record_property_change, Fprimitive_undo): Use EMACS_INT for
915 buffer positions.
916
917 * lisp.h (record_marker_adjustment, record_delete)
918 (record_change, record_point, record_insert)
919 (record_property_change, Fprimitive_undo): Adjust prototypes.
920
38c54d9d
JB
9212010-09-22 Juanma Barranquero <lekktu@gmail.com>
922 Eli Zaretskii <eliz@gnu.org>
923
924 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
925
413d18e7
EZ
9262010-09-22 Eli Zaretskii <eliz@gnu.org>
927
928 * minibuf.c (Fminibuffer_contents)
929 (Fminibuffer_contents_no_properties)
930 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
931 positions.
932
933 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
934 mark.
935
936 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
937 (allocate_string_data): Accept EMACS_INT for string length.
938
939 * editfns.c (Ffield_string, Ffield_string_no_properties)
940 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
941 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
942 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
943 (Ffield_end): Use EMACS_INT for buffer positions.
944
945 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
946 point with mark.
947
948 * lisp.h (allocate_string_data, make_uninit_string)
949 (make_uninit_multibyte_string, make_buffer_string)
950 (make_buffer_string_both): Adjust prototypes.
951
4b9832a6
CY
9522010-09-22 Chong Yidong <cyd@stupidchicken.com>
953
954 * xml.c: Switch to GNU indentation.
955 (make_dom): Change parse tree format to match xml.el.
956 (Fxml_parse_html_string_internal): Rename from html-parse-string.
957 (Fxml_parse_string_internal): Rename from xml-parse-string.
958
86282aab
KH
9592010-09-22 Kenichi Handa <handa@m17n.org>
960
961 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
962 only if we are not at a composition.
963 (set_iterator_to_next): Give it->end_charpos to
964 composition_compute_stop_pos.
965 (set_iterator_to_next, next_element_from_buffer): Likewise.
966
967 * dispnew.c (buffer_posn_from_coords): Fix position when the
968 current display element is a grapheme cluster in bidi-reordered
969 region.
970
840b985a
AR
9712010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
972
973 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
974 the regions may overlap.
975
5bc88f4b
JB
9762010-09-21 Juanma Barranquero <lekktu@gmail.com>
977
978 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
979
92bc9a36
DN
9802010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
981
d19e096e
DN
982 * emacs.c: Do not include sys/ioctl.h, not needed.
983
92bc9a36
DN
984 * doprnt.c: Do not include stdlib.h, config.h does it.
985 Move #include before macro definition.
986
15f844ac
DN
9872010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
988
48e24408
DN
989 * Makefile.in (temacs): Link using $(CC) not $(LD).
990 (LD_FIRSTFLAG): Define using autoconf.
991 (LD): Remove.
992
65539506
DN
993 Remove HAVE_TERMIOS definitions.
994 * s/usg5-4-common.h (HAVE_TERMIOS):
995 * s/template.h (HAVE_TERMIOS):
996 * s/gnu-linux.h (HAVE_TERMIOS):
997 * s/darwin.h (HAVE_TERMIOS):
998 * s/cygwin.h (HAVE_TERMIOS):
999 * s/bsd-common.h (HAVE_TERMIOS):
1000 * s/aix4-2.h (HAVE_TERMIOS):
1001 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
1002 defined on all non-MS platforms.
1003 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
1004
15f844ac
DN
1005 * xterm.c (xt_action_hook): Use const.
1006
7d701334
JB
10072010-09-20 Juanma Barranquero <lekktu@gmail.com>
1008
1009 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
1010 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1011 (gethostname) [!HAVE_SOCKETS]: Remove.
1012 (SOCK_REPLACE_HANDLE): Remove macro.
1013 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
1014 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
1015 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1016 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
1017
f3ec267a
EZ
10182010-09-18 Eli Zaretskii <eliz@gnu.org>
1019
1020 * deps.mk (xml.o): Add dependencies.
1021
93acd23d
JB
1022 * xdisp.c (Fcurrent_bidi_paragraph_direction):
1023 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
1024
1025 * bidi.c (bidi_paragraph_init): Accept an additional argument
1026 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
1027 search back until a paragraph with a strong directional character
1028 is found, and use that to determine paragraph's base direction.
1029
1030 * dispextern.h (bidi_paragraph_init): Update prototype.
1031
69e847be
EZ
10322010-09-17 Eli Zaretskii <eliz@gnu.org>
1033
1034 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1035 of w32api >= 3.15. (Bug#6989)
1036
283357a7
LMI
10372010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
1038
1039 * process.c (wait_reading_process_output): Don't message about
1040 accept-process-output unless the time limit really is zero.
1041
4ddb20d6
SM
10422010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1043
1044 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
1045 int/Lisp_Object mixup).
1046
e24ad6dd
J
10472010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1048
1049 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
1050 not HELP.
1051
fb0cf781
J
10522010-09-17 Stephen Berman <stephen.berman@gmx.net>
1053
1054 * frame.c (Ftool_bar_pixel_width): New function to expose tool
1055 bar's pixel width to Lisp (Bug#7048).
1056
4ddb20d6
SM
10572010-09-14 Juanma Barranquero <lekktu@gmail.com>
1058
1059 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 1060
318a04c6
J
10612010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1062
1063 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
1064 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
1065
78a21772
KH
10662010-09-17 Kenichi Handa <handa@m17n.org>
1067
1068 * ftfont.c (ftfont_check_otf): Fix previous change.
1069
fa3f6039
KH
10702010-09-14 Kenichi Handa <handa@m17n.org>
1071
1072 * ftfont.c (ftfont_check_otf): Fix the case of checking just
1073 existence of GSUB or GPOS.
1074
2b5491fa
JB
10752010-09-14 Juanma Barranquero <lekktu@gmail.com>
1076
1077 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1078
c97c655f
LMI
10792010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
1080
2b5491fa 1081 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
1082 what it does.
1083 (parse_string): Return nil when the document can't be parsed.
1084
6664fc59 10852010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
1086
1087 * xterm.c (get_current_vm_state): New function.
1088 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
1089 want_fullscreen so set_wm_state calls are few (Bug#7013).
1090 (x_handle_net_wm_state): Move code to get_current_vm_state and
1091 call that function.
1092
6664fc59 10932010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
1094
1095 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
1096
6664fc59 10972010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
1098
1099 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
1100 we may use designation or locking-shift.
1101
6664fc59 11022010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
1103
1104 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
1105 sequence when the source is multibyte.
1106
1da70e99
AS
11072010-09-14 Andreas Schwab <schwab@linux-m68k.org>
1108
6664fc59
JB
1109 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
1110 Don't make first argument optional. Doc fix.
1da70e99 1111
26632d8d
LMI
11122010-09-14 Leo <sdl.web@gmail.com> (tiny change)
1113
1114 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
1115 parameters for the doc string.
1116
21fa8e37
LMI
11172010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
1118
1119 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
1120
5616cc54
SM
11212010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1122
1123 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
1124 (syms_of_fns): Don't defsubr Sy_or_n_p.
1125 * lisp.h: Don't declare Fy_or_n_p.
1126 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
1127
381408e2
LMI
11282010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1129
1130 * xml.c (Fxml_parse_buffer): New function to parse XML files.
1131
11322010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1133
1134 * xml.c: New file.
1135 (Fhtml_parse_buffer): New function to interface to the libxml2
1136 html parsing function.
1137
733946e7
JB
11382010-09-05 Juanma Barranquero <lekktu@gmail.com>
1139
1140 * biditype.h: Regenerate.
1141
7574650a
AS
11422010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1143
1144 * nsimage.m (ns_load_image): Check argument types.
1145
1146 * image.c: Remove all uses of gcpro.
1147 (xpm_load): Check all lisp types.
1148 (pbm_load): Likewise.
1149 (png_load): Likewise.
1150 (jpeg_load): Likewise.
1151 (tiff_load): Likewise.
1152 (gif_load): Likewise.
1153 (imagemagick_load_image): Likewise.
1154 (imagemagick_load): Likewise.
1155 (svg_load): Likewise.
1156 (gs_load): Likewise.
1157
6e6b8e25
EZ
11582010-09-04 Eli Zaretskii <eliz@gnu.org>
1159
1160 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
1161 try to reorder grapheme clusters, since LGSTRING should always
1162 hold them in the logical order.
1163 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1164 return glyph codes in the logical order.
1165
dbfe4532
AS
11662010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1167
1168 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 1169 (imagemagick_load_image): Fix type mismatch.
5e5992c2 1170 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 1171
6d7cc563
JD
11722010-09-02 Jan Djärv <jan.h.d@swipnet.se>
1173
1174 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
1175
1176 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
1177
1178 * xselect.c: Remove declaration of cut-buffer objects and functions.
1179 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
1180 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
1181 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
1182 (Fx_rotate_cut_buffers_internal): Remove.
1183 (syms_of_xselect): Remove defsubr of above.
1184 Remove intern of QCUT_BUFFERn.
1185
8f4e9110
SM
11862010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1187
1188 * cmds.c (Vblink_paren_function): Remove.
1189 (internal_self_insert): Make it insert N chars at a time.
1190 Don't call blink-paren-function.
1191 (Fself_insert_command): Adjust accordingly.
1192 (syms_of_cmds): Don't declare blink-paren-function.
1193
d419e1d9
KH
11942010-08-31 Kenichi Handa <handa@m17n.org>
1195
1196 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1197 characters.
1198
1199 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
1200 (produce_glyphs): Don't set it->char_to_display here.
1201 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
1202 (produce_special_glyphs): Set temp_it.char_to_display before
1203 calling produce_glyphs.
1204
1205 * xdisp.c (get_next_display_element): Set it->char_to_display
1206 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1207 characters.
1208 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1209 calling PRODUCE_GLYPHS.
1210 (append_space_for_newline): Save and store it->char_to_display.
1211 Set it->char_to_display before calling PRODUCE_GLYPHS.
1212 (extend_face_to_end_of_line): Set it->char_to_display before
1213 calling PRODUCE_GLYPHS.
1214 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1215 character to its byte value.
1216 (get_char_glyph_code): New function.
1217 (produce_stretch_glyph): Set it2.char_to_display too before
1218 calling x_produce_glyphs.
1219 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
1220 non-ASCII characters. Don't set it->char_to_display here.
1221 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 1222 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 1223
b819f760
SM
12242010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1225
1226 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1227
07fa68a7
CY
12282010-08-31 Chong Yidong <cyd@stupidchicken.com>
1229
1230 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1231
cd196f12
SM
12322010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1233
1234 * marker.c (Fcopy_marker): Make the first arg optional.
1235
49a752bb
KH
12362010-08-30 Kenichi Handa <handa@m17n.org>
1237
1238 * composite.c (composition_update_it): Fix computing of
1239 cmp_it->width.
1240
769ae9e1
KH
12412010-08-29 Kenichi Handa <handa@m17n.org>
1242
9e69cb05 1243 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 1244 corresponding bytes.
9e69cb05 1245
4520b858
J
12462010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1247
1248 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1249
fe50eb41
KH
12502010-08-26 Kenichi Handa <handa@m17n.org>
1251
1252 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1253 on calling composition_compute_stop_pos.
1254
f6aa6ec6
KH
12552010-08-25 Kenichi Handa <handa@m17n.org>
1256
9dfdbc0a
KH
1257 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1258 :otf.
1259
f6aa6ec6
KH
1260 * composite.c (composition_compute_stop_pos): Don't break
1261 composition at PT.
1262 (composition_reseat_it): Likewise. Fix calculation of character
1263 position starting a composition.
1264 (Fcomposition_get_gstring): Don't limit the number of components
1265 for automatic composition.
1266
ff94e32c
KH
12672010-08-25 Kenichi Handa <handa@m17n.org>
1268
1269 * composite.c (composition_compute_stop_pos): In forward search,
1270 pay attention to the possibility that some character after ENDPOS
1271 will be composed with charactrs before ENDPOS.
1272
1c409d0b
CY
12732010-08-24 Chong Yidong <cyd@stupidchicken.com>
1274
1275 * keyboard.c (command_loop_1): Don't clobber primary selection
1276 during handle-switch-frame (Bug#6872).
1277
0c372655
MA
12782010-08-23 Michael Albinus <michael.albinus@gmx.de>
1279
1280 * dbusbind.c: Accept UNIX domain sockets as bus address.
1281 (Fdbus_close_bus): New function.
1282 (Vdbus_registered_buses): New variable.
1283 (xd_initialize): Implement string as bus address.
1284 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1285 (Fdbus_get_unique_name, Fdbus_call_method)
1286 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1287 (Fdbus_method_error_internal, Fdbus_send_signal)
1288 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1289 check. This is done in xd_initialize_bus. Adapt doc string, if
1290 necessary.
1291 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1292 Vdbus_registered_buses.
1293 (Vdbus_registered_objects_table): Create hash.
1294
7133b7ee
JL
12952010-08-22 Juri Linkov <juri@jurta.org>
1296
1297 * keyboard.c (Fexecute_extended_command): Move reading a command name
1298 with `completing-read' to a new Elisp function `read-extended-command'.
1299 Call it to read a command to `function' (bug#5364, bug#5214).
1300
198a7a97
CY
13012010-08-22 Chong Yidong <cyd@stupidchicken.com>
1302
1303 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1304
b0126eac 13052010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
1306
1307 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1308 instead of SAFE_ALLOCA.
1309
b0126eac 13102010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
1311
1312 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1313 (Bug#6214).
1314
b0126eac 13152010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
1316
1317 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1318
b0126eac
CY
13192010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1320
1321 * doc.c (Fsnarf_documentation): Initialize skip_file before
1322 build-files test.
1323
692f3ddc 13242010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 1325
692f3ddc
JB
1326 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1327 New definitions.
b0126eac
CY
1328 (HAVE_TERMIO): Remove.
1329
5f2f0bc1
EZ
13302010-08-22 Eli Zaretskii <eliz@gnu.org>
1331
b613941b
EZ
1332 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1333
a583bbef
EZ
1334 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1335 for w32.
1336
1337 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1338 it's done in nt/config.nt.
1339
1340 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1341
5f2f0bc1
EZ
1342 * unexcoff.c (report_error, make_hdr, write_segment)
1343 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1344 Convert argument lists and prototypes to ANSI C.
1345 (make_hdr, write_segment): Remove unused variables.
1346 (unexec): Remove commented-out line. Initialize `new' to shut up
1347 compiler warnings.
1348
a7ebc409
DN
13492010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1350
1351 Simplify termio code.
1352 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1353 HAVE_TERMIO code is obsolete.
1354 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1355 * systty.h: Do not define HAVE_TCATTR.
1356 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1357 Do not define EMACS_HAVE_TTY_PGRP. Only define
1358 EMACS_GET_TTY_PGRP for !DOS_NT.
1359 * sysdep.c: Include sysselect.h unconditionally. Do not include
1360 sys/ioctl.h and termios.h, systty.h does it. Use
1361 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1362 (init_baud_rate): Remove HAVE_TERMIO code.
1363 (child_setup_tty): Remove HAVE_TERMIO code.
1364 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1365 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1366 (new_ltchars, new_tchars): Remove, unused.
1367 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1368 code. Remove special casing for __mips__, it was a no-op. Remove
1369 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1370 (init_sys_modes): Remove HPUX special case.
1371 * process.c: Include stdlib.h unconditionally. Do not include
1372 fcntl.h, systty.h does it. Remove conditional code for
1373 HAVE_SERIAL, it is always true.
1374 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1375 always true when SIGNALS_VIA_CHARACTERS is true.
1376 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1377 !WINDOWSNT means HAVE_TERMIOS.
1378 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1379 conditional, which is true for all HAVE_TERMIOS systems.
1380 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1381 instead of HAVE_TERMIOS.
1382 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1383 EMACS_HAVE_TTY_PGRP.
1384 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1385 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1386 anyway.
1387
40629f17
EZ
13882010-08-21 Eli Zaretskii <eliz@gnu.org>
1389
1390 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1391 mirroring pixel positions.
1392
d931da8c
DN
13932010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1394
b5c76d0c
DN
1395 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1396 write only.
1397 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1398 malloc_sbrk_used, nothing uses them.
1399
74815588
DN
1400 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1401 defined, unconditionally defined in lisp.h.
1402
f5817d1c
DN
1403 * term.c: Do not include <termios.h>, systty.h does it.
1404
d931da8c
DN
1405 * s/unixware.h (HAVE_TCATTR):
1406 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1407 systty.h defines it when HAVE_TERMIOS is defined.
1408
ff2de6d2 14092010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 1410
b43c883c 1411 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 1412 terminals: add one-character offset for R2L lines.
b43c883c 1413
491a1546
EZ
1414 * emacs.c <emacs_version>: Add a comment regarding
1415 msdos/mainmake.v2's dependency on the syntax of this declaration.
1416
2396cbba
EZ
14172010-08-20 Eli Zaretskii <eliz@gnu.org>
1418
1419 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1420 position for R2L lines by mirroring the pixel position wrt the
1421 text are box. Improve commentary.
1422
7df6150a
AS
14232010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1424
1425 * image.c (imagemagick_clear_image): Remove debugging output.
1426
a2e5caf7
SM
14272010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1428
1429 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1430 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1431 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1432 self-insert-face.
1433 (syms_of_cmds): Initialize the new vars.
1434
20d60baf
JR
14352010-08-19 Jason Rumney <jasonr@gnu.org>
1436
cc477da7
JR
1437 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1438
20d60baf
JR
1439 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1440
2c0ac867
J
14412010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1442
1443 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1444
93352106
EZ
14452010-08-18 Eli Zaretskii <eliz@gnu.org>
1446
1447 * xterm.c (x_draw_bar_cursor):
1448 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1449 R2L, draw the bar cursor on its right rather than on its left.
1450
c785836d
SM
14512010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1452
0193499f
SM
1453 * eval.c (Fdefmacro): Only obey one declaration.
1454
c785836d
SM
1455 * casefiddle.c (casify_region): Setup gl_state.
1456
9cb728a5
J
14572010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1458
1459 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1460
e1e18511
J
14612010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1462
1d77b63e 1463 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 1464
64cb6c78
J
14652010-08-18 David De La Harpe Golden <david@harpegolden.net>
1466
1467 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1468 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1469 QPRIMARY => NXPrimaryPboard.
1470 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1471 NXPrimaryPboard => QPRIMARY.
1472 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1473 NXSecondaryPboard = SecondarySelection.
1474 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1475
0c9b8993
GM
14762010-08-18 Joakim Verona <joakim@verona.se>
1477
1478 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1479 defined:
1480 (imagemagick_image_p): New function to test for ImageMagic image.
1481 (imagemagick_load): New function to load ImageMagick image.
1482 (imagemagick_load_image): New function, helper for imagemagick_load.
1483 (imagemagick-types): New function.
1484 (Qimagemagick): New Lisp_object.
1485 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 1486
c3554f68
SM
14872010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1488
1489 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1490 is a string.
1491
1ff2e434
J
14922010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1493
1494 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1495 x_set_tool_bar_position handler.
1496
0cc56427
EZ
14972010-08-17 Eli Zaretskii <eliz@gnu.org>
1498
1499 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1500 x_set_tool_bar_position handler, needed to support changes from
1501 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1502
e45a249b
JD
15032010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1504
921242c6
J
1505 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1506 declaration (Bug#6863).
573d150b 1507 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 1508
e45a249b
JD
1509 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1510
1511 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1512
7c23dd44
CY
15132010-08-16 Chong Yidong <cyd@stupidchicken.com>
1514
1515 * keyboard.c (command_loop_1): Avoid setting selection twice,
1516 since it's done in deactivate-mark as well.
1517 (Vselect_active_regions): Change default to t. Replace `lazy'
1518 with non-default value `only', meaning only set PRIMARY for
1519 temporarily active regions.
1520
1521 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1522 select-active-regions.
1523
0005830c
J
15242010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1525
1526 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1527 isn't a string.
1528
603dfc72
AS
15292010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1530
1531 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1532
c25ce9d0
J
15332010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1534
c3554f68
SM
1535 * keyboard.c (parse_tool_bar_item): malloc buf.
1536 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1537 new_lbl (Bug#6855).
c25ce9d0 1538
5872c762
EZ
15392010-08-14 Eli Zaretskii <eliz@gnu.org>
1540
b236615c
EZ
1541 * xterm.c (x_draw_stretch_glyph_string):
1542 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1543 the cursor on the right edge of the stretch glyph.
1544
c3554f68
SM
1545 * xdisp.c (window_box_right_offset, window_box_right):
1546 Fix commentary.
b236615c 1547
5872c762
EZ
1548 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1549 direction when point is inside a run of whitespace characters.
1550
1551 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1552
e66f9a1b
JR
15532010-08-14 Jason Rumney <jasonr@gnu.org>
1554
1555 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1556
79d6f59e
CY
15572010-08-14 Chong Yidong <cyd@stupidchicken.com>
1558
1559 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1560
1c9b4129
JR
15612010-08-13 Jason Rumney <jasonr@gnu.org>
1562
1563 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1564 (MessageBoxW_Proc): New function typedef.
1565 (unicode-message-box): New function pointer.
1566 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1567
2b4e6277
J
15682010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1569
1570 * frame.h (Qtool_bar_position): Declare.
1571
1572 * xfns.c (Fx_create_frame): Call x_default_parameter for
1573 Qtool_bar_position.
1574
94c97d85
EZ
15752010-08-13 Eli Zaretskii <eliz@gnu.org>
1576
8ee81892
EZ
1577 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1578 (report_error, report_error_1): Ditto.
1579 (write_segment): Remove "#if 0" unused code.
1580 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1581 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1582 (start_of_text): Remove unused function (was used only if NO_REMAP
1583 was NOT defined).
1584
891ef8f7
EZ
1585 * msdos.c (IT_set_face): Fix format string to match argument
1586 types.
1587 (IT_write_glyphs, IT_note_mode_line_highlight)
1588 (IT_set_frame_parameters): Remove unused variables.
1589 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1590 (IT_set_terminal_modes): Disambiguate expression in if clause.
1591 (Fmsdos_remember_default_colors): Return Qnil.
1592 (IT_set_frame_parameters): Add parens to disambiguate boolean
1593 expression for logging the cursor type to termscript.
1594 (keyboard_layout_list, keypad_translate_map)
1595 (grey_key_translate_map): Add braces in inner initializers.
1596 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1597 (dos_rawgetc): Remove unused label.
1598 (XMenuActivate): Add braces to remove ambiguous `else'.
1599 (dos_ttraw): Always return a value.
1600 (spawnve): Declare.
1601 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1602
1603 * dosfns.h (x_set_title): Declare.
1604
1605 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1606 Remove unused variables.
1607
1608 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1609 variables.
1610 (init_dosfns): Declare get_lim_data.
1611 (system_process_attributes): Declare Fget_internal_run_time.
1612
38e41e0e
EZ
1613 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1614 list to be consistent with menu.h.
1615
94c97d85
EZ
1616 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1617 warnings due to mixing of "char *" and "const char *".
1618
c5683ceb
SM
16192010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1620
1621 Introduce a new comment style "c" flag.
1622 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1623 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1624 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1625 (syntax_prefix_flag_p): New function.
1626 (Fstring_to_syntax): Understand new "c" flag.
1627 (Finternal_describe_syntax_value): Recognize new flag; use the
1628 SYNTAX_FLAGS_* macros.
1629 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1630 comment style to accomodate the new styles.
1631 (back_comment, forw_comment, Fforward_comment, scan_lists)
1632 (scan_sexps_forward): Update code to obey the new comment style flag.
1633
1634 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1635
1636 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1637
7aee76f4
J
16382010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1639
3a46642b
J
1640 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1641 first.
94dff98f 1642 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
1643
1644 * gtkutil.h (xg_check_special_colors): Declare.
1645
1646 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1647 (xg_create_frame_widgets): Connect theme name changes to
1648 style_changed_cb.
1649
42ca4633
J
1650 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1651 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1652 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 1653 string literal. file is const char*.
42ca4633
J
1654
1655 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1656 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1657 props. Free them at the end.
1658
1659 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1660
c5683ceb
SM
1661 * xrdb.c (get_system_app): Make path const and use char *p for
1662 non-const char.
42ca4633
J
1663
1664 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 1665 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
1666 char *.
1667 (button_names): Is const char *.
1668 (xdialog_show): error_name and pane_string is const.
1669
1670 * process.h (synch_process_death): Is const char*.
1671
1672 * w32menu.c (w32_menu_show):
1673 * nsmenu.m (ns_menu_show): error parameter is const char **.
1674
1675 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1676 is const char **.
1677
1678 * menu.c (Fx_popup_menu): error_name is const.
1679
1680 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1681 with unsigned char and XtPointer with void *.
1682
1683 * gtkutil.h: Replace widget_value with struct _widget_value.
1684 (enum button_type, struct _widget_value): Remove and use the one from
1685 keyboard.h.
1686
1687 * gtkutil.c (get_utf8_string): Always return an allocated string.
1688 Parameter is const.
1689 (create_dialog, xg_create_one_menuitem, create_menus)
1690 (xg_item_label_same_p, xg_update_menu_item): Free result from
1691 get_utf8_string.
1692 (xg_separator_p, xg_item_label_same_p): label is const.
1693
1694 * font.h (font_open_by_name): Make name const.
1695
1696 * font.c (font_open_by_name): Make name const.
1697
1698 * floatfns.c (matherr): Use a const char* variable for x->name.
1699
1700 * emacs.c (main): Pass char[] to putenv instead of literal.
1701
1702 * callproc.c (synch_process_death): Make const.
1703 (Fcall_process): Make signame const.
1704
9c5bd55a
J
1705 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1706 (addDisplayItemWithImage): Use const char*.
1707
1708 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1709 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1710
1711 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1712
1713 * keyboard.h (_widget_value): name, value and key are const char*.
1714
7aee76f4
J
1715 * unexmacosx.c (unexec_error): Use const char *.
1716
09d93395
DN
17172010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1718
1719 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1720 (font_parse_name, font_open_by_name):
09d93395 1721 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1722 (font_parse_name, font_open_by_name): Remove const.
09d93395 1723
671d409f
AS
17242010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1725
1726 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1727 definition.
1728
1729 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1730 * m/amdx86-64.h: Likewise.
1731 * m/arm.h: Likewise.
1732 * m/hp800.h: Likewise.
1733 * m/ia64.h: Likewise.
1734 * m/ibmrs6000.h: Likewise.
1735 * m/ibms390.h: Likewise.
1736 * m/intel386.h: Likewise.
1737 * m/iris4d.h: Likewise.
1738 * m/m68k.h: Likewise.
1739 * m/macppc.h: Likewise.
1740 * m/mips.h: Likewise.
1741 * m/sh3.h: Likewise.
1742 * m/sparc.h: Likewise.
1743 * m/template.h: Likewise.
1744 * m/vax.h: Likewise.
1745 * m/xtensa.h: Likewise.
1746 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1747 WORDS_BIG_ENDIAN.
1748 * lisp.h: Likewise.
1749 * md5.c: Likewise.
1750 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1751
8ea90aa3
DN
17522010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1753
1754 Use const char* instead of char*.
1755 Reduce the number of warnings with -Wwrite-strings.
1756 * xrdb.c (get_environ_db, get_system_name):
1757 * unexelf.c (find_section):
1758 * term.c (string_cost, string_cost_one_line, per_line_cost)
1759 (get_named_tty, init_tty):
1760 * sysdep.c (sys_subshell):
1761 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1762 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1763 * search.c (Freplace_match):
1764 * process.c (Fmake_network_process, send_process, init_process):
1765 * lread.c (Fload, init_lread):
1766 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1767 * keyboard.c (parse_tool_bar_item, struct event_head):
1768 * gtkutil.h (xg_get_font_name):
1769 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1770 (make_widget_for_menu_item, make_menu_item, create_menus)
1771 (xg_make_tool_item):
1772 * font.c (parse_matrix, font_parse_name):
1773 * floatfns.c (rounding_driver, float_error_fn_name):
1774 * filelock.c (get_boot_time_1, lock_file_1):
1775 * fileio.c (barf_or_query_if_file_exists, check_writable):
1776 * editfns.c (get_system_name, get_operating_system_release)
1777 (Fencode_time, Fset_time_zone_rule):
1778 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1779 * buffer.c (defvar_per_buffer): Use const.
1780
7815fe19 17812010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1782
692f3ddc 1783 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1784 (struct charset_sort_data): New struct.
1785 (charset_compare): New function.
692f3ddc 1786 (Fsort_charsets): New function.
7a84eee5
KH
1787 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1788
1789 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1790 number in CTEXT extended segment.
1791
7815fe19 17922010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1793
1794 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1795 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1796
7815fe19 17972010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1798
1799 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1800 (Fhash_table_size): Fix typos in docstrings.
1801 (Fmake_hash_table): Doc fix.
1802
7815fe19 18032010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1804
1805 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1806 Doc fix (bug#5625).
1807
7815fe19 18082010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1809
1810 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1811 the MSDOS definition.
1812
1b6d8cf0
DN
18132010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1814
675e2c69
DN
1815 Use const char* instead of char*.
1816 * xterm.c (x_create_toolkit_scroll_bar):
1817 * xfont.c (xfont_list_pattern):
1818 * xfns.c (x_default_scroll_bar_color_parameter)
1819 (xic_create_fontsetname, x_default_font_parameter)
1820 (x_screen_planes):
1821 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1822 (store_mode_line_string, decode_mode_spec, display_string):
1823 * menu.c (digest_single_submenu):
1824 * keymap.h (initial_define_key, initial_define_lispy_key):
1825 * keymap.c (initial_define_key, initial_define_lispy_key):
1826 * image.c (image_error, image_keyword):
1827 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1828 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1829 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1830 (ftfont_list, ftfont_match):
1831 * frame.c (frame_parm_table):
1832 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1833 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1834 (font_add_log, font_deferred_log):
1835 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1836 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1837 (font_add_log, font_deferred_log):
1838 * emacs.c (argmatch):
1839 * dispextern.h (struct it):
1840 * coding.c (ENCODE_DESIGNATION):
1841 * charset.c (define_charset_internal): Use const.
1842
25717ca1
DN
1843 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1844
c5683ceb
SM
1845 * xrdb.c: Remove include guard.
1846 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1847 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1848 realloc->xrealloc instead of using #defines.
1849
efb41e21
EZ
18502010-08-08 Eli Zaretskii <eliz@gnu.org>
1851
cd21226d 1852 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1853 * editfns.c (Fline_beginning_position, Fline_end_position):
1854 State in the doc strings that start and end of line are in the
1855 logical order.
cd21226d 1856
efb41e21
EZ
1857 * xdisp.c (display_line): Move the handling of overlay arrow after
1858 the call to find_row_edges. (Bug#6699)
1859
746812d9
CY
18602010-08-07 Chong Yidong <cyd@stupidchicken.com>
1861
1862 * keyboard.c (command_loop_1):
1863 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1864
9852377f
CY
18652010-08-07 Chong Yidong <cyd@stupidchicken.com>
1866
1867 * insdel.c (prepare_to_modify_buffer): Save active region text to
1868 Vsaved_region_selection.
1869
1870 * xselect.c (QPRIMARY): Move to keyboard.c.
1871
1872 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1873 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1874 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1875
0e9c8657
JB
18762010-08-07 Juanma Barranquero <lekktu@gmail.com>
1877
1878 * alloc.c (lisp_malloc):
1879 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1880 * charset.h (emacs_mule_charset):
1881 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1882 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1883 (bitch_at_user):
1884 * lisp.h (Fcheck_coding_system, Fget_text_property)
1885 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1886 Remove duplicate declarations.
1887
648801d1
DN
18882010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1889
32bc6709
DN
1890 * process.c: Simplify include logic.
1891
3ef1d108
DN
1892 * keyboard.h (quit_char): Add declaration.
1893 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1894 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1895 Add declarations.
3ef1d108
DN
1896 * sysdep.c:
1897 * w32.c: Remove the above declarations.
1898
97ec208f
DN
1899 Remove extern declarations in .c files, .h files have them.
1900 * xterm.c:
1901 * xdisp.c:
97ec208f
DN
1902 * msdos.c:
1903 * image.c:
1904 * gtkutil.c:
1905 * fileio.c:
1906 * eval.c: Remove declarations.
1907
94eed851
DN
1908 * frame.c (frame_params): Make const.
1909
36e053eb
DN
1910 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1911
0e843971
DN
1912 * emacs.c (emacs_copyright, emacs_version): Make static.
1913 (Vinitial_window_system, Vauto_save_list_file_name)
1914 (Vinhibit_redisplay): Remove declarations.
1915 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1916 for AIX.
1917
648801d1
DN
1918 Use const for some arrays and functions.
1919 * xterm.h (xg_set_icon_from_xpm_data):
1920 * xfns.c (xg_set_icon_from_xpm_data):
1921 * term.c (fkeys):
1922 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1923 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1924 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1925 (frame.c frame_parms):
1926 * emacs-icon.h (gnu_xpm_bits):
1927 * callint.c (callint_argfuns): Use const.
1928
8646d999
J
19292010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1930
1931 * sysdep.c: Move include term.h last of includes (Bug#6812).
1932
cb4545ad
EZ
19332010-08-06 Eli Zaretskii <eliz@gnu.org>
1934
1935 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1936
1937 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1938
1939 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1940
da7e2be6
JB
19412010-08-06 Juanma Barranquero <lekktu@gmail.com>
1942
1943 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1944
3d608a86
J
19452010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1946
7908fb60
J
1947 * xterm.h (x_get_focus_frame): Declare.
1948
1949 * keyboard.h (poll_for_input_1): Unconditionally declare.
1950
4094bf36
J
1951 * nsterm.h (x_set_menu_bar_lines): Declare.
1952
1953 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1954
3d608a86
J
1955 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1956
1957 * window.c: Include menu.h.
1958
1959 * unexmacosx.c (print_region_list, print_regions)
1960 (build_region_list, find_emacs_zone_regions)
1961 (unexec_regions_merge, read_load_commands, dump_it)
1962 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1963
1964 * term.c: Check HAVE_SYS_IOCTL_H.
1965
686b968e 1966 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1967
686b968e 1968 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1969
1970 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1971 (ns_ring_bell, ns_defined_color, hide_hourglass)
1972 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1973 Convert to ANSI C prototypes.
1974 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1975 before code.
1976
1977 * nsterm.h : Include sysselect.h.
1978 (x_sync, x_get_focus_frame, x_set_mouse_position)
1979 (x_set_mouse_pixel_position, x_make_frame_visible)
1980 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1981 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1982 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1983 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1984 Declare.
3d608a86
J
1985
1986 * nsmenu.m (popup_activated, name_is_separator)
1987 (syms_of_nsmenu): Convert to ANSI C prototypes.
1988 (runMenuAt): Prototypes and move declarations before code.
1989
1990 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1991
1992 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1993 prototypes.
1994
1995 * nsfns.m (have_menus_p, ns_display_info_for_name)
1996 (x_set_cursor_type, ns_appkit_version_str)
1997 (ns_appkit_version_int, ns_do_applescript)
1998 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1999 (syms_of_nsfns): Convert to ANSI C prototypes.
2000
2001 * menu.h (x_set_menu_bar_line): Declare.
2002 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
2003
2004 * lisp.h (fmod_float): Declare.
2005
2006 * image.c (xpm_scan, xpm_make_color_table_v)
2007 (xpm_put_color_table_v, xpm_get_color_table_v)
2008 (xpm_make_color_table_h, xpm_put_color_table_h)
2009 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
2010 (xpm_load): Convert to ANSI C prototypes.
2011
2012 * emacs.c: Include nsterm.h if HAVE_NS.
2013
2014 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
2015
fce70521
DN
20162010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2017
2018 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
2019 subprocesses, only MSDOS does not define HAVE_SOCKETS.
2020 (socket_options): Use const char* for name.
2021
a11889ab
JB
20222010-08-06 Juanma Barranquero <lekktu@gmail.com>
2023
2024 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
2025
2026 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
2027 Don't declare xmalloc_widget_value and digest_single_submenu.
2028
2029 * w32font.c (Qlatin): Remove declaration.
2030
2031 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
2032
c95b508f 2033 * dired.c (compile_pattern): Restore declaration.
a11889ab 2034
6254cdda
DN
20352010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
2036
04bab72c
DN
2037 Remove extern declarations in .c files, .h files have them.
2038 * data.c:
2039 * dired.c:
2040 * editfns.c:
2041 * filelock.c:
2042 * fns.c:
2043 * font.c:
2044 * fontset.c:
2045 * frame.c:
2046 * fringe.c:
2047 * ftfont.c:
2048 * gtkutil.c:
2049 * indent.c:
2050 * keyboard.c:
2051 * keymap.c:
2052 * lread.c:
2053 * menu.c:
2054 * print.c:
2055 * search.c:
2056 * sound.c:
2057 * window.c:
2058 * xdisp.c:
2059 * xfaces.c:
2060 * xfns.c:
2061 * xfont.c:
2062 * xftfont.c:
2063 * xmenu.c:
2064 * xterm.c: Remove declarations.
2065
dff94ed5
DN
2066 Cleanup syssignal.h.
2067 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
2068 (main_thread): Move down to remove #ifdef.
2069 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
2070 Remove conditional definition following unconditional ones.
2071
99f3388e
DN
2072 * lisp.h: Remove HAVE_SHM code, unused.
2073 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
2074 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
2075 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
2076 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
2077 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
2078 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
2079 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
2080 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
2081 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
2082 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
2083 (Qwindow_scroll_functions, Vafter_load_alist)
2084 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
2085 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
2086 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
2087 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
2088 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
2089 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
2090 (initial_argv, last_nonmenu_event, load_in_progress)
2091 (noninteractive_need_newline, scroll_margin): Add declarations.
2092
2093 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
2094 declarations, menu.h has them.
2095 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
2096 (Vinput_method_function, Qinput_method_function)
2097 (Qevent_symbol_element_mask, last_event_timestamp):
2098 * dispextern.h (Voverflow_newline_into_fringe):
2099 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
2100 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
2101 (syms_of_w32font, syms_of_nsfont):
2102 * fontset.h (find_font_encoding, Qlatin):
2103 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
2104 (Vtool_bar_mode, set_frame_menubar):
2105 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
2106 * xterm.h (Qx_gtk_map_stock):
2107 * keymap.h (meta_prefix_char): Add declarations.
2108
9f5dd6f2
DN
2109 * term.c: Remove dead code.
2110
6254cdda
DN
2111 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
2112 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
2113 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
2114 which is what was there before BSD_PGRPS was removed.
2115
29cf3e20
EZ
21162010-08-05 Eli Zaretskii <eliz@gnu.org>
2117
2118 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
2119
2120 * unexcoff.c: Renamed from unexec.c.
2121
aaa0a19a
SM
21222010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2123
2124 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
2125
8d1d9587
JB
21262010-08-03 Johan Bockgård <bojohan@gnu.org>
2127
2128 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 2129 (Bug#6744)
8d1d9587 2130
9a747ba6
JD
21312010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2132
4d464ae4
JD
2133 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
2134 to TRUE if depth of screen is < 16.
2135
ac01763e
JD
2136 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
2137 USE_GTK_TOOLTIP.
e0d62a9b
JB
2138 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
2139 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 2140 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
2141 USE_GTK_TOOLTIP.
2142 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
2143
2144 * xterm.h (USE_GTK_TOOLTIP): New define.
2145 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
2146
9a747ba6
JD
2147 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
2148 to Control-D (Bug#6771).
2149
7b0815ba
JB
21502010-08-02 Juanma Barranquero <lekktu@gmail.com>
2151
2152 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
2153 Wording by Drew Adams <drew.adams@oracle.com>.
2154
aa1859f5
J
21552010-08-01 Jan Djärv <jan.h.d@swipnet.se>
2156
2157 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
2158 ttip_lbl.
2159
2160 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
2161 calling gtk_widget_queue_draw.
2162 (x_free_frame_resources): Call xg_free_frame_widgets.
2163
2164 * xfns.c (x_gtk_use_system_tooltips): New variable.
2165 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
2166 new gtkutil tooltip functions to show the tooltip.
2167 (Fx_hide_tip): Call xg_hide_tooltip.
2168 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
2169
2170 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
2171 (xg_show_tooltip, xg_hide_tooltip): Declare.
2172
2173 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
2174 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
2175 New functions.
aa1859f5
J
2176 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
2177 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
2178 Remove code that is commented out.
2179
76417ef4
SM
21802010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
2181
2182 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
2183
16041401
CY
21842010-07-31 Chong Yidong <cyd@stupidchicken.com>
2185
2186 * xselect.c (x_own_selection): Use list4.
2187
2c09a58f
DN
21882010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2189
2190 * buffer.c (Qwindow): Do not define, already defined in data.c.
2191 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
2192
59df9fdd 21932010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 2194
59df9fdd
JB
2195 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2196 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2197 * config.in: Undef HAVE_DIRENT_H.
1c97e857 2198 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 2199 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 2200
1b231651
DN
22012010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2202
2203 Rename s/usg5-4.h -> s/usg5-4-common.h.
2204 * s/usg5-4.h: Rename file to ...
2205 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2206 * s/unixware.h:
2207 * s/sol2-6.h:
2208 * s/irix6-5.h: Update includes accordingly.
2209
bfeabdc3
JD
22102010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2211
2ebf1083
J
2212 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2213
bfeabdc3 2214 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
2215 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2216 Remove toolbar_height.
2217 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
2218 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2219 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2220 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2221
2222 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2223
2224 * xfns.c (x_set_tool_bar_position): New function.
2225 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2226 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 2227 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
2228
2229 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2230 and FRAME_TOOLBAR_LEFT_WIDTH.
2231
2232 * gtkutil.h (xg_change_toolbar_position): Declare.
2233
2234 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2235 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2236 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2237 (xg_create_frame_widgets): Create a hobox for placing widgets
2238 vertically. Use gtk_box_pack_start.
2239 (xg_height_or_width_changed): Renamed from xg_height_changed.
2240 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2241 (xg_update_frame_menubar, free_frame_menubar): Change to
2242 xg_height_or_width_changed.
2243 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2244 size correctly. Remove hardcoded 4, instead use handlebox size -
2245 toolbar size.
2246 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 2247 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
2248 (xg_pack_tool_bar): POS is a new parameter.
2249 Set orientation of tool bar based on pos.
2250 Only make handlebox_widget if NULL.
2251 Check if tool bar goes to vbox or hbox depending on pos.
2252 (xg_update_tool_bar_sizes): New function.
686b968e 2253 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
2254 height, call xg_update_tool_bar_sizes instead.
2255 (free_frame_tool_bar): Remove from hbox or vbox depending on
2256 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2257 (xg_change_toolbar_position): New function.
2258
2259 * frame.h (struct frame): Add tool_bar_position.
2260 (Qbottom): Declare.
2261
2262 * frame.c (Qtool_bar_position): New variable.
2263 (make_frame): Set tool_bar_position to Qtop.
2264 (frame_parms): Add tool-bar-position.
2265 (x_report_frame_params): Store tool_bar_position.
2266 (x_set_fringe_width): Reset wm size hint after fringe changes.
2267
26469a38
DN
22682010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2269
2270 Make lisp_time_argument declaration work on all systems.
2271 * lisp.h (lisp_time_argument): Move declaration ...
2272 * systime.h (lisp_time_argument): ... here
2273 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2274
8848b728
JD
22752010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2276
2277 * vm-limit.c (POINTER): Add typedef for it.
2278 (start_of_data): Change return type from POINTER to char *.
2279
2280 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2281 HAVE_WINDOW_SYSTEM.
2282
76fd1ee9
DN
22832010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2284
0441987e
DN
2285 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2286 Remove reference to __osf__, unused.
2287
56a000c7
DN
2288 * mem-limits.h: Remove duplicated includes.
2289 (NULL): Remove definition, unused.
2290 (POINTER): Remove definition.
2291 (start_of_data): Use char* in prototype, as the function
2292 definition does.
2293
e6cba650
DN
2294 Remove extern declarations from .c files, and them to .h files.
2295 * keyboard.h (Qhelp_echo, waiting_for_input)
2296 (input_available_clear_time, ignore_mouse_drag_p)
2297 (Vdouble_click_time, real_this_command, Vthis_original_command):
2298 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2299 (Voverriding_local_map_menu_flag):
2300 * lisp.h (Qinteractive_form, use_file_dialog)
2301 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2302 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2303 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2304 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2305 (Qfunction, debug_on_next_call, Qfield)
2306 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2307 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2308 (Qfile_directory_p, Qinsert_file_contents)
2309 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2310 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2311 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2312 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2313 (Qminibuffer_prompt)
2314 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2315 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2316 (gray_bitmap_bits, xic_create_fontsetname):
2317 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2318
2319 * xsmfns.c (Vuser_login_name):
2320 * xrdb.c (Vdouble_click_time):
2321 * xfaces.c (xic_create_fontsetname):
2322 * w32select.c (waiting_for_input):
2323 * print.c (minibuffer_auto_raise):
2324 * msdos.c (Qhelp_echo):
2325 * macros.c (real_this_command):
2326 * keymap.c (Voverriding_local_map):
2327 * xterm.c (poll_for_input_1, gray_bitmap_width)
2328 (gray_bitmap_height, gray_bitmap_bits;
2329 * xmenu.c ( Voverriding_local_map)
2330 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2331 (use_file_dialog, Xt_app_con):
2332 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2333 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2334 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2335 (Qtool_bar_lines, ignore_mouse_drag_p):
2336 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2337 (Qrear_nonsticky, nconc2):
2338 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2339 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2340 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2341 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2342 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2343 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2344 (gc_in_progress):
2345 * doc.c (Voverriding_local_map, Qremap):
2346 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2347 (Vcompletion_regexp_list):
2348 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2349 (Qcompletion_ignore_case):
2350 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2351 (Vhistory_length, Vthis_original_command, real_this_command)
2352 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2353 * image.c (Qrisky_local_variable):
2354 * fontset.c (QCname):
2355 * fns.c (minibuffer_auto_raise, QCname):
2356 * dispnew.c (char_ins_del_cost):
2357 * composite.c (font_fill_lglyph_metrics):
2358 * cmds.c (Qface, Vtranslation_table_for_input):
2359 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2360 * ccl.c (charset_unicode):
2361 * callproc.c (Vtemporary_file_directory):
2362 * buffer.c (emacs_strerror): Remove extern declarations.
2363
2364 * data.c (Qwindow): Make non-static, used from other files too.
2365 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2366
76fd1ee9
DN
2367 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2368 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2369 * s/usg5-4.h (COFF):
2370 * s/template.h:
2371 * s/msdos.h (COFF, NO_REMAP):
2372 * s/ms-w32.h (NO_REMAP):
2373 * s/hpux10-20.h (NO_REMAP):
2374 * m/sparc.h (SEGMENT_MASK):
2375 * m/m68k.h (NO_REMAP):
2376 * m/intel386.h (SEGMENT_MASK):
2377 * m/arm.h (NO_REMAP):
2378 * m/alpha.h (COFF):
2379 * m/template.h: Remove references to unused defines.
2380
8a52f00a
JD
23812010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2382
2383 * xsettings.c (Ftool_bar_get_system_style): Also check for
2384 Qtext_image_horiz.
2385
2386 * xdisp.c (Qtext_image_horiz): Define.
2387 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 2388 to documentation of tool-bar-style.
8a52f00a
JD
2389
2390 * lisp.h (Qtext_image_horiz): Declare.
2391
2392 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2393 style text_image_horiz.
2394
89dc303e
DN
23952010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2396
60799703
DN
2397 * emacs.c (Fkill_emacs): Remove return statement.
2398
37254dc1
DN
2399 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2400 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2401 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2402 local extern declarations.
2403
71c7345a
DN
2404 * xmenu.c: Do not included lwlib.h, not needed.
2405
6ba577cb
DN
2406 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2407
fdb183d6
DN
2408 * process.c: Move definitions earlier to minimize #ifdefs.
2409
2410 * xterm.h (x_get_customization_string, x_load_resources)
2411 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2412 (x_check_errors, x_property_data_to_lisp, defined_color)
2413 (xic_set_xfontset, x_defined_color): Use const.
2414
2415 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2416 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2417
2418 * xselect.c (selection_data_to_lisp_data)
2419 (x_property_data_to_lisp):
2420 * xrdb.c (x_get_string_resource, file_p)
2421 (x_get_customization_string, magic_file_p, search_magic_path)
2422 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2423 (x_get_string_resource): Use const.
2424
2425 * xfns.c: Include xlwmenu.h when USE_LUCID.
2426 (x_defined_color, xic_set_xfontset): Use const.
2427 (Fx_hide_tip): Remove local extern declaration.
2428
2429 * xfaces.c (Qmouse_face): Remove declaration.
2430 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 2431 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
2432
2433 * xdisp.c (do_mouse_tracking): Remove declaration.
2434 (add_to_log): Use const.
2435
2436 * minibuf.c (Qmouse_face): Remove declaration.
2437
2438 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2439
2440 * keyboard.h (do_mouse_tracking): Add declaration.
2441
2442 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2443 (QCdata, QCtype, Qcenter): Remove declarations.
2444
2445 * frame.c (x_get_resource_string, x_get_string_resource)
2446 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2447 (x_default_parameter): Use const.
2448
2449 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2450 (QCheight, QCsize, QCname): Remove declarations.
2451
2452 * emacs.c (main): Remove local extern declaration.
2453
2454 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2455 declarations.
2456
2457 * dispnew.c: Remove duplicate #include <unistd.h>.
2458 (update_window, update_frame_1, init_display): Remove local extern
2459 declarations.
2460
2461 * dispextern.h (add_to_log): Remove declaration.
2462 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2463 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2464
2465 * dired.c (scmp): Add const.
2466 (directory_files_internal): Remove local extern declaration.
2467
2468 * data.c (Finteractive_form): Use const.
2469
2470 * composite.c (syms_of_composite): Remove local extern declarations.
2471
2472 * charset.c (add_to_log): Remove declaration.
2473
2474 * character.c (strwidth, parse_str_to_multibyte): Add const.
2475
2476 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2477
2478 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2479
89dc303e 2480 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
2481 (Lisp_Subr): Make doc and intspec constant.
2482 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2483 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2484 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2485 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2486 (display_arg): Add declarations.
89dc303e 2487
0ed082fe 24882010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
2489
2490 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2491
0ed082fe
JB
2492 * window.c (Fwindow_height): Doc fix (bug#6518).
2493
24942010-07-27 Juanma Barranquero <lekktu@gmail.com>
2495
2496 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2497
ccaf0336
DN
24982010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2499
977105dc
DN
2500 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2501 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2502 functions.
2503
f5ada890
DN
2504 * frame.h (Qtty_color_mode): Add declaration.
2505
ccaf0336
DN
2506 * lisp.h (Ftop_level, Fexit_recursive_edit)
2507 (Fabort_recursive_edit): Mark as NO_RETURN.
2508
dfe3c90f
KH
25092010-07-26 Kenichi Handa <handa@m17n.org>
2510
2511 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 2512 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 2513
7d383292
JB
25142010-07-26 Juanma Barranquero <lekktu@gmail.com>
2515
2516 * lread.c (unreadpure, mapatoms_1): Make static.
2517
da31e629
JB
25182010-07-25 Juanma Barranquero <lekktu@gmail.com>
2519
2520 * terminfo.c (tparam): Fix prototype of tparm.
2521
7bfa6d77
AS
25222010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2523
dcc19aac
AS
2524 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2525 find start of text segment.
2526 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2527 is defined.
2528
7bfa6d77
AS
2529 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2530
63f9a672
KB
25312010-07-25 Ken Brown <kbrown@cornell.edu>
2532
2533 * vm-limit.c (check_memory_limits): Fix previous change;
2534 accidentally reverted an earlier change.
2535
24933075
KB
25362010-07-25 Ken Brown <kbrown@cornell.edu>
2537
2538 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2539 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2540
361358ea
JB
25412010-07-25 Juanma Barranquero <lekktu@gmail.com>
2542
2543 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2544 * dired.c (opendir, readdir): Fix prototypes.
2545 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2546 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2547 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2548 (telldir): Remove declaration.
2549 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2550 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2551 * syssignal.h (strsignal): Fix prototype.
2552 * term.c (tparam): Fix prototype.
2553 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2554 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2555 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2556 and __morecore.
2557 * w32gui.h (XParseGeometry): Fix prototype.
2558 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2559 * w32term.c (my_set_focus): Declare inside #if 0.
2560 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2561 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2562 (drain_message_queue, get_next_msg, post_msg, parse_button)
2563 (ClipboardSequence_Proc): Fix prototypes.
2564 (wait_for_sync): Remove declaration.
2565
630b9592
JB
25662010-07-24 Juanma Barranquero <lekktu@gmail.com>
2567
2568 * w32fns.c (w32_to_x_color): Remove, unused.
2569
6a0d6611
AS
25702010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2571
2572 * lisp.h: Remove leftover P_.
2573
4e8608ff
DN
25742010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2575
2576 * ecrt0.c, unexalpha.c: Remove files, unused.
2577
c8197983
AS
25782010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2579
2580 * cmds.c (internal_self_insert): Make static.
2581 * lisp.h (internal_self_insert): Remove declaration.
2582
97b372d7
JB
25832010-07-23 Juanma Barranquero <lekktu@gmail.com>
2584
33ac0414
JB
2585 * alloc.c (free_float):
2586 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2587 * frame.c (delete_frame_handler):
2588 * ralloc.c (reorder_bloc):
2589 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2590 Remove unused static functions.
2591
94da8397
JB
2592 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2593 it is called only from NS code.
2594
2e6c8532
JB
2595 * w32term.c (my_set_focus): #ifdef away; it is called only from
2596 "#ifdef 0" code.
2597
97b372d7
JB
2598 * w32fns.c (x_edge_detection):
2599 * xfaces.c (may_use_scalable_font_p):
2600 Remove obsolete static declarations.
2601
7c3320d8
JB
26022010-07-20 Juanma Barranquero <lekktu@gmail.com>
2603
2604 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2605 (emacs_blocked_realloc, uninterrupt_malloc):
2606 * fringe.c (w32_reset_fringes):
2607 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2608 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2609 * sound.c (be2hs, do_play_sound):
2610 * vm-limit.c (get_lim_data, ret_lim_data):
2611 * w32term.c (x_free_frame_resources):
2612 * xfaces.c (x_create_gc, x_free_gc):
2613 Convert definitions to standard C.
2614
d5273788
SM
26152010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2616
2617 * eval.c (Feval, Ffuncall): Use the new names.
2618
2619 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2620 (DEFUN): Add braces around the union initialisation and use ## to
2621 specify the right union alternative and avoid a cast.
2622
8d16a259
JB
26232010-07-18 Juanma Barranquero <lekktu@gmail.com>
2624
2625 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2626
3b8eff32
CY
26272010-07-17 Chong Yidong <cyd@stupidchicken.com>
2628
2629 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2630
499322ce
J
26312010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2632
2633 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2634 is related to the menu bar (Bug#6499).
a628ad9d 2635 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 2636
f6003da5 26372010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
2638
2639 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2640
2641 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2642
2643 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2644 i.e. don't put back ButtonRelease (Bug#6608).
2645
2646 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2647 instead of Window. Call xg_event_is_for_menubar when
2648 USE_GTK (Bug#6499).
2649
2650 * gtkutil.h (xg_event_is_for_menubar): Declare.
2651
2652 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2653
f6003da5 26542010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
2655
2656 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2657 when it's the same as the old foreground. (Bug#6609)
2658
23243f29
J
26592010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2660
2661 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2662 widget is non-null (Bug#6645).
2663
2b23d2a6
AS
26642010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2665
01b564ff
AS
2666 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2667 Convert old-style definition.
2668
2b23d2a6
AS
2669 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2670 timestamp argument.
2671
c4affd2c
EZ
26722010-07-15 Eli Zaretskii <eliz@gnu.org>
2673
2674 * fringe.c (update_window_fringes): Restore mistakenly reverted
2675 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2676
cf28cebc
J
26772010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2678
2679 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2680 (SET_SAVED_KEY_EVENT): Remove (not used).
2681 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2682 remove size parameter.
2683 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2684 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2685 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2686 ButtonRelease.
6b2c4bd9
J
2687 (x_set_window_size_1): scroll_bar_actual_width is always
2688 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2689
2690 * xdisp.c (pending_menu_activation): Remove extern declaration.
2691 (prepare_menu_bars): Remove setting of pending_menu_activation.
2692
2693 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2694 (x_activate_menubar): Set popup_activated_flag for Xt also.
2695 Remove setting of pending_menu_activation.
cf28cebc
J
2696 (set_frame_menubar): Remove check of pending_menu_activation.
2697 Declare menubar_size before code. Correct spelling in comment.
2698
f6c1c771
KH
26992010-07-14 Kenichi Handa <handa@m17n.org>
2700
2701 * font.c (font_open_entity): Cancel previous change.
2702 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2703
20477505
EZ
27042010-07-13 Eli Zaretskii <eliz@gnu.org>
2705
77defa9a
EZ
2706 Remove subprocesses #ifdefs.
2707 * process.c <inhibit_sentinels>: Move to the common part.
2708 (Fwaiting_for_user_input_p): Move to the common part; return nil
2709 if async subprocesses aren't supported.
2710 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2711 MS-DOS. Remove "#ifdef subprocesses".
2712 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2713 (gettimeofday): Remove "#ifdef subprocesses".
2714 (wait_without_blocking): Remove function.
2715 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2716 Remove "#ifdef subprocesses".
2717 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2718 compiled on MS-DOS.
2719 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2720 wait_for_termination on MS-DOS.
2721 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2722 initialization of inhibit_sentinels.
2723 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2724 subprocesses" conditional.
2725 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2726 wait_for_termination, since `buffer' cannot be an integer when
2727 async subprocesses are not supported
2728 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2729 for ifdefing away the call to Fprocess_status.
2730
20477505
EZ
2731 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2732 away the entire body of the function.
2733
b3ffc17c
DN
27342010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2735
01faa934
DN
2736 Remove subprocesses #ifdefs from term.c.
2737 * process.c (add_keyboard_wait_descriptor)
2738 (delete_keyboard_wait_descriptor): Move to common section, do
2739 nothing when subprocesses is not defined.
a628ad9d
JB
2740 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2741 Remove subprocesses #ifdefs.
01faa934 2742
b3ffc17c
DN
2743 Convert maybe_fatal to standard C.
2744 * lisp.h (verror): Declare.
2745 * eval.c (verror): New function containing the code from ...
2746 (error): ... this. Call verror.
2747 * term.c (vfatal): New function containing the code from ...
2748 (fatal): ... this. Call vfatal.
2749 (maybe_fatal): Convert to standard C, use variable number of
2750 arguments. Declare as non-return.
2751 (init_tty): Fix maybe_fatal call.
2752
0521f580
DN
27532010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2754
2755 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2756 (_scroll_bar_note_movement): Convert definitions to standard C.
2757 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2758 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2759
ebd15611
DN
27602010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2761
2762 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2763 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2764 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2765 (xaw_jump_callback, xaw_scroll_callback)
2766 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2767 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2768 definitions to standard C.
2769 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2770 (popup_activate_callback, popup_deactivate_callback)
2771 (menu_highlight_callback, menubar_selection_callback)
2772 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2773 (free_frame_menubar, popup_selection_callback, as)
2774 (create_and_show_popup_menu, dialog_selection_callback)
2775 (create_and_show_dialog):
2776 * xfns.c (hack_wm_protocols, x_window):
2777 * xfaces.c (x_update_menu_appearance):
2778 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2779 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2780 (set_frame_size, update_wm_hints, setup_frame_gcs)
2781 (update_various_frame_slots, update_from_various_frame_slots)
2782 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2783 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2784 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2785
de06a2dd
AS
27862010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2787
a628ad9d 2788 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2789
fc549af9
EZ
27902010-07-12 Eli Zaretskii <eliz@gnu.org>
2791
2792 * process.c (setup_process_coding_systems): Move to the part
2793 shared by non-subprocesses systems, and make its body empty when
2794 subprocesses is not defined.
2795 (close_process_descs): Move to the part shared by non-subprocesses
2796 systems.
1408902e
EZ
2797 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2798 ANSI C.
fc549af9 2799
d5a3eaaf
AS
28002010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2801
2802 * editfns.c (transpose_markers): Convert old-style definition.
2803 * emacs.c (abort, shut_down_emacs, fixup_locale)
2804 (synchronize_system_time_locale)
2805 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2806 * floatfns.c (extract_float, matherr, init_floatfns)
2807 (syms_of_floatfns): Likewise.
2808 * fns.c (make_hash_table): Likewise.
2809 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2810 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2811 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2812 (ftfont_variation_glyphs): Likewise.
2813 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2814 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2815 * lread.c (read_filtered_event): Likewise.
2816 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2817 * process.c (wait_reading_process_output): Likewise.
2818 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2819 * search.c (search_buffer, boyer_moore): Likewise.
2820 * syntax.c (scan_sexps_forward): Likewise.
2821 * xdisp.c (try_scrolling): Likewise.
2822 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2823 (face_at_string_position): Likewise.
2824 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2825 * xselect.c (x_get_window_property, receive_incremental_selection)
2826 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2827 Likewise.
2828 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2829
6f704c76
DN
28302010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2831
ded80a25
DN
2832 * callproc.c (child_setup): Remove subprocesses conditional.
2833 Remove code dealing with SET_EMACS_PRIORITY, unused.
2834
49d937f4 2835 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2836 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2837
2838 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2839 (__do_global_dtors, __main): Use void in definition.
2840 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2841 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2842 the only users from ...
2843 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2844 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2845 (HAVE_VOLATILE): Remove, unused.
2846
6f704c76
DN
2847 Convert more function definitions to standard C.
2848 * xdisp.c (window_box_edges, handle_single_display_spec)
2849 (display_string): Convert definition to standard C.
2850 * scroll.c (do_direct_scrolling, scrolling_1):
2851 * dispnew.c (allocate_matrices_for_frame_redisplay)
2852 (mirrored_line_dance):
2853 * coding.c (code_convert_string):
2854 * charset.c (map_charset_chars):
2855 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2856 (Fregister_ccl_program, Fregister_code_conversion_map):
2857 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2858 (head_table): Make static and const.
2859
e6cfa7c3
AS
28602010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2861
2862 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2863 (PROFILING_LDFLAGS): Set from substitution.
2864 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2865 CFLAGS last.
2866
892dd565
KH
28672010-07-12 Kenichi Handa <handa@m17n.org>
2868
6f2cdcd1
KH
2869 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2870 (shortlisp): Likewise.
2871
892dd565
KH
2872 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2873
2874 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2875 of FONT_ENTITY_INDEX.
2876 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2877 property, get the property value dynamically.
2878 (Ffont_put): Accept font-entity and font-object too.
2879 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2880 return value changed.
2881 (syms_of_font): Adjusted for the above change.
2882
ae96d47a
AS
28832010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2884
c8fc18ee
AS
2885 * blockinput.h: Remove obsolete comment.
2886
89887d67
AS
2887 * lisp.h: Include <stddef.h>.
2888 (OFFSETOF): Don't define.
2889 (VECSIZE): Use offsetof instead of OFFSETOF.
2890 (PSEUDOVECSIZE): Likewise.
2891 * process.c (conv_sockaddr_to_lisp): Likewise.
2892 * alloc.c: Don't include <stddef.h>.
2893 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2894
ae96d47a
AS
2895 * process.c: Remove obsolete comment.
2896
635c0aa1
CY
28972010-07-11 Chong Yidong <cyd@stupidchicken.com>
2898
2899 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2900
a64df650
AS
29012010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2902
8966b757
AS
2903 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2904 index, rindex.
2905 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2906 * editfns.c (Fuser_full_name, Fformat): Likewise.
2907 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2908 * fileio.c (Ffile_symlink_p): Likewise.
2909 * filelock.c (current_lock_owner): Likewise.
2910 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2911 * fontset.c (fontset_pattern_regexp): Likewise.
2912 * lread.c (read1): Likewise.
2913 * sysdep.c (init_system_name): Likewise.
2914 * xfns.c (select_visual): Likewise.
2915 * s/hpux10-20.h (index, rindex): Don't define.
2916 * s/ms-w32.h (index): Likewise.
2917 * s/usg5-4.h: Likewise.
2918
cf237e27
AS
2919 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2920
a8fe7202
AS
2921 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2922 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2923 (egetenv): Likewise.
2924 * doprnt.c (doprnt): Likewise.
2925 * editfns.c (set_time_zone_rule, format2): Likewise.
2926 * emacs.c (decode_env_path): Likewise.
2927 * eval.c (signal_error, error): Likewise.
2928 * insdel.c (replace_range_2): Likewise.
2929 * keyboard.c (cmd_error_internal): Likewise.
2930 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2931 * print.c (write_string, write_string_1, print_error_message):
2932 Likewise.
2933 * vm-limit.c (warn_function, memory_warnings): Likewise.
2934 * xdisp.c (message1, message1_nolog, message_with_string)
2935 (vmessage, message, message_nolog): Likewise.
2936 * emacs.c: Remove duplicate declaration.
2937 * keyboard.h: Likewise.
2938 * lisp.h: Update prototypes.
2939
bb8e180f
AS
2940 * eval.c: Fix indentation problem.
2941
83380e65
AS
2942 * keyboard.c: Include "process.h"
2943
a64df650
AS
2944 * eval.c: Remove obsolete noinline declaration.
2945 * fns.c: Likewise.
2946
6a8033e1
KR
29472010-07-11 Ken Raeburn <raeburn@raeburn.org>
2948
2949 * doprnt.c (doprnt): Take a va_list argument instead of count and
2950 pointer.
2951 * eval.c (error): Change to a standard-C variadic function.
2952 * xdisp.c (vmessage): Renamed from message, made static, and
2953 changed to take a va_list argument.
2954 (message): New variadic wrapper.
2955 (message_nolog): Now a variadic function, calling vmessage.
2956 * lisp.h: Include stdarg.h for va_list.
2957 (doprnt, error, message, message_nolog): Decls updated.
2958
462aa963
EZ
29592010-07-11 Eli Zaretskii <eliz@gnu.org>
2960
2961 * process.c (syms_of_process) <delete-exited-processes>: Define
2962 even if !subprocesses.
2963 (delete_exited_processes): Ditto.
2964
2965 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2966 (delete_exited_processes): Don't define.
2967
48104462
CY
29682010-07-10 Chong Yidong <cyd@stupidchicken.com>
2969
2970 * frame.c (make_frame): Initialize menu_bar_lines and
2971 tool_bar_lines members.
2972 (make_initial_frame, make_terminal_frame): Initialize
2973 menu_bar_lines using value of menu-bar-mode.
2974
2975 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2976
f388c88a
EZ
29772010-07-10 Eli Zaretskii <eliz@gnu.org>
2978
2979 * process.c: Reshuffle #include's. Condition some of the global
2980 and static variables on `subprocesses'.
2981 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2982 Leave only one implementation.
2983 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2984 (kill_buffer_processes, Flist_system_processes)
2985 (Fprocess_attributes, init_process, syms_of_process): Unify the
2986 implementations for with subprocesses and without them.
2987
723f5a07
J
29882010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2989
2990 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2991 correct size for Motif.
2992 (free_frame_menubar): Call x_set_window_size to update frame size.
2993
2994 * xfns.c (x_window): Set borderWidth to 0 for pane and
2995 EmacsFrame. Frame size calculation is wrong otherwise.
2996
2536a4b7
MA
29972010-07-09 Michael Albinus <michael.albinus@gmx.de>
2998
2999 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
3000 allows to suppress errors when polling in Emacs' main loop.
3001 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
3002 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3003 (Fdbus_method_error_internal, Fdbus_send_signal)
3004 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
3005 (Fdbus_register_method): Use it. (Bug#6579)
3006
5842a27b
DN
30072010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3008
3009 * alloc.c: Convert DEFUNs to standard C.
3010 * buffer.c:
3011 * bytecode.c:
3012 * callint.c:
3013 * callproc.c:
3014 * casefiddle.c:
3015 * casetab.c:
3016 * category.c:
3017 * character.c:
3018 * charset.c:
3019 * chartab.c:
3020 * cmds.c:
3021 * coding.c:
3022 * composite.c:
3023 * data.c:
3024 * dbusbind.c:
3025 * dired.c:
3026 * dispnew.c:
3027 * doc.c:
3028 * dosfns.c:
3029 * editfns.c:
3030 * emacs.c:
3031 * eval.c:
3032 * fileio.c:
3033 * filelock.c:
3034 * floatfns.c:
3035 * fns.c:
3036 * font.c:
3037 * fontset.c:
3038 * frame.c:
3039 * fringe.c:
3040 * image.c:
3041 * indent.c:
3042 * insdel.c:
3043 * keyboard.c:
3044 * keymap.c:
3045 * lread.c:
3046 * macros.c:
3047 * marker.c:
3048 * menu.c:
3049 * minibuf.c:
3050 * msdos.c:
3051 * nsfns.m:
3052 * nsmenu.m:
3053 * nsselect.m:
3054 * print.c:
3055 * process.c:
3056 * search.c:
3057 * sound.c:
3058 * syntax.c:
3059 * term.c:
3060 * terminal.c:
3061 * textprop.c:
3062 * undo.c:
3063 * w16select.c:
3064 * w32console.c:
3065 * w32fns.c:
3066 * w32font.c:
3067 * w32menu.c:
3068 * w32proc.c:
3069 * w32select.c:
3070 * window.c:
3071 * xdisp.c:
3072 * xfaces.c:
3073 * xfns.c:
3074 * xmenu.c:
3075 * xselect.c:
3076 * xsettings.c:
3077 * xsmfns.c: Likewise.
3078
d568829b
EZ
30792010-07-08 Eli Zaretskii <eliz@gnu.org>
3080
3081 * process.c (kbd_is_on_hold, hold_keyboard_input)
3082 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
3083
52214050
J
30842010-07-08 Jan Djärv <jan.h.d@swipnet.se>
3085
3086 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
3087 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
3088 unless USE_LUCID.
3089
313d9eb2
DN
30902010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3091
a628ad9d
JB
3092 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
3093 declaration.
d8825aa3 3094
295d0d8f
DN
3095 Clean up include guards.
3096 * tparam.c: Remove include guards for config.h, string.h and code
3097 that assumes #ifndef emacs.
3098 * termcap.c:
3099 * unexalpha.c:
3100 * sysdep.c:
3101 * filemode.c:
3102 * filelock.c:
3103 * bidi.c: Likewise.
3104
49d9e6b0
DN
3105 Remove prefix-args.c
3106 * prefix-args.c: Remove file.
3107 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
3108 * Makefile.in (temacs${EXEEXT}): Remove references to
3109 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
3110 (mostlyclean): Remove reference to prefix-args.
3111 (prefix-args): Remove.
3112
313d9eb2
DN
3113 Simplify cstart_of_data, start_of_code and related code.
3114 * mem-limits.h: Remove !emacs and _LIBC conditional code.
3115 (start_of_data): Merge into start_of_data function.
3116 * sysdep.c (start_of_text): Remove. Move simplified versions of
3117 it in the only users: unexaix.c and unexec.c.
3118 (read_input_waiting): Remove local declaration of quit_char.
3119 (start, etext): Remove declarations.
3120 (start_of_data): Merge with the version in mem-limits.h and move
3121 to vm-limits.c.
3122 * vm-limit.c (start_of_data): Merged and simplified version of the
3123 code formerly in mem-limits.h and sysdep.c.
3124 * unexec.c (start): New declaration, moved from sysdep.c.
3125 (start_of_text): Simplified version of the code formerly in sysdep.c.
3126 * unexaix.c (start_of_text): Simplified version of the code
3127 formerly in sysdep.c.
3128 * m/alpha.h (HAVE_TEXT_START): Remove.
3129 (TEXT_START): Move ...
3130 * unexalpha.c (TEXT_START): ... here.
3131 * s/hpux10-20.h (TEXT_START): Remove.
3132 * s/darwin.h (TEXT_START):
3133 * m/mips.h (TEXT_START):
3134 * m/macppc.h (HAVE_TEXT_START):
3135 * m/m68k.h (TEXT_START):
3136 * m/iris4d.h (TEXT_START):
3137 * m/intel386.h (TEXT_START):
3138 * m/ibmrs6000.h (TEXT_START):
3139 * m/ia64.h (HAVE_TEXT_START):
3140 * s/msdos.h (TEXT_START): Likewise.
3141
72af86bd
AS
31422010-07-07 Andreas Schwab <schwab@linux-m68k.org>
3143
3144 * alloc.c (overrun_check_malloc, overrun_check_realloc)
3145 (overrun_check_free, xstrdup, allocate_string)
3146 (allocate_string_data, compact_small_strings, Fmake_string)
3147 (make_unibyte_string, make_multibyte_string)
3148 (make_string_from_bytes, make_specified_string, make_float)
3149 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
3150 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
3151 memcpy, memmove, memset, memcmp.
3152 * atimer.c (start_atimer, set_alarm): Likewise.
3153 * buffer.c (clone_per_buffer_values, report_overlay_modification)
3154 (mmap_realloc, init_buffer_once): Likewise.
3155 * callint.c (Fcall_interactively): Likewise.
3156 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
3157 (getenv_internal_1): Likewise.
3158 * casefiddle.c (casify_object): Likewise.
3159 * ccl.c (ccl_driver): Likewise.
3160 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
3161 * charset.c (load_charset_map_from_file)
3162 (load_charset_map_from_file, load_charset_map_from_vector)
3163 (Fdefine_charset_internal): Likewise.
3164 * cm.c (Wcm_clear): Likewise.
3165 * coding.c (decode_eol, decode_coding_object)
3166 (Fset_coding_system_priority, make_subsidiaries): Likewise.
3167 * data.c (Faset): Likewise.
3168 * dired.c (directory_files_internal, file_name_completion_stat):
3169 Likewise.
3170 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
3171 (clear_glyph_row, copy_row_except_pointers)
3172 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
3173 (save_current_matrix, restore_current_matrix)
3174 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
3175 (mirror_line_dance, scrolling_window): Likewise.
3176 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
3177 Likewise.
3178 * doprnt.c (doprnt): Likewise.
3179 * editfns.c (Fuser_full_name, make_buffer_string_both)
3180 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
3181 * emacs.c (sort_args): Likewise.
3182 * eval.c (Fapply, Ffuncall): Likewise.
3183 * fileio.c (Ffile_name_directory, make_temp_name)
3184 (Fexpand_file_name, search_embedded_absfilename)
3185 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
3186 (auto_save_error): Likewise.
3187 * fns.c (Fstring_equal, Fcopy_sequence, concat)
3188 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
3189 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3190 (Fmake_hash_table): Likewise.
3191 * fringe.c (Fdefine_fringe_bitmap): Likewise.
3192 * ftfont.c (ftfont_text_extents): Likewise.
3193 * getloadavg.c (getloadavg): Likewise.
3194 * image.c (define_image_type, make_image, make_image_cache)
3195 (x_create_x_image_and_pixmap, xbm_image_p)
3196 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3197 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3198 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3199 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3200 (tiff_image_p, tiff_read_from_memory, gif_image_p)
3201 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3202 Likewise.
3203 * indent.c (scan_for_column, compute_motion): Likewise.
3204 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3205 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3206 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3207 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3208 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3209 (store_user_signal_events, menu_bar_items, tool_bar_items)
3210 (process_tool_bar_item, append_tool_bar_item)
3211 (read_char_minibuf_menu_prompt, read_key_sequence)
3212 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3213 Likewise.
3214 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3215 Likewise.
3216 * lisp.h (STRING_COPYIN): Likewise.
3217 * lread.c (Fload, read1, oblookup): Likewise.
3218 * msdos.c (Frecent_doskeys): Likewise.
3219 * nsfns.m (Fx_create_frame): Likewise.
3220 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3221 Likewise.
3222 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3223 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3224 Likewise.
3225 * nsmenu.m (ns_update_menubar): Likewise.
3226 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3227 * print.c (print_unwind, printchar, strout, print_string)
3228 (print_error_message): Likewise.
3229 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3230 (Fmake_network_process, Fnetwork_interface_list)
3231 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3232 (init_process): Likewise.
3233 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3234 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3235 Likewise.
3236 * scroll.c (do_scrolling, do_direct_scrolling)
3237 (scrolling_max_lines_saved): Likewise.
3238 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3239 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3240 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3241 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3242 (emacs_set_tty): Likewise.
3243 * term.c (encode_terminal_code, calculate_costs)
3244 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3245 Likewise.
3246 * termcap.c (tgetst1, gobble_line): Likewise.
3247 * termhooks.h (EVENT_INIT): Likewise.
3248 * tparam.c (tparam1): Likewise.
3249 * unexalpha.c (unexec): Likewise.
3250 * unexec.c (write_segment): Likewise.
3251 * unexmacosx.c (unexec_write_zero): Likewise.
3252 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3253 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3254 * w32font.c (w32font_list_family, w32font_text_extents)
3255 (w32font_list_internal, w32font_match_internal)
3256 (w32font_open_internal, compute_metrics, Fx_select_font):
3257 Likewise.
3258 * w32menu.c (set_frame_menubar, add_menu_item)
3259 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3260 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3261 * w32uniscribe.c (uniscribe_list_family): Likewise.
3262 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3263 * window.c (make_window, replace_window, set_window_buffer)
3264 (Fsplit_window): Likewise.
3265 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3266 (add_to_log, message3, x_consider_frame_title)
3267 (append_space_for_newline, extend_face_to_end_of_line)
3268 (decode_mode_spec_coding, init_glyph_string): Likewise.
3269 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3270 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3271 (face_attr_equal_p, make_realized_face, make_face_cache)
3272 (free_realized_faces, lookup_named_face, smaller_face)
3273 (face_with_height, lookup_derived_face)
3274 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3275 (Finternal_set_font_selection_order, realize_default_face)
3276 (compute_char_face, face_at_buffer_position)
3277 (face_for_overlay_string, face_at_string_position, merge_faces):
3278 Likewise.
3279 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3280 (Fx_window_property, x_create_tip_frame)
3281 (Fx_backspace_delete_keys_p): Likewise.
3282 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3283 (xfont_text_extents): Likewise.
3284 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3285 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3286 * xselect.c (x_queue_event, x_get_window_property)
3287 (receive_incremental_selection): Likewise.
3288 * xsmfns.c (x_session_check_input): Likewise.
3289 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3290 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3291 Likewise.
3292 * character.h (BCOPY_SHORT): Removed.
3293 * config.in: Regenerate.
3294 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3295 * emacs.c (main) [PROFILING]: Don't declare
3296 dump_opcode_frequencies.
3297 * lisp.h (safe_bcopy): Remove declaration.
3298 (memset) [!HAVE_MEMSET]: Declare.
3299 (memcpy) [!HAVE_MEMCPY]: Likewise.
3300 (memmove) [!HAVE_MEMMOVE]: Likewise.
3301 (memcmp) [!HAVE_MEMCMP]: Likewise.
3302 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3303 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3304 Don't define.
3305 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3306 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3307 (BCOPY_DOWNWARD_SAFE): Don't define.
3308 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3309 (memcpy) [!HAVE_MEMCPY]: Define.
3310 (memmove) [!HAVE_MEMMOVE]: Define.
3311 (memcmp) [!HAVE_MEMCMP]: Define.
3312
cb768704
J
33132010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3314
3315 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
3316 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3317 New functions.
cb768704
J
3318 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3319 select on empty input mask.
3320 (init_process): Initialize kbd_is_on_hold to 0.
3321
3322 * process.h (hold_keyboard_input, unhold_keyboard_input)
3323 (kbd_on_hold_p): Declare.
3324
3325 * keyboard.c (input_available_signal): Declare.
3326 (kbd_buffer_nr_stored): New function.
3327 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3328 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3329 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3330 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3331 (tty_read_avail_input): If input is on hold, return.
3332 Don't read more that free slots in kbd_buffer (Bug#6571).
3333
3a8ce822
EZ
33342010-07-07 Eli Zaretskii <eliz@gnu.org>
3335
3336 * msdos.h:
3337 * msdos.c:
3338 * dosfns.c:
3339 * w16select.c: Convert function definitions to ANSI C.
3340
a628ad9d
JB
3341 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3342 Remove unused prototypes.
3a8ce822 3343
cf84bb53
JB
33442010-07-07 Juanma Barranquero <lekktu@gmail.com>
3345
3346 * coding.c, sysdep.c: Convert some more functions to standard C.
3347
1a4990fb
JB
33482010-07-07 Juanma Barranquero <lekktu@gmail.com>
3349
3350 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3351 (encode_coding_object): Use SPECPDL_INDEX.
3352 (syms_of_coding): Use DOS_NT.
3353
c0f2f16b
DN
33542010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3355
48fb6855
DN
3356 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3357
c0f2f16b
DN
3358 Make the function member of Lisp_Subr use standard C prototypes.
3359 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3360 (DECL_ALIGN): Add a cast for the function.
3361 * eval.c (Feval, Ffuncall): Use the proper type for each type
3362 function call.
3363
67aecef9
CY
33642010-07-06 Chong Yidong <cyd@stupidchicken.com>
3365
3366 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3367 fringe face id, so face-remapping-alist works (Bug#6091).
3368
b56ceb92
JB
33692010-07-06 Juanma Barranquero <lekktu@gmail.com>
3370
3371 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3372 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3373 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3374
7af07b96
AS
33752010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3376
3377 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3378 * lisp.h: Declare x_get_keysym_name.
3379 * keyboard.c (modify_event_symbol): Don't declare
3380 x_get_keysym_name here.
3381
69e24e34
DN
33822010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3383
3384 * ecrt0.c: Revert conversion to standard C.
3385
d3da34e0 33862010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
3387
3388 * vm-limit.c (memory_warnings):
3389 * keyboard.c (modify_event_symbol):
3390 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3391 (round2, emacs_rint):
3392 * process.c (send_process, old_sigpipe): Convert function
3393 definitions and declarations to standard C.
3394
33952010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
3396
3397 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3398 * xdisp.c: Convert function definitions to standard C.
3399
3400 * cm.c (cmputc): Arg C is now int, not char.
3401 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3402
00be444c
J
34032010-07-05 James Cloos <cloos@jhcloos.com>
3404
3405 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3406
3407 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3408 _NET_WM_ICON_NAME atoms.
3409
3410 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3411 and _NET_WM_ICON_NAME properties, too, matching what is
3412 done in the Gtk+ case.
3413
e4c8d29a
J
34142010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3415
ff919460
J
3416 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3417
e4c8d29a
J
3418 * xsmfns.c (SSDATA): New macro.
3419 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3420 passed to strlen/strcpy/strcat.
3421 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 3422 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
3423
3424 * xsettings.c (something_changedCB, parse_settings)
3425 (apply_xft_settings): Reformat prototype.
3426 (something_changedCB, init_gconf): Remove unused variable i.
3427 (read_settings): Remove unused variable long_len.
3428
3429 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3430 (xg_get_image_for_pixmap, create_dialog)
3431 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3432 (menuitem_highlight_callback, make_menu_item)
3433 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3434 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3435 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3436 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3437 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3438 (xg_tool_bar_item_expose_callback): Reformat prototype.
3439 (xg_update_menubar): GList *group => GSList *group.
3440 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3441 before use.
3442 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3443 to GTK_IMAGE (wimage).
3444
dd4c5104
DN
34452010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3446
898b4c5c
DN
3447 * atimer.c: Use "" instead of <> for local includes for
3448 consistency with the rest of the code.
3449
dd4c5104
DN
3450 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3451 * xrdb.c (get_system_name):
3452 * window.c (shrink_windows):
3453 * syntax.c (forw_comment):
3454 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3455 (ins_del_costs):
3456 * mem-limits.h (start_of_data):
3457 * lread.c (readevalloop):
3458 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3459 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3460 * frame.c (x_get_focus_frame):
3461 * floatfns.c (fmod_float):
3462 * fileio.c (choose_write_coding_system):
3463 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3464 (malloc_initialize_hook, sort_args, synchronize_locale):
3465 * doprnt.c (doprnt):
3466 * dired.c (compile_pattern):
3467 * data.c (fmod_float):
3468 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3469 (map_char_table_for_charset):
3470 * charset.c (define_charset_internal):
3471 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3472 to standard C.
3473
9a39b306 34742010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 3475 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
3476
3477 * lread.c (read1): Fix up last change to not mess up `c'.
3478
e6cb2cbb
JB
34792010-07-04 Juanma Barranquero <lekktu@gmail.com>
3480
3481 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3482
438105ed
JB
34832010-07-04 Juanma Barranquero <lekktu@gmail.com>
3484
3485 Fix prototypes.
3486
e5447b22 3487 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 3488 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
3489 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3490 arg, as required by internal_condition_case_1.
dcc7404b 3491 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
3492 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3493 (analyse_first): Fix "const const".
e5447b22 3494 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 3495 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 3496 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 3497
971de7fb
DN
34982010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3499
3500 * alloc.c: Convert function definitions to standard C.
3501 * atimer.c:
3502 * bidi.c:
3503 * bytecode.c:
3504 * callint.c:
3505 * callproc.c:
3506 * casefiddle.c:
3507 * casetab.c:
3508 * category.c:
3509 * ccl.c:
3510 * character.c:
3511 * charset.c:
3512 * chartab.c:
3513 * cmds.c:
3514 * coding.c:
3515 * composite.c:
3516 * data.c:
3517 * dbusbind.c:
3518 * dired.c:
3519 * dispnew.c:
3520 * doc.c:
3521 * doprnt.c:
3522 * ecrt0.c:
3523 * editfns.c:
3524 * fileio.c:
3525 * filelock.c:
3526 * filemode.c:
3527 * fns.c:
3528 * font.c:
3529 * fontset.c:
3530 * frame.c:
3531 * fringe.c:
3532 * ftfont.c:
3533 * ftxfont.c:
3534 * gtkutil.c:
3535 * indent.c:
3536 * insdel.c:
3537 * intervals.c:
3538 * keymap.c:
3539 * lread.c:
3540 * macros.c:
3541 * marker.c:
3542 * md5.c:
3543 * menu.c:
3544 * minibuf.c:
3545 * prefix-args.c:
3546 * print.c:
3547 * ralloc.c:
3548 * regex.c:
3549 * region-cache.c:
3550 * scroll.c:
3551 * search.c:
3552 * sound.c:
3553 * strftime.c:
3554 * syntax.c:
3555 * sysdep.c:
3556 * termcap.c:
3557 * terminal.c:
3558 * terminfo.c:
3559 * textprop.c:
3560 * tparam.c:
3561 * undo.c:
3562 * unexelf.c:
3563 * window.c:
3564 * xfaces.c:
3565 * xfns.c:
3566 * xfont.c:
3567 * xftfont.c:
3568 * xgselect.c:
3569 * xmenu.c:
3570 * xrdb.c:
3571 * xselect.c:
3572 * xsettings.c:
3573 * xsmfns.c:
3574 * xterm.c: Likewise.
3575
ae492bec
EZ
35762010-07-03 Eli Zaretskii <eliz@gnu.org>
3577
76ea4cc9
EZ
3578 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3579 frames other than the initial one. Fix reversal of colors when
3580 `reverse' is specified in the frame parameters. Call
3581 update_face_from_frame_parameter instead of
3582 internal-set-lisp-face-attribute. Initialize screen colors from
3583 initial_screen_colors[] when f->default_face_done_p is zero,
3584 instead of depending on being called with default-frame-alist as
3585 the alist argument.
3586
3587 * xfaces.c (update_face_from_frame_parameter): Move out of
3588 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3589 with HAVE_WINDOW_SYSTEM.
3590
1e6255ae
EZ
3591 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3592 to menu-bar-mode, if not set in the frame parameters or in
3593 default-frame-alist.
3594
ae492bec
EZ
3595 * w32console.c (sys_tputs): Adjust argument list to prototype in
3596 term.c.
3597
3a35a84c
JB
35982010-07-03 Juanma Barranquero <lekktu@gmail.com>
3599
3600 * lisp.h (memory_warnings): Fix prototype.
3601
3602 * cm.h (evalcost): Fix prototype.
3603
3604 * cm.c (evalcost): Fix arg type.
3605
c532d349
DN
36062010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3607
3608 * term.c (term_clear_mouse_face, Fidentity):
3609 * syssignal.h (signal_handler_t):
3610 * lisp.h (memory_warnings):
3611 * coding.h (preferred_coding_system):
3612 * cm.h (evalcost):
3613 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3614
c0b36d46
EZ
36152010-07-02 Eli Zaretskii <eliz@gnu.org>
3616
3617 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3618 from prototypes.
3619
3620 * msdos.h (load_pixmap): Don't define away.
3621
383e0970
J
36222010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3623
f57e2426
J
3624 * lisp.h:
3625 * atimer.h: Remove define for P_.
3626
3627 * alloc.c: Remove __P and P_ from .c and .m files.
3628 * atimer.c:
3629 * buffer.c:
3630 * callint.c:
3631 * category.c:
3632 * charset.c:
3633 * chartab.c:
3634 * cm.c:
3635 * coding.c:
3636 * composite.c:
3637 * data.c:
3638 * dired.c:
3639 * dispnew.c:
3640 * doc.c:
3641 * editfns.c:
3642 * emacs.c:
3643 * eval.c:
3644 * fileio.c:
3645 * filelock.c:
3646 * fns.c:
3647 * font.c:
3648 * fontset.c:
3649 * frame.c:
3650 * ftfont.c:
3651 * ftxfont.c:
3652 * gmalloc.c:
3653 * gtkutil.c:
3654 * image.c:
3655 * indent.c:
3656 * intervals.c:
3657 * keyboard.c:
3658 * keymap.c:
3659 * lread.c:
3660 * marker.c:
3661 * menu.c:
3662 * minibuf.c:
3663 * print.c:
3664 * process.c:
3665 * scroll.c:
3666 * search.c:
3667 * sound.c:
3668 * strftime.c:
3669 * syntax.c:
3670 * sysdep.c:
3671 * term.c:
3672 * terminal.c:
3673 * textprop.c:
3674 * unexalpha.c:
3675 * w32console.c:
3676 * w32fns.c:
3677 * w32font.c:
3678 * w32menu.c:
3679 * w32term.c:
3680 * w32uniscribe.c:
3681 * window.c:
3682 * xdisp.c:
3683 * xfaces.c:
3684 * xfns.c:
3685 * xfont.c:
3686 * xftfont.c:
3687 * xmenu.c:
3688 * xselect.c:
3689 * xterm.c: Likewise.
3690
383e0970 3691 Remove P_ and __P macros.
f57e2426
J
3692 * atimer.h: Remove P_ and __P macros.
3693 * buffer.h:
383e0970
J
3694 * category.h:
3695 * ccl.h:
3696 * character.h:
3697 * charset.h:
3698 * cm.h:
3699 * coding.h:
3700 * composite.h:
3701 * dispextern.h:
3702 * disptab.h:
9e892c8d 3703 * dosfns.h:
383e0970
J
3704 * font.h:
3705 * fontset.h:
3706 * frame.h:
3707 * gtkutil.h:
3708 * indent.h:
3709 * intervals.h:
3710 * keyboard.h:
3711 * keymap.h:
3712 * lisp.h:
3713 * macros.h:
3714 * md5.h:
3715 * menu.h:
3716 * msdos.h:
3717 * nsterm.h:
3718 * puresize.h:
3719 * region-cache.h:
3720 * syntax.h:
3721 * syssignal.h:
3722 * systime.h:
3723 * termhooks.h:
9e892c8d 3724 * w32font.h:
383e0970
J
3725 * w32term.h:
3726 * widget.h:
3727 * window.h:
3728 * xgselect.h:
3729 * xsettings.h:
3730 * xterm.h: Likewise.
3731
98601119
DN
37322010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3733
d9170db5
DN
3734 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3735
98601119
DN
3736 Cleanup old code.
3737 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3738 * syssignal.h: Remove code for Lynx, not supported anymore.
3739 * vm-limit.c: Remove unused code the depends on emacs not being
3740 defined and NO_LIM_DATA being defined.
3741 * mem-limits.h: Remove dead code.
3742
1f984e12
J
37432010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3744
c49d071a
J
3745 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3746
9d5405ec
J
3747 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3748 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3749
7a18115b
J
3750 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3751 parameters, they are already absolute.
3752
a628ad9d
JB
3753 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3754 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3755
a628ad9d 3756 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3757
a628ad9d
JB
3758 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3759 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3760
a628ad9d
JB
3761 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3762 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3763
c1ef4455
CY
37642010-06-30 Chong Yidong <cyd@stupidchicken.com>
3765
3766 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3767 check default-frame-alist.
3768
ce8f5a9a
AS
37692010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3770
3771 * process.c (create_process): Avoid using invalid file descriptors.
3772
3773 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3774
bf935339
J
37752010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3776
3777 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3778 Improve documentation. Return font regardless of use_system_font.
3779 (syms_of_xsettings): Improve documentation for font-use-system-font.
3780
7c33a057
CY
37812010-07-10 Chong Yidong <cyd@stupidchicken.com>
3782
2ec1b5ee
CY
3783 * xfaces.c (realize_face): Garbage the frame if a face is removed
3784 (Bug#6593).
3785
37862010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3787
3788 * keyboard.c: Remove duplicate <setjmp.h>.
3789 (read_key_sequence): Remove volatile qualifiers.
3790
37912010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3792
3793 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3794 (struct glyph_row): New members left_fringe_offset and
3795 right_fringe_offset.
3796
3797 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3798 specially.
3799 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3800 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3801
3802 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3803 Take account of bitmap offset.
2ec1b5ee
CY
3804 (draw_window_fringes): Take account of window vscroll.
3805 (update_window_fringes): Likewise. Extend top-aligned top indicator
3806 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3807 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3808 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3809
38102010-07-04 Juanma Barranquero <lekktu@gmail.com>
3811
3812 * w32fns.c (Qtooltip): Declare.
3813 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3814
38152010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3816
3817 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3818 grab on just Press (Bug#6499).
3819
38202010-07-02 Chong Yidong <cyd@stupidchicken.com>
3821
3822 * frame.c (Qtooltip): New var.
3823 (delete_frame): Use it. Fix faulty if statement. Don't update
3824 mode line for tooltip frames. Suggested by Martin Rudalics.
3825
3826 * xfns.c (x_create_tip_frame):
3827 * w32fns.c (x_create_tip_frame): Use it.
3828
38292010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3830
3831 * xftfont.c (xftfont_open): Check font width one by one also when
3832 spacing is dual.
3833
3834 * ftfont.c (ftfont_open): Ditto.
3835
6259c2ec
GM
38362010-06-30 Glenn Morris <rgm@gnu.org>
3837
a46007e9
GM
3838 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3839
6259c2ec
GM
3840 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3841
3842 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3843 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3844 * s/darwin.h (SYSTEM_MALLOC):
3845 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3846
5d1d3d04
J
38472010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3848
3849 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3850 (ns_get_screen): Don't assign integer to f.
3851 (Fx_display_color_cells): Declarations before statements.
3852
e547b051
J
38532010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3854
5fc8e5bc
J
3855 * xfns.c (x_default_font_parameter): Remove got_from_system
3856 (Bug#6526).
3857
e547b051
J
3858 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3859 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3860 defines based on what configure finds.
3861
3862 * xterm.c (XTflash): Use gtk_widget_get_window.
3863 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3864 gtk_adjustment_get_page_size.
3865 (handle_one_xevent): Use gtk_widget_get_mapped.
3866 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3867 messages.
3868
3869 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3870
3871 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3872 HAVE_GTK_FILE_SELECTION_NEW.
3873
3874 * gtkutil.c (xg_display_open, xg_display_close): Remove
3875 HAVE_GTK_MULTIDISPLAY, it is always defined.
3876 (xg_display_open): Return type is void.
3877 (gtk_widget_set_has_window)
3878 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3879 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3880 (gtk_adjustment_set_page_increment)
3881 (gtk_adjustment_get_step_increment): #define these if not found
3882 by configure.
3883 (remove_submenu): New define based on Gtk+ version.
3884 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3885 gtk_widget_get_window.
3886 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3887 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3888 (create_dialog): Use gtk_dialog_get_action_area and
3889 gtk_dialog_get_content_area.
3890 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3891 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3892 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3893 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3894 g_object_ref and g_object_unref.
3895 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3896 gtk_widget_get_sensitive.
3897 (xg_update_submenu): Use remove_submenu.
3898 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3899 properties instead to get old x and y position.
3900 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3901 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3902 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3903 (xg_get_tool_bar_widgets): New function.
3904 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3905 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3906 (toolbar_set_orientation): New #define based on if configure
3907 finds gtk_orientable_set_orientation.
3908 (xg_create_tool_bar): Call toolbar_set_orientation.
3909 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3910 instead of gtk_box_pack_start_defaults.
3911
b9229673
CY
39122010-06-28 Chong Yidong <cyd@stupidchicken.com>
3913
3914 * cmds.c (Fdelete_backward_char): Move into Lisp.
3915
bbc803b0
DN
39162010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3917
3918 * s/freebsd.h (BSD4_2): Remove redundant definition.
3919 bsd-common.h defines it already.
3920
6431f2e6
CY
39212010-06-27 Chong Yidong <cyd@stupidchicken.com>
3922
3923 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3924 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3925 tool-bar-mode, which are now set using these X resources at
3926 startup, to determine the defaults (Bug#2249).
3927
3928 * w32fns.c (Fx_create_frame):
3929 * nsfns.m (Fx_create_frame): Likewise.
3930
3931 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3932
8c079ebb
JB
39332010-06-24 Juanma Barranquero <lekktu@gmail.com>
3934
3935 * gtkutil.c (xg_update_scrollbar_pos):
3936 Avoid C99 mid-block variable declaration.
3937
e9b7ab96
JD
39382010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3939
bc869eca
JD
3940 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3941
2b7e356a 3942 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3943
3944 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3945 if height is less than scroll bar min size.
3946 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3947
e9b7ab96
JD
3948 * xfns.c (x_default_font_parameter): Try to open font from system
3949 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3950
a628ad9d 39512010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3952
3953 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3954
70c4cfbb
EZ
39552010-06-20 Eli Zaretskii <eliz@gnu.org>
3956
3957 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3958 most-positive-fixnum, be extra accurate when scrolling window
3959 start, to avoid missing the cursor line.
3960
ad5a12b5
EZ
39612010-06-19 Eli Zaretskii <eliz@gnu.org>
3962
3963 * xdisp.c (try_scrolling): Compute the limit for searching point
3964 in forward scroll from scroll_max, instead of an arbitrary limit
3965 of 10 screen lines. See
3966 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3967 and
3968 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3969 for details.
3970
2a64315a 39712010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3972
3973 * editfns.c (Fbyte_to_string): Pacify compiler.
3974
288cf4e9
SM
39752010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3976
3977 * lread.c (read1): Phase out old-style backquotes a bit more.
3978
6e6e5760
EZ
39792010-06-12 Eli Zaretskii <eliz@gnu.org>
3980
cbc4fd20
EZ
3981 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3982 bidimirror.h.
3983
3984 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3985
317fbf33
EZ
3986 * bidi.c (bidi_initialize): Remove explicit initialization of
3987 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3988 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3989 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3990
3991 * biditype.h: New file.
3992
cbc4fd20
EZ
3993 * bidimirror.h: New file.
3994
6e6e5760
EZ
3995 * window.c (syms_of_window): Doc fix (bug#6409).
3996
4176cba2
RF
39972010-06-12 Romain Francoise <romain@orebokech.com>
3998
3999 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
4000 ediff-hook.
4001
cb4bfcb5
GM
40022010-06-10 Glenn Morris <rgm@gnu.org>
4003
64c60c2f
GM
4004 * editfns.c (Fbyte_to_string): Pacify compiler.
4005
cb4bfcb5
GM
4006 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
4007
2ec1b5ee
CY
40082010-06-26 Andreas Schwab <schwab@linux-m68k.org>
4009
4010 * alloc.c (Fmake_byte_code): Don't access undefined argument
4011 (Bug#6517).
4012
40132010-06-25 Chong Yidong <cyd@stupidchicken.com>
4014
4015 * xdisp.c (next_element_from_image): Ensure that after-strings are
4016 read the next time we hit handle_stop (Bug#1336).
4017
40182010-06-23 Andreas Schwab <schwab@linux-m68k.org>
4019
4020 * lread.c (read1): Signal error if #s is not followed by paren.
4021
40222010-06-19 Chong Yidong <cyd@stupidchicken.com>
4023
4024 * image.c (free_image): Mark frame as garbaged (Bug#6426).
4025
4026 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
4027
40282010-06-15 Glenn Morris <rgm@gnu.org>
4029
4030 * editfns.c (Fbyte_to_string): Pacify compiler.
4031
e454a4a3
SM
40322010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
4033
4034 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
4035 Check `object's type before accessing its guts.
4036
c1b1acc2
DN
40372010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
4038
4039 * s/usg5-4.h: Fix previous change.
4040 Suggested by Lawrence Mitchell <wence@gmx.li>
4041
657d4c0b
AS
40422010-06-08 Andreas Schwab <schwab@linux-m68k.org>
4043
4044 * minibuf.c (Fall_completions): Add more checks.
4045
9b27fd9f
JB
40462010-06-08 Juanma Barranquero <lekktu@gmail.com>
4047
4048 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
4049
a99ebb40
DN
40502010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
4051
d7c5d87d
DN
4052 * lread.c (X_OK): Remove, unused.
4053
0263a941
DN
4054 * dispnew.c: Remove obsolete comment.
4055
a99ebb40
DN
4056 Remove INCLUDED_FCNTL.
4057 * xterm.c (INCLUDED_FCNTL):
4058 * callproc.c (INCLUDED_FCNTL):
4059 * alloc.c (INCLUDED_FCNTL):
4060 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
4061 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
4062
13b5221f
MR
40632010-06-07 Martin Rudalics <rudalics@gmx.at>
4064
4065 * window.c (Fselect_window): Move `record_buffer' up to the
4066 beginning of this function, so the buffer gets recorded
4067 even if the selected window does not change.
4068 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
4069
5220357f
JB
40702010-06-07 Juanma Barranquero <lekktu@gmail.com>
4071
4072 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
4073 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
4074
3085237c
DN
40752010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
4076
4077 Remove BSTRING related code, all platforms define it.
4078 * s/usg5-4.h (BSTRING): Remove definition.
4079 * s/template.h (BSTRING):
4080 * s/msdos.h (BSTRING):
4081 * s/ms-w32.h (BSTRING):
4082 * s/hpux10-20.h (BSTRING):
4083 * s/gnu-linux.h (BSTRING):
4084 * s/darwin.h (BSTRING):
4085 * s/cygwin.h (BSTRING):
4086 * s/bsd-common.h (BSTRING):
4087 * s/aix4-2.h (BSTRING): Likewise.
4088 * sysdep.c: Remove code depending on BSTRING not being defined.
4089
409f2919
JB
40902010-06-05 Juanma Barranquero <lekktu@gmail.com>
4091
4092 Remove obsolete macro BASE_LEADING_CODE_P.
4093 * character.h (BASE_LEADING_CODE_P): Remove.
4094 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
4095 * buffer.c (Fset_buffer_multibyte):
4096 * indent.c (scan_for_column, compute_motion):
4097 * insdel.c (count_combining_before, count_combining_after):
4098 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
4099
087fc47a
JB
41002010-06-04 Juanma Barranquero <lekktu@gmail.com>
4101
4102 Turn `directory-sep-char' into a noop.
4103
4104 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
4105 (DIRECTORY_SEP): Define unconditionally.
4106
4107 * s/ms-w32.h (DIRECTORY_SEP): Remove.
4108
4109 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
4110 call dostounix_filename directly.
4111
4112 * fileio.c (CORRECT_DIR_SEPS): Remove.
4113 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
4114 (Fsubstitute_in_file_name): Use dostounix_filename instead.
4115 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
4116 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
4117
4118 * w32proc.c (CORRECT_DIR_SEPS): Remove.
4119 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
4120
0eb7675e
AS
41212010-06-03 Andreas Schwab <schwab@linux-m68k.org>
4122
a628ad9d
JB
4123 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
4124 (Bug#6346)
0eb7675e 4125
78edd3b7
JB
41262010-06-03 Juanma Barranquero <lekktu@gmail.com>
4127
4128 * ccl.c (Fccl_program_p): Fix typo in docstring.
4129
eb697db5
DN
41302010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
4131
4132 Move UNEXEC definition to autoconf.
4133 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
4134 * s/sol2-10.h (UNEXEC):
4135 * s/irix6-5.h (UNEXEC):
4136 * s/hpux10-20.h (UNEXEC):
4137 * s/gnu-linux.h (UNEXEC):
4138 * s/darwin.h (UNEXEC):
4139 * s/cygwin.h (UNEXEC):
4140 * s/bsd-common.h (UNEXEC):
4141 * s/aix4-2.h (UNEXEC):
4142 * m/alpha.h (UNEXEC): Likewise.
4143 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
4144
aa3830c4
JB
41452010-06-03 Juanma Barranquero <lekktu@gmail.com>
4146
4147 Remove obsolete pre-unicode2 macros.
4148 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
4149 * composite.c (composition_reseat_it):
4150 * data.c (Faset):
4151 * fns.c (Ffillarray):
4152 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
4153 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
4154
d234d13e
JL
41552010-06-03 Juri Linkov <juri@jurta.org>
4156
4157 * buffer.c (Fother_buffer): Add CHECK_FRAME.
4158 (Fswitch_to_buffer): Remove unused variable `err'.
4159
0d4bcf4d
GM
41602010-06-03 Glenn Morris <rgm@gnu.org>
4161
e23dc1e2
GM
4162 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
4163
05b09564
GM
4164 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
4165 now that AH_BOTTOM does it.
4166
824e2978
GM
4167 * m/hp800.h (HAVE_ALLOCA):
4168 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
4169
0d4bcf4d
GM
4170 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
4171 Remove NOT_C_CODE tests, it is always true now.
4172
c55d2abf
DN
41732010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
4174
08a494a3
DN
4175 Fix config.h includes.
4176 * xsettings.c:
4177 * xgselect.c:
4178 * nsterm.m:
4179 * nsselect.m:
4180 * nsimage.m:
4181 * nsfont.m:
4182 * nsfns.m:
4183 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
4184 other files do.
4185
75934b1d
DN
4186 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4187
9f32a766
DN
4188 * s/sol2-6.h: Remove obsolete comments.
4189
c55d2abf
DN
4190 Remove unnecessary alloca.h includes.
4191 * keymap.c: Do not include alloca.h, config.h does that.
4192 * sysdep.c: Likewise. Do not define fwrite, not used.
4193
06ac62b4
SM
41942010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4195
4196 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4197 the HAVE_TERMIO where it belongs (bug#6149).
4198
1ab8293c
SM
41992010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4200
4201 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4202 of bug#6305).
4203
6dcfd253
EZ
42042010-05-30 Eli Zaretskii <eliz@gnu.org>
4205
4206 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4207 state is always cached (bug#6306).
4208
6d26bbb2
EZ
42092010-05-29 Eli Zaretskii <eliz@gnu.org>
4210
06fa4a23
EZ
4211 Fix cursor motion in bidi-reordered continued lines.
4212 * xdisp.c (try_cursor_movement): Backup to non-continuation line
4213 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
4214 over continuation lines in bidi-reordered buffers. Return
4215 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4216 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4217
f5783df3
MA
42182010-05-28 Michael Albinus <michael.albinus@gmx.de>
4219
4220 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4221
7d56b2dd
KH
42222010-05-28 Kenichi Handa <handa@m17n.org>
4223
4224 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4225 Don't sheck SPEC if it is nil.
4226 (font_list_entities): Call font_delete_unmatched if
b925d231 4227 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 4228
e58d4ff7
GM
42292010-05-28 Glenn Morris <rgm@gnu.org>
4230
4231 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4232
f1a5d776
CY
42332010-05-27 Chong Yidong <cyd@stupidchicken.com>
4234
4235 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4236 whether to trash.
4237 (internal_delete_file, Frename_file): Callers changed.
4238 (delete_by_moving_to_trash): Doc fix.
4239 (Fdelete_directory_internal): Don't move to trash.
4240
4241 * callproc.c (delete_temp_file):
4242 * buffer.c (Fkill_buffer): Callers changed.
4243
4244 * lisp.h: Update prototype.
4245
f44a59e6
CY
42462010-05-27 Chong Yidong <cyd@stupidchicken.com>
4247
4248 * xdisp.c (redisplay_window): After redisplay, check if point is
4249 still valid before setting it (Bug#6177).
4250
81ac4f35
GM
42512010-05-27 Glenn Morris <rgm@gnu.org>
4252
4253 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4254 Convert comments to Makefile format.
4255
4256 * Makefile.in (bootstrap-clean): No more Makefile.c.
4257
ccd89fb3
GM
42582010-05-26 Glenn Morris <rgm@gnu.org>
4259
90278cb6
GM
4260 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4261 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4262
ccd89fb3
GM
4263 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4264 Remove.
4265 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4266
b7050583
KH
42672010-05-26 Kenichi Handa <handa@m17n.org>
4268
4269 * composite.c (composition_compute_stop_pos): Fix condition for
4270 backward scanning.
4271
e5458003
GM
42722010-05-25 Glenn Morris <rgm@gnu.org>
4273
c345fe90
GM
4274 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4275 Move before TEMACS_LDFLAGS.
4276 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4277 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4278
2e0689ab
GM
4279 * Makefile.in (NOT_C_CODE): No longer define.
4280 (config.h): No longer include.
4281
8009a5e8
GM
4282 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4283 variables it may reference.
4284
e5458003
GM
4285 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4286 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4287
10f72a37
KH
42882010-05-25 Kenichi Handa <handa@m17n.org>
4289
4290 * dispextern.h (struct composition_it): New members rule_idx and
4291 charpos.
4292
4293 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4294 that the character positions of IT point the last character of the
4295 current grapheme cluster.
4296 (next_element_from_composition): Don't change character positions
4297 of IT.
4298 (append_composite_glyph): Set glyph->charpos to
4299 it->cmp_it.charpos.
4300
4301 * composite.c (autocmp_chars): Change the first argument to RULE,
4302 and try composition with RULE only.
4303 (composition_compute_stop_pos): Record the index number of the
4304 composition rule in CMP_IT->rule_idx.
4305 (composition_reseat_it): Call autocmp_chars repeatedly until the
4306 correct rule of the composition is found.
4307 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4308 is at the last character of the current grapheme cluster when
4309 CMP_IT->reversed_p is nonzero.
4310
171eda53 43112010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 4312
171eda53
SM
4313 * editfns.c (Fbyte_to_string): New function.
4314
66a9f7f4
SM
43152010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4316
4317 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4318 Suggested by Masatake YAMATO <yamato@redhat.com>.
4319
d8c315d1
EZ
43202010-05-23 Eli Zaretskii <eliz@gnu.org>
4321
171eda53 4322 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 4323
f5b416d2 43242010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4325
4326 * s/netbsd.h: If terminfo is found, use it in preference to
4327 termcap. (Bug#6190) [Backport from trunk]
4328
0416466c
EZ
43292010-05-19 Eli Zaretskii <eliz@gnu.org>
4330
11117830 4331 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
4332
4333 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4334 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4335 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4336 and maxpos members instead of start.pos and end.pos, respectively.
4337
4338 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4339 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4340 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
4341 (try_window_reusing_current_matrix, try_window_id):
4342 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
4343 (init_from_display_pos, init_iterator): Use EMACS_INT for
4344 character and byte positions.
66a9f7f4 4345 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
4346 arguments for minimum and maximum buffer positions seen by
4347 display_line for this row. Don't use iterator to find the
4348 position following the maximum one; instead, increment the
11117830
EZ
4349 position found by display_line directly. Fix logic; eol_pos
4350 should be tested before the rest. Handle the case of characters
4351 delivered from display vector (bug#6036). Fix tests related to
4352 it->method. Handle the truncated_on_right_p rows.
4353 (RECORD_MAX_MIN_POS): New macro.
4354 (display_line): Use it to record the minimum and maximum buffer
4355 positions for glyphs in the row being assembled. Record the
4356 position of the newline that terminates the line. If word wrap is
4357 in effect, restore minimum and maximum positions seen up to the
4358 wrap point, when iterator returns to it.
4359 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4360 row and cursor not already at point. Restore original pre-bidi
4361 code for unidirectional buffers.
d36fe237
EZ
4362
4363 * dispnew.c (increment_row_positions, check_matrix_invariants):
4364 Increment and check row->start.pos and row->end.pos, in addition
4365 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4366
11117830
EZ
4367 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4368 Display truncated_on_left_p and truncated_on_right_p flags.
4369 Formatting fixes.
4370 (pmtxrows): Display the ordinal number of each row. Don't display
4371 rows beyond the last one.
4372
4373 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4374 it is not copied by bidi_copy_it.
4375
6e83d800
EZ
43762010-05-22 Eli Zaretskii <eliz@gnu.org>
4377
4378 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4379 (Bug#6237)
4380
110683ad
CY
43812010-05-22 Chong Yidong <cyd@stupidchicken.com>
4382
4383 * image.c (Fimage_flush): Rename from image-refresh.
4384
98fe5161
CY
43852010-05-21 Chong Yidong <cyd@stupidchicken.com>
4386
4387 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4388 just one window.
4389
4390 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4391 (clear_image_cache): If the number of cached images is unusually
4392 large, decrease the cache eviction delay (Bug#6230).
4393
e8752c66
GM
43942010-05-21 Glenn Morris <rgm@gnu.org>
4395
66dbf213
GM
4396 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4397 Move these rules to ns.mk.
4398 * ns.mk: New file.
4399
04384b2d
GM
4400 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4401
e8752c66
GM
4402 * Makefile.in (CANNOT_DUMP): New, set by configure.
4403 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4404
2e2bbddb
JL
44052010-05-20 Juri Linkov <juri@jurta.org>
4406
4407 * fileio.c (Fdelete_file): Change interative spec to use
4408 `read-file-name' like in `find-file-read-args' where the default
4409 value is `default-directory' instead of `buffer-file-name'.
4410 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4411
31c4aaf6
KR
44122010-05-20 Kevin Ryde <user42@zip.com.au>
4413
4414 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4415 (Voverriding_terminal_local_map, Vsystem_key_alist)
4416 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4417
9d5cf9b6
GM
44182010-05-20 Glenn Morris <rgm@gnu.org>
4419
4420 * Makefile.in (DEPDIR): New constant.
4421 (DEPFLAGS): Set with configure, not cpp.
4422 (MKDEPDIR): New, set by configure.
4423 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4424 (clean): Use $DEPDIR.
4425 (deps_frag): Include from configure.
4426 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4427 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4428
ead6f8f5
EZ
4429 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4430 reallocation of the cache. (Bug#6210)
4431
7f34aec3
GM
44322010-05-19 Glenn Morris <rgm@gnu.org>
4433
d494e8f2
GM
4434 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4435
c1d0dcfd
GM
4436 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4437 (GNULIB_VAR): Remove.
4438 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4439
4440 * m/ibms390x.h (LINKER):
4441 * m/macppc.h (LINKER) [GNU_LINUX]:
4442 * s/aix4-2.h (ORDINARY_LINK):
4443 * s/cygwin.h (LINKER):
4444 * s/darwin.h (ORDINARY_LINK):
4445 * s/gnu.h (ORDINARY_LINK):
4446 * s/netbsd.h (LINKER):
4447 * s/usg5-4.h (ORDINARY_LINK):
4448 Move to configure.
4449
7f34aec3
GM
4450 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4451
754790b6
CY
44522010-05-18 Chong Yidong <cyd@stupidchicken.com>
4453
4454 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4455 prevent stack overflow if number of arguments is too large
4456 (Bug#6214).
4457
161e44d1
JB
44582010-05-18 Juanma Barranquero <lekktu@gmail.com>
4459
4460 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4461
be4ff9da
GM
44622010-05-18 Glenn Morris <rgm@gnu.org>
4463
9539dc5d
GM
4464 * s/gnu-linux.h: Combine two conditionals.
4465
4466 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
4467 $(POST_ALLOC_OBJ).
4468
40dc6bf4
GM
4469 * Makefile.in (RALLOC_OBJ): New, set by configure.
4470 (rallocobj): Replace with the previous variable.
4471 (otherobj): Use $RALLOC_OBJ.
4472
4473 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4474 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4475
be4ff9da
GM
4476 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4477 (gmallocobj, vmlimitobj): Replace with previous two variables.
4478 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4479
16455a85
GM
44802010-05-17 Glenn Morris <rgm@gnu.org>
4481
4482 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4483 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4484
5fdb7468
GM
44852010-05-16 Glenn Morris <rgm@gnu.org>
4486
7ca1f3f9
GM
4487 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4488
7541dad5
GM
4489 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4490
da53fab9
GM
4491 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4492 trailing "/".
4493
b02a6645
GM
4494 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4495 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4496
8877ca0f
GM
4497 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4498 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4499 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4500 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4501 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4502
5fdb7468
GM
4503 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4504 Remove ${STARTFLAGS}, nothing ever sets it.
4505
95adb4b1
DN
45062010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4507
4508 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4509
676b6304
GM
45102010-05-16 Glenn Morris <rgm@gnu.org>
4511
9beab9ce
GM
4512 * Makefile.in (LIBX_BASE): Always define.
4513
8a95f0e7
GM
4514 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4515
676b6304
GM
4516 * Makefile.in (LIBXT): Always define.
4517
6e546d18
GM
45182010-05-15 Glenn Morris <rgm@gnu.org>
4519
4235ca47 4520 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 4521
6e546d18
GM
4522 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4523 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4524
8c5ff6dd
KR
45252010-05-15 Ken Raeburn <raeburn@raeburn.org>
4526
560bb7ae 4527 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
4528 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4529
8b4eb796
KR
4530 * emacs.c (main): Initialize initial-environment and
4531 process-environment before generating from env, not after.
4532
8c5ff6dd
KR
4533 Handle --version reasonably in CANNOT_DUMP configuration.
4534 * emacs.c (emacs_version, emacs_copyright): New string variables.
4535 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4536 (syms_of_emacs): Defvar them, and initialize them from the C
4537 string variables.
4538 (main): If initialization hasn't been done, print initial version
4539 info from the C strings, instead of starting an interactive session.
4540
dbd3f723
EZ
45412010-05-15 Eli Zaretskii <eliz@gnu.org>
4542
d20e1419
EZ
4543 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4544 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
4545 (bidi_paragraph_init): Remove redundant assertion that we are at
4546 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
4547
4548 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4549 (syms_of_xdisp): Defsubr it.
4550
d36fe237
EZ
4551 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4552
dbd3f723
EZ
4553 * Makefile.in: Fix MSDOS-related comments.
4554
02be533b
GM
45552010-05-15 Glenn Morris <rgm@gnu.org>
4556
1a82cca9
GM
4557 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4558 (really-lwlib, really-oldXMenu): Always define.
4559 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4560
3df7b338
GM
4561 * Makefile.in: Simplify cpp conditional.
4562
2b5f541b
GM
4563 * Makefile.in (${ns_appdir}): Simplify using umask.
4564
02be533b
GM
4565 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4566
4e2db1fe
SM
45672010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4568
4569 * eval.c (specbind): Remove left-over duplicate test.
4570 Disallow let-binding frame-local vars. Add comment.
4571
4b292a22
EZ
45722010-05-14 Eli Zaretskii <eliz@gnu.org>
4573
2fe72643 4574 Make the cache of bidi iterator states dynamically allocated.
1edbd309 4575 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
4576 (bidi_init_it): Call it.
4577 (bidi_cache_iterator_state): Enlarge the cache if needed.
4578
4e2db1fe 4579 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
4580 bidi_get_next_char_visually. All callers changed.
4581
82ebc97b
KH
45822010-05-14 Kenichi Handa <handa@m17n.org>
4583
4584 * dispextern.h (struct composition_it): New member reversed_p.
4585
4586 * composite.c (composition_compute_stop_pos): Search backward if
4587 ENDPOS < CHARPOS.
4588 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4589 Set CMP_IT->reversed_p.
b4b6e17e 4590 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 4591
4e2db1fe
SM
4592 * xdisp.c (set_iterator_to_next):
4593 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
4594 scanning backward. Call composition_compute_stop_pos if scan
4595 direction is changed.
4596 (next_element_from_buffer): Call composition_compute_stop_pos with
4597 negative ENDPOS if we are scanning backward.
4598 (next_element_from_composition): Pay attention to
4599 IT->cmp_it.reversed_p.
4600
0e5d7800
KH
46012010-05-14 Kenichi Handa <handa@m17n.org>
4602
560bb7ae 4603 * font.c (font_range): Return the range for the font found at first.
0e5d7800 4604
cb027b32
GM
46052010-05-14 Glenn Morris <rgm@gnu.org>
4606
177b0288
GM
4607 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4608
fbc00890
GM
4609 * Makefile.in (mktime, X11, register): Move undefs to configure.
4610
f14d1dfd
GM
4611 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4612 (MSDOS_X_OBJ): New variable.
4613 (MSDOS_SUPPORT_REAL): New constant.
4614 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4615 (obj): Use MSDOS_X_OBJ.
4616 (lisp): Use MSDOS_SUPPORT as a variable.
4617
11842bd8
GM
4618 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4619 (GPM_MOUSE_SUPPORT): Now it's a constant.
4620 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4621 not cpp.
4622
489d31a4 4623 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 4624 (ns_appresdir): Remove, unused.
e20f1f07 4625
489d31a4
GM
4626 * Makefile.in (SHELL): Move outside cpp section.
4627
cb027b32
GM
4628 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4629
5a903aa9
GM
46302010-05-13 Glenn Morris <rgm@gnu.org>
4631
3369c79f
GM
4632 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4633 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4634
d5e982a6
GM
4635 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4636 HAVE_WINDOW_SYSTEM must be too.
4637
6192e163
GM
4638 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4639 (lisp): Remove WINNT_SUPPORT.
4640
472c5d6b
GM
4641 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4642 Let configure set these variables (to empty) in this case as well.
4643
0116466b
GM
4644 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4645 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4646
5a903aa9
GM
4647 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4648 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4649 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4650 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4651 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 4652 the values output by configure.
5a903aa9
GM
4653 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4654
1a0d7c06
GM
46552010-05-12 Glenn Morris <rgm@gnu.org>
4656
b5457f14
GM
4657 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4658 (LINKER_WAS_SPECIFIED): Remove.
4659
1a0d7c06
GM
4660 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4661 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4662 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4663 * s/cygwin.h (LIB_GCC):
4664 * s/freebsd.h (LIB_GCC):
4665 * s/gnu-linux.h (LIB_GCC):
4666 * s/msdos.h (LIB_GCC):
4667 * s/netbsd.h (LIB_GCC):
4668 Move to configure.
4669
3ffd4615 46702010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
4671
4672 * ftfont.c: Fix incorrect parentheses of #if condition for
4673 definining M17N_FLT_USE_NEW_FEATURE.
4674
acddf8ae
GM
46752010-05-11 Glenn Morris <rgm@gnu.org>
4676
4677 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4678 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4679
ae5e04fa
EZ
46802010-05-10 Eli Zaretskii <eliz@gnu.org>
4681
4682 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4683 unibyte buffers. See
4684 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4685
7490175b
GM
46862010-05-10 Glenn Morris <rgm@gnu.org>
4687
97efb629
GM
4688 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4689 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4690 (LIBES): Use LIBS_SYSTEM as a variable.
4691 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4692 * s/aix4-2.h (LIBS_SYSTEM):
4693 * s/freebsd.h (LIBS_SYSTEM):
4694 * s/hpux10-20.h (LIBS_SYSTEM):
4695 * s/sol2-6.h (LIBS_SYSTEM):
4696 * s/unixware.h (LIBS_SYSTEM):
4697 Move to configure.
4698
7490175b
GM
4699 * s/aix4-2.h (MAIL_USE_LOCKF):
4700 * s/bsd-common.h (MAIL_USE_FLOCK):
4701 * s/darwin.h (MAIL_USE_FLOCK):
4702 * s/gnu-linux.h (MAIL_USE_FLOCK):
4703 * s/irix6-5.h (MAIL_USE_FLOCK):
4704 * s/template.h (MAIL_USE_FLOCK):
4705 Move to configure.
4706
0235128c 47072010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4708
4709 * Version 23.2 released.
4710
0235128c 47112010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4712
4713 * composite.c (autocmp_chars): Save point as marker before calling
4714 auto-composition-function (Bug#5984).
4715
4716 * lisp.h (restore_point_unwind): Add prototype.
4717
4718 * fileio.c (restore_point_unwind): Remove static attribute.
4719
0235128c 47202010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4721
4722 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4723 new feature of libotf and m17n-flt.
0235128c
SM
4724 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4725 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4726 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4727 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4728 that OUT is NULL. Use OTF_drive_gsub_with_log and
4729 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4730 OTF_drive_gpos.
4731 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4732 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4733 Setup mflt_enable_new_feature and mflt_try_otf.
4734
4721152c
J
47352010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4736
4737 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4738
4739 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4740 box and toolbar (Bug #6139).
4741 (xg_create_tool_bar): Remove comment (Bug #6139).
4742 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4743 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4744
ee0a16cf
JB
47452010-05-08 Juanma Barranquero <lekktu@gmail.com>
4746
4747 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4748 Update dependencies.
4749
96d79611
EZ
47502010-05-08 Eli Zaretskii <eliz@gnu.org>
4751
4752 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4753 R2L lines.
4754
40c17879
GM
47552010-05-08 Glenn Morris <rgm@gnu.org>
4756
7b42b29f
GM
4757 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4758
40c17879
GM
4759 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4760 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4761 (termcapobj): Replace with TERMCAP_OBJ.
4762 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4763 (LIBES): Use LIBS_TERMCAP as a variable.
4764
4765 * s/freebsd.h (osreldate.h): No longer include, since this file
4766 does not use __FreeBSD_version any more.
4767
4768 * s/aix4-2.h (TERMINFO):
4769 * s/cygwin.h (TERMINFO):
4770 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4771 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4772 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4773 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4774 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4775 * s/irix6-5.h (TERMINFO):
4776 * s/netbsd.h (LIBS_TERMCAP):
4777 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4778 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4779 * s/usg5-4.h (TERMINFO):
4780 Move to configure.
4781
94b612ad
SM
47822010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4783
4784 * eval.c (unbind_to): Don't unbind a local binding into the global
4785 binding when the local binding disappeared. Inversely, don't unbind
4786 a global binding into a newly created local binding.
4787 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4788 can specify the frame to use, when applicable. Adjust callers.
4789
15e12598 47902010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4791 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4792
4793 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4794
f724825e
EZ
47952010-05-07 Eli Zaretskii <eliz@gnu.org>
4796
5cba3209
EZ
4797 * w32fns.c: Include w32.h.
4798 (Fw32_shell_execute): Decode the error message before passing it
4799 to `error'. (Bug#6126)
4800
d16bdfc3
EZ
4801 * msdos.c (dos_set_window_size):
4802 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4803 instead of `XSYMBOL (foo)->value'.
4804
59d93e87
EZ
48052010-05-07 Eli Zaretskii <eliz@gnu.org>
4806
9fdec8bc
EZ
4807 Fix the MS-DOS build, broken by autoconfiscation.
4808
4809 * Makefile.in: Don't use Make-style comments past the "start of
4810 cpp stuff" line.
4811 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4812
4813 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4814 edited directly by msdos/sed1v2.inp).
f724825e 4815
2f86b22b
GM
48162010-05-07 Glenn Morris <rgm@gnu.org>
4817
4818 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4819 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4820 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4821 move out of cpp section.
4822 * s/freebsd.h (LD_SWITCH_SYSTEM):
4823 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4824 * s/netbsd.h (LD_SWITCH_SYSTEM):
4825 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4826
49ebbd65
DN
48272010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4828
4829 Define LIB_STANDARD and START_FILES using autoconf.
4830 * s/usg5-4.h (LIB_STANDARD):
4831 * s/netbsd.h (START_FILES):
4832 * s/irix6-5.h (LIB_STANDARD):
4833 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4834 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4835 * s/freebsd.h (START_FILES):
4836 * s/darwin.h (START_FILES):
4837 * s/cygwin.h (START_FILES):
4838 * s/aix4-2.h (LIB_STANDARD):
4839 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4840 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4841 autoconf, not cpp.
4842
d43c06d6
DN
48432010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4844
28823648
DN
4845 Remove NEED_BSDTTY and NEED_UNISTD_H.
4846 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4847 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4848 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4849 <sys/ptyio.h> and <unistd.h>.
4850
aca00430
DN
4851 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4852
d43c06d6
DN
4853 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4854 * s/gnu.h (START_FILES): Remove empty definition.
4855
3e56b11d
JD
48562010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4857
4858 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4859
e3cf0cde
GM
48602010-05-06 Glenn Morris <rgm@gnu.org>
4861
4862 * Makefile.in (CPP, LN_S): Remove unused variables.
4863
774b9a60
SM
48642010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4865
4866 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4867
4ab92842
LM
48682010-05-05 Lawrence Mitchell <wence@gmx.li>
4869
4870 * m/sparc.h: Fix typo in earlier change.
4871
178f2507
SM
48722010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4873
4874 Misc tweaks.
4875 * eval.c (Fdefvaralias): Remove unintended nested if.
4876 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4877
80f00217 48782010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4879
4880 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4881
ef03a4e6
DN
48822010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4883
58eb6cf0
DN
4884 Remove BSD_PGRPS.
4885 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4886 * s/gnu-linux.h (BSD_PGRPS): Remove.
4887 * term.c (dissociate_if_controlling_tty):
4888 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4889 (init_sys_modes, reset_sys_modes):
4890 * emacs.c (main):
4891 * callproc.c (Fcall_process, child_setup): Remove code depending
4892 on BSD_PGRPS.
4893
ef03a4e6
DN
4894 Remove POSIX_SIGNALS.
4895 * s/usg5-4.h (POSIX_SIGNALS):
4896 * s/netbsd.h (POSIX_SIGNALS):
4897 * s/msdos.h (POSIX_SIGNALS):
4898 * s/ms-w32.h (POSIX_SIGNALS):
4899 * s/hpux11.h (POSIX_SIGNALS):
4900 * s/gnu.h (POSIX_SIGNALS):
4901 * s/gnu-linux.h (POSIX_SIGNALS):
4902 * s/freebsd.h (POSIX_SIGNALS):
4903 * s/darwin.h (POSIX_SIGNALS):
4904 * s/cygwin.h (POSIX_SIGNALS):
4905 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4906 * s/unixware.h:
4907 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4908 * process.c (create_process):
4909 * syssignal.h:
4910 * sysdep.c (wait_for_termination, init_signals):
4911 * process.c (create_process):
4912 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4913 remove all code that assumes the contrary.
4914
49628785
GM
49152010-05-04 Glenn Morris <rgm@gnu.org>
4916
27a2cdfc
GM
4917 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4918 variable.
4919 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4920 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4921 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4922 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4923 LD_SWITCH_SYSTEM_tmp.
4924 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4925 New variables, set by configure.
4926
eb21eab5
GM
4927 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4928 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4929 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4930 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4931 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4932
49628785
GM
4933 * s/aix4-2.h (C_SWITCH_SYSTEM):
4934 * m/alpha.h (C_SWITCH_MACHINE):
4935 Move to configure.in.
4936 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4937 New variables, set by configure.
4938 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4939 $c_switch_machine and $c_switch_system.
4940
7dff330b
DN
49412010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4942
4943 * s/hpux10-20.h (LIB_STANDARD): New definition.
4944 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4945 on it, not used anymore.
4946
53967e09
CY
49472010-05-03 Chong Yidong <cyd@stupidchicken.com>
4948
4949 * eval.c (internal_condition_case_n): Rename from
4950 internal_condition_case_2.
4951 (internal_condition_case_2): New function.
4952
4953 * xdisp.c (safe_call): Use internal_condition_case_n.
4954
4955 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4956 (internal_delete_file, Frename_file): Callers changed.
4957
4958 * buffer.c (Fkill_buffer):
4959 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4960
4961 * lisp.h: Update prototypes.
4962
3dee6fdb
GM
49632010-05-03 Glenn Morris <rgm@gnu.org>
4964
4965 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4966 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4967 (LIBXT): Set with configure, not cpp.
4968 (LIBX): Remove.
4969 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4970
a101e0fb
DN
49712010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4972
4973 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4974 The FreeBSD is not needed, the default works, Solaris version is
4975 not needed, and the remaining case is not supported by configure.
4976
f63d0028
JD
49772010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4978
4979 * xsmfns.c (CHDIR_OPT): New define.
4980 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4981 restarting emacs.
4982
4983 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4984 shut_down_emacs.
4985
4986 * emacs.c (USAGE1): Mention --chdir.
4987 (main): Handle --chdir.
4988 (standard_args): Add --chdir.
4989 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4990 #5552).
4991
e4814a9f
DN
49922010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4993
cd03c74a
DN
4994 Remove LD_SWITCH_MACHINE.
4995 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4996 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4997
c3a398a1
DN
4998 Clean up IRIX code.
4999 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
5000 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
5001
87e7285c
DN
5002 Clean up AIX code.
5003 * m/ibmrs6000.inp: Remove file, unused.
5004 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
5005 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
5006 definition ...
5007 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
5008
80f00217
JB
5009 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
5010 unused.
e4814a9f 5011
59ca28de
EZ
50122010-05-01 Eli Zaretskii <eliz@gnu.org>
5013
197daef4
EZ
5014 Emulate POSIX_SIGNALS on MS-Windows.
5015
5016 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
5017 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
5018
5019 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
5020 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
5021 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
5022
80f00217
JB
5023 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
5024 New stubs.
197daef4 5025
af7c7572
EZ
5026 Miscellaneous fixes of bidi display.
5027
59ca28de
EZ
5028 * xdisp.c (find_row_end): New function, refactored from display_line.
5029 (display_line): Use it.
017ea819
EZ
5030 (extend_face_to_end_of_line): In almost-filled rows, extend only
5031 if the row is R2L and not continued.
166e930d 5032 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 5033 Preserve overlay and string info in row->end.
166e930d
EZ
5034 (insert_left_trunc_glyphs): Support addition of left truncation
5035 glyphs to R2L rows.
b47e0dcf 5036 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
5037 glyph between adjacent windows. Fix a crash when a display string
5038 is continued to the next line. Don't return zero if cursor was
5039 found by `cursor' property of a display string.
b47e0dcf
EZ
5040 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
5041 test for that explicitly.
59ca28de 5042
7acac9f4
GM
50432010-05-01 Glenn Morris <rgm@gnu.org>
5044
5045 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
5046 for clarity.
5047 (OTHER_OBJ): Remove.
5048 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
5049 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
5050
45841e65
KK
50512010-05-01 Karel Klíč <kklic@redhat.com>
5052
5053 * fileio.c (Ffile_selinux_context): Context functions may return null.
5054
afc61943
DN
50552010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
5056
80f00217 5057 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 5058
5a1bb006
GM
50592010-04-30 Glenn Morris <rgm@gnu.org>
5060
5061 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
5062 (OTHER_OBJ): Define as a separate variable, for clarity.
5063
210af043
J
50642010-04-30 Jan Djärv <jan.h.d@swipnet.se>
5065
5066 * xsettings.c: include limits.h and update file comment.
5067
0a7df391
GM
50682010-04-30 Glenn Morris <rgm@gnu.org>
5069
d5096f16
GM
5070 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
5071 Set with configure, not cpp.
5072 (LIBW): Remove, replace with $TOOLKIT_LIBW.
5073
7eb1ac33
GM
5074 * Makefile.in (mallocobj): Remove.
5075 (otherobj): Simplify using @OTHER_OBJ@.
5076
517d086b
GM
5077 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
5078 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
5079 Don't bother making nsgui.h dependency platform-specific.
5080
0a7df391
GM
5081 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
5082
d6d23852
SM
50832010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
5084
d2630aef
SM
5085 * process.c (read_process_output, exec_sentinel): Don't burp if the
5086 sentinel/filter kills the current buffer (bug#6060).
5087
f9dddf52 5088 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
5089 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
5090 Remove unused var `args'.
5091 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
5092 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
5093 * doc.c (store_function_docstring): Use XSETCAR.
5094
f1e3642a
GM
50952010-04-28 Glenn Morris <rgm@gnu.org>
5096
faf535f8
GM
5097 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
5098 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
5099
c40f9449
GM
5100 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
5101
658f86ca
GM
5102 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
5103 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
5104
bc0b5f61
GM
5105 * Makefile.in (FONT_OBJ): New, set by configure.
5106 (FONT_DRIVERS): Use $FONT_OBJ.
5107
294c50a0
GM
5108 * Makefile.in (LIBXMU): Set with configure, not cpp.
5109 * s/aix4-2.h (LIBXMU):
5110 * s/hpux10-20.h (LIBXMU):
5111 Remove definition, now set in configure.
5112
e6ec4e99
GM
5113 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
5114
f1e3642a
GM
5115 * m/amdx86-64.h [i386]: Move this test to configure.in.
5116
c6ea2936
GM
51172010-04-27 Glenn Morris <rgm@gnu.org>
5118
8fdac2c3
GM
5119 * Makefile.in (LIBXTR6): Set with configure, not cpp.
5120 * s/unixware.h (NEED_LIBW): Remove definition.
5121
986fb647
GM
5122 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
5123 (TOOLKIT_LIBW): New, set by configure.
5124 (@X_TOOLKIT_TYPE@): No longer define it.
5125
c6ea2936
GM
5126 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
5127 (MOTIF_LIBW): Set with configure, not cpp.
5128 * s/aix4-2.h (LIB_MOTIF):
5129 * s/gnu-linux.h (LIB_MOTIF):
5130 * s/unixware.h (LIB_MOTIF): Move to configure.in.
5131
aaa36002
DN
51322010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
5133
5134 Reduce CPP usage.
5135 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5136 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
5137 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
5138 definitions and undefs. Inline definitions in the only user.
5139 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 5140
b678dd8b
GM
51412010-04-27 Glenn Morris <rgm@gnu.org>
5142
76cda504
GM
5143 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
5144 since the defaults (set by the system file) are fine in most cases.
5145 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
5146 * m/ibms390x.h (START_FILES, LIB_STANDARD):
5147 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
5148 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
5149 Remove definitions, since they are set correctly in s/gnu-linux.h.
5150 * s/freebsd.h (START_FILES, LIB_STANDARD):
5151 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5152 * s/hpux10-20.h (START_FILES):
5153 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
5154 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
5155
b678dd8b
GM
5156 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
5157 (MOTIF_LIBW): Use $LIBXP.
5158 (otherobj): Use $WIDGET_OBJ.
5159
9452ded1
DN
51602010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
5161
7e10844c
DN
5162 * Makefile.in (LIBS_MACHINE): Remove, unused.
5163
9452ded1
DN
5164 Use autoconf instead of cpp for LIB_MATH.
5165 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
5166 * s/cygwin.h (LIB_MATH): Likewise.
5167 * Makefile.in (LIB_MATH): Do not define with cpp.
5168 (LIBES): Use autoconf for LIB_MATH.
5169
fcebfc6a
KH
51702010-04-26 Kenichi Handa <handa@m17n.org>
5171
5172 * composite.c (Ffind_composition_internal): Fix the return value
5173 for an automatic composition.
5174
39e2ad1b
DN
51752010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
5176
5177 Remove all NO_ARG_ARRAY uses.
5178 * fns.c (concat2, concat3, nconc2):
5179 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
5180 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
5181 * m/xtensa.h (NO_ARG_ARRAY):
5182 * m/template.h (NO_ARG_ARRAY):
5183 * m/sparc.h (NO_ARG_ARRAY):
5184 * m/sh3.h (NO_ARG_ARRAY):
5185 * m/mips.h (NO_ARG_ARRAY):
5186 * m/macppc.h (NO_ARG_ARRAY):
5187 * m/iris4d.h (NO_ARG_ARRAY):
5188 * m/intel386.h (NO_ARG_ARRAY):
5189 * m/ibms390x.h (NO_ARG_ARRAY):
5190 * m/ibms390.h (NO_ARG_ARRAY):
5191 * m/ibmrs6000.h (NO_ARG_ARRAY):
5192 * m/ia64.h (NO_ARG_ARRAY):
5193 * m/hp800.h (NO_ARG_ARRAY):
5194 * m/arm.h (NO_ARG_ARRAY):
5195 * m/amdx86-64.h (NO_ARG_ARRAY):
5196 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5197
adf4f59c
EZ
51982010-04-25 Eli Zaretskii <eliz@gnu.org>
5199
6bdf5d65
EZ
5200 * xdisp.c (display_line): Don't assume 2nd call to
5201 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
5202 (iterate_out_of_display_property): New function, body from pop_it.
5203 (pop_it): Use it.
adf4f59c 5204
dfbbda83
GM
52052010-04-24 Glenn Morris <rgm@gnu.org>
5206
5207 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5208 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5209 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5210 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
5211
2d4018aa
EZ
52122010-04-24 Eli Zaretskii <eliz@gnu.org>
5213
a49884a6
EZ
5214 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5215 use `get_next_display_element' and `set_iterator_to_next' to
5216 advance to the next character, when looking for the character that
5217 begins the next row.
5218
76db6fcc 5219 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
5220 definition of "struct Lisp_Symbol".
5221
70eab5c1
GM
52222010-04-24 Glenn Morris <rgm@gnu.org>
5223
5224 * Makefile.in (CRT_DIR): New variable, set by configure.
5225 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5226 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5227
1ad4cc3d
DN
52282010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5229
e769f484
DN
5230 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5231
4196ff33
DN
5232 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5233
879b0ee4
DN
5234 Remove redundant flags.
5235 * s/freebsd.h (C_SWITCH_SYSTEM):
5236 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5237 * s/netbsd.h (C_SWITCH_SYSTEM):
5238 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5239 of these.
5240
03cbbcb8
DN
5241 Simplify m/intel386.h.
5242 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5243 user: ecrt0.c.
5244 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5245 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5246 the only user: s/unixware.h.
5247 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5248 from m/intel386.h.
5249 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5250 moved here from m/intel386.h.
5251
1ad4cc3d
DN
5252 * m/mips.h: Remove #if 0 code.
5253
8785b888
EZ
52542010-04-23 Eli Zaretskii <eliz@gnu.org>
5255
728588cc
EZ
5256 Fix display of composed characters from L2R scripts in bidi buffers.
5257 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5258 After advancing IT past the composition, resync the bidi iterator
5259 with IT's position. (Bug#5977)
5260
a63f80b4
DN
52612010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5262
5263 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5264 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5265
ff5dec5c
SM
52662010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5267
5268 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5269
8785b888
EZ
52702010-04-23 Eli Zaretskii <eliz@gnu.org>
5271
58ccf243 5272 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
5273 * xdisp.c (pop_it): When the stack is popped after displaying
5274 from a string, bidi-iterate to exit from the text portion covered
5275 by the `display' property or overlay. (Bug#5988, bug#5920)
5276
feeb1604
DN
52772010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5278
8e324eb6
DN
5279 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5280 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5281
809fcaba
DN
5282 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5283 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5284
ed710380
DN
5285 Simplify STARTFILES definition.
5286 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5287 relying on Makefile.in to define it.
5288 * s/cygwin.h (START_FILES): Likewise.
5289 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5290
feeb1604
DN
5291 Clean up Solaris code.
5292 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5293 (LIB_MOTIF): Remove, configure takes care of this.
5294 (NOT_USING_MOTIF): Remove, unused.
5295 * xrdb.c: Remove #if 0-ed #include.
5296 (SYSV): Remove conditional for old SysV.
5297 * sysdep.c (closedir): Remove conditional code for Solaris,
5298 Solaris has closedir.
5299
a0d0b563
JD
53002010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5301
5302 * xsettings.c (read_and_apply_settings): Check if current_font is
5303 NULL before strcmp (Bug#6001).
5304
56bae7c7
DN
53052010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5306
5307 Clean up HP-UX files.
5308 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5309 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5310 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5311 * s/hpux10-20.h: ... to the only user, here.
5312
372b7a95
EZ
53132010-04-21 Eli Zaretskii <eliz@gnu.org>
5314
5315 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5316 use buffer-local values of paragraph-start and paragraph-separate.
5317 <paragraph_start_re, paragraph_separate_re>: Rename from
5318 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5319 (Bug#5992)
5320
f904c0f9
JD
53212010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5322
5323 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5324 current_tool_bar_style are new.
5325 (store_config_changed_event): Rename from store_font_changed_event.
5326 (XSETTINGS_TOOL_BAR_STYLE): New define.
5327 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5328 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5329 HAVE_XFT.
5330 (something_changedCB): store_font_changed_event is now
c4cc8b9a 5331 store_config_changed_event.
f904c0f9
JD
5332 (parse_settings): Rename from parse_xft_settings. Read
5333 non-xft xsettings outside #ifdef HAVE_XFT.
5334 (read_settings): Renamed from read_xft_settings.
5335 (apply_xft_settings): Take current settings as parameter. Do not
5336 call read_(xft)_settings.
5337 (read_and_apply_settings): New function.
5338 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5339 read_and_apply_settings if there are settings to be read.
5340 (init_xsettings): Renamed from init_xfd_settings.
5341 Call read_and_apply_settings unconditionally.
5342 (xsettings_initialize): Call init_xsettings.
5343 (Ftool_bar_get_system_style): New function.
5344 (syms_of_xsettings): Define Qmonospace_font_name and
5345 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 5346 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 5347 dynamic-setting.
31a01b90 5348 Move misplaced HAVE_GCONF
f904c0f9
JD
5349
5350 * xsettings.h (Ftool_bar_get_system_style): Declare.
5351
5352 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5353 Qtext, Qboth, Qboth_horiz are new.
5354 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5355 Vtool_bar_style, tool_bar_max_label_size.
5356
5357 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5358
5359 * keyboard.c: QClabel is new.
5360 (parse_tool_bar_item): Take out QClabel from tool bar items.
5361 Try to construct a label if ther is no QClabel.
5362 (syms_of_keyboard): Intern :label as QClabel.
5363
5364 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5365 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5366 New.
5367
5368 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5369 dynamic-setting.el.
5370
5371 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5372 (xg_make_tool_item, xg_show_toolbar_item): New function.
5373 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5374 Call xg_make_tool_item to make a tool bar item.
5375 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5376
5377 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5378 into account for toolbars.
5379
c632dfda
JD
53802010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5381
5382 * data.c (make_blv): Declarations before code (Bug#5993).
5383
10efe302
GM
53842010-04-21 Glenn Morris <rgm@gnu.org>
5385
5386 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5387 Define using autoconf, not cpp.
5388 (LIBXSM): New variable, set by autoconf.
5389 (LIBXT): Use $LIBXSM.
5390
4285ac5a
DN
53912010-04-21 Dan Nicolaescu <local_user@dannlt>
5392
3ec759e7
DN
5393 Remove NOMULTIPLEJOBS, unused.
5394 * s/template.h (NOMULTIPLEJOBS):
5395 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5396
4285ac5a
DN
5397 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5398 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5399 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5400 detects -znocombreloc and passes it to the linker
5401 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5402
2807228d
GM
54032010-04-21 Glenn Morris <rgm@gnu.org>
5404
5405 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5406
574c05e2
KK
54072010-04-21 Karel Klíč <kklic@redhat.com>
5408
5409 * Makefile.in (LIBSELINUX_LIBS): New.
5410 (LIBES): Add $LIBSELINUX_LIBS.
5411 * eval.c, lisp.h (call7): New function.
5412 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5413 (Ffile_selinux_context, Fset_file_selinux_context):
5414 New functions.
5415 (Fcopy_file): New parameter preserve-selinux-context.
5416 (Frename_file): Preserve selinux context when renaming by copy-file.
5417
91eac4bb 54182010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 5419 Eli Zaretskii <eliz@gnu.org>
91eac4bb 5420
50426a04
JB
5421 Don't depend on cm.c or termcap.c on Windows, use stubs.
5422 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5423 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5424 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5425 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5426 (sys_tputs, sys_tgetstr): New stubs.
5427 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5428 (tputs, tgetstr): New; define to sys_*.
91eac4bb 5429
938efb77
JB
54302010-04-20 Juanma Barranquero <lekktu@gmail.com>
5431
5432 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5433
b4bf28b7
SM
54342010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5435
8b1e1112
SM
5436 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5437 Just signal a warning rather than an error when inside a let.
5438 (Fmake_variable_frame_local): Add the same test.
5439
933ac235
SM
5440 * font.c (syms_of_font): Make the style table vars read-only.
5441
b4bf28b7
SM
5442 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5443 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5444
5445 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5446
93d68d0c
EZ
54472010-04-20 Eli Zaretskii <eliz@gnu.org>
5448
5449 Fix R2L paragraph display on TTY.
5450
5451 * xdisp.c (unproduce_glyphs): New function.
5452 (display_line): Use it when produced glyphs are discarded from R2L
5453 glyph rows.
5454 (append_composite_glyph): In R2L rows, prepend the glyph rather
5455 than appending it.
5456
5457 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5458 rather than append it. Set up the resolved_level and bidi_type
5459 attributes of the appended glyph.
283ccc18
EZ
5460 (produce_special_glyphs): Mirror the backslash continuation
5461 character in R2L lines.
93d68d0c 5462
283ccc18 5463 Implement display of R2L paragraphs in GUI sessions.
26cdf528 5464
283ccc18
EZ
5465 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5466 append_stretch_glyph.
5467 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5468 off-by-one error in computing x at end of text in the row.
5469 (append_stretch_glyph): In reversed row, prepend the glyph rather
5470 than append it. Set resolved_level and bidi_type of the glyph.
5471 (extend_face_to_end_of_line): If the row is reversed, prepend a
5472 stretch glyph whose width is such that the rightmost glyph will be
5473 drawn at the right margin of the window. Fix off-by-one error on
5474 TTY frames in testing whether a line needs face extension. Fix
5475 face extension at ZV. If this is the last glyph row, use
5476 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5477 region face.
5478 (set_cursor_from_row, display_line): Use
26cdf528
EZ
5479 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5480 row->continuation_lines_width.
283ccc18
EZ
5481 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5482 are at ZV. Fixes a crash when reseated to ZV by
5483 try_window_reusing_current_matrix.
45903529
EZ
5484 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5485 which happens with R2L glyph rows. Fixes a crash when inserting a
5486 character at end of an R2L line.
283ccc18
EZ
5487 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5488 treat them as having zero-width characters. Improve comments.
5489 Don't reverse pos_before and pos_after for reversed glyph rows.
5490 Set cursor.x to negative value when the cursor might be on the
5491 left fringe.
5492 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5493 left fringe, not the right one.
f951a506
EZ
5494 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5495 (erase_phys_cursor): For reversed cursor_row, support cursor on
5496 the left fringe.
5497
283ccc18
EZ
5498 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5499 of continuation indicators on the fringes.
5500 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5501 left fringe.
5502
f951a506
EZ
5503 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5504 draw cursor on the left fringe.
5505
5506 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5507 cursor on the left fringe.
5508
f951a506
EZ
5509 * dispnew.c (update_text_area): Handle reversed desired rows when
5510 the cursor is on the left fringe.
5511 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5512 below, not by 0, for when the cursor is on the left fringe.
5513
3bb49aaf
JD
55142010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5515
5516 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5517 widget is a scrollbar.
5518
c0be27fd
KH
55192010-04-20 Kenichi Handa <handa@m17n.org>
5520
5521 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5522 only when the arg CHARSET_LIST is nil.
5523
ce5b453a
SM
55242010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5525
5526 Make variable forwarding explicit rather the using special values.
5527 Basically, this makes the structure of buffer-local values and object
5528 forwarding explicit in the type of Lisp_Symbols rather than use
5529 special Lisp_Objects for that. This tends to lead to slightly more
5530 verbose code, but is more C-like, simpler, and makes it easier to make
5531 sure we handled all cases, among other things by letting the compiler
5532 help us check it.
5533 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5534 Removing forwarding objects.
5535 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5536 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5537 explicit rather than hiding them inside Lisp_Object "values".
5538 (XFWDTYPE): New macro.
5539 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5540 (XBUFFER_LOCAL_VALUE): Remove.
5541 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5542 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5543 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5544 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5545 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5546 Remove the Lisp_Misc_* header.
5547 (struct Lisp_Buffer_Local_Value): Redefine.
5548 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5549 (struct Lisp_Misc_Any): Add filler to get the right size.
5550 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5551 Lisp_Intfwd.
5552 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5553 (DEFVAR_KBOARD): Allocate a forwarding object.
5554 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5555 (let_shadows_global_binding_p): New function.
5556 (union Lisp_Val_Fwd): New type.
5557 (make_blv): New function.
5558 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5559 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5560 (swap_in_symval_forwarding, find_symbol_value, Fset)
5561 (let_shadows_buffer_binding_p, set_internal, default_value)
5562 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5563 (Fkill_local_variable, Fmake_variable_frame_local)
5564 (Flocal_variable_p, Flocal_variable_if_set_p)
5565 (Fvariable_binding_locus):
5566 * xdisp.c (select_frame_for_redisplay):
5567 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5568 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5569 * frame.c (store_frame_param):
5570 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5571 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5572 value structure.
5573 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5574 (clone_per_buffer_values): Only adjust markers into the current buffer.
5575 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5576 (Fbuffer_local_value, set_buffer_internal_1)
5577 (swap_out_buffer_local_variables):
5578 Adapt to the new symbol value structure.
5579 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5580 (defvar_per_buffer): Take a new arg for the fwd object.
5581 (buffer_lisp_local_variables): Return a proper alist (different fix
5582 for bug#4138).
5583 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5584 (Fgarbage_collect): Don't handle buffer_defaults specially.
5585 (mark_object): Handle new symbol value structure rather than the old
5586 special Lisp_Misc_* objects.
5587 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5588 * term.c (set_tty_color_mode):
5589 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5590 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5591 a buffer_local_flags.
5592 * print.c (print_object): Get rid of impossible forwarding objects.
5593
fd3998ff
EZ
55942010-04-19 Eli Zaretskii <eliz@gnu.org>
5595
5596 * bidi.c (bidi_get_type, bidi_get_category)
5597 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
5598 (bidi_type_of_next_char, bidi_level_of_next_char):
5599 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 5600
e42cd1a7
JB
56012010-04-19 Juanma Barranquero <lekktu@gmail.com>
5602
5603 * dired.c (Ffile_attributes): Fix typo in docstring.
5604
6e104790 56052010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
5606
5607 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5608 NSInteger (Bug#5811).
5609
6e104790 56102010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
5611
5612 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5613 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5614
6e104790 56152010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
5616
5617 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5618
6e104790
SM
56192010-04-19 Chong Yidong <cyd@stupidchicken.com>
5620
5621 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5622 terminal frames (Bug#5837).
5623
37dcfea0
EZ
56242010-04-19 Eli Zaretskii <eliz@gnu.org>
5625
d1da276f
EZ
5626 * .gdbinit (xsubchartable): New command.
5627
37dcfea0
EZ
56282010-04-19 Eli Zaretskii <eliz@gnu.org>
5629
5630 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 5631 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
5632 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5633 and
5634 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5635
e9515805
SM
56362010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5637
5638 * alloc.c (Fpurecopy): Hash-cons if requested.
5639 (syms_of_alloc): Update purify-flag docstring.
5640
22aa44a8
JD
56412010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5642
5643 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5644 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5645
ebb5722e
EZ
56462010-04-17 Eli Zaretskii <eliz@gnu.org>
5647
5648 Fix a crash when an NSM character is inserted at BEGV.
5649
5650 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5651 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5652 NEUTRAL_B or UNKNOWN_BT.
5653
0f4442ef
EZ
56542010-04-16 Eli Zaretskii <eliz@gnu.org>
5655
5656 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5657 other rows with cursor unless they are different from this row and
5658 this row is part of a continued line. (Bug#5943)
5659
7d4e45f8
DN
56602010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5661
5662 * s/freebsd.h: Restore osreldate.h include.
5663 Suggested by Naohiro Aota.
5664
5ba5ec85
J
56652010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5666
5667 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5668
20af301d
CY
56692010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5670
5671 * s/cygwin.h: Avoid linking against static libgcc.
5672
a4b000fb
JL
56732010-04-15 Juri Linkov <juri@jurta.org>
5674
5675 * window.c: Add Qscroll_command.
5676 Remove Vscroll_preserve_screen_position_commands.
5677 (window_scroll_pixel_based, window_scroll_line_based): Check the
5678 `scroll-command' property on the last command instead of searching
5679 the last command in Vscroll_preserve_screen_position_commands.
5680 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5681 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5682 (scroll-preserve-screen-position): Doc fix.
5683 (Vscroll_preserve_screen_position_commands): Remove variable.
5684
bc319ba4
DN
56852010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5686
6bb24457
DN
5687 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5688
19d4c244
DN
56892010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5690
5691 Reduce cpp use in Makefile.in.
5692 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5693 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5694 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5695 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5696 (CRT0_COMPILE): Remove, inline it in the only user.
5697
32129746
JL
56982010-04-14 Juri Linkov <juri@jurta.org>
5699
5700 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5701 `scroll-up-command' and `M-v' from `scroll-down' to
5702 `scroll-down-command'.
5703
9013a7f8
JL
57042010-04-14 Juri Linkov <juri@jurta.org>
5705
5706 * window.c (Vscroll_preserve_screen_position_commands): New variable
5707 with the default value as the list of Qscroll_down and Qscroll_up.
5708 (window_scroll_pixel_based, window_scroll_line_based): Search the
5709 last command in the list Vscroll_preserve_screen_position_commands
5710 instead of comparing with Qscroll_up and Qscroll_down.
5711
4bef8d26
JD
57122010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5713
92848133
JD
5714 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5715 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5716 does that.
5717
4bef8d26
JD
5718 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5719 to zero.
5720
58b963f7
SM
57212010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5722
84164a0d
SM
5723 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5724
2b0a91e7
SM
5725 Try to solve the problem of spurious EOF chars in long lines of text
5726 sent to interactive subprocesses.
5727 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5728 (system_process_attributes): Remove unused var `ttotal'.
5729 * process.c (send_process): Don't bother breaking long line with EOF
5730 chars when talking to ttys any more.
5731 (wait_reading_process_output): Output a warning when called in such
5732 a way that it could block without being interruptible.
5733
58b963f7
SM
5734 Try to detect file modification within the same second.
5735 * buffer.h (struct buffer): New field modtime_size.
5736 * buffer.c (reset_buffer): Initialize it.
5737 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5738 (Fverify_visited_file_modtime): Check it.
5739 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5740 (Fset_visited_file_modtime): Set (or clear) it.
5741
01f5787b
SM
57422010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5743
5744 * process.c (status_notify): Remove unused var `ro'.
5745
83725342
JD
57462010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5747
5748 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5749 more than one visual (Bug#5938).
5750
b9465836
DN
57512010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5752
50426a04
JB
5753 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5754 Undefine.
b9465836 5755
8d9c8ece
DN
57562010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5757
b1f52161
DN
5758 Remove C_SWITCH_SYSTEM_TEMACS.
5759 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5760 (malloc, realloc, free): Use emacs, not temacs for conditional
5761 definition.
5762
5763 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5764 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5765
8d9c8ece
DN
5766 Use autoconf, not cpp for some variables.
5767 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5768 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5769 (ALL_CFLAGS): Use them as make variables.
5770 (really-lwlib, really-oldXMenu): Do not pass them.
5771
1ecb2d3f
JD
57722010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5773
5774 * xmenu.c (apply_systemfont_to_dialog): New.
5775 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5776
3a4fa2f2
SM
57772010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5778
97e53006
SM
5779 * process.c (exec_sentinel): Preserve current-buffer.
5780
3a4fa2f2
SM
5781 * process.c (read_process_output): Move the save-current-buffer to
5782 apply to both the filter and the non-filter branches.
5783
88df7221
DN
57842010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5785
5786 * s/msdos.h (UNEXEC): New definition.
5787
5634ff85
YM
57882010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5789
6eff5c3d
YM
5790 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5791 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5792
5793 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5794 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5795 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5796 TRY_WINDOW_CHECK_MARGINS.
5797
5798 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5799 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5800 width only when it is for padding.
5634ff85 5801
b13aef54
J
58022010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5803
5804 * xfns.c (Fx_show_tip): Call try_window in a loop until
5805 fonts_changed_p is zero (Bug#2423).
5806
21d28484
EZ
58072010-04-08 Eli Zaretskii <eliz@gnu.org>
5808
5809 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5810 the end of TEXT_AREA. (Bug#5856)
5811
0269ef77
JD
58122010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5813
5814 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5815 HAVE_GCONF.
5816
5930fe97
EZ
58172010-04-08 Eli Zaretskii <eliz@gnu.org>
5818
5819 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5820 prev.orig_type, for resolving type of NSM. (Bug#5858)
5821
99852628
JD
58222010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5823
5824 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5825 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5826 in current_font.
5827 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5828 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5829 New functions.
5830 (syms_of_xsettings): Initialize current_font.
5831 defsubr Sfont_get_system_normal_font.
99852628 5832
686b968e
JB
5833 * xsettings.h (Ffont_get_system_normal_font)
5834 (xsettings_get_system_normal_font): Declare.
99852628
JD
5835
5836 * xfns.c (extern xlwmenu_default_font): Remove.
5837 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5838 to xlwmenu.c.
5839
5840 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5841 menu items in UTF-8.
5842
5843 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5844 (apply_systemfont_to_menu): New function.
5845 (set_frame_menubar, create_and_show_popup_menu): Call
5846 apply_systemfont_to_menu.
5847
7fc874c4
J
58482010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5849
5850 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5851 FRAME_LINE_TO_PIXEL_Y.
5852
5853 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5854 pixelwidth/height.
5855
863bf481
DN
58562010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5857
5e5a3b92
DN
5858 Simplify code for HP machines.
5859 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5860 for GNU_LINUX, not needed.
5861 (UNEXEC, NEED_BSDTTY): Move definitions...
5862 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5863
863bf481
DN
5864 * m/iris4d.h (UNEXEC): Move definition ...
5865 * s/irix6-5.h (UNEXEC): ... here.
5866
3e6bec3b
JD
58672010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5868
5869 * xfns.c (set_machine_and_pid_properties): New function.
5870 (Fx_create_frame): Call set_machine_and_pid_properties.
5871
2912322b
SM
58722010-04-03 Eli Zaretskii <eliz@gnu.org>
5873
1502b819
EZ
5874 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5875 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5876 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5877
2912322b
SM
5878 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5879 in this function. (Bug#5703)
5880
58812010-04-03 Chong Yidong <cyd@stupidchicken.com>
5882
5883 * nsterm.h: Fix last change.
5884
c435b432
DN
58852010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5886
a568f507
DN
5887 * m/intel386.h (NO_REMAP): Move definition ...
5888 * s/msdos.h (NO_REMAP): ... here.
5889
4cd9f6c2
DN
5890 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5891
c435b432
DN
5892 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5893 used on those platforms.
5894
42a2c622
DN
58952010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5896
5897 Remove extern errno declarations.
5898 * xterm.c:
5899 * xrdb.c:
5900 * w32term.c:
5901 * unexec.c:
5902 * unexaix.c:
5903 * sysdep.c:
5904 * process.c:
5905 * lread.c:
5906 * keyboard.c:
5907 * floatfns.c:
5908 * filelock.c:
5909 * fileio.c:
5910 * emacs.c (main):
5911 * ecrt0.c:
5912 * dispnew.c:
5913 * callproc.c:
5914 * buffer.c: Remove errno extern declarations.
5915 * s/netbsd.h (NEED_ERRNO): Remove.
5916
8224f93d
DN
59172010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5918
5919 Remove all uses of LIBX11_SYSTEM.
5920 * Makefile.in (LIBX11_SYSTEM): Remove.
5921 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5922 instead.
5923
814062c7
EZ
59242010-04-01 Eli Zaretskii <eliz@gnu.org>
5925
ed68db4d
EZ
5926 Remove support for DJGPP v1.x (bug#5813).
5927
5928 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5929 * s/msdos.h:
5930 * unexec.c (make_hdr, copy_text_and_data):
5931 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5932 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5933 (IT_set_terminal_modes, __write, _rename, gethostname)
5934 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5935 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5936 the value of __DJGPP__.
ed68db4d
EZ
5937 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5938 compatibility code.
8224f93d
DN
5939 * lread.c:
5940 * gmalloc.c (memalign):
5941 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5942 * emacs.c (main):
5943 * dosfns.c (init_dosfns):
ed68db4d
EZ
5944 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5945
52f4d8d5
EZ
59462010-04-01 Eli Zaretskii <eliz@gnu.org>
5947
814062c7
EZ
5948 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5949 string with `cursor' property comes from an `after-string'
5950 overlay. (Bug#5816)
5951
0dc2e11d
GM
59522010-04-01 Glenn Morris <rgm@gnu.org>
5953
5954 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5955 Define as Makefile variables.
5956 (LIBX): Use above variables rather than directly using autoconf.
5957
1d29df59
DN
59582010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5959
5960 Clean up BSD_SYSTEM use.
5961 * xterm.c:
5962 * process.c:
5963 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5964 for including <sys/ioctl.h>.
5965 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5966 code is only used for MSDOS.
5967
1546c559
JL
59682010-03-31 Juri Linkov <juri@jurta.org>
5969
5970 * image.c: Add `Qextension_data'.
5971 (syms_of_image): Initialize and staticpro `Qextension_data'.
5972 (Fimage_metadata): Rename from `Fimage_extension_data'.
5973 (gif_load): Put GIF extension data to the property
5974 `Qextension_data'.
5975
6521c534
CY
59762010-03-31 Chong Yidong <cyd@stupidchicken.com>
5977
5978 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5979 * nsterm.h: Fix prototype.
5980
52c30783
EZ
59812010-03-31 Eli Zaretskii <eliz@gnu.org>
5982
5983 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5984 trailing whitespace in right-to-left rows.
5985
855a0da7
SM
59862010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5987
5988 Get rid of the direct_output optimizations.
5989 * keyboard.c (nonundocount): Remove extern declaration.
5990 (command_loop_1): Remove brittle optimisation for cheap and
5991 common operations.
5992 * xdisp.c (redisplay_internal): Don't bother checking
5993 redisplay_performed_directly_p any more.
5994 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5995 any more.
5996 * dispnew.c (redisplay_performed_directly_p)
5997 (direct_output_for_insert, direct_output_forward_char):
5998 * dispextern.h (redisplay_performed_directly_p)
5999 (direct_output_for_insert, direct_output_forward_char): Remove.
6000 * cmds.c (nonundocount): Make it static.
6001
85738751 60022010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
6003
6004 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
6005
85738751 60062010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
6007
6008 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
6009 invisible (Bug#5766).
6010
85738751 60112010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 6012
855a0da7
SM
6013 * xdisp.c (x_consider_frame_title, update_window_cursor):
6014 Remove HAVE_NS conditionals.
194d44e7 6015 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
6016
6017 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
6018 filename for the title.
6019 (ns_set_doc_edited): Do nothing if the selected window is a
6020 minibuffer window.
6021
6022 * nsterm.h: Add prototypes for ns_set_name_as_filename and
6023 ns_set_doc_edited.
6024
6025 * nsterm.m: Remove unneeded prototype.
6026
85738751 60272010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
6028
6029 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
6030 in the DOC file. (Bug#5336)
6031
85738751 60322010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
6033
6034 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
6035
75d1428c
SM
60362010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6037
6038 * window.c (keys_of_window): Remove redundant/overridden bindings.
6039
82043cfb
EZ
60402010-03-30 Eli Zaretskii <eliz@gnu.org>
6041
6042 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
6043 Restore original behavior when the iterator is not bidi_p.
6044
b5dd0ae7
DN
60452010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6046
6047 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
6048
bd924a5d
EZ
60492010-03-30 Eli Zaretskii <eliz@gnu.org>
6050
6051 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
6052 are outside the range of cached character positions.
6053
3580374b
JB
60542010-03-30 Juanma Barranquero <lekktu@gmail.com>
6055
6056 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
6057
a7b02820
EZ
60582010-03-30 Eli Zaretskii <eliz@gnu.org>
6059
6060 Initial support for bidirectional editing.
6061
6062 * Makefile.in (obj): Include bidi.o.
6063 (bidi.o): New target.
6064
6065 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
6066 ($(BLD)/bidi.$(O)): New target.
6067
6068 * bidi.c: New file.
6069
6070 * buffer.h (struct buffer): New members bidi_display_reordering
6071 and bidi_paragraph_direction.
6072
6073 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
6074 and bidi_paragraph_direction.
6075 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
6076 and bidi-paragraph-direction.
6077 (Fbuffer_swap_text): Swap the values of
6078 bidi_display_reordering and bidi_paragraph_direction.
6079
6080 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
6081 (bidi_type_t, bidi_dir_t): New types.
6082 (bidi_saved_info, bidi_stack, bidi_it): New structures.
6083 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
6084 prev_stop, base_level_stop, and eol_pos.
6085 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
6086 (IT_STACK_SIZE): Enlarge to 5.
6087 (struct glyph_row): New member reversed_p.
6088 <string_buffer_position>: Update prototype.
6089 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
6090 glyph_row if bidi_it.paragraph_dir == R2L.
6091 (struct glyph): New members resolved_level and bidi_type.
6092
6093 * dispnew.c (direct_output_forward_char): Give up if we need bidi
6094 processing or buffer's direction is right-to-left.
6095 (prepare_desired_row): Preserve the reversed_p flag.
6096 (row_equal_p): Compare the reversed_p attributes as well.
6097
6098 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
6099 bidi_init_it and set it->paragraph_embedding from the current
6100 buffer's value of bidi_paragraph_direction.
6101 (reseat_1): Initialize bidi_it.first_elt.
6102 (set_iterator_to_next, next_element_from_buffer): Use the value of
6103 paragraph_embedding to determine the paragraph direction.
6104 (set_iterator_to_next): Under bidi reordering, call
6105 bidi_get_next_char_visually. Call bidi_paragraph_init if the
6106 new_paragraph flag is set in the bidi iterator.
6107 (next_element_from_buffer): If bidi_it.first_elt is set,
6108 initialize paragraph direction and find the first character to
6109 display in the visual order. If reseated to a middle of a line,
6110 prime the bidi iterator starting at the line's beginning. Handle
6111 the situation where we overstepped stop_charpos due to
6112 non-linearity of the bidi iteration. Likewise for when we back up
6113 beyond the previous stop_charpos. When moving across stop_charpos,
6114 record it in prev_stop.
6115 (display_line): Set row->end and it->start for the next row to the
6116 next character in logical order. Always extend reversed_p rows to
6117 the end of line, even if they end at ZV. Copy the reversed_p flag
6118 to the next glyph row. Keep calling set_cursor_from_row for
6119 bidi-reordered rows even if we already have a possible candidate
6120 for cursor position. Set row_end after all the row's glyphs have
6121 been produced, by looping over the glyphs. Record the position
6122 after EOL in it->eol_pos, and use it to set end_pos of the last
6123 row produced for a continued line.
6124 <Qright_to_left, Qleft_to_right>: New variables.
6125 (syms_of_xdisp): Initialize and staticpro them.
6126 (string_buffer_position_lim): New function.
6127 (string_buffer_position): Most of code moved to
6128 string_buffer_position_lim. Last argument and return value are
6129 now EMACS_INT; all callers changed.
6130 (set_cursor_from_row): Rewritten to support bidirectional text and
6131 reversed glyph rows.
6132 (text_outside_line_unchanged_p, try_window_id): Disable
6133 optimizations if we are reordering bidirectional text and the
6134 paragraph direction can be affected by the change.
6135 (append_glyph, append_composite_glyph)
6136 (produce_image_glyph, append_stretch_glyph): Set the
6137 resolved_level and bidi_type members of each glyph.
6138 (append_glyph): If the glyph row is reversed, prepend the glyph
6139 rather than appending it.
6140 (handle_stop_backwards): New function.
6141 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
6142 (reseat): call handle_stop_backwards to recompute prev_stop and
6143 base_level_stop for the new position.
6144 (handle_invisible_prop): Under bidi iteration, skip invisible text
6145 using bidi_get_next_char_visually. If we are `reseat'ed, init the
6146 paragraph direction. Update IT->prev_stop after skipping
6147 invisible text.
6148 (move_it_in_display_line_to): New variables prev_method
6149 and prev_pos. Compare for strict equality in
6150 BUFFER_POS_REACHED_P.
6151 (try_cursor_movement): Examine all the candidate rows that occlude
6152 point, to return the best match. If rows are bidi-reordered
6153 and point moved backwards, back up to the row that is not a
6154 continuation line, and start looking for a suitable row from
6155 there.
6156
6157 * term.c (append_glyph): Reverse glyphs by pre-pending them,
6158 rather than appending, if the glyph_row's reversed_p flag is set.
6159 Set the resolved_level and bidi_type members of each glyph.
6160
6161 * .gdbinit (pbiditype): New command.
6162 (pgx): Use it to display bidi level and type of the glyph.
6163 (pitx): Display some bidi information about the iterator.
6164 (prowlims, pmtxrows): New commands.
6165
32a8894e
DN
61662010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6167
6168 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
6169 * s/usg5-4.h (LIBS_DEBUG):
6170 * s/irix6-5.h (C_DEBUG_SWITCH):
6171 * s/gnu-linux.h (LIBS_DEBUG):
6172 * s/darwin.h (LIBS_DEBUG):
6173 * s/bsd-common.h (LIBS_DEBUG):
6174 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
6175 * m/iris4d.h (LIBS_DEBUG):
6176 * m/hp800.h (LIBS_DEBUG): Remove definitions.
6177
6178 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
6179 (LIBS_DEBUG): Remove definition.
6180
649dbf36
CY
61812010-03-27 Chong Yidong <cyd@stupidchicken.com>
6182
6183 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
6184 Windows.
6185
cad4261f
YM
61862010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6187
6188 * process.c (Fmake_network_process): Don't call turn_on_atimers around
6189 `connect' (Bug#5723).
6190
cd591dbc
HE
61912010-03-25 Helmut Eller <eller.helmut@gmail.com>
6192
6193 * process.c (Fmake_network_process): Call `select' for interrupted
6194 `connect' rather than creating new socket (Bug#5173).
6195
e867cb5d 61962010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
6197
6198 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6199
6200 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6201
6202 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6203
e867cb5d 62042010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
6205
6206 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6207 XLoadQueryFont.
6208
e867cb5d 62092010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
6210
6211 * coding.c (decode_coding_ccl): Fix previous change for the
6212 multibyte case.
fb608df3
KH
6213 (encode_coding_ccl): Don't setup ccl program here. Fix for the
6214 case that the output buffer is fullfilled.
6215 (encode_coding): Setup ccl program here.
fbdc1721 6216
5845f0ed
DN
62172010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
6218
814fb708
DN
6219 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6220
5845f0ed
DN
6221 Simplify LIBS_MACHINE definitions.
6222 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6223 * m/iris4d.h (LIBS_MACHINE): Likewise.
6224 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6225 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 6226 * s/netbsd.h: Remove commented out code.
5845f0ed 6227
b7064064
DN
62282010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6229
df7734b2
DN
6230 Remove dead code dealing with POSIX_SIGNALS.
6231 * atimer.c (set_alarm): Remove dead code, all USG systems define
6232 POSIX_SIGNALS.
6233 * data.c (arith_error): Likewise.
6234 * keyboard.c (input_available_signal, handle_user_signal)
6235 (interrupt_signal): Likewise.
6236 * process.c (sigchld_handler): Likewise.
6237 (create_process): Remove if 0 code. Remove HPUX conditional when
6238 !defined (POSIX_SIGNALS), it cannot be true.
6239 * syssignal.h: Remove USG5_4 and USG conditionals when
6240 !POSIX_SIGNALS, they cannot be true.
6241
b7064064
DN
6242 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6243 NO_SOCK_SIGIO, not used anymore.
6244
55da5ee3
DN
62452010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6246
0be96e3a
DN
6247 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6248 support vax on BSDs.
6249
55da5ee3
DN
6250 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6251 * s/aix4-2.h (ORDINARY_LINK): ... here.
6252
c0282183
AS
62532010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6254
82c3d67a
AS
6255 * Makefile.in (abs_builddir): Define.
6256 (bootstrap_exe): Use it.
6257 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 6258
3613edce
SM
62592010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6260
6261 * Makefile.in (bootstrap_exe): Use an absolute name.
6262
7f110ddc
DN
62632010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6264
22e87574
DN
6265 Remove support for old GNU/Linux using libc version 5.
6266 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6267 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6268
05a670e6
DN
6269 Consolidate redundant definitions in s/bsd-common.h.
6270 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6271 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6272 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6273 doing it in all files that include this one.
6274 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6275 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6276 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6277 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6278 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6279 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6280 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6281 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6282 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6283
2968f561
DN
6284 Consolidate redundant definitions.
6285 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6286 it's undefined in all files that include this one.
6287 (POSIX_SIGNALS): Define here instead of doing it in all files that
6288 include this one.
6289 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6290 (POSIX_SIGNALS): Do not define.
6291 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6292 (POSIX_SIGNALS): Do not define.
6293 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6294 (POSIX_SIGNALS): Do not define.
6295
15d25dc0
DN
6296 Remove support for old UNIX System V systems.
6297 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6298 * s/usg-5-4-2.h: Remove.
6299
07e339e4
DN
6300 Remove support for Solaris on PPC and for old versions.
6301 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6302 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6303 that cancel each other.
6304 * s/sol2-3.h:
6305 * s/sol2-4.h:
6306 * s/sol2-5.h: Remove.
6307 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6308 (NO_REMAP): Remove, unused.
6309 (UNEXEC): Move definition ...
6310 * s/aix4-2.h (UNEXEC): ... here.
6311
7f110ddc
DN
6312 * s/openbsd.h: Remove support for non-ELF and for systems that do
6313 not support shared libraries.
6314 * s/netbsd.h:
6315 * s/freebsd.h: Likewise.
6316
605f35cd
DN
63172010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6318
6319 Remove non-working support for lynxos 3.0.
6320 * s/lynxos.h: Remove file.
6321
6322 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6323 COFF_BSD_SYMBOLS, nothing defines it anymore.
6324
aed71cf4
DN
63252010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6326
6327 Remove obsolete uses of HAVE_SHM.
6328 * emacs.c (standard_args):
6329 (Fdump_emacs):
6330 (syms_of_emacs): Remove code depending on HAVE_SHM.
6331
6332 * alloc.c: Remove HAVE_SHM dependent definition.
6333
6334 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6335
aded53ff
GM
63362010-03-18 Glenn Morris <rgm@gnu.org>
6337
17284745
GM
6338 * emacs.c (USAGE4): Hard-code bug address.
6339 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6340 (bug_reporting_address): Remove.
6341 (main): Don't call bug_reporting_address.
6342
aded53ff
GM
6343 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6344 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6345
303500aa
CY
63462010-03-15 Chong Yidong <cyd@stupidchicken.com>
6347
6348 * xfns.c (Fx_create_frame):
6349 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6350 on left.
6351
cef3058f
CY
63522010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6353
6354 * editfns.c (Fformat): Account for string precision when computing
6355 field width (Bug#5710).
6356
a647d59d
CY
63572010-03-12 Chong Yidong <cyd@stupidchicken.com>
6358
4fa42018
CY
6359 * xfns.c (Fx_create_frame): Set default to Qright.
6360
a647d59d
CY
6361 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6362 all window systems.
6363
6da23aaa
EZ
63642010-03-12 Eli Zaretskii <eliz@gnu.org>
6365
a96f6398 6366 These changes remove termcap.c from the build on Posix platforms.
83d02def 6367 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
6368 (MSDOS_OBJ): ...to here.
6369 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6370 now identical to when LIBS_TERMCAP is defined.
6371
6372 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6373
6374 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6375
a96f6398 6376 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 6377
288f9fc0
CY
63782010-03-10 Chong Yidong <cyd@stupidchicken.com>
6379
6380 * Branch for 23.2.
6381
d48cd3f4
SM
63822010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6383
6384 Cleanup setup of gl_state in various parts of the code.
6385 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6386 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6387 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6388 (skip_chars):
6389 * regex.c (regex_compile): Use it.
6390 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6391 it's now set in regex_compile when/if we need it.
6392
618db430
SM
63932010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6394
c0335e02
SM
6395 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6396 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6397 (QUIT): Use it to consolidate code and remove redundancy.
6398 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6399
254c06a8
SM
6400 * regex.c (regex_compile): Setup gl_state as well.
6401
618db430
SM
6402 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6403 (in_classes): Use CONSP before XCAR/XCDR.
6404
233f0c9f
CY
64052010-03-03 Chong Yidong <cyd@stupidchicken.com>
6406
6407 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6408 definitions, so that keyboard macros are correctly handled
6409 (Bug#5481).
6410
75f80e63
EZ
64112010-03-02 Eli Zaretskii <eliz@gnu.org>
6412
6413 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6414 text that could be relocated inside the call to emacs_mule_char.
6415 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6416 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6417
dcfb9bc4
KH
64182010-03-02 Kenichi Handa <handa@m17n.org>
6419
fc9a17bc
KH
6420 * character.c (parse_str_as_multibyte): Fix handling of the
6421 multibyte form of raw-bytes.
6422 (str_as_multibyte): Likewise.
6423
dcfb9bc4
KH
6424 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6425 form of raw-bytes.
6426
412c01b6
CY
64272010-02-28 Chong Yidong <cyd@stupidchicken.com>
6428
6429 * charset.c (load_charset_map_from_file)
6430 (load_charset_map_from_vector): Zero out allocated
6431 charset_map_entries before using them.
6432
df7e1ea0
AS
64332010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6434
6435 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6436
fe69a722
CY
64372010-02-27 Chong Yidong <cyd@stupidchicken.com>
6438
4ed28cf4
CY
6439 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6440 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 6441
7379cfce
KH
64422010-02-26 Kenichi Handa <handa@m17n.org>
6443
f88cc4d6
KH
6444 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6445
7379cfce
KH
6446 * xdisp.c (reseat_to_string): Fix previous change.
6447
cf2fdcfb
CY
64482010-02-26 David Reitter <david.reitter@gmail.com>
6449
6450 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6451 Lisp_Object (Bug#4736).
6452
cc6c7c75
KH
64532010-02-25 Kenichi Handa <handa@m17n.org>
6454
6455 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6456
32e737d7
JD
64572010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6458
6459 * xterm.c (XTflash): Move declarations before statements.
6460
6461 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6462 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6463 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6464 (xg_create_tool_bar): Remove unused variables.
6465 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 6466 (xg_create_frame_widgets): Remove variable grav.
32e737d7 6467
676cae9f
CY
64682010-02-21 Chong Yidong <cyd@stupidchicken.com>
6469
6470 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6471
886cc2b8
SM
64722010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6473
6474 * term.c (fatal): Add a final \n if needed (bug#5596).
6475
ddb2d8e2
CY
64762010-02-18 Chong Yidong <cyd@stupidchicken.com>
6477
6478 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6479
2a4f8d3d
GM
64802010-02-18 Glenn Morris <rgm@gnu.org>
6481
6482 * callint.c (Finteractive): Doc fix.
6483
ebaf11b6
KH
64842010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6485
886cc2b8
SM
6486 * coding.c (record_conversion_result):
6487 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
6488 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6489 memory allocation error.
6490
d0396581
KH
64912010-02-17 Kenichi Handa <handa@m17n.org>
6492
886cc2b8
SM
6493 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6494 Fix for the case that the output buffer is fullfilled.
d0396581
KH
6495 (decode_coding): Setup ccl program here. Keep looping when the
6496 decoder stopped because the output buffer is
6497 fullfilled (bug#5534).
6498
6499 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6500
98599f74
JD
65012010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6502
471e4f04 6503 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 6504 bug #5571.
886cc2b8 6505 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 6506 overdrawn.
98599f74 6507
182659ae
JD
65082010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6509
6510 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6511 doing_interact here.
6512 (ice_connection_closed): New function.
6513 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6514 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6515 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6516 returns I/O error.
6517 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6518 bug #5512.
6519
9be32c4e 65202010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
6521
6522 * nsfont.m (nsfont_open): The system's value for the font descent
6523 is negative, so round it down to avoid clipping.
6524
a2f3eb19
CY
65252010-02-06 Chong Yidong <cyd@stupidchicken.com>
6526
6527 * charset.c (load_charset_map_from_file)
6528 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 6529 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 6530
3088147c
CY
65312010-02-05 Chong Yidong <cyd@stupidchicken.com>
6532
6533 * charset.c (load_charset_map_from_file): Allocate large
6534 charset_map_entries structure on the heap rather than the stack.
6535 (Bug#5526).
6536
b57d9029
KH
65372010-01-31 Kenichi Handa <handa@m17n.org>
6538
6539 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 6540 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 6541
c67d885b
CY
65422010-01-31 Chong Yidong <cyd@stupidchicken.com>
6543
6544 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6545 <deactivated@gmail.com> (Bug#3605).
6546
8fab2362
CY
65472010-01-31 David De La Harpe Golden <david@harpegolden.net>
6548
6549 * fileio.c (Frename_file): Correctly rename symlinks to
6550 directories (Bug#5496).
6551
cb2a62f2
CY
65522010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6553
6554 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6555
944c7a26
AS
65562010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6557
6558 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6559
c024ac08
CY
65602010-01-29 Chong Yidong <cyd@stupidchicken.com>
6561
6562 * frame.c (DEFAULT_ROWS): Change default to 35.
6563
6564 * xfns.c (x_default_font_parameter): Change default XFT font to
6565 monospace-10 (Bug#3643).
6566
af93af83
EZ
65672010-01-29 Eli Zaretskii <eliz@gnu.org>
6568
6569 * w32inevt.c (key_event): Remove unnecessary comparison of
6570 event->uChar.AsciiChar with 128.
6571
ca0eb708
CY
65722010-01-28 Chong Yidong <cyd@stupidchicken.com>
6573
b242dbfc
CY
6574 * fileio.c (Frename_file): Fix last change (Bug#5487).
6575
ca0eb708
CY
6576 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6577
6578 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6579
45d45af5
JD
65802010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6581
6582 * xfns.c (Fx_create_frame): Remove window size matching code from
6583 2010-01-15.
a73f9c9d 6584 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 6585
7e233730
JR
65862010-01-27 Jason Rumney <jasonr@gnu.org>
6587
6588 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 6589 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 6590
86e893e3
KH
65912010-01-27 Kenichi Handa <handa@m17n.org>
6592
6593 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 6594 pattern string (Bug#4209).
86e893e3 6595
8719abec
CY
65962010-01-27 David De La Harpe Golden <david@harpegolden.net>
6597
6598 * fileio.c (Frename_file): Call copy-directory and
6599 delete-directory for directories, in order to handle cross-device
6600 renaming (Bug#3353).
6601
844794c8
JD
66022010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6603
aa3e13b5 6604 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 6605 sizes 24 and 10. Bug #3643.
844794c8 6606
bd4b5750
SM
66072010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6608
8dc1adf6 6609 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
6610 * keymap.c (shadow_lookup): Add `remap' arg.
6611 (describe_map, describe_vector): Update calls to shadow_lookup.
6612 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6613 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
6614 perform remapping during shadow_lookup check of remapped_sequences.
6615
285d07e2
CY
66162010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6617
6618 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6619 png_check_sig, which has been removed in libpng 1.4.
6620
c6d09b8d
CY
66212010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6622
6623 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6624 lacks this header file).
6625
3d782998
YM
66262010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6627
6628 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6629 as in Emacs 22.
6630
2aff7c53
YM
66312010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6632
6633 * lisp.h (make_pure_string): String pointer arg now points to const.
6634
6635 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6636 args now point to const.
6637
74327f7a
EZ
66382010-01-22 Eli Zaretskii <eliz@gnu.org>
6639
6640 * lread.c (Fload): Don't treat files without .elc extension as
6641 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6642 them. (bug#5303)
6643
4d1e6632
KH
66442010-01-20 Kenichi Handa <handa@m17n.org>
6645
6646 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6647 treat the source as actual byte sequence.
6648
1fdede8f
AM
66492010-01-19 Alan Mackenzie <acm@muc.de>
6650
6651 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 6652 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
6653 `signal_after_change_p' to `coherent_change_p', and make the
6654 invocation of `modify_region' conditional on it.
6655
67477f30
JD
66562010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6657
6658 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6659 for debug purpose.
6660 (syms_of_xsettings): Declare xft-settings.
6661
244b023e
CY
66622010-01-18 Chong Yidong <cyd@stupidchicken.com>
6663
6664 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6665
617364fe
CY
66662010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6667
6668 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6669
4fe22cdf
CY
66702010-01-16 Chong Yidong <cyd@stupidchicken.com>
6671
6672 * emacs.c (standard_args): Adjust arg priorities to reflect how
6673 they are processed in startup.el.
6674
e118d2be
AS
66752010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6676
6677 * Makefile.in (lisp, shortlisp): Update.
6678
523ae620
SM
66792010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6680
6681 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6682 code, link the new kboard into all_kboard before running Lisp code,
6683 and protect the new terminal with GCPRO (Bug#5365).
6684 (x_term_init): Remove unused var `atom'.
6685 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6686
f0d13888
JD
66872010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6688
6689 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6690 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6691 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6692 this. Bug #3643.
f0d13888 6693
cc320f07
KH
66942010-01-15 Kenichi Handa <handa@m17n.org>
6695
6696 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6697
7ffdf101
CY
66982010-01-15 Chong Yidong <cyd@stupidchicken.com>
6699
6700 * nsterm.m (Qnone): Define.
6701
6702 * nsfns.m (Qnone): Move definition to nsterm.m.
6703
d12bd917
KH
67042010-01-14 Kenichi Handa <handa@m17n.org>
6705
6706 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6707 systems.
6708
d9a7c140
KH
67092010-01-14 Kenichi Handa <handa@m17n.org>
6710
6711 Make auto-composition work on all buffers even if they are
6712 fundamental mode.
6713
6714 * composite.c (Vauto_composition_mode): New variable.
6715 (composition_compute_stop_pos): Check Vauto_composition_mode
6716 instead of Vauto_composition_function.
6717 (composition_adjust_point, Ffind_composition_internal): Likewise.
6718 (syms_of_composite): Declare Lisp variable
6719 "auto-composition-mode" here.
6720
63286bb2
CY
67212010-01-13 Chong Yidong <cyd@stupidchicken.com>
6722
6723 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6724 during call to vendor-specific-keysyms (Bug#5365).
6725
c2623ee7
YM
67262010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6727
6728 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6729 Call SIGNAL_THREAD_CHECK (Bug#5333).
6730
6731 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6732 Call SIGNAL_THREAD_CHECK.
6733
0b5397c2
SM
67342010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6735
6736 Try to fix bug#5314. This is probably not the final word, tho.
6737 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6738 recent-auto-save-p as a side-effect.
6739 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6740 * buffer.c (Fkill_buffer, reset_buffer):
6741 * editfns.c (Fsubst_char_in_region):
6742 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6743 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6744
dc954cb2
KH
67452010-01-13 Kenichi Handa <handa@m17n.org>
6746
6747 Display buffer name, etc. in mode line by composing correctly.
6748
6749 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6750 STRING is not nil.
0b5397c2 6751 (display_mode_element): Adjust for the change of
dc954cb2
KH
6752 decode_mode_spec and display_line.
6753 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6754 (display_string): Handle the case that STRING is non-null and
6755 LISP_STRING is not nil.
6756
0b5397c2
SM
6757 * xterm.c (x_draw_composite_glyph_string_foreground):
6758 Pay attention to s->face->overstrike.
dc954cb2
KH
6759
6760 * composite.c (composition_reseat_it): Don't check PT if STRING is
6761 non nil.
6762
4a00eaca
YM
67632010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6764
6765 * keyboard.c (read_char): Don't apply previous change when current
6766 buffer is unchanged by command execution.
6767
60abb287
JD
67682010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6769
6770 * keyboard.c (read_char): Return after executing from special map.
6771
893db5bc
GM
67722010-01-12 Glenn Morris <rgm@gnu.org>
6773
6774 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6775 bug-gnu-emacs rather than emacs-pretest-bug.
6776
4d03ece0
CY
67772010-01-11 Chong Yidong <cyd@stupidchicken.com>
6778
6779 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6780 initializing the Lisp variables that depend on them.
6781
1df47e38
YM
67822010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6783
6784 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6785 Clear areas that will not be updated after change of menu bar lines.
6786 Clear the menu bar window's current matrix when the window gets empty.
6787
2f1c6384
CY
67882010-01-09 Chong Yidong <cyd@stupidchicken.com>
6789
e398c61c
CY
6790 * intervals.h, textprop.c (extend_property_ranges): Return value
6791 and args changed. Discard properties that begin at or after the
6792 new end (Bug#5306).
6793
6794 * editfns.c (Fformat): Caller changed.
6795
e5a29a10
CY
6796 * nsterm.m (ns_set_default_prefs): Delete function.
6797 (syms_of_nsterm): Initialize ns_command_modifier,
6798 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6799 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6800
2f1c6384
CY
6801 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6802 position (Bug#4040).
6803
d427a9fa
EZ
68042010-01-09 Eli Zaretskii <eliz@gnu.org>
6805
6806 * editfns.c (Ffloat_time): Doc fix.
6807
21b9df2f
JD
68082010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6809
6810 * xfns.c (Fx_create_frame): Don't create frame larger than display
6811 by default bug#3643.
6812
4b00d3b1
YM
68132010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6814
6815 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6816 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6817 windows above internal border.
6818
6819 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6820 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6821 windows above internal border.
6822
6823 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6824 tool bar windows specially.
6825
6826 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6827
6828 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6829 specially.
6830 (XTflash): Take account of menu bar height.
6831
6832 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6833 specially.
6834
5075d853
JD
68352010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6836
ac146f82 6837 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6838 also be true before we can return early (bug #5339).
6839
474217c8
CY
68402010-01-06 David Reitter <david.reitter@gmail.com>
6841
6842 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6843 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6844 (Bug#3233).
6845
c0e6d47d
JD
68462010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6847
d0cf45b7
JD
6848 * font.c (font_open_entity): Enable chache and call cached_font_ok
6849 for the driver if defined.
6850 (QCuser_spec): New symbol.
6851 (font_spec_from_name): Save name as user-spec.
6852 (font_load_for_lface): Keep user-spec instead of name.
6853 (font_open_by_name): Save name as user-spec.
6854 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6855 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6856
6857 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6858 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6859 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6860
6861 * font.h (struct font_driver): Add cached_font_ok.
6862
c0e6d47d
JD
6863 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6864
7c583cd8
JD
68652010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6866
6867 * xterm.c (x_new_font): Move code for setting rows/cols before
6868 resizing ...
ac146f82 6869 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6870
6871 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6872 (xg_frame_resized, xg_frame_set_char_size):
6873 Call xg_clear_under_internal_border.
7c583cd8 6874 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6875
03f77f0a
CY
68762010-01-05 Chong Yidong <cyd@stupidchicken.com>
6877
6878 * keyboard.c (read_key_sequence): Catch keyboard switch after
6879 making a new tty frame (Bug#5095).
6880
2a1ef5be
KH
68812010-01-05 Kenichi Handa <handa@m17n.org>
6882
6883 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6884
e3eb1dae
SM
68852010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6886
6887 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6888 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6889 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6890
777013f2
MA
68912010-01-03 Michael Albinus <michael.albinus@gmx.de>
6892
6893 * dbusbind.c (xd_add_watch): Improve debug message.
6894 (xd_remove_watch): Improve debug message. If DATA is the session
6895 bus, unset D-Bus session environment.
6896 (Fdbus_init_bus): Pass the bus as argument to
6897 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6898
8932b1c2
CY
68992010-01-01 Chong Yidong <cyd@stupidchicken.com>
6900
87231e2c
CY
6901 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6902
4801c5fa
CY
6903 * lread.c (syms_of_lread): Make it clearer that these are the
6904 names of loaded files (Bug#5068).
6905
8932b1c2
CY
6906 * eval.c (run_hook_with_args): Handle the case where the global
6907 value has the obsolete single-function form (Bug#5026).
6908
11e3c684
CY
69092009-12-27 Chong Yidong <cyd@stupidchicken.com>
6910
6911 * minibuf.c (Fall_completions): Minor optimization.
6912
5b28ce35
EZ
69132009-12-26 Eli Zaretskii <eliz@gnu.org>
6914
5ce6e4f4
JB
6915 * .gdbinit (pgx): Fix display of composite glyphs.
6916 Display cmp.from and cmp.to as well.
6917 (pitx): Fix last change.
5b28ce35 6918
bcffff46
KH
69192009-12-25 Kenichi Handa <handa@m17n.org>
6920
6921 * composite.h (composition_adjust_point): Update prototype.
6922
6923 * composite.c (composition_reseat_it): Don't make a composition
6924 spanning over point.
6925 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6926 composable characters.
6927 (composition_adjust_point): New arg NEW_PT. Callers changed.
6928
6929 * keyboard.c (command_loop_1): Force redisplay if the last point
6930 was within a composition.
6931 (adjust_point_for_property): Don't adjust point for automatic
6932 composition when called after buffer modification.
6933
3f670e9a
EZ
69342009-12-19 Eli Zaretskii <eliz@gnu.org>
6935
5ce6e4f4
JB
6936 * .gdbinit (pitx): Don't use enum names, use their values.
6937 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6938 (pgx): Don't use enum names, use their values.
6939 (pitmethod): New helper command.
6940 (pitx): Use it to display iteration method.
6941 (pgrowit): New command.
6942
ad903955
EZ
6943 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6944
3f670e9a
EZ
6945 Update dependencies in Makefile.in.
6946
6947 * Makefile.in (alloc.o): Depend on termhooks.h.
6948 (atimer.o): Depend on blockinput.h.
6949 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6950 and frame.h.
6951 (callint.o): Depend on systime.h, coding.h, and composite.h.
6952 (callproc.o): Depend on buffer.h.
6953 (casefiddle.o): Don't depend on charset.h.
6954 (casetab.o): Depend on character.h.
6955 (ccl.o): Depend on composite.h.
6956 (chartab.o): Depend on ccl.h.
6957 (cm.o): Depend on dispextern.h.
6958 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6959 (coding.o): Don't depend on $(INTERVALS_H).
6960 (composite.o): Don't depend on dispextern.h explicitly (it's in
6961 $(INTERVALS_H)). Depend on ccl.h.
6962 (data.o): Depend on systime.h, coding.h, composite.h,
6963 dispextern.h, font.h, and ccl.h.
6964 (dired.o): Depend on composite.h.
6965 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6966 composite.h (it's in $(INTERVALS_H)).
6967 (doc.o): Depend on systime.h, coding.h, and composite.h.
6968 (editfns.o): Don't depend explicitly on dispextern.h.
6969 (emacs.o): Depend on frame.h and coding.h.
6970 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6971 (fileio.o): Depend on frame.h and commands.h. Don't depend
6972 explicitly on dispextern.h.
6973 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6974 composite.h.
6975 (fns.o): Don't depend on termhooks.h.
6976 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6977 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6978 coding.h, $(INTERVALS_H), window.h, xterm.h.
6979 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6980 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6981 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6982 fontset.h, ccl.h, and ftfont.h.
6983 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6984 (gtkutil.o): Depend on dispextern.h and composite.h.
6985 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6986 termhooks.h, and ccl.h.
6987 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6988 (intervals.o): Depend on systime.h and coding.h.
6989 (keyboard.o): Depend on composite.h and coding.h.
6990 (keymap.o): Depend on coding.h and frame.h.
6991 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6992 (macros.o): Depend on systime.h, coding.h, and composite.h.
6993 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6994 and atimer.h.
6995 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6996 dispextern.h explicitly.
0b5397c2
SM
6997 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6998 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6999 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
7000 (regex.o): Don't depend on charset.h.
7001 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
7002 (search.o): Don't depend explicitly on composite.h.
7003 (sound.o): Depend on atimer.h and systime.h.
7004 (syntax.o): Don't depend explicitly on composite.h.
7005 (sysdep.o): Depend on coding.h and composite.h.
7006 (term.o): Depend on xterm.h and buffer.h.
7007 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
7008 (textprop.o): Don't depend on dispextern.h explicitly.
7009 (undo.o): Depend on dispextern.h.
7010 (window.o): Depend on coding.h and termhooks.h. Don't depend on
7011 dispextern.h and composite.h explicitly.
7012 (xdisp.o): Depend on ccl.h.
7013 (xfaces.o): Depend on coding.h and ccl.h.
7014 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
7015 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7016 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
7017 ftfont.h.
7018 (xgselect.o): New dependency.
7019 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
7020 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
7021 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
7022 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
7023 (xsmfns.o): Depend on frame.h and dispextern.h.
7024 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
7025 sysselect.h.
7026
7a6f7fea
AS
70272009-12-19 Andreas Schwab <schwab@linux-m68k.org>
7028
7029 * font.c (Fclear_font_cache): Pass correct cache argument to
7030 font_clear_cache.
7031
f4c21026
AS
70322009-12-16 Andreas Schwab <schwab@linux-m68k.org>
7033
7034 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
7035 twice.
7036
f7ab0997
CY
70372009-12-15 Chong Yidong <cyd@stupidchicken.com>
7038
7039 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
7040 calling file-remote-p. Reported by Jim Meyering.
7041
fa8e045a
MA
70422009-12-15 Michael Albinus <michael.albinus@gmx.de>
7043
7044 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 7045 avoid compiler warnings. (Bug #5217)
fa8e045a 7046
a63dba42
KH
70472009-12-14 Kenichi Handa <handa@m17n.org>
7048
7049 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
7050 in 8-bit encoding.
7051
5ce6e4f4 70522009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
7053
7054 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
7055 tooltip windows.
7056
223e5fc6
JD
70572009-12-13 Jan Djärv <jan.h.d@swipnet.se>
7058
36acb2a7
JD
7059 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
7060 Xatom_net_window_type.
7061
7062 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
7063 Xatom_net_window_type.
7064
b8f00677
JD
7065 * xterm.c (my_log_handler): New function.
7066 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 7067 so we can filter out buggy messages. (Bug #5120).
b8f00677 7068
e5f0bc9a
JD
7069 * xterm.c (xg_scroll_callback): Parameter list changed,
7070 use parameter GtkScrollType to determine scroll/line/page.
7071 Only allow dragging if a button < 4 is grabbed (bug #5177).
7072 (xg_end_scroll_callback): New function.
7073 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
7074 xg_create_scroll_bar.
7075
7076 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
7077 (scroll_end_callback): Remove.
7078 (xg_create_scroll_bar): Add parameter end_callback, bind it to
7079 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 7080 bug #5177.
e5f0bc9a
JD
7081 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
7082 bug #5177.
7083
7084 * gtkutil.h (XG_LAST_SB_DATA): Remove.
7085 (xg_create_scroll_bar): Add GCallback end_callback.
7086
223e5fc6
JD
7087 * xftfont.c (QClcdfilter): New variable.
7088 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
7089 (syms_of_xftfont): Initialize QClcdfilter.
7090
3c055b77
JD
70912009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7092
7093 * xsettings.c (struct xsettings): Add member seen.
7094 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 7095 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
7096 (apply_xft_settings): Only update Xft settings with what member seen
7097 indicates as new.
7098
05fe33ff
EZ
70992009-12-12 Eli Zaretskii <eliz@gnu.org>
7100
c4cc8b9a 7101 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
7102 (struct glyph): Use EMACS_INT for charpos.
7103 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
7104 region_beg_charpos, region_end_charpos,
7105 redisplay_end_trigger_charpos, and also for
7106 iterator_stack_entry.end_charpos and
7107 iterator_stack_entry.stop_charpos.
7108
e8d7886a
JD
71092009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7110
5ce6e4f4 7111 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
7112 (xg_create_scroll_bar): Call scroll_end_callback on button release
7113 event (bug #5177).
7114 (xg_event_is_for_scrollbar): != replaced with ==.
7115
d0db2ec8
KH
71162009-12-12 Kenichi Handa <handa@m17n.org>
7117
7118 * ftfont.c (struct ftfont_info): New member matrix.
7119 (ftfont_open): Setup xftfont_info->matrix.
7120 (MFLTFontFT): New member matrix.
7121 (FLOOR, CEIL, ROUND): New macros.
7122 (ftfont_get_metrics): Handle matrix transformation.
7123 (ftfont_shape_by_flt): New arg matrix. Callers changed.
7124
7125 * xftfont.c (struct xftfont_info): New member matrix.
7126 (xftfont_open): Setup xftfont_info->matrix.
7127
71282009-12-10 Kenichi Handa <handa@m17n.org>
7129
7130 * xdisp.c (append_space_for_newline): Consider face-remapping.
7131
2cc7b62f
AS
71322009-12-09 Andreas Schwab <schwab@linux-m68k.org>
7133
b87dd913
AS
7134 * xsettings.c: Include "keyboard.h".
7135
eba5eb94
AS
7136 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
7137
2cc7b62f
AS
7138 Fix implicit function declarations.
7139 * cmds.c: Include "frame.h".
7140 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
7141 * frame.h: Move declaration of delete_frame outside of
7142 HAVE_WINDOW_SYSTEM.
7143
a4ef73c8
CY
71442009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
7145
7146 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
7147
7148 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
7149 GTK builds.
7150
944a300c
AS
71512009-12-07 Andreas Schwab <schwab@linux-m68k.org>
7152
7153 * unexelf.c (unexec): Don't search for .data twice.
7154
022eef62
CY
71552009-12-05 Chong Yidong <cyd@stupidchicken.com>
7156
426ac949
CY
7157 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
7158 if push failed.
7159 (handle_line_prefix): Set avoid_cursor_p here. Check return value
7160 of push_display_prop (Bug#5000).
7161
022eef62
CY
7162 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
7163 value of font_list_entities (Bug#5085).
7164
be95bee9
JB
71652009-12-04 Juanma Barranquero <lekktu@gmail.com>
7166
7167 Fix `string-to-number' to deal consistently with integers and floats.
7168 * lread.c (isfloat_string): New argument ignore_trailing to accept all
7169 trailing characters, not just whitespace.
7170 (read1): Pass new arg 0 to keep old behavior.
7171 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
7172 trailing chars, as it is already done for integers. Doc fixes.
7173 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
7174
24c2d7ce
EZ
71752009-12-04 Eli Zaretskii <eliz@gnu.org>
7176
0b5397c2
SM
7177 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
7178 Delete unused enumeration value.
24c2d7ce 7179
7e694795
EZ
71802009-12-03 Eli Zaretskii <eliz@gnu.org>
7181
7182 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
7183
84b31826
SM
71842009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
7185
7186 * process.c (Fmake_network_process): Fix up the tests for
7187 "connectionless socket", so they DTRT for seqpacket sockets as well.
7188
f00c449b
SM
71892009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7190
7191 * process.c (Qseqpacket): New symbol.
7192 (HAVE_SEQPACKET): New macro.
7193 (Fmake_network_process): Accept new :type `seqpacket'.
7194 (init_process): Add `seqpacket' feature when applicable.
7195 (syms_of_process): Initialize Qseqpacket.
7196
8096a0ff
YM
71972009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7198
7199 * font.c (font_load_for_lface, font_open_by_name): Don't store name
7200 if entity is Qnil.
7201
3e0de07f
SM
72022009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
7203
7204 * print.c (print_preprocess): Preprocess the key_and_value table of
7205 hashtables, even tho they're "hidden" (bug#5082).
7206
abeafb2a
JD
72072009-11-29 Jan Djärv <jan.h.d@swipnet.se>
7208
7209 * frame.c (frame_make_pointer_invisible)
7210 (frame_make_pointer_visible): Declare f before statements.
7211
4bf47195
EZ
72122009-11-28 Eli Zaretskii <eliz@gnu.org>
7213
7214 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7215 omitted dependencies on lisp.h.
7216
c525b3f2
JD
72172009-11-27 Jan Djärv <jan.h.d@swipnet.se>
7218
ece2d4ed
JD
7219 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7220 is NULL.
7221
7222 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7223
7224 * frame.c (frame_make_pointer_invisible)
3e0de07f 7225 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
7226 frame.
7227
c525b3f2
JD
7228 * search.c (simple_search): Remove warning by making *p const.
7229
2f00e299
DN
72302009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7231
7232 * xdisp.c (power_letter): Remove duplicate const.
7233
084b049b
JD
72342009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7235
a1fadc6f
JD
7236 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7237
5ce6e4f4 7238 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
7239 defaults (bug #5025).
7240
28259cac
SM
72412009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7242
7243 * insdel.c (adjust_markers_for_delete): Move it in the
7244 right direction! (bug#4803)
7245
e8e14166
YM
72462009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7247
7248 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7249
7250 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7251
86677b58
GM
72522009-11-24 Glenn Morris <rgm@gnu.org>
7253
7254 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7255
581e51e8
JD
72562009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7257
cfc86c7a
JD
7258 * Makefile.in: Must create deps for ecrt0.o in its rule.
7259
581e51e8
JD
7260 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7261 because that is what Gtk+ font dialog understands.
7262
7263 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7264 of Fcopy_sequence.
7265 (font_open_by_name): Put name given into QCname for font-object returned.
7266
7267 * frame.c (x_set_font): Save original font name as frame parameter
7268 font-parameter.
7269
7270 * xsettings.c (set_default_xft_settings): New function.
7271 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7272 is found.
7273
8b264ecb
AS
72742009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7275
7276 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7277 searching backwards through multibyte buffer.
7278
872870b2
JD
72792009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7280
7281 * xterm.c: #include xgselect.h.
7282 (x_initialize): Call xgselect_initialize.
7283
7284 * xsettings.c (something_changedCB): C++ comments => C comments.
7285 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7286 does that now.
7287
7288 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7289 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7290 (scroll_bar_button_cb): Remove.
5ce6e4f4 7291 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
7292 event.
7293 (xg_create_scroll_bar): Don't bind button-press-event and
7294 button-release-event.
7295
7296 * process.c: Include xgselect.h if defined (USE_GTK) ||
7297 defined (HAVE_GCONF).
7298 (wait_reading_process_output): Call xg_select for the same condition.
7299
7300 * xgselect.c (xg_select): New function to better integrate with
7301 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7302
7303 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7304
7305 * Makefile.in (XOBJ): Add xgselect.o.
7306
62a6e103
AS
73072009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7308
0b5397c2
SM
7309 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7310 Remove ignored second argument. All callers changed.
62a6e103
AS
7311 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7312 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7313 * xdisp.c (string_char_and_length): Likewise.
7314
b0ca0f33
DN
73152009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7316
7317 * xterm.c (x_new_font):
7318 * print.c (print_object):
7319 * cmds.c (Fself_insert_command): Move declarations before statements.
7320
dd5a6279
CY
73212009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7322
7323 * s/cygwin.h: Remove unneeded linker flags.
7324
4a8e097d
JD
73252009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7326
0d1d0d26
JD
7327 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7328
7329 * xsettings.h: Declare xsettings_get_system_font.
7330
7331 * xsettings.c (xsettings_get_system_font): New function.
7332 (init_gconf): No use initiating gconf unless we have Xft also.
7333 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7334 HAVE_GCONF.
7335
4a8e097d
JD
7336 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7337 add a blank entry so it doesn't collapse into nothing.
7338
8ab1650e
SM
73392009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7340
7341 * lread.c (Funintern): Comment out last change.
7342
82c602f0
RS
73432009-11-19 Richard Stallman <rms@gnu.org>
7344
7345 * lread.c (Funintern): Error if symbol is t or nil.
7346
87e32266
SM
73472009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7348
7349 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7350 representation of Lisp integers.
7351 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7352
1b9ac145
AS
73532009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7354
7355 * lisp.h: Remove declaration of Ffont_get_system_font.
7356 * xfns.c: Move include of "xsettings.h".
7357 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7358
dfb3c4c6
JD
73592009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7360
87e32266
SM
7361 * xsettings.c (something_changedCB, Ffont_get_system_font):
7362 Check use_system_font.
dfb3c4c6
JD
7363 (syms_of_xsettings): DEFVAR font-use-system-font.
7364
9370c1d8
AS
73652009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7366
25fe851a
AS
7367 * xfns.c (x_default_font_parameter): Remove dead assignment.
7368
9370c1d8
AS
7369 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7370
637fa988
JD
73712009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7372
87e32266 7373 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 7374 not have FC_LCD_*. #define them if not there.
a6eb20d8 7375
87e32266 7376 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 7377
637fa988
JD
7378 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7379
7380 * xterm.c (handle_one_xevent): Call xft_settings_event for
7381 ClientMessage, PropertyNotify and DestroyNotify.
7382 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7383 Call xsettings_initialize.
7384
7385 * xftfont.c (xftfont_fix_match): New function.
7386 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7387 Call xftfont_fix_match after XftFontMatch.
7388
7389 * xfont.c (xfont_driver): Initialize all members.
7390
87e32266
SM
7391 * xfns.c (x_default_font_parameter):
7392 Try font from Ffont_get_system_font.
637fa988
JD
7393 Do not get font from x_default_parameter if we got one from
7394 Ffont_get_system_font.
87e32266 7395 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
7396
7397 * w32font.c (w32font_driver): Initialize all members.
7398
7399 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7400
7401 * lisp.h: Declare syms_of_xsettings.
7402
87e32266
SM
7403 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7404 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
7405
7406 * ftfont.c (ftfont_filter_properties): New function.
7407
7408 * frame.c (x_set_font): Remove unused variable lval.
7409
87e32266 7410 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
7411
7412 * font.c (font_put_extra): Don't return if val is nil, it means
7413 boolean option is off.
7414 (font_parse_fcname): Collect all extra properties in extra_props
7415 and call filter_properties for all drivers with extra_props and
7416 font as parameter.
87e32266
SM
7417 (font_open_entity): Do not use cache, it does not pick up new
7418 fontconfig settings like hinting.
637fa988
JD
7419 (font_load_for_lface): If spec had a name in it, store it in entity.
7420
a73f9c9d 7421 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
7422
7423 * config.in: HAVE_GCONF is new.
7424
7425 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7426 xsettings.o is new.
7427
5a942932
KH
74282009-11-17 Kenichi Handa <handa@m17n.org>
7429
7430 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7431 back to the default font in case that no suitable font is found.
7432
b7c7a4d1
SM
74332009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7434
7435 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7436 Suggested by Chad Brown <yandros@mit.edu>.
7437 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7438
072f1e39
JD
74392009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7440
7441 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7442
5d1e70a2
AS
74432009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7444
87e32266 7445 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 7446
a53cfbe5
JD
74472009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7448
473a99b7
JD
7449 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7450 has a parent.
7451
a53cfbe5 7452 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 7453 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
7454
7455 * config.in: Generated (AUTO_DEPEND).
7456
f04bb9b2
MA
74572009-11-13 Michael Albinus <michael.albinus@gmx.de>
7458
b7c7a4d1 7459 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
7460 Vdbus_registered_functions_table, because it contains also
7461 properties. Fix docstring.
b7c7a4d1 7462 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 7463
8f11f7ec
SM
74642009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7465
7466 * alloc.c (mark_object): Don't reprocess marked strings.
7467 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7468 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7469
8a605fe8
KH
74702009-11-13 Kenichi Handa <handa@m17n.org>
7471
8f11f7ec 7472 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
7473 semantics of Vword_combining_categories.
7474 (Vword_combining_categories): Describe the slight change of the
7475 semantics.
7476
241c4680
EZ
74772009-11-13 Eli Zaretskii <eliz@gnu.org>
7478
7479 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7480
7481 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7482
5d58e44c
SM
74832009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7484
7485 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7486
5e13f9d3
JB
74872009-11-12 Juanma Barranquero <lekktu@gmail.com>
7488
7489 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7490
cf54c754
DR
74912009-11-11 David Reitter <david.reitter@gmail.com>
7492
7493 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7494 variables to fix 2009-11-09 change.
7495
a4ada374
DN
74962009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7497
91433552
DN
7498 * process.c (ifflag_def): Make flag_sym constant.
7499 (Fnetwork_interface_info): Use a constant pointer.
7500 (ifflag_table):
7501 * xfns.c (cursor_bits):
7502 * xdisp.c (power_letter):
7503 * termcap.c (speeds, esctab):
7504 * sysdep.c (baud_convert):
7505 * keyboard.c (lispy_accent_codes, modifier_names):
7506 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7507 (jpeg_format, tiff_format, gif_format, svg_format)
7508 (interlace_start, interlace_increment, gs_format):
7509 * gtkutil.c (separator_names):
7510 * fringe.c (swap_nibble):
7511 * fns.c (base64_value_to_char, base64_char_to_value):
7512 * fileio.c (make_temp_name_tbl):
7513 * coding.c (suffixes): Make constant.
7514
f4265f6c
DN
7515 * frame.c (make_initial_frame):
7516 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7517 build_string.
7518 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7519
04420943
DN
7520 * s/freebsd.h:
7521 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7522
0a5d24ae
DN
7523 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7524 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7525
a4ada374
DN
7526 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7527 * xterm.c (syms_of_xterm):
7528 * xfaces.c (syms_of_xfaces):
7529 * xdisp.c (syms_of_xdisp):
7530 * lread.c (syms_of_lread):
7531 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7532 build_string.
91433552 7533
a4ada374
DN
7534 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7535
af98fc7f
SM
75362009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7537
8ab1650e 7538 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 7539
e90292a9
JD
75402009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7541
7542 * keyboard.h: Declare timer_check.
7543
7544 * keyboard.c (timer_check_2): New function that does what the old
7545 timer_check did.
7546 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7547 returned, i.e. don't return -1 with timers pending.
7548
7549 * process.c: Remove extern declaration of timer_check.
7550
7551 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7552 even if timer_check returned -1.
7553
af98fc7f
SM
7554 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7555 xg_dialog_data.
e90292a9
JD
7556 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7557 the event loop.
7558 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7559 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7560 Destroy the dialog after xg_dialog_run.
7561
045b83c0
SM
75622009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7563
7564 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7565
1fb99a3a
JD
75662009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7567
7568 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7569
04e452cb
JB
75702009-11-09 Juanma Barranquero <lekktu@gmail.com>
7571
7572 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7573
ef7417fd
SM
75742009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7575
7576 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7577 w32menu.c, and nsmenu.m.
7578 Simplify the obsolete case where position is nil.
7579 (cleanup_popup_menu): New function, moved from nsmenu.m.
7580 (struct skp): Remove slot `notreal'.
7581 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7582 adjust callers.
7583 (single_menu_item): Adjust call to parse_menu_item.
7584 (syms_of_menu): Defsubr x-popup-menu.
7585 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7586 (keymap_panes): Don't export any more.
7587 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7588 (xmenu_show): Declare.
7589 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7590 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7591 * keyboard.h (parse_menu_item): Update declaration.
7592 * xmenu.c (Fx_popup_menu): Remove.
7593 (syms_of_xmenu): Don't defsubr x-popup-menu.
7594 * w32menu.c (Fx_popup_menu): Remove.
7595 (syms_of_w32menu): Don't defsubr x-popup-menu.
7596 * nsmenu.m (cleanup_popup_menu): Remove.
7597 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7598 moved to menu.c's Fx_popup_menu.
7599 (Fx_popup_menu): Remove.
7600 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7601 menu_items (it's done in menu.c already).
7602
424d6179
SM
76032009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7604
7605 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7606 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7607
c0df13a6 76082009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
7609
7610 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 7611 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
7612 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7613 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7614
2de9f71c
SM
76152009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7616
7617 Let integers use up 2 tags to give them one extra bit and thus double
7618 their range.
7619 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7620 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7621 New macros.
7622 (enum Lisp_Type): Use them. Give explicit values.
7623 (Lisp_Type_Limit): Remove.
7624 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7625 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7626 Pay attention to USE_2_TAGS_FOR_INTS.
7627 (INTEGERP): Use LISP_INT_TAG_P.
7628 * fns.c (internal_equal): Simplify the default case.
7629 (sxhash): Use case_Lisp_Int.
7630 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7631 any more.
7632 (Ftype_of): Use case_Lisp_Int.
7633 (store_symval_forwarding): Take into account the fact that Ints can
7634 now have more than one tag.
7635 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 7636 (buffer_slot_type_mismatch):
2de9f71c
SM
7637 * xfaces.c (face_attr_equal_p):
7638 * print.c (print_object):
7639 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7640 Use case_Lisp_Int.
7641
323637a2
EZ
76422009-11-06 Eli Zaretskii <eliz@gnu.org>
7643
7ac65b38
EZ
7644 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7645
323637a2
EZ
7646 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7647 warning.
7648
e511451f
JD
76492009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7650
7651 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7652
7653 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7654
7655 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7656 ButtonPressRelease and MotionNotify (bug#4870).
7657
5e2327cf
DN
76582009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7659
5adc433e
DN
7660 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7661
d67b4f80
DN
7662 * xterm.c (syms_of_xterm):
7663 * xselect.c (syms_of_xselect):
7664 * xmenu.c (syms_of_xmenu):
7665 * xfns.c (syms_of_xfns):
7666 * xfaces.c (syms_of_xfaces):
7667 * xdisp.c (syms_of_xdisp):
7668 * window.c (syms_of_window):
7669 * w32fns.c (syms_of_w32fns):
7670 * undo.c (syms_of_undo):
7671 * textprop.c (syms_of_textprop):
7672 * terminal.c (syms_of_terminal):
7673 * syntax.c (syms_of_syntax):
7674 * sound.c (syms_of_sound):
7675 * search.c (syms_of_search):
7676 * print.c (syms_of_print):
7677 * minibuf.c (syms_of_minibuf):
7678 * macros.c (syms_of_macros):
7679 * keymap.c (syms_of_keymap, initial_define_key)
7680 (initial_define_lispy_key):
7681 * keyboard.c (syms_of_keyboard):
7682 * insdel.c (syms_of_insdel):
7683 * image.c (syms_of_image):
7684 * fringe.c (syms_of_fringe):
7685 * frame.c (syms_of_frame):
7686 * fontset.c (syms_of_fontset):
7687 * fns.c (syms_of_fns):
7688 * fns.c (syms_of_fns):
7689 * fileio.c (syms_of_fileio):
7690 * fileio.c (syms_of_fileio):
7691 * eval.c (syms_of_eval):
7692 * doc.c (syms_of_doc):
7693 * dispnew.c (syms_of_display):
7694 * dired.c (syms_of_dired):
7695 * dbusbind.c (syms_of_dbusbind):
7696 * data.c (syms_of_data):
7697 * composite.c (syms_of_composite):
7698 * coding.c (syms_of_coding):
7699 * cmds.c (syms_of_cmds):
7700 * charset.c (define_charset_internal, syms_of_character):
7701 * ccl.c (syms_of_ccl):
7702 * category.c (syms_of_category, init_category_once):
7703 * casetab.c (syms_of_casetab):
7704 * casefiddle.c (syms_of_casefiddle):
7705 * callint.c (syms_of_callint):
7706 * bytecode.c (syms_of_bytecode):
7707 * buffer.c (keys_of_buffer, syms_of_buffer):
7708 * alloc.c (syms_of_alloc):
7709 * process.c (syms_of_process, init_process):
7710 * lread.c (syms_of_lread, init_obarray):
7711 * font.c (build_style_table):
7712 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7713 intern_c_string, calls to make_pure_string with
7714 make_pure_c_string. Use pure_cons instead of Fcons.
7715
5e2327cf
DN
7716 * process.c (socket_options): Make it const.
7717 (set_socket_option, init_process): Use a const pointer.
7718
7719 * lread.c (intern_c_string): New function.
7720 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7721 (defvar_int): Uset it. Make the name const char*.
7722
7723 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7724 (defvar_int): Update prototypes.
7725 (DEFUN, EXFUN): Support for prototypes is now required.
7726 (intern_c_string): New prototype.
7727 (struct Lisp_Subr): Make symbol_name constant.
7728
7729 * font.c (struct table_entry): Remove unused member. Make NAMES
7730 constant.
7731 (weight_table, slant_table, width_table): Make constant.
7732
7733 * emacs.c (struct standard_args): Make name and longname constant.
7734
7735 * character.h (DEFSYM): Use intern_c_string.
7736
a56eaaef
DN
77372009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7738
7739 * alloc.c (make_pure_c_string): New function.
7740
7741 * eval.c (Fautoload): Purecopy all arguments.
7742
f6a07420
KH
77432009-11-05 Kenichi Handa <handa@m17n.org>
7744
7745 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7746 the buffer in case of replace.
7747
5d28d4b1
DN
77482009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7749
7750 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7751
b349d111
SM
77522009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7753
d528b1ce
SM
7754 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7755 when applicable (bug#4851).
7756
b349d111
SM
7757 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7758 (P_): Support for prototypes is now required.
7759
c38eb027
CY
77602009-10-31 Chong Yidong <cyd@stupidchicken.com>
7761
7762 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7763 (Bug#4827).
7764
0405f8d9
EZ
77652009-10-30 Eli Zaretskii <eliz@gnu.org>
7766
d528b1ce 7767 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7768
ca0a881a
DN
77692009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7770
7771 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7772
d528b1ce
SM
7773 * lread.c (Fload): Purecopy the file name when building
7774 Vpreloaded_file_list.
ca0a881a 7775
47e0e0e4
JR
77762009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7777
7778 * w32fns.c (syms_of_w32fns): Change default value of
7779 w32-scroll-lock-modifier to nil. (Bug#2827)
7780
057bce6f
JB
77812009-10-26 Juanma Barranquero <lekktu@gmail.com>
7782
782a943e 7783 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7784
242bc74c
AS
77852009-10-26 Andreas Schwab <schwab@redhat.com>
7786
7787 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7788
522d013a
JB
77892009-10-26 Juanma Barranquero <lekktu@gmail.com>
7790
7791 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7792 For delta < 0, skip check that only makes sense when the mini-window
7793 is going to be enlarged. (Bug#4534)
7794
18060980
CY
77952009-10-25 Chong Yidong <cyd@stupidchicken.com>
7796
7797 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7798 string in menu maps (Bug#4471).
7799
fec8f0fe
CY
78002009-10-24 Chong Yidong <cyd@stupidchicken.com>
7801
7802 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7803 FRAME_NS_VIEW on terminal frames (Bug#4765).
7804
10d66ec0
AS
78052009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7806
1cae01f7
AS
7807 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7808 DBUS_TYPE_UINTnn separately to get proper sign extension.
7809
58a12889
AS
7810 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7811 can properly handle unsigned types.
d528b1ce 7812 (make_uid, make_gid): Remove.
58a12889 7813
987c9327
AS
7814 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7815 types again.
7816
522d013a 7817 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7818 (system_process_attributes): Likewise.
7819
905a9ed3
DN
78202009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7821
7822 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7823
7824 * eval.c (Fautoload): Purecopy the filename. Simplify.
7825
7826 * category.c (Fdefine_category): Purecopy docstring.
7827
a599b3e8
AS
78282009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7829
7b792fc9
AS
7830 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7831
a599b3e8
AS
7832 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7833
b35ac83e
CY
78342009-10-23 Chong Yidong <cyd@stupidchicken.com>
7835
7836 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7837 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7838 (Bug#4775).
7839
e8903e00
SM
78402009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7841
7842 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7843 (init_fileio_once):
7844 * lisp.h (init_fileio_once): Remove.
7845 * emacs.c (main): Don't call init_fileio_once.
7846
8f43cbf3
DN
78472009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7848
7849 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7850
26898943
AS
78512009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7852
7853 * doprnt.c (doprnt): Fix overflow check.
7854
5c646d5a
JD
78552009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7856
3132a7ea
JD
7857 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7858
5c646d5a
JD
7859 * xterm.h (x_wait_for_event): Declare it.
7860
7861 * xterm.c (pending_event_wait): New variable.
7862 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7863 see pending_event_wait.eventtype.
7864 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7865 (x_new_font): Call change_frame_size with new rows/columns before we
7866 try to resize the frame.
5c646d5a 7867 (x_wait_for_event): New function.
d528b1ce
SM
7868 (x_set_window_size_1): Don't change gravity unless change_gravity
7869 is set.
5c646d5a
JD
7870 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7871 don't change frame size, instead wait for the ConfigureNotify.
7872 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7873 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7874 (x_initialize): Initialize pending_event_wait.
7875
7876 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7877 size.
7878
7879 * widget.c (EmacsFrameSetValues): Add comment.
7880 (EmacsFrameSetCharSize): Just call x_set_window_size.
7881
7882 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7883 x_wait_for_event.
d528b1ce 7884 (flush_and_sync): Remove again.
5c646d5a
JD
7885 (xg_get_font_name): Suggest monospace if no previous font is known.
7886
e9c1637d
SM
78872009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7888
7889 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7890 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7891
5a72cccb
YM
78922009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7893
7894 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7895 processing pending events when event is filtered for input method.
ab04798f 7896 (Bug#3681)
5a72cccb 7897
2629aa37
JB
78982009-10-20 Juanma Barranquero <lekktu@gmail.com>
7899
7900 * fns.c: Add #endif accidentally removed in previous change.
7901
c3417a74
DN
79022009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7903
7904 * fns.c: Remove code for unsupported system: MAC_OS.
7905 * image.c: Likewise. Include setjmp.h.
7906
9685cef2
JD
79072009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7908
7909 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7910 pixel -1 (bug #4742).
7911
d7306fe6
DN
79122009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7913
019d2c4c
DN
7914 * process.c (create_pty): Remove conditionals for no longer
7915 supported systems: UNIPLUS and RTU.
7916
ee6bacd4
DN
7917 * xterm.c:
7918 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7919
d7306fe6
DN
7920 * alloc.c: Do not define struct catchtag.
7921 * eval.c: Move struct catchtag definition ...
7922 * lisp.h: ... here.
7923
7924 * image.c: Move png.h #include earlier to avoid warnings.
7925
7926 * xterm.c:
7927 * xsmfns.c:
7928 * xselect.c:
7929 * xrdb.c:
7930 * xmenu.c:
7931 * xftfont.c:
7932 * xfont.c:
7933 * xfns.c:
7934 * xfaces.c:
7935 * xdisp.c:
7936 * window.c:
7937 * widget.c:
7938 * w32xfns.c:
7939 * w32uniscribe.c:
7940 * w32term.c:
7941 * w32select.c:
7942 * w32reg.c:
7943 * w32proc.c:
7944 * w32menu.c:
7945 * w32inevt.c:
7946 * w32heap.c:
7947 * w32font.c:
7948 * w32fns.c:
7949 * w32console.c:
7950 * w32.c:
7951 * w16select.c:
7952 * vm-limit.c:
7953 * unexsol.c:
7954 * unexec.c:
7955 * unexcw.c:
7956 * unexaix.c:
7957 * undo.c:
7958 * tparam.c:
7959 * textprop.c:
7960 * terminfo.c:
7961 * terminal.c:
7962 * termcap.c:
7963 * term.c:
7964 * syntax.c:
7965 * sound.c:
7966 * sheap.c:
7967 * search.c:
7968 * scroll.c:
7969 * region-cache.c:
7970 * regex.c:
7971 * ralloc.c:
7972 * process.c:
7973 * print.c:
b024548b
DN
7974 * nsterm.m:
7975 * nsselect.m:
7976 * nsmenu.m:
7977 * nsimage.m:
7978 * nsfont.m:
7979 * nsfns.m:
d7306fe6
DN
7980 * msdos.c:
7981 * minibuf.c:
7982 * menu.c:
7983 * marker.c:
7984 * macros.c:
7985 * keymap.c:
7986 * keyboard.c:
7987 * intervals.c:
7988 * insdel.c:
7989 * indent.c:
7990 * gtkutil.c:
7991 * ftxfont.c:
7992 * ftfont.c:
7993 * fringe.c:
7994 * frame.c:
7995 * fontset.c:
7996 * font.c:
7997 * fns.c:
7998 * floatfns.c:
7999 * filelock.c:
8000 * fileio.c:
8001 * emacs.c:
8002 * editfns.c:
8003 * dosfns.c:
8004 * doprnt.c:
8005 * doc.c:
8006 * dispnew.c:
8007 * dired.c:
8008 * dbusbind.c:
8009 * data.c:
8010 * composite.c:
8011 * coding.c:
8012 * cmds.c:
8013 * cm.c:
8014 * chartab.c:
8015 * charset.c:
8016 * character.c:
8017 * ccl.c:
8018 * category.c:
8019 * casetab.c:
8020 * casefiddle.c:
8021 * callproc.c:
8022 * callint.c:
8023 * bytecode.c:
8024 * buffer.c:
8025 * atimer.c: Include setjmp.h. (Bug#4643)
8026
fd5f21e6
SM
80272009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
8028
4c0354d7
SM
8029 Remove leftover table unibyte_to_multibyte_table.
8030 * character.c (unibyte_to_multibyte_table): Remove.
8031 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
8032 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
8033 * character.h (UNIBYTE_TO_CHAR): New macro.
8034 (MAKE_CHAR_MULTIBYTE): Use it.
8035 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
8036 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
8037 (message_dolog, set_message_1):
8038 * search.c (Freplace_match):
8039 * editfns.c (Fcompare_buffer_substrings):
8040 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
8041 (concat):
8042 * insdel.c (copy_text, count_size_as_multibyte):
8043 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
8044 * term.c (produce_glyphs):
8045 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
8046 * regex.c (RE_CHAR_TO_MULTIBYTE):
8047 * cmds.c (internal_self_insert):
8048 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
8049
fd5f21e6
SM
8050 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
8051
4418646e
DN
80522009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
8053
8054 * puresize.h (BASE_PURESIZE): Increase to 1310000.
8055
35f5c1d2
JB
80562009-10-16 Juanma Barranquero <lekktu@gmail.com>
8057
8058 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
8059
a0cd8f6b
AR
80602009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8061
8062 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
8063 still needed under Tiger.
8064
8065 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
8066
8067 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
8068 __Apple__.
8069
8070 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
8071
01a8d3fa
KH
80722009-10-15 Kenichi Handa <handa@m17n.org>
8073
8074 * print.c (print_object): Escape a symbol like "2E10" too.
8075
bf6c75c9 80762009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
8077
8078 Cleanups and changes for 64-bit compile under Snow Leopard.
8079 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
8080
8081 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
8082
c5959062 8083 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
8084 (ns_findfonts, nsfont_list_family): Use long format in printf, and
8085 cast argument.
8086 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 8087 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
8088
8089 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
8090
8091 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
8092 where appropriate.
8093
8094 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
8095 where appropriate.
6e4780c5
JB
8096 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
8097 Use stringWithUTF8String.
bf6c75c9
AR
8098 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
8099
6e4780c5
JB
8100 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
8101 Add formal protocol mention to inheritance.
bf6c75c9
AR
8102 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
8103
6e4780c5
JB
8104 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
8105 Fix printf format.
bf6c75c9
AR
8106 (ns_query_color): Use CGFloat where appropriate.
8107 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 8108 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
8109 argument.
8110
3d87f118
AR
8111 * config.in (NS_HAVE_NSINTEGER): Drop.
8112
a95c8102
AR
8113 * dbusbind.c (dbus-method-return-internal)
8114 (dbus-method-error-internal): Use long format in printf, and cast
8115 argument.
8116
8117 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
8118 in printf, and cast argument.
8119
6873acca 8120 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
8121 cast argument.
8122
9ec6f100
GM
81232009-10-11 Glenn Morris <rgm@gnu.org>
8124
8125 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
8126
5be883cd
JD
81272009-10-08 Jan Djärv <jan.h.d@swipnet.se>
8128
8129 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
8130 menu bar with a small width so it doesn't enlarge the frame.
8131
d7a39b51
JB
81322009-10-08 Juanma Barranquero <lekktu@gmail.com>
8133
8134 * fontset.c (Fset_fontset_font): Fix typos in error messages.
8135
0c2b6f8e
GM
81362009-10-06 Glenn Morris <rgm@gnu.org>
8137
8138 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
8139 SOME_MACHINE_LISP (this enters indirectly via DOC).
8140
e02131a2
EZ
81412009-10-05 Eli Zaretskii <eliz@gnu.org>
8142
8143 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
8144
b4744254
EZ
81452009-10-04 Eli Zaretskii <eliz@gnu.org>
8146
8147 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
8148 Doc fix.
8149
dbf64827
JB
81502009-10-03 Martin Rudalics <rudalics@gmx.at>
8151
8152 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
8153
e9a0aef8
MA
81542009-10-02 Michael Albinus <michael.albinus@gmx.de>
8155
d528b1ce 8156 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
8157 used anymore outside fileio.c.
8158
8159 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
8160
64eb2b56
JB
81612009-10-01 Juanma Barranquero <lekktu@gmail.com>
8162
8163 * lisp.h (Qdelete_directory_internal):
8164 Declare, instead of Qdelete_directory.
8165
8166 * w32fns.c (Fsystem_move_file_to_trash): Use it.
8167
9d28c33e
SM
81682009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
8169
8170 * eval.c (Fcalled_interactively_p): Add `kind' argument.
8171
9d8f3bd9
MA
81722009-10-01 Michael Albinus <michael.albinus@gmx.de>
8173
9d28c33e 8174 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
8175 Fdelete_directory. It is not a command anymore. It has no file
8176 name handler.
8177
9694740b
SM
81782009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
8179
8180 * xdisp.c (get_next_display_element): Use an enum in last change.
8181
748e162f
KH
81822009-09-28 Kenichi Handa <handa@m17n.org>
8183
9694740b 8184 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
8185 unibyte_display_via_language_environment in handling
8186 Vnobreak_char_display.
8187
17efd58d
AR
81882009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8189
8190 * nsterm.h (ns_app_name): New extern variable.
8191
8192 * nsterm.m (ns_app_name): New variable.
8193 (ns_term_init): Set and use it.
8194 (ns_term_shutdown): Use it.
8195
8196 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
8197 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8198
8199 * nsfns.m (ns_set_name_iconic, ns_set_name)
8200 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8201 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8202
9694740b
SM
8203 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8204 Remove double-casting in client_data comparison.
31c2d412 8205
3208cb35
YM
82062009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8207
8208 * keyboard.c (make_lispy_event): Remember last wheel direction.
8209 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8210
b7d552d6
GM
82112009-09-26 Glenn Morris <rgm@gnu.org>
8212
8213 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8214 internal.elc. Add term/pc-win.elc.
8215 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8216 term/x-win.elc.
8217 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8218 term/w32-win.elc.
8219 (NS_SUPPORT): New.
8220 (lisp): Add NS_SUPPORT.
8221 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8222
4ff670a8
DR
82232009-09-25 David Reitter <david.reitter@gmail.com>
8224
8225 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8226 on Mac OS X 10.6+ (bug#4513).
8227
feabfb6c
JB
82282009-09-24 Juanma Barranquero <lekktu@gmail.com>
8229
8230 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
8231 some parts of Emacs code (like font selection) don't grok them.
8232 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 8233
de59072a
AS
82342009-09-24 Andreas Schwab <schwab@redhat.com>
8235
8236 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8237
a489517b
JB
82382009-09-24 Juanma Barranquero <lekktu@gmail.com>
8239
8240 * dired.c (Fdirectory_files): Fix typo in docstring.
8241
0592970c
AR
82422009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8243
8244 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8245 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8246 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8247 under GNUstep.
8248 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8249
8250 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8251 glyph advancement.
8252
48e8a88b
AR
82532009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8254
8255 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 8256 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
8257
8258 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8259 deleted (bug #4492).
8260
e14f0a78
AR
8261 * nsfont.m (Vns_reg_to_script): New lisp variable.
8262 (syms_of_nsfont): Declare it.
8263 (ns_registry_to_script): New function.
8264 (ns_get_req_script): Call it.
8265 (ns_findfonts): Don't give up on non-unicode registry.
8266
8267 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8268
5b650faa
SM
82692009-09-20 Tom Tromey <tromey@redhat.com>
8270
8271 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8272 batch mode (bug#4228).
8273
a489517b 82742009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
8275
8276 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 8277 carefully. (Bug #4339)
0bae4e09 8278
fcfe06f3
CY
82792009-09-18 Chong Yidong <cyd@stupidchicken.com>
8280
d798ba87 8281 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 8282
31642728
AR
82832009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8284
8285 * emacs.c (inhibit_x_resources): Update doc string for NS.
8286 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 8287 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
8288
8289 * nsterm.h (ns_no_defaults): Remove.
8290
8291 * nsterm.m (ns_no_defaults): Remove.
8292 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8293 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
8294 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8295 don't update the NSWindow itself.
8296 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 8297 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
8298
8299 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8300 ns_use_qd_smoothing.
8301
8302 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8303 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 8304 (x-close-connection): Drop PSFlush() under OS X.
a489517b 8305 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 8306
8686ac71
JB
83072009-09-17 Juanma Barranquero <lekktu@gmail.com>
8308
8309 * emacs.c (inhibit_x_resources): New variable.
8310 (main) [HAVE_NS]: Don't process --quick command line option.
8311 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8312
8313 * lisp.h (inhibit_x_resources): Declare it extern.
8314
8315 * w32reg.c (x_get_string_resource):
8316 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8317
e227ba05
EZ
83182009-09-17 Eli Zaretskii <eliz@gnu.org>
8319
362654a6
JB
8320 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8321 Add lisp/term/internal.elc.
e227ba05 8322
742d40e8
SM
83232009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8324
8325 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8326 (bug#4461).
8327
005bd5a2
DN
83282009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8329
8330 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8331
8332 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8333 (OBJECTS_MACHINE): Remove, unused.
8334
f9af9719
SM
83352009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8336
8337 * frame.c (x_get_resource_string): Remove unused.
8338
0307c7d2
JD
83392009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8340
8341 * xterm.c (x_new_font): Call change_frame_size before calling
8342 x_set_window_size, in case frame size won't change.
8343
8344 * frame.c (x_set_font): Remove dead code.
8345
428b13d6
SM
83462009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8347
8348 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8349
5766c380
SM
83502009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8351
8352 * lread.c (Fload): Don't output a message after loading an obsolete
8353 package any more (done in Lisp now).
8354
2fd0161b
CY
83552009-09-12 Chong Yidong <cyd@stupidchicken.com>
8356
8357 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8358
bc5e75b6
SM
83592009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8360
8361 * keymap.c (Fwhere_is_internal): Use nconc2.
8362
c31c985e
AM
83632009-09-11 Alan Mackenzie <acm@muc.de>
8364
8365 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8366 batch mode.
8367
78012bd2
AS
83682009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8369
8370 * xdisp.c (display_mode_element): Detect cycles.
8371
9d889332
SM
83722009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8373
8374 * keymap.c (where_is_internal): Don't erroneously return nil right after
8375 filling the cache.
8376 (where_is_internal_1): Fix up typo.
8377
7ab5d780
GM
83782009-09-11 Glenn Morris <rgm@gnu.org>
8379
8380 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8381 share a common doc-string.
8382
5238a749
SM
83832009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8384
66d77eda
SM
8385 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8386 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8387
5238a749
SM
8388 * keymap.c (QCadvertised_binding): New constant.
8389 (syms_of_keymap): Initialize it.
8390 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8391 if applicable.
8392
19f48442
SM
83932009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8394
50d4ba39
SM
8395 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8396 (parse_menu_item): Streamline since bindings are recomputed all the
8397 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8398 more and don't support lmenu's menu-alias any more either.
8399
a88a5372
SM
8400 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8401 (where_is_internal): Strip it down to only traverse the keymaps.
8402 Move the cache handling from Fwhere_is_internal to here.
8403 (Fwhere_is_internal): Move the handling of remapping and the choice of
8404 the best binding from where_is_internal to here.
8405 Unify the cached/noncached paths, so remapping is also handled
8406 correctly when the cache is used, and so the cache can be used to
8407 speed up remap-handling when applicable.
8408 Give preference to non-remapped bindings.
8409 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8410 non-remapped bindings.
8411 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8412 command remapping.
8413
19f48442
SM
8414 * xdisp.c (display_mode_element): Move list length limit from 50 to
8415 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8416
599498c3 84172009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
8418
8419 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8420
f9b7b5ac
SM
84212009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8422
a53af587
JB
8423 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8424 (Bug#4334)
8425
f9b7b5ac
SM
8426 * keymap.c (where_is_internal): Filter out shadowed remappings.
8427 Assume that where_is_internal returns unshadowed bindings to simplify
8428 the code and get rid of the gotos. Use ASIZE.
8429
04f4b72d
JD
84302009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8431
4da146f2
JD
8432 * xterm.c (x_focus_changed): If we get a focusout and pointer
8433 is invisible, make it visible.
8434
04f4b72d
JD
8435 * xterm.h: Remove condition for declaration of
8436 x_*_window_to_frame.
8437
7cef7ce3
SM
84382009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8439
8440 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8441 initial terminal as well.
8442
a54fa5b7
JD
84432009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8444
8445 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 8446 x_menubar_window_to_frame.
a54fa5b7 8447
50426a04 8448 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
8449 (XTmouse_position): Do not return valid positions
8450 for clicks in the menubar and the toolbar for Gtk+.
8451
8452 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8453 if the widget for the event has the same top level as a frame,
8454 return the frame.
8455 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8456 internal windows, bug #4122.
8457 (x_non_menubar_window_to_frame): Remove.
8458
5a021dd0
GM
84592009-09-02 Glenn Morris <rgm@gnu.org>
8460
8461 * buffer.c (default-major-mode): Move most of the doc from here...
8462 (major-mode): ... to here.
8463
548fe2f3
NR
84642009-08-30 Nick Roberts <nickrob@snap.net.nz>
8465
8466 * process.c (wait_reading_process_output): Keep the descriptor
8467 when pty is used by a non-child process, e.g., in I/O buffer of
8468 GDB this allows inferior to be restarted.
8469
e0840eef
EZ
84702009-08-29 Eli Zaretskii <eliz@gnu.org>
8471
8472 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8473 both branches into one.
8474
82e98df4
SM
84752009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8476
8477 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8478 (main): Use enable-multibyte-characters rather than
8479 default-enable-multibyte-characters. Output a warning message when
8480 running a unibyte session.
8481
890617cb
YM
84822009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8483
8484 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8485 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8486 (copy_data_segment): Also copy __program_vars section.
8487 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8488 (dump_it) [LC_DYLD_INFO]: Use it.
8489
8490 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8491
e7adeadc
EZ
84922009-08-28 Eli Zaretskii <eliz@gnu.org>
8493
8494 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8495 $(SRC)/buildobj.h.
8496 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8497 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8498 $(SRC)/buildobj.h.
8499 (clean): Add buildobj.h.
8500
3ed8bbdc
TZ
85012009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8502
8503 * print.c (print_object): Set escapeflag to 1 when printing
8504 hashtable keys and values.
8505
155a6764
SM
85062009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8507
8508 * lread.c (read_integer): Use doubles (and potentially return a float
8509 number) as we do in string-to-number.
8510 (read1): Use strtol to read integers, signal errors on strtol's
8511 overflow and use floats if strtol's output is too large for
8512 Elisp integers.
8513
877610de
EZ
85142009-08-27 Eli Zaretskii <eliz@gnu.org>
8515
8516 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8517 (make-buildobj-SH): Fix last change.
8518 (SRC): Move to before where it's first used.
8519
ef73e7be
KH
85202009-08-27 Kenichi Handa <handa@m17n.org>
8521
550c8289
KH
8522 * process.c (send_process): Use encode_coding_object instead of
8523 encode_coding_string to perform eol-conversion even if the string
8524 is unibyte.
8525
60afa08d
KH
8526 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8527 character.
8528
ef73e7be 8529 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 8530 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 8531
7b3a82d7
DN
85322009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8533
5654bf63
DN
8534 * callproc.c (Fcall_process): Remove always true #if.
8535
7b3a82d7
DN
8536 * lisp.h: Replace #if 0 code for checking with text pointing to
8537 the --enable-checking configure flag.
8538
8539 * emacs.c (main): Mention the --enable-profiling configure flag
8540 instead of using CFLAGS.
8541
878bde49
KR
85422009-08-26 Ken Raeburn <raeburn@raeburn.org>
8543
8544 * Makefile.in (buildobj.h): New target.
8545 (doc.o): Depend on it.
8546 (temacs${EXEEXT}): Don't generate buildobj.lst.
8547 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8548 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8549 ($(BLD)/doc.$(O)): Depend on it.
8550 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8551 provided by Eli Zaretskii.)
8552 ($(TEMACS)): Don't generate buildobj.lst.
8553 * doc.c: Include buildobj.h.
8554 (buildobj): New static variable.
8555 (Fsnarf_documentation): Use it, instead of opening and reading
8556 buildobj.lst.
8557
1574224c
MA
85582009-08-25 Michael Albinus <michael.albinus@gmx.de>
8559
8560 * dbusbind.c (Fdbus_call_method)
8561 (Fdbus_call_method_asynchronously): Use English numeric format for
8562 timeout values in doc string.
8563
d9da2f45
KH
85642009-08-25 Kenichi Handa <handa@m17n.org>
8565
ef73e7be
KH
8566 * alloc.c (mark_char_table): New function.
8567 (mark_object): Use mark_char_table for a char-table.
8568
d9da2f45
KH
8569 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8570 (CHAR_TABLE_REF): Use it.
8571
c8edcc01
KR
85722009-08-23 Ken Raeburn <raeburn@raeburn.org>
8573
8574 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8575 before invoking the newly build emacs to check for load-path
8576 shadowing.
8577
7763401b
GM
85782009-08-22 Glenn Morris <rgm@gnu.org>
8579
8580 * Makefile.in (bootstrap_exe): New variable.
8581 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8582 Use ${bootstrap_exe}.
8583
729eadda
EZ
85842009-08-22 Eli Zaretskii <eliz@gnu.org>
8585
8586 * coding.h (encode_coding_string): Don't encode unibyte strings.
8587 (Bug#4047)
8588
eb4c6ace
MA
85892009-08-22 Michael Albinus <michael.albinus@gmx.de>
8590
8591 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8592
8593 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8594 intended as hotfix only.
8595 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8596
36e34d1b
AR
85972009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8598
8599 * nsterm.m (ns_get_color): Update documentation properly for last
8600 change, and clean up loose ends in the code left by it. Fix
8601 longstanding bug with 16-bit hex parsing, and add support for
8602 yet another X11 format (rgb:r/g/b) for compatibility.
8603 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8604 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8605
f983eb8a
SM
86062009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8607
8608 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8609
3f56d3c6
MA
86102009-08-20 Michael Albinus <michael.albinus@gmx.de>
8611
8612 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8613 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8614 (xd_initialize, xd_pending_messages): Check, whether
8615 $DBUS_SESSION_BUS_ADDRESS is set.
8616
fb641d68
YM
86172009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8618
8619 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8620
8621 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8622
cf59a374
GM
86232009-08-20 Glenn Morris <rgm@gnu.org>
8624
8625 * emacs.c (system-type): Doc fix.
8626
1373f3be
SM
86272009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8628
8629 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8630 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8631
058ed861
MA
86322009-08-18 Michael Albinus <michael.albinus@gmx.de>
8633
1373f3be
SM
8634 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8635 New functions.
058ed861
MA
8636 (xd_initialize): Revert change from 2009-08-16.
8637
563a866e 86382009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
8639
8640 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 8641 font-group vector, return nil.
5fc05db0 8642
e42bdf01
CY
86432009-08-17 Chong Yidong <cyd@stupidchicken.com>
8644
8645 * process.c (status_notify): Don't perform redisplay.
8646 (Fdelete_process, list_processes_1, process_send_signal):
8647 Expliticly perform redisplay.
8648 (wait_reading_process_output): Always check process status, but
8649 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8650
4230ab74
KR
86512009-08-17 Ken Raeburn <raeburn@raeburn.org>
8652
1373f3be 8653 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
8654 (XFLOAT_INIT): New macro for storing a float value.
8655 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8656 * fns.c (sxhash): Copy out the value of a float in order to
8657 examine its bytes.
8658 * dbusbind.c (xd_append_arg): Likewise.
8659
4230ab74
KR
8660 * emacs.c (main): Don't call syms_of_data twice.
8661
a0645cdd
MA
86622009-08-16 Michael Albinus <michael.albinus@gmx.de>
8663
8664 * dbusbind.c (xd_initialize): Add connection file descriptor to
8665 input_wait_mask, in order to let select() detect, whether a new
8666 message has been arrived.
ca4f31ea 8667 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 8668
485db0ba
MA
86692009-08-15 Michael Albinus <michael.albinus@gmx.de>
8670
1373f3be
SM
8671 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8672 New functions.
485db0ba
MA
8673
8674 * lisp.h (xd_pending_messages): Declare.
8675
8676 * keyboard.c (readable_events): Call xd_pending_messages.
8677
b5b98ff4
CY
86782009-08-15 Chong Yidong <cyd@stupidchicken.com>
8679
1373f3be 8680 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 8681
f8354c6e
CY
8682 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8683
b5b98ff4
CY
8684 * buffer.c (set_buffer_internal_1)
8685 (swap_out_buffer_local_variables): Check for unbound local
8686 variables (Bug#4138).
8687
8b9fc636
EZ
86882009-08-14 Eli Zaretskii <eliz@gnu.org>
8689
8690 * process.c (create_pty): Fix last change.
8691
ce959360
CY
86922009-08-13 Chong Yidong <cyd@stupidchicken.com>
8693
8694 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8695 (xbm_load_image): Caller changed.
64b807c9 8696 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8697
c7baf7e9
NR
86982009-08-13 Nick Roberts <nickrob@snap.net.nz>
8699
8700 * process.c (create_pty): New function.
8701 (Fstart_process): Use it to allow Emacs to just associate a pty
8702 with the buffer. See associated change in gdb-mi.el.
8703 (list_processes_1): Deal with no program name.
8704 (start_process_unwind): Use pid == -2 to mean no process.
8705
1ac9108a
SM
87062009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8707
8708 * cmds.c (nonundocount): New global variable.
8709 (keys_of_cmds): Initialize it.
8710 (Fself_insert_command): Use it to combine upto 20 sequential chars
8711 into a single undo entry, just like the Qself_insert_command code in
8712 keyboard.c does.
8713 Call frame_make_pointer_invisible, also like the Qself_insert_command
8714 code in keyboard.c does.
8715 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8716 than its own local replacement for it.
8717
e267324c
KR
87182009-08-10 Ken Raeburn <raeburn@raeburn.org>
8719
1ac9108a 8720 * fns.c (concat): Don't re-set string length to its current value.
77437343 8721
1ac9108a
SM
8722 * coding.h (decode_coding_string, encode_coding_string):
8723 Use SBYTES macro.
f0bed503 8724
1ac9108a 8725 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8726 (doprnt): Merge with doprnt1, discarding lispstrings code.
8727 * lisp.h (doprnt_lisp): Don't declare.
8728
416e006d
JL
87292009-08-07 Juri Linkov <juri@jurta.org>
8730
8731 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8732
6f7d5780
DN
87332009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8734
8735 * print.c (syms_of_print): Undo previous change.
8736
f19a0f5b
TZ
87372009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8738
8739 * lread.c (read1, syms_of_lread): Read hashtables back from the
8740 readable format.
8741
8742 * print.c (print_preprocess, print_object): Print hashtables fully
8743 and readably.
8744 (syms_of_print): Provide 'hashtable-print-readable.
8745
b9173dc2
AR
87462009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8747
8748 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8749 no family set.
8750 (nsfont_open): Handle case when entity has no family.
8751
1586503c
AR
87522009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8753
8754 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8755 element, not a list, for match case.
8756
087048cd
KH
87572009-07-28 Kenichi Handa <handa@m17n.org>
8758
8759 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8760 rigidly.
8761
8762 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8763 font_parse_xlfd. Check font properties more rigidly.
8764
780c2506
DN
87652009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8766
31fd7c5c
JB
8767 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8768 bsd-common.h.
780c2506 8769
a8c0cc18
KH
87702009-07-27 Kenichi Handa <handa@m17n.org>
8771
8772 * xfaces.c (face_with_height): Call font_clear_prop.
8773
4fbe2306
CY
87742009-07-26 Chong Yidong <cyd@stupidchicken.com>
8775
111d9af3
CY
8776 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8777
8778 * xterm.c (x_term_init): Use Qx.
8779
4fbe2306
CY
8780 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8781
1ac9108a 8782 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8783 (ns_get_color): Revert 2009-07-16 change.
8784
beb0b7f9
EZ
87852009-07-25 Eli Zaretskii <eliz@gnu.org>
8786
8787 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8788 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8789
2baf5e76
KR
87902009-07-25 Ken Raeburn <raeburn@raeburn.org>
8791
1ac9108a
SM
8792 * coding.h (decode_coding_string, encode_coding_string):
8793 Use SCHARS macro.
8890e5f5 8794
2baf5e76 8795 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8796 (load_depth): Delete.
2baf5e76
KR
8797 (Qload_in_progress): New variable.
8798 (load_unwind): Don't reference load_depth or load_in_progress.
8799 (Fload): Likewise; specbind Qload_in_progress instead.
8800 (init_lread): Don't initialize load_depth.
8801 (syms_of_lread): Initialize and protect Qload_in_progress.
8802
1395c6f5
AR
88032009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8804
8805 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8806
4e2f36cf
AR
88072009-07-23 Yavor Doganov <yavor@gnu.org>
8808
8809 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8810
5dd9a6f7
AR
88112009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8812
8813 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8814 Bugs 3792, 3720, 2402.
8815 (ns_lookup_indexed_color): Check for bad index.
8816 (ns_index_color): Init unused slot to 0.
8817 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8818 Bug 3714, possibly 3082.
5dd9a6f7 8819
c902b920
JR
88202009-07-22 Jason Rumney <jasonr@gnu.org>
8821
1ac9108a
SM
8822 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8823 Position IME window at cursor (Bug#2570).
c902b920
JR
8824 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8825 (globals_of_w32fns): Dynamically load functions required above.
8826
8827 * w32term.c (w32_draw_window_cursor): Send message to reposition
8828 any IME window.
8829
090101cf
CY
88302009-07-21 Chong Yidong <cyd@stupidchicken.com>
8831
8832 * fileio.c: Revert 2009-07-16 changes.
8833 (Vauto_save_include_big_deletions): New variable.
8834 (Fdo_auto_save): Disable auto-save only if
8835 auto-save-include-big-deletions is nil.
8836
e6583e3d
CY
88372009-07-21 Chong Yidong <cyd@stupidchicken.com>
8838
8839 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8840 the overflowed pixels into account (Bug#3879).
8841
ece435a5
KR
88422009-07-21 Ken Raeburn <raeburn@raeburn.org>
8843
8844 * lread.c (load_depth): New variable.
8845 (Fload, load_unwind, init_lread): Set it to the load recursion
8846 depth; set load_in_progress as a simple boolean based on the
8847 current load_depth. (Bug#3892)
8848
40b2d973
AR
88492009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8850
8851 * nsfont.m (ns_has_attribute): Remove.
8852 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8853
10be7e0d
JL
88542009-07-18 Juri Linkov <juri@jurta.org>
8855
8856 * process.c (Fset_process_query_on_exit_flag): Mention killing
8857 a buffer in docstring.
8858
fa055055
KH
88592009-07-17 Kenichi Handa <handa@m17n.org>
8860
8861 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8862
042f7b69
YM
88632009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8864
8865 * nsfns.m (Fns_set_alpha): Remove function.
8866 (syms_of_nsfns): Don't defsubr it.
8867
8868 * nsterm.m (ns_get_color): Remove incompatible color formats.
8869 (ns_color_to_lisp): Generate #rrggbb color format string.
8870
4be941e3
RS
88712009-07-16 Richard Stallman <rms@gnu.org>
8872
8873 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8874 (Fset_buffer_auto_saved): Handle save_length = -2.
8875
4e6b227d
CY
88762009-07-16 Chong Yidong <cyd@stupidchicken.com>
8877
8878 * xterm.c (Qx_gtk_map_stock): New var.
8879
8880 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8881 of calling intern each time.
8882
a1856973
YM
88832009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8884
8885 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8886 does tiling.
8887
8888 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8889
497e54d8
KH
88902009-07-14 Kenichi Handa <handa@m17n.org>
8891
72d36834
KH
8892 * font.c (font_vconcat_entity_vectors): New function.
8893 (struct font_sort_data): New member font_driver_preference.
8894 (font_compare): Check font_driver_preference.
8895 (font_sort_entities): The format of the first argument changed.
8896 (font_delete_unmatched): Likewise.
8897 (font_list_entities): The return type changed.
8898 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8899 (font_find_for_lface): Adjuste for the above changes.
8900 Don't suppress the checking of C even if the repertory supports it.
8901 (Flist_fonts): Adjust for the above changes.
72d36834 8902
1ac9108a
SM
8903 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8904 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8905 Reject a font who has adstyle property that is different from a
8906 langname derived from registry property.
1ac9108a 8907 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8908
b6046155
EZ
89092009-07-13 Eli Zaretskii <eliz@gnu.org>
8910
8911 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8912 local copy of dirfilename.
8913
fb6b6049
KH
89142009-07-13 Kenichi Handa <handa@m17n.org>
8915
e2402a5e
KH
8916 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8917 against max_char.
8918
fb6b6049
KH
8919 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8920 calling XSYMBOL (sym).
8921
65156807
EZ
89222009-07-11 Eli Zaretskii <eliz@gnu.org>
8923
1ac9108a
SM
8924 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8925 New function.
8926 (directory_files_internal) [WINDOWSNT]:
8927 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8928 the filesystem of the directory is fast or slow.
8929
8930 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8931 file name.
8932 (is_slow_fs): New function.
8933 (stat): Use it to determine whether to issue more system calls to
8934 get accurate file attributes, when w32-get-true-file-attributes is
8935 `local'.
8936
e0ab5fcf
JD
89372009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8938
8939 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8940 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8941 parameter font-parameter as default to the font dialog.
8942
784ceded
KH
89432009-07-10 Kenichi Handa <handa@m17n.org>
8944
8945 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8946
fb8edc0b
EZ
89472009-07-09 Eli Zaretskii <eliz@gnu.org>
8948
1ac9108a 8949 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8950
fb8edc0b
EZ
8951 * w32.c (stat): Treat UNC file names as residing on remote
8952 drives. (Bug#3542)
8953
635c75b1
KH
89542009-07-09 Kenichi Handa <handa@m17n.org>
8955
8956 * fontset.c (fontset_find_font): Fix previous change.
8957
c1d5ce94
MA
89582009-07-08 Michael Albinus <michael.albinus@gmx.de>
8959
8960 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8961 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8962 error flag.
8963
edb61b39
KH
89642009-07-08 Kenichi Handa <handa@m17n.org>
8965
374bf7e4
KH
8966 * fontset.c (fontset_find_font): Fix the logic of handling
8967 charset_matched.
8968 (font_for_char): Delete unused var.
8969 (generate_ascii_font_name): Delete it.
8970
edb61b39
KH
8971 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8972
8973 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8974 (encode_coding_sjis): Fix the code range check.
8975
0f3f018c
CY
89762009-07-07 Chong Yidong <cyd@stupidchicken.com>
8977
8978 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8979 (Fexpand_file_name): Copy string data properly (Bug#3772).
8980
fcaf6f3a
JD
89812009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8982
8983 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8984 first MapNotify.
8985
6809ca75
KH
89862009-07-07 Kenichi Handa <handa@m17n.org>
8987
8988 * character.h (unibyte_has_multibyte_table): Delete extern.
8989 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8990
8991 * charset.c (Fset_charset_priority): Update charset_unibyte.
8992 (syms_of_charset): Initialize charset_unibyte.
8993
8994 * character.c (unibyte_has_multibyte_table): Delete it.
8995 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8996 charset_unibyte.
8997 (multibyte_char_to_unibyte_safe): Likewise.
8998 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8999
1ac9108a 9000 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
9001 (x_produce_glyphs): Likewise.
9002
9003 * .gdbinit (xcharset): Fix the treating $arg0.
9004
ad9e2d54
EZ
90052009-07-04 Eli Zaretskii <eliz@gnu.org>
9006
9007 Emulation of `getloadavg' on MS-Windows.
50426a04 9008 * w32.c: Include float.h.
ad9e2d54
EZ
9009 (g_b_init_get_native_system_info, g_b_init_get_system_times)
9010 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
9011 (get_native_system_info, get_system_times): New functions.
9012 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
9013 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
9014 (globals_of_w32): Initialize g_b_init_get_native_system_info,
9015 g_b_init_get_system_times, and num_of_processors.
9016
0a3472c7
JR
90172009-07-03 Jason Rumney <jasonr@gnu.org>
9018
9019 * w32term.c (w32_initialize): Use standard types.
9020
80904120
EZ
90212009-07-03 Eli Zaretskii <eliz@gnu.org>
9022
9023 * dired.c (Ffile_attributes): Decode user and group names by the
9024 locale's encoding. (Bug#3443)
9025
6978862d
DN
90262009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
9027
f8d23104
DN
9028 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
9029 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
9030
9031 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
9032
9033 * term.c (init_tty): Remove spurious #ifdef.
9034
6978862d
DN
9035 * m/mips.h: Mention this file is also used for netbsd.
9036 * m/pmax.h: Remove file.
9037
e044e4fc
JD
90382009-07-03 Jan Djärv <jan.h.d@swipnet.se>
9039
9040 * xterm.h (struct x_display_info): Add invisible_cursor.
9041 (struct x_output): Add current_cursor.
9042
9043 * xterm.c (XTtoggle_invisible_pointer): New function.
9044 (x_define_frame_cursor): Don't define cursor if invisible or the
9045 same as before. Set current_cursor.
9046 (x_create_terminal): Set toggle_invisible_pointer_hook.
9047
9048 * xfns.c (make_invisible_cursor): New function.
9049 (x_set_mouse_color): Call make_invisible_cursor.
9050 Set current_cursor.
9051 (x_window): Set current_cursor.
9052
9053 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
9054
9055 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
9056 inserting a character.
9057 (read_avail_input): Call frame_make_pointer_visible.
9058
9059 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
9060 (frame_make_pointer_invisible, frame_make_pointer_visible):
9061 New functions.
e044e4fc
JD
9062 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
9063
9064 * frame.h: Declare frame_make_pointer_invisible and
9065 frame_make_pointer_visible.
9066 (struct frame): Add pointer_invisible.
9067
574c8efa
JD
90682009-07-02 Jan Djärv <jan.h.d@swipnet.se>
9069
7b507248
JD
9070 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
9071 frame isn't visible.
9072 (xg_frame_resized): If width/height is -1, get size of window
9073 from X server.
9074
9075 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
9076 for MapNotify.
9077
835bdaa7 9078 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 9079 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 9080 (flush_and_sync): Reintroduce.
574c8efa 9081
3f1c6666 90822009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 9083
31fd7c5c 9084 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
9085
9086 * xterm.c (x_handle_net_wm_state): Also look for sticky.
9087 (x_term_init): Initialize Xatom_net_wm_state_sticky.
9088
9089 * frame.h: Declare Qsticky.
9090
cad9ef74
JD
9091 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
9092
9093 * nsfns.m (ns_frame_parm_handlers): Ditto.
9094
9095 * frame.c: Declare Qsticky.
9096 (frame_parms): Add sticky.
9097
9098 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
9099
9100 * xterm.h: Declare x_set_sticky.
9101
9102 * xterm.c (x_set_sticky): New function.
9103
69b16610
JD
9104 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
9105 (xg_tool_bar_menu_proxy): Attach enter/leave events to
9106 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
9107
9108 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
9109
9110 * frame.c: Qmaximized is new.
9111 (x_set_frame_parameters): Do not handle fullscreen specially.
9112 Only set width and height if explicitly set.
9113 (x_set_fullscreen): Handle Qmaximized.
9114 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
9115 (syms_of_frame): Initialize Qmaximized.
9116
1ac9108a
SM
9117 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
9118 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
9119
9120 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
9121 for Expose event. Add call to x_check_fullscreen for MapNotify event.
9122 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
9123 set gravity to NorthWestGravity when USE_GTK.
9124 (set_wm_state): New function.
31fd7c5c 9125 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
9126 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
9127 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 9128 or the case when no window manager is running. That means remove calls
3f1c6666
JD
9129 to x_real_positions and x_fullscreen_adjust.
9130
9131 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
9132 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
9133 flush_and_sync.
9134 (xg_height_changed): New function.
9135 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
9136 and gtk_window_set_policy. Set frame gravity after parsing the
9137 geometry string.
3f1c6666
JD
9138 (xg_update_frame_menubar, free_frame_menubar)
9139 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9140 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
9141 Remove calls to xg_frame_set_char_size.
9142
fd503d99
KH
91432009-07-01 Kenichi Handa <handa@m17n.org>
9144
9145 * keyboard.c (decode_keyboard_code): New function.
9146 (tty_read_avail_input): Decode the input bytes if necessary.
9147
1ac9108a
SM
9148 * coding.c (setup_coding_system):
9149 Initialize coding->carryover_bytes to 0.
fd503d99
KH
9150 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9151 use Qno_conversion.
9152
24ed93fb
YM
91532009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9154
9155 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
9156
99061dfc
CY
91572009-06-30 Chong Yidong <cyd@stupidchicken.com>
9158
1ac9108a 9159 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 9160
ff90fbde
JR
91612009-06-30 Jason Rumney <jasonr@gnu.org>
9162
9163 * w32term.c (w32_initialize): Use GetModuleHandle for library that
9164 is already loaded.
9165 Set user model ID if supported (bug#1849).
9166
5f445726
JM
91672009-06-29 Jim Meyering <meyering@redhat.com>
9168
9169 Remove useless if-before-xfree test.
9170 * nsfont.m (nsfont_close): Remove useless test.
9171 * term.c (delete_tty): Likewise.
9172 * w32.c (system_process_attributes): Likewise.
9173 * w32font.c (w32font_close): Likewise.
9174 * xfaces.c (x_free_gc): Likewise.
9175 * xselect.c (buffer): Likewise.
9176
b9607587
AS
91772009-06-28 Andreas Schwab <schwab@linux-m68k.org>
9178
9179 * process.c (send_process): Keep decoded string in a local
9180 variable and protect it from GC. (Bug#3521)
9181
89ba96f4
EZ
91822009-06-28 Eli Zaretskii <eliz@gnu.org>
9183
9184 * term.c (create_tty_output) [MSDOS]: #ifdef away.
9185 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
9186
098a1589
CY
91872009-06-28 Chong Yidong <cyd@stupidchicken.com>
9188
485422be
CY
9189 * xdisp.c (start_display, handle_face_prop)
9190 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
9191 (redisplay_window, try_window_id, produce_image_glyph):
9192 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 9193
098a1589
CY
9194 * xterm.c (x_update_window_begin, x_new_focus_frame)
9195 (x_scroll_bar_handle_click, handle_one_xevent)
9196 (handle_one_xevent, XTread_socket, x_focus_on_frame)
9197 (x_make_frame_visible, x_make_frame_invisible)
9198 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9199 code chunks that are now obsolete.
9200
78c38319
MA
92012009-06-28 Michael Albinus <michael.albinus@gmx.de>
9202
9203 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9204 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
9205 for hours, when optimzation is enabled.
9206 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9207 (xd_read_message): Make them static.
9208
4189ed40
CY
92092009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
9210
9211 * term.c (turn_on_face): Allow simultaneously bold and dim
9212 terminal faces (Bug#3530).
9213
cd9b5e16
CY
92142009-06-27 Chong Yidong <cyd@stupidchicken.com>
9215
4e23bedb
CY
9216 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9217
cd9b5e16
CY
9218 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9219 truncation glyphs (Bug#3686).
9220
07cc3c35
GM
92212009-06-27 Glenn Morris <rgm@gnu.org>
9222
9223 * m/pmax.h: Restore file, with only netbsd portions.
9224
31fd7c5c 92252009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 9226
cd9b5e16 9227 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 9228
42d4a64f
KH
92292009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9230
9231 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9232 the arg FORCE_SYMBOL.
9233
930fe55b 92342009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
9235
9236 * fontset.c (fontset_find_font): When a usable rfont_def is found
9237 in a fallback font-group, make it the first element of the group.
9238
57ebc3fd
CY
92392009-06-24 Chong Yidong <cyd@stupidchicken.com>
9240
9241 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9242
f084f942
KH
92432009-06-24 Kenichi Handa <handa@m17n.org>
9244
9245 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9246 set for C.
9247 (fontset_font): Record the availability of a font for C both in
9248 the realized fontsets of the current one and the default one.
9249
2f686c87
DN
92502009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9251
9252 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9253 conditional, it is always defined on AIX.
9254
666e158e
MB
92552009-06-23 Miles Bader <miles@gnu.org>
9256
9257 * window.c (Vrecenter_redisplay): New variable.
9258 (syms_of_window): Initialize it.
9259 (Qtty): New extern declaration.
9260 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9261
c6da7cd2
JM
92622009-06-23 Jim Meyering <meyering@redhat.com>
9263
1ac9108a
SM
9264 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9265 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 9266 pointer dereferences are guaranteed to be valid.
c6da7cd2 9267
678dca3d
KH
92682009-06-23 Kenichi Handa <handa@m17n.org>
9269
74d75424
KH
9270 * emacs.c (main): Call init_font ().
9271
9272 * font.h (Vfont_log): Extern it.
9273 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9274
9275 * font.c (font_sort_entities, font_list_entities)
9276 (font_matching_entity, font_open_entity)
9277 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9278 (Vfont_log): Delete static.
9279 (font_log_env_checked): Delete this variable.
9280 (font_add_log): Don't check font_log_env_checked.
9281 (font_deferred_log): Check Vfont_log.
9282 (init_font): New function.
9283
678dca3d
KH
9284 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9285
9286 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9287
9288 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9289
9290 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9291
9292 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9293 (face_for_char): Don't call font_deferred_log here.
9294 (font_for_char): Likewise.
9295
8a668709
CY
92962009-06-22 Chong Yidong <cyd@stupidchicken.com>
9297
9a01ee33
CY
9298 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9299 rather than its background_width for drawing the overline and
9300 underline (Bug#489).
9301
9302 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9303 rather than its background_width for drawing the overline and
9304 underline (Bug#489).
ec7c9926
CY
9305 (xg_default_icon_file): New variable.
9306 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9307 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 9308
8a668709
CY
9309 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9310 (load_overlay_strings): Remove externs.
9311 (fast_find_position): Function deleted.
9312 (mouse_face_from_buffer_pos): New function, based on
9313 fast_find_position. Correctly handle before-strings,
9314 display-strings, and after-strings (Bug#1220).
9315 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9316
4d4c02d8
CY
93172009-06-21 Chong Yidong <cyd@stupidchicken.com>
9318
1ac9108a 9319 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
9320 (move_it_in_display_line_to, move_it_in_display_line_to)
9321 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9322
70243478
CY
93232009-06-21 Chong Yidong <cyd@stupidchicken.com>
9324
9325 * Branch for 23.1.
9326
13087e59
JR
93272009-06-21 Jason Rumney <jasonr@gnu.org>
9328
9329 * w32term.c (keyboard_codepage): New static variable.
9330 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9331 (w32_read_socket) [WM_CHAR]: Use it to decode character
9332 input (bug#3237).
9333 (w32_initialize): Initialize it.
9334 (codepage_for_locale): New function.
9335
4735b74e
KR
93362009-06-20 Ken Raeburn <raeburn@raeburn.org>
9337
9338 * process.c (status_message): Pass Faset index argument as a lisp
9339 object, so as to work with USE_LISP_UNION_TYPE.
9340
0e727afa
YM
93412009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9342
9343 * coding.c (Ffind_coding_systems_region_internal):
9344 Cache checked characters.
9345
cf299835
KH
93462009-06-18 Kenichi Handa <handa@m17n.org>
9347
1ac9108a 9348 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 9349
90f20d94
AS
93502009-06-18 Andreas Schwab <aschwab@redhat.com>
9351
9352 * xdisp.c (redisplay_internal): Check that the frame is still
9353 live after redisplay of its windows.
9354 (redisplay_windows): Check that the window is still live.
9355
7f1faf1c
KH
93562009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9357
9358 * coding.c (detect_coding_utf_16): Fix previous change.
9359
cc13543e
KH
93602009-06-16 Kenichi Handa <handa@m17n.org>
9361
9362 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9363 UTF-16 by checking the dispersion of Eth and Oth bytes.
9364
977b85f4
AS
93652009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9366
9367 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9368
66bd43d1
KH
93692009-06-15 Kenichi Handa <handa@m17n.org>
9370
9371 * process.c (status_message): Fix previous change. Be sure to
9372 decode a localized string.
9373
cb5ca9c5
YM
93742009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9375
9376 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9377 add comment explaining why.
9378
ec7709ba 93792009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 9380
ec7709ba 9381 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 9382
4b7f335c
AR
93832009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9384
9385 * nsfont.m (ns_attribute_value): Remove.
9386 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9387 (ns_has_attribute): Shrink the normal range.
9388 (ns_findfonts): Don't worry about requested spec in determining
9389 need for synthItal.
e41820ee 9390 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 9391
73b26103
SZ
93922009-06-14 Seiji Zenitani <zenitani@mac.com>
9393
9394 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9395
5753e4da
KH
93962009-06-11 Kenichi Handa <handa@m17n.org>
9397
9398 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9399 overhang for the static composition case.
9400
3561b671
KH
94012009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9402
5753e4da
KH
9403 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9404 overhang for the automatic composition case.
9405
3561b671
KH
9406 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9407 composition case.
9408
852bbd41
CY
94092009-06-10 Chong Yidong <cyd@stupidchicken.com>
9410
9411 * xdisp.c (get_next_display_element): When handling wrap-prefix
9412 and line-prefix, treat \n as a control character (bug#3502).
9413
9903d1e6
KH
94142009-06-10 Kenichi Handa <handa@m17n.org>
9415
9416 * font.c (font_parse_family_registry): Fix for one-char foundry.
9417 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9418
0bcbaaaa
CY
94192009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9420
9421 * process.c (status_message): Fix handling of multibyte signal
9422 string (Bug#3499).
9423
40aa3f13
JM
94242009-06-09 Jim Meyering <meyering@redhat.com>
9425
1f80c7e2
CY
9426 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9427 color name is missing.
40aa3f13 9428
72d51285
KH
94292009-06-09 Kenichi Handa <handa@m17n.org>
9430
9431 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9432 FROM-CODE and TO-CODE are codepoints of CHARSET.
9433
c1d04d84
AR
94342009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9435
9436 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9437
94382009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9439
9440 Changes to support :script/:lang/:otf in NS font driver.
9441 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9442 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9443 indicate not part of font driver interface, and change callers.
9444 (ns_get_family): Remove pointless null check.
9445 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9446 ns_spec_to_descriptor, ns_descriptor_to_entity.
9447 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9448 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9449 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9450 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9451 (ns_get_req_script, ns_accumulate_script_ranges)
9452 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9453 New functions.
9454 (nsfont_list, nsfont_match): Use ns_findfonts.
9455 (nsfont_open): Use font descriptor instead of traits.
9456 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9457 (dump_glyphstring): Rename to ns_dump_glyphstring.
9458
c7eb9816
AR
9459 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9460
c1d04d84
AR
9461 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9462
9463 * fontset.c (fontset_from_font): Remove NS-specific code.
9464
ec7709ba 94652009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
9466
9467 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9468 nonactive windows.
9469
31fd7c5c 94702009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 9471
1ac9108a 9472 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 9473
68852c13 94742009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
9475
9476 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9477
6756cd1d
CY
94782009-06-07 Chong Yidong <cyd@stupidchicken.com>
9479
9480 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9481 account for the overflowing of newlines into the last glyph on the
9482 display line (Bug#3482).
9483
28bf482a
DR
94842009-06-05 David Reitter <david.reitter@gmail.com>
9485
ec7709ba
JB
9486 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9487 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
9488 Fns_selection_exists_p, Fns_selection_owner_p.
9489
fdb55376
JR
94902009-06-03 Jason Rumney <jasonr@gnu.org>
9491
9492 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9493 available. (Bug#3379)
9494
05129fbe
KH
94952009-05-29 Kenichi Handa <handa@m17n.org>
9496
1ac9108a
SM
9497 * coding.c (get_translation_table):
9498 Check Venable_character_translation.
05129fbe 9499
ec7709ba 95002009-05-26 David Reitter <david.reitter@gmail.com>
15891144 9501
ec7709ba
JB
9502 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9503 (x_make_frame_visible): Move frame to front rather than calling
15891144 9504 ns_raise_frame().
ec7709ba 9505 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 9506 isn't key window.
ec7709ba 9507 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
9508 drawRect may be called by NSView even if the frame is hidden.
9509
ec7709ba
JB
9510 * nsfns.m (Fx_create_frame): Follow other ports in
9511 determining visibility; default to t. Ensure async_visible is set.
15891144 9512
21f73755
EZ
95132009-05-23 Eli Zaretskii <eliz@gnu.org>
9514
9515 * dired.c (Ffile_attributes): Doc fix.
9516
34001e41
CY
95172009-05-22 Chong Yidong <cyd@stupidchicken.com>
9518
9519 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9520
46306a17
SM
95212009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9522
9523 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9524 and xfont_scratch_props.
9525 (syms_of_xfont): Do it here instead.
9526 (xfont_find_ccl_program): Delete, unused.
9527 (xfont_open): Delete unused var `i'.
9528
ef6e0694
KH
95292009-05-21 Kenichi Handa <handa@m17n.org>
9530
9531 * fontset.c (Qlatin): Don't make it static.
9532
46306a17
SM
9533 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9534 New functions.
ef6e0694
KH
9535 (xfont_scripts_cache, xfont_scratch_props): New variables.
9536 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
9537 (xfont_list_pattern): Argument changed. Callers changed.
9538 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
9539 (xfont_list): Don't reject a font spec with :script property.
9540 (xfont_has_char): Fix setting of encoding.
9541 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9542 xfont_scratch_props.
9543
95442009-05-19 Kenichi Handa <handa@m17n.org>
9545
46306a17 9546 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
9547 Callers changed.
9548
95492009-05-18 Kenichi Handa <handa@m17n.org>
9550
9551 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9552
ac71ced7
SM
95532009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9554
9555 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9556 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9557
1c6d1051
YM
95582009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9559
9560 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9561 (x_delete_terminal): Dissociate resource database from display and
9562 then call XrmDestroyDatabase before closing display.
9563
9b9b779c
AR
95642009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9565
9566 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
9567 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9568 whether selected frame is viable before raising it (based on patch
9569 by David Reitter), and improve commentary.
9570 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 9571
cccd42d5
KH
95722009-05-15 Kenichi Handa <handa@m17n.org>
9573
9574 * font.c (Ffont_spec): Check arguments.
9575
337fbd17
CY
95762009-05-14 Chong Yidong <cyd@stupidchicken.com>
9577
9578 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9579 weight when testing attributes (Bug#3282).
9580
47a6002f
JD
95812009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9582
9583 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9584 what we expect to get in the next ConfigureNotify event.
9585
9cb363db
YM
9586 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9587 before Xft one (Bug#1696).
9588
b9126609
CY
95892009-05-07 David Reitter <david.reitter@gmail.com>
9590
9591 * nsfns.m (Fx_display_planes): Compute bitplanes using
9592 NSBitsPerPixelFromDepth (Bug#3207).
9593
27a69fd9
CY
95942009-05-10 Chong Yidong <cyd@stupidchicken.com>
9595
9596 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9597
00f37552
TTN
95982009-05-10 Ulrich Mueller <ulm@gentoo.org>
9599
9600 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9601
2d82a920
DR
96022009-05-07 David Reitter <david.reitter@gmail.com>
9603
ec7709ba
JB
9604 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9605 Respect mouse face background.
2d82a920 9606
46b0d52d
DR
96072009-05-07 David Reitter <david.reitter@gmail.com>
9608
ec7709ba
JB
9609 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9610 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
9611 in ns_update_begin and ns_update_end.
9612
ce1b23bb
SM
96132009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9614
5996e1b7
SM
9615 * nsfns.m (ns_get_screen): Rewrite.
9616 Don't presume selected-frame is of type `ns'.
9617
ba98e3a0
SM
9618 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9619 all drivers.
9620
ce1b23bb
SM
9621 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9622
bcda200f
YM
96232009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9624
9625 * keyboard.h (add_user_signal): Fix typo in extern.
9626
9627 * lisp.h (add_user_signal): Remove extern.
9628
9629 * unexelf.c (unexec): Consider a section to precede the .bss section
9630 if its addresses overlap that of .bss.
9631 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9632 instead of dumping process.
9633
864660a2
SM
96342009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9635
9636 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9637
50da4e56
SM
96382009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9639
9640 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9641
51520a1a
DN
96422009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9643
9644 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9645 any statements.
9646
409ea3a1
AS
96472009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9648
59c4c60f
AS
9649 * process.c (read_process_output): Make sure the current buffer is
9650 always restored.
9651
409ea3a1
AS
9652 * coding.c (record_conversion_result): Don't modify
9653 Vlast_code_conversion_error for successful result.
9654 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9655
56f00ed2
KH
96562009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9657
9658 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 9659 (load_charset_map): Remove unnecessary code.
56f00ed2 9660
4491c9d2
DR
96612009-04-30 David Reitter <david.reitter@gmail.com>
9662
35f5b128 9663 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
9664 through f24.
9665
6970f632
CY
96662009-04-30 Chong Yidong <cyd@stupidchicken.com>
9667
9668 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9669
9670 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9671 face_at_buffer_position.
9672 (face_before_or_after_it_pos, get_next_display_element)
9673 (note_mouse_highlight): Update face_at_buffer_position call.
9674
9675 * term.c (term_mouse_highlight):
9676 * msdos.c (IT_note_mouse_highlight):
9677 * fontset.c (Finternal_char_font):
35f5b128 9678 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
9679
9680 * dispextern.h (face_at_buffer_position): Update prototype.
9681
0c616f63
KH
96822009-04-30 Kenichi Handa <handa@m17n.org>
9683
35f5b128 9684 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 9685
ad3aaf33
AS
96862009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9687
9688 * callproc.c (Fcall_process): Fix GC protection. Make sure
9689 current buffer is always restored.
9690
c3c963a0
YM
96912009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9692
9693 * atimer.c (init_atimer): Also clear stopped_atimers.
9694
9695 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9696
7e3386cb
YM
9697 * process.c (create_process): Clean up merger residues of
9698 2008-07-17 change.
9699
91f68422
CY
97002009-04-29 Ulrich Mueller <ulm@gentoo.org>
9701
9702 * lread.c (Vread_circle): New variable.
9703 (read1): Disable recursive read if Vread_circle is nil.
9704
24b34550
KH
97052009-04-29 Kenichi Handa <handa@m17n.org>
9706
9707 * fontset.h (set_default_ascii_font): Delete extern.
9708
9709 * fontset.c (set_default_ascii_font): Delete this unused function.
9710
9711 * frame.c (x_set_font): When ARG is a font-object, check if the
9712 font-object matches with the ASCII font-spec of the frame's
9c358bda 9713 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9714
77bf07e1
AS
97152009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9716
9717 * fns.c (Flocale_info): Protect vector from GC during decoding.
9718
9719 * process.c (Fstart_process): Protect argv strings from GC during
9720 encoding.
9721
2c55aacf
AS
97222009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9723
9724 * sysdep.c: Include <ctype.h>.
9725
b892d3c9
DR
97262009-04-27 David Reitter <david.reitter@gmail.com>
9727
35f5b128 9728 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9729 Remove commented-out code.
9730
9d0644c4
JB
97312009-04-26 Johan Bockgård <bojohan@gnu.org>
9732
9733 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9734
b7053016
JR
97352009-04-25 Jason Rumney <jasonr@gnu.org>
9736
9737 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9738
4e8231f3
YM
97392009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9740
9741 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9742 Swap bytes in short integer if fringe bitmap width > 8.
9743
493dcf2c
KH
97442009-04-23 Kenichi Handa <handa@m17n.org>
9745
9746 * xfaces.c (Fx_list_fonts): If a font size is specified in
9747 PATTERN, set it in returned scalable fonts.
9748
401e9e57
CY
97492009-04-22 Chong Yidong <cyd@stupidchicken.com>
9750
708e05dc
CY
9751 * keyboard.c (Fset_input_meta_mode): Doc fix.
9752
9753 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9754
1ac9108a 9755 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9756
9757 * coding.c (Fterminal_coding_system): Doc fix.
9758
9759 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9760 (Fx_display_pixel_height, Fx_display_planes)
9761 (Fx_display_color_cells, Fx_server_max_request_size)
9762 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9763 (Fx_display_mm_height, Fx_display_mm_width)
9764 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9765 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9766 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9767 (check_x_display_info): Handle terminal objects instead of
9768 terminal ids.
9769
401e9e57
CY
9770 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9771 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9772 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9773 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9774
df80c7f0
KH
97752009-04-21 Kenichi Handa <handa@m17n.org>
9776
5a8f12af 9777 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9778 (font_score): Check AVGWIDTH too.
908567ef 9779
df80c7f0
KH
9780 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9781 worst case.
1ac9108a
SM
9782 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9783 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9784
705af33f
JR
97852009-04-19 Jason Rumney <jasonr@gnu.org>
9786
9787 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9788 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9789
9790 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9791 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9792 get_phys_cursor_geometry.
9793
b71ac3dd 9794 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9795 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9796 using get_phys_cursor_geometry.
9797
9798 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9799 correctly calculated.
9800
dc2933eb
JD
98012009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9802
1ac9108a
SM
9803 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9804 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9805 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9806 is deprecated.
9807
973e7849
AS
98082009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9809
9810 * font.c (font_put_frame_data): Use xfree instead of free.
9811
314d66f4
JB
98122009-04-17 Juanma Barranquero <lekktu@gmail.com>
9813
9814 * w32font.c (Qja, Qko): Remove declarations.
9815 (syms_of_w32font): Don't DEFSYM them.
9816
cf702558
CY
98172009-04-17 Chong Yidong <cyd@stupidchicken.com>
9818
9819 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9820
9821 * font.h (Qja, Qko): Extern them.
9822
9823 * ftfont.c (Qja, Qko): Remove declarations.
9824
9825 * xfont.c (Qja, Qko): Remove declarations.
9826
b50504f5
KH
98272009-04-17 Kenichi Handa <handa@m17n.org>
9828
bde25748
KH
9829 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9830 string from a vector to handle Latin-1 characters correctly.
9831
b50504f5
KH
9832 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9833 entity even if the cache hits.
9834
f4646fff
AS
98352009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9836
9837 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9838 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9839
e7deaab0
AS
9840 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9841 * lisp.h: Adjust prototypes.
9842
0a0e7d49
CY
98432009-04-16 Chong Yidong <cyd@stupidchicken.com>
9844
9845 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9846 change (Bug#3003).
9847
3c908a57
KH
98482009-04-16 Kenichi Handa <handa@m17n.org>
9849
1ac9108a 9850 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9851
9852 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9853 adstyle.
9854
9855 * ftfont.c (Qja, Qko): Don't make them static.
9856 (enum ftfont_cache_for): New enum.
9857 (fc_charset_table): Undo the previous change.
9858 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9859 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9860 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9861 non-scarable font, try to get AVERAGE_WIDTH.
9862 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9863 Change ft_face_cache from a list of a hash-table. Don't check
9864 `ja' and `ko' adstyle here.
9865 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9866 FTFONT_CACHE_FOR_CHARET.
9867 (ftfont_get_charset): Undo the previous change.
1ac9108a 9868 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9869 (ftfont_close): Likewise.
9870 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9871
9872 * font.c (font_sort_entites): Change the meaning of the arg
9873 BEST-ONLY. Don't optimize for VEC of lenght 1.
9874 (font_select_entity): Just return the value of font_sort_entites.
9875
9876 * xfaces.c (merge_face_vectors): Reflect font properties in
9877 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9878 font_clear_prop if a face attribute doesn't change.
9879
3c908a57
KH
9880 * charset.h (charset_ksc5601): Extern it.
9881
9882 * charset.c (charset_ksc5601): New variable.
9883 (Fdefine_charset_internal): Set charset_ksc5601.
9884 (init_charset_once): Initialize charset_ksc5601 to -1.
9885
d65859c3
DN
98862009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9887
9888 * fileio.c (history_delete_duplicates): Remove unused declaration.
9889
9890 * callint.c (history_delete_duplicates): New declaration.
9891 (Fcall_interactively): Remove command history duplicates when
9892 history_delete_duplicates is true.
9893
3ba010e5
EZ
98942009-04-14 Eli Zaretskii <eliz@gnu.org>
9895
9896 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9897
06f19b91
KH
98982009-04-14 Kenichi Handa <handa@m17n.org>
9899
9900 * font.c (Ffont_info): Fix docstring. Fix the second element of
9901 the returned value (bug#2949).
9902
2cce8bfc
CY
99032009-04-14 Chong Yidong <cyd@stupidchicken.com>
9904
9905 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9906
d156542d
KH
99072009-04-14 Kenichi Handa <handa@m17n.org>
9908
9909 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9910 encoding charset is ascii_compatible.
9911
9912 * charset.c (Fdefine_charset_internal): Make charset
9913 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9914 code_offset is 0, and covers all ASCII characters.
9915
86fa089e
SM
99162009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9917
9918 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9919 (ns_string_to_pasteboard_internal):
9920 * nsmenu.m (process_dialog):
9921 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9922 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9923 * lisp.h (Fx_load_color_file): Declare.
9924
a8a3728b
KH
99252009-04-13 Kenichi Handa <handa@m17n.org>
9926
1ac9108a 9927 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9928 (font_select_entity): Suppress the code to optimize for the same
9929 kind of fonts.
9930 (font_load_for_lface): Get a font that supports at least ASCII
9931 characters.
9932
9933 * ftfont.c (Qja, Qko): New variables.
9934 (fc_charset_table): Delete uniquifier data for iso8859-1.
9935 (ftfont_get_latin1_charset): New function.
9936 (get_adstyle_property): New function.
9937 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9938 bitmap fonts.
9939 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9940 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9941 `ko' or `ja'.
9942 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9943 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9944 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9945 property.
9946 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9947 (syms_of_ftfont): DEFSYM Qja and Qko.
9948
483670b5
KH
99492009-04-09 Kenichi Handa <handa@m17n.org>
9950
12b55765
KH
9951 * charset.c (map_charset_chars): For a charset of `superset'
9952 method, fix calculation of code range.
9953
483670b5
KH
9954 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9955 from the list of extra properties.
9956 (font_clear_prop): Be sure to delete `:name' font property.
9957
57d3b93b
KH
99582009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9959
b4b2c2ca
YM
9960 * dispnew.c (redraw_overlapping_rows): Fix detection of
9961 overlapping for topmost and bottommost rows.
9962
1ac9108a 9963 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9964
472c3609
JR
99652009-04-06 Jason Rumney <jasonr@gnu.org>
9966
9967 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9968
ab193662
KH
99692009-04-06 Kenichi Handa <handa@m17n.org>
9970
9971 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9972
9973 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9974
0c26f026
KH
99752009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9976
9977 * ftfont.c (ftfont_open): Fix checking of the return value of
9978 FT_Load_Char. Fix setting font->underline_thickness.
9979
e173bbce
CY
99802009-04-04 Chong Yidong <cyd@stupidchicken.com>
9981
9982 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9983 (Fterminal_parameters, Fterminal_parameter)
9984 (Fset_terminal_parameter): In doc string, refer to terminal
9985 objects rather than terminal ids.
9986
693a2698
EZ
99872009-04-04 Eli Zaretskii <eliz@gnu.org>
9988
9989 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9990 ret_lim_data. (Bug#2867)
9991
d5221487
CY
99922009-04-03 Chong Yidong <cyd@stupidchicken.com>
9993
9994 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9995 so they don't get wider than the window, matching 2006-01-23
9996 change to the partner function in xdisp.c (Bug#2800).
9997
223509a3
KH
99982009-04-03 Kenichi Handa <handa@m17n.org>
9999
10000 * print.c (print_object): Make each lowest sub_char_table start a
10001 new line (Bug#2866).
10002
74fcd0b1
KH
100032009-04-02 Kenichi Handa <handa@m17n.org>
10004
10005 * fontset.c (fontset_font): Record no-font when a fontset
10006 explicitly tells not to try another font-specs.
10007
c542407d
SM
100082009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
10009
10010 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
10011
e3869731
KH
100122009-03-30 Kenichi Handa <handa@m17n.org>
10013
d8d2f142
KH
10014 * fontset.c (fontset_from_font): Specify only registry in a
10015 font-spec for all characters supported by that registry.
10016
e3869731
KH
10017 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
10018 even if HAVE_M17N_FLT is not defined.
10019
5da5f805
CY
100202009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
10021
10022 * ftfont.c: Conditionalize prototyping and use of
10023 ftfont_variation_glyphs.
10024
ab226c50
SM
100252009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10026
9628fed7
SM
10027 * frame.c (delete_frame): Work around compiler bug.
10028
10029 * editfns.c (general_insert_function): Adjust to insdel.c changes.
10030 * insdel.c (prepare_to_modify_buffer, signal_before_change):
10031 Some more EMACS_INT.
10032 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
10033
10034 * xdisp.c (dump_glyph): Fix typo.
10035
ae19ba7c
SM
10036 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
10037 (adjust_markers_gap_motion, adjust_markers_for_delete)
10038 (adjust_markers_for_insert, adjust_point)
10039 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
10040 (make_gap, copy_text, count_size_as_multibyte, insert)
10041 (insert_and_inherit, insert_before_markers)
10042 (insert_before_markers_and_inherit, insert_1)
10043 (count_combining_before, count_combining_after, insert_1_both)
10044 (insert_from_string, insert_from_string_before_markers)
10045 (insert_from_string_1, insert_from_gap, insert_from_buffer)
10046 (insert_from_buffer_1, adjust_after_replace)
10047 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
10048 (replace_range_2, del_range, del_range_1, del_range_byte)
10049 (del_range_both, del_range_2, modify_region)
10050 (prepare_to_modify_buffer, signal_before_change)
10051 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
10052 for buffer positions and sizes.
10053 * lisp.h: Adjust prototypes accordingly.
10054
10055 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
10056 (non_regular_inserted, non_regular_nbytes, read_non_regular)
10057 (Finsert_file_contents): Use EMACS_INT for buffer positions.
10058
ab226c50
SM
10059 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
10060
46dfb8fb
JD
100612009-03-27 Jan Djärv <jan.h.d@swipnet.se>
10062
10063 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
10064 lines and columns so we keep the same pixel height and width.
10065
10066 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
10067 the property _NET_WM_STATE has changed.
46dfb8fb
JD
10068 (x_handle_net_wm_state): New function to update frame parameter
10069 fullscreen.
10070 (x_term_init): Initialize atoms for _NET_WM_STATE.
10071
10072 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
10073
d347e494
SM
100742009-03-27 Kevin Ryde <user42@zip.com.au>
10075
10076 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
10077 Gpm_GetEvent as an error that justifies closing the filedescriptor.
10078 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
10079 (Fgpm_mouse_stop): Pass that new parameter.
10080 * termhooks.h (close_gpm): Adjust prototype.
10081
84db11d6
SM
100822009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10083
c95a5008
SM
10084 * lisp.h (Fx_focus_frame): Declare.
10085
84db11d6
SM
10086 * callint.c (Fcall_interactively): For '^' just delegate the work to
10087 handle-shift-selection.
10088 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
10089
0a1958d6
CY
100902009-03-24 Chong Yidong <cyd@stupidchicken.com>
10091
0bfdff23
CY
10092 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
10093
0a1958d6
CY
10094 * data.c (Qinteractive_form): New variable.
10095 (Finteractive_form): Use it.
10096
10097 * eval.c (Fcommandp): Use Qinteractive_form.
10098
58aec0d6
JR
100992009-03-24 Jason Rumney <jasonr@gnu.org>
10100
10101 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
10102 Calculate total size precisely. Decode environment variables
10103 before substituting. (Bug#38)
10104
553dd618
KH
101052009-03-24 Kenichi Handa <handa@m17n.org>
10106
10107 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 10108 encoding (Bug#2722).
553dd618 10109
c39ea606
JD
101102009-03-23 Jan Djärv <jan.h.d@swipnet.se>
10111
10112 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
10113 that gdpy is set.
10114
bc9b2b5e
AM
101152009-03-22 Alan Mackenzie <acm@muc.de>
10116
10117 * callint.c (Finteractive): Clarify the doc string - even
10118 promptless elements need \n separators.
10119
9f995a76
JR
101202009-03-22 Jason Rumney <jasonr@gnu.org>
10121
10122 * w32term.c (syms_of_w32term): Doc fix for
10123 x-use-underline-position-properties.
10124
22749e9a
EZ
101252009-03-21 Eli Zaretskii <eliz@gnu.org>
10126
10127 * w32.c (getpwuid): Change argument type to unsigned.
10128 (struct w32_id): Change type of `rid' member to unsigned.
10129 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
10130 argument ID to unsigned. All callers changed.
10131 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
10132
e00553bf
EZ
101332009-03-20 Eli Zaretskii <eliz@gnu.org>
10134
10135 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
10136 negative, produce a float value.
10137
10138 * dired.c (make_uid, make_gid): New functions.
10139 (Ffile_attributes): Use them to avoid negative UID and GID.
10140
f761d6b6
JB
101412009-03-20 Juanma Barranquero <lekktu@gmail.com>
10142
10143 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
10144 (syms_of_keyboard) <command-hook-internal, input-method-function>:
10145 Fix typos in docstrings.
10146
d507f8d7
KH
101472009-03-19 Kenichi Handa <handa@m17n.org>
10148
10149 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
10150 changed, use font_load_for_lface to get a new font object.
10151 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
10152
10153 * frame.c (x_set_font): Handle the case that ARG is a cons.
10154
c68845e0
GM
101552009-03-19 Glenn Morris <rgm@gnu.org>
10156
10157 * fileio.c (Fsubstitute_in_file_name): Doc fix.
10158
bfa49dd1
CY
101592009-03-19 Chong Yidong <cyd@stupidchicken.com>
10160
10161 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
10162
8458d4c1
KH
101632009-03-19 Kenichi Handa <handa@m17n.org>
10164
10165 * charset.c (load_charset_map_from_file): When a mapfile can't be
10166 loaded, signal an error.
10167
78e7d1fe
EZ
101682009-03-18 Eli Zaretskii <eliz@gnu.org>
10169
10170 * dired.c (Ffile_attributes): Make sure UID and GID are always
10171 positive, even if the value is too large for a positive EMACS_INT.
10172 Doc fix.
10173
10174 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
10175
5da9fdfa
YM
101762009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10177
10178 * xmenu.c (xdialog_show): Move Fredisplay call ...
10179 (Fx_popup_dialog): ... here.
10180
7519c40d
SM
101812009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
10182
10183 * dired.c (file_name_completion): Disable the first optimization just
10184 installed, since it is not implemented correctly.
10185
2cd298e2
SM
101862009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10187
10188 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 10189 only if the entry can affect bestmatch.
2cd298e2
SM
10190 Stop the search early, as Ftry_completion already does.
10191
48d37adf
CY
101922009-03-17 Chong Yidong <cyd@stupidchicken.com>
10193
e10c9c93 10194 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 10195
9286b16a
CY
101962009-03-15 Chong Yidong <cyd@stupidchicken.com>
10197
10198 * keyboard.c (parse_menu_item): Don't display remappings as menu
10199 equivalent bindings (Bug#788).
10200
f7b146dc
JR
102012009-03-15 Jason Rumney <jasonr@gnu.org>
10202
10203 * w32term.h (WM_EMACS_PAINT): New message.
10204 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10205 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10206 before passing to lisp thread. (Bug#950)
10207
f761d6b6 102082009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 10209
d93f9575
CY
10210 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10211 variable as it was never reset.
10212 (ns_term_init): Remove initialization of Lisp-settable defaults
10213 and ns_expand_space.
10214 (-setPanelFromDefaultValues): Remove ns_expand_space.
10215 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10216 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
10217 i.e. no additional spacing, similar to Carbon port.
10218
d93f9575
CY
10219 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10220 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 10221
305018ec
JD
102222009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10223
10224 * sound.c (alsa_configure): Remove call to deprecated
10225 snd_pcm_sw_params_set_xfer_align.
10226
f761d6b6 102272009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
10228
10229 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10230 after clicking in a detached tool bar.
10231 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10232
46e722a9
SM
102332009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10234
348db3dd
SM
10235 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10236 int/Lisp_Object mixup).
46e722a9 10237
a3d16f39
KH
102382009-03-13 Kenichi Handa <handa@m17n.org>
10239
10240 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 10241 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
10242 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10243 (set_fontset_font): Change ARG to a vector. Handle range_list in
10244 ARG correctly.
10245 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 10246 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
10247 the above change.
10248 (fontset_from_font): Fix previous change.
fe24f56a 10249 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
10250 entry. If FONTSET is the default fontset, don't set the extra
10251 slot of the returning char-table.
10252
b066e6b6
JB
102532009-03-12 Juanma Barranquero <lekktu@gmail.com>
10254
10255 * nsfns.m (Fx_close_connection): Doc fix.
10256 (Fns_do_applescript): Reflow docstring.
10257 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10258 (Fx_display_pixel_width, Fx_display_pixel_height)
10259 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10260 Fix typos in docstrings.
10261 (Fns_set_alpha): Fix typos in error messages.
10262
d472514e 102632009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 10264
d472514e 10265 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
10266 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10267 were used for such events.
10268
d472514e
JB
10269 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10270 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 10271
d472514e 10272 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
10273 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10274
fb930676
KH
102752009-03-11 Kenichi Handa <handa@m17n.org>
10276
ff85581a
KH
10277 * font.h (font_open_by_spec): Extern it.
10278
c50b7e98
KH
10279 * font.c (font_open_by_spec): New function.
10280 (font_open_by_name): Use font_open_by_spec.
10281
fb930676
KH
10282 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10283 fontset of the frame.
10284
10285 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10286 modify the default font of frames that use this fontset.
10287 (num_auto_fontsets): New variable.
10288 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10289 name. Be sure to set FONTSET_ASCII to the correct font name.
10290 (update_auto_fontset_alist): New function.
10291
df4e8455
JB
102922009-03-11 Juanma Barranquero <lekktu@gmail.com>
10293
10294 * makefile.w32-in: Update dependencies.
10295
0a375797
AR
102962009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10297
10298 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10299
61313fa3
SM
103002009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10301
10302 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10303
b55103fb
CY
103042009-03-10 Chong Yidong <cyd@stupidchicken.com>
10305
10306 * lread.c (Feval_buffer): Doc fix.
10307
dde2559c
KH
103082009-03-09 Kenichi Handa <handa@m17n.org>
10309
10310 * charset.c (Qfile_name_handler_alist): Extern it.
10311 (load_charset_map_from_file): Temporarily bind
10312 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10313
df4e8455 103142009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 10315
47f588bb
GM
10316 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10317 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 10318
4ddf94bd
AR
103192009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10320
4c9bdfc2
AR
10321 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10322 (x_set_window_size): Change back to calculated method of setting
10323 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
10324 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10325 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10326
fe41ae9e
AR
10327 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10328
4c9bdfc2
AR
10329 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10330 accelerator in parens under GNUstep.
10331
825d0875
KH
103322009-03-06 Kenichi Handa <handa@m17n.org>
10333
10334 These changes are to detect incorrect composition sequence without
f3b3be74 10335 looking ahead the source. (Bug#2370)
825d0875
KH
10336
10337 * coding.h: Include "composite.h".
10338 (enum compisition_state): New enum.
10339 (struct compisition_status): New struct.
10340 (struct iso_2022_spec): New member cmp_status.
10341 (struct emacs_mule_spec): New struct.
10342 (struct coding_system): New members ctext_extended_segment_len and
10343 embedded_utf_8. Change the union member
10344 spec.emacs_mule_full_support to spec.emacs_mule.
10345
10346 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10347 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 10348 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
10349 (ADD_COMPOSITION_DATA): New arg nbytes.
10350 (emacs_mule_char): New arg cmp_status.
10351 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10352 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10353 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10354 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10355 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10356 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10357 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10358 (EMACS_MULE_COMPOSITION_END): New macro.
10359 (emacs_mule_finish_composition): New function.
10360 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10361 (decode_coding_emacs_mule): Avoid long looking ahead while
10362 handling composition.
10363 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10364 (ENCODE_COMPOSITION_RULE): New macro.
10365 (finish_composition): New function.
10366 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10367 (DECODE_COMPOSITION_START): New implementation.
10368 (DECODE_COMPOSITION_END): Likewise.
10369 (STORE_COMPOSITION_RULE): New macro.
10370 (decode_coding_iso_2022): Avoid long looking ahead while handling
10371 composition, CTEXT extended segment, and embedded UTF-8.
10372 (setup_coding_system): For a coding of type iso-2022, reset
10373 CODING_ISO_EXTSEGMENT_LEN (coding) and
10374 CODING_ISO_EMBEDDED_UTF_8 (coding).
10375 (get_translation): Delete arguments last_block, from_nchars,
10376 to_nchars. Callers changed.
10377 (produce_chars): Don't modify charbuf. Adjusted for the change of
10378 get_translation.
98a326f7 10379 (produce_composition): Adjust for the new annotation sequence.
825d0875 10380 (handle_composition_annotation): Likewise.
98a326f7 10381 (consume_chars): Adjust for the change of get_translation.
825d0875 10382
ccbc4452
AR
103832009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10384
4ddf94bd 10385 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 10386
988a7ddb
KH
103872009-03-05 Kenichi Handa <handa@m17n.org>
10388
10389 * font.c (font_select_entity): New function.
10390 (font_find_for_lface): Use font_select_entity to select a font.
10391
10392 * fontset.c (fontset_find_font): If a font found without
a8a3728b 10393 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
10394 font with C restriction.
10395
98a326f7 103962009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 10397
be1bce46 10398 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 10399
10ea2b82
JR
104002009-03-04 Jason Rumney <jasonr@gnu.org>
10401
2c93b248 10402 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 10403 characters that have already been read. (Bug#2569)
2c93b248 10404
10ea2b82
JR
10405 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10406 Log an error message if check_image_size failed.
10407 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 10408 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 10409
71a0c011
EZ
104102009-03-02 Eli Zaretskii <eliz@gnu.org>
10411
10412 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10413 when decoding process output.
10414
2f63bba8
RS
104152009-03-01 Richard M Stallman <rms@gnu.org>
10416
10417 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10418
10419 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10420
0a9564cb
EZ
104212009-02-28 Eli Zaretskii <eliz@gnu.org>
10422
10423 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10424 (decode_coding_emacs_mule, decode_coding_iso_2022)
10425 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10426 (decode_coding_raw_text, decode_coding_charset)
10427 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10428 Honor inhibit-eol-conversion. (Bug #2186)
10429
449148b3
JR
104302009-02-28 Jason Rumney <jasonr@gnu.org>
10431
10432 * coding.c (detect_coding_charset): If not checking latin extra,
10433 fail on characters between 0x80 and 0xA0. (Bug#2354)
10434
a4aee864
EZ
104352009-02-28 Eli Zaretskii <eliz@gnu.org>
10436
10437 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 10438 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 10439
d88bee5a
GM
104402009-02-27 Glenn Morris <rgm@gnu.org>
10441
10442 * callint.c (Finteractive): Doc fix.
10443
a808f22d
KH
104442009-02-27 Kenichi Handa <handa@m17n.org>
10445
10446 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10447
caf8d60c
CY
104482009-02-27 Chong Yidong <cyd@stupidchicken.com>
10449
10450 * font.c (font_style_to_value): Set value for unknown symbols to
10451 100 instead of 255.
b61137ea
CY
10452 (weight_table, slant_table, width_table): Treat "unspecified" as
10453 the default value.
caf8d60c 10454
1a0de25c
JB
104552009-02-26 Juanma Barranquero <lekktu@gmail.com>
10456
10457 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10458
8fc45744
JB
104592009-02-25 Juanma Barranquero <lekktu@gmail.com>
10460
107bd7d1
JB
10461 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10462 error as soon as a recursive load is detected.
8fc45744 10463
f097e223
AR
104642009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10465
10466 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10467 before caching.
10468
8810a12f
KH
104692009-02-24 Kenichi Handa <handa@m17n.org>
10470
10471 * fontset.c (fontset_find_font): Fix the condition for checking
10472 unavailable font.
10473
2c7d1565
GM
104742009-02-24 Glenn Morris <rgm@gnu.org>
10475
10476 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10477 whitespace that confuses documentation.
10478
a20878b6
MB
104792009-02-23 Miles Bader <miles@gnu.org>
10480
10481 * process.c (Flist_system_processes, Fprocess_attributes)
10482 (syms_of_process): Rename `system-process-attributes' to
10483 `process-attributes'.
10484
b3b58c01
AS
104852009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10486
1b3b981b
AS
10487 * coding.h (struct coding_system): Make safe_charsets a pointer to
10488 unsigned char.
10489 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10490 being 255.
10491 (SAFE_CHARSET_P): Likewise.
10492 (setup_iso_safe_charsets): Properly setup safe_charsets.
10493 (Fdefine_coding_system_internal): Likewise.
10494 (setup_coding_system): Likewise. Remove unneeded casts.
10495 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10496 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10497 unneeded casts.
10498
b3b58c01
AS
10499 * insdel.c (del_range_2): Don't modify gap contents when called
10500 from decode_coding_object. (Bug#1809)
10501
0b6f228c
CY
105022009-02-21 Chong Yidong <cyd@stupidchicken.com>
10503
10504 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10505 Qfont_object.
10506 (Ftype_of): Recognize font objects.
10507
10508 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10509
10510 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10511 moved to data.c.
10512
52f8870b
AR
105132009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10514
10515 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10516 async_iconified. Based on a patch by Christian Lynbech
10517 <christian.lynbech@tieto.com>.
10518 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10519
7087d5e9
GM
105202009-02-20 Glenn Morris <rgm@gnu.org>
10521
10522 * syntax.c (Fskip_chars_forward): Fix doc typo.
10523
41d2ceef
CY
105242009-02-20 Chong Yidong <cyd@stupidchicken.com>
10525
10526 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10527
1a3b7ca6
CY
105282009-02-19 Chong Yidong <cyd@stupidchicken.com>
10529
10530 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10531
73cce38d
KH
105322009-02-19 Kenichi Handa <handa@m17n.org>
10533
10534 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 10535 Don't overflow coding->carryover. (Bug#2370)
73cce38d 10536
a51092ee
DN
105372009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10538
10539 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10540
c423ecca
KH
105412009-02-18 Kenichi Handa <handa@m17n.org>
10542
10543 * font.c (font_check_otf_features): Fix handling of `nil' element.
10544 (Ffont_spec): Describe :lang and :otf in the docstring.
10545
4c1958f4
AS
105462009-02-16 Andreas Schwab <schwab@suse.de>
10547
10548 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10549 string.
10550
5704f39a
KH
105512009-02-16 Kenichi Handa <handa@m17n.org>
10552
10553 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 10554 (Bug#1723)
5704f39a 10555
8f0085aa
CY
105562009-02-14 Chong Yidong <cyd@stupidchicken.com>
10557
a057d86a 10558 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
10559
10560 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10561 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10562
aff01dd9
EZ
105632009-02-14 Eli Zaretskii <eliz@gnu.org>
10564
10565 * msdos.c (MAX_SCREEN_BUF): New macro.
10566 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10567 Encode the entire run of glyphs sharing the same face, instead of
10568 doing that one glyph at a time (fixes a bug with displaying
10569 double-size characters).
10570
ba301db3
AR
105712009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10572
10573 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10574
10575 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10576 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 10577 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
10578
10579 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 10580 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 10581
51d861de
SM
105822009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10583
ac146f82 10584 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
10585 invisible areas.
10586
7fed8996
JR
105872009-02-12 Jason Rumney <jasonr@gnu.org>
10588
631ea4fb
JR
10589 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10590 (add_font_entity_to_list): Call check_face_name even when family
10591 is unspecified.
10592
cb4a3e42
JR
10593 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10594 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 10595 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 10596
7fed8996 10597 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 10598 raster fonts. (Bug#2219)
7fed8996 10599
895416e3
KH
106002009-02-12 Kenichi Handa <handa@m17n.org>
10601
10602 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10603 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10604 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 10605 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10606 (find_automatic_composition): While looking forward and backward,
10607 check static composition. Fix where to stop looking forward.
10608 (composition_adjust_point): Fix checking of static composition.
10609 (Fcomposition_get_gstring): Pay attention to
1dacf998 10610 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10611
10612 * lisp.h (fast_looking_at): Extern it.
10613
10614 * search.c (fast_looking_at): New function.
10615
51d861de 10616 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
10617 <struct glyph>.u.cmp.to.
10618 (append_composite_glyph): Likewise.
10619
51d861de 10620 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
10621 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10622 composition.
51d861de 10623 (append_composite_glyph): Adjust for the change of
895416e3
KH
10624 <strcut glyph>.u.cmp.to.
10625
8510724d
JB
106262009-02-11 Juanma Barranquero <lekktu@gmail.com>
10627
10628 * casetab.c (init_casetab_once):
10629 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10630 * font.c (font_update_lface):
10631 * fontset.c (Fnew_fontset):
10632 * ftfont.c (ftfont_drive_otf):
10633 * xfont.c (xfont_open):
10634 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10635
294fa707
SM
106362009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10637
10638 * fileio.c (Fwrite_region): !NILP -> CONSP.
10639
b5bfebec
AS
106402009-02-10 Andreas Schwab <schwab@suse.de>
10641
10642 * process.c (send_process): Properly relocate pointer into data
adab88bd 10643 when using encoded data. (Bug#2272)
b5bfebec 10644
cb84a2be
KH
106452009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10646
10647 * coding.c (detect_coding_charset): Fix previous change.
10648
89e09428
JR
106492009-02-08 Jason Rumney <jasonr@gnu.org>
10650
10651 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 10652 disappeared while hourglass was displayed. (Bug #2193)
89e09428 10653
4470a277
AS
106542009-02-07 Andreas Schwab <schwab@suse.de>
10655
10656 * unexelf.c (unexec): Fix error message.
10657
3175b12a
AR
106582009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10659
10660 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 10661 when modal window is active. (Bug #2152)
3175b12a
AR
10662 (applicationShouldTerminate:): Remove now-unneeded while loop
10663 around NSRunAlertPanel.
10664
10665 * nsmenu.m (popupSession): New file-global variable.
10666 (pop_down_menu): End the popupSession before closing dialog.
10667 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10668 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10669 don't query NSApp for events (just sleep instead).
10670
8434d0b8
EZ
106712009-02-07 Eli Zaretskii <eliz@gnu.org>
10672
51d861de
SM
10673 * coding.c (syms_of_coding) <translation-table-for-input>:
10674 Modify doc string to discourage use for character code unification.
8434d0b8 10675
aa82edfd
CY
106762009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10677
10678 * atimer.c (run_timers): Update pending_atimers.
10679
2d283c7c
CY
106802009-02-06 Chong Yidong <cyd@stupidchicken.com>
10681
eb306cab
CY
10682 * image.c (svg_load_image): Fix last change.
10683
2d283c7c
CY
10684 * xfns.c (Fx_create_frame): Signal an error if no font is
10685 found (Bug#2147).
10686
4d8e170e
JB
106872009-02-05 Juanma Barranquero <lekktu@gmail.com>
10688
10689 * character.c (syms_of_character) <script-representative-chars>:
10690 Fix typo in docstring.
10691
c96169a0
AR
106922009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10693
10694 * nsmenu.m (pop_down_menu): New function.
10695 (ns_popup_dialog): Call it on unwind.
10696 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10697 call timer_check() (Bug#2154).
10698 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10699 handling_signal is set.
10700 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10701
31fd7c5c 10702 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10703
10704 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10705
10706 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10707
51d861de
SM
10708 * keyboard.c (poll_for_input_1, handle_async_input):
10709 Set handling_signal under HAVE_NS.
c96169a0 10710
aacd8ba1
GM
107112009-02-04 Glenn Morris <rgm@gnu.org>
10712
10713 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10714
4cb75c4b
KH
107152009-02-04 Kenichi Handa <handa@m17n.org>
10716
10717 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10718
10719 * charset.c (Fchar_charset): New optional arg restriction.
10720
10721 * coding.h (coding_system_charset_list): Extern it.
10722
10723 * coding.c (coding_system_charset_list): New function.
10724
10725 * composite.c: Include coding.h and termhooks.h.
10726 (composition_gstring_p): Fix for the terminal case.
10727 (composition_gstring_width): Likewise.
10728 (fill_gstring_body): Likewise.
10729 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10730 the frame.
10731 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10732 is within a composition.
867d4bb3 10733 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10734
10735 * term.c (encode_terminal_code): Fix handling of composition.
10736 (produce_composite_glyph): For static composition, get pixel_width
10737 from struct composition.
10738
826ba17e
AS
107392009-02-02 Andreas Schwab <schwab@suse.de>
10740
10741 * unexelf.c (unexec): Handle unaligned bss offset.
10742
8ad093db
AR
107432009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10744
10745 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10746 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10747
8ad093db
AR
10748 * keyboard.c (handle_interrupt): Don't call
10749 quit_throw_to_read_char() under NS.
d0a76a6e 10750
8ad093db
AR
10751 * blockinput.h: Remove NS-specific code.
10752
4d18a7a2
DN
107532009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10754
db878925
DN
10755 * dispnew.c (window_change_signal): Don't try to get the size of a
10756 suspended tty frame.
10757 * term.c (Fresume_tty): Resize if the size has changed while the
10758 tty was suspended.
10759
4d18a7a2
DN
10760 * alloc.c (mark_stack): Properly conditionalize previous change.
10761
8984df7c
JB
107622009-01-30 Juanma Barranquero <lekktu@gmail.com>
10763
10764 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10765 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10766 Remove; this code is not used on Windows.
10767
75f4f1ac
EZ
107682009-01-30 Eli Zaretskii <eliz@gnu.org>
10769
10770 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10771 EOLs that also has stray ^M characters.
10772
07a1e794
JB
107732009-01-30 Juanma Barranquero <lekktu@gmail.com>
10774
10775 * atimer.c (run_timers, alarm_signal_handler):
10776 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10777 * w32inevt.c (w32_console_read_socket):
10778 * w32term.c (w32_read_socket):
10779 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10780
a8b11cc9
CY
107812009-01-30 Chong Yidong <cyd@stupidchicken.com>
10782
10783 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10784 Initialize it as a relative filename pattern.
10785 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10786 (Fcall_process_region): Simplify temp file creation using
10787 temporary-file-directory.
10788
c279587b
EZ
107892009-01-29 Eli Zaretskii <eliz@gnu.org>
10790
10791 * msdos.c: Rename pending_signals to msdos_pending_signals.
10792 (sig_suspender, sigprocmask): Adjust.
10793
a8fe3242
CY
107942009-01-29 Chong Yidong <cyd@stupidchicken.com>
10795
10796 * keyboard.c (pending_signals): New var.
10797 (poll_for_input, input_available_signal, init_keyboard): Set it.
10798 (process_pending_signals): New function.
10799
10800 * lisp.h (QUIT): Check pending_signals instead of
10801 interrupt_input_pending. Use process_pending_signals.
10802
51d861de 10803 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10804
51d861de 10805 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10806
10807 * sysdep.c (emacs_write): Use process_pending_signals.
10808
10809 * xterm.c (XTread_socket): Update pending_signals.
10810
10811 * w32term.c (w32_read_socket): Update pending_signals.
10812
10813 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10814
6570a1c4
KH
108152009-01-29 Kenichi Handa <handa@m17n.org>
10816
10817 * xftfont.c (xftfont_has_char): New function.
10818 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10819
d72a4afa
AR
108202009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10821
10822 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10823 under GNUstep.
10824 (ns_query_color): New declaration.
10825
10826 * nsterm.m (ns_confirm_quit): New variable.
10827 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10828 (EmacsApp-applicationShouldTerminate:): Use it.
10829 (EmacsPrefsController): Let user set it.
10830 (ns_query_color): New function.
10831 (ns_defined_color): Use it.
10832 (ns_initialize): Drop.
10833 (ns_term_init): Add two lines from ns_initialize(), and set
10834 input_interrupt_mode to nil.
10835
10836 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10837 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10838
9fe78804
KH
108392009-01-28 Kenichi Handa <handa@m17n.org>
10840
10841 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10842 (fontset_get_font_group): Remember that no font-group is specified
10843 for C.
9fe78804 10844
fa57de36
CY
108452009-01-27 Chong Yidong <cyd@stupidchicken.com>
10846
930600e9
CY
10847 * fns.c (concat): Check for string overflow (bug#1787).
10848
fa57de36
CY
10849 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10850 Quadruple undo limits (bug#1501).
10851
7179ce7b
KH
108522009-01-27 Kenichi Handa <handa@m17n.org>
10853
10854 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10855 directly use GT_Get_Char_index.
10856
10857 * xftfont.c (struct xftfont_info): New member `index'.
10858
10859 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10860 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10861
5be8fcc0
CY
108622009-01-26 Kenichi Handa <handa@m17n.org>
10863
10864 * fontset.c (fontset_find_font): Fix handling of non-cons return
10865 value of fontset_get_font_group.
10866 (fontset_font): Revert last change.
10867
19ae3e61
JR
108682009-01-26 Jason Rumney <jasonr@gnu.org>
10869
10870 * w32font.c (w32font_list_internal): Return quickly if registry is
10871 unknown. Simplify final return.
10872 (add_font_entity_to_list): Break complex logic down into more
10873 manageable chunks. Move unknown registry check to
10874 w32font_list_internal.
10875
8612b71a
AR
108762009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10877
10878 Changes to remove Feval calls from GUI under NS.
10879
d8038940
JB
10880 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10881 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10882 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10883
10884 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10885 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10886 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10887 instead of NON_ASCII_KEYSTROKE_EVENT.
10888 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10889 (EmacsApp-applicationShouldTerminate:): Query user.
10890 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10891 instead of Feval.
10892
10893 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10894
10895 * keyboard.c (kbd_buffer_get_event): Check for it.
10896 (keys_of_keyboard): Define lispy keys for
10897 ns-put/unput-working-text.
10898
10899 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10900 versions.
10901 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10902
6288ae55
CY
109032009-01-25 Chong Yidong <cyd@stupidchicken.com>
10904
10905 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10906 setting current_buffer directly. (Bug#2044)
6288ae55 10907
289e7f8f
CY
109082009-01-24 Chong Yidong <cyd@stupidchicken.com>
10909
5ce87308 10910 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10911 any work. (Bug#1952, bug#1990).
5ce87308 10912
64cc3cf6 10913 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10914
b3243e6f
AR
109152009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10916
10917 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10918 (ns_no_defaults): New declaration.
10919 (main): Use it.
e0d2e69a 10920
d900b2af 10921 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10922
d900b2af 10923 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10924
d900b2af
AR
10925 * nsterm.m (ns_no_defaults): New variable.
10926 (ns_initialize): Don't read defaults when ns_no_defaults.
10927 (EmacsView-readSelectionFromPasteboard:)
10928 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10929 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10930 (ns_dumpglyphs_stretch): New function.
10931 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10932 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10933
e0d2e69a
AR
10934 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10935
3ac71f5d
CY
109362009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10937
10938 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10939 call for Sparc64.
10940
3fe53a83
AR
109412009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10942
10943 * nsfns.m:
10944 * nsgui.h:
10945 * nsmenu.m:
10946 * nsselect.m:
10947 * nsterm.h:
10948 * nsterm.m: Remove '23' comments that indicated code added during
10949 update from emacs-20 -> emacs-23.
10950
10f87c6f 109512009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10952
10953 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10954 ns_alternate_modifier. (Bug#1217)
a3b53a85 10955
c7cef62d
AR
10956 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10957 Display all shortcuts, including those w/o super modifier.
10958
575fb8bd
AR
10959 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10960
918b848b
CY
109612009-01-22 Chong Yidong <cyd@stupidchicken.com>
10962
10963 * fileio.c (Vwrite_region_post_annotation_function)
10964 (Vwrite_region_annotation_buffers): New vars.
10965 (build_annotations_unwind): Just reset
10966 Vwrite_region_annotation_buffers.
10967 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10968 Call write-region-post-annotation-function.
10969 (build_annotations): Add to Vwrite_region_annotation_buffers if
10970 buffer changes.
10971
a39e2539
AR
109722009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10973
10974 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10975 Tiger.
51d861de
SM
10976 * nsfns.m (ns_do_applescript):
10977 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10978
35ed44db
AR
109792009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10980
10981 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10982
cbe0b5bf
AR
109832009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10984
10985 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10986
6049d3a0
AR
10987 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10988
10989 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10990 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10991 handle Ctrl-tab. (Bug#1841)
10992 (ns_get_color): Use unsigned long long for scanned hex string value.
10993 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10994 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10995 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10996 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10997 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10998 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10999 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 11000
d3810c21 11001 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 11002 DPI. (Bug#1316)
d3810c21
AR
11003 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
11004 values in onTiger section.
4c7077c3 11005
e301e634
CY
110062009-01-19 Chong Yidong <cyd@stupidchicken.com>
11007
7f82490b
CY
11008 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
11009 Check return value of font_spec_from_name.
64cc3cf6 11010 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
11011
11012 * font.c (font_spec_from_name): Return Qnil if font name could not
11013 be parsed.
11014 (font_parse_name): Treat a `?' character as part of an XLFD.
11015
e301e634
CY
11016 * fns.c (Fsubstring): Doc fix.
11017
1c0db158
KH
110182009-01-19 Kenichi Handa <handa@m17n.org>
11019
51d861de 11020 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
11021 (ftfont_list): Likewise.
11022
acf20901
JB
110232009-01-18 Juanma Barranquero <lekktu@gmail.com>
11024
fff4e459
JB
11025 * dbusbind.c (Fdbus_register_signal):
11026 * process.c (conv_sockaddr_to_lisp):
11027 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
11028
acf20901
JB
11029 * callproc.c (Fgetenv_internal): Doc fix.
11030
e7abcdfb
CY
110312009-01-16 Chong Yidong <cyd@stupidchicken.com>
11032
11033 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
11034 it is not even used.
11035
b60861e6
GM
110362009-01-16 Glenn Morris <rgm@gnu.org>
11037
11038 * font.c (Ffont_variation_glyphs): Silence compiler.
11039
8db52afe
JB
110402009-01-15 Juanma Barranquero <lekktu@gmail.com>
11041
11042 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
11043 Reported by David Robinow <drobinow@gmail.com>.
11044
4cddb209
KH
110452009-01-15 Kenichi Handa <handa@m17n.org>
11046
51d861de 11047 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 11048
f247f67b
JR
110492009-01-14 Jason Rumney <jasonr@gnu.org>
11050
11051 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 11052 never a fontset. (Bug#1562)
f247f67b 11053
f56a4450
KH
110542009-01-14 Kenichi Handa <handa@m17n.org>
11055
11056 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 11057 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 11058
4e99855e
CY
110592009-01-13 Chong Yidong <cyd@stupidchicken.com>
11060
11061 * font.c (font_clear_prop): If clearing the family, clear the font
11062 width index too.
11063
fff4e459 11064 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 11065
24f01470
JB
110662009-01-12 Juanma Barranquero <lekktu@gmail.com>
11067
11068 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
11069 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
11070 functions, use sizeof.
11071
a41240a3
MR
110722009-01-12 Martin Rudalics <rudalics@gmx.at>
11073
11074 * keyboard.c (read_char): Fix case where last_nonmenu_event
11075 returned a bad value with submenus. (Bug#447)
11076
944636b8
CY
110772009-01-12 Chong Yidong <cyd@stupidchicken.com>
11078
11079 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
11080 family, clear the font width index too.
11081
0dad7c6f
JR
110822009-01-11 Jason Rumney <jasonr@gnu.org>
11083
11084 * keyboard.c (cmd_error_internal): Exit when errors occur before
11085 frame creation and not in daemon mode. (Bug#1836)
11086
7c2363af
CY
110872009-01-10 Chong Yidong <cyd@stupidchicken.com>
11088
11089 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
11090 of a display vector, backtrack.
11091 (try_window_reusing_current_matrix): Check glyph type before
11092 referencing charpos member.
11093
97b1b294
EZ
110942009-01-10 Eli Zaretskii <eliz@gnu.org>
11095
11096 Fix Bug #876:
11097
11098 * coding.c (inhibit_null_byte_detection): New variable.
11099 (detect_coding, detect_coding_system): Don't pay attention to null
11100 bytes if inhibit_null_byte_detection is non-zero.
51d861de 11101 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
11102 <inhibit-iso-escape-detection>: Doc fix.
11103
4624b6e3
JR
111042009-01-09 Jason Rumney <jasonr@gnu.org>
11105
11106 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 11107 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
11108 Only report Unicode Plane 2 fonts as unicode-sip.
11109
323b840c
CY
111102009-01-09 Chong Yidong <cyd@stupidchicken.com>
11111
51d861de
SM
11112 * xfaces.c (Fx_font_family_list): Delete function.
11113 Move compatibility version to faces.el.
323b840c 11114
51d861de 11115 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 11116
eba7400d
MR
111172009-01-09 Martin Rudalics <rudalics@gmx.at>
11118
11119 * frame.c (x_set_frame_parameters): Remember requested value for
11120 fullscreen before it's reset by the parameter handler.
11121
4b09796d
GM
111222009-01-09 Glenn Morris <rgm@gnu.org>
11123
11124 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 11125 (last_command_event): ... and update all users.
4b09796d
GM
11126 (last_input_char): For clarity, rename to...
11127 (last_input_event): ... and update all users.
11128 (last-command-char, last-input-char): Move to subr.el as aliases.
11129 * cmds.c, commands.h: Update for last_command_char rename.
11130
14ccea62
CY
111312009-01-08 Chong Yidong <cyd@stupidchicken.com>
11132
51d861de 11133 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 11134
5f004711
JR
111352009-01-08 Jason Rumney <jasonr@gnu.org>
11136
11137 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
11138 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
11139 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
11140 Don't declare.
fff4e459 11141 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
11142 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
11143
b71f6f73
KH
111442009-01-07 Kenichi Handa <handa@m17n.org>
11145
50b06221 11146 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 11147 remember the coding system used for decoding in
50b06221
KH
11148 coding_system (Bug#1039).
11149
b71f6f73 11150 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 11151 breaking the loop. (Bug#870)
b71f6f73
KH
11152 (decode_coding_utf_16, decode_coding_emacs_mule)
11153 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11154 (decode_coding_charset): Likewise.
11155
56f668f7
MR
111562009-01-05 Martin Rudalics <rudalics@gmx.at>
11157
11158 * frame.c (x_set_frame_parameters): Make sure height (width) get
11159 applied when fullwidth (fullheight) is set. (Bug#1522)
11160
5da9424d
JB
111612009-01-04 Juanma Barranquero <lekktu@gmail.com>
11162
11163 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
11164 (utc_base): Declare as ULONGLONG, not long double.
11165 (convert_time_raw): Delete.
11166 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
11167 (initialize_utc_base): New function.
11168 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
11169 (convert_from_time_t): Use initialize_utc_base; compute result with
11170 64-bit arithmetic.
11171 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
11172
c4605e09
EZ
111732009-01-03 Eli Zaretskii <eliz@gnu.org>
11174
9acef61c 11175 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
11176 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
11177 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
11178 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
11179 [!subprocesses]: Define.
11180 (syms_of_process) [!subprocesses]: Intern and staticpro them.
11181 (Flist_system_processes, Fsystem_process_attributes)
11182 [!subprocesses]: Call list_system_processes and
11183 system_process_attributes instead of returning Qnil.
11184
9acef61c
JB
11185 * dosfns.c (system_process_attributes, list_system_processes):
11186 New functions.
c4605e09
EZ
11187
11188 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
11189
11190 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11191 Don't use the default (no-op) implementation.
11192
8b7d0a16
JR
111932009-01-03 Jason Rumney <jasonr@gnu.org>
11194
a6d46bc1
JR
11195 * keyboard.c (parse_modifiers_uncached): Wheel events are
11196 clicks (bug#687).
11197
8b7d0a16
JR
11198 * w32term.c (x_query_colors, x_query_color): New functions.
11199
11200 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11201 (svg_load_image): Cast returned pointers from dynamically loaded
11202 functions. Eliminate W32 specific code.
11203
bfe11752
DN
112042009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
11205
89e2438a
DN
11206 * nsfns.m (x_set_foreground_color, x_set_background_color)
11207 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11208 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11209 x_ prefix instead of ns_. Update references.
11210 (syms_of_nsfns): Add a FIXME comment.
11211
11212 * nsterm.m (x_set_cursor_type): New prototype.
11213 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11214
bfe11752
DN
11215 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11216 for Solaris instead of incorrectly providing Qutime and Qcutime.
11217
031da700
EZ
112182009-01-02 Eli Zaretskii <eliz@gnu.org>
11219
11220 * w32.c (process_times): Compute sum of utime and stime.
11221 (system_process_attributes): Add Qtime to the alist.
11222
11223 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11224 and add them to the alist.
11225
11226 * process.c (top level) <Qtime, Qctime>: New variables.
11227 (syms_of_process): staticpro them.
11228 (Fsystem_process_attributes): Add their documentation to the doc
11229 string.
11230
11231 * process.h: Declare Qtime and Qctime.
11232
df23bf08
JR
112332009-01-02 Jason Rumney <jasonr@gnu.org>
11234
9acef61c 11235 * image.c (Qgobject): New symbol.
df23bf08
JR
11236 (syms_of_image): Initialize it.
11237 (init_svg_functions): Load some functions from gobject library.
11238
5bbdf7aa
DN
112392009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11240
11241 * frame.c (make_terminal_frame): Remove redundant code and useless
11242 block.
11243
63136da6
AS
112442009-01-01 Andreas Schwab <schwab@suse.de>
11245
11246 * process.c (conv_sockaddr_to_lisp): Add workaround for
11247 getsockname bug on BSD.
11248
9ef69046
CY
112492009-01-01 Chong Yidong <cyd@stupidchicken.com>
11250
d6fafbe0
CY
11251 * xfns.c (x_create_tip_frame): Set border width of the X window.
11252
51d861de 11253 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 11254
f9c34147
JR
112552009-01-01 Jason Rumney <jasonr@gnu.org>
11256
9acef61c 11257 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
11258 Don't block input, as per earlier xterm.c changes.
11259
f5497e45
AR
112602008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11261
11262 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11263 (ns_appkit_version_int): New function.
11264 (x-server-version): Use ns_appkit_version_int and follow 21+
11265 convention of returning 3 integers.
11266
c19cab20
KH
112672008-12-30 Kenichi Handa <handa@m17n.org>
11268
11269 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11270 (CHAR_SURROGATE_PAIR_P): New macro.
11271
11272 * font.h (struct font_driver): New member get_variation_glyphs.
11273
9acef61c 11274 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
11275 (Ffont_variation_glyphs): New function.
11276 (syms_of_font): Defsubr it.
11277
11278 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11279 ftfont_variation_glyphs.
11280 (setup_otf_gstring): New function.
11281 (ftfont_drive_otf): Use it.
11282 (ftfont_shape_by_flt): Handle variation selector.
11283 (ftfont_variation_glyphs): New function.
11284
28cd591f
MR
112852008-12-30 Martin Rudalics <rudalics@gmx.at>
11286
11287 * frame.c (Vemacs_iconified): Remove.
11288
7f714baf
JR
112892008-12-30 Jason Rumney <jasonr@gnu.org>
11290
11291 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 11292 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 11293
9d2d22ab
CY
112942008-12-30 Chong Yidong <cyd@stupidchicken.com>
11295
11296 * indent.c (Fvertical_motion): Don't advance iterator if we have
11297 reseated to the desired position.
11298
11299 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11300 checking for pos match.
11301
545312c2
KH
113022008-12-30 Kenichi Handa <handa@m17n.org>
11303
1ede3eb6
KH
11304 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11305 just get the low 8-bit of the code.
11306
545312c2
KH
11307 * font.c (font_intern_prop): Validate str as multibyte.
11308
bd7bbf29
DN
113092008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11310
31e0750e
DN
11311 * dispextern.h (struct face): Move lface and hash from the middle
11312 of bitfields.
11313
bd7bbf29
DN
11314 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11315
b5672e7c
DN
113162008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11317
11318 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11319 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11320 instead of intervals.h.
11321
d704470f
AS
113222008-12-26 Andreas Schwab <schwab@suse.de>
11323
11324 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11325 cons.
11326
54b33868
MR
113272008-12-26 Martin Rudalics <rudalics@gmx.at>
11328
11329 * textprop.c (Qminibuffer_prompt): New variable.
11330 (syms_of_textprop): Initialize it.
11331 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11332 in minibuffer-prompt face. (Bug#1662)
11333
40b615d6
JR
113342008-12-25 Jason Rumney <jasonr@gnu.org>
11335
11336 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11337
baae5c2d
JR
113382008-12-24 Jason Rumney <jasonr@gnu.org>
11339
11340 * ralloc.c (r_alloc_reset_variable): New function.
11341
11342 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 11343 record of what points where. (Bug#716)
baae5c2d 11344
a9051c88
DN
113452008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11346
11347 * minibuf.c (read_minibuf): Follow the non-interactive case when
11348 running as a daemon, before detaching.
11349
8b146312
AS
113502008-12-22 Andreas Schwab <schwab@suse.de>
11351
11352 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11353 * gtkutil.c (free_widget_value): Use xfree instead of free.
11354
56f2de10
MR
113552008-12-22 Martin Rudalics <rudalics@gmx.at>
11356
11357 * frame.c (delete_frame): New function derived from
11358 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11359 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11360 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11361 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11362 * frame.h: Extern delete_frame.
11363 * window.c (window_loop):
11364 * terminal.c (delete_terminal):
11365 * xterm.c (x_connection_closed):
11366 * xfns.c (Fx_hide_tip):
9acef61c 11367 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 11368
1fc200d6
JR
113692008-12-21 Jason Rumney <jasonr@gnu.org>
11370
11371 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11372 when character maps to .notdef character.
11373
5e252df2
SM
113742008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11375
11376 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11377
99b72cc4
JR
113782008-12-20 Jason Rumney <jasonr@gnu.org>
11379
11380 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 11381 a graphical frame on Windows. (Bug#1325)
99b72cc4 11382
acc49a52
JD
113832008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11384
11385 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11386
6ea15123
CY
113872008-12-20 Chong Yidong <cyd@stupidchicken.com>
11388
11389 * minibuf.c (Fread_buffer): Doc fix.
11390
b2dab6c8
JR
113912008-12-20 Jason Rumney <jasonr@gnu.org>
11392
54ea0c87 11393 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 11394 server name in UNC paths. (Bug#719)
54ea0c87 11395
b2dab6c8 11396 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 11397 charbuf. (Bug#1035)
b2dab6c8 11398
6d1921be
DN
113992008-12-19 Daniel Engeler <engeler@gmail.com>
11400
11401 * sysdep.c (serial_configure): Fix typo.
11402
53934c98
DN
114032008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11404
11405 * sysdep.c: Include alloca.h.
f4f634e8
DN
11406 (system_process_attributes): Add implementation for Solaris.
11407
11408 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 11409
06e111a6
DN
114102008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11411
11412 Reorganize implementation of Flist_system_processes and
11413 Fsystem_process_attributes. No functional changes.
11414 * process.c: Don't #include pwd.h, grp.h and limits.h.
11415 (Flist_system_processes): Just call list_system_processes.
11416 (Fsystem_process_attributes): Just call system_process_attributes.
11417 (procfs_list_system_processes, time_from_jiffies)
11418 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11419 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11420
11421 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11422 (list_system_processes): Rename from
11423 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11424 Provide a do nothing implementation.
11425 (system_process_attributes): Rename from
11426 procfs_list_system_processes.
11427 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 11428 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
11429
11430 * w32.c (list_system_processes): Rename from
11431 w32_list_system_processes.
11432 (system_process_attributes): Rename from
11433 w32_system_process_attributes.
11434
11435 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11436
11437 * process.h (w32_list_system_processes)
11438 (w32_system_process_attributes): Remove.
362654a6
JB
11439 (list_system_processes, system_process_attributes):
11440 New prototypes.
06e111a6 11441
6a705b23
KH
114422008-12-19 Kenichi Handa <handa@m17n.org>
11443
11444 * xfont.c (xfont_decode_coding_xlfd): New function.
11445 (xfont_encode_coding_xlfd): New function.
11446 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11447 (xfont_list): Decode and encode XLFD by iso-8859-1.
11448 (xfont_match): Likewise.
11449 (xfont_list_family): Likewise.
11450 (xfont_open): Likewise.
11451
d66c0241 11452 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
11453 names are utf-8.
11454
d66c0241 11455 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
11456 names are utf-8.
11457
5a130941
JD
114582008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11459
11460 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11461 changed.
bfd20325
JD
11462 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11463 clicked on a detached tool bar button.
5a130941 11464
fd95644b
DN
114652008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11466
11467 * emacs.c (main): Print and error and exit when no data is read
11468 from the pipe.
11469
e6eee6ae
JR
114702008-12-17 Jason Rumney <jasonr@gnu.org>
11471
11472 * w32font.c (w32font_has_char): Always return -1.
11473
a35dd56b
KH
114742008-12-16 Kenichi Handa <handa@m17n.org>
11475
11476 * font.c (font_open_entity): Fix previous change.
11477
0e3635c2
DN
114782008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11479
11480 * process.c: Include <limits.h>.
11481
d4835507 114822008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
11483
11484 * font.c (font_update_drivers): Fix mistake in reconstructing the
11485 driver list.
11486
114872008-12-16 Chong Yidong <cyd@stupidchicken.com>
11488
11489 * font.c (font_clear_cache): Fix format of font cache data.
11490
e2cbc401
CY
114912008-12-15 Chong Yidong <cyd@stupidchicken.com>
11492
11493 * xftfont.c (xftfont_open): Free Xft font pattern if
11494 XftFontOpenPattern fails.
11495
11496 * xterm.c (x_free_frame_resources): Remove extraneous call to
11497 free_frame_faces.
11498
b131d535
CY
114992008-12-13 Chong Yidong <cyd@stupidchicken.com>
11500
11501 * xterm.c (x_delete_display): Move xim_close_dpy call to
11502 x_delete_terminal.
11503 (x_delete_terminal): Call xim_close_dpy.
11504
e6df5336
JR
115052008-12-13 Jason Rumney <jasonr@gnu.org>
11506
11507 * w32font.c (intern_font_name): New function.
11508 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11509 (w32font_open_internal, Fx_select_font): Decode font name.
11510 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11511
11512 * w32font.h (intern_font_name): Declare new function.
11513
11514 * w32uniscribe.c (add_opentype_font_name_to_list):
11515 Use intern_font_name.
11516
20d68145
CY
115172008-12-13 Chong Yidong <cyd@stupidchicken.com>
11518
9f2554de
CY
11519 * frame.c (Fdelete_frame): Call free_font_driver_list.
11520
3d9bec9a
CY
11521 * font.c (free_font_driver_list): Implement missing function.
11522
20d68145
CY
11523 * w32term.c (w32_term_init): Don't initialize the image cache
11524 here; it will be done in init_frame_faces.
11525
11526 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11527 (struct x_display_info): Remove unused member null_pixel. New
11528 member xim_callback_data.
11529
11530 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11531 (xim_initialize): Save pointer to callback function data.
11532 (xim_close_dpy): Free callback function data. Call XCloseIM,
11533 reverting 2008-11-04 change by David Smith.
11534 (x_term_init): Don't initialize the image cache here; it will be
11535 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11536 (x_delete_display): Free x_dnd_atoms member.
11537
96f9306b
KH
115382008-12-13 Kenichi Handa <handa@m17n.org>
11539
6dec9044
JB
11540 * font.c (font_rescale_ratio): Moved from xfaces.c.
11541 Argument type changed. Handle a font-spec too.
96f9306b 11542 (font_score): Check Vface_font_rescale_alist.
6dec9044 11543 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
11544
11545 * xfaces.c (font_rescale_ratio): Moved to font.c.
11546
8d5b4964
CY
115472008-12-13 Chong Yidong <cyd@stupidchicken.com>
11548
11549 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11550
e6df5336
JR
115512008-12-12 Jason Rumney <jasonr@gnu.org>
11552
11553 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11554 Vwindow_system_version to the real w32 major version.
11555
97c6058a
DN
115562008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11557
11558 * term.c (init_tty): Move setting the terminal name before the
11559 potential user: maybe_fatal.
11560
ec4e88d7
CY
115612008-12-11 Chong Yidong <cyd@stupidchicken.com>
11562
d4835507
JB
11563 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11564 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 11565
b4233ec9
JR
115662008-12-11 Jason Rumney <jasonr@gnu.org>
11567
8ec71e23 11568 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 11569 SYMBOL_CHARSET. (Bug#547)
8ec71e23 11570
b4233ec9 11571 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 11572 size for surrogates. (Bug#1096, bug#872)
b4233ec9 11573
011a0143
JB
115742008-12-11 Juanma Barranquero <lekktu@gmail.com>
11575
11576 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11577
3c309f34
JB
115782008-12-11 Juanma Barranquero <lekktu@gmail.com>
11579
11580 * process.c (Fsystem_process_attributes, syms_of_process):
11581 Fix typo in name of Ssystem_process_attributes.
11582 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11583
fedc6ab5
JB
115842008-12-11 Juanma Barranquero <lekktu@gmail.com>
11585
11586 * syntax.c (Fmodify_syntax_entry): Doc fix.
11587
ba3de0e8
JB
115882008-12-10 Juanma Barranquero <lekktu@gmail.com>
11589
11590 * font.c (Ffont_spec): Move usage to end of docstring.
11591
174f1c74
JR
115922008-12-10 Jason Rumney <jasonr@gnu.org>
11593
11594 * w32font.c (Qcham): New symbol.
11595 (font_supported_scripts): Add cham, and comments for other new
11596 scripts in bitfield from OpenType spec.
9d32f818
JR
11597 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11598 contain characters beyond the bmp.
174f1c74 11599
7b649478
KH
116002008-12-10 Kenichi Handa <handa@m17n.org>
11601
11602 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 11603 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
11604 Qunicode_sip.
11605
2133e2d1
JB
116062008-12-10 Juanma Barranquero <lekktu@gmail.com>
11607
11608 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11609 (Fcoding_system_put): Use QCdefault_char.
11610 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11611
9af886ee
CY
116122008-12-09 Chong Yidong <cyd@stupidchicken.com>
11613
74d819eb
CY
11614 * xftfont.c (syms_of_xftfont): Fix typo.
11615
4ccfa1c0 11616 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 11617
7c19d3ae
DN
116182008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11619
11620 * emacs.c (main): Close daemon_pipe on exec.
11621
567826bb
CY
116222008-12-08 Chong Yidong <cyd@stupidchicken.com>
11623
11624 * termchar.h (struct tty): New members termcap_term_buffer and
11625 termcap_strings_buffer.
11626
11627 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 11628 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
11629 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11630 All callers changed.
11631 (init_tty): Store termcap data and string buffers in new struct
11632 tty members termcap_term_buffer and termcap_strings_buffer.
11633 (delete_tty): Free them.
4ccfa1c0 11634 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 11635
aa96c42b
SZ
116362008-12-07 Seiji Zenitani <zenitani@mac.com>
11637
11638 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 11639 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 11640
b7e1d896
CY
116412008-12-06 Chong Yidong <cyd@stupidchicken.com>
11642
11643 * coding.c (make_conversion_work_buffer): Disable buffer
11644 modification hooks in the work buffer.
11645
b5ec91a5
EZ
116462008-12-05 Eli Zaretskii <eliz@gnu.org>
11647
11648 * process.c (procfs_system_process_attributes): If `nread' has a
11649 negative value, assign zero to it.
11650
a5d2a52b
CY
116512008-12-05 Chong Yidong <cyd@stupidchicken.com>
11652
68c5540b 11653 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 11654
7bf1bb21
KH
116552008-12-05 Kenichi Handa <handa@m17n.org>
11656
11657 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11658 second character is a combining character.
11659
2fdc7d00
EZ
116602008-12-05 Eli Zaretskii <eliz@gnu.org>
11661
11662 * process.c (procfs_system_process_attributes): Don't use cmd,
11663 cmdsize, and q without initializing them first.
11664
bf6bfba8
JR
116652008-12-04 Jason Rumney <jasonr@gnu.org>
11666
11667 * w32font.c (w32font_draw): Initialize orig_clip before getting
11668 it, and delete it when finished.
11669
a3b1a468
DN
116702008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11671
11672 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11673 case when running as a daemon before detaching.
11674
8b8be8eb
JB
116752008-12-03 Juanma Barranquero <lekktu@gmail.com>
11676
805f2638 11677 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 11678
b1bde622
KH
116792008-12-03 Kenichi Handa <handa@m17n.org>
11680
e500c47d
KH
11681 * font.c (font_at): Set `multibyte' at first.
11682
ca516334
KH
11683 * coding.c (decode_coding_charset): Check type of an element of
11684 vector VALIDS.
7bf1bb21 11685 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 11686
4ccfa1c0 11687 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
11688 (font_for_char): Likewise.
11689
1e5ecd37
CY
116902008-12-03 Chong Yidong <cyd@stupidchicken.com>
11691
d5b01609 11692 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11693 (font_update_lface): Handle fonts with corrupted size specs,
11694 i.e. non-int and non-float.
d5b01609 11695
11e3a6e4 11696 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11697 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11698 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11699
ab06788b
CY
11700 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11701
1e5ecd37 11702 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11703 underline_minimum_offset for underline position.
1e5ecd37 11704
63c125ab
DN
117052008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11706
11707 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11708
11709 * character.c (c_string_width): Specify the type for LEN.
11710
3a8406e1
KH
117112008-12-03 Kenichi Handa <handa@m17n.org>
11712
4ccfa1c0 11713 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11714 (decode_coding_utf_8): Likewise.
4ccfa1c0 11715 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11716 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11717
651df7d9
CY
117182008-12-02 Chong Yidong <cyd@stupidchicken.com>
11719
11720 * keyboard.c (make_lispy_position): Only use PT if the selected
11721 window is current.
11722
1f625c6c
AS
117232008-12-02 Andreas Schwab <schwab@suse.de>
11724
f7741ce9
AS
11725 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11726
1f625c6c
AS
11727 * doprnt.c (doprnt1): Fix size of charbuf.
11728
92bc2678
CY
117292008-12-02 Chong Yidong <cyd@stupidchicken.com>
11730
11731 * keyboard.c (timer_check): Revert last change.
11732
93b9e8cc
JB
117332008-12-02 Juanma Barranquero <lekktu@gmail.com>
11734
11735 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11736
fd7a37d5
JB
117372008-12-01 Juanma Barranquero <lekktu@gmail.com>
11738
11739 * makefile.w32-in: Update dependencies.
11740 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11741
c115043b
AS
117422008-12-01 Andreas Schwab <schwab@suse.de>
11743
11744 * font.c (register_font_driver): Use xmalloc.
11745 (font_put_frame_data): Likewise.
11746
f5668d2a
CY
117472008-12-01 Chong Yidong <cyd@stupidchicken.com>
11748
860d96be
CY
11749 * xfaces.c (realize_x_face): Make abort condition clearer.
11750
f5668d2a
CY
11751 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11752
379c17e7
CY
117532008-11-30 Chong Yidong <cyd@stupidchicken.com>
11754
11755 * keyboard.c (timer_check): After a timer runs, ensure that the
11756 selected window's buffer is current.
11757
35f36d65
JB
117582008-11-30 Juanma Barranquero <lekktu@gmail.com>
11759
f952c61c
JB
11760 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11761 It was accidentally restored by the Unicode merge.
11762
35f36d65
JB
11763 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11764
b23077df
JB
117652008-11-29 Juanma Barranquero <lekktu@gmail.com>
11766
11767 * w32proc.c: Include "coding.h".
11768 (Fw32_short_file_name): Encode filename passed to Windows API.
11769 (Fw32_long_file_name): Encode filename passed to Windows API and
11770 decode back the result. (Bug#1433)
11771
b8ebe9dd
KH
117722008-11-29 Kenichi Handa <handa@m17n.org>
11773
8cc53f96
KH
11774 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11775 not before accessing it.
11776
b8ebe9dd
KH
11777 * charset.c (Fdefine_charset_internal): After calculating
11778 min_char, max_char, and fastmap, copy the charset structure again.
11779 (encode_char): Fix the previous change.
11780
59bc82c0
SZ
117812008-11-28 Seiji Zenitani <zenitani@mac.com>
11782
11783 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11784
11785 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11786
11787 * nsterm.m (x_set_frame_alpha): New function.
11788
32247e3d
EZ
117892008-11-27 Eli Zaretskii <eliz@gnu.org>
11790
11791 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11792
b003e5ff
JB
117932008-11-27 Juanma Barranquero <lekktu@gmail.com>
11794
11795 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11796 pointer to check_face_name.
11797
708550f5
KH
117982008-11-27 Kenichi Handa <handa@m17n.org>
11799
11800 * category.h (SET_CATEGORY_SET): Call set_category_set.
11801 (set_category_set): Extern it.
11802
11803 * category.c (hash_get_category_set): New function.
11804 (Fmodify_category_entry): Adjusted for the change of
11805 char_table_ref_and_range. Call hash_get_category_set to get a
11806 category set to store in the table.
11807
11808 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11809 Funify_charset.
11810
2ae37cf0 11811 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11812 (DECODE_CHAR): Check if the decoder vector is ready.
11813 (ENCODE_CHAR): Check if the encoder char-table is ready.
11814 (maybe_unify_char): Extern it.
11815
11816 * charset.c (Vchar_unified_charset_table): Delete it.
11817 (inhibit_load_charset_map): New variable.
11818 (temp_charset_work): New variable.
11819 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11820 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11821 New macros.
11822 (load_charset_map): Meaning of control_flag changed. If
11823 inhibit_load_charset_map is nonzero, setup a table in
11824 temp_charset_work.
11825 (load_charset): New argument control_flag.
11826 (map_charset_for_dump): New function.
11827 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11828 map_charset_for_dump.
11829 (Fdefine_charset_internal): If the charset method is MAP, load
11830 mapping tables by calling load_charset.
11831 (Funify_charset): Don't load a mapping table but directly set
11832 Vchar_unify_table.
11833 (maybe_unify_char): New function.
11834 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11835 Handle the case of inhibit_load_charset_map being nonzero.
11836 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11837 Handle the case of inhibit_load_charset_map being nonzero.
11838 (Fclear_charset_maps): Just free temp_charset_work.
11839 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11840 variable.
11841
11842 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11843 change of char_table_ref_and_range.
11844 (char_table_ref_and_range): Change the meaning of argument FROM
11845 and TO. Now the caller must provide initial values for *FROM
11846 and *TO.
11847
11848 * fontset.c (fontset_add): Adjusted for the change of
11849 char_table_ref_and_range.
11850 (fontset_get_font_group): Likewise.
11851 (Ffontset_info): Likewise.
11852
11853 * keymap.c (describe_vector): Adjusted for the change of
11854 char_table_ref_and_range. For char-table, put boundary between
11855 non-ASCII and 8-bit characters.
11856
11857 * print.c (print_object): For bool-vector, delete unnecessary
11858 check of ASCII_BYTE_P.
11859
9196133b
JR
118602008-11-26 Jason Rumney <jasonr@gnu.org>
11861
11862 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11863 leading in font height. (Bug#879)
9196133b 11864
9f688acf
GM
118652008-11-26 Glenn Morris <rgm@gnu.org>
11866
11867 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11868 redefinition with ifdef. (Bug#1383)
11869
90d19aff
AR
118702008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11871
11872 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11873
4ccfa1c0 118742008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11875
11876 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11877 New EmacsView methods.
11878 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11879 Fixes bug #1048,1357,1414.
11880
118812008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11882
11883 Fix bug #1362.
11884 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11885 is not an indexed color.
11886 * nsterm.m (free_indexed_color): Add argument checking.
11887 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11888
e7d5ecb3
CY
118892008-11-24 Chong Yidong <cyd@stupidchicken.com>
11890
11891 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11892 Document confirm-after-completion value for
11893 minibuffer-completion-confirm.
11894
c285743c
JR
118952008-11-24 Jason Rumney <jasonr@gnu.org>
11896
11897 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11898 warning.
11899
b0857706
JR
119002008-11-23 Jason Rumney <jasonr@gnu.org>
11901
11902 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11903 restored before returning.
11904
11905 * w32font.c (check_face_name): New function.
11906 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11907 fonts. (Bug#642)
b0857706 11908
ee50ff07
MR
119092008-11-22 Martin Rudalics <rudalics@gmx.at>
11910
11911 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11912 confirm-nonexistent-file-or-buffer in doc-string.
11913
b8ff72fa
SM
119142008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11915
11916 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11917 Fix copy/paste typo. Add checks.
11918
cee53ed4
KH
119192008-11-21 Kenichi Handa <handa@m17n.org>
11920
11921 * coding.c (detect_coding_iso_2022): Reject invalid composition
11922 sequence.
11923 (DECODE_COMPOSITION_START): If the current source is the last
11924 block, and the current composition doesn't end, regard this
11925 sequence as invalid.
11926 (decode_coding_iso_2022): Handle invalid composition sequence.
11927
f6ef1e65
MR
119282008-11-20 Martin Rudalics <rudalics@gmx.at>
11929
11930 * window.c (coordinates_in_window): Don't return
11931 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11932 line when the window is not the rightmost one. (Bug#1372)
11933
e08b1705
MR
119342008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11935
11936 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11937
ad98e89f
EZ
119382008-11-15 Eli Zaretskii <eliz@gnu.org>
11939
11940 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11941 and bright_bg if noninteractive is non-zero.
11942
fb098a4b
CY
119432008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11944
11945 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11946 x_draw_glyph_string_background.
11947
11948 * w32term.c (x_draw_glyph_string): Likewise.
11949
ce952b6e
CY
119502008-11-15 Chong Yidong <cyd@stupidchicken.com>
11951
11952 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11953 the next glyph string once past the overhang width.
11954
11955 * nsterm.m (ns_draw_glyph_string): Likewise.
11956
11957 * w32term.c (x_draw_glyph_string): Likewise.
11958
26ea7079
CY
119592008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11960
11961 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11962 double file close.
11963
1c33c906
MR
119642008-11-14 Martin Rudalics <rudalics@gmx.at>
11965
11966 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11967 dedicated status of window before attempting to display another
11968 buffer in it.
11969
8fc29035
JB
119702008-11-14 Juanma Barranquero <lekktu@gmail.com>
11971
11972 * msdos.c (Fmsdos_long_file_names):
11973 (syms_of_msdos) <dos-unsupported-char-glyph>:
11974 * dosfns.c (Fint86): Fix typos in docstrings.
11975
55fb4286
EZ
119762008-11-14 Eli Zaretskii <eliz@gnu.org>
11977
11978 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11979
3fda0315
KY
119802008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11981
11982 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11983
7e849c17
CY
119842008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11985
11986 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11987
11988 * frame.h: Negative alpha means "don't touch".
11989
11990 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11991
11992 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11993
b9fd67bd
DN
119942008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11995
11996 * hftctl.c:
11997 * chpdef.h:
11998 * acldef.h: Remove files used only for systems no longer supported.
11999
12000 * Makefile.in: Fix .o alphabetical ordering.
12001 (hftctl.o): Remove dependency, file removed.
12002 (keymap.o, print.o): Depend on charset.h.
12003
d5998e03
KH
120042008-11-10 Kenichi Handa <handa@m17n.org>
12005
2ae37cf0 12006 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 12007
be70e183
CY
120082008-11-08 Chong Yidong <cyd@stupidchicken.com>
12009
12010 * dired.c (file_name_completion): If completion_ignore_case is
12011 enabled, ignore case when checking completion-regexp-list.
12012
7cf94eac
EZ
120132008-11-08 Eli Zaretskii <eliz@gnu.org>
12014
12015 * vm-limit.c (get_lim_data): Fix last change.
12016
ee107a89
KH
120172008-11-08 Kenichi Handa <handa@m17n.org>
12018
12019 * character.c (Fget_byte): New function.
12020 (syms_of_character): Defsubr Fget_byte.
12021
5fd15622
CY
120222008-11-07 Chong Yidong <cyd@stupidchicken.com>
12023
12024 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
12025 cursor position is valid after scrolling.
12026
13d62fad
JB
120272008-11-06 Juanma Barranquero <lekktu@gmail.com>
12028
12029 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
12030
a1dd2936
GM
120312008-11-06 Glenn Morris <rgm@gnu.org>
12032
12033 * xterm.c (handle_one_xevent): Don't let popup menus cause
12034 mouse-autoselect-window related window switching. (Bug#1261)
12035
860cd236
CY
120362008-11-04 David Smith <davidsmith@acm.org> (tiny change)
12037
12038 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
12039
653a3150
AS
120402008-11-04 Andreas Schwab <schwab@suse.de>
12041
12042 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
12043
870f5cac
CY
120442008-11-03 Chong Yidong <cyd@stupidchicken.com>
12045
12046 * xfns.c (Fx_wm_set_size_hint): New function.
12047
1e02f3cb
MR
120482008-11-03 Martin Rudalics <rudalics@gmx.at>
12049
12050 * textprop.c (Fprevious_single_char_property_change): Return 0
12051 when there's no change in a string. (Bug#1301)
12052
e630dfc6
MR
120532008-11-02 Martin Rudalics <rudalics@gmx.at>
12054
12055 * frame.c (do_switch_frame): New argument NORECORD passed to
12056 Fselect_window.
12057 (Fselect_frame): New argument NORECORD passed to
12058 do_switch_frame.
12059 (Fset_frame_selected_window): New argument NORECORD passed to
12060 Fselect_frame.
12061 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
12062 in call of do_switch_frame.
12063 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
12064 Handle NORECORD argument in call of Fselect_frame.
12065 * lisp.h (do_switch_frame, Fselect_frame)
12066 (Fset_frame_selected_window): Adjust declarations.
12067 * window.c (select_frame_norecord): New function.
12068 (run_window_configuration_change_hook): Use it and call
12069 Fselect_frame with NORECORD set.
12070 (Fselect_window): Pass NORECORD to Fselect_frame.
12071 (Fset_window_configuration): Handle NORECORD argument in call of
12072 do_switch_frame.
12073 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
12074 Fset_frame_selected_window.
12075 * keyboard.c (command_loop_1): Handle NORECORD in call of
12076 Fselect_frame (currently ifdefd).
12077
9020b223
GM
120782008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
12079
12080 * emacs.c (USAGE2): Untabify.
12081
793ffee8
SM
120822008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
12083
12084 * composite.c (fill_gstring_header): Fix copy/paste typo.
12085
ab6d1131
MR
120862008-10-31 Martin Rudalics <rudalics@gmx.at>
12087
12088 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
12089 (Fother_window): Rename argument and rewrite doc-string.
12090 (select_window_norecord): Fix return value. (Bug#1276)
12091
601a9cf1
JB
120922008-10-30 Juanma Barranquero <lekktu@gmail.com>
12093
12094 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
12095 new frames overriding foreground for tooltips. Based on similar patch
12096 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
12097
813b0652
CY
120982008-10-29 Chong Yidong <cyd@stupidchicken.com>
12099
12100 * emacs.c (Fdaemon_initialized): Initialize nfd.
12101
4414f58f
MR
121022008-10-29 Martin Rudalics <rudalics@gmx.at>
12103
12104 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
12105 (Fwindow_text_height): Clarify doc-strings.
12106 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
12107 doc-string of window-scroll-functions.
12108
ecdcaa09
RS
121092008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
12110
12111 * category.c (syms_of_category): Fix typo in docstring.
12112
23fe745a
JB
121132008-10-28 Juanma Barranquero <lekktu@gmail.com>
12114
12115 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
12116 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
12117 Fix typos in docstrings.
12118
ff808935
DN
121192008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
12120
12121 * emacs.c (daemon_pipe): Make non-static.
12122 (IS_DAEMON): Move definition ...
12123 * lisp.h (IS_DAEMON): ... here.
12124 (daemon_pipe): Declare.
12125 (is_daemon): Remove.
12126 * dispnew.c (init_display): Use IS_DAEMON.
12127
fc012771
SM
121282008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12129
12130 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
12131 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
12132
12133 * emacs.c (is_daemon): Remove.
12134 (main): Don't set is_daemon.
12135 (IS_DAEMON): New macro.
12136 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 12137 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
12138 parent exits.
12139 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
12140
d8bdbe6f
CY
121412008-10-27 Chong Yidong <cyd@stupidchicken.com>
12142
d1a072bf
CY
12143 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
12144 over-sized glyph, draw it with the default glyph width.
12145
e2e325aa
CY
12146 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12147 glyph, draw it with the default glyph width.
12148
12149 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12150 glyph, draw it with the default glyph width.
12151
d8bdbe6f
CY
12152 * xdisp.c (try_scrolling): When computing the distance from the
12153 scroll margin to PT, try moving some distance past the window
12154 bottom before giving up.
12155
7bfac547
MR
121562008-10-27 Martin Rudalics <rudalics@gmx.at>
12157
12158 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
12159 (Fset_window_buffer): Explain in doc-string that a window can be
12160 "strongly" dedicated to its buffer.
12161
4ff029f6
DN
121622008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
12163
12164 * emacs.c (daemon_name): New variable.
12165 (main): Deal with --daemon=SERVER_NAME.
12166 (Fdaemonp): Return a name if one was passed to --daemon.
12167
5790ef40
DN
121682008-10-26 Romain Francoise <romain@orebokech.com>
12169
f9bd0df9 12170 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
12171 (main): Create a pipe before forking, make the parent exit only after
12172 the child has closed its end of the pipe. Move closing the
12173 descriptors ...
12174 (Fdaemon_initialized): ... here. New function.
12175
f5385255
SM
121762008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
12177
4d632321
SM
12178 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
12179 the previous unoptimized table.
12180
f5385255
SM
12181 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
12182 the distinction between non-nil and non-t value of `dedicated'.
12183
6c56a0f3
CY
121842008-10-25 Chong Yidong <cyd@stupidchicken.com>
12185
12186 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 12187 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 12188
fec89261
MR
121892008-10-25 Martin Rudalics <rudalics@gmx.at>
12190
12191 * window.c (Fget_buffer_window, Fdelete_windows_on)
12192 (Freplace_buffer_in_windows): Make buffer argument optional and
12193 rename to buffer_or_name.
12194
34fcddd0
CY
121952008-10-24 Chong Yidong <cyd@stupidchicken.com>
12196
f5385255
SM
12197 * xdisp.c (handle_single_display_spec, handle_display_prop):
12198 Undo 2005-05-16 change.
34fcddd0
CY
12199 (handle_stop): Pop iterator if it's loaded with an empty string.
12200 (get_overlay_strings_1): Don't save iterator if it's loaded with
12201 an empty string (bug#1201).
12202
064766f2
KH
122032008-10-24 Kenichi Handa <handa@m17n.org>
12204
12205 * ftfont.c (ftfont_otf_features): Fix previous change.
12206 (ftfont_otf_capability): Check FeatureList.FeatureCount before
12207 calling ftfont_otf_features.
12208
f9bd0df9 122092008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
12210
12211 * font.c (font_match_p): Fix for the case that a vector of
12212 characters is in script-representative-chars.
12213
1dae9197
MA
122142008-10-24 Michael Albinus <michael.albinus@gmx.de>
12215
12216 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 12217 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
12218 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12219 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 12220 macro. (Bug#1186)
1dae9197 12221
f9bd0df9 122222008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
12223
12224 * s/sol2-10.h: New file.
12225
878a4584
JB
122262008-10-23 Juanma Barranquero <lekktu@gmail.com>
12227
12228 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12229 poor beast has survived 9+ years and the jump from xterm.c!).
12230
cd265ca6
MR
122312008-10-23 Martin Rudalics <rudalics@gmx.at>
12232
12233 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12234 Reword doc-string.
f5385255 12235 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 12236
472a4dc9
JB
122372008-10-23 Juanma Barranquero <lekktu@gmail.com>
12238
12239 * character.c (syms_of_character) <script-representative-chars>:
12240 <unicode-category-table>: Doc fixes.
12241
159bd5a2
NF
122422008-10-23 Noah Friedman <friedman@splode.com>
12243
12244 * coding.c (make_conversion_work_buffer): Check that
12245 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12246 Fget_buffer_create.
12247
49f9c344
KH
122482008-10-23 Kenichi Handa <handa@m17n.org>
12249
12250 * font.c (font_add_log): Check the values of extra properties.
12251
12bb3111
MR
122522008-10-22 Martin Rudalics <rudalics@gmx.at>
12253
12254 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12255 Reword doc-string.
12256 (Fset_window_parameter): Use NILP.
12257 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 12258 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 12259
bbeb4e99
JB
122602008-10-22 Juanma Barranquero <lekktu@gmail.com>
12261
12262 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12263
122642008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
12265
12266 * nsfns.m (ns_appkit_version): New function.
12267 (x-server-version): Use it.
12268 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12269 (x-server-vendor): Don't check_ns().
12270
12271 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12272
a9b555d3
JB
122732008-10-22 Juanma Barranquero <lekktu@gmail.com>
12274
12275 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12276 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12277
4626499f
KH
122782008-10-22 Kenichi Handa <handa@m17n.org>
12279
e3681952
KH
12280 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12281 scripts.
12282
4626499f
KH
12283 * category.c (word_boundary_p): Check scripts instead of charset.
12284 Handle nil value in word-separating-categories and
12285 word-combining-categories.
12286 (syms_of_category): Fix docstrings of word-separating-categories
12287 and word-combining-categories.
12288
1560f91a
EZ
122892008-10-21 Eli Zaretskii <eliz@gnu.org>
12290
12291 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12292 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12293
f4668441
MR
122942008-10-21 Martin Rudalics <rudalics@gmx.at>
12295
12296 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12297 Rename arg "buffer" to "buffer_or_name".
12298 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12299 it optional.
12300 (no_switch_window): Remove since the return value is not used.
a9b555d3 12301 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
12302 Consider window as dedicated when Fwindow_dedicated_p returns a
12303 non-nil value.
12304 * lisp.h: Remove prototype for no_switch_window.
12305
fd75ddb2
JD
123062008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12307
12308 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 12309 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 12310
07295713
KH
123112008-10-21 Kenichi Handa <handa@m17n.org>
12312
12313 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12314 check Vlatin_extra_code_table.
12315
712adc82
EZ
123162008-10-20 Eli Zaretskii <eliz@gnu.org>
12317
12318 * fileio.c (Fset_file_modes): Doc fix.
12319
f549eb0b
MA
123202008-10-19 Michael Albinus <michael.albinus@gmx.de>
12321
12322 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12323 in arrays.
12324
aac0c6e3
MR
123252008-10-19 Martin Rudalics <rudalics@gmx.at>
12326
12327 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12328 Mention kill-buffer in doc-string.
12329 (Fset_window_buffer): Reinsert tem check removed in last commit.
12330 (Fenlarge_window, Fshrink_window): Have argument names and
12331 doc-string follow Elisp manual more closely.
12332
123332008-10-18 Eli Zaretskii <eliz@gnu.org>
12334
12335 * fileio.c (Fset_file_modes): Doc fix.
12336
123372008-10-18 Martin Rudalics <rudalics@gmx.at>
12338
12339 * window.c (Fwindow_width, Fset_window_start)
12340 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
12341 (Fdelete_windows_on, Freplace_buffer_in_windows):
12342 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
12343 (Fwindow_dedicated_p): Make window argument optional.
12344 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12345 (Fset_window_buffer): Respect any non-nil dedicated value for
12346 window. Rename "buffer" argument to "buffer_or_name".
12347
123482008-10-18 Ulrich Mueller <ulm@gentoo.org>
12349
12350 * m/sh3.h: New file, machine description for SuperH.
12351
123522008-10-17 Martin Rudalics <rudalics@gmx.at>
12353
12354 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12355
123562008-10-17 Kenichi Handa <handa@m17n.org>
12357
12358 * ftfont.c (ftfont_otf_features): Fix indexing
12359 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12360
123612008-10-16 Magnus Henoch <mange@freemail.hu>
12362
12363 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12364 (Fdbus_call_method_asynchronously): Ditto.
12365 This change makes C-h f display the argument list.
12366
123672008-10-16 Chong Yidong <cyd@stupidchicken.com>
12368
12369 * fileio.c (Fexpand_file_name): Doc fix.
12370
12371 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12372 of :foreground and :background equivalent to unspecified (20.x
12373 compatibility).
12374
123752008-10-15 Eli Zaretskii <eliz@gnu.org>
12376
12377 * buffer.c (syms_of_buffer): Doc fix.
12378
123792008-10-14 Kenichi Handa <handa@m17n.org>
12380
12381 * font.c (font_clear_prop): When clearing font width, clear the
12382 average width field too.
12383
123842008-10-12 Andreas Schwab <schwab@suse.de>
12385
12386 * ftfont.c (ftfont_shape_by_flt): Make static.
12387 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12388
12389 * font.c: Don't include <m17n-flt.h>.
12390
123912008-10-10 Eli Zaretskii <eliz@gnu.org>
12392
12393 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12394
123952008-10-09 Eli Zaretskii <eliz@gnu.org>
12396
12397 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12398 away code.
12399
124002008-10-09 Chong Yidong <cyd@stupidchicken.com>
12401
12402 * dispnew.c (update_text_area): Avoid looping due to large glyph
12403 overhangs (bug#1070).
12404
124052008-10-09 Kenichi Handa <handa@m17n.org>
12406
12407 * fontset.c (face_for_char): If face->fontset is negative, just
12408 return ascii_face.
12409
f5385255
SM
12410 * font.c (font_delete_unmatched): Fix previous change.
12411 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
12412
124132008-10-09 Martin Rudalics <rudalics@gmx.at>
12414
12415 * frame.c (Fraise_frame): On text-only terminals select frame in
12416 order to make it visible. (Bug#1061)
12417
124182008-10-08 Chong Yidong <cyd@stupidchicken.com>
12419
12420 * fontset.c (fontset_find_font): Check frame validity.
12421
124222008-10-07 Chong Yidong <cyd@stupidchicken.com>
12423
a9b555d3 12424 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
12425 (xg_display_close): Allow Emacs to close all displays (bug#985).
12426
124272008-10-06 Andreas Schwab <schwab@suse.de>
12428
f5385255 12429 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
12430
124312008-10-06 Chong Yidong <cyd@stupidchicken.com>
12432
f5385255 12433 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 12434
a9b555d3 12435 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
12436
12437 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12438 during initialization.
12439
124402008-10-04 Eli Zaretskii <eliz@gnu.org>
12441
12442 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12443 whole thing on MSDOS frames as well as on a TTY.
12444
12445 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12446 well as for TTY.
12447 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12448 well as on a TTY.
12449
12450 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12451 as well as for TTY.
12452
12453 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12454
12455 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12456 MSDOS frames as well.
12457
124582008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12459
12460 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12461 correct arguments.
b71ac3dd 12462 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
12463
124642008-10-03 Glenn Morris <rgm@gnu.org>
12465
12466 * emacs.c (USAGE1): Add --daemon.
12467
124682008-10-02 Eli Zaretskii <eliz@gnu.org>
12469
12470 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12471 100, so it's in percents as advertised.
12472
124732008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12474
12475 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12476 (ns_output.current_cursor, ns_output.desired_cursor)
12477 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12478 (FRAME_NEW_CURSOR_COLOR): Remove.
12479
12480 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 12481 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
12482 enumeration (HOLLOW_BOX_CURSOR, etc.).
12483
12484 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12485 (draw_window_cursor): Simplify code.
f5385255
SM
12486 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12487 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 12488 updates manually.
a9b555d3
JB
12489 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12490 Use core Emacs cursor types.
aac0c6e3 12491
b8ff72fa 12492 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
12493
124942008-10-02 Martin Rudalics <rudalics@gmx.at>
12495
12496 * process.c (Faccept_process_output): Fix doc-string.
12497
124982008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12499
12500 * gmalloc.c (__sbrk): Also define for uClibc.
12501
12502 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12503 for uClibc.
12504
125052008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12506
12507 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12508 styles.
12509 (nsfont_open): Reenable the cache.
12510
125112008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12512
12513 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12514 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12515
125162008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12517
12518 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12519 a suspended terminal.
12520
125212008-09-30 Michael Albinus <michael.albinus@gmx.de>
12522
12523 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12524
125252008-09-30 Eli Zaretskii <eliz@gnu.org>
12526
12527 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12528
125292008-09-30 Chong Yidong <cyd@stupidchicken.com>
12530
12531 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12532 in a continued line coincides with a line beginning.
12533
125342008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12535
12536 * nsfont.m (nsfont_trait_distance): Fix bug.
12537 (nsfont_list): Return a list rather than a vector (syncs with Handa
12538 changes of 2008-05-14).
12539 (nsfont_open): Improve logging.
12540
125412008-09-29 Andreas Schwab <schwab@suse.de>
12542
12543 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12544
125452008-09-28 Martin Rudalics <rudalics@gmx.at>
12546
12547 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12548 name as char-resolve-modifiers.
12549 Reported by: Markus Triska <markus.triska@gmx.at>
12550
125512008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12552
12553 * dispnew.c (init_display): Return earlier when running as a daemon.
12554
125552008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12556
12557 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12558
125592008-09-27 Eli Zaretskii <eliz@gnu.org>
12560
12561 * composite.c (Fcomposition_get_gstring)
12562 (Fcompose_region_internal, Fcompose_string_internal)
12563 (Ffind_composition_internal): Doc fix.
12564 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12565 (syms_of_composite) <auto-composition-function>: Doc fix.
12566 (syms_of_composite) <composition-function-table>: Doc fix.
12567
125682008-09-25 Chong Yidong <cyd@stupidchicken.com>
12569
12570 * search.c (wordify): New argument for lax word-ends.
12571 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12572
125732008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12574
12575 * lisp.h (is_daemon): Declare.
12576 * dispnew.c (init_display): Do not try to initialize the terminal
12577 when running as a daemon.
12578
125792008-09-22 Chong Yidong <cyd@stupidchicken.com>
12580
12581 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12582 x_display_pixel_height.
12583
125842008-09-22 Martin Rudalics <rudalics@gmx.at>
12585
12586 * undo.c (record_point): Don't call Fundo_boundary for first
12587 change. (Bug#731)
12588
125892008-09-22 Juanma Barranquero <lekktu@gmail.com>
12590
12591 * emacs.c (Fdaemonp): Doc fix.
12592
125932008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12594
12595 * emacs.c (main): Place #ifdef in the proper place.
12596
125972008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12598
12599 * emacs.c (standard_args): Add --daemon.
12600 (main): Disconnect from the terminal when --daemon is passed.
12601 (is_daemon): New variable.
12602 (Fdaemonp): New function.
12603 (syms_of_emacs): Defsubr it.
12604
126052008-09-20 Chong Yidong <cyd@stupidchicken.com>
12606
12607 * xdisp.c (get_next_display_element): Handle string display
12608 correctly when checking for the end of a box run.
12609
126102008-09-20 Glenn Morris <rgm@gnu.org>
12611
12612 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12613 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12614 (Frename_file): Avoid copying to trash if a rename involves
12615 a delete. (Bug#964).
12616
126172008-09-20 Eli Zaretskii <eliz@gnu.org>
12618
12619 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12620 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12621 frames as well as termcap frames.
12622 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12623 get_named_tty.
12624
126252008-09-19 Eli Zaretskii <eliz@gnu.org>
12626
12627 * process.c (procfs_system_process_attributes): Fix cmdline in
12628 case /proc/PID/cmdline is empty.
12629
12630 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12631 x_display_pixel_height.
12632
126332008-09-19 Juanma Barranquero <lekktu@gmail.com>
12634
12635 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12636
12637 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12638 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12639
126402008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12641
12642 * dispextern.h (struct it): Move line_wrap away from the middle of
12643 bitfields. Move voffset in struct iterator_stack_entry after the
12644 bitfields. Move tab_width near after another short.
12645
126462008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12647
12648 * frame.h (struct frame): Move alpha from the middle of bitfields.
12649
12650 * window.h (struct window): Move frozen_window_start_p after the
12651 rest of the bitfields to reduce padding.
12652
126532008-09-18 Chong Yidong <cyd@stupidchicken.com>
12654
12655 * xterm.h (x_display_info): Remove `height' and `width' members.
12656
12657 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12658
12659 * w32term.h (w32_display_info): Remove `height', `width',
12660 `height_in', and `width_in' members.
12661
b8ff72fa
SM
12662 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12663 New functions.
aac0c6e3
MR
12664 (x_calc_absolute_position): Use them.
12665 (x_term_init): Omit removed `height' and `width' members.
12666
b8ff72fa
SM
12667 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12668 New functions.
aac0c6e3
MR
12669 (w32_read_socket, x_calc_absolute_position): Use them.
12670 (w32_initialize_display_info, w32_term_init): Omit removed members
12671 of w32_display_info.
12672
b8ff72fa
SM
12673 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12674 New functions.
12675 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 12676
b8ff72fa
SM
12677 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12678 New functions.
aac0c6e3
MR
12679 (x_calc_absolute_position): Use them.
12680 (x_term_init): Omit removed `height' and `width' members.
12681
12682 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
12683 (compute_tip_xy):
12684 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
12685 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12686 x_display_pixel_width.
12687
126882008-09-18 Kenichi Handa <handa@m17n.org>
12689
12690 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12691 (composition_compute_stop_pos): Fix handling of static composition.
12692 (Fcomposition_get_gstring): Check FROM and TO at first.
12693
126942008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12695
46e722a9 12696 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12697 mixup (YAILOM).
12698
126992008-09-17 Chong Yidong <cyd@stupidchicken.com>
12700
12701 * indent.c (Fvertical_motion): Use position reported by iterator
12702 instead of PT for determining screen motion (bug#943).
12703
127042008-09-17 Romain Francoise <romain@orebokech.com>
12705
12706 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12707
127082008-09-17 Kenichi Handa <handa@m17n.org>
12709
12710 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12711
12712 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12713 if necessary.
12714
127152008-09-16 Kenichi Handa <handa@m17n.org>
12716
12717 * coding.c (make_conversion_work_buffer): Avoid calling
12718 Fget_buffer_create if it is not necessary.
12719
127202008-09-15 Martin Rudalics <rudalics@gmx.at>
12721
12722 * window.c (Fselect_window): Don't update window_select_count and
12723 use_time when norecord is not nil.
12724
127252008-09-14 Kenichi Handa <handa@m17n.org>
12726
12727 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12728 specpdl_ptr.
12729
127302008-09-12 Kenichi Handa <handa@m17n.org>
12731
12732 * indent.c (scan_for_column): Don't handle automatic composition
12733 if the current buffer is not associated with a window.
12734
12735 * composite.c (composition_reseat_it): If the current buffer is
12736 not associated with a window, ignore the automatic composition.
12737 (find_automatic_composition): Likewise.
12738
127392008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12740
12741 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12742 (Fgpm_mouse_stop): Use it.
12743 * termhooks.h (close_gpm): Declare.
12744 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12745 connection if Gpm_GetEvent fails.
12746
12747 * window.c (set_window_buffer): Always preserve current-buffer.
12748
127492008-09-12 Glenn Morris <rgm@gnu.org>
12750
12751 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12752
127532008-09-11 Glenn Morris <rgm@gnu.org>
12754
12755 * charset.c (charset-map-path): Doc fix.
12756
127572008-09-10 Kenichi Handa <handa@m17n.org>
12758
12759 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12760
12761 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12762 compose a grapheme cluster with the preceding base glyph.
12763
12764 * composite.c (composition_compute_stop_pos): Fix previous change.
12765 Reset cmp_it->id to -1 at first.
12766
127672008-09-10 Glenn Morris <rgm@gnu.org>
12768
12769 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12770
127712008-09-09 Chong Yidong <cyd@stupidchicken.com>
12772
12773 * keyboard.c (read_key_sequence): Reapply translation maps when
12774 switching keyboards.
12775
127762008-09-09 Kenichi Handa <handa@m17n.org>
12777
12778 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12779 characters.
12780
12781 * composite.c (FORWARD_CHAR): Fix calculation
12782 of (POSITION).pos_byte.
12783 (composition_compute_stop_pos): Limit the search of composition to
12784 at most 500 characters ahead. If we reach the limit or find a
12785 newline, set cmp_it->ch to -2 and return 0.
12786 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12787
127882008-09-08 Kenichi Handa <handa@m17n.org>
12789
12790 * indent.c (Fvertical_motion): Be sure to set
12791 it_overshoot_expected if it.cmp_it.id is non-negative.
12792
127932008-09-07 Andreas Schwab <schwab@suse.de>
12794
12795 * callproc.c (Fcall_process): Don't hold references to string data
12796 across garbage collection. Move initialisation of new_argv down
12797 to avoid compiler bug.
12798
127992008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12800
12801 * process.c (Fsystem_process_attributes): Doc fix.
12802
128032008-09-07 Chong Yidong <cyd@stupidchicken.com>
12804
12805 * callproc.c (Fcall_process): Canonicalize current directory name.
12806
12807 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12808 iterator advances to the next line if the current line ends in a
12809 continued tab.
12810
128112008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12812
12813 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12814 member to point to cmp_from.
12815
12816 * xdisp.c: Doc fix for references to gidx data member.
12817
128182008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12819
12820 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12821
128222008-09-07 Kenichi Handa <handa@m17n.org>
12823
12824 * composite.c (FORWARD_CHAR): Check STOP after
12825 incrementing (POSITION).pos.
12826
128272008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12828
12829 * process.c (Fsystem_process_attributes): Doc fix.
12830
128312008-09-06 Chong Yidong <cyd@stupidchicken.com>
12832
12833 * keyboard.c (Ftop_level): Doc fix.
12834
128352008-09-06 Eli Zaretskii <eliz@gnu.org>
12836
12837 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12838 minibuffer, don't let lower part of menu invade the echo area.
12839
12840 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12841 "char *q" to access menu text and advance through it. Revert the
12842 change that displayed ">" instead of ASCII character 0x10.
12843
128442008-09-05 Eli Zaretskii <eliz@gnu.org>
12845
12846 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12847 toggle boxes and radio buttons on MS-DOS as well.
12848
128492008-09-05 Kenichi Handa <handa@m17n.org>
12850
12851 * composite.c (autocmp_chars): Check lookback count.
12852 (composition_compute_stop_pos): Set cmp_it->lookback.
12853 (composition_reseat_it): Check lookback count.
12854 (struct position_record): New struct.
12855 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12856 (find_automatic_composition): New function.
12857 (composition_adjust_point): Use find_automatic_composition.
12858
12859 * dispextern.h (struct composition_it): New member lookback.
12860
128612008-09-02 Chong Yidong <cyd@stupidchicken.com>
12862
12863 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12864 if moving by a single line.
12865
128662008-09-02 Andreas Schwab <schwab@suse.de>
12867
12868 * xterm.c (x_delete_display): Fix merge error.
12869
12870 * fileio.c (Fexpand_file_name): Remove unused variables.
12871
128722008-09-02 Eli Zaretskii <eliz@gnu.org>
12873
12874 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12875 storage on all platforms, not just on DOS_NT.
12876
128772008-09-02 Jason Rumney <jasonr@gnu.org>
12878
b8ff72fa
SM
12879 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12880 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12881
128822008-09-01 Chong Yidong <cyd@stupidchicken.com>
12883
12884 * xfaces.c (Finternal_set_alternative_font_family_alist)
12885 (Finternal_set_alternative_font_registry_alist): Properly copy
12886 entire alist structure.
12887
128882008-09-01 Kenichi Handa <handa@m17n.org>
12889
d66c0241 12890 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12891 representative chars of the script is a vector.
d66c0241
JB
12892 (ftfont_list): Handle the case where the representative chars of
12893 the script is a vector.
aac0c6e3
MR
12894
12895 * character.c (syms_of_character): Docstring of
12896 script-representative-chars fixed.
12897
128982008-08-31 Eli Zaretskii <eliz@gnu.org>
12899
12900 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12901 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12902 the menu. Allocate larger buffer for `text', to account for
12903 possible ^C characters.
12904
129052008-08-31 Martin Rudalics <rudalics@gmx.at>
12906
12907 * xdisp.c (prepare_menu_bars): Don't call
12908 Vwindow_size_change_functions with arg Qt.
12909
129102008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12911
12912 * font.h (font_range):
12913 * fileio.c (report_file_error):
46e722a9
SM
12914 * composite.c (composition_update_it): Yet another int/Lisp_Object
12915 mixup (YAILOM).
aac0c6e3
MR
12916
129172008-08-30 Glenn Morris <rgm@gnu.org>
12918
12919 * data.c (Fmake_variable_frame_local): Doc fix.
12920
12921 * frame.c (Fmodify_frame_parameters): Doc fix.
12922
129232008-08-30 Eli Zaretskii <eliz@gnu.org>
12924
12925 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12926 needed by GetTokenInformation.
12927 (w32_system_process_attributes): Check return values of all system
12928 APIs.
12929
12930 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12931 only when the state changes.
12932 (IT_update_begin, IT_update_end): Add termscript trace.
12933
12934 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12935 clipboard is unavailable. Set dst to NULL if it doesn't point to
12936 malloc'ed data.
12937 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12938 passing random values to xfree.
12939
12940 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12941 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12942
129432008-08-29 Jason Rumney <jasonr@gnu.org>
12944
12945 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12946
129472008-08-29 Eli Zaretskii <eliz@gnu.org>
12948
12949 * composite.c (fill_gstring_body): Avoid compiler warnings.
12950
12951 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12952 LGLYPH_SET_CODE to avoid compiler warnings.
12953
2ae37cf0 12954 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12955
12956 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12957
12958 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12959 LGLYPH_SET_CODE.
12960
129612008-08-29 Kenichi Handa <handa@m17n.org>
12962
12963 * fileio.c (report_file_error): Don't downcase the first character
12964 of errstring if it is still unibyte.
12965
129662008-08-29 Kenichi Handa <handa@m17n.org>
12967
12968 These changes are to re-implement the automatic composition so
12969 that it doesn't use text properties.
12970
12971 * Makefile.in (ftfont.o): Depend on composite.h.
12972 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12973
12974 * character.h (Vunicode_category_table): Extern it.
12975
12976 * character.c (Vunicode_category_table): New variable.
12977 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12978
12979 * chartab.c (optimize_sub_char_table): Perform more greedy
12980 optimization.
12981
b8ff72fa
SM
12982 * composite.h (enum composition_method):
12983 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12984 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12985 (Vcomposition_function_table): Extern it.
12986 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12987 (composition_gstring_put_cache, composition_gstring_from_id)
12988 (composition_gstring_p, composition_gstring_width)
12989 (composition_compute_stop_pos, composition_reseat_it)
12990 (composition_update_it, composition_adjust_point): Extern them.
12991 (Fcomposition_get_gstring): EXFUN it.
12992
d66c0241 12993 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12994 (Vcomposition_function_table)
12995 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12996 (gstring_hash_table, gstring_work, gstring_work_headers):
12997 New variables.
aac0c6e3
MR
12998 (gstring_lookup_cache, composition_gstring_put_cache)
12999 (composition_gstring_from_id, composition_gstring_p)
13000 (composition_gstring_width, fill_gstring_header)
13001 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
13002 (composition_reseat_it, composition_update_it)
b8ff72fa 13003 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
13004 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
13005 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 13006 Defsubr composition_get_gstring.
aac0c6e3
MR
13007
13008 * dispextern.h (struct glyph): New union u.cmp. Delete the member
13009 cmp_id.
13010 (struct glyph_string): Delete the member gidx. New members
13011 cmp_id, cmp_from, and cmp_to.
13012 (enum it_method): Delete GET_FROM_COMPOSITION.
13013 (struct composition_it): New struct.
13014 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
13015 Delete c, len, cmp_id, cmp_len in u.comp.
13016
13017 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 13018 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 13019 (enum lglyph_indices): Likewise.
b8ff72fa 13020 (font_range): Adjust extern.
aac0c6e3
MR
13021 (font_fill_lglyph_metrics): Extern it.
13022
13023 * font.c (QCf): New variable.
13024 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13025 (font_prepare_composition): Delete this function.
13026 (font_range): Type and arguments changed.
13027 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
13028 (font_fill_lglyph_metrics): New function.
b8ff72fa 13029 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 13030 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
13031 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
13032 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
13033
13034 * fontset.h (font_for_char): Extern it.
13035
13036 * fontset.c (font_for_char): New function.
13037
13038 * ftfont.c: Include composite.h.
13039 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 13040 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
13041
13042 * indent.c: Include composite.h and dispextern.h.
13043 (check_composition): Delete this function.
13044 (scan_for_column): Handle composition by
13045 composition_compute_stop_pos, composition_reseat_it, and
13046 composition_update_it.
13047 (compute_motion): Likewise.
13048 (Fvertical_motion): Fix checking of composition.
13049
13050 * keyboard.c (adjust_point_for_property): Check composition by
13051 composition_adjust_point.
13052
b8ff72fa 13053 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
13054 struct glyph_string.
13055
b8ff72fa
SM
13056 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
13057 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
13058 struct glyph.
13059 (produce_composite_glyph): Likewise.
13060
b8ff72fa
SM
13061 * w32term.c (x_draw_composite_glyph_string_foreground):
13062 Adjust for the change of struct glyph_string.
aac0c6e3
MR
13063 (x_draw_glyph_string): Likewise.
13064
13065 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
13066 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13067
13068 * xdisp.c: Include font.h.
13069 (it_props): Delete the entry for Qauto_composed.
13070 (init_iterator): Initialize it->cmp_it.id to -1.
13071 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 13072 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
13073 (handle_auto_composed_prop): Delete it.
13074 (handle_composition_prop): Handle only static composition.
13075 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
13076 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 13077 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
13078 (pop_it): Likewise.
13079 (get_next_element): Delete next_element_from_composition.
13080 (CHAR_COMPOSED_P): New macro.
13081 (get_next_display_element): For automatic composition, get a face
13082 from the font in the glyph-string.
13083 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 13084 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
13085 (next_element_from_string): Check if the character at the current
13086 position is composed by CHAR_COMPOSED_P.
13087 (next_element_from_buffer): Likewise.
d66c0241
JB
13088 (next_element_from_composition): Adjust for the change of struct it.
13089 Update it->cmp_it.
b8ff72fa
SM
13090 (dump_glyph): Adjust for the change of struct glyph.
13091 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
13092 it and struct glyph. Don't handle automatic composition here.
13093 (fill_gstring_glyph_string): New function.
13094 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 13095 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
13096 (BUILD_GSTRING_GLYPH_STRING): New macro.
13097 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
13098 automatic composition.
b8ff72fa 13099 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 13100 struct glyph.
b8ff72fa 13101 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 13102
b8ff72fa 13103 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
13104 the change of struct glyph_string.
13105 (x_draw_glyph_string): Likewise.
13106
131072008-08-29 Glenn Morris <rgm@gnu.org>
13108
13109 * buffer.c (word-wrap): Doc fix.
13110 * xdisp.c (truncate-partial-width-windows): Doc fix.
13111 Increase default to 50.
13112
131132008-08-29 Chong Yidong <cyd@stupidchicken.com>
13114
13115 * xdisp.c (update_tool_bar_unwind): New function.
13116 (update_tool_bar): Temporarily set selected frame before building
13117 tool-bar items.
13118
131192008-08-28 Michael Albinus <michael.albinus@gmx.de>
13120
13121 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
13122 snprintf, respectively.
13123 (xd_append_arg): Convert strings with Fstring_make_unibyte.
13124
131252008-08-28 Chong Yidong <cyd@stupidchicken.com>
13126
13127 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
13128 LDFLAGS to GNUstep CC invocation.
13129
131302008-08-27 Chong Yidong <cyd@stupidchicken.com>
13131
13132 * indent.c (Fvertical_motion): Revert last change. Handle the
13133 general case where we are moving forward, and PT spans multiple
13134 screen lines.
13135
13136 * eval.c (find_handler_clause): Temporarily increase
13137 max-lisp-eval-depth while printing the backtrace buffer, to
13138 guarantee that help-mode code can run.
13139
131402008-08-27 Eli Zaretskii <eliz@gnu.org>
13141
13142 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
13143 colors under -rv.
13144 (IT_set_frame_parameters): Don't swap foreground and background
13145 colors if `(reverse . t)' is present in the frame properties.
13146 (internal_terminal_init): Call init_frame_faces only for the
13147 initial frame.
13148
131492008-08-27 Andreas Schwab <schwab@suse.de>
13150
13151 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
13152
131532008-08-27 Andreas Schwab <schwab@suse.de>
13154
13155 * search.c (search_buffer): Set char_base to zero only at the end.
13156
131572008-08-27 Kenichi Handa <handa@m17n.org>
13158
b8ff72fa 13159 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
13160
131612008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
13162
13163 * xterm.c (x_term_init): Temporarily hide the partially
13164 initialized terminal while calling vendor-specific-keysyms.
13165
131662008-08-26 Eli Zaretskii <eliz@gnu.org>
13167
13168 * msdos.c (internal_terminal_init): Most initializations done only
13169 once, especially initial_screen_colors[] and termscript open.
13170
131712008-08-26 Chong Yidong <cyd@stupidchicken.com>
13172
13173 * eval.c (Fcondition_case): Doc fix.
13174
13175 * widgetprv.h (EmacsFramePart): Change font member to the new font
13176 struct.
13177
13178 * widget.c: Include character.h and font.h for XSETFONT.
13179 (setup_frame_gcs): Compute X font id from font struct, just once.
13180
131812008-08-26 Eli Zaretskii <eliz@gnu.org>
13182
13183 * term.c (get_named_tty): Fix last change.
13184
131852008-08-26 Chong Yidong <cyd@stupidchicken.com>
13186
13187 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 13188 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
13189
131902008-08-25 Eli Zaretskii <eliz@gnu.org>
13191
13192 * frame.c (do_switch_frame): Mark previously displayed frame as
13193 obscured for FRAME_MSDOS_P frames as well.
13194
131952008-08-24 Eli Zaretskii <eliz@gnu.org>
13196
13197 * frame.c (make_terminal_frame): Initialize f->terminal,
13198 f->terminal->reference_count, and scroll bars on MS-DOS as well.
13199 Set the top frame to newly created frame.
13200 (Fmake_terminal_frame): Reuse the_only_display_info.
13201
13202 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13203 estimating available memory.
13204
b97439ce 132052008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
13206
13207 * nsterm.m (ns_draw_window_cursor): Don't call
13208 NSDisableScreenUpdates and NSEnableScreenUpdates on
13209 non-NS_IMPL_COCOA systems.
13210
132112008-08-23 Andreas Schwab <schwab@suse.de>
13212
13213 * process.c (procfs_system_process_attributes): Fix use of
13214 uninitialized variables.
13215
132162008-08-23 Eli Zaretskii <eliz@gnu.org>
13217
13218 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13219
13220 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13221 calling tty-set-up-initial-frame-faces.
13222
b8ff72fa
SM
13223 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13224 Allow MSDOS frames along with X frames.
aac0c6e3
MR
13225
13226 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13227 addition to output_termcap.
13228
13229 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13230
13231 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13232 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13233 highlight.
13234
13235 * process.c [!subprocesses]: Define QCname.
13236 (syms_of_process): Intern and staticpro it.
13237
13238 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
13239 Adjust for changes in encoding/decoding routines.
13240 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
13241 encode_coding and decode_coding.
13242
b8ff72fa 13243 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
13244
13245 * dosfns.c: Include frame.h before termhooks.h.
13246 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13247 variable termscript.
13248
13249 * s/msdos.h (USER_FULL_NAME): Define.
13250 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13251
13252 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13253 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13254 pw->pw_gecos.
13255
13256 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13257 SELECTED_FRAME as additional (1st) argument.
13258 (tty_read_avail_input): Handle output_msdos_raw in
13259 addition to output_termcap.
13260
13261 * msdos.c: Include frame.h before termhooks.h.
13262 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13263 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13264 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13265 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13266 (IT_set_terminal_modes, IT_reset_terminal_modes)
13267 (IT_set_frame_parameters): Use tty->termscript instead of a global
13268 variable termscript.
13269 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13270 global variable terminal_coding. Don't refer to
13271 Vnonascii_translation_table.
13272 (internal_terminal_init): Set Vwindow_system in current_kboard.
13273 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13274 Announce date and time of session start, if termscript is open.
13275 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
13276 term.c:init_tty). Open termscript only of not already open.
13277 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
13278 here instead of dos_ttraw. Don't initialize display if this is an
13279 initial tty. Don't set FRAME_FONT.
13280 (Vwindow_system_version): Bump to 23.
13281 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13282 is available, set up mouse_position_hook.
13283 (dos_ttraw, IT_set_terminal_modes): If called with initial
13284 terminal, do nothing.
13285 (IT_set_frame_parameters): Handle the Qtty_type frame
13286 parameter by calling internal_terminal_init.
13287 (dos_set_window_size, show_mouse_face)
13288 (clear_mouse_face, IT_note_mode_line_highlight)
13289 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13290 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13291 (initialize_msdos_display): New function.
13292 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13293 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13294 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13295 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 13296 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
13297 (request_sigio, unrequest_sigio): Don't define, now defined on
13298 sysdep.c.
13299 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13300
13301 * term.c [MSDOS]: Include msdos.h.
13302 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13303 conditional to DOS_NT. Allow only one call to this function in a
13304 session. Don't allocate a new struct tty_display_info; instead,
13305 reuse the_only_display_info. Call get_tty_size to get screen
13306 dimensions. Call init_baud_rate to set bad_rate.
13307 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13308 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 13309 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
13310 (get_tty_terminal, get_named_tty, Ftty_type)
13311 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13312 output_termcap.
b8ff72fa
SM
13313 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13314 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 13315 only when subprocesses are supported.
aac0c6e3
MR
13316
13317 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13318 f->output_data.x.
13319 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13320 terminal devices.
13321
5582fbc7 13322 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
13323 x_output.
13324 (FRAME_FONT): Use output_data.tty.
13325 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
13326 (struct x_display_info): Rename from display_info. Update all users in
13327 msdos.c.
aac0c6e3 13328 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 13329 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
13330 (dos_ttraw): Update prototype.
13331
13332 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13333 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13334
133352008-08-23 Jason Rumney <jasonr@gnu.org>
13336
13337 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13338 (fn_TIFFSetDirectory): New library function used.
13339 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13340 (tiff_load): Use :index to select among multiple images. Set count
13341 property when multiple images exist.
13342 (gif_format): Use :index, not :image.
13343
133442008-08-23 Chong Yidong <cyd@stupidchicken.com>
13345
13346 * xdisp.c (try_scrolling): Check INT_MAX instead of
13347 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13348 to obtain INT_MAX.
13349
133502008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13351
13352 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13353
133542008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13355
13356 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13357 GNUstep library location.
13358
133592008-08-21 Chong Yidong <cyd@stupidchicken.com>
13360
13361 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13362 before using it.
13363
13364 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13365
133662008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13367
13368 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13369 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13370 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13371 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13372 (EmacsApp-cursor_blink_handler): Remove declaration.
13373 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13374 match 01 Feb 2008 changes in xterm.c.
13375 (ns_read_socket): Add cast to avoid warning.
13376 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13377 GNUstep.
13378
133792008-08-20 Chong Yidong <cyd@stupidchicken.com>
13380
13381 * xselect.c (x_get_foreign_selection): Return nil if desired
13382 selection could not be obtained, instead of signalling an error.
13383
133842008-08-20 David Reitter <david.reitter@gmail.com>
13385
13386 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13387 * nsterm.m: Remove ns-specific code for cursor blinking.
13388 (ns_draw_window_cursor): Clear cursor properly rather than
13389 redrawing the area. Respect width of bar cursors.
13390 These changes enable the use of generic blink-cursor-mode and
13391 generic cursor types in NS and support smooth cursor movements (do
13392 not blink off after command).
13393 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13394 Nextstep, too.
13395
133962008-08-19 Kenichi Handa <handa@m17n.org>
13397
13398 * font.c (Vfont_log_deferred): New variable.
13399 (font_add_log): Check Vfont_log_deferred.
13400 (font_deferred_log): New function.
13401
13402 * font.h (font_deferred_log): Extern it.
13403
13404 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13405 for sorting.
13406 (face_for_char): Use deferred log.
13407
134082008-08-18 Kenichi Handa <handa@m17n.org>
13409
13410 * fontset.c (face_for_char): Add font log.
13411
13412 * font.c (font_add_log): Add the font properties :script, :lang,
13413 and :otf in the log.
13414
134152008-08-17 Chong Yidong <cyd@stupidchicken.com>
13416
13417 * xdisp.c: Remove dead code.
13418 (handle_invisible_prop, next_overlay_string): Defer call to
13419 setup_for_ellipsis.
13420 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13421
134222008-08-15 Chong Yidong <cyd@stupidchicken.com>
13423
13424 * xfaces.c (lookup_derived_face): Properly handle possible zero
13425 return value of get_lface_attributes.
13426 (merge_faces): Don't tell lookup_derived_face to signal an error
13427 if face is not found.
13428
13429 * dired.c (Fdirectory_files): Doc fix.
13430
13431 * process.c (make_process): Initialize kill_without_query struct
13432 member.
13433
134342008-08-15 Eli Zaretskii <eliz@gnu.org>
13435
13436 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13437 Alternative calculation of totphys for Visual Studio 6.
13438
13439 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13440
13441 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13442 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13443 All users changed.
13444 (stat): Only root directory passed to GetDriveType. Allow RAM
13445 disk as well as local fixed disk when w32-get-true-file-attributes
13446 is set to `local'.
13447 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13448 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13449 (w32_cached_id, w32_add_to_cache): New functions.
13450 (get_name_and_id): Look account names in the cache before calling
13451 lookup_account_sid.
13452 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13453 New initialization flags.
13454 (globals_of_w32): Initialize them to zero.
13455 (w32_system_process_attributes): Use w32_cached_id and
13456 w32_add_to_cache.
13457
134582008-08-14 Lawrence Mitchell <wence@gmx.li>
13459
13460 * lread.c (Fread_char, Fread_char_exclusive): If no character
13461 event is read before timeout is reached, return nil, rather than
13462 converting to a number.
13463
134642008-08-14 Chong Yidong <cyd@stupidchicken.com>
13465
13466 * fns.c (use_dialog_box): Doc fix.
13467
13468 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13469 on OS X.
13470
134712008-08-13 Chong Yidong <cyd@stupidchicken.com>
13472
13473 * frame.c (Qns_parse_geometry): New var.
13474 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13475
134762008-08-11 Chong Yidong <cyd@stupidchicken.com>
13477
13478 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13479 space character in calculating tabs.
13480
134812008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13482
13483 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13484
134852008-08-10 Glenn Morris <rgm@gnu.org>
13486
13487 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13488 silence gcc "limited range of data type" warnings in some
13489 make_fixnum_or_float calls.
13490
134912008-08-09 Eli Zaretskii <eliz@gnu.org>
13492
13493 * w32.c (w32_system_process_attributes): If the process does not
13494 exist, return nil.
13495
13496 * w32.c: Include thelp32.h, psapi.h and coding.h.
13497 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13498 declarations.
13499 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13500 (Process32Next_Proc): New typedefs.
13501 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13502 (g_b_init_process32_next, g_b_init_open_thread_token)
13503 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13504 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13505 (g_b_init_get_process_working_set_size)
13506 (g_b_init_global_memory_status_ex): New static variables.
13507 (globals_of_w32): Initialize them.
13508 (create_toolhelp32_snapshot, process32_first, process32_next)
13509 (open_thread_token, impersonate_self, revert_to_self)
13510 (get_process_memory_info, get_process_working_set_size)
13511 (global_memory_status, global_memory_status_ex): New wrapper
13512 functions.
13513 (w32_list_system_processes, w32_system_process_attributes)
13514 (enable_privilege, restore_privilege, ltime, process_times):
13515 New functions.
13516 (convert_time_raw): New function.
13517 (convert_time): Remove conversion of FILETIME into time in 100
13518 nsec units, call convert_time_raw instead.
13519
13520 * process.h (w32_list_system_processes, w32_system_process_attributes):
13521 Add prototypes.
13522 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13523 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13524 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13525 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13526
13527 * process.c (Fsystem_process_attributes): Doc fix.
13528
135292008-08-08 Chong Yidong <cyd@stupidchicken.com>
13530
13531 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13532 a continued multi-char glyph; if so, advance to the actual glyph.
13533
135342008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13535
13536 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13537
13538 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13539 (.m.o): Use it.
13540 * config.in: Regenerate.
13541
135422008-08-07 Chong Yidong <cyd@stupidchicken.com>
13543
13544 * xdisp.c (redisplay_window): Revert last change.
13545 (try_window): Check bottom scroll margin too.
13546
135472008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13548
13549 * config.in: Regenerate.
13550
13551 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13552 -list-load-path-shadows'.
13553 (nsgui.h): Reduce number of things depending on it.
13554
135552008-08-06 Chong Yidong <cyd@stupidchicken.com>
13556
13557 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13558 instead of window-end which does the wrong thing at eob.
13559 (try_cursor_movement): Minor optimization.
13560 (redisplay_window): If scroll margin is defined, don't assume
13561 window doesn't need scrolling.
13562
135632008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13564
13565 * config.in: Regenerate.
13566
13567 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13568 (mostlyclean): Don't delete *.d under NS.
13569
13570 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13571
135722008-08-06 Kenichi Handa <handa@m17n.org>
13573
13574 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13575
135762008-08-06 Andreas Schwab <schwab@suse.de>
13577
13578 * config.in: Regenerate.
13579
135802008-08-05 Chong Yidong <cyd@stupidchicken.com>
13581
13582 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13583 forcing a window start.
13584
13585 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13586 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13587
135882008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13589
13590 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13591 argument.
13592
135932008-08-05 Juanma Barranquero <lekktu@gmail.com>
13594
13595 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13596 <scroll-down-aggressively, before-change-functions>:
13597 <after-change-functions>: Reflow docstrings.
13598
135992008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 13600 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
13601
13602 Dock menu customization, based on a patch by Ken Raeburn, plus some
13603 other fixes.
13604 * nsmenu.m (dockMenu): New variable.
13605 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13606
13607 * nsterm.h (dockMenu): Declare.
13608
13609 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13610 (ns_term_init): Initialize dockMenu.
13611 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13612 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13613 left.
13614
13615 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13616
136172008-08-04 Chong Yidong <cyd@stupidchicken.com>
13618
13619 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13620
13621 * config.in: Regenerate.
13622
136232008-08-04 Seiji Zenitani <zenitani@mac.com>
13624
13625 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13626
136272008-08-04 Chong Yidong <cyd@stupidchicken.com>
13628
13629 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13630
136312008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13632
13633 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13634
13635 * keyboard.h: Comment an #endif.
13636
13637 * lisp.h (have_menus_p): Adjust comment.
13638
13639 * menu.c (find_and_return_menu_selection): Fix comparison with
13640 client_data.
13641
13642 * nsmenu.m (popup_activated_flag): New variable.
13643 (popup_activated): New function.
13644 (menu-or-popup-active-p): New exported lisp definition.
13645 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13646 when popup done.
13647 (ns_popup_dialog): Set popup_activated_flag.
13648
13649 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13650 version for GNUstep (handled by conditional typedef in nsterm.m).
13651 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13652 in rgb.txt).
13653
13654 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13655
13656 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13657
13658 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13659
13660 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13661 shortcircuit if popup_activated like GTK and X toolkit.
13662
13663 * m/inter386.h: Change DARWIN to DARWIN_OS.
13664
13665 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13666 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13667 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13668 comment on NO_SOCK_SIGIO.
13669
136702008-08-03 Chong Yidong <cyd@stupidchicken.com>
13671
13672 * nsterm.m (windowDidResize): Remove stopModal call.
13673
136742008-08-03 Andreas Schwab <schwab@suse.de>
13675
13676 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13677 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13678
136792008-08-02 Chong Yidong <cyd@stupidchicken.com>
13680
13681 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13682 Don't use uninitialized pointer variable when using getrlimit.
13683
136842008-08-02 Jason Rumney <jasonr@gnu.org>
13685
13686 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13687
136882008-08-02 Eli Zaretskii <eliz@gnu.org>
13689
13690 * alloc.c (NSTATICS): Bump to 0x640.
13691
13692 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13693
13694 * lisp.h: Add prototype for directory_files_internal.
13695
13696 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13697 New functions.
13698 (syms_of_process): Defsubr them. Add initializations for various
13699 Q* symbols used in procfs_system_process_attributes.
13700 (procfs_list_system_processes, procfs_system_process_attributes)
13701 [HAVE_PROCFS]: New functions.
13702 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13703 (procfs_get_total_memory): New functions.
13704
137052008-08-01 Juanma Barranquero <lekktu@gmail.com>
13706
13707 * xfaces.c (Fx_load_color_file): Fix previous change;
13708 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13709
137102008-08-01 Michael Albinus <michael.albinus@gmx.de>
13711
13712 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13713
137142008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13715
13716 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13717
137182008-08-01 Chong Yidong <cyd@stupidchicken.com>
13719
13720 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13721
13722 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13723 define NSApplicationDelegateReplySuccess.
13724 (EmacsView -converstationIdentifier): Use long instead of
13725 NSInteger for GNUstep, since it doesn't have NSInteger.
13726
13727 * xmenu.c: Revert last change.
13728
13729 * keyboard.h: Fix last change.
13730
137312008-08-01 Juanma Barranquero <lekktu@gmail.com>
13732
13733 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13734 on Windows.
13735
137362008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13737
13738 Warning clearing and clean-up in NS port.
13739 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13740 Add prototypes.
13741 * nsgui.h (FACE_DEFAULT): Remove, unused.
13742 (XGCValues): Change colors to unsigned long.
13743 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13744 nsterm.m.
13745 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13746 (ns_list_fonts): Remove, unused.
13747 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13748 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13749 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13750 (nsfont_draw): Compare face colors to 0, not nil.
13751 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13752 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13753 (-addSubmenuWithTitle:): Use NSMenuItem class.
13754 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13755 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13756 (ns_clip_to_row): Make gc arg a BOOL.
13757 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13758 ns_clip_to_row() call.
13759 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13760 used). Cast FRAME_FONT assignments.
13761 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13762 (ns_string_to_lispmod): Change arg to const char.
13763 (ns_term_init): Use NSMenuItem class.
13764 (EmacsApp -openFile:): Move to different section of file.
13765 (EmacsApp -application:openFiles:): Don't return a value, call
13766 -replyToOpenOrPrint:.
13767 (EmacsView -keyDown:): Fix up cast.
13768 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13769 (EmacsView -menuDown:): Cast tag in call to
13770 find_and_call_menu_selection().
13771 (ns_list_fonts): Remove, unused.
13772 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13773 (ns_fontname_to_xlfd): Make static.
13774 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13775 Remove prototypes (now in keyboard.h).
13776 (next_menubar_widget_id): Remove, unused.
13777 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13778 Remove prototypes (now in keyboard.h).
13779 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13780
137812008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13782
13783 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13784 (floatfns.o): Depend on syssignal.h.
13785 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13786
13787 * systty.h: Fix previous change that removed BSD_TERMIOS.
13788 Add comments to #ifdefs.
13789
137902008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13791
13792 * w32fns.c (w32-load-color-file): Remove.
13793 (x-open-connection): Use renamed Fx_load_color_file.
13794 * xfaces.c (x-load-color-file): Add.
13795 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13796 Emacs.clr.
13797 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13798
137992008-07-31 Michael Albinus <michael.albinus@gmx.de>
13800
13801 * dbusbind.c (Fdbus_call_method_asynchronously)
13802 (Fdbus_method_error_internal): New defuns.
13803 (xd_read_message): Handle also reply messages.
13804 (Vdbus_registered_functions_table): Extend docstring.
13805
138062008-07-31 Juanma Barranquero <lekktu@gmail.com>
13807
13808 * keyboard.c (gobble_input): Fix previous change.
13809
138102008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13811
13812 * bitmaps/README:
13813 * xfns.c:
13814 * termcap.c:
13815 * term.c:
13816 * syswait.h:
13817 * systty.h:
13818 * systime.h:
13819 * syssignal.h:
13820 * sysdep.c:
13821 * process.h:
13822 * process.c:
13823 * print.c:
13824 * ndir.h:
13825 * lread.c:
13826 * keyboard.c:
13827 * getpagesize.h:
13828 * floatfns.c:
13829 * fileio.c:
13830 * emacs.c:
13831 * doc.c:
13832 * dispnew.c:
13833 * dired.c:
13834 * data.c:
13835 * callproc.c:
13836 * buffer.c:
13837 * README:
13838 * Makefile.in:
13839 * s/template.h:
13840 * s/msdos.h:
13841 * m/vax.h: Remove VMS support.
13842 * s/vms.h:
13843 * vlimit.h:
13844 * uaf.h:
13845 * temacs.opt:
13846 * param.h:
13847 * ioctl.h: Remove file.
13848
138492008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13850
13851 * s/ms-w32.h (MULTI_KBOARD): Remove.
13852 * xterm.c:
13853 * xselect.c:
13854 * xfns.c:
13855 * window.c:
13856 * w32term.c:
13857 * w32fns.c:
13858 * terminal.c:
13859 * termhooks.h:
13860 * term.c:
13861 * sysdep.c:
13862 * keyboard.h:
13863 * keyboard.c:
13864 * frame.h:
13865 * frame.c:
13866 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13867 * config.in: Regenerate.
13868
138692008-07-30 Jason Rumney <jasonr@gnu.org>
13870
13871 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13872
13873 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13874 (w32font_open_internal): Get unicode version of textmetrics.
13875 Don't enable or disable glyph indices here.
13876 (w32font_open): Disable use of glyph indices.
13877
13878 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13879
138802008-07-30 Chong Yidong <cyd@stupidchicken.com>
13881
13882 * minibuf.c (Vread_buffer_function): Doc fix.
13883
138842008-07-30 John Paul Wallington <jpw@pobox.com>
13885
13886 * minibuf.c (read_buffer_completion_ignore_case): New var.
13887 (Fread_buffer): Use it.
13888
138892008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13890
13891 * systty.h (sensemode): Remove empty #if. Remove reference to
13892 BSD_TERMIOS, unused.
13893
13894 * sysdep.c: Remove reference to DGUX.
13895 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13896
13897 * config.in: Regenerate.
13898
138992008-07-30 Jason Rumney <jasonr@gnu.org>
13900
13901 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13902
139032008-07-29 Jason Rumney <jasonr@gnu.org>
13904
13905 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13906 is populated.
13907 (uniscribe_encode_char): Always use uniscribe.
13908 Avoid using context if cache is populated.
13909
139102008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13911
13912 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13913 open menu.
13914
13915 * gtkutil.c (menu_nav_ended): Remove.
13916 (create_menus): Remove signal connect for menu_nav_ended.
13917
139182008-07-28 Chong Yidong <cyd@stupidchicken.com>
13919
13920 * xdisp.c (redisplay_window): Check return value of
13921 compute_window_start_on_continuation_line before forcing a window
13922 start.
13923
139242008-07-28 Jason Rumney <jasonr@gnu.org>
13925
13926 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13927
13928 * w32term.c (w32_enable_unicode_output, cleartype_active):
13929 Remove obsolete display options.
13930 (x_draw_glyph_string_background): Don't use old cleartype_active
13931 workaround.
13932 (w32_initialize): Remove cleartype_active initialization.
13933 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13934
139352008-07-28 Andreas Schwab <schwab@suse.de>
13936
13937 * lisp.h (init_weak_hash_tables, syms_of_font)
13938 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13939 (remove_hash_entry): Don't declare.
13940 * eval.c (maybe_call_debugger): Make static and move before use.
13941 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13942 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13943 * xterm.h (x_set_frame_alpha): Declare.
13944
139452008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13946
13947 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13948 (create_menus): Connect selection-done to menu_nav_ended.
13949
139502008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13951
13952 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13953 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13954 parameter with read of 'alpha' one.
13955 (Qns_frame_parameter): Remove.
5582fbc7 13956 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13957 (next-selection-coding-system, Vselection_coding_system)
13958 (Vnext_selection_coding_system): Drop.
13959
139602008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13961
13962 * nsfns.m (do-applescript, do_applescript): Rename to
13963 ns-do-applescript, ns_do_applescript, and move within file.
13964
139652008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13966
13967 Remove support for Mac Carbon.
13968 * mactoolbox.c:
13969 * macterm.h:
13970 * macterm.c:
13971 * macselect.c:
13972 * macmenu.c:
13973 * macgui.h:
13974 * macfns.c:
13975 * mac.c: Remove file.
13976 * s/darwin.h:
13977 * m/intel386.h:
13978 * xfaces.c:
13979 * xdisp.c:
13980 * window.c:
13981 * tparam.c:
13982 * termhooks.h:
13983 * termcap.c:
13984 * term.c:
13985 * syssignal.h:
13986 * sysselect.h:
13987 * sysdep.c:
13988 * process.c:
13989 * lread.c:
13990 * lisp.h:
13991 * keyboard.c:
13992 * image.c:
13993 * fringe.c:
13994 * frame.h:
13995 * frame.c:
13996 * fontset.c:
13997 * font.h:
13998 * font.c:
13999 * fns.c:
14000 * fileio.c:
14001 * emacs.c:
14002 * dispnew.c:
14003 * dispextern.h:
14004 * config.in:
14005 * atimer.c:
2ae37cf0 14006 * Makefile.in: Remove code for Carbon.
aac0c6e3 14007
f0131492 140082008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
14009
14010 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
14011
140122008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14013
14014 * macterm.h (kCGBitmapByteOrder32Host): New define for
14015 non-universal SDKs.
14016
14017 * image.c (mac_create_cg_image_from_image, image_load_image_io)
14018 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14019
14020 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
14021 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14022
140232008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
14024
14025 * w32inevt.c: Include dispextern.h.
14026
140272008-07-26 Andreas Schwab <schwab@suse.de>
14028
14029 * print.c (print_object): Fix off-by-one in last change.
14030
140312008-07-25 Juanma Barranquero <lekktu@gmail.com>
14032
14033 * term.c (syms_of_term): Don't initialize default_orig_pair,
14034 default_set_foreground and default_set_background on Windows.
14035
140362008-07-25 Jason Rumney <jasonr@gnu.org>
14037
14038 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
14039 ScriptItemize. Clean up return value checking. Remove unused
14040 variables.
14041 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
14042 shaping engine.
14043
14044 * w32font.c (w32font_has_char): Handle the case where we can't
14045 determine the script for a character.
14046
140472008-07-25 Chong Yidong <cyd@stupidchicken.com>
14048
14049 * term.c (syms_of_term): Initialize default_orig_pair,
14050 default_set_foreground, and default_set_background.
14051
14052 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14053 clash (bug#86).
14054 (getloadavg): Callers changed.
14055
14056 * image.c (svg_load_image): Fix last change.
14057 (svg_load_image): Use rsvg_handle_get_dimensions to check that
14058 image size is valid. Use g_object_unref instead of deprecated
14059 rsvg_handle_free to free rsvg handle.
14060 (x_from_xcolors): Don't initialize pixmap (silence compiler).
14061
140622008-07-25 Jason Rumney <jasonr@gnu.org>
14063
14064 * w32font.c (w32font_encode_char): Encode characters outside BMP as
14065 surrogates before looking up glyph index.
14066 (w32font_text_extents): Encode as surrogates if falling back to
14067 functions that need UTF-16 wide chars.
14068
14069 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
14070 BMP as surrogates before looking up glyph index.
14071
140722008-07-25 Chong Yidong <cyd@stupidchicken.com>
14073
14074 * image.c (svg_load_image): Check for failure in return value of
14075 rsvg_handle_get_pixbuf. Free rsvg handle when done.
14076
140772008-07-25 Jason Rumney <jasonr@gnu.org>
14078
14079 * w32font.c (Fx_select_font): Reverse sense of second arg.
14080
140812008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
14082
14083 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
14084 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
14085
14086 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
14087 (PURESIZE): Use it.
14088
140892008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
14090
14091 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
14092 * m/alpha.h (TEXT_END):
14093 * m/ibmrs6000.h (TEXT_END):
14094 * m/macppc.h (TEXT_END):
14095 * s/darwin.h (TEXT_END):
14096 * s/msdos.h (TEXT_END): Remove, unused.
14097 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
14098 * s/cygwin.h: Remove comment.
14099
14100 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
14101 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
14102 * m/intel386.h (DOT_GLOBAL_START):
14103 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
14104 (USG): Remove, file not used on USG platforms.
14105
14106 * Makefile.in (HAVE_X11): Remove empty #else.
14107
141082008-07-24 Andreas Schwab <schwab@suse.de>
14109
14110 * fileio.c (Finsert_file_contents): Properly adjust undo list
14111 after format conversion.
14112
141132008-07-24 Jan Djärv <jan.h.d@swipnet.se>
14114
14115 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
14116 (menu_nav_ended): Remove.
14117 (create_menus): Remove signal connect for menu_nav_ended.
14118 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
14119 create_menus.
14120 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
14121
141222008-07-23 Jason Rumney <jasonr@gnu.org>
14123
14124 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
14125 with opened font.
14126 (w32font_open): Set font type to gdi.
14127
14128 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
14129
141302008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
14131
14132 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
14133 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
14134 defines it.
14135 * unexec.c (ADDR_CORRECT): Define unconditionally.
14136
14137 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
14138
14139 * unexec.c: Remove code depending on !COFF and USG, the file is
14140 not used for such systems.
14141
14142 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
14143 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
14144 (LD_SWITCH_SYSTEM_1): Remove, update users.
14145
14146 * s/darwin.h (DATA_END):
14147 * m/intel386.h (DATA_END):
14148 * m/ibmrs6000.h (DATA_END):
14149 * m/alpha.h (DATA_END): Remove, unused.
14150
14151 * config.in: Regenerate.
14152 * s/ms-w32.h (subprocesses): Define unconditionally.
14153 * s/template.h (subprocesses): Update comment.
14154 * s/vms.h (subprocesses):
14155 * s/usg5-4.h (subprocesses):
14156 * s/hpux10-20.h (subprocesses):
14157 * s/gnu-linux.h (subprocesses):
14158 * s/cygwin.h (subprocesses):
14159 * s/bsd-common.h (subprocesses):
14160 * s/aix4-2.h (subprocesses):
14161 * s/darwin.h (subprocesses): Do not define, defined by default now.
14162
14163 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
14164 Remove all references.
14165 (temacs): Add GNUstep specific ld flags.
14166
14167 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
14168 similarly to what X does.
14169
141702008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14171
14172 * nsfns.m (x-list-fonts): Remove.
14173 (syms_of_nsfns): Drop the x-list-fonts declaration.
14174 * nsterm.m: Get rid of remaining "//" comments.
14175
141762008-07-22 Chong Yidong <cyd@stupidchicken.com>
14177
14178 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
14179
14180 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
14181 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
14182 (Fns_own_selection_internal, Fx_disown_selection_internal)
14183 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
14184
14185 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
14186 ... */' style of docstrings. Doc fixes.
14187
141882008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14189
14190 * terminfo.c (UP, BC, PC): Undo previous change.
14191
14192 * nsfns.m: Rename ns prefixed functions/variables to the
14193 corresponding x versions. Update references.
14194
141952008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
14196
14197 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14198
141992008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14200
14201 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14202 Remove forwarding functions.
14203 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14204 non-static.
14205 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14206 non-static.
14207 (ns_frame_parm_handlers): Use the new names.
14208 (syms_of_nsfns): Move to the end of file.
14209
14210 * nsterm.m (syms_of_nsterm): Move to the end of file.
14211
14212 * dispnew.c (init_display): Remove code for X10.
14213
142142008-07-22 Jason Rumney <jasonr@gnu.org>
14215
14216 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14217 bare drive.
14218
142192008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14220
14221 * nsterm.m (syms_of_nsterm): Remove debugging println.
14222
142232008-07-22 David Reitter <david.reitter@gmail.com>
14224
14225 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14226 Carbon implementation of the same functionality: execute arbitrary
14227 AppleScript code.
14228
142292008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14230
14231 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14232 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14233 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14234 (Fx_display_mm_height, Fx_display_mm_width)
14235 (Fx_display_backing_store, Fx_display_visual_class)
14236 (Fx_display_save_under, Fx_open_connection)
14237 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14238 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14239 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14240 (Fx_display_pixel_width, Fx_display_pixel_height)
14241 (Fx_display_usable_bounds, Fx_display_planes)
14242 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14243 ... */' style of docstrings.
14244
142452008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14246
14247 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14248 on this platform.
14249 (mips):
14250 * m/iris4d.h (mips): Do not define.
14251 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14252
14253 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14254
14255 * image.c:
14256 * nsfns.m:
14257 * nsselect.m:
14258 * nsterm.h:
14259 * nsterm.m: Rename ns prefixed functions/variables to the
14260 corresponding x versions. Update references.
14261
14262 * m/ibms390x.h (NO_REMAP): Do not undefine.
14263
14264 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14265
142662008-07-21 Chong Yidong <cyd@stupidchicken.com>
14267
14268 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14269 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14270 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14271 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14272 (Fns_display_mm_height, Fns_display_mm_width)
14273 (Fns_display_backing_store, Fns_display_visual_class)
14274 (Fns_display_save_under, Fns_open_connection)
14275 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14276 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14277 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14278 (Fns_display_pixel_width, Fns_display_pixel_height)
14279 (Fns_display_usable_bounds, Fx_display_planes)
14280 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14281
142822008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14283
14284 * print.c (print_object): Check print_depth before searching for
14285 circularities.
14286
142872008-07-21 Michael Albinus <michael.albinus@gmx.de>
14288
14289 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14290 only sprintf.
14291
142922008-07-21 Kenichi Handa <handa@m17n.org>
14293
14294 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14295
142962008-07-20 Andreas Schwab <schwab@suse.de>
14297
14298 * syntax.c (find_start_pos, find_start_value)
14299 (find_start_value_byte, find_start_begv, find_defun_start)
14300 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14301
143022008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14303
14304 * s/sol2-3.h: Insert contents of s/sol2.h.
14305 (LD_SWITCH_SYSTEM): Remove redundant definition.
14306 * s/sol2.h: Remove, unused.
14307
143082008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14309
14310 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14311
143122008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14313
14314 * Makefile.in (ns_appdir): Fix typo in find command.
14315
143162008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14317
14318 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14319
14320 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14321 added not supported anymore.
14322
14323 * s/usg5-4-2.h (LIBS_SYSTEM):
14324 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14325
14326 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14327 * s/lynxos.h (GETPGRP_NO_ARG):
14328 * s/hpux10-20.h (NO_SIOCTL_H):
14329 * s/gnu.h (GETPGRP_NO_ARG):
14330 * s/gnu-linux.h (NO_SIOCTL_H):
14331 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14332 * s/cygwin.h (GETPGRP_NO_ARG):
14333 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14334 (C_DEBUG_SWITCH): Remove duplicate definition.
14335
14336 * m/ibms390.h: Remove boilerplate comments.
14337
14338 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14339
14340 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14341 (wait_reading_process_output): Remove code for SunOS, platform not
14342 supported anymore. Use SOLARIS2 instead of sun.
14343
143442008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14345
14346 * font.c (font_open_by_name): Under NS, default lface height to zero.
14347 (font_open_for_lface): Under NS, set size based on frame fontsize.
14348 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14349 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14350
143512008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14352
14353 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14354 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14355 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14356 YES/NO.
14357 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14358 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14359 * Makefile.in (clean): Clear out build destination dir.
14360
143612008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14362
14363 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14364 xterm, xselect.
14365 * lisp.h: Remove declaration of hash_remove.
14366 * nsgui.h: Remove redefinitions of hash_remove.
14367 * fns.c (hash_remove): Rename to hash_remove_from_table.
14368
143692008-07-19 Seiji Zenitani <zenitani@mac.com>
14370
14371 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14372 strdup() the family UTF8String before modifying it.
14373
143742008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14375
14376 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14377 NS_FACE_BACKGROUND with 0 instead of nil.
14378 * nsfont.m (nsfont_draw): Same.
14379
143802008-07-19 Chong Yidong <cyd@stupidchicken.com>
14381
14382 * nsfns.m (ns_set_background_color): Fix crash.
14383
143842008-07-18 Chong Yidong <cyd@stupidchicken.com>
14385
14386 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14387
143882008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14389
14390 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14391
143922008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14393
14394 * gtkutil.c: Include <config.h> instead of "config.h".
14395
14396 * lisp.h (Foverlay_buffer): Add EXFUN.
14397
14398 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14399 child process to complete child_setup. Undo 2005-09-21 change.
14400
14401 * s/darwin.h: Mention setsid after vfork.
14402
144032008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14404
14405 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14406 Depend on macgui.h.
14407
14408 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14409 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14410
14411 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14412 and f19.
14413 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14414
14415 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14416 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14417 Remove enumerators.
14418
14419 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14420 Check if FACE_FROM_ID returns NULL.
14421
144222008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14423
14424 * w32inevt.c (change_frame_size): Remove extern declaration.
14425 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14426 change_frame_size.
14427
144282008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14429
14430 * getloadavg.c: Revert last change (2008-07-15).
14431
144322008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14433
14434 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 14435 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
14436 from configure.
14437
144382008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14439
14440 * s/sol2.h:
14441 * s/sol2-4.h: Reorganize conditionals.
14442
14443 * ecrt0.c: Remove code depending on m68000, not used anymore.
14444
14445 * fns.c (hash_remove): Make static.
14446 * lisp.h (hash_remove): Don't prototype.
14447
14448 * m/ibmrs6000.h:
14449 * m/ibms390x.h:
14450 * m/macppc.h: Remove boilerplate comments.
14451
14452 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14453 Solaris, which does not need them.
14454
14455 * m/vax.h: Remove comments about unsupported systems.
14456
14457 * s/darwin.h: Reorganize ifdefs.
14458
144592008-07-17 Andreas Schwab <schwab@suse.de>
14460
14461 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14462
144632008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14464
14465 Use SDATA. Follow coding convention of placing operators at
14466 beginning of next line rather than end of previous line, and placing
14467 spaces around infix operators.
14468
14469 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14470 in case it was defined already.
14471 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14472 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14473 ns_default.
14474 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14475 Lisp_Objects.
14476 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14477 (ns_defined_color, ns_color_to_lisp): Declare.
14478 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14479 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14480 it's accepted even with USE_LISP_UNION_TYPE.
14481 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14482 (update_frame_tool_bar): Remove apparently obsolete tests for
14483 non-integerness of f->tool_bar_lines.
14484 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14485 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14486 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14487 (nsfont_open): Don't confuse NULL for Qnil.
14488 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14489 * menu.h (find_and_call_menu_selection):
14490 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14491 (find_and_return_menu_selection): Always return something.
14492 * frame.h: Include dispextern.h for Display_Info.
14493 (display_x_get_resource): Declare.
14494
144952008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14496
14497 * syntax.c: Remove stdio.h include accidentally introduced in
14498 Emacs.app commit.
14499 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14500 NS_IMPL_COCOA.
14501 * keyboard.c (handle_async_input, input_available_signal): Remove
14502 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14503
145042008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14505
14506 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14507 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14508 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14509 Use SDATA.
14510
14511 * keymap.c: Remove all NS-specific code.
14512 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14513 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14514 where_is_preferred_modifier, return a different value depending on how
14515 preferred is the binding.
14516 (where_is_internal): Adjust accordingly.
14517 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14518 Adjust to new preferred_sequence_p.
14519 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14520 * keyboard.c (parse_solitary_modifier): Not static any more.
14521 * keyboard.h (parse_solitary_modifier): Declare.
14522
145232008-07-16 Andreas Schwab <schwab@suse.de>
14524
14525 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14526 of easymenu.
14527
145282008-07-16 Chong Yidong <cyd@stupidchicken.com>
14529
14530 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14531 that we don't move off the line.
14532
145332008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14534
14535 * keyboard.c (Qsuper): Remove.
14536 (parse_menu_item): Don't call where_is_internal specially for NS.
14537
145382008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14539
14540 * s/gnu-linux.h: Remove boilerplate comments.
14541
14542 * m/alpha.h (__ELF__): Consolidate conditions.
14543
14544 * m/m68k.h (linux): Use GNU_LINUX instead.
14545 Remove boilerplate comments.
14546
14547 * m/intel386.h: Undo refactoring from previous change.
14548 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14549 too, remove dead code.
14550 (linux): Use GNU_LINUX instead.
14551
145522008-07-16 Jason Rumney <jasonr@gnu.org>
14553
14554 * w32gui.h: Repeat 26 June changes lost by last change.
14555
145562008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14557
14558 * systty.h: Remove code for Aix on 386, unsupported platform.
14559
14560 * s/ms-w32.h: Remove boilerplate comments.
14561 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14562
14563 * s/gnu-linux.h (TERM): Remove support.
14564 (HAVE_SYSVIPC): Remove, unused.
14565 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14566 for this system.
14567
14568 * process.c: Remove support for IRIS, unused.
14569 Remove support for TERM, not relevant anymore.
14570
14571 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14572 used with the definition.
14573
14574 * s/aix4-2.h (static): Do not undef.
14575
14576 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14577 only used on Aix.
14578 (HAVE_SYSVIPC): Remove, unused.
14579
14580 * m/hp800.h (CANNOT_DUMP): Do not undef.
14581
14582 * m/alpha.h: Fix comment.
14583
14584 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14585 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14586 used by this configuration.
14587 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14588 * unexec.c: Remove code depending on HPUX and
14589 USG_SHARED_LIBRARIES, not used with this file. Remove code
14590 depending on IRIS, unused. Remove if 0-ed code.
14591
14592 * s/template.h: Remove comments about static.
14593
14594 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14595 Remove if 0-ed code.
14596 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14597 were the same as the default.
14598 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14599 Remove boilerplate comments.
14600 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14601 (HAVE_SYSVIPC): Remove, unused.
14602 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14603
14604 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14605 Remove boilerplate comments.
14606 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14607 Remove boilerplate comments.
14608 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14609 Remove boilerplate comments.
14610 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14611
14612 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14613 USG systems which do not use DATA_SEG_BITS.
14614 Refactor code. Remove boilerplate comments.
14615
14616 * m/ibms390.h:
14617 * m/m68k.h:
14618 * s/bsd-common.h:
14619 * s/cygwin.h:
14620 * s/darwin.h:
14621 * s/freebsd.h:
14622 * s/gnu.h:
14623 * s/msdos.h: Remove boilerplate comments.
14624
14625 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 14626 do not use this file.
aac0c6e3
MR
14627 (IRIS_4D): Remove, unused.
14628
14629 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 14630 do not use this file.
aac0c6e3
MR
14631 (SIGN_EXTEND_CHAR):
14632 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14633 * unexmips.c: Remove file, unused.
14634
14635 * editfns.c (Fuser_full_name): Replace the only use of
14636 USER_FULL_NAME with its value.
14637 * config.in: Regenerate.
14638
146392008-07-16 David Reitter <david.reitter@gmail.com>
14640
14641 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14642 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14643
146442008-07-16 Glenn Morris <rgm@gnu.org>
14645
14646 * emacs.c (system-type): Doc fix.
14647
146482008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14649
14650 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14651 If the cache doesn't work, let's fix it, rather than work around it.
14652
146532008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14654
14655 * Makefile.in: Correct additions for nsfont.o in last commit.
14656 * nsfont.m: New file (forgot last commit).
14657
146582008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14659
14660 * callproc.c (set_initial_environment): Initialize
14661 Vprocess_environment under CANNOT_DUMP (fixes crash when
14662 batch-compiling for bootstrap).
14663
146642008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 14665 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 14666
c4cc8b9a
JB
14667 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14668 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
14669
146702008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14671
14672 Changes and additions for NeXTstep windowing system (Cocoa and
14673 GNUstep) support.
14674
14675 * Makefile.in:
14676 * config.in: Support defines and build commands for NS port.
14677 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14678 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14679 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14680 windowing.
14681 (struct face): Add synth_ital field.
14682 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14683 (init_display): Initialize Vinitial_window_system to "ns" when so
14684 compiled.
14685 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14686 (display_arg): Use under NS.
14687 (main): Under NS, allocate autorelease pool and handle command line
14688 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14689 (standard_args): Add NS-specific args.
14690 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14691 * font.c (DEFAULT_ENCODING): New variable.
14692 (font_find_for_lface): Use it.
14693 (syms_of_font): Load syms_of_nsfont under NS.
14694 * font.h: Declare nsfont_driver when compiled under NS.
14695 * fontset.c: When compiling under NS, include nsterm.h.
14696 (fontset_from_font): Autoconstruct fontset under NS.
14697 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14698 symbol, document and use it.
14699 (do_switch_frame): When for_deletion under Cocoa, add
14700 Fraise_frame(Qnil).
14701 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14702 (x_get_arg): Allow "yes" and "no" as boolean values.
14703 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14704 Qright under Cocoa.
14705 (focus-follows-mouse): Default to 0 under NS.
14706 * frame.h (enum output_method): Add output_ns.
14707 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14708 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14709 (FRAME_WINDOW_P): NS-specific definition.
14710 * fringe.c (max_used_fringe_bitmap): Make public.
14711 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14712 (getloadavg): Use NeXT code under descendant OS's.
14713 * image.c (includes and header section, x_create_bitmap_from_data)
14714 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14715 (image_background_transparent, x_clear_image_1)
14716 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14717 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14718 (x_to_xcolors, x_from_xcolors, x_disable_image)
14719 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14720 other GUIs, including XPM support using code originally written for
14721 Carbon GUI.
14722 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14723 using NS API.
14724 (image_ascent): Use font metrics macros instead of direct struct field
14725 access.
14726 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14727 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14728 Also, handle NS as GTK for menu bar purposes.
14729 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14730 toolkit where they differ.
14731 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14732 use cachelist, still needed under NS.
14733 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14734 (struct widget_value): Define it here for menu.c.
14735 * keymap.c (includes): Include modifier internals.
14736 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14737 NS.
14738 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14739 support for preferring sequences using certain modifiers, specified by
14740 the FIRSTONLY argument.
14741 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14742 under NS GNUstep implementation.
14743 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14744 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14745 * menu.c: Include nsterm.h under NS.
14746 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14747 (free_menubar_widget_tree_value, update_submenu_strings)
14748 (find_and_call_menu_selection): Treat NS as X and NT.
14749 (find_and_return_menu_selection): New function, used for popup menus.
14750 * nsgui.h:
14751 * nsterm.h:
14752 * nsfns.m:
14753 * nsimage.m:
14754 * nsmenu.m:
14755 * nsselect.m:
14756 * nsterm.m: New files.
14757 * process.c (wait_reading_process_output): Under NS, call ns_select()
14758 instead of plain select().
14759 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14760 beginning of buffer.
14761 * sysselect.h (init_process): Rename when compiling under Cocoa to
14762 avoid name conflict.
14763 * termhooks.h (display_info): Add ns_display_info to union.
14764 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14765 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14766 COCOA environment.
14767 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14768 unexec() signature. (Note, this will dump, but the resulting file
14769 crashes; unexosx is used instead; keeping around for reference and
14770 possible aid in getting dump working under GNUstep.)
14771 * w32gui.h (button_type, widget_value): Remove definitions (now in
14772 keyboard.h).
14773 * window.c: Include nsterm.h when compiling under NS.
14774 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14775 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14776 other GUI windowing systems.
14777 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14778 GTK.
14779 (x_consider_frame_title): Under NS, set icon type and frame
14780 modified-state indicator; use ns_set_name_as_filename() when using
14781 formatted title.
14782 (update_window_cursor): Make public when compiling under NS.
14783 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14784 (hourglass_atimer, Vhourglass_delay
14785 * xfaces.c (header section, init_frame_faces, clear_font_table)
14786 (defined_color, unload_color, x_face_list_fonts)
14787 (prepare_face_for_display): Add NS support parallel to other GUIs.
14788 Emulate GCs like other non-X GUIs.
14789 (split_font_name): Don't lowercase font name under NS.
14790 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14791 under NS.
14792 * s/darwin.h: Add support for compilation under NS.
14793
147942008-07-15 Jason Rumney <jasonr@gnu.org>
14795
14796 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14797 (w32_show_hourglass): Rename from show_hourglass.
14798 (w32_hide_hourglass): Rename from hide_hourglass.
14799 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14800 (Vhourglass_delay): Declare extern.
14801 (hourglass_started): Remove.
14802
14803 * xdisp.c (Vhourglass_delay): Remove static.
14804 (hourglass_started, start_hourglass, cancel_hourglass):
14805 Don't include these versions on WINDOWSNT.
14806
148072008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14808
14809 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14810 variables (formerly in xfns.c).
14811 (show_hourglass, hide_hourglass): New prototypes (same).
14812 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14813 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14814 in xfns.c).
14815 (syms_of_xdisp): Declare/initialize display-hourglass,
14816 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14817 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14818 formerly in xfns.c.
14819 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14820 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14821 (start_hourglass, cancel_hourglass): Remove.
14822 (show_hourglass, hide_hourglass): Remove prototypes and static
14823 modifiers.
14824 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14825 hourglass_atimer, hourglass_shown_p declaration/initialization.
14826 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14827 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14828 (start_hourglass, cancel_hourglass): Remove.
14829 (show_hourglass, hide_hourglass): Remove prototypes and static
14830 modifiers.
14831 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14832 hourglass_atimer, hourglass_shown_p declaration/initialization.
14833 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14834 (DEFAULT_HOURGLASS_DELAY): Remove.
14835 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14836 hourglass_shown_p declaration/initialization.
14837
148382008-07-14 Jason Rumney <jasonr@gnu.org>
14839
14840 * w32fns.c (w32_get_arg): Remove wrapper function.
14841 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14842 directly.
14843 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14844
148452008-07-14 Kenichi Handa <handa@m17n.org>
14846
14847 * xfont.c (xfont_open): Add workaround for X's bug.
14848
148492008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14850
14851 * fontset.c: Include <stdio.h> unconditionally.
14852
148532008-07-13 Michael Albinus <michael.albinus@gmx.de>
14854
14855 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14856 for filtering.
14857
148582008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14859
14860 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14861
14862 * m/macppc.h:
14863 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14864
c4cc8b9a 14865 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14866 (SPECIAL_EMACS_INT):
14867 * m/ia64.h (SPECIAL_EMACS_INT):
14868 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14869 * s/gnu.h (NLIST_STRUCT):
14870 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14871 * s/gnu-linux.h (LINUX):
14872 * s/msdos.h (HAVE_FACES):
14873 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14874
14875 * systty.h:
14876 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14877 anymore.
14878
148792008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14880
14881 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14882 always defined as int.
14883
14884 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14885 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14886 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14887 * s/freebsd.h (HAVE_WAIT_HEADER):
14888 * s/bsd-common.h (HAVE_UNION_WAIT):
14889 * s/aix4-2.h (HAVE_WAIT_HEADER):
14890 * m/mips.h (HAVE_UNION_WAIT):
14891 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14892 (COFF, static): Do not define, they are undefined later in the file.
14893
14894 * process.c (update_status): Don't use a union.
14895 (status_convert):
14896 (sigchld_handler): Use int instead of WAITTYPE.
14897
148982008-07-12 Chong Yidong <cyd@stupidchicken.com>
14899
14900 * indent.c (Fvertical_motion): Restore hscroll before moving to
14901 goal column.
14902
149032008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14904
14905 * lisp.h: Remove left over code.
14906
149072008-07-11 Andreas Schwab <schwab@suse.de>
14908
14909 * lisp.h: Fix logic in last change.
14910
14911 * menu.h: New file.
14912 * menu.c: Include it.
14913 * xmenu.c: Likewise.
14914 * Makefile.in: Update dependencies.
14915
149162008-07-11 Kenichi Handa <handa@m17n.org>
14917
14918 * fontset.c (fontset_from_font): Cancel the previous change.
14919
149202008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14921
14922 * lisp.h:
14923 * w32heap.c:
14924 * emacs.c:
14925 * alloc.c: Replace all references of NO_UNION_TYPE with
14926 USE_LISP_UNION_TYPE.
14927
14928 * m/xtensa.h (NO_UNION_TYPE):
14929 * m/vax.h (NO_UNION_TYPE):
14930 * m/template.h (NO_UNION_TYPE):
14931 * m/sparc.h (NO_UNION_TYPE):
14932 * m/mips.h (NO_UNION_TYPE):
14933 * m/macppc.h (NO_UNION_TYPE):
14934 * m/m68k.h (NO_UNION_TYPE):
14935 * m/iris4d.h (NO_UNION_TYPE):
14936 * m/intel386.h (NO_UNION_TYPE):
14937 * m/ibms390x.h (NO_UNION_TYPE):
14938 * m/ibms390.h (NO_UNION_TYPE):
14939 * m/ibmrs6000.h (NO_UNION_TYPE):
14940 * m/ia64.h (NO_UNION_TYPE):
14941 * m/hp800.h (NO_UNION_TYPE):
14942 * m/arm.h (NO_UNION_TYPE):
14943 * m/amdx86-64.h (NO_UNION_TYPE):
14944 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14945 defining it the same.
14946
149472008-07-10 Chong Yidong <cyd@stupidchicken.com>
14948
14949 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14950
149512008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14952
14953 * fileio.c:
50426a04 14954 * sysdep.c:
aac0c6e3
MR
14955 * systty.h:
14956 * m/ibmrs6000.h:
14957 * m/iris4d.h:
14958 * s/aix4-2.h:
14959 * s/freebsd.h:
14960 * s/gnu-linux.h:
14961 * s/hpux10-20.h:
14962 * s/hpux11.h:
14963 * s/netbsd.h:
14964 * s/sol2-3.h:
14965 * s/sol2-4.h:
14966 * s/sol2.h:
14967 * s/usg5-4.h:
14968 * s/vms.h: Remove references to unused variables.
14969
149702008-07-10 Andreas Schwab <schwab@suse.de>
14971
14972 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14973 pattern before matching the generic family.
14974
149752008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14976
14977 * unexec.c:
14978 * s/vms.h:
14979 * s/usg5-4-2.h:
14980 * s/sol2-5.h:
14981 * s/freebsd.h:
14982 * s/darwin.h: Remove dead code.
14983
14984 * m/template.h:
14985 * m/sparc.h:
14986 * m/mips.h:
14987 * m/m68k.h:
14988 * m/iris4d.h:
14989 * m/intel386.h:
14990 * m/ibms390x.h:
14991 * m/ibms390.h:
14992 * m/ia64.h:
14993 * m/hp800.h:
14994 * m/arm.h:
14995 * m/amdx86-64.h: Remove dead code and references to unused
14996 and compiler defined symbols.
14997
14998 * unexmips.c:
14999 * unexelf.c: Remove references to desupported systems.
15000
15001 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
15002
15003 * m/powermac.h: Remove boilerplate comments.
15004 (NO_REMAP): Remove unused definition.
15005
15006 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
15007 define them.
15008
150092008-07-10 Kenichi Handa <handa@m17n.org>
15010
15011 * xfont.c (xfont_open): Log the reason of failure.
15012
150132008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
15014
15015 * fontset.c (fontset_get_font_group):
15016 * font.c (font_check_otf): Specify argument types.
15017
150182008-07-09 Kenichi Handa <handa@m17n.org>
15019
15020 * coding.c (detect_coding_utf_8): Set detect_info->found only when
15021 non-ASCII char is found.
15022
15023 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
15024 (reorder_font_vector): Change the arg preferred_family to font.
15025 Prefer the spec matching with font.
15026 (fontset_get_font_group): New function.
15027 (fontset_find_font): Change the format of an element of a realized
15028 fontset. Use fontset_get_font_group.
15029 (fontset_font): Try the current fontset, the default fontset, the
15030 fallbacks of the current fontset, and the fallbacks of the default
15031 fontset in this order.
15032 (face_for_char): Delete the shortcut to use the current font.
15033 (fontset_from_font): Don't set fonts for Latin in the fontset.
15034
15035 * font.h (font_make_object, font_match_p): Adjust prototypes.
15036
15037 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
15038
15039 * font.c (font_make_object): New arg entity and pixelsize.
15040 (font_check_otf_features, font_check_otf): New functions.
15041 (font_match_p): Check :lang, :script, and :otf properties.
15042
15043 * xfont.c (xfont_open): Adjust it for the change of
15044 font_make_object.
15045 (xfont_text_extents): Fix initial setting of metrics.
15046
15047 * ftfont.c (struct ftfont_info): New member index, delete member
15048 fc_charset_idx. Make the member order compatible with struct
15049 xftfont_info.
15050 (fc_charset_table): Change charset names to registry names.
15051 (ftfont_pattern_entity): Delete the args registry and
15052 fc_charset_idx. Change the value of :font-entity property
15053 to (FONTNAME . INDEX). Always set :registry property to
15054 `iso10646-1'.
15055 (struct ftfont_cache_data): New struct.
15056 (ftfont_lookup_cache): New arg for_face.
15057 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
15058 (ftfont_driver): Set the member otf_capability.
15059 (ftfont_get_charset): Adjust it for the change of
15060 fc_charset_table.
15061 (OTF_TAG_SYM): New macro.
15062 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
15063 for the change of fc_charset_table.
15064 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
15065 ftfont_pattern_entity. Add FC_INDEX to objset.
15066 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
15067 and ftfont_pattern_entity.
15068 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
15069 font_make_object, struct ftfont_info.
15070 (ftfont_has_char): Use ftfont_get_fc_charset.
15071 (ftfont_otf_features, ftfont_otf_capability): New functions.
15072 (ftfont_shape): Use ftfont_get_otf.
15073 (ftfont_text_extents): Fix initial setting of metrics.
15074
15075 * xftfont.c (struct xftfont_info): New member ft_size. Make the
15076 member order compatible with struct ftfont_info.
15077 (xftfont_open): Add FC_CHARSET to the pattern. Set
15078 xftfont_info->ft_size. Don't unlock the face. Check BDF
15079 properties if appropriate.
15080 (xftfont_close): Unlock the face.
15081 (xftfont_anchor_point, xftfont_shape): Deleted.
15082 (syms_of_xftfont): Don't set members anchor_point and shape of
15083 xftfont_driver.
15084
15085 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
15086 font_make_object.
15087
15088 * w32font.c (w32font_open): Adjust it for the change of
15089 font_make_object.
15090 (w32font_open_internal): Don't set properties of font_object here.
15091
150922008-07-08 Chong Yidong <cyd@stupidchicken.com>
15093
15094 * macfns.c (x_create_tip_frame):
15095 * w32fns.c (x_create_tip_frame):
15096 * xfns.c (x_create_tip_frame): Pass parameter argument to
15097 face-set-after-frame-default.
15098
15099 * xfaces.c (Finternal_merge_in_global_face): Save merged
15100 attributes for the default face back into the face vector.
15101
151022008-07-08 Andreas Schwab <schwab@suse.de>
15103
15104 * fontset.h: Declare fontset_from_font. Don't declare
15105 new_fontset_from_font and fontset_from_font_name.
15106 * xterm.c: Include "fontset.h".
15107 * Makefile.in (xterm.o): Update dependencies.
15108
151092008-07-08 Glenn Morris <rgm@gnu.org>
15110
15111 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
15112 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
15113
151142008-07-07 Chong Yidong <cyd@stupidchicken.com>
15115
15116 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
15117 (x_set_frame_parameters): Don't bind it.
15118
151192008-07-07 Juanma Barranquero <lekktu@gmail.com>
15120
15121 * w32fns.c (map_w32_filename): Declare extern.
15122
151232008-07-07 Jason Rumney <jasonr@gnu.org>
15124
15125 * w32term.c (WS_EX_LAYERED): Define if not already.
15126
151272008-07-06 Chong Yidong <cyd@stupidchicken.com>
15128
15129 * xfaces.c (set_font_frame_param): Don't try to set the font
15130 parameter if it is still unspecified in the lface.
15131
151322008-07-05 Chong Yidong <cyd@stupidchicken.com>
15133
15134 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
15135 face if it didn't already exist.
15136
15137 * xdisp.c (try_window_id): Give up if word-wrapping is on.
15138
151392008-07-05 Andreas Schwab <schwab@suse.de>
15140
15141 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
15142
151432008-07-05 Chong Yidong <cyd@stupidchicken.com>
15144
15145 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
15146 word-wrapping.
15147 (IT_DISPLAYING_WHITESPACE): New macro.
15148 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
15149 when word-wrapping. Simplify word-wrapping logic. Use correct
15150 pixel positions when saving copies of the iterator.
15151 (display_line): Use proper wrap point if the last character on a
15152 line was preceded by whitespace.
15153
151542008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
15155
15156 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
15157
151582008-07-04 Kenichi Handa <handa@m17n.org>
15159
15160 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
15161
15162 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
15163
151642008-07-02 Jason Rumney <jasonr@gnu.org>
15165
15166 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 15167 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
15168
15169 * xdisp.c (next_element_from_display_vector): Move assignment out
15170 of if statement.
15171
151722008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
15173
15174 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
15175
15176 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
15177 (syms_of_fileio): Initialize and export them.
15178 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
15179
15180 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
15181 (Fsystem_move_file_to_trash): New function.
15182 (syms_of_w32fns): Export it to lisp.
15183
151842008-07-01 Jason Rumney <jasonr@gnu.org>
15185
15186 * w32font.c (w32font_text_extents): Don't count overhang as part
15187 of width.
15188
151892008-06-30 Miles Bader <miles@gnu.org>
15190
15191 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15192 Add `avoid_cursor_p' field.
15193
15194 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15195 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15196 (append_glyph, append_composite_glyph, produce_image_glyph)
15197 (append_stretch_glyph): Initialize avoid_cursor_p.
15198 (get_it_property): Rename from `get_line_height_property'.
15199 (x_produce_glyphs): Use get_it_property.
15200 (handle_line_prefix, push_display_prop): New functions.
15201 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15202 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15203 New variables.
15204 (syms_of_xdisp): Initialize them.
15205
152062008-06-30 Kenichi Handa <handa@m17n.org>
15207
15208 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15209 XftDefaultSubstitute (they are called in XftFontMatch).
15210 (xftfont_open): Fix args to ftfont_font_format.
15211
15212 * ftfont.c (fc_charset_table): New member lang.
15213 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 15214 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
15215 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15216 (ftfont_open): Fix args to ftfont_font_format.
15217 (ftfont_font_format): New arg filename.
15218
152192008-06-30 Chong Yidong <cyd@stupidchicken.com>
15220
15221 * xfaces.c (Finternal_merge_in_global_face): If default face was
15222 modified, realize it again. Update the font face attribute.
15223
152242008-06-29 Jason Rumney <jasonr@gnu.org>
15225
15226 * w32term.c (x_set_frame_alpha): Fix logic.
15227
152282008-06-29 Kenichi Handa <handa@m17n.org>
15229
15230 * fontset.c (Finternal_char_font): Return font-object instead of
15231 font-name.
15232
15233 * composite.c (get_composition_id): Fix the width calculation for TAB.
15234
152352008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15236
15237 * indent.c (Fvertical_motion): Properly handle float column arg.
15238
152392008-06-28 Jason Rumney <jasonr@gnu.org>
15240
15241 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15242 (pfnSetLayeredWindowAttributes): New function pointer.
15243 (w32_initialize): Initialize it when supported.
15244 (x_set_frame_alpha): New function.
15245
15246 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15247 (w32_frame_parm_handlers): Set alpha handler.
15248
15249 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15250
152512008-06-27 Jason Rumney <jasonr@gnu.org>
15252
15253 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15254 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15255 (w32_to_x_charset, x_to_w32_charset)
15256 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15257 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15258 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15259 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15260 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15261 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15262 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15263 (Qw32_charset_unicode): Remove.
15264 (syms_of_w32fns): Update for above changes.
15265
15266 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15267 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15268 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15269 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15270 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15271 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15272 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15273 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15274 (syms_of_w32font): Update for above changes.
15275
152762008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15277
15278 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15279 removed #if.
15280 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15281
152822008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 15283 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
15284
15285 * makefile.w32-in (LOCAL_FLAGS):
15286 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15287
15288 * sysdep.c (_spawnlp, _getpid):
15289 Declare with explicit _cdecl instead of _CRTAPI1.
15290
15291 * editfns.c (Fget_internal_run_time):
15292 Check for WINDOWSNT with #ifdef, not #if.
15293
152942008-06-26 Jason Rumney <jasonr@gnu.org>
15295
15296 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15297
15298 * w32term.c (x_draw_glyph_string_foreground)
15299 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15300 Use FONT_HANDLE macro.
15301 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15302
15303 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15304 (uniscribe_encode_char): Use FONT_HANDLE macro.
15305
15306 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15307 (w32font_text_extents): Use precast w32_font.
15308 (w32font_close): Free cached metrics.
15309 (w32font_open_internal): Allocate space for name on stack.
15310
153112008-06-26 Chong Yidong <cyd@stupidchicken.com>
15312
15313 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15314
153152008-06-26 Jason Rumney <jasonr@gnu.org>
15316
15317 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15318 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15319
153202008-06-26 Juanma Barranquero <lekktu@gmail.com>
15321
15322 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15323
153242008-06-26 Jason Rumney <jasonr@gnu.org>
15325
15326 * w32bdf.c, w32bdf.h: Remove obsolete files.
15327
15328 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15329
15330 * w32gui.h: Don't include w32bdf.h.
15331 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15332 Remove obsolete font support.
15333
15334 * w32font.h (struct w32font_info): Remove compat_w32_font.
15335 Add hfont member.
15336 (FONT_COMPAT): Remove obsolete macro.
15337
15338 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15339 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15340 (w32font_open_internal): Remove compat code. Set new hfont member.
15341 (Fx_select_font): Use new hfont member.
15342
15343 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15344 (uniscribe_encode_char): Use new hfont member.
15345
15346 * w32term.c (x_draw_glyph_string_foreground)
15347 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15348 (x_draw_glyph_string): Use metrics in w32font_info.
15349
153502008-06-26 Kenichi Handa <handa@m17n.org>
15351
15352 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15353
153542008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15355
15356 * unexnext.c:
15357 * m/ews4800.h:
15358 * m/hp9000s300.h:
15359 * m/ibm370aix.h:
15360 * m/mips-siemens.h:
15361 * m/ncr386.h:
15362 * m/next.h:
15363 * m/pmax.h:
15364 * m/powerpcle.h:
15365 * m/tandem-s2.h:
15366 * s/386bsd.h:
15367 * s/bsd386.h:
15368 * s/bsd4-1.h:
15369 * s/bsd4-2.h:
15370 * s/bsdos2-1.h:
15371 * s/bsdos2.h:
15372 * s/bsdos3.h:
15373 * s/bsdos4.h:
15374 * s/nextstep.h:
15375 * s/ultrix4-3.h:
15376 * s/usg5-0.h:
15377 * s/usg5-2-2.h:
15378 * s/usg5-2.h:
15379 * s/usg5-4-3.h:
15380 * s/ux4800.h:
15381 * s/uxpds.h:
15382 * s/uxpv.h: Remove support for obsolete systems.
15383 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 15384 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
15385 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15386 Remove, insert contents in s/aix4-2.h.
15387 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15388 * s/bsd4-3.h: Rename to ...
15389 * s/bsd-common.h: ... this.
15390 * data.c:
15391 * doc.c:
15392 * ecrt0.c:
15393 * emacs.c:
15394 * fileio.c:
15395 * floatfns.c:
15396 * keyboard.c:
15397 * mem-limits.h:
15398 * print.c:
15399 * process.c:
15400 * sysdep.c:
15401 * syssignal.h:
15402 * systty.h:
15403 * syswait.h:
15404 * term.c:
15405 * unexec.c:
15406 * unexelf.c:
15407 * unexhp9k800.c:
15408 * m/hp800.h:
15409 * m/ibmrs6000.h:
15410 * m/mips.h:
15411 * m/vax.h:
15412 * s/darwin.h:
15413 * s/freebsd.h:
15414 * s/gnu.h:
15415 * s/ms-w32.h:
15416 * s/msdos.h:
15417 * s/netbsd.h:
15418 * s/template.h: Remove references to obsolete variables.
15419
15420 * Makefile.in: Add dependencies for all unexec files.
15421 (admindir): Remove unused variable.
15422 (UNEXEC_SRC): Remove references.
15423
154242008-06-25 Chong Yidong <cyd@stupidchicken.com>
15425
15426 * xfns.c (x_default_font_parameter): If Xft is available, first
15427 try Monospace-12 for the default font.
15428
154292008-06-25 Jason Rumney <jasonr@gnu.org>
15430
15431 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15432
154332008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15434
15435 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15436
15437 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15438
154392008-06-25 Juanma Barranquero <lekktu@gmail.com>
15440
15441 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15442 <scroll-conservatively>: Fix typo in docstring.
15443
15444 * xselect.c (Fx_send_client_event): Doc fix.
15445
154462008-06-25 Kenichi Handa <handa@m17n.org>
15447
15448 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15449
15450 * font.c (font_parse_fcname): Remove unused variables.
15451 (font_sort_entites): Delete the arg SPEC. Caller changed.
15452 Fix for the case of ! best_only.
15453 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15454
15455 * lisp.h (Fstring_to_unibyte): EXFUN it.
15456
15457 * character.h (str_to_unibyte): Extern it.
15458
15459 * character.c (str_to_unibyte): New function.
15460
15461 * fns.c (Fstring_to_unibyte): New function.
15462 (syms_of_fns): Defsubr it.
15463
154642008-06-24 Kenichi Handa <handa@m17n.org>
15465
15466 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15467 DPI too.
15468 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15469
154702008-06-24 Andreas Schwab <schwab@suse.de>
15471
15472 * Makefile.in (${lispsource}loaddefs.el): Rename from
15473 ../lisp/loaddefs.el.
15474 (bootstrap-clean): Do what distclean does but don't remove
15475 Makefile.
15476 (distclean): Depend on bootstrap-clean and remove Makefile.
15477
154782008-06-24 Chong Yidong <cyd@stupidchicken.com>
15479
15480 * buffer.h (struct buffer): New member word_wrap.
15481
15482 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15483 word-wrap.
15484 (init_buffer_once): Initialize them.
15485
15486 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15487 line_wrap enum possessing three possible values.
15488
15489 * termopts.h: Replace truncate_partial_width_windows with
15490 Vtruncate_partial_width_windows.
15491
15492 * dispnew.c (direct_output_for_insert): Avoid direct output when
15493 inserting a space with word wrap on.
15494
15495 * indent.c (compute_motion): Obey integer values of
15496 truncate-partial-width-windows.
15497
15498 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15499 replacing truncate_partial_width_windows.
15500 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15501 truncate only if the window width is below that integer.
15502 (start_display, resize_mini_window, produce_stretch_glyph)
15503 (display_string, move_it_in_display_line_to): Use line_wrap.
15504 (back_to_previous_visible_line_start, reseat_1): Reset
15505 string_from_display_prop_p.
15506 (display_line): Extend default face to end of line when wrapping.
15507
155082008-06-24 Kim F. Storm <storm@cua.dk>
15509
15510 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15511 to wrap continued lines at word boundaries.
15512
155132008-06-24 Jason Rumney <jasonr@gnu.org>
15514
15515 * font.c (Ffont_face_attributes): Multiply pixel size before point
15516 conversion to avoid multiplying rounding error.
15517
155182008-06-23 Jason Rumney <jasonr@gnu.org>
15519
15520 * w32term.c (x_draw_glyph_string_background)
15521 (x_draw_glyph_string): Remove old bdf font code.
15522
15523 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15524
155252008-06-22 Kenichi Handa <handa@m17n.org>
15526
15527 * font.c (font_find_for_lface): Try the adstyle specified in
15528 the property of LFACE_FONT of LFACE (if any).
15529
155302008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15531 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15532
15533 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15534
155352008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15536
15537 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15538 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15539 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15540 (witness-emacs): Remove.
15541 (lisp, shortlisp): Move loaddefs.el earlier.
15542 (mostlyclean): Forget about witness-emacs.
15543
155442008-06-22 Glenn Morris <rgm@gnu.org>
15545
15546 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15547 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15548
155492008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15550
15551 * Makefile.in (PRECOMP): Remove.
15552 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15553 (witness-emacs): Run `compile-first'.
15554 (.el.elc): Use the new compile-onefile target.
15555
155562008-06-21 Kenichi Handa <handa@m17n.org>
15557
15558 * xftfont.c (xftfont_open): Handle QCembolden only when
15559 FC_EMBOLDEN is defined.
15560
155612008-06-21 Andreas Schwab <schwab@suse.de>
15562
15563 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15564 (.el.elc): Likewise.
15565
155662008-06-21 Miles Bader <miles@gnu.org>
15567
15568 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15569 build dir, not the lisp source dir.
15570
155712008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15572
15573 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15574 (bootstrapclean): Remove.
15575 (.el.elc): New rule.
15576 (PRECOMP): New var.
15577 (../lisp/subdirs.el): Remove.
15578 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15579 (witness-emacs): New target.
15580 (mostlyclean): Remove witness-emacs as well.
15581 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15582 Add witness-emacs dependency.
15583
155842008-06-20 Chong Yidong <cyd@stupidchicken.com>
15585
15586 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15587 defined by the font.
15588
155892008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15590
15591 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15592 (bootstrap-clean): New target that keeps TAGS around.
15593 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15594 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15595
155962008-06-20 Jason Rumney <jasonr@gnu.org>
15597
15598 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15599 Remove obsolete font code.
15600
15601 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15602 to determine language support.
15603
156042008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15605
15606 * sysdep.c (cfsetspeed): New fun extracted from the code.
15607 (cfmakeraw): Move before first use.
15608
156092008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15610
15611 * sysdep.c (cfmakeraw): Provide fallback implementation.
15612 (serial_configure): Provide fallback implementation of cfsetspeed.
15613
156142008-06-20 Kenichi Handa <handa@m17n.org>
15615
15616 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15617 the pattern.
15618
15619 * fontset.c (fontset_from_font): Copy font_spec before changing
15620 the elements.
15621
15622 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15623
156242008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15625
15626 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15627 for explicit `font' parameters.
15628
15629 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15630
156312008-06-19 Kenichi Handa <handa@m17n.org>
15632
15633 * frame.c: Include <ctype.h>.
15634 (x_set_font_backend): Allow spacing characters in the X resource
15635 for FontBackend.
15636
156372008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15638
15639 * w32fns.c, xfns.c (Qfont_param): New var.
15640 (syms_of_w32fns): Initialize it.
15641 (x_default_font_parameter): Record explicit `font' into
15642 `font-parameter'.
15643
156442008-06-18 Kenichi Handa <handa@m17n.org>
15645
15646 * font.c (font_parse_xlfd): Fix previous change.
15647 (font_parse_fcname): Don't use :fc-unknown-spec.
15648 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15649 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15650 (font_add_log): Prepend the driver name to the resulting fonts.
15651
15652 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15653 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15654 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15655
15656 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15657 (QCembolden): New variables.
15658 (syms_of_xftfont): DEFSYM them.
15659 (xftfont_open): Call XftFontMatch. Don't trust the result of
15660 XftTextExtents8 if the pixel_size is less than 5.
15661
156622008-06-18 Andreas Schwab <schwab@suse.de>
15663
15664 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15665 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15666
156672008-06-18 Jason Rumney <jasonr@gnu.org>
15668
15669 * w32font.c (w32font_list, w32font_match): Add logging.
15670
15671 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15672
156732008-06-17 Chong Yidong <cyd@stupidchicken.com>
15674
15675 * font.c (font_parse_fcname): Store divider characters for
15676 unknown-spec list. For known key symbols, intern using correct
15677 symbol name.
15678
156792008-06-17 Kenichi Handa <handa@m17n.org>
15680
15681 * xfaces.c (realize_default_face): If the frame is not on window
15682 system, set the fontset of face to nil.
15683
156842008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15685
15686 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15687
156882008-06-16 Juanma Barranquero <lekktu@gmail.com>
15689
15690 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15691 (build_font_name_from_vector): Delete externs.
15692
15693 * xfaces.c (struct font_name): Don't declare.
15694
156952008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15696
15697 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15698
156992008-06-16 Chong Yidong <cyd@stupidchicken.com>
15700
15701 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15702
157032008-06-16 Juanma Barranquero <lekktu@gmail.com>
15704
15705 * font.c (Ffont_spec): Fix usage in docstring.
15706 (Ffont_face_attributes): Doc fix.
15707
157082008-06-16 Andreas Schwab <schwab@suse.de>
15709
15710 * font.c (Ffont_face_attributes): Fix definition.
15711
157122008-06-16 Jason Rumney <jasonr@gnu.org>
15713
15714 * font.h (font_style_symbolic_from_value): Remove.
15715
15716 * font.c (font_style_symbolic_from_value): Remove.
15717 (font_style_symbolic): Revert to pre 2008-06-13 version.
15718
15719 * w32font.c (w32_to_fc_weight): New function.
15720 (w32font_full_name, logfont_to_fcname): Use it.
15721
157222008-06-16 Kenichi Handa <handa@m17n.org>
15723
15724 * font.c (font_check_object): Delete it.
15725 (font_clear_cache): Check if a font-object is alive.
15726 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15727 font-object to nil.
15728 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15729 (font_at): Don't call font_check_object.
15730 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15731
157322008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15733
15734 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15735
157362008-06-16 Chong Yidong <cyd@stupidchicken.com>
15737
15738 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15739
157402008-06-15 Chong Yidong <cyd@stupidchicken.com>
15741
15742 * font.c (font_parse_fcname): Only one decimal point.
15743 (font_unparse_fcname): Handle data in family and foundry indices
15744 as symbols, not strings.
15745 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15746
15747 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15748
15749 * font.h (font_unparse_gtkname): Add prototype.
15750
157512008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15752
15753 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15754
157552008-06-15 Andreas Schwab <schwab@suse.de>
15756
15757 * font.c (font_update_drivers): Fix crash when no drivers match.
15758
157592008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15760
15761 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15762 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15763
157642008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15765
15766 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15767
157682008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15769
15770 * process.c (Fserial_process_configure, Fprocess_send_eof):
15771 Use EQ to compare Lisp_Objects.
15772
157732008-06-13 Jason Rumney <jasonr@gnu.org>
15774
15775 * w32fns.c (Fw32_select_font): Remove old font API function.
15776
15777 * w32font.c (logfont_to_fcname): New function.
15778 (Fx_select_font): New font dialog function compatible with
15779 GTK/fontconfig version.
15780
15781 * font.c (font_style_symbolic_from_value): New function.
15782 (font_style_symbolic): Use it.
15783
15784 * font.h (font_style_symbolic_from_value): Declare new function.
15785
157862008-06-13 Juanma Barranquero <lekktu@gmail.com>
15787
15788 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15789 <font-width-table>: Fix typos in docstrings.
15790
157912008-06-13 Daniel Engeler <engeler@gmail.com>
15792
15793 These changes add serial port access.
15794 * process.c: Add HAVE_SERIAL.
15795 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15796 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15797 (list_processes_1, select_wrapper, Fstop_process)
15798 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15799 (status_notify): Modify to handle serial processes.
15800 [HAVE_SERIAL] (Fserial_process_configure)
15801 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15802 New functions.
15803 * process.h (struct Lisp_Process): Add `type'.
15804 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15805 New functions.
15806 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15807 serial ports.
b71ac3dd 15808 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15809 * w32.h: Add FILE_SERIAL.
15810 (struct _child_process): Add ovl_read, ovl_write.
15811
158122008-06-13 Kenichi Handa <handa@m17n.org>
15813
15814 * dispextern.h (enum lface_attribute_index): New member
15815 LFACE_FOUNDRY_INDEX.
15816
15817 * font.c (font_score): Delete arg alternate_families. Check only
15818 weight, slant, width, and size. Ignore the difference of alias
15819 style symbols.
15820 (font_sort_entites): Adjust for the above change. Reflect the
15821 order of font-driver to scores.
15822 (font_list_entities): Don't check alternate_familes here.
15823 (font_clear_prop): Handle foundry.
15824 (font_update_lface): Don't parse "foundry-family" form here.
15825 Handle FONT_FOUNDRY_INDEX.
15826 (font_find_for_lface): Likewise. Handle alternate families here.
15827 If registry is nil, try iso8859-1 and ascii-0.
15828 (font_open_for_lface): Pay attention to size in ENTITY.
15829 (font_open_by_name): Simplify by calling font_load_for_lface.
15830 (free_font_driver_list): Delete it.
15831 (font_update_drivers): Preserve the order of backends.
15832 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15833 of font_score and font_sort_entites.
15834 (font_update_sort_order): Likewise.
15835
15836 * xfaces.c (LFACE_FOUNDRY): New macro.
15837 (check_lface_attrs): Check foundry.
15838 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15839 (merge_face_vectors): Check foundry.
15840 (merge_face_ref): Likewise.
15841 (Finternal_set_lisp_face_attribute): Likewise.
15842 (x_update_menu_appearance): Likewise.
15843 (Finternal_get_lisp_face_attribute): Likewise.
15844 (lface_hash): Likewise.
15845 (lface_same_font_attributes_p): Likewise.
15846 (x_supports_face_attributes_p): Likewise.
15847 (tty_supports_face_attributes_p): Likewise.
15848 (Finternal_set_alternative_font_family_alist): Intern strings.
15849 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15850 (realize_default_face): Set LFACE_FOUNDRY (lface).
15851
15852 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15853 font-driver at first.
15854
15855 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15856
158572008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15858
15859 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15860
158612008-06-12 Jim Meyering <meyering@redhat.com>
15862
15863 Make unexec_free handle NULL the same way free does.
15864 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15865
158662008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15867
15868 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15869 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15870 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15871 (WEAK_ALIAS): Simplify.
15872 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15873 when searching a unibyte buffer.
15874
158752008-06-12 Chong Yidong <cyd@stupidchicken.com>
15876
15877 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15878
158792008-06-12 Juanma Barranquero <lekktu@gmail.com>
15880
15881 * w32font.c: Include ctype.h.
15882
158832008-06-11 Jason Rumney <jasonr@gnu.org>
15884
15885 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15886 misreported as space.
15887 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15888 as aliases for registry iso10646-1.
15889
158902008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15891
15892 * buffer.c (clone_per_buffer_values): Skip `name'.
15893
158942008-06-11 Chong Yidong <cyd@stupidchicken.com>
15895
15896 * font.c (font_parse_fcname): Fix last change; accept decimal
15897 points in font size.
15898
158992008-06-10 Jason Rumney <jasonr@gnu.org>
15900
15901 * w32uniscribe.c (add_opentype_font_name_to_list):
15902 Skip non unicode fonts.
15903
159042008-06-10 Chong Yidong <cyd@stupidchicken.com>
15905
15906 * xfns.c (Fx_font_dialog): New function.
15907
15908 * gtkutil.c (xg_dialog_response_cb): Rename from
15909 xg_file_response_callback.
15910 (pop_down_dialog): Rename from pop_down_file_dialog.
15911 (xg_get_file_name): Callers changed.
15912 (xg_get_font_name): New function.
15913
15914 * gtkutil.h (xg_get_font_name): Insert prototype.
15915
159162008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15917
15918 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15919 x_underline_minimum_display_offset.
15920 (syms_of_xdisp): Declare it here rather than in xterm.c.
15921 * dispextern.h (underline_minimum_offset): Declare it.
15922 * w32term.c (x_draw_glyph_string): Use it.
15923 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15924 (syms_of_xterm): Don't declare it any more.
15925 (x_draw_glyph_string): Adjust to the new name.
15926
8719abec 159272008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15928
15929 * xterm.c (x_underline_minimum_display_offset): New var.
15930 (x_draw_glyph_string): Use it.
15931 (syms_of_xterm): Declare it.
15932
159332008-06-10 Chong Yidong <cyd@stupidchicken.com>
15934
15935 * font.c (font_parse_fcname): Accept GTK-style font names too.
15936
159372008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15938
15939 * dired.c (file_name_completion): Don't return t if the match is exact
15940 but with different capitalization.
15941 * minibuf.c (Ftry_completion): Simplify.
15942
15943 * window.c (Vwindow_point_insertion_type): New var.
15944 (set_window_buffer): Use it.
15945 (syms_of_window): Init and export it to Lisp.
15946
159472008-06-10 Kenichi Handa <handa@m17n.org>
15948
15949 * font.h (font_intern_prop): Prototype adjusted.
15950
15951 * font.c (font_intern_prop): New arg force_symbol.
15952 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15953 Adjust for the change of font_intern_prop.
15954
15955 * ftfont.c (ftfont_pattern_entity):
15956 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15957 (w32_registry):
15958 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15959 the change of font_intern_prop.
15960
159612008-06-09 Juanma Barranquero <lekktu@gmail.com>
15962
15963 * w32menu.c (digest_single_submenu): Declare extern.
15964
159652008-06-09 Jason Rumney <jasonr@gnu.org>
15966
15967 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15968
15969 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15970 (parse_single_submenu): Remove.
15971 (digest_single_submenu): Remove.
15972 (syms_of_w32menu): Don't initialise variables that have moved
15973 to menu.c.
15974 (set_frame_menubar): Sync with version in xmenu.c.
15975 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15976
15977 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15978 Make static again.
15979
159802008-06-09 Jason Rumney <jasonr@gnu.org>
15981
15982 Changes to w32 files related to the move of common menu code
15983 to menu.c on 2008-06-08 by Chong Yidong.
15984
15985 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15986 defs to w32gui.h.
15987 (single_keymap_panes, push_menu_item, push_menu_pane):
15988 Make globally visible.
15989
15990 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15991 (local_free, malloc_widget_value, free_widget_value)
15992 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15993 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15994 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15995 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15996 (menu_items, menu_items_allocated, menu_items_used)
15997 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15998 (init_menu_items, finish_menu_items, discard_menu_items)
15999 (grow_menu_items, push_submenu_start, push_submenu_end)
16000 (push_left_right_boundary, push_menu_pane, push_menu_item)
16001 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
16002 (free_menubar_widget_tree_value, parse_single_submenu)
16003 (update_submenu_strings): Remove functions.
16004 (xmalloc_widget_value): Remove and declare extern.
16005
16006 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
16007 (OBJ1): Build it.
16008
16009 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
16010 (local_heap, local_alloc, local_free, malloc_widget_value)
16011 (free_widget_value): Define here.
16012
160132008-06-09 Kenichi Handa <handa@m17n.org>
16014
16015 * font.h (Qascii_0): Extern it.
16016
16017 * font.c (Qascii_0): New variable.
16018 (syms_of_font): DEFSYM it.
16019 (font_open_by_name): If the registry "iso8859-1" fails, try also
16020 "ascii-0".
16021
16022 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
16023
160242008-06-08 Kenichi Handa <handa@m17n.org>
16025
16026 * .gdbinit (xfont): New command.
16027
160282008-06-08 Andreas Schwab <schwab@suse.de>
16029
16030 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
16031 * Makefile.in (menu.o): Update dependencies.
16032
16033 * Makefile.in (obj): Always add menu.o.
16034 * emacs.c (main): Always call syms_of_menu.
16035 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
16036
160372008-06-08 Chong Yidong <cyd@stupidchicken.com>
16038
16039 * Makefile.in: Compile menu.c.
16040
16041 * lisp.h: Declare syms_of_menu.
16042
16043 * emacs.c (main): Call syms_of_menu.
16044
16045 * keyboard.h: Relocate platform-independent menu definitions from
16046 xmenu.c.
16047
16048 * menu.c: New file. Relocate platform-independent menu
16049 definitions from xmenu.c. Suggested by Adrian Robert.
16050
16051 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 16052 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
16053 (menu_items_used, menu_items_n_panes)
16054 (menu_items_submenu_depth): Move to keyboard.h.
16055 (init_menu_items, finish_menu_items, unuse_menu_items)
16056 (discard_menu_items, restore_menu_items, save_menu_items)
16057 (grow_menu_items, push_submenu_start, push_submenu_end)
16058 (push_left_right_boundary, push_menu_pane, push_menu_item)
16059 (keymap_panes, single_keymap_panes, single_menu_item)
16060 (list_of_panes, list_of_items, find_and_call_menu_selection)
16061 (xmalloc_widget_value, free_menubar_widget_value_tree)
16062 (parse_single_submenu, digest_single_submenu)
16063 (update_submenu_strings): Move to menu.c.
16064
160652008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
16066
16067 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
16068
160692008-06-06 Miles Bader <miles@gnu.org>
16070
16071 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
16072 face, not frame default.
16073
160742008-06-05 Martin Rudalics <rudalics@gmx.at>
16075
16076 * window.c (pop_up_windows, pop_up_frames)
16077 (display_buffer_reuse_frames, Vpop_up_frame_function)
16078 (Vdisplay_buffer_function, Veven_window_heights)
16079 (Vspecial_display_buffer_names, Vspecial_display_regexps)
16080 (Vspecial_display_function, Vsame_window_buffer_names)
16081 (Vsame_window_regexps, split_height_threshold)
16082 (Vsplit_window_preferred_function): Move those vars to window.el.
16083 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
16084 (Fdisplay_buffer): Move those functions to window.el.
16085 (syms_of_window): Remove corresponding declarations.
16086 (display_buffer): New function.
16087 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
16088 * dispnew.c (Flast_nonminibuf_frame): New function.
16089 * buffer.c (Fpop_to_buffer): Move to window.el.
16090
160912008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16092
16093 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
16094
160952008-06-05 Kenichi Handa <handa@m17n.org>
16096
16097 * coding.c (detect_coding): Fix previous change.
16098 (detect_coding_system): Likewise.
16099
161002008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16101
16102 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
16103
16104 * keymap.c (Vminibuffer_local_filename_must_match_map):
16105 Rename from Vminibuffer_local_must_match_filename_map.
16106 (syms_of_keymap):
16107 * minibuf.c (Fcompleting_read): Adjust accordingly.
16108 * commands.h: Rename declaration as well.
16109
161102008-06-05 Kenichi Handa <handa@m17n.org>
16111
16112 * font.c (Ffont_spec): Don't use font_parse_family_registry for
16113 family name.
16114 (Ffont_put): Likewise.
16115
16116 * fontset.c (fontset_find_font): Call font_open_for_lface with the
16117 current font-spec.
16118
16119 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
16120 is unspecified.
16121
16122 * xfaces.c (realize_x_face): If the font-related face attributes
16123 are the same as those of default face, realize a new fontset from
16124 default->fontset.
16125 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
16126
161272008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16128
16129 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
16130 (move_it_in_display_line): New wrapper.
16131
16132 * window.c (window_scroll_pixel_based_preserve_x)
16133 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
16134 (window_scroll_pixel_based, window_scroll_line_based):
16135 Use them to preserve column positions.
16136 (syms_of_window): Initialize them.
16137
16138 * indent.c (Fvertical_motion): Extend first arg to allow passing an
16139 (HPOS . VPOS) pair.
16140
16141 * dispextern.h (move_it_in_display_line): Declare.
16142
161432008-06-05 Juanma Barranquero <lekktu@gmail.com>
16144
16145 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
16146 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
16147 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
16148
161492008-06-04 Juanma Barranquero <lekktu@gmail.com>
16150
16151 * window.c (Fset_window_parameter): Doc fix.
16152 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
16153
161542008-06-04 Joakim Verona <joakim@verona.se>
16155
16156 * window.h (struct window): Add new member window_parameters.
16157
16158 * window.c (Fwindow_parameters, Fwindow_parameter)
16159 (Fset_window_parameter): New defuns.
16160 (syms_of_window): Defsubr the new defuns.
16161 (make_window): Initialize window_parameters to nil.
16162
161632008-06-04 John Paul Wallington <jpw@pobox.com>
16164
16165 * eval.c (Fdefmacro): Doc fix.
16166
161672008-06-04 Kenichi Handa <handa@m17n.org>
16168
16169 * coding.c (detect_coding): Fix handling of coding->head_ascii.
16170 Be sure to call setup_coding_system when we find a proper coding system.
16171 (detect_coding_system): Fix handling of coding->head_ascii.
16172
161732008-06-03 Andreas Schwab <schwab@suse.de>
16174
16175 * font.c (font_prop_validate_spacing): Fix last change.
16176
161772008-06-03 Kenichi Handa <handa@m17n.org>
16178
16179 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
16180 (font_parse_fcname): Fix handling of unknown key.
16181
16182 * xfont.c (xfont_list): Try an alias.
16183
16184 * charset.c (char_charset): Return NULL if the arg charset_list is
16185 specified and C doesn't belong to any of them.
16186
161872008-06-02 Chip Coldwell <coldwell@redhat.com>
16188
16189 * font.c (font_pixel_size): Don't take cdr of an integer.
16190
161912008-06-02 Jim Meyering <meyering@redhat.com>
16192
16193 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16194 * alloc.c (xfree): Return right away for a NULL arg.
16195 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16196 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16197 * mac.c (create_apple_event_from_event_ref): Likewise.
16198 (create_apple_event_from_drag_ref, cfstring_create_normalized):
16199 Likewise.
16200 * doprnt.c (doprnt1): Likewise.
16201 * frame.c (frame): Likewise.
16202 * keyboard.c (wipe_kboard): Likewise.
16203 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16204 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16205 * term.c (tty_default_color_capabilities, maybe_fatal)
16206 (delete_tty): Likewise.
16207 * w16select.c (string): Likewise.
16208 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16209 * w32bdf.c (w32_free_bdf_font): Likewise.
16210 * w32fns.c (w32_unload_font): Likewise.
16211 * w32font.c (w32font_close): Likewise.
16212 * window.c (size_window): Likewise.
16213 * xselect.c (receive_incremental_selection): Likewise.
16214 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16215 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16216 * w32.c (stat): Likewise.
16217
16218 Remove useless if-before-free tests.
16219 * editfns.c (Fset_time_zone_rule): Likewise.
16220 * lread.c (nosuffix): Likewise.
16221 * ralloc.c (get_bloc): Likewise.
16222 * regex.c (reg_free): Likewise.
16223 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16224 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16225 * xsmfns.c (smc_save_yourself_CB): Likewise.
16226
162272008-06-02 Kenichi Handa <handa@m17n.org>
16228
16229 * font.c (font_find_for_lface): Handle float font size.
16230 (font_open_for_lface): Likewise.
16231
16232 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16233 comparing the properties.
16234
162352008-06-01 Jason Rumney <jasonr@gnu.org>
16236
16237 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16238 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16239 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16240 Don't add empty script list.
16241 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16242
162432008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16244
16245 * Makefile.in (dot, dotdot): Remove, update users.
16246 ".." has been used elsewhere in the file for a long time.
16247 (LIBXT_STATIC): Remove conditional based on unused variable.
16248
162492008-06-01 Miles Bader <miles@gnu.org>
16250
16251 * xfaces.c (Vface_remapping_alist): New variable.
16252 (syms_of_xfaces): Initialize it.
16253 (enum named_merge_point_kind): New type.
16254 (struct named_merge_point): Add `named_merge_point_kind' field.
16255 (push_named_merge_point): Make cycle detection respect different
16256 named-merge-point kinds.
16257 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16258 Remove face-name alias resolution.
16259 (lface_from_face_name): New definition using
16260 `lface_from_face_name_no_resolve'.
16261 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16262 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16263 (get_lface_attributes): New definition that layers face-remapping on
16264 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16265 (lookup_basic_face): New function.
16266 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16267 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16268 `get_lface_attributes'.
16269 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16270 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16271 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16272
16273 * xdisp.c (init_iterator): Pass base_face_id through
16274 `lookup_basic_face' when we actually use it as a face-id.
16275 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16276 DEFAULT_FACE_ID.
16277
16278 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16279 lookup the initial face-id.
16280
16281 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16282
162832008-06-01 Juanma Barranquero <lekktu@gmail.com>
16284
16285 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16286 (Fremove_text_properties): Fix typos in docstrings.
16287
162882008-05-31 Kenichi Handa <handa@m17n.org>
16289
16290 * font.c (font_list_entities): Fix the car part of data to be
16291 stored in the cache.
16292
16293 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16294
162952008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16296
16297 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16298 Add a `test' argument so another predicate than `equal' can be used.
16299 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16300 (map_char_table): Remove unused vars `c' and `i'.
16301 * lisp.h (Foptimize_char_table): Adjust declaration.
16302 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16303
163042008-05-30 Kenichi Handa <handa@m17n.org>
16305
16306 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16307 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16308 defined.
16309
163102008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16311
16312 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16313 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16314 frame-local settings for the same variable.
16315
163162008-05-30 Kenichi Handa <handa@m17n.org>
16317
16318 * fontset.c (Ffont_info): Move to font.c.
16319 (syms_of_fontset): Delete defsubr of Sfont_info.
16320
16321 * font.c (font_style_to_value, font_score): Delete casting of the
16322 args to xstcasecmp.
16323 (register_font_driver): Increment num_font_drivers only when
16324 registering the driver globally.
16325 (Ffont_info): Move from fontset.c. Handle a font object too.
16326 (syms_of_font): Defsubr Sfont_info.
16327
163282008-05-29 Kenichi Handa <handa@m17n.org>
16329
16330 * coding.h (enum define_coding_utf8_arg_index): New enum.
16331 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16332 coding_attr_utf_bom.
16333 (enum utf_bom_type): Rename from utf_16_bom_type.
16334 (struct utf_16_spec): Adjust for the above change.
16335 (struct coding_system): Add utf_8_bom in `spec' union.
16336
16337 * coding.c (CODING_UTF_8_BOM): New macro.
16338 (enum coding_category): Delete coding_category_utf_8, add
16339 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16340 coding_category_utf_8_sig.
16341 (CATEGORY_MASK_UTF_8): Delete it.
16342 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16343 (CATEGORY_MASK_UTF_8_SIG): New macros.
16344 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16345 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16346 CATEGORY_MASK_UTF_8_SIG.
16347 (CATEGORY_MASK_UTF_8): New macro.
16348 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16349 (detect_coding_utf_8): Check BOM.
16350 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16351 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16352 (encode_coding_utf_16): Likewise.
16353 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16354 (detect_coding, detect_coding_system): Handle utf-8-auto.
16355 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16356 (syms_of_coding): Fix setting up of Vcoding_category_table.
16357
163582008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16359
16360 * process.c (Faccept_process_output): If `millisec' is non-nil,
16361 `seconds' default to 0.
16362 (wait_reading_process_output): Also return non-nil if we read output
16363 from a non-running process.
16364
163652008-05-29 Jason Rumney <jasonr@gnu.org>
16366
16367 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16368 `raster' specified.
16369 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16370 in the uniscribe backend, but disallow any font that has no
16371 unicode subrange support.
16372
163732008-05-29 Juanma Barranquero <lekktu@gmail.com>
16374
16375 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16376 Fix typos in docstrings.
16377
163782008-05-29 Kenichi Handa <handa@m17n.org>
16379
16380 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16381 (Fx_family_fonts): Set frame correctly.
16382
163832008-05-28 Jason Rumney <jasonr@gnu.org>
16384
16385 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16386
163872008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16388
16389 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16390 calling build_annotations.
16391
163922008-05-28 Juanma Barranquero <lekktu@gmail.com>
16393
16394 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16395 (Fencode_coding_string):
16396 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16397 <latin-extra-code-table>: Fix typos in docstrings.
16398 (syms_of_coding) <coding-system-alist>: Doc fix.
16399 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16400
164012008-05-28 Kenichi Handa <handa@m17n.org>
16402
16403 * fontset.c (Ffont_info): Don't call font_close_object.
16404
16405 * font.c (font_parse_family_registry): Use Ffont_put to validate
16406 foundry and family.
16407 (font_delete_unmatched): Don't check spacing.
16408 (font_list_entities): Add spacing to the spec to list fonts.
16409
16410 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16411 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16412
16413 * coding.c (encode_coding_raw_text): Fix previous change.
16414 (encode_coding_object): When the dst_object is a buffer and is
16415 different from src_object, move gap to PT.
16416
164172008-05-27 Chong Yidong <cyd@stupidchicken.com>
16418
16419 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16420
164212008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16422
16423 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16424 all branches. Compute it differently.
16425
16426 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16427
164282008-05-27 Juanma Barranquero <lekktu@gmail.com>
16429
16430 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16431 into "else if () ... else ...".
16432
164332008-05-27 Jason Rumney <jasonr@gnu.org>
16434
16435 * w32font.c (w32font_open_internal): Determine if glyph indices
16436 are likely to work here.
16437
164382008-05-27 Chong Yidong <cyd@stupidchicken.com>
16439
16440 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16441 draw overlap glyphs with appropriate highlighting.
16442
164432008-05-27 Kenichi Handa <handa@m17n.org>
16444
16445 * xfont.c (xfont_open): Fix calculation of font->average_width.
16446
164472008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16448
16449 * casefiddle.c (casify_object): Try to guess better whether the
16450 argument is a byte or a char.
16451
164522008-05-26 Andreas Schwab <schwab@suse.de>
16453
16454 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16455 Always send multiples of format size.
16456
16457 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16458
164592008-05-26 Jason Rumney <jasonr@gnu.org>
16460
16461 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16462 (compute_metrics): Don't set failure if we just cleared the cache.
16463 (w32_weight_table): Remove unused variable.
16464 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16465 backwards compatibility.
16466
164672008-05-25 Kenichi Handa <handa@m17n.org>
16468
16469 * w32term.c (x_draw_glyph_string):
16470 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16471
16472 * xfaces.c: Delete unused function prototypes.
16473 (xstrlwr, font_frame): Delete them.
16474 (clear_face_cache): Delete unused variable.
16475
16476 * xftfont.c (xftfont_open): Delete unused variable.
16477 If underline_thickness is not 1, adjust underline_position.
16478
16479 * ftxfont.c (ftxfont_open): Delete unused variable.
16480
16481 * fontset.c (face_for_char): Optimize for the case of no charset
16482 property.
16483
16484 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16485 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16486 (otf_open, font_otf_capability, generate_otf_features)
16487 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16488 Comment out by surrounding "#if 0" and "#endif" for the moment.
16489 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16490 (syms_of_font): Codes for accessing above commented out.
16491
164922008-05-24 Eli Zaretskii <eliz@gnu.org>
16493
16494 * w32proc.c: Include dispextern.h.
16495
16496 * w32.c: Include dispextern.h.
16497
164982008-05-23 Juanma Barranquero <lekktu@gmail.com>
16499
16500 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16501 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16502 Fix typos in docstrings.
16503
165042008-05-23 Jason Rumney <jasonr@gnu.org>
16505
16506 * xsmfns.c: Remove includes that are already included by config.h.
16507
165082008-05-23 Kenichi Handa <handa@m17n.org>
16509
16510 * charset.c (Qemacs, charset_emacs): New variables.
16511 (char_charset): Fix for non-Unicode characters.
16512 (syms_of_charset): Define charset_emacs.
16513
16514 * w32term.c (x_draw_glyph_string): Be sure to update
16515 s->underline_thickness and s->underline_position. Be sure to draw
16516 underline within the current line area.
16517
16518 * xterm.c (x_draw_glyph_string): Be sure to update
16519 s->underline_thickness and s->underline_position. Be sure to draw
16520 underline within the current line area.
16521
16522 * fontset.c: Delete unused variables and add casting for char *
16523 throughout the file.
16524 (fontset_font): Try the fallback fonts of the current fontset
16525 before consulting the default fontset.
16526
16527 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16528
16529 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16530
165312008-05-22 Jason Rumney <jasonr@gnu.org>
16532
16533 * font.c: Don't include strings.h.
16534
16535 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16536
16537 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16538 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16539 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16540 to call xstrcasecmp.
16541
16542 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16543
16544 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16545
16546 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16547
16548 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16549
165502008-05-22 Kenichi Handa <handa@m17n.org>
16551
16552 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16553
16554 * font.c (font_prop_validate_style): Adjust for the format
16555 change of font_style_table.
16556
16557 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16558 two args.
16559
16560 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16561 two args.
16562
165632008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16564
16565 * minibuf.c (keys_of_minibuf): Delete.
16566 * lisp.h (keys_of_minibuf): Delete.
16567 * emacs.c (main): Don't call keys_of_minibuf.
16568
165692008-05-22 Kenichi Handa <handa@m17n.org>
16570
16571 * ftfont.c (ftfont_resolve_generic_family): Rename from
16572 ftfont_list_generic_family. Return a single family for each
16573 generic family.
16574 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16575 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16576 Call font_add_log.
16577 (ftfont_match): Call font_add_log.
16578
16579 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16580 (FONT_DEBUG): Define it.
16581 (font_add_log): Extern it.
16582 (font_assert): Rename from xassert.
16583
16584 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16585 (xfont_list_family): Call font_add_log.
16586 (xfont_match): Likewise.
16587 (memq_no_quit): Delete.
16588
16589 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16590 call of Ffont_xlfd_name.
16591
16592 * xfaces.c (struct table_entry, slant_table, weight_table)
16593 (swidth_table): Move to font.c.
16594
16595 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16596 xassert are changed to font_assert. Delete many unused variables.
16597 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16598 New variables.
16599 (struct table_entry): Move from xfaces.c and modified.
16600 (weight_table, slant_table, width_table): Move from xfaces.c and
16601 contents adjusted for the change of struct table_entry.
16602 (font_style_to_value, font_style_symbolic): Adjust for the
16603 format change of font_style_table.
16604 (font_parse_family_registry): Don't overwrite existing foundry and
16605 family of font_spec.
16606 (font_score): Fix calculation of diff for sizes.
16607 (font_sort_entites): Call font_add_log.
16608 (font_delete_unmatched): Return a newly created list.
16609 (font_list_entities): Fix previous change. Call font_add_log.
16610 (font_matching_entity, font_open_entity, font_close_entity):
16611 Call font_add_log.
16612 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16613 (Finternal_set_font_style_table): Delete.
16614 (BUILD_STYLE_TABLE): New macro.
16615 (build_style_table): New function.
16616 (Vfont_log, font_log_env_checked): New variables.
16617 (font_add_log): New function.
16618 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16619 Declare Lisp variables "font-weight-table", "font-slant-table",
16620 "font-width-table", and "font-log". Initialize font_style_table.
16621
166222008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16623
16624 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16625
166262008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16627 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16628
16629 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16630 (Vframe_alpha_lower_limit): New variable.
16631 (x_set_alpha): New function.
16632
16633 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16634
16635 * xfns.c (x-create-frame, Qalpha):
16636 Initialize the frame parameter `alpha'.
16637 * xterm.c (OPAQUE, OPACITY): New.
16638 (x_set_frame_alpha): New function.
16639 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16640
16641 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16642 * w32fns.c (w32_frame_parm_handlers): Likewise.
16643
166442008-05-20 Jason Rumney <jasonr@gnu.org>
16645
16646 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16647 truetype fonts to opentype list.
16648
166492008-05-20 Juanma Barranquero <lekktu@gmail.com>
16650
16651 * fontset.c (Ffontset_info): Doc fix.
16652 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16653 <ignore-relative-composition>: Fix typos in docstrings.
16654
16655 * font.c (syms-of-font) <font-encoding-alist>:
16656 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16657 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16658 (Ffont_otf_alternates): Doc fixes.
16659
166602008-05-20 Kenichi Handa <handa@m17n.org>
16661
16662 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16663 font.h through out the file.
16664 (FONT_DRIVERS): Rename from FONTOBJ.
16665 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16666 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16667
16668 * emacs.c (main): Call syms_of_font unconditionally.
16669
16670 * font.h (find_font_encoding): Extern it.
16671
16672 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16673 fontset.c.
194d44e7 16674 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
16675 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16676 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16677 only when HAVE_WINDOW_SYSTEM is defined.
16678 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16679 when HAVE_WINDOW_SYSTEM is defined.
16680
16681 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16682 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16683
16684 * xfaces.c: Include font.h unconditionally.
16685 (merge_face_ref, merge_face_vectors)
16686 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16687
166882008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16689
16690 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16691 indirect_variable.
16692 * eval.c (lisp_indirect_variable): New fun.
16693 (Fuser_variable_p): Use it.
16694
166952008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16696
16697 * lisp.h (indirect_variable):
16698 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16699 Use Lisp_Symbol pointers rather than Lisp_Object.
16700 Adjust callers.
16701 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16702 To this end, change calling-convention.
16703
16704 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16705 if some non-hidden buffers are selected by string&pred.
16706
167072008-05-19 Chong Yidong <cyd@stupidchicken.com>
16708
16709 * process.c (wait_reading_process_output): Always check status
16710 when in batch mode.
16711
167122008-05-19 Kenichi Handa <handa@m17n.org>
16713
16714 * font.c (font_list_entities): Fix handling of cache.
16715 (font_matching_entity): Likewise.
16716
16717 * ftfont.c (cs_iso8859_1): Delete.
16718 (ft_face_cache): New variable.
16719 (struct ftfont_info): New member fc_charset_idx.
16720 (ftfont_build_basic_charsets): Delete.
16721 (fc_charset_table): New variable.
16722 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16723 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16724 Callers changed.
16725 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16726 (ftfont_spec_pattern): New argument fc_charset_idx.
16727 Check registry more rigidly. Change callers.
16728 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16729 change of :font-entity property of the font.
16730
16731 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16732 property of the font.
16733
167342008-05-18 Juanma Barranquero <lekktu@gmail.com>
16735
16736 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16737 (Funencodable_char_position, Fcheck_coding_systems_region)
16738 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16739 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16740 (Ffind_operation_coding_system, Fset_coding_system_priority)
16741 (Fcoding_system_eol_type): Doc fixes.
16742
167432008-05-17 Glenn Morris <rgm@gnu.org>
16744
16745 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16746
167472008-05-16 Eli Zaretskii <eliz@gnu.org>
16748
16749 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16750 and st_gid.
16751
16752 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16753 HAVE_WINDOW_SYSTEM is not defined.
16754
16755 * xfaces.c (merge_face_ref, merge_face_vectors)
16756 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16757 HAVE_WINDOW_SYSTEM is defined.
16758 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16759
167602008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16761
16762 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16763
167642008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16765
16766 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16767
167682008-05-15 Kenichi Handa <handa@m17n.org>
16769
16770 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16771 preference.
16772
167732008-05-15 Glenn Morris <rgm@gnu.org>
16774
16775 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16776
167772008-05-15 Chong Yidong <cyd@stupidchicken.com>
16778
16779 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16780 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16781
16782 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16783
167842008-05-15 Kenichi Handa <handa@m17n.org>
16785
16786 * ftfont.c (ftfont_list): Downcase family name to check generic
16787 families.
16788
16789 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16790 font-spec for QCfont value.
16791
16792 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16793 buffer. Check the return value of it.
16794
167952008-05-14 Jason Rumney <jasonr@gnu.org>
16796
16797 * w32term.c (w32_get_glyph_overhangs): Remove.
16798 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16799
168002008-05-14 Kenichi Handa <handa@m17n.org>
16801
16802 * font.c (font_prop_validate): Make nil a valid value.
16803 (font_clear_cache): Check if the cached vector of entities is nil
16804 or not.
16805
168062008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16807
16808 * emacs.c (main_thread): Conditionalize on
16809 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16810 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16811
16812 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16813 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16814 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16815
168162008-05-14 Kenichi Handa <handa@m17n.org>
16817
16818 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16819 has no corresponding coding system.
16820
168212008-05-14 Jason Rumney <jasonr@gnu.org>
16822
16823 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16824
16825 * w32font.h (w32font_open_internal): Update declaration.
16826
16827 * w32font.c (w32font_open_internal): Change last argument from
16828 w32font_info struct to font object. Fill in font object from
16829 font_entity. Get Outline metrics if possible. Use them to
16830 calculate underline position and thickness. Use xlfd name as name
16831 property. Don't set codepage.
16832 (w32font_open): Pass font_object to w32font_open_internal. Don't
16833 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16834 (w32font_draw): Use s->font.
16835 (clear_cached_metrics): Don't clear non-existent blocks.
16836
16837 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16838 font was not found.
16839 (x_draw_glyph_string): Use underline position and thickness from font.
16840
16841 * w32uniscribe.c (uniscribe_open): Pass font_object to
16842 w32font_open_internal.
16843
168442008-05-14 Kenichi Handa <handa@m17n.org>
16845
16846 These changes are to delete all legacy font-handling codes, and
16847 make Emacs use only font-backends.
16848
16849 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16850 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16851
16852 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16853
16854 * charset.h (Vcharset_non_preferred_head)
16855 (Vcurrent_iso639_language): Extern them.
16856
16857 * charset.c (Vcharset_non_preferred_head): New variable.
16858 (Vcurrent_iso639_language): New variable.
16859 (syms_of_charset): Declare it as a Lisp variable.
16860 (char_charset): Don't check non preferred charsets. As a last
16861 resort, return charset_unicode.
16862 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16863
16864 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16865 conditionals. Don't check enable_font_backend. Delete all codes
16866 used only when USE_FONT_BACKEND is not defined.
16867
16868 * dispextern.h (struct glyph_string): Change type of `font' to
16869 `struct font *'.
16870 (struct glyph_string): New member underline_position and
16871 underline_thickness.
16872 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16873 (struct face): Change type of `font' to `struct font *'. Remove
16874 members `font_name', `font_info_id'.
16875 (per_char_metric, encode_char): Delete externs.
16876 (calc_pixel_width_or_height): Adjust the prototype.
16877
16878 * emacs.c (enable_font_backend): Delete extern.
16879 (main): Don't set enable_font_backend. Don't check the command
16880 line argument "-disable-font-backend".
16881
16882 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16883 (enum font_property_index): New members FONT_DPI_INDEX,
16884 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16885 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16886 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16887 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16888 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16889 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16890 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16891 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16892 (struct font_spec, struct font_entity): New structs.
16893 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16894 (struct font): Many members from old "struct font_info" moved to
16895 here. Members font and entity deleted.
16896 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16897 the new font-related objects.
16898 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16899 (CHECK_FONT_GET_OBJECT): Likewise.
16900 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16901 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16902 (struct font_driver): New members case_sensitive anc check. Type
16903 of the member list and open changed.
16904 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16905 (font_symbolic_width, font_find_object, font_get_spec)
16906 (font_set_lface_from_name): Delete extern.
16907 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16908
16909 * font.c: Include <strings.h>.
16910 (enable_font_backend): Delete it.
16911 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16912 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16913 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16914 (null_string): Delete it.
16915 (null_vector): Make it static.
16916 (font_family_alist): Delete it.
16917 (Qnormal): Extern it.
16918 (QCextra, QClanguage): Delete it.
16919 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16920 (font_make_spec, font_make_entity, font_make_object)
16921 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16922 the string. Callers changed.
16923 (font_pixel_size): Adjusted for the format change of font-related
16924 objects.
16925 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16926 (font_style_to_value, font_style_symbolic): New function.
16927 (build_font_family_alist): Delete it.
16928 (font_registry_charsets): Use Fassoc_string instead of
16929 assq_no_quit.
16930 (font_prop_validate_symbol): Don't return null_string.
16931 (font_prop_validate_style): Adjusted for the change of
16932 style-related values in a font vector.
16933 (font_property_table): Delete entries for QClanguage and
16934 QCantialias, add entries for QCavgwidth.
16935 (get_font_prop_index): Delete the 2nd argument FROM.
16936 (font_prop_validate): Arguments changed.
16937 (font_put_extra): Adjusted for the change of font-related objects.
16938 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16939 (font_parse_fcname, font_unparse_fcname)
16940 (font_prepare_composition): Likewise.
16941 (font_parse_family_registry): Renamed from font_merge_old_spec.
16942 (otf_open): Delete the 1st arg entity.
16943 (font_otf_capability): Adjusted for the above change.
16944 (font_score): New arg alternate_families. Adjusted for the change
16945 of font-related objects.
16946 (font_sort_entites): New arg best_only.
16947 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16948 Delete them.
16949 (font_match_p): Check alternate families.
16950 (font_find_object): Delete it.
16951 (font_check_object): New function.
16952 (font_clear_cache): Adjusted for the change of font-related objects.
16953 (font_delete_unmatched): New arg.
16954 (font_list_entities): Call font_driver->list with a spec that
16955 doesn't specify style-related properties.
16956 (font_matching_entity): Arguments changed. Caller changed.
16957 (font_open_entity): Adjusted for the change of font-related objects.
16958 (font_close_object, font_has_char, font_encode_char)
16959 (font_get_name, font_get_spec): Likewise.
16960 (font_spec_from_name, font_clear_prop, font_update_lface):
16961 New functions.
16962 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16963 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16964 (font_at): Adjusted for the change of font-related objects.
16965 (font_range): New function.
16966 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16967 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16968 (Fcopy_font_spec, Fmerge_font_spec): New function.
16969 (Ffont_family_list): Renamed from list-families.
16970 (Finternal_set_font_style_table): Arguments changed.
16971 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16972 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16973 change of font-related objects.
16974 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16975
16976 * fontset.h (struct font_info): Delete it. Most members go to
16977 struct font.
16978 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16979 (enum FONT_SPEC_INDEX): Delete it.
16980 (font_info, list_fonts_func, load_font_func, query_font_func)
16981 (set_frame_fontset_func, find_ccl_program_func)
16982 (get_font_repertory_func, new_fontset_from_font_name): Delete
16983 externs.
16984 (fontset_from_font_name): Extern it.
16985 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16986 (FONT_INFO_FROM_FACE): Deleted.
16987 (face_for_font): Adjust prototype.
16988
16989 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16990 conditionals. Don't check enable_font_backend. Delete all codes
16991 used only when USE_FONT_BACKEND is not defined.
16992 (get_font_info_func, list_font_func, load_font_func)
16993 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16994 (get_font_repertory_func): Delete them.
16995 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16996 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16997 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16998 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16999 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
17000 (fontset_compare_rfontdef): New function.
17001 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
17002 rfont-defs by qsort. Adjusted for the change of font-group vector.
17003 (load_font_get_repertory): Deleted.
17004 (fontset_find_font): Use new macros to ref/set elements of
17005 font-def and rfont-def.
17006 (fontset_font): Fix the timing of remembering that no font for C.
17007 (free_face_fontset): Do nothing if the face has no fontset.
17008 (face_suitable_for_char_p): Use new macros to ref/set elements of
17009 rfont-def.
17010 (face_for_char): Likewise. Call face_for_char with font_object.
17011 (fs_load_font): Delete. Delete #pragma surrounding it.
17012 (fs_query_fontset): Use strcasecmp instead of strcmp.
17013 (generate_ascii_font_name): Adjusted for the format change of
17014 font-spec.
17015 (Fset_fontset_font): Likewise. Use new macros to set elements of
17016 font-def.
17017 (Fnew_fontset): Use font_unparse_xlfd to generate
17018 FONTSET_ASCII (fontset).
17019 (new_fontset_from_font_name): Deleted.
17020 (fontset_from_font): Renamed from new_fontset_from_font. Check if
17021 a fontset is already created for the font. FIx updating of
17022 Vfontset_alias_alist.
17023 (fontset_ascii_font): Deleted.
17024 (Ffont_info): Adjusted for the format change of font-spec.
17025 (Finternal_char_font): Likewise.
17026 (Ffontset_info): Likewise.
17027 (syms_of_fontset): Don't check load_font_func.
17028
17029 * fns.c (internal_equal): Handle PREV_FONT.
17030
17031 * frame.h: Delete USE_FONT_BACKEND conditional.
17032
17033 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
17034 conditionals. Don't check enable_font_backend. Delete all codes
17035 used only when USE_FONT_BACKEND is not defined.
17036 (x_set_font): Call x_new_font, not x_new_fontset2.
17037 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
17038 already set for the frame.
17039
17040 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
17041 a font-entity by font_make_entity. Use font_intern_prop instead
17042 of intern_downcase. Use FONT_SET_STYLE to set a style-related
17043 font property. If a font is scalable, set avgwidth property to 0.
17044 Set font-entity property by font_put_extra.
17045 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
17046 (ffont_driver): Adjusted for the change of struct font_driver.
17047 (ftfont_spec_pattern): New function.
17048 (ftfont_list): Return a list, not vector.
17049 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
17050 (ftfont_list_family): Don't downcase names.
17051 (ftfont_free_entity): Deleted.
17052 (ftfont_open): Return a font-object. Adjusted for the change of
17053 struct font. Get underline_thickness and underline_position from
17054 font property. Don't update dpyinfo->smallest_font_height and
17055 dpyinfo->smallest_char_width.
17056 (ftfont_close): Don't free `struct font'.
17057 (ftfont_has_char): Adjusted for the format change of font-entity.
17058 (ftfont_encode_char, ftfont_text_extents): Likewise.
17059
17060 * ftxfont.c (ftxfont_list): Return a list, not vector.
17061 (ftxfont_open): Return a font-object. Adjusted for the change of
17062 struct font. Get underline_thickness and underline_position from
17063 font property. Don't update dpyinfo->smallest_font_height and
17064 dpyinfo->smallest_char_width.
17065 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
17066 (ftxfont_draw): Adjusted for the change of struct font.
17067
17068 * image.c (image_ascent): Don't include "charset.h". Include
17069 "character.h" and "font.h".
17070
17071 * lisp.h (enum pvec_type): New member PREV_FONT.
17072 (Fassoc_string): EXFUN it.
17073
17074 * print.c: Include font.h.
17075 (print_object): Handle font-related objects.
17076
17077 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
17078 conditionals. Don't check enable_font_backend. Delete all codes
17079 used only when USE_FONT_BACKEND is not defined.
17080 (handle_auto_composed_prop): Do nothing if it->f is not on a
17081 window system. Check how many following characters can be
17082 displayed by the same font.
17083 (calc_pixel_width_or_height): Type of the 4th arg is changed to
17084 'struct font *'.
17085 (get_char_face_and_encoding): Assign the whole encoding task to
17086 the `encode-char' method of a font driver.
17087 (fill_composite_glyph_string): Adjusted for the change of `struct
17088 face' and `struct glyph_string'.
17089 (fill_glyph_string): Likewise.
17090 (get_per_char_metric): Arguments changed.
17091 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
17092 and `struct glyph_string'.
17093 (produce_stretch_glyph, calc_line_height_property)
17094 (x_produce_glyphs): Likewise.
17095
17096 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
17097 conditionals. Don't check enable_font_backend. Delete all codes
17098 used only when USE_FONT_BACKEND is not defined. Use
17099 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
17100 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
17101 (Qp): Extern them.
17102 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
17103 Deleted.
17104 (struct font_name): Deleted.
17105 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
17106 (compare_fonts_by_sort_order): New function.
17107 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
17108 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
17109 Deleted.
17110 (Fx_family_fonts): Use font_list_entities, and sort fonts by
17111 compare_fonts_by_sort_order.
17112 (Fx_font_family_list): Call Ffont_family_list.
17113 (face_numeric_value, face_numeric_weight, face_numeric_slant)
17114 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
17115 (face_symbolic_slant, face_symbolic_swidth)
17116 (split_font_name_into_vector, build_font_name_from_vector)
17117 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
17118 (font_rescale_ratio, split_font_name, build_font_name)
17119 (free_font_names, sort_fonts, x_face_list_fonts)
17120 (face_font_available_p, sorted_font_list, cmp_font_names)
17121 (font_list_1, concat_font_list, font_list, remove_duplicates):
17122 Deleted.
17123 (Fx_list_fonts): Use Ffont_list.
17124 (LFACE_AVGWIDTH): Deleted.
17125 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
17126 by FONTP.
17127 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
17128 (set_lface_from_font_name): Delete it.
17129 (set_lface_from_font): Renamed from
17130 set_lface_from_font_and_fontset. Caller changed. Don't set
17131 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
17132 for face.
17133 (merge_face_vectors): Copy font-spec if necessary.
17134 Clear properties of the font-spec if necessary.
17135 (merge_face_ref): Clear properties of the font-spec if necessary.
17136 (Finternal_set_lisp_face_attribute): Likewise.
17137 (set_font_frame_param): Use font_load_for_lface to load a
17138 font-object, and call Fmodify_frame_parameters with it.
17139 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
17140 font name by Ffont_xlfd_name.
17141 (Finternal_lisp_face_attribute_values): Don't check QCweight,
17142 QCslant, and QCwidth.
17143 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
17144 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
17145 Compare fonts by EQ.
17146 (lookup_non_ascii_face): Deleted.
17147 (face_for_font): The 2nd argument changed.
17148 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
17149 Check atomic font properties by case insensitive.
17150 (realize_non_ascii_face): Set face->overstrike correctly.
17151 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
17152 (dump_realized_face): Get font name from
17153 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
17154
17155 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
17156 conditionals. Don't check enable_font_backend. Delete all codes
17157 used only when USE_FONT_BACKEND is not defined.
17158 (xic_create_xfontset): Original code deleted and renamed from
17159 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
17160 (x_make_gc): Don't set GCFont in GCs.
17161 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
17162 opened by "fixed".
17163 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
17164 find_ccl_program_func, query_font_func, set_frame_fontset_func,
17165 get_font_repertory_func.
17166
17167 * xfont.c: Include <stdlib.h> and "ccl.h".
17168 (struct xfont_info): New structure.
17169 (xfont_query_font): Deleted.
17170 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17171 moved from xterm.c.
17172 (xfont_driver): Adjusted for the change of struct font_driver.
17173 (compare_font_names): New function.
17174 (xfont_list_pattern): Sort font names case insensitively. Make
17175 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
17176 (xfont_list): Return a list, not vector.
17177 (xfont_match): If the font doesn't have QCname property, generate
17178 a name from the other font properties.
17179 (xfont_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 (xfont_close): Don't free struct font.
17184 (xfont_prepare_face): Adjusted for the change of struct font.
17185 (xfont_done_face): Deleted.
17186 (xfont_has_char): Adjusted for the change of struct font.
17187 (xfont_encode_char, xfont_draw): Likewise.
17188 (xfont_check): New function.
17189
17190 * xftfont.c (xftfont_list): Adjusted for the change of `list'
17191 callback function.
17192 (xftfont_match): Adjusted for the format change of font-entity.
17193 (xftfont_open): Adjusted for the format change of font-entity and
17194 font-object. Adjusted for the change of struct font. Return a
17195 font-object. Don't update dpyinfo->smallest_font_height and
17196 dpyinfo->smallest_char_width.
17197 (xftfont_close): Block input while calling XftFontClose.
17198 (xftfont_prepare_face): Don't block input while calling
17199 xftfont_get_colors. Adjusted for the change of struct font.
17200 (xftfont_shape): Return value of error case fixed.
17201
17202 * xrdb.c (x_load_resources): Don't setup a fontset resource.
17203
17204 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17205 conditionals.
17206 (FONT_WIDTH): Return (f)->max_width.
17207 (struct x_display_info): Delete member `font'.
17208 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17209 (x_find_ccl_program, x_get_font_repertory): Delete externs.
17210 (struct x_output): Change type of `font' to `struct font *'.
17211
17212 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
17213 conditionals. Don't check enable_font_backend. Delete all codes
17214 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
17215 (x_per_char_metric, x_encode_char): Deleted.
17216 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17217 (x_compute_glyph_string_overhangs): Adjusted for the change of
17218 `struct face'.
17219 (x_draw_glyph_string_foreground)
17220 (x_draw_composite_glyph_string_foreground): Likewise.
17221 (x_draw_glyph_string): Likewise. Use font->underline_position and
17222 font->underline_thickness.
17223 (x_new_font): Renamed from x_new_fontset2.
17224 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17225 (x_check_font): Call `check' method of a font driver.
17226 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17227 (x_query_font, x_get_font_repertory): Deleted.
17228 (x_find_ccl_program): Renamed and moved to xfont.c.
17229 (x_redisplay_interface): Adjusted for the change of `struct
17230 redisplay_interface'.
17231
17232 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17233 conditionals. Don't check enable_font_backend. Delete all codes
17234 used only when USE_FONT_BACKEND is not defined. Surround non-used
17235 code by "#ifdef OLD_FONT" and "endif".
17236 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17237
17238 * w32font.h (struct w32font_info): New member.
17239 (FONT_COMPAT): New macro.
17240 (w32font_open_internal): Prototype adjusted.
17241
17242 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17243 OLD_FONT" and "endif".
17244
17245 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17246 conditionals. Don't check enable_font_backend. Delete all codes
17247 used only when USE_FONT_BACKEND is not defined.
17248 (w32font_open): Return a font-object. Make a font-object by
17249 font_make_object. Adjusted for the change of struct w32font_info.
17250 (w32font_close): Don't free struct font. Adjusted for the change
17251 of struct w32font_info.
17252 (w32font_encode_char, w32font_text_extents, w32font_draw):
17253 Adjusted for the change of struct w32font_info.
17254 (w32font_draw): Likewise.
17255 (w32font_list_internal): Return a list, not vector.
17256 (w32font_open_internal): Change the 4th arg to font-object.
17257 Adjusted for the change of struct w32font_info and font-object format.
17258 (add_font_name_to_list): Don't downcase names.
17259 (w32_enumfont_pattern_entity): Make a font-entity by
17260 font_make_entity. Adjusted for the format change of font-entity.
17261 Use FONT_SET_STYLE to set a style-related font property. If a
17262 font is scalable, set avgwidth property to 0. Set font-entity
17263 property by font_put_extra.
17264 (font_matches_spec): Adjusted for the format change of font-entity.
17265 (w32_weight_table, w32_decode_weight): New variables.
17266 (w32_encode_weight): New function.
17267 (fill_in_logfont): Adjusted for the format change of font-spec.
17268 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17269 weight value.
17270 (w32font_driver): Adjusted for the change of struct font_driver.
17271
17272 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17273 conditionals. Don't check enable_font_backend. Surround non-used
17274 code by "#ifdef OLD_FONT" and "endif".
17275 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17276 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17277
17278 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17279 conditionals. Don't check enable_font_backend. Delete all codes
17280 used only when USE_FONT_BACKEND is not defined. Surround non-used
17281 code by "#ifdef OLD_FONT" and "endif".
17282
17283 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17284 (uniscribe_open): Return value changed to font-object.
17285 Adjusted for the format change of font-object.
17286 (uniscribe_otf_capability): Adjusted for the change of struct font.
17287 (add_opentype_font_name_to_list): Don't downcase names.
17288 (uniscribe_font_driver): Adjusted for the change of struct
17289 font_driver.
17290
172912008-05-13 Chong Yidong <cyd@stupidchicken.com>
17292
17293 * dispnew.c (update_frame_1): Check if tty output is still valid
17294 before flushing it.
17295
172962008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17297
17298 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17299 to Gtk+ menus.
17300
173012008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17302
17303 * dired.c (file_name_completion): Tweak the code so as to always do it
17304 in a single pass. Tighten the scope of some variables.
17305
17306 * dired.c (Qdefault_directory): New var.
17307 (file_name_completion): Use it instead of Fexpand_file_name.
17308 (syms_of_dired): Initialize it.
17309
173102008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17311
17312 * fileio.c (double_dollars): Remove dead code.
17313
173142008-05-10 Eli Zaretskii <eliz@gnu.org>
17315
17316 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17317 Mention w32-get-true-file-attributes in doc string.
17318
17319 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17320
173212008-05-09 Glenn Morris <rgm@gnu.org>
17322
17323 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17324 2008-04-23.
17325
173262008-05-09 Eli Zaretskii <eliz@gnu.org>
17327
17328 Support for reporting owner and group of each file on MS-Windows:
17329 * dired.c (stat_uname, stat_gname): New functions, with special
17330 implementation for w32.
17331 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17332
17333 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17334 (dflt_group_name): New static variable.
17335 (dflt_group): Rename from the_group.
17336 (init_user_info): Init dflt_group fields. Get user's group name
17337 from LookupAccountSid.
17338 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17339 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17340 New initialization states.
17341 (globals_of_w32): Initialize them to zero. Initialize the default
17342 group name to "None".
17343 (GetFileSecurity_Name): New global var, the name of the function
17344 to call for GetFileSecurity.
17345 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17346 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17347 (get_file_security, get_security_descriptor_owner)
17348 (get_security_descriptor_group, is_valid_sid)
17349 (get_file_security_desc, get_rid, get_name_and_id)
17350 (get_file_owner_and_group): New functions.
17351 (stat): Use get_file_security_desc and get_file_owner_and_group to
17352 report the owner and primary group of each file. Don't ignore the
17353 high 32 bits of file's size, now that st_size is 64-bit wide.
17354 Fix test when to get true file attributes.
17355 (init_user_info): Use get_rid instead of equivalent inline code.
17356 (fstat): Don't ignore the high 32 bits of file's size.
17357
173582008-05-09 Chong Yidong <cyd@stupidchicken.com>
17359
17360 * image.c (png_load): Use correct bit-depth for setting background
17361 color.
17362
173632008-05-08 Eli Zaretskii <eliz@gnu.org>
17364
17365 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17366 epa-hook.elc.
17367
173682008-05-08 Juanma Barranquero <lekktu@gmail.com>
17369
17370 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17371
173722008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17373
17374 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17375 because the original parameters are in pure storage now.
17376 (mac_window): Remove unused params. Update callers.
17377
173782008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17379
17380 * lread.c (substitute_object_recurse): Use lower-level primitives.
17381 Don't signal errors when traversing sub-char-tables.
17382 Don't loop over all the possible characters when traversing char-tables.
17383
17384 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17385 just like we do in print.c.
17386
173872008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17388
17389 * minibuf.c (Ftry_completion): Remove code left over from when we used
17390 scmp instead of Fcompare_strings.
17391
173922008-05-04 Juanma Barranquero <lekktu@gmail.com>
17393
17394 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17395
173962008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17397
17398 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17399 Create bitmap context in native byte order.
17400
17401 * macterm.c (XDrawLine)
17402 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17403 context in native byte order.
17404
174052008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17406
17407 * config.in: Regenerate.
17408
17409 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17410 New definitions for Image I/O support.
17411 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17412 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17413 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17414 (mac_data_provider_release_data, image_load_image_io)
17415 [USE_MAC_IMAGE_IO]: New functions.
17416 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17417 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17418 (init_image_func_pointer) [MAC_OSX]: Remove function.
17419 (image_load_quartz2d) [MAC_OSX]: Check availability of
17420 CGImageCreateWithPNGDataProvider at compile time.
17421 Use lowercase `false' for boolean constant.
17422 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17423 Use image_load_image_io.
17424 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17425 Don't check MyCGImageCreateWithPNGDataProvider.
17426 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17427 Don't call init_image_func_pointer.
17428
17429 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17430
17431 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17432 Make variable non-static.
17433 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17434 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17435
17436 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17437 (RED_FROM_ULONG): Mask off higher bits.
17438 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17439
17440 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17441 Include AvailabilityMacros.h.
17442 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17443 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17444
174452008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17446
17447 * chartab.c (Fset_char_table_range): If range is t, really set all
17448 chars to that value.
17449
174502008-05-03 Eli Zaretskii <eliz@gnu.org>
17451
17452 * dired.c (Ffile_attributes): Don't allow the device number become
17453 negative.
17454
174552008-05-02 Daiki Ueno <ueno@unixuser.org>
17456
17457 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17458
174592008-05-02 Juri Linkov <juri@jurta.org>
17460
17461 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17462 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17463 DEFAULT argument as a list of default values in docstrings.
17464
174652008-05-01 Chong Yidong <cyd@stupidchicken.com>
17466
17467 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17468
174692008-05-01 Martin Rudalics <rudalics@gmx.at>
17470
17471 * dispnew.c (change_frame_size_1): Preserve small windows when
17472 shrinking frames by calling set_window_height|width with third
17473 arg 2.
17474
17475 * window.h (struct window): Replace field too_small_ok by field
17476 resize_proportionally.
17477
17478 * window.c (make_window): Initialize resize_proportionally.
17479 (enlarge_window): Temporarily set resize_proportionally to make
17480 sure that shrink_windows does scale the window proportionally.
17481 (shrink_windows): When window has resize_proportionally set try
17482 to shrink it proportionally by stealing from other windows.
17483 (struct saved_window, Fset_window_configuration)
17484 (compare_window_configurations): Handle resize_proportionally.
17485 (WINDOW_TOTAL_SIZE): New macro.
17486 (window_min_size, shrink_windows, size_window): Use it.
17487 (check_min_window_sizes): Remove. Invalid values of
17488 window-min-height|width are handled by window_min_size_2 now.
17489 (size_window, Fsplit_window, enlarge_window)
17490 (adjust_window_trailing_edge, grow_mini_window): Don't call
17491 check_min_window_sizes.
17492 (window_min_size_2, window_min_size_1, window_min_size):
17493 New argument safe_p for retrieving "safe" minimum sizes.
17494 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17495 (adjust_window_trailing_edge, grow_mini_window):
17496 Adjust arguments of window_min_size... functions.
17497 (shrink_windows): Argument min_size removed. New argument
17498 safe_p allows shrinking windows to their safe minimum sizes.
17499 Calculate minimum size and decide whether a window shall be
17500 deleted for each window individually.
17501 (size_window): When nodelete_p equals 2, tell shrink_windows to
17502 delete windows only if their new minimum size is no more safe.
17503 (shrink_window_lowest_first): Call window_min_size_1 to make
17504 sure to preserve modeline of bottom-most window when resizing
17505 the minibuffer.
17506 (Fset_window_configuration, Fcurrent_window_configuration)
17507 (compare_window_configurations): Do not handle
17508 window-min-height|width any more.
17509 (syms_of_window): Clarify window-min-height|width doc-strings.
17510
175112008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17512
17513 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17514 some more. Copy some of the code from Ftry_completions.
17515 Remove special case code that dates back to initial revision when the
17516 slash was only added when necessary and that can't trigger nowadays.
17517
175182008-04-27 Kenichi Handa <handa@m17n.org>
17519
17520 * font.c (font_prop_validate): Signal `error' instead of `font'.
17521
175222008-04-29 Jason Rumney <jasonr@gnu.org>
17523
17524 * w32fns.c (Fw32_battery_status): New defun.
17525 (syms_of_w32fns): Defsubr it.
17526
175272008-04-28 Andreas Schwab <schwab@suse.de>
17528
17529 * dired.c (file_name_completion): Fix another mixing of encoded
17530 and decoded names.
17531
175322008-04-28 Juanma Barranquero <lekktu@gmail.com>
17533
17534 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17535
175362008-04-27 Juanma Barranquero <lekktu@gmail.com>
17537
17538 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17539
175402008-04-27 Andreas Schwab <schwab@suse.de>
17541
17542 * dired.c (file_name_completion): Fix inappropriate mixing of
17543 encoded and decoded names.
17544
17545 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17546
17547 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17548
175492008-04-26 Eli Zaretskii <eliz@gnu.org>
17550
17551 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17552 2008-03-31, it's not needed anymore with `struct stat' definition
17553 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17554 for the same reasons.
17555
175562008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17557
17558 * m/sparc.h: Additional redefinitions for GNU/Linux.
17559
175602008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17561
17562 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17563 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17564 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17565 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17566 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17567 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17568 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17569 Likewise.
17570
17571 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17572 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17573 (mac_ax_number_of_characters): Add externs.
17574 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17575 [USE_MAC_TSM]: Likewise.
17576 (mac_handle_text_input_event) [MAC_OSX]:
17577 Handle kEventTextInputOffsetToPos for no active input area case.
17578 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17579 (mac_handle_document_access_event)
17580 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17581 (install_application_handler) [MAC_OSX]: Register handlers for
17582 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17583 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17584 Register mac_handle_document_access_event.
17585
17586 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17587 Make functions non-static.
17588
175892008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17590
17591 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17592 (read_file_name_completion_ignore_case, insert_default_directory)
17593 (Qdefault_directory): Move to minibuffer.el.
17594 (Fread_file_name): Call the new `read-file-name' instead.
17595
175962008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17597
17598 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17599 Make function non-static.
17600 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17601 Remove function.
17602 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17603 Move to mactoolbox.c.
17604 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17605
17606 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17607 (mac_rect_make): New macro.
17608
17609 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17610 instead of float.
17611 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17612 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17613 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17614 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17615 CGRectMake.
17616 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17617 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17618 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17619 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17620 instead of WindowRef in argument type.
17621 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17622 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17623 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17624 instead of DISPLAY. All uses changed.
17625 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17626 (x_calc_absolute_position): Simplify so as not to use
17627 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17628
17629 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17630 instead of WindowRef in argument type.
17631 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17632 [TARGET_API_MAC_CARBON]: Remove externs.
17633 (create_apple_event, mac_event_parameters_to_lisp)
17634 [TARGET_API_MAC_CARBON]: Add externs.
17635
17636 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17637 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17638 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17639 is clicked.
17640 (x_activate_menubar): Remove extern for saved_menu_event_location.
17641 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17642 Move from mac.c.
17643
176442008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17645
17646 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17647 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17648
176492008-04-23 Jason Rumney <jasonr@gnu.org>
17650
17651 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17652 attributes only for local files.
17653
17654 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17655 default to Qlocal.
17656
176572008-04-22 Juri Linkov <juri@jurta.org>
17658
17659 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17660 read-buffer-to-switch instead of using the letter "B".
17661
176622008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17663
17664 * fileio.c (Qdefault_directory): New variable.
17665 (Fread_file_name): Use it to pass `dir' to the completion functions.
17666
176672008-04-20 Chong Yidong <cyd@stupidchicken.com>
17668
17669 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17670
176712008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17672
17673 * keyboard.c (Vpre_help_message): Remove.
17674 (show_help_echo): Remove default C code.
17675
17676 * dired.c (directory_files_internal, file_name_completion):
17677 Only call ENCODE_FILE if the string is indeed decoded.
17678
176792008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17680
17681 * Makefile.in (TOOLKIT_DEFINES): Remove.
17682 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17683
176842008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17685
17686 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17687 (mactoolbox.o): New target.
17688
17689 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17690 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17691
17692 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17693 Use mac_set_frame_window_background instead of XSetWindowBackground.
17694 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17695 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17696 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17697 instead of SetWindowTitleWithCFString.
17698 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17699 Move function to mactoolbox.c.
17700 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17701 Use mac_set_window_modified instead of SetWindowModified.
17702 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17703 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17704 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17705 FrontNonFloatingWindow. Use mac_activate_window instead of
17706 ActivateWindow. Use mac_active_non_floating_window instead of
17707 ActiveNonFloatingWindow.
17708 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17709 Use mac_show_hourglass and mac_hide_hourglass.
17710 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17711 instead of GetGlobalMouse.
17712 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17713 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17714 Use mac_bring_window_to_front instead of BringToFront.
17715 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17716 mactoolbox.c.
17717 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17718 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17719 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17720 mactoolbox.c.
17721
17722 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17723 (XtPointer): Move typedef from macmenu.c.
17724 (enum button_type): Move enum from macmenu.c.
17725 (widget_value): Move typedef from macmenu.c.
17726 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17727 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17728 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17729 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17730 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17731 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17732 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17733 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17734 (Selection): Move typedef from macselect.c.
17735 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17736 macterm.c.
17737 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17738 (mac_is_window_collapsed, mac_bring_window_to_front)
17739 (mac_send_window_behind, mac_hide_window, mac_show_window)
17740 (mac_collapse_window, mac_front_non_floating_window)
17741 (mac_active_non_floating_window, mac_activate_window)
17742 (mac_move_window_structure, mac_move_window, mac_size_window)
17743 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17744
17745 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17746 (enum mac_menu_kind): Move enum to mactoolbox.c.
17747 (min_menu_id): Move variable to mactoolbox.c.
17748 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17749 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17750 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17751 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17752 [TARGET_API_MAC_CARBON]: Likewise.
17753 (XtPointer): Move typedef to macgui.h.
17754 (enum button_type): Move enum to macgui.h.
17755 (widget_value): Move typedef to macgui.h.
17756 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17757 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17758 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17759 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17760 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17761 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17762 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17763 (popup_activated_flag): Make variable non-static.
17764 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17765 (add_menu_item, fill_menu, dispose_menus):
17766 Move functions to mactoolbox.c.
17767 (restore_show_help_function, menu_target_item_handler)
17768 (install_menu_target_item_handler, mac_handle_dialog_event)
17769 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17770 [TARGET_API_MAC_CARBON]: Likewise.
17771 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17772 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17773 (find_and_call_menu_selection, name_is_separator): Make function
17774 non-static.
17775 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17776 to mactoolbox.c.
17777 (set_frame_menubar): Don't call install_menu_quit_handler.
17778 (menu_item_selection): New variable.
17779 (mac_menu_show): Use create_and_show_popup_menu.
17780 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17781 selection but set variable menu_item_selection. All uses changed.
17782 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17783 Call install_menu_quit_handler. Move to mactoolbox.c.
17784
17785 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17786 (Selection): Move typedef to macgui.h.
17787 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17788 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17789 Make variables non-static.
17790 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17791 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17792 Make functions non-static.
17793 (Vmac_service_selection) [MAC_OSX]: Likewise.
17794 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17795 (mac_valid_selection_target_p, mac_clear_selection)
17796 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17797 (mac_put_selection_value, mac_selection_has_target_p)
17798 (mac_get_selection_value, mac_get_selection_target_list)
17799 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17800 Move functions to mactoolbox.c.
17801 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17802 Likewise.
17803 (copy_scrap_flavor_data, mac_handle_service_event)
17804 (install_service_handler) [MAC_OSX]: Likewise.
17805 (syms_of_macselect) <Vmac_dnd_known_types>:
17806 Use mac_dnd_default_known_types.
17807
17808 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17809 Move to mactoolbox.c.
17810 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17811 (Fx_selection_owner_p): Add EXFUN.
17812 (install_window_handler, remove_window_handler, XSetWindowBackground):
17813 Remove externs.
17814 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17815 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17816 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17817 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17818 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17819 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17820 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17821 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17822 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17823 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17824 (mac_valid_selection_target_p, mac_clear_selection)
17825 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17826 (mac_put_selection_value, mac_selection_has_target_p)
17827 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17828 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17829 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17830 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17831 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17832 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17833 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17834 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17835 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17836
17837 * mactoolbox.c: New file.
17838
178392008-04-18 Jason Rumney <jasonr@gnu.org>
17840
17841 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17842
178432008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17844
17845 * character.c (Fmultibyte_char_to_unibyte):
17846 Return latin1 chars unchanged.
17847
17848 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17849 relocated if it points to `name'.
17850
178512008-04-17 Kenichi Handa <handa@m17n.org>
17852
17853 * data.c (Faset): Allow setting a multibyte character in an
17854 ASCII-only unibyte string.
17855
17856 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17857
178582008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17859
17860 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17861 done in config.h.
17862
178632008-04-16 Juanma Barranquero <lekktu@gmail.com>
17864
17865 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17866 (Fchar_direction): Add usage in the docstring.
17867
178682008-04-15 Chong Yidong <cyd@stupidchicken.com>
17869
17870 * keyboard.c (read_key_sequence): Remove always-true checks.
17871
178722008-04-14 Jason Rumney <jasonr@gnu.org>
17873
17874 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17875 compatibility struct, for better underline positioning.
17876
178772008-04-13 David Hansen <david.hansen@gmx.net>
17878
17879 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17880 string.
17881
178822008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17883
17884 * m/hp800.h (XUINT, XSET): Remove.
17885
178862008-04-12 Juanma Barranquero <lekktu@gmail.com>
17887
17888 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17889 previous change.
17890
178912008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17892
17893 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17894 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17895
178962008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17897
17898 * keymap.h (map_keymap_canonical): Declare.
17899 * xmenu.c (single_keymap_panes): Use it.
17900
179012008-04-11 Glenn Morris <rgm@gnu.org>
17902
17903 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17904 set the target's value to that of the alias.
17905
179062008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17907
17908 * term.c (set_tty_color_mode): Left over typo.
17909
179102008-04-10 Michael Albinus <michael.albinus@gmx.de>
17911
17912 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17913 only after check for file name handler functions. Signal, when
17914 native functionality is not supported.
17915 (syms_of_fileio): Declare it unconditionally.
17916
179172008-04-10 Jason Rumney <jasonr@gnu.org>
17918
17919 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17920 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17921
17922 * w32.c (logon_network_drive): Also logon to remote drives that
17923 are mapped to drive letters.
17924
179252008-04-10 Glenn Morris <rgm@gnu.org>
17926
17927 * xdisp.c (truncate-partial-width-windows): Doc fix.
17928
179292008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17930
17931 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17932 Move functions to minibuffer.el.
17933 (syms_of_fileio): Don't declare them.
17934
179352008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17936
17937 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17938 (syms_of_minibuf): Remove its initialization.
17939
17940 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17941
179422008-04-09 Juanma Barranquero <lekktu@gmail.com>
17943
17944 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17945
179462008-04-09 Jason Rumney <jasonr@gnu.org>
17947
17948 * makefile.w32-in (distclean): Delete makefile too.
17949 (maintainer-clean): New target.
17950
17951 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17952
17953 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17954 for new font backend and composite cases.
17955
179562008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17957
17958 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17959 Most of the code moved to run_timers.
17960 (do_pending_atimers): Call run_timers.
17961 (run_timers): New function.
17962
17963 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17964 run atimers.
17965
17966 * process.c (wait_reading_process_output): The same as above.
17967
179682008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17969
17970 * minibuf.c (last_exact_completion): Remove variable.
17971 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17972 (complete_and_exit_1, complete_and_exit_2)
17973 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17974 (Fdisplay_completion_list, display_completion_list_1)
17975 (Fminibuffer_completion_help, Fself_insert_and_exit)
17976 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17977 minibuffer.el.
17978 (syms_of_minibuf): Remove corresponding initializations.
17979
17980 * keyboard.c (Qdeactivate_mark): New var.
17981 (command_loop_1): Use it to call `deactivate-mark'.
17982 (syms_of_keyboard): Initialize it.
17983
17984 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17985 to another frame.
17986 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17987 Don't call set_tty_color_mode.
17988 (store_frame_param): Reset previous_frame rather than call
17989 set_tty_color_mode.
17990 * term.c (set_tty_color_mode): Rewrite.
17991 * dispextern.h (set_tty_color_mode): New type.
17992 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17993
179942008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17995
17996 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17997 for generic chars, which do not exist any more in emacs-unicode.
17998
179992008-04-08 Michael Albinus <michael.albinus@gmx.de>
18000
18001 * coding.c (detect_coding_emacs_mule)
18002 (Ffind_operation_coding_system): Fix typo.
18003
180042008-04-08 Jason Rumney <jasonr@gnu.org>
18005
18006 * w32uniscribe.c (SNAME): Extract only symbol name.
18007
18008 * w32font.h (struct w32_metric_cache): New struct.
18009 (w32font_info): Use it.
18010 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
18011 (CACHE_BLOCKSIZE): New constants.
18012
18013 * w32font.c (Qja, Qko, Qzh): New symbols.
18014 (syms_of_w32font): Initialise them.
18015 (font_matches_spec): Use them to filter by language.
18016 (recompute_cached_metrics): Remove function.
18017 (compute_metrics, clear_cached_metrics): New functions.
18018 (w32font_encode_char): Use them to manage metric cache.
18019 (w32font_text_extents): Cache metrics for all glyphs on demand.
18020 Delay converting glyph indices to WORD until needed.
18021 (w32font_open_internal): Initialize metric cache to empty.
18022 (registry_to_w32_charset): Charset should always be a symbol.
18023 (fill_in_logfont, list_all_matching_fonts): Family should
18024 always be a symbol.
18025
180262008-04-06 Jason Rumney <jasonr@gnu.org>
18027
18028 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
18029 Give up if glyph indices not supported. Use uniscribe obtained
18030 ABC widths for individual metrics. Map glyph clusters back to
18031 characters using fClusterStart flag. Return number of glyphs
18032 produced, not chars processed.
18033 (uniscribe_shape): Map char at FROM to current glyph.
18034
180352008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18036
18037 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
18038 Use SetMenuItemHierarchicalMenu.
18039
180402008-04-05 Jason Rumney <jasonr@gnu.org>
18041
18042 * image.c (pbm_load): Allow color values up to 65535.
18043 Throw an error if max_color_idx is outside the supported range.
18044 Report an error when image size is invalid.
18045 Read two bytes at a time when raw images have max_color_idx above 255.
18046
aac0c6e3
MR
180472008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
18048
18049 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
18050 append "CCL: Quitted" when the CCL program is quitted.
18051 (setup_ccl_program): Initialize ccl->quit_silently to zero.
18052
18053 * ccl.h (struct ccl_program): New member quit_silently.
18054
180552008-04-05 Chong Yidong <cyd@stupidchicken.com>
18056
18057 * search.c (compile_pattern_1): Treat non-nil and non-string of
18058 search-spaces-regexp as nil.
18059
18060 * minibuf.c (Fassoc_string): Tweak docstring.
18061
180622008-04-05 Eli Zaretskii <eliz@gnu.org>
18063
18064 * dired.c (Ffile_attributes): Support inode numbers wider than 32
18065 bits. Remove ugly WINDOWSNT-specific kludge introduced on
18066 2008-03-14 to force inode be positive.
18067
18068 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
18069 _S_* ones, since we now use our own sys/stat.h.
18070 (stat, fstat): Don't mangle the inode number.
18071 (init_user_info): Don't restrict UID and GID to 0-60000 range.
18072
180732008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
18074
18075 * frame.h (struct frame): Give one more bit to `visible' since we use
18076 values larger than 1 to indicate obscured frames on ttys.
18077
18078 * keymap.c (Qkeymap_canonicalize): New var.
18079 (Fmap_keymap_internal): New fun.
18080 (describe_map): Use keymap-canonicalize.
18081
18082 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
18083 (Fundo_boundary): Set them.
18084 (syms_of_undo): Initialize them.
18085 (record_point): Use them instead of last_point_position*.
18086 (last_undo_buffer): Change type.
18087
180882008-04-04 Jason Rumney <jasonr@gnu.org>
18089
18090 * w32font.c (w32font_text_extents): Use font's ascent and descent.
18091 (recompute_cached_metrics): Don't set ascent and descent per char.
18092
18093 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
18094 (uniscribe_check_otf): Add GC protection before consing.
18095 Rearrange loop for counting features.
18096
180972008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
18098
18099 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
18100 buffer with byte-size of source buffer.
18101
181022008-04-03 Chong Yidong <cyd@stupidchicken.com>
18103
18104 * callint.c (Fcall_interactively): Handle temporary region even
18105 when shift-select-mode is off.
18106
181072008-04-03 Jason Rumney <jasonr@gnu.org>
18108
18109 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
18110
181112008-04-03 Kenichi Handa <handa@m17n.org>
18112
18113 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
18114 (CATEGORY_MASK_UTF_16): Likewise.
18115 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
18116 binary file.
18117 (detect_coding): Add null-byte detection for a binary file.
18118 (detect_coding_system): Likewise.
18119
181202008-04-03 Jason Rumney <jasonr@gnu.org>
18121
18122 * w32uniscribe.c: New file.
18123
18124 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
18125
18126 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
18127
18128 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
18129 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
18130 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
18131 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
18132 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
18133 (Qphonetic): New symbols.
18134 (syms_of_w32font): Initialize them.
18135 (font_supported_scripts): Use them.
18136 (w32font_list_family): List all charsets.
18137 (w32font_text_extents, recompute_cached_metrics): Fix metric
18138 calculations.
18139 (w32_enumfont_pattern_entity): Make full_type a DWORD.
18140 Give opentype fonts their own format.
18141 (font_matches_spec): New arguments backend and logfont.
18142 Handle :otf spec for uniscribe backend.
18143 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
18144 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
18145
18146 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
18147 font backend.
18148 (globals_of_w32fns): Initialize uniscribe font backend.
18149
18150 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
18151 dependencies.
18152 (w32uniscribe.$(O)): New file to build.
18153 (FONT_OBJ): Include w32uniscribe.$(O).
18154 (LIBS): Add uniscribe libraries.
18155
18156 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
18157
181582008-04-02 Chong Yidong <cyd@stupidchicken.com>
18159
18160 * callint.c (Vshift_select_mode): New var.
18161 (Finteractive): Document new ^ spec.
18162 (Fcall_interactively): Call handle-shift-selection if the ^ spec
18163 is present.
18164
18165 * keyboard.c (Vthis_command_keys_shift_translated): New var.
18166 (command_loop_1): Avoid running the direct display versions of
18167 forward-char and backward-char if shift-selection may occur.
18168 (read_key_sequence): Set Vthis_command_keys_shift_translated if
18169 shift-translation takes place.
18170
18171 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
18172 avoid clobbering by define-minor-mode.
18173
18174 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
18175 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
18176
18177 * syntax.c (Fforward_word): Add ^ interactive spec.
18178
18179 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
18180 (Fscroll_right): Add ^ interactive spec.
18181
181822008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
18183
18184 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
18185
18186 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
18187
18188 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
18189
181902008-03-31 Juri Linkov <juri@jurta.org>
18191
18192 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18193
181942008-03-30 Jan Djärv <jan.h.d@swipnet.se>
18195
18196 * gtkutil.c (xg_set_geometry): Fix indentation.
18197 (xg_resize_outer_widget): Remove.
18198 (x_wm_size_hint_off): Fix indentation.
18199 (xg_frame_set_char_size): Call flush_and_sync after
18200 gtk_window_resize.
18201 (x_wm_set_size_hint): Pass NULL as geometry window to
18202 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18203 Add menu bar and tool bar height to base height.
18204 (xg_update_frame_menubar, free_frame_menubar)
18205 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18206 (update_frame_tool_bar, free_frame_tool_bar):
18207 Change xg_resize_outer_widget to xg_frame_set_char_size.
18208
182092008-03-30 Michael Albinus <michael.albinus@gmx.de>
18210
18211 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18212 (Fdbus_call_method): New parameter TIMEOUT.
18213 (dbus-send-signal): Optimize UNGCPRO call.
18214
182152008-03-29 Juri Linkov <juri@jurta.org>
18216
18217 * window.c (Fdisplay_buffer): Move call to
18218 Vsplit_window_preferred_function out of conditions that check
18219 if window is eligible for vertical splitting.
18220 When Vsplit_window_preferred_function is non-nil, call it and use
18221 its non-nil return value as window. Otherwise, continue doing
18222 vertical splitting using Fsplit_window with arg horflag=nil.
18223 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18224 default value from `split-window' to nil.
18225
182262008-03-29 Juri Linkov <juri@jurta.org>
18227
18228 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18229 for interactive code letters 'b' and 'B'.
18230
182312008-03-29 Eli Zaretskii <eliz@gnu.org>
18232
18233 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18234 multibyte string.
18235
182362008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18237
18238 * keyboard.c (pending_funcalls): New var.
18239 (timer_check): Run it.
18240 (syms_of_keyboard): Initialize it.
18241 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18242 (Vdelete_terminal_functions): New vars.
18243 (syms_of_terminal): Initialize them.
18244 (Fdelete_terminal): Run delete-terminal-functions.
18245 * xdisp.c (safe_eval): Rewrite.
18246 (safe_call2): New fun.
18247 * frame.c (Qdelete_frame_functions): New var.
18248 (syms_of_frame): Initialize it.
18249 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18250 * lisp.h (safe_call2, pending_funcalls): Declare.
18251
182522008-03-28 Andreas Schwab <schwab@suse.de>
18253
18254 * indent.c (Fmove_to_column): Move declaration before statements.
18255
182562008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18257
18258 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18259 (struct frame): Use bit fields for boolean vars.
18260
18261 * process.c (server_accept_connection): Simplify naming.
18262 (emacs_get_tty_pgrp): Use SDATA.
18263
18264 * coding.c (decode_coding_object): Fix last change.
18265
182662008-03-27 Jason Rumney <jasonr@gnu.org>
18267
18268 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18269
182702008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18271
18272 * charset.c (Fdefine_charset_internal): Change the way of
18273 registering charsets in Vcharset_order_list.
18274 (syms_of_charset): Make the charset `eight-bit' supplementary.
18275
182762008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18277
18278 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18279 operations, to avoid having the difference between pointers
18280 overflow.
18281
182822008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18283
18284 * indent.c (check_display_width): New fun.
18285 (scan_for_column): Use it.
18286
18287 * data.c (syms_of_data): Mark most-positive-fixnum and
18288 most-negative-fixnum as constants.
18289
18290 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18291
18292 * indent.c (scan_for_column): Extract from current_column_1.
18293 Merge with the same code from Fmove_to_column.
18294 (current_column_1, Fmove_to_column): Use it.
18295
182962008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18297
18298 * keymap.c (map_keymap_internal): New fun.
18299 (map_keymap): Use it.
18300 (Fmap_keymap_internal): New fun.
18301 (Fmap_keymap): Remove left-out test from before make_save_value.
18302
18303 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18304
18305 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18306 Use XCAR/XCDR.
18307
18308 * process.h (struct Lisp_Process): Remove filter_multibyte.
18309 * process.c (QCfilter_multibyte): Remove.
18310 (setup_process_coding_systems): Don't use filter_multibyte.
18311 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18312 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18313 (Fset_process_filter_multibyte): Change the coding-system to
18314 approximate the previous behavior.
18315 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18316 coding-system.
18317
18318 * coding.c (decode_coding_object): When not decoding into a buffer,
18319 obey the coding system's preference of (uni|multi)byte.
18320
183212008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18322
18323 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18324 every char is changed and has a different byte-length.
18325 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18326 Fix int -> EMACS_INT.
18327
183282008-03-23 David Hansen <david.hansen@gmx.net>
18329
18330 * dbusbind.c (xd_read_message): Remove extra copying of message
18331 strings. Check for NULL `interface' or `member'.
18332
183332008-03-22 Eli Zaretskii <eliz@gnu.org>
18334
18335 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18336 cFileName a file name that includes `?' characters, use the 8+3
18337 alias in cAlternateFileName instead.
18338
183392008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18340
18341 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18342
183432008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18344
18345 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18346 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18347 work on current_buffer only instead (that was already the case
18348 for some of the code anyway).
18349 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18350 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18351 (SET_PT, SET_PT_BOTH): Adjust.
18352 * intervals.h (set_point, temp_set_point, set_point_both)
18353 (temp_set_point_both): Remove redundant declarations.
18354
183552008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18356
18357 * fileio.c (Finsert_file_contents):
18358 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18359 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18360 when buffer != current_buffer anyway.
18361
183622008-03-20 Andreas Schwab <schwab@suse.de>
18363
18364 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18365 as default.
18366
183672008-03-19 Jason Rumney <jasonr@gnu.org>
18368
18369 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18370 (syms_of_w32fns): Initialize them.
18371 (HOURGLASS_ID): New constant.
18372 (x_window_to_frame): Don't check hourglass_window.
18373 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18374 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18375 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18376 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18377 Only change the cursor if hourglass is not active.
18378 (Fx_create_frame): Initialize frame's current_cursor.
18379 (hourglass_atimer): Remove.
18380 (hourglass_started): New function.
18381 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18382 (show_hourglass): Adapt to w32, changing argument to frame.
18383
18384 * w32term.h (struct w32_output): Remove hourglass_window.
18385 Add current_cursor.
18386
18387 * eval.c (call_debugger, Fsignal):
18388 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18389 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18390 (Fexecute_extended_command, cancel_hourglass_unwind):
18391 * minibuf.c (read_minibuf):
18392 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18393
183942008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18395
18396 * window.c (run_funs): New fun.
18397 (run_window_configuration_change_hook): Use it to run the buffer-local
18398 and the global part of the hook.
18399
18400 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18401 (unwind_format_mode_line): Restore selected window.
18402 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18403
184042008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18405
18406 * editfns.c (Fchar_equal): Check they are valid characters.
18407
18408 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18409
184102008-03-17 Andreas Schwab <schwab@suse.de>
18411
18412 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18413 against a charset.
18414
18415 * lisp.h (Fbuffer_list): Declare.
18416
184172008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 18418
aac0c6e3
MR
18419 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18420 handlebox_widget is != 0.
18421
184222008-03-16 Juri Linkov <juri@jurta.org>
18423
18424 * callint.c (Fcall_interactively): For interactive code letters
18425 'b' and 'B' put the buffer list into the list of default "future"
18426 values of the minibuffer.
18427
184282008-03-16 Andreas Schwab <schwab@suse.de>
18429
18430 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18431 modifiers.
18432
18433 * regex.c (re_match_2_internal): Correct matching of a charset
18434 against latin-1 characters.
18435
184362008-03-16 Kenichi Handa <handa@m17n.org>
18437
18438 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18439 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18440 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18441 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18442 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18443 CHAR_STRING_ADVANCE.
18444 (produce_chars): Fix for the case that the source and the
18445 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18446 instead of CHAR_STRING_ADVANCE.
18447 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18448 STRING_CHAR_ADVANCE.
18449
184502008-03-15 Andreas Schwab <schwab@suse.de>
18451
18452 * regex.c (re_match_2_internal): Correct matching of eight bit
18453 characters in unibyte strings.
18454
184552008-03-15 Martin Rudalics <rudalics@gmx.at>
18456
18457 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18458 at end of range when it coincides with the end of the buffer.
18459
184602008-03-14 Eli Zaretskii <eliz@gnu.org>
18461
18462 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18463
18464 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18465
184662008-03-14 Jason Rumney <jasonr@gnu.org>
18467
18468 * editfns.c (initial_tz): New variable.
18469 (syms_of_editfns): Initialize it.
18470 (Fset_time_zone_rule): Set it when first called.
18471 Use it when TZSTRING is nil.
18472
18473 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18474 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18475 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18476 (globals_of_w32fns): Initialize them.
18477 (compute_tip_xy): Use them to position tooltips.
18478
184792008-03-14 Glenn Morris <rgm@gnu.org>
18480
18481 * emacs.c (main): Revert previous change.
18482 (standard_args): Revert -internal-script back to -scriptload,
18483 and remove the long-option form.
18484
184852008-03-13 Glenn Morris <rgm@gnu.org>
18486
18487 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18488 Remove option -enable-font-backend.
18489
184902008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18491
18492 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18493
184942008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18495
18496 * xterm.c (x_connection_closed): For GTK: If this is the last
18497 terminal just exit without closing the display.
18498
184992008-03-11 Jason Rumney <jasonr@gnu.org>
18500
18501 * w32font.c (w32font_full_name): Use floor to round.
18502
f0131492 185032008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
18504
18505 * sound.c (alsa_configure): Declare vol at beginning of block.
18506
18507 * fontset.c (Ffontset_info): Remove extra semicolon.
18508
185092008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18510
18511 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18512 size of resulting string.
18513
185142008-03-10 Jason Rumney <jasonr@gnu.org>
18515
18516 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18517
185182008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18519
18520 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18521 Don't pretend as if characters with display property haven't been
18522 consumed for string-replacing-string case.
18523
185242008-03-08 Kim F. Storm <storm@cua.dk>
18525
18526 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18527 (get_next_display_element, next_element_from_string)
18528 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18529
185302008-03-08 Andreas Schwab <schwab@suse.de>
18531
18532 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18533
185342008-03-06 Jason Rumney <jasonr@gnu.org>
18535
18536 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18537 when charset not specified. Only translate ANSI to unicode when
18538 font_type is truetype.
18539 (w32font_coverage_ok): New function.
18540 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18541
185422008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18543
18544 * lread.c (Fread_char): Resolve modifiers.
18545 (Fread_char_exclusive): Likewise.
18546
18547 * character.c (char_resolve_modifier_mask): New function.
18548 (char_string): Use char_resolve_modifier_mask.
18549 (Fchar_resolve_modifiers): New function.
18550 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18551 function.
18552
185532008-03-04 Jason Rumney <jasonr@gnu.org>
18554
18555 * makefile.w32-in: Always include w32font.c in the build.
18556 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18557
185582008-03-04 Andreas Schwab <schwab@suse.de>
18559
18560 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18561 (versionclean): Likewise.
18562
185632008-03-04 Juanma Barranquero <lekktu@gmail.com>
18564
18565 * .cvsignore: Add oo.
18566
185672008-03-03 Andreas Schwab <schwab@suse.de>
18568
18569 * coding.c (decode_coding_object): Inhibit gap shrinking while
18570 decoding in place.
18571
185722008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18573
18574 * w32term.c: Remove unused include "gnu.h".
18575 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18576
18577 * gnu.h: Rename to ...
18578 * emacs-icon.h: ... this.
18579 * xterm.c: Use emacs-icon.h instead of gnu.h.
18580 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18581
185822008-03-03 Juanma Barranquero <lekktu@gmail.com>
18583
18584 * w32font.c: Include math.h.
18585
185862008-03-03 Jason Rumney <jasonr@gnu.org>
18587
18588 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18589 Compute options separately.
18590 (w32font_open_internal): Set glyph_idx before caching metrics.
18591
18592 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18593 Define if system headers don't.
18594 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18595 (w32font_encode_char): Don't declare here.
18596
18597 * w32font.c (Quniscribe, QCformat): New symbols.
18598 (syms_of_w32font): Define them.
18599 (w32font_has_char): Indicate uncertainty.
18600 (w32font_encode_char): Encode as glyph point. Make static.
18601 (recompute_cached_metrics): New function.
18602 (w32font_open_internal): Use it. Set font to use glyph points
18603 initially. Set format based on type of font.
18604 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18605 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18606 on it. Set format based on information available here.
18607 (add_font_entity_to_list): Identify backend based on opentype_only.
18608
186092008-03-02 Andreas Schwab <schwab@suse.de>
18610
18611 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18612
18613 * coding.c (decode_coding_big5, produce_chars):
18614 Fix typos in last change.
18615
186162008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18617
18618 * gnu.h: New icon.
18619
186202008-03-02 Kenichi Handa <handa@m17n.org>
18621
18622 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18623 `dos', don't decode '\r' if that is the last in the source.
18624 (decode_coding_utf_16, decode_coding_emacs_mule)
18625 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18626 (decode_coding_raw_text, decode_coding_charset): Likewise.
18627 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18628
186292008-03-01 Jason Rumney <jasonr@gnu.org>
18630
18631 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18632
186332008-03-01 Kim F. Storm <storm@cua.dk>
18634
18635 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18636
186372008-03-01 Jason Rumney <jasonr@gnu.org>
18638
18639 * w32font.c (w32font_full_name): New function.
18640 (w32font_open_internal): Use it.
18641
186422008-03-01 Kim F. Storm <storm@cua.dk>
18643
18644 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18645
186462008-03-01 Jason Rumney <jasonr@gnu.org>
18647
18648 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18649
186502008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18651
18652 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18653 xg_frame_resized when the event is for the edit widget.
18654
18655 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18656
18657 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18658 set_char_size.
18659 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18660 operations on widgets here. Just set frame size if needed.
18661 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18662 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18663 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18664 the whole frame.
18665 (xg_create_tool_bar): Move attachment of the tool bar to
18666 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18667 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18668
186692008-03-01 Jason Rumney <jasonr@gnu.org>
18670
18671 * w32fns.c (w32_msg_pump): Disable debug code.
18672
186732008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18674
18675 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18676
186772008-02-29 Chong Yidong <cyd@stupidchicken.com>
18678
18679 * xdisp.c (next_overlay_string): Don't set
18680 overlay_strings_at_end_processed_p if we're currently reading from
18681 a display string.
18682
186832008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18684
18685 * xdisp.c (get_overlay_strings_1): Fix typo.
18686
186872008-02-29 Chong Yidong <cyd@stupidchicken.com>
18688
18689 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18690
186912008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18692
18693 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18694
18695 * xdisp.c (display_mode_element): Cancel the previous change.
18696 (decode_mode_spec): Likewise.
18697 (handle_auto_composed_prop): Don't make composition if it->string
18698 is a string.
18699
187002008-02-27 Kim F. Storm <storm@cua.dk>
18701
18702 * lisp.h (GLYPH): Change type from int to struct with separate char
18703 and face_id members.
18704 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18705 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18706 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18707 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18708 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18709 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18710 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18711 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18712 handle new Lisp glyph code encoding, either an integer or a cons.
18713
18714 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18715 (GLYPH_ALIAS): Delete.
18716 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18717 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18718 (GLYPH_FROM_CHAR): Replace macro by ...
18719 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18720
18721 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18722 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18723 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18724 (GLYPH_INVALID_P): New macro.
18725 (spec_glyph_lookup_face): Update prototype.
18726
18727 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18728 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18729 new glyph code encoding.
18730 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18731 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18732
18733 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18734 Adapt to new glyph type and new glyph code encoding.
18735
18736 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18737
18738 * indent.c (current_column, current_column_1, Fmove_to_column)
18739 (compute_motion): Adapt to new glyph code encoding.
18740
18741 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18742
187432008-02-27 Chong Yidong <cyd@stupidchicken.com>
18744
18745 * process.c (wait_reading_process_output): Check for window
18746 changes caused by timers.
18747 Suggested by Johan Bockgård.
18748
187492008-02-27 Glenn Morris <rgm@gnu.org>
18750
18751 * emacs.c (USAGE1): Add `--disable-font-backend'.
18752
187532008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18754
18755 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18756 is made to the buffer.
18757
187582008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18759
18760 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18761 (face_at_string_position):
18762 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18763 (face_at_string_position):
18764 * xdisp.c (display_string, next_overlay_change):
18765 * buffer.h (overlays_at):
18766 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18767 Update callers.
18768
187692008-02-26 Chong Yidong <cyd@stupidchicken.com>
18770
18771 * editfns.c (Fformat): Doc fix.
18772
187732008-02-26 Juanma Barranquero <lekktu@gmail.com>
18774
18775 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18776 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18777 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18778
187792008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18780
18781 * buffer.c (Fbuffer_swap_text): New function.
18782 (syms_of_buffer): Defsubr it.
18783
187842008-02-25 Chong Yidong <cyd@stupidchicken.com>
18785
18786 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18787
187882008-02-25 Jason Rumney <jasonr@gnu.org>
18789
18790 * w32font.c (w32font_draw): Draw one character at a time when padding.
18791
187922008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18793
18794 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18795 Handle a nil arg. Use run_window_configuration_change_hook.
18796 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18797 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18798 Use run_window_configuration_change_hook.
18799
188002008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18801
18802 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18803 1-pixel width.
18804
188052008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18806
18807 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18808 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18809 if the glyph in the font is zero pixel with.
18810
18811 * dispextern.h (struct glyph_string): New member padding_p.
18812
18813 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18814
18815 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18816
18817 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18818
18819 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18820
18821 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18822
188232008-02-25 Jason Rumney <jasonr@gnu.org>
18824
18825 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18826
188272008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18828
18829 Allow fine-grained image-cache flushing.
18830 * dispextern.h (struct image): Add `dependencies' field.
18831 (clear_image_caches): Change arg to Lisp_Object.
18832 * image.c (make_image): Initialize `dependencies' field.
18833 (clear_image_cache): Change arg to allow fine-grained flushing.
18834 Perform the flush even if image-cache-eviction-delay is nil.
18835 (clear_image_caches): Change arg to Lisp_Object.
18836 (Fclear_image_cache): Expand meaning of the argument.
18837 (mark_image): Mark `dependencies' field.
18838 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18839 (lface_hash): Use XHASH rather than XFASTINT.
18840 (face_at_buffer_position): Fix int -> EMACS_INT position.
18841 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18842 (select_frame_for_redisplay): Remove code duplication.
18843 (redisplay_internal): Adapt arg to call to clear_image_caches.
18844
188452008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18846
18847 * s/vms4-0.h:
18848 * s/vms4-2.h:
18849 * s/vms4-4.h:
18850 * s/vms5-5.h: Remove, unused.
18851
18852 * s/irix5-2.h:
18853 * s/irix6-0.h:
18854 * s/riscos5.h:
18855 * s/mach-bsd4-3.h:
18856 * m/mips4.h: Remove files for obsolete systems.
18857
18858 * Makefile.in:
18859 * filelock.c:
18860 * unexmips.c:
18861 * m/hp9000s300.h:
18862 * m/iris4d.h:
18863 * s/aix3-1.h:
18864 * s/hpux.h:
18865 * s/msdos.h:
18866 * s/usg5-0.h:
18867 * s/usg5-2-2.h:
18868 * s/usg5-2.h:
18869 * s/usg5-3.h: Remove references to obsolete variables.
18870
18871 * s/irix5-0.h: Remove, move all the contents ...
18872 * s/irix6-5.h: ... here. Simplify.
18873 * config.in: Regenerate.
18874
188752008-02-24 Jason Rumney <jasonr@gnu.org>
18876
18877 * w32term.c (x_draw_glyph_string_background): Clear the background
18878 manually when cleartype is in use.
18879 (x_draw_glyph_string_foreground): Draw text transparently when
18880 cleartype is in use.
18881
18882 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18883 a font into it unless we have to.
18884
188852008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18886
18887 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18888 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18889
aac0c6e3
MR
188902008-02-18 Jason Rumney <jasonr@gnu.org>
18891
18892 * w32fns.c (Fw32_shell_execute): Encode parameters.
18893
188942008-02-09 Eli Zaretskii <eliz@gnu.org>
18895
18896 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18897
188982008-02-05 Juanma Barranquero <lekktu@gmail.com>
18899
18900 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18901
189022008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18903
18904 * xterm.c (x_set_offset): Don't change the gravity if
18905 CHANGE_GRAVITY is -1.
18906
189072008-02-23 Chong Yidong <cyd@stupidchicken.com>
18908
18909 * fileio.c (auto_save_error_occurred): New var.
18910 (auto_save_error): Set it.
18911 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18912 error occurred.
18913
189142008-02-23 Eli Zaretskii <eliz@gnu.org>
18915
18916 * w32.c (globals_of_w32): Add initializations for
18917 g_b_init_get_sid_sub_authority and
18918 g_b_init_get_sid_sub_authority_count.
18919
189202008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18921
18922 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18923 (font_parse_xlfd): Use them for sanity check.
18924 (Finternal_set_font_style_table): Make sure the table is bijective.
18925
18926 Consolidate the image_cache to the terminal struct.
18927 * termhooks.h (P_): Remove redundant def.
18928 (struct terminal): New field `image_cache'.
18929 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18930 of FRAME_X_IMAGE_CACHE.
18931 * xterm.h (struct x_display_info): Remove image_cache field.
18932 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18933 * w32term.h (struct w32_display_info): Remove image_cache field.
18934 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18935 * macterm.h (struct mac_display_info): Remove image_cache field.
18936 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18937 * xterm.c (x_term_init):
18938 * w32term.c (w32_term_init):
18939 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18940 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18941 Remove declarations.
18942 (clear_image_caches, mark_image_cache): New declarations.
18943 * xfaces.c (clear_face_cache):
18944 * xdisp.c (redisplay_internal): Use clear_image_caches.
18945 * image.c (clear_image_cache): Don't check that a frame is on
18946 a window-system before checking if it shares the same cache.
18947 (clear_image_caches): New function.
18948 (Fclear_image_cache): Use it.
18949 (mark_image): Move from allo.c.
18950 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18951 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18952 (mark_object): Don't call mark_image_cache for frames.
18953 (mark_terminals): Call mark_image_cache.
18954
18955 * lisp.h (Fdelete_terminal): Declare.
18956
18957 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18958 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18959 wrong_type_argument.
18960
189612008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18962
18963 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18964 malayalam.el, and tamil.el. Add sinhala.el.
18965
189662008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18967
18968 * xterm.c (x_connection_closed): Consolidate identical tests.
18969 (x_delete_terminal): Don't crash if called via x_connection_closed.
18970
189712008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18972
18973 * xdisp.c (decode_mode_spec): New arg string.
18974 (display_mode_element): Adjust for the above change.
18975
189762008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18977
18978 * callint.c (Fcall_interactively): Use AREF.
18979
189802008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18981
18982 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18983
189842008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18985
18986 * xfns.c (Fx_show_tip): Set string to " " if empty.
18987
189882008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18989
18990 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18991 with Qt.
18992
189932008-02-17 Kenichi Handa <handa@m17n.org>
18994
18995 * ftfont.c (ftfont_shape): Return Lispy number.
18996
18997 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18998 for GCs.
18999 (Finternal_set_font_selection_order): Call font_update_sort_order
19000 only when enable_font_backend is set.
19001 (realize_x_face): Set face->font_info to that of default face only
19002 when enable_font_backend is set.
19003
19004 * xdisp.c (handle_composition_prop): Set it->c to the fist
19005 character of the composed region.
19006 (fill_composite_glyph_string): Set base_face->font_info to
19007 s->font_info. Get a face for ascii from base_face->ascii_face.
19008 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
19009 with a face already decided.
19010 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
19011 non-negative.
19012 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
19013 call font_prepare_composition unconditionally.
19014
19015 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
19016
19017 * xterm.h (struct x_display_info): New member font.
19018
19019 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
19020 (x_set_mouse_face_gc, x_new_font): Likewise.
19021 (x_term_init): Setup display_info->font.
19022 (x_delete_terminal): Free display_info->font.
19023
19024 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
19025
19026 * ftxfont.c (ftxfont_default_fid): Delete it.
19027 (ftxfont_open): Set xfont->fid to 0.
19028 (ftxfont_end_for_frame): Clear data specific to the frame and the
19029 font-driver.
19030
19031 * xftfont.c (xftfont_default_fid): Delete it.
19032 (xftfont_open): Set xfont->fid to 0.
19033
19034 * fontset.c (FONTSET_OBJLIST): New macro.
19035 (fontset_find_font): Update font-object list of the fontset.
19036 (free_realized_fontset): New function.
19037 (free_face_fontset): Call free_realized_fontset.
19038 (Ffont_info): Call font_close_object only when enable_font_backend
19039 is set.
19040
19041 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
19042 [HAVE_NTGUI]: Include w32term.h.
19043 [MAC_OS]: Include macterm.ch.
19044 (font_otf_ValueRecord): Use make_number.
19045 (font_finish_cache): Fix handling of reference count.
19046 (font_clear_cache): Update num_fonts.
19047 (font_open_entity): Update smallest_char_width and
19048 smallest_font_height of the frame.
19049 (font_close_object): Update num_fonts.
19050 (Fclear_font_cache): Fix finding the target cache data.
19051
190522008-02-16 Glenn Morris <rgm@gnu.org>
19053
19054 * fontset.c (Finternal_char_font): Fix compilation warning.
19055
190562008-02-16 Eli Zaretskii <eliz@gnu.org>
19057
19058 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
19059 instead of char arrays. Enlarge the size of array passed to
19060 get_token_information.
19061
19062 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
19063 warnings.
19064
190652008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
19066
19067 * .gdbinit: Don't set `args', it breaks gdb --args.
19068
190692008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
19070
19071 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
19072 within a narrowed buffer.
19073
190742008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
19075
19076 * coding.c (decode_coding_object, encode_coding_object):
19077 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
19078
190792008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
19080
19081 * coding.c (coding_set_destination): Use BEG_BYTE rather than
19082 hardcoding 1.
19083 (detect_coding_system):
19084 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
19085 (string_char_to_byte, string_byte_to_char, insert_from_gap):
19086 * insdel.c (insert_from_gap):
19087 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
19088 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
19089 (string_to_multibyte):
19090 * character.c (chars_in_text, multibyte_chars_in_text):
19091 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
19092
19093 * character.h (FETCH_STRING_CHAR_ADVANCE)
19094 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
19095 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
19096 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
19097
19098 * casefiddle.c (casify_region): Only call after-change and composition
19099 functions on the part of the region that was changed.
19100
19101 * keyboard.c (read_avail_input):
19102 * frame.c (Fdelete_frame): Call Fdelete_terminal.
19103
191042008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19105
19106 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
19107 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
19108
191092008-02-11 Juanma Barranquero <lekktu@gmail.com>
19110
19111 * w32menu.c (push_submenu_start, push_submenu_end)
19112 (push_left_right_boundary, push_menu_pane, push_menu_item):
19113 * keyboard.c (read_key_sequence): Don't pass args with side effects
19114 to AREF, it fails when compiling with -DENABLE_CHECKING.
19115
191162008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
19117
19118 * Makefile.in (${lispsource}international/charprop.el):
19119 Delete this target.
19120
19121 * search.c (boyer_moore): Fix incorrect synching of the trunk and
19122 emacs-unicode-2.
19123
191242008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19125
19126 * terminal.c (Fdelete_terminal): Clean up the `force' path.
19127
191282008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19129
19130 * frame.c (Qnoelisp): New symbol.
19131 (syms_of_frame): Initialize it.
19132 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
19133 harmless Elisp code, from a strong `force' from x_connection_closed.
19134 * frame.h (Qnoelisp): Declare.
19135 * xterm.c (x_connection_closed): Pass `noelisp'.
19136
19137 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
19138 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
19139 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
19140 rather than `int' for the type of `type'.
19141
191422008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
19143
19144 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
19145
19146 * Makefile.in (GNUC): Remove support for gcc-1.x.
19147
191482008-02-10 Richard Stallman <rms@gnu.org>
19149
19150 * lisp.h (ASET): Use AREF, not ASLOT.
19151
191522008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19153
19154 * lisp.h (ASET): Check bounds.
19155
191562008-02-10 Glenn Morris <rgm@gnu.org>
19157
19158 * buffer.c (mode-name): Doc fix.
19159
191602008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19161
19162 * Makefile.in:
19163 * emacs.c:
19164 * gmalloc.c:
19165 * keyboard.c:
19166 * lisp.h:
19167 * m/ibm370aix.h:
19168 * process.c:
19169 * regex.c:
19170 * s/hpux.h:
19171 * sysdep.c:
19172 * sysselect.h:
19173 * systty.h:
19174 * unexec.c:
19175 * w32term.c:
19176 * xsmfns.c:
19177 * xterm.c: Remove code that deals with obsolete variables.
19178
19179 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
19180
19181 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
19182 nothing else needs it anymore.
19183
191842008-02-09 Eli Zaretskii <eliz@gnu.org>
19185
19186 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
19187 instead of unibyte_char_to_multibyte.
19188
191892008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19190
19191 * s/gnu-linux.h: Remove commented out code.
19192
19193 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19194
19195 * Makefile.in: Update what RMS says about using autoconf.
19196 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19197 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19198 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19199 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19200
192012008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
19202
19203 * keymap.c (Fkey_description): Move side effect outside of macro call.
19204
19205 * xfaces.c (Finternal_make_lisp_face):
19206 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19207
19208 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19209 (syms_of_fontset): Use ASET.
19210
19211 * fns.c (concat): Move side effect outside of macro call.
19212 (hash_clear): Use ASET.
19213
192142008-02-08 Richard Stallman <rms@gnu.org>
19215
19216 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19217 If FORCE, and frame has a surrogate minibuffer for another frame,
19218 delete the other frame first.
19219
192202008-02-07 Timo Savola <timo.savola@iki.fi>
19221
19222 * xterm.c (x_detect_focus_change): Handle embed client message.
19223 (handle_one_xevent): Ditto.
19224 (handle_one_xevent): If embedded and we get a button press/release,
19225 request focus.
19226 (xembed_set_info, xembed_send_message): New functions.
19227 (x_make_frame_visible): Call xembed_set_info if embedded.
19228 (x_make_frame_invisible): Call xembed_set_info if embedded.
19229 (x_term_init): Initialize Xatom_XEMBED.
19230 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19231 (x_iconify_frame): Ditto.
19232
19233 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19234 (enum xembed_info, enum xembed_message, enum xembed_focus)
19235 (enum xembed_modifier, enum xembed_accelerator): New.
19236 (xembed_set_info, xembed_send_message): Declare.
19237 (FRAME_X_EMBEDDED_P): New.
19238
19239 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19240 gtk_plug_new.
19241
19242 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19243 window ID of a frame.
19244 (x_window): Reparent frame if embedded.
19245 (Fx_create_frame): Don't set border width if embedded.
19246
19247 * emacs.c (USAGE3): Add --parent-id.
19248 (standard_args): Ditto.
19249
192502008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19251
19252 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19253
192542008-02-07 Jim Meyering <meyering@redhat.com>
19255
19256 Use "do...while (0)", not "if (1)...else" in macro definitions.
19257 The latter provokes a warning from gcc about the empty else, when
19258 followed by ";". Also, without that trailing semicolon, it would
19259 silently swallow up any following statement.
19260 * syntax.h (SETUP_SYNTAX_TABLE)
19261 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19262 * buffer.h (DECODE_POSITION): Likewise.
19263 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19264 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19265 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19266 (FETCH_CHAR_ADVANCE): Likewise.
19267 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19268
192692008-02-07 Jim Meyering <meyering@redhat.com>
19270
19271 * lread.c [lint]: Don't include <sys/inode.h>.
19272
192732008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19274
19275 * xselect.c (x_handle_dnd_message):
19276 * xmenu.c (digest_single_submenu, xmenu_show):
19277 * xdisp.c (with_echo_area_buffer_unwind_data)
19278 (format_mode_line_unwind_data, unwind_format_mode_line)
19279 (display_menu_bar):
19280 * eval.c (Ffetch_bytecode):
19281 * doc.c (store_function_docstring):
19282 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19283 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19284 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19285
192862008-02-07 Kenichi Handa <handa@m17n.org>
19287
19288 * ftxfont.c (ftxfont_open): Don't set
19289 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19290
19291 * ftfont.c (ftfont_open): Fix previous change.
19292
192932008-02-06 Jason Rumney <jasonr@gnu.org>
19294
19295 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19296 Use cached metrics for ASCII characters.
19297 (w32font_open_internal): Don't set font's owning_frame.
19298 Cache metrics for ASCII characters.
19299
19300 * w32font.h (struct w32font_info): Add ascii_metrics.
19301 Remove owning_frame.
19302
193032008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19304
19305 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19306 to negative value.
19307
19308 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19309
19310 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19311
19312 * charset.c (syms_of_charset): Set QCtest and Qeq.
19313
193142008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19315
19316 * process.c (Fstart_process):
19317 * callproc.c (Fcall_process): Handle the case where
19318 Funhandled_file_name_directory returns nil.
19319
19320 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19321 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19322 * font.c (check_gstring): Use them and AREF to access the vector before
19323 we know it's really a gstring.
19324 (Ffont_shape_text): Fix typo.
46e722a9 19325 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
19326
19327 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19328 Declare.
19329
19330 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19331
193322008-02-05 Jason Rumney <jasonr@gnu.org>
19333
19334 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19335 Set smallest_font_height and smallest_char_width in display info.
19336
193372008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19338
19339 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19340
193412008-02-05 Miles Bader <miles@gnu.org>
19342
19343 * xfaces.c (get_lface_attributes, merge_named_face)
19344 (lookup_named_face, lookup_derived_face, realize_named_face):
19345 Revert 2008-02-01 change by cyd@stupidchicken.com.
19346
193472008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19348
19349 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19350 fallback fonts.
19351 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19352
193532008-02-04 Jason Rumney <jasonr@gnu.org>
19354
19355 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19356 set full_name.
19357 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19358
193592008-02-03 Jason Rumney <jasonr@gnu.org>
19360
19361 * makefile.w32-in (OBJ1): Include font.o here.
19362 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19363
193642008-02-02 Jason Rumney <jasonr@gnu.org>
19365
19366 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19367
193682008-02-01 Jason Rumney <jasonr@gnu.org>
19369
19370 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19371
19372 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19373
193742008-02-01 Andreas Schwab <schwab@suse.de>
19375
19376 * Makefile.in (shortlisp, lisp): Update for rename of
19377 ../lisp/language/myanmar.el.
19378
193792008-02-01 Chong Yidong <cyd@stupidchicken.com>
19380
19381 * xfaces.c (get_lface_attributes): Delete function.
19382 (merge_named_face, lookup_named_face, lookup_derived_face)
19383 (realize_named_face): Call lface_from_face_name directly, and use
19384 the fact that merge_face_vectors does not alter its FROM argument.
19385
193862008-02-01 Jason Rumney <jasonr@gnu.org>
19387
19388 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19389 input in the default locale. Handle non-Unicode multibyte input.
19390
193912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19392
19393 * fontset.c (reorder_font_vector): Exclude nil elements from the
19394 font group. Don't try multiple fonts.
19395 (fontset_font): Adjust for the above change.
19396 (Finternal_char_font): Return nil if the found font doesn't
19397 contain the character ch.
19398
19399 * Makefile.in (lisp, shortlisp): Add cham.el.
19400
194012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19402
19403 * font.h (FONTP): Make it return 1 also for a font-object.
19404
19405 * .gdbinit (xfontset): New function.
19406
19407 * font.c (font_find_for_lface): Check if the character C is
19408 supported or not only for the first font.
19409
19410 * fontset.c (reorder_font_vector): Fix typo.
19411 (fontset_find_font): Don't add a font-spec specifying a script.
19412 Use 0 (not Qt) for the indication of empty font-group. Change the
19413 format of RFONT-DEF. Return Qt if no font in the font-group
19414 support the character.
19415 (fontset_font): Adjust for the above change. If no font was
19416 found the character, remember that.
19417 (face_for_char): Adjust for the change of RFONT-DEF.
19418 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19419 no font for the target.
19420 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19421
194222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19423
19424 * font.c (font_load_for_face): Handle the case that the font in
19425 face->lface is a string.
19426
194272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19428
19429 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19430
194312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19432
19433 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19434 Fix previous change. If the frame is not on a window system,
19435 signal an error.
19436
194372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19438
19439 * coding.c (decode_coding_object, encode_coding_object): Adjust
19440 marker positions after conversion.
19441
19442 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19443
194442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19445
19446 * font.c (font_find_for_lface): Fix the handling of the return
19447 value of font_has_char.
19448 (Ffont_shape_text): Fix previous change.
19449
19450 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19451 (fontset_ref_and_range): Delete it.
19452 (fontset_find_font): Call char_table_ref_and_range instead of
19453 FONTSET_REF_AND_RANGE.
19454 (make_fontset): Don't setup font groups of Latin here.
19455 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19456 (new_fontset_from_font): Make the specified font the default for
19457 all Latin characters.
19458
194592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19460
19461 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19462 is on a window system before accessing the fontset of the frame.
19463
194642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19465
19466 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19467
19468 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19469 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19470
19471 * font.c (Ffont_shape_text): If the font driver doesn't have a
19472 shaper function, make zero-width glyphs to have at least one-pixel
19473 width. Fix setting of `to' field of glyphs.
19474
194752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19476
19477 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19478 glyphs.
19479
19480 * font.h (struct font_driver): Improve docstring of member `shape'.
19481
194822008-02-01 Kenichi Handa <handa@m17n.org>
19483
19484 * composite.c (syms_of_composite): Fix docstring of
19485 auto-composition-function.
19486
19487 * font.h (LGLYPH_SIZE): New macro.
19488
19489 * font.c (Ffont_fill_gstring): Stop filling when a character not
19490 supported by the font is found.
19491 (Ffont_shape_text): When a shape callback function returns nil,
19492 try at most two more times with larger gstring.
19493 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19494
19495 * xdisp.c (handle_auto_composed_prop): Change the argument to
19496 auto-composition-function.
19497
19498 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19499 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19500 Lispy glyph and store it in the lgstring.
19501
19502 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19503
19504 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19505
195062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19507
19508 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19509
19510 * fontset.c (Vfont_encoding_charset_alist): New variable.
19511 (syms_of_fontset): DEFVAR it.
19512 (reorder_font_vector, fontset_find_font): Optimize for the case of
19513 no need of reordering.
19514 (face_for_char): Map the charset property by
19515 Vfont_encoding_charset_alist.
19516
195172008-02-01 Jason Rumney <jasonr@gnu.org>
19518
19519 * w32font.c (logfonts_match): Don't check adstyle here.
19520 (font_matches_spec): Check here against physical font instead.
19521 (add_font_entity_to_list): Avoid some substitutions.
19522
19523 * font.c (font_parse_fcname): Default weight and slant to normal.
19524 (font_score): Prefer normal fonts if weight or slant unspecified.
19525 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19526 match freetype scores.
19527
195282008-02-01 Jason Rumney <jasonr@gnu.org>
19529
19530 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19531 font, as it may have been deleted.
19532 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19533 most common hyphenless variation.
19534 (logfonts_match): Check generic family.
19535 (font_matches_spec): Don't check generic family here.
19536 (fill_in_logfont): Set generic family based on adstyle.
19537
19538 * w32font.h (w32font_get_cache): Update declaration.
19539
195402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19541
19542 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19543
19544 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19545 If none of the new drivers are available, call font_update_drivers
19546 with the old drivers.
19547
19548 * w32font.c (w32font_get_cache): Adjust the argument type.
19549
19550 * xfont.c (xfont_get_cache): Adjust the argument type.
19551
19552 * font.h (struct font_driver): Change argument type of get_cache.
19553
19554 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19555
19556 * font.c (Ffont_get): Fix arguments to Fassoc.
19557 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19558 (font_clear_cache): New function.
19559 (font_list_entities, font_matching_entity): Use font_get_cache.
19560 (font_update_drivers): Call font_clear_cache when finishing a driver.
19561
19562 * fontset.c (fontset_find_font): Fix previous change.
19563
195642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19565
19566 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19567 dpyinfo->font_table.
19568 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19569 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19570
19571 * font.c (font_at): Handle the case that the arg C is negative.
19572 Handle the unibyte case.
19573 (Ffont_at): Call font_at with the arg C -1.
19574
19575 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19576 the position here, and call font_at with the arg C -1.
19577 Don't check the range of the existing composition at the point.
19578
195792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19580
19581 * fontset.c (fontset_add): New args charset_id and family.
19582 Change caller.
19583 (load_font_get_repertory, fontset_find_font): Assume that
19584 font_spec is always a font-spec object.
19585 (Fset_fontset_font): Always store a font-spec object in a fontset.
19586
19587 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19588 instead of get_property_and_range.
19589
195902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19591
19592 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19593 (xftfont_open): Don't keep locking face.
19594 (xftfont_close): Don't unlock face.
19595 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19596
19597 * fontset.c (fontset_find_font): Don't prefer a font of
19598 supplementary charset.
19599
196002008-02-01 Kenichi Handa <handa@m17n.org>
19601
19602 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19603 script, langsys_tag to langsys, new member script.
19604 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 19605 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
19606 listing to the script specified in that property. Fix arg to
19607 OTF_check_features.
19608
196092008-02-01 Jason Rumney <jasonr@gnu.org>
19610
19611 * w32font.h: New file.
19612
19613 * w32font.c: Include it.
19614 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19615 (w32font_open): Set owning_frame.
19616 (w32font_text_extents): Use owning_frame.
19617 (struct font_callback_data): Add opentype_only field.
19618 (add_font_entity_to_list): Use it to filter fonts.
19619 Don't check against full name.
19620 (w32font_list_internal): New function.
19621 (w32font_list): Use it.
19622 (w32font_match_internal): New function.
19623 (w32font_match): Use it.
19624 (w32font_open_internal): New function.
19625 (w32font_open): Use it.
19626 (w32font_get_cache, w32font_close, w32font_has_char)
19627 (w32font_encode_char, w32font_text_extents, w32font_draw):
19628 Make non-static.
19629
19630 * makefile.w32-in (w32font.o): Depend on w32font.h.
19631
196322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19633
19634 * charset.c (Fdefine_charset_internal): Record a supplementary
19635 charset at the tail of Vcharset_order_list.
19636
19637 * font.c (Ffont_shape_text): Fix the return value.
19638
19639 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19640
19641 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19642
196432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19644
19645 * ftfont.c (struct OpenTypeSpec): New struct.
19646 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19647 (ftfont_get_open_type_spec): New function.
19648 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19649
19650 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19651
196522008-02-01 Jason Rumney <jasonr@gnu.org>
19653
19654 * w32font.c (add_font_entity_to_list): Compare only the beginning
19655 of full name.
19656
196572008-02-01 Kenichi Handa <handa@m17n.org>
19658
19659 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19660 Never return HANDLED_RECOMPUTE_PROPS.
19661
196622008-02-01 Kenichi Handa <handa@m17n.org>
19663
19664 * font.c (font_gstring_produce): Delete it.
19665
19666 * composite.h (COMPOSITION_METHOD):
19667 Handle COMPOSITION_WITH_GLYPH_STRING.
19668
196692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19670
19671 * xfont.c (Qx): Delete.
19672 (syms_of_xfont): Don't initialize Qx.
19673
19674 * composite.h (enum composition_method):
19675 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19676
196772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19678
19679 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19680 (choose_face_font): Accept new form of font-spec.
19681
19682 * frame.h (font_driver_list): Declare it unconditionally.
19683 (struct frame): Define members font_driver_list and font_data_list
19684 unconditionally.
19685
19686 * fontset.c: Include "font.h" unconditionally.
19687 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19688 (Fset_fontset_font): Accept a font-spec object.
19689
19690 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19691 PIXEL_SIZE part a wild card.
19692
19693 * dispextern.h (struct glyph_string): Define members clip and
19694 num_clips unconditionally.
19695 (struct face): Define members font_info and extra unconditionally.
19696
19697 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19698 ftfont_info only when HAVE_LIBOTF is defined.
19699
197002008-02-01 Andreas Schwab <schwab@suse.de>
19701
19702 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19703 and end.
19704
197052008-02-01 Jason Rumney <jasonr@gnu.org>
19706
19707 * w32font.c (w32font_driver): Add new fields.
19708
197092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19710
19711 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19712 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19713 (LIBES): Add @M17N_FLT_CFLAGS@.
19714
19715 * composite.c (compose_text): Don't treat the new style
19716 composition specially.
19717
19718 * emacs.c (main): Call syms_of_font unconditionally.
19719
19720 * font.h (FONT_ENTITY_NOT_LOADABLE)
19721 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19722 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19723 (struct font_driver): New member shape.
19724 (font_registry_charsets): Extern it.
19725 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19726 (font_otf_capability, font_drive_otf): Delete their externs.
19727
19728 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19729 (font_charset_alist, font_registry_charsets): Move from xfont.c
19730 and rename.
19731 (font_prop_validate_otf): New function.
19732 (font_property_table): Register it for QCotf.
19733 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19734 (font_drive_otf): Delete.
19735 (font_prepare_composition): New arg F. Adjust for the change of
19736 lispy gstring.
19737 (font_find_for_lface): New arg C.
19738 (font_load_for_face): Adjust for the change of font_find_for_lface.
19739 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19740 lispy gstring.
19741 (Ffont_shape_text): New function.
19742 (Fopen_font): If the font size is not given, use 12-pixel.
19743 (Ffont_at): New arg STRING.
40b1a3a9 19744 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
19745 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19746 conditionally.
19747
19748 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19749 fonts of the same font-spec. Change the format of RFONT-DEF.
19750 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19751 Adjust for the change of RFONT-DEF.
19752 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19753
19754 * ftfont.h: New file.
19755
19756 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19757 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19758 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19759 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19760 font_otf_capability and font_drive_otf, set ftfont_shape.
19761 (ftfont_list): Adjust for the change of :otf property value.
19762 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19763 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19764 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19765 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19766 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19767 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19768
19769 * w32term.c (x_draw_composite_glyph_string_foreground):
19770 Adjust for the change of lispy gstring.
19771
19772 * xdisp.c (handle_composition_prop): Adjust for the change of
19773 lispy gstring. Call a function for auto-composition with the
19774 third arg it->window.
19775 (fill_composite_glyph_string): Adjust for the change of lispy string.
19776 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19777
19778 * xfaces.c (set_font_frame_param): Adjust for the change of
19779 font_find_for_lface.
19780
19781 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19782 (xfont_registry_charsets): Likewise. Change caller.
19783 (syms_of_xfont): Don't handle x_font_charset_alist.
19784
19785 * xftfont.c: Include "ftfont.h".
19786 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19787 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19788 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19789 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19790 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19791 Set xftfont_driver.shape to xftfont_shape.
19792
19793 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19794 the change of lispy gstring.
19795
197962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19797
19798 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19799
198002008-02-01 Jason Rumney <jasonr@gnu.org>
19801
19802 * w32font.c (w32font_draw): Fill background manually.
19803
198042008-02-01 Jason Rumney <jasonr@gnu.org>
19805
19806 * font.c (Qfontp): Remove unused symbol.
19807 (QCantialias): New symbol.
19808 (syms_of_font): Define it.
19809 (font_property_table): Set a validator for QCantialias.
19810
19811 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19812 Define if not already.
19813 (QCfamily): Share with xfaces.c.
19814 (Qstandard, Qsubpixel, Qnatural): New symbols.
19815 (syms_of_w32font): Define them. Don't define QCfamily here.
19816 (w32_antialias_type, lispy_antialias_type): New functions.
19817 (w32_enumfont_pattern_entity): New arg requested_font.
19818 Set antialias parameter if non-default was requested.
19819 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19820
198212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19822
19823 * lread.c (read1): Undo the previous change.
19824
198252008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19826
19827 * frame.c (Fdelete_frame): Call font_update_drivers only when
19828 USE_FONT_BACKEND is defined.
19829
198302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19831
19832 * font.h (struct font_bitmap): New member bits_per_pixel.
19833 (struct font_driver): New members start_for_frame and end_for_frame.
19834 (struct font_data_list): New struct.
19835 (font_put_frame_data, font_get_frame_data): Extern them.
19836
19837 * frame.h (struct frame): New member font_data_list.
19838
19839 * font.c (font_update_drivers): Call driver->start_for_frame and
19840 driver->end_for_frame at proper timings.
19841 (font_put_frame_data, font_get_frame_data): New functions.
19842 (Ffont_spec): Add usage in the docstring.
19843
19844 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19845 (Fdelete_frame): Call font_update_drivers.
19846
19847 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19848 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19849 (xftfont_get_xft_draw): New function.
19850 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19851 (xftfont_end_for_frame): New function.
19852 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19853
19854 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19855 Change argument. Cache GCs in the per-frame data.
19856 (struct ftxfont_frame_data): New struct.
19857 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19858 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19859 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19860 (ftxfont_end_for_frame): New function.
19861 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19862
19863 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19864
198652008-02-01 Kenichi Handa <handa@m17n.org>
19866
19867 * xselect.c (Vselection_coding_system)
19868 (Vnext_selection_coding_system): Delete them.
19869 (syms_of_xselect): Don't declare selection-coding-system and
19870 next-selection-coding-system. They are declared in select.el.
19871
198722008-02-01 Jason Rumney <jasonr@gnu.org>
19873
19874 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19875
19876 * w32fns.c: Include imm.h.
19877 (get_composition_string_fn, get_ime_context_fn): New optional
19878 system functions.
19879 (globals_of_w32fns): Load them from imm32.dll.
19880 (ignore_ime_char): New flag.
19881 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19882 WM_IME_ENDCOMPOSITION messages.
19883
19884 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19885 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19886
198872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19888
19889 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19890 (READCHAR_REPORT_MULTIBYTE): New macro.
19891 (readchar): New 2nd arg MULTIBYTE.
19892 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19893 Make symbol's name multibyte according to the multibyteness of the
19894 source.
19895
198962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19897
19898 * xfaces.c (face_for_overlay_string): Call lookup_face with
19899 correct arguments (fix of synching with the trunk).
19900
199012008-02-01 Kenichi Handa <handa@m17n.org>
19902
19903 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19904 (font_prop_validate_non_neg, font_prop_validate_spacing):
19905 Delete argument prop_index.
19906 (font_property_table): Change arguments to validater. Change Callers.
19907 (font_lispy_object): Delete.
19908 (font_at): Use font_find_object instead fo font_lispy_object.
19909
199102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19911
19912 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19913 and file names.
19914
199152008-02-01 Jason Rumney <jasonr@gnu.org>
19916
19917 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19918 (font_matches_spec): Remove debug output.
19919 (add_font_entity_to_list): Avoid using substituted fonts.
19920
199212008-02-01 Jason Rumney <jasonr@gnu.org>
19922
19923 * doc.c (Fsnarf_documentation):
19924 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19925
199262008-02-01 Miles Bader <miles@gnu.org>
19927
19928 * dispextern.h (struct glyph_row): Only define "clip" field if
19929 HAVE_WINDOW_SYSTEM is defined.
19930
199312008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19932
19933 Fix up multi-tty merge.
19934
19935 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19936 and indentation.
19937
19938 * xfaces.c (free_realized_face, clear_face_gcs):
19939 Include font_done_for_face in the input_blocked section, just in case.
19940
19941 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19942 (get_char_face_and_encoding): Undo last change and remove the *other*
19943 duplicate definition (i.e. keep the one that's better scoped and that
19944 includes code for the font-backend).
19945
19946 * terminal.c (create_terminal): Default keyboard_coding to
19947 `no-conversion' and terminal_coding to `undecided'.
19948
19949 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19950
19951 * fontset.c (free_realized_fontsets): Check that the table entry does
19952 contain a fontset before trying to compare it to `base'.
19953
19954 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19955 syms_of_charset, and syms_of_coding earlier because init_window_once
19956 now needs Vcoding_system_hash_table to be setup.
19957
19958 * coding.h (default_buffer_file_coding): Remove.
19959
19960 * coding.c (default_buffer_file_coding): Remove.
19961 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19962 than ->symbol, and use the terminal-local coding system.
19963 (syms_of_coding): Don't setup the coding-systems that are not
19964 terminal-local.
19965 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19966
19967 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19968 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19969
19970 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19971 in chartab.c and were re-added here by mistake.
19972 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19973
19974 * doc.c (Fsnarf_documentation):
19975 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19976 src to etc.
19977
19978 * ChangeLog.10: Add mistakenly removed entry.
19979
199802008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19981
19982 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19983
199842008-02-01 Miles Bader <miles@gnu.org>
19985
19986 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19987 Add extra args to FACE_FOR_CHAR.
19988
199892008-02-01 Kenichi Handa <handa@m17n.org>
19990
19991 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19992 in sequence.
19993
19994 * chartab.c (map_sub_char_table, map_char_table): If the range
19995 contains just one character, call the function with that character
19996 even if the depth is not 3.
19997
199982008-02-01 Jason Rumney <jasonr@gnu.org>
19999
20000 * w32font.c (w32font_text_extents): Calculate metrics for the
20001 whole string.
20002
200032008-02-01 Jason Rumney <jasonr@gnu.org>
20004
20005 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
20006
200072008-02-01 Jason Rumney <jasonr@gnu.org>
20008
20009 * w32term.c (x_set_glyph_string_clipping): Use
20010 get_glyph_string_clip_rects.
20011 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20012 Adjust for the change of struct glyph_string.
20013
20014 * w32font.c (w32font_draw): Do clipping here.
20015
200162008-02-01 Kenichi Handa <handa@m17n.org>
20017
20018 * xftfont.c (xftfont_draw): Adjust for the change of struct
20019 glyph_string.
20020
20021 * xterm.c (x_set_glyph_string_clipping): Use
20022 get_glyph_string_clip_rects.
20023 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20024 Adjust for the change of struct glyph_string.
20025
20026 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
20027 the resulting clip(s}.
20028 (expose_overlaps): Add arg r. Change callers. Set it to
20029 row->clip temporarily.
20030 (expose_window): Redraw rows overlapping the exposed area.
20031
20032 * dispextern.h (struct glyph_row): New member clip.
20033 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
20034 clip_height, new member clip, and num_clips.
20035
200362008-02-01 Kenichi Handa <handa@m17n.org>
20037
20038 * data.c (Fchar_or_string_p): Fix docstring.
20039
200402008-02-01 Kenichi Handa <handa@m17n.org>
20041
20042 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
20043 create a temporary XftDraw object.
20044
200452008-02-01 Kenichi Handa <handa@m17n.org>
20046
20047 * font.c (Ffontp): Fix docstring.
20048
20049 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
20050 strong evidence of ISO-2022.
20051
200522008-02-01 Kenichi Handa <handa@m17n.org>
20053
20054 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
20055 SYNTAX_ENTRY_FOLLOW_PARENT.
20056
200572008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20058
20059 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
20060 its type.
20061 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20062 Update to the new type of weak_hash_tables and next_weak.
20063
20064 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
20065 a plain C pointer to Lisp_Hash_Table.
20066
20067 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
20068 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
20069 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
20070 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
20071 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
20072 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
20073 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
20074 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
20075 (GC_EQ): Remove since they've been identical to their non-GC_
20076 alter-egos ever since the markbit was eradicated.
20077
20078 * alloc.c:
20079 * buffer.c:
20080 * buffer.h:
20081 * data.c:
20082 * fileio.c:
20083 * filelock.c:
20084 * fns.c:
20085 * frame.h:
20086 * lisp.h:
20087 * macterm.c:
20088 * print.c:
20089 * process.c:
20090 * w32fns.c:
20091 * w32menu.c:
20092 * w32term.c:
20093 * xfns.c:
20094 * xmenu.c:
20095 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
20096
200972008-02-01 Kenichi Handa <handa@m17n.org>
20098
20099 * chartab.c (map_sub_char_table): Make it work for the top-level
20100 char-table. Fix handling of parent char-table.
20101 (map_char_table): Adjust for the above change.
20102
201032008-02-01 Jason Rumney <jasonr@gnu.org>
20104
20105 * w32font.c (Qgdi): Rename from Qw32.
20106
201072008-02-01 Jason Rumney <jasonr@gnu.org>
20108
20109 * w32bdf.c (get_quoted_string): Make function static.
20110
201112008-02-01 Kenichi Handa <handa@m17n.org>
20112
20113 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
20114 bigger ascent and descent than those of the font, use them as
20115 font's ascent and descent.
20116
201172008-02-01 Kenichi Handa <handa@m17n.org>
20118
20119 * Makefile.in (${lispsource}international/charprop.el): Move this
20120 target within "#ifdef HAVE_UNIDATA" and "#endif".
20121
201222008-02-01 Kenichi Handa <handa@m17n.org>
20123
20124 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
20125 (shortlisp): Add ../lisp/language/tai-viet.el.
20126
201272008-02-01 Ulrich Mueller <ulm@gentoo.org>
20128
20129 * Makefile.in (${lispsource}international/charprop.el): Depend on
20130 temacs${EXEEXT}.
20131
201322008-02-01 Jason Rumney <jasonr@gnu.org>
20133
20134 * w32font.c (w32font_close): Delete the GDI font object.
20135
20136 * w32menu.c: Include character.h.
20137
20138 * w32proc.c: Likewise.
20139
20140 * w32select.c: Likewise.
20141
20142 * makefile.w32-in (w32proc.o): Depend on character.h.
20143
201442008-02-01 Jason Rumney <jasonr@gnu.org>
20145
20146 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
20147
20148 * w32menu.c (syms_of_w32menu): Likewise.
20149
20150 * w32proc.c (syms_of_ntproc): Likewise.
20151
20152 * w32select.c (syms_of_w32select): Likewise.
20153
20154 * w32term.c (syms_of_w32term): Likewise.
20155
201562008-02-01 Jason Rumney <jasonr@gnu.org>
20157
20158 * w32font.c (w32font_draw): Delete brush after using it.
20159
201602008-02-01 Jason Rumney <jasonr@gnu.org>
20161
20162 * w32font.c (w32font_open): Don't set font_idx.
20163 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
20164 to font settings.
20165 (w32font_draw): Fill background explicitly.
20166
201672008-02-01 Jason Rumney <jasonr@gnu.org>
20168
20169 * w32term.c (w32_initialize): Don't call w32font_initialize.
20170
20171 * w32font.c (w32font_info): Remove subranges.
20172 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
20173 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
20174 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
20175 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
20176 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
20177 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
20178 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
20179 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
20180 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
20181 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
20182 New symbols.
20183 (font_callback_data): New struct.
20184 (w32font_list, w32font_match): Use it.
20185 (w32font_open): Don't populate subranges.
20186 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
20187 (w32font_encode_char): Always return unicode code-point as-is.
20188 (w32font_text_extents): Supply a transformation matrix to
20189 GetGlyphOutline. Never look up by glyph index. Avoid looping
20190 twice. Use unicode version of GetTexExtentPoint32 instead of
20191 glyph index version.
20192 (set_fonts_frame): Remove.
20193 (w32_enumfont_pattern_entity): Add frame parameter, use it to
20194 set frame parameter. Use backward compatible fake foundries.
20195 Save generic family in extra slot under QCfamily. Make width slot
20196 constant. Save QCspacing value. Save list of scripts instead of
20197 binary subranges.
20198 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20199 (add_font_entity_to_list): Use font_callback_data struct. Filter
20200 unwanted fonts.
20201 (add_one_font_entity_to_list): Use font_callback_data struct.
20202 (w32_registry): Default to iso10646_1.
20203 (fill_in_logfont): Use dpi from extra slot. Don't bother with
20204 string font registries. Don't fill in font name if it is a generic
20205 family name, fill family instead. Use spacing, family and script
20206 extra info to fill pitch, family and charset fields.
20207 (list_all_matching_fonts): Use font_callback_data struct.
20208 (unicode_range_for_char): Remove.
20209 (font_supported_scripts): New function.
20210 (w32font_initialize): Remove.
20211 (syms_of_w32font): Update which symbols are defined.
20212
202132008-02-01 Jason Rumney <jasonr@gnu.org>
20214
20215 * font.c (font_pixel_size): Reverse assq_no_quit args.
20216
20217 * w32term.h (FONT_WIDTH): Report max width, not average.
20218 (FONT_MAX_WIDTH): Remove.
20219 (FONT_AVG_WIDTH): New macro.
20220
20221 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20222 redefinition of FONT_WIDTH.
20223
20224 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20225 (w32_cache_char_metrics): Use FONT_WIDTH.
20226
20227 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20228
202292008-02-01 Jason Rumney <jasonr@gnu.org>
20230
20231 * w32font.c (w32font_open): Make lfHeight negative.
20232
20233 * w32fns.c (x_default_font_parameter): Use new style font name.
20234 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20235
202362008-02-01 Jason Rumney <jasonr@gnu.org>
20237
20238 * w32font.c (QCsubranges): New symbol.
20239 (w32font_open, w32font_has_char): Get subranges from subproperty
20240 of extra.
20241 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20242 (syms_of_w32font): Define :subranges symbol.
20243
20244 * font.c (font_put_extra): Expose externally.
20245
20246 * font.h (font_put_extra): Move declaration from font.c.
20247
20248 * font.c (Ffont_get): Use font driver to determine otf capability.
20249 (adjust_anchor): Check if driver defines anchor_point before using.
20250
20251 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20252 (w32font_draw): Use options.
20253 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20254 Fix detection of truetype fonts.
20255 (registry_to_w32_charset): Handle charsets other than iso8859-1
20256 expressed as lisp symbols.
20257 (w32_registry): Express charset as lisp symbol.
20258 (fill_in_logfont): Reverse pixel and point height logic.
20259 Don't set width here. Set quality to default.
20260
20261 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20262 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20263
20264 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20265 Remove redundant loop and allocation.
20266
20267 * makefile.w32-in (font.o, w32font.o): New objects.
20268 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20269 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20270
20271 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20272 STORE_XCHARB a valid l-value.
20273
20274 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20275 calculations for non-Truetype fonts.
20276 (x_draw_glyph_string): Sync with xterm.c.
20277 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20278 Remove redundant code.
20279 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20280
20281 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20282 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20283
20284 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20285 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20286
20287 * w32font.c: New file for w32 font backend.
20288
202892008-02-01 Kenichi Handa <handa@m17n.org>
20290
20291 * term.c: Don't include "buffer.h" twice.
20292
202932008-02-01 Kenichi Handa <handa@m17n.org>
20294
20295 * character.c (Funibyte_string): New function.
20296 (syms_of_character): Defsubr it.
20297
202982008-02-01 Jason Rumney <jasonr@gnu.org>
20299
20300 * w32term.c [USE_FONT_BACKEND]:
20301 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20302 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20303 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20304 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20305 (x_free_frame_resources): Sync with xterm.c.
20306
203072008-02-01 Andreas Schwab <schwab@suse.de>
20308
20309 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20310 char-table size.
20311
203122008-02-01 Kenichi Handa <handa@m17n.org>
20313
20314 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20315
203162008-02-01 Kenichi Handa <handa@m17n.org>
20317
20318 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20319 font_otf_gpos, add font_drive_otf.
20320
20321 * fontset.c (fontset_find_font): Pay attention to font size
20322 specified for a font.
20323 (reorder_font_vector): Check contents of font_def.
20324
20325 * font.c (struct otf_list): Delete it.
20326 (otf_list): Make it a lisp variable.
20327 (otf_open): Use lispy otf_list.
20328 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20329 (check_otf_features): New function.
20330 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20331 New functions.
20332 (font_drive_otf): New function merging font_otf_gsub and
20333 font_otf_gpos.
20334 (font_open_for_lface): New arg spec. Change argument order.
20335 (font_load_for_face): Adjust for the change of font_open_for_lface.
20336 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20337 Ffont_otf_gpos.
20338 (syms_of_font): Staticpro otf_list. Delete defsubr of
20339 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20340
20341 * xfaces.c (set_font_frame_param): Adjust for the change of
20342 font_open_for_lface.
20343
20344 * font.h (font_open_for_lface): Adjust prototype.
20345 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20346 member otf_drive.
20347 (font_otf_gsub, font_otf_gpos): Delete externs.
20348 (font_drive_otf): Extern it.
20349
203502008-02-01 Kenichi Handa <handa@m17n.org>
20351
20352 * font.c (font_at): If the window W is not on a window system,
20353 return Qnil.
20354
20355 * coding.c (produce_chars, encode_coding): Don't call
20356 insert_from_gap if no characters to produce.
20357
203582008-02-01 Kenichi Handa <handa@m17n.org>
20359
20360 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20361 Fclear_face_cache.
20362
20363 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20364
203652008-02-01 Miles Bader <miles@gnu.org>
20366
20367 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20368 Parse "--disable-font-backend" option.
20369 (standard_args): Add "--disable-font-backend" option.
20370
203712008-02-01 Kenichi Handa <handa@m17n.org>
20372
20373 * fontset.c (fontset_find_font): New function.
20374 (fontset_font): Use fontset_find_font.
20375 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20376 Register the specified font for all Latin characters.
20377 (new_fontset_from_font): Register the specified font for all Latin
20378 characters.
20379 (dump_fontset): For a realized fontset, include the base fontset
20380 name in the returned vector.
20381
203822008-02-01 Kenichi Handa <handa@m17n.org>
20383
20384 * character.h (CHAR_STRING): Cast C to unsigned on calling
20385 char_string.
20386
20387 * character.c (char_string): Type of arg C changed to unsigned.
20388 Signal an error if C is an invalid character code.
20389
20390 * editfns.c (general_insert_function, Fchar_to_string):
20391 Use CHARACTERP, not INTEGERP.
20392
203932008-02-01 Kenichi Handa <handa@m17n.org>
20394
20395 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20396 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20397
20398 * regex.c (analyse_first): Fix for multibyte characters in "case
20399 charset:" and "case categoryspec:".
20400
204012008-02-01 Andreas Schwab <schwab@suse.de>
20402
20403 * Makefile.in (LIBES): Move standard libraries to the end.
20404
204052008-02-01 Kenichi Handa <handa@m17n.org>
20406
20407 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20408 nonzero, don't shrink the buffer nextb.
20409
20410 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20411
20412 * coding.c (coding_alloc_by_making_gap): New arg offset.
20413 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20414 offset.
20415 (decode_coding_iso_2022): Update coding->safe_charsets.
20416 (decode_coding_gap): Temporarily set
20417 current_buffer->text->inhibit_shrinking to 1.
20418
204192008-02-01 Kenichi Handa <handa@m17n.org>
20420
20421 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20422 indexing into elements of s->cmp and s->char2b.
20423
204242008-02-01 Juanma Barranquero <lekktu@gmail.com>
20425
20426 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20427
204282008-02-01 Kenichi Handa <handa@m17n.org>
20429
20430 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20431 target_multibyte instead of multibyte.
20432 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20433 (bcmp_translate): Change the argument name from multibyte to
20434 target_multibyte.
20435
204362008-02-01 Kenichi Handa <handa@m17n.org>
20437
20438 These changes are to compile a regexp into a pattern that can be
20439 used both for multibyte and unibyte targets.
20440
20441 * Makefile.in (search.o): Depend on charset.h.
20442
20443 * character.c (multibyte_char_to_unibyte_safe): New function.
20444
20445 * search.c: Include "charset.h".
20446 (compile_pattern_1): Delete argument multibyte. Don't set
20447 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20448 (compile_pattern): Don't compare cp->buf.target_multibyte.
20449 Compare cp->buf.charset_unibyte.
20450 (compile_pattern): Set cp->buf.target_multibyte.
20451
20452 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20453
20454 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20455
20456 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20457 multibyte. Change callers.
20458 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20459 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20460 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20461 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20462 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20463 (regex_compile): Make the compiled pattern usable both for
20464 multibyte and unibyte targets.
20465 (analyse_first): Make the fastmap usable both for multibyte and
20466 unibyte targets.
20467 (TRANSLATE_VIA_MULTIBYTE): Delete.
20468 (re_match_2_internal): Pay attention to the case that the
20469 multibyteness of bufp and target may be different.
20470
204712008-02-01 Kenichi Handa <handa@m17n.org>
20472
20473 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20474 empty box occupy at least one column width.
20475
204762008-02-01 Miles Bader <miles@gnu.org>
20477
20478 * Makefile.in: Remove redundant HAVE_XFT clause.
20479
204802008-02-01 Kenichi Handa <handa@m17n.org>
20481
20482 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20483
204842008-02-01 Kenichi Handa <handa@m17n.org>
20485
20486 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20487 being nil.
20488
204892008-02-01 Kenichi Handa <handa@m17n.org>
20490
20491 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20492
204932008-02-01 Kenichi Handa <handa@m17n.org>
20494
20495 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20496
204972008-02-01 Kenichi Handa <handa@m17n.org>
20498
20499 * search.c (simple_search): Fix previous change.
20500
205012008-02-01 Kenichi Handa <handa@m17n.org>
20502
20503 * xftfont.c (ftfont_font_format): Extern declaration.
20504
20505 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20506
20507 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20508 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20509
20510 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20511 (ftfont_font_format): Fix previous change.
20512
20513 * font.h (Ffont_xlfd_name): EXFUN it.
20514
20515 * font.c (font_parse_xlfd): Fix the array size of `f'.
20516 (register_font_driver): Use EQ to compare driver->type.
20517
20518 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20519 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20520 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20521
205222008-02-01 Kenichi Handa <handa@m17n.org>
20523
20524 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20525 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20526
205272008-02-01 Kenichi Handa <handa@m17n.org>
20528
20529 * xfont.c (xfont_open): Set font->format.
20530
20531 * xftfont.c (xftfont_open): Set font->format.
20532
20533 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20534 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20535 (ftfont_open): Set font->format.
20536 (ftfont_font_format): New function.
20537
20538 * font.h (struct font): New member format.
20539
20540 * font.c (Qopentype): New variable.
20541 (syms_of_font): Defsym it.
20542 (Fquery_font): Change the format of the last element of the return
20543 value.
20544
205452008-02-01 Kenichi Handa <handa@m17n.org>
20546
20547 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20548 last resort.
20549
205502008-02-01 Kenichi Handa <handa@m17n.org>
20551
20552 * coding.c (detect_coding_charset): Fix detection of multi-byte
20553 charset.
20554
205552008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20556
20557 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20558
205592008-02-01 Kenichi Handa <handa@m17n.org>
20560
20561 * xdisp.c (get_next_display_element): Set it->face_id for the
20562 first component of a composition.
20563 (x_produce_glyphs): Check if the font is changed or not for composition.
20564
205652008-02-01 Kenichi Handa <handa@m17n.org>
20566
20567 * fontset.c (Qlatin): New variable.
20568 (syms_of_fontset): Define it as a lisp symbol.
20569 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20570
205712008-02-01 Kenichi Handa <handa@m17n.org>
20572
20573 * font.c (font_unparse_fcname): Pay attention to the case that
20574 some of font property is a null string.
20575
205762008-02-01 Kenichi Handa <handa@m17n.org>
20577
20578 * term.c: Include "composite.h".
20579 (encode_terminal_code): Output all components of composition.
20580 Check the size of encode_terminal_src.
20581 (produce_glyphs): For composition, call produce_composite_glyph.
20582 (append_composite_glyph, produce_composite_glyph): New functions.
20583
20584 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20585 is not found, get font_info from the current ascii face.
20586
205872008-02-01 Kenichi Handa <handa@m17n.org>
20588
20589 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20590 buffer-file-name to Qnil before calling insert_from_buffer.
20591
20592 * font.c (font_unparse_fcname): Pay attention to the case that
20593 foundry is a null string.
20594
205952008-02-01 Kenichi Handa <handa@m17n.org>
20596
20597 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20598
20599 * font.c (Qunicode_sip): New variable.
20600 (syms_of_font): Declare it as a Lisp symbol.
20601
20602 * font.h (Qunicode_sip): Extern it.
20603
206042008-02-01 Kenichi Handa <handa@m17n.org>
20605
20606 * composite.c (get_composition_id): Pay attention to TAB component.
20607
20608 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20609 TAB. Adjust for the change of s->char2b which always points to
20610 the first element of allocated memory.
20611
20612 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20613
20614 * xdisp.c (handle_composition_prop): Set it->c to the first
20615 non-TAB component.
20616 (fill_composite_glyph_string): Change argument.
20617 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20618 (x_produce_glyphs): Fix handling of left/right padding.
20619
206202008-02-01 Kenichi Handa <handa@m17n.org>
20621
20622 * coding.c (detect_coding_system): Fix for handling off
20623 inhibit_iso_escape_detection. Fix for the case that no coding
20624 system is defined for a specific coding category.
20625
206262008-02-01 Kenichi Handa <handa@m17n.org>
20627
20628 * font.c (font_matching_entity): Delete unused local var.
20629
20630 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20631 opening a font.
20632
20633 * fileio.c (Finsert_file_contents): On recovering a file, assume
20634 Unix-like eol.
20635 (choose_write_coding_system): On auto-saving a file, force
20636 Unix-like eol.
20637
20638 * coding.c (setup_coding_system): Fix setting of
20639 coding->common_flags based on eol_type.
20640 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20641 inherit from it.
20642
206432008-02-01 Kenichi Handa <handa@m17n.org>
20644
20645 * alloc.c (NSTATICS): Increas to 0x600.
20646
206472008-02-01 Kenichi Handa <handa@m17n.org>
20648
20649 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20650 (ftfont_list): Don't check :name property.
20651 (ftfont_match): New function.
20652 (ftfont_pattern_entity): If the pattern doesn't contain
20653 FC_SPACING, don't assume FC_MONO.
20654
20655 * font.h (struct font_driver): New member `match'.
20656 (font_update_drivers): Adjust prototype.
20657
20658 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20659 property of FONT.
20660 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20661 them unconditionally.
20662 (font_matching_entity): New function.
20663 (font_open_by_name): Try font_matching_entity if exact match is
20664 not found.
20665 (font_update_drivers): Delete the arg FONT. Return a list of
20666 actually used backends. Don't free faces, font caches here.
20667 Don't store data in frame parameters. Don't call x_set_font.
20668 (Ffont_spec): Store :name property as is.
20669 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20670 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20671 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20672 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20673 Call font->driver->otf_gsub instead of font_otf_gsub.
20674
20675 * frame.c (x_set_font_backend): Do more works that were done in
20676 font_update_drivers before.
20677
20678 * xfont.c (xfont_match): New function.
20679 (xfont_driver): Set xfont_driver.match to xfont_match.
20680 (xfont_draw): Set font in GC if necessary.
20681
20682 * ftxfont.c (ftxfont_match): New function.
20683 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20684
20685 * xftfont.c (xftfont_match): New function.
20686 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20687
206882008-02-01 Kenichi Handa <handa@m17n.org>
20689
20690 * font.h (struct font): New member scalable.
20691 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20692 (font_otf_gsub): Adjust prototype.
20693
20694 * font.c (font_otf_capability): Fix handling of the default langsys.
20695 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20696 Check the contents of SPEC.
20697 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20698 (check_gstring): New function.
20699 (REPLACEMENT_CHARACTER): New macro.
20700 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20701 glyph codes of GSTRING.
20702 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20703 (font_prepare_composition): Set cmp->glyph_len.
20704 (font_open_entity): Set font->scalable.
20705 (Ffont_get): Handle :otf property.
20706 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20707 functions.
20708 (Fquery_font): Use font->font.full_name.
20709 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20710 Sfont_otf_alternates.
20711
20712 * ftfont.c (ftfont_open): Set font->font.full_name and
20713 font->font.name properly. Fix calculation of font->font.height
20714 and font->min_width.
20715
20716 * ftxfont.c (ftxfont_create_gcs): New function.
20717 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20718 (ftxfont_draw_backgrond): Fix filling region.
20719 (ftxfont_default_fid): New function.
20720 (ftxfont_open): Set xfont->fid to the return value of
20721 ftxfont_default_fid.
20722 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20723 (ftxfont_done_face): Free only GCs that are created by
20724 ftxfont_create_gcs.
20725 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20726
20727 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20728 Clip to src->width, etc (not src->clip_XXX).
20729
20730 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20731 FontBackend frame parameter.
20732
207332008-02-01 Kenichi Handa <handa@m17n.org>
20734
20735 * font.h (struct font_driver_list): New member `on'.
20736 (Fclear_font_cache): EXFUN it.
20737 (font_update_drivers): Extern it.
20738
20739 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20740 (font_list_entities): Check driver_list->on.
40b1a3a9 20741 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
20742 (font_update_drivers): New function.
20743 (Fclear_font_cache): Check driver_list->on.
20744
20745 * frame.h (Qfont_backend): Extern it.
20746 (x_set_font_backend): Extern it.
20747
20748 * frame.c (Qfont_backend): New variable.
20749 (frame_parms): New element for font-backend.
20750 (x_set_font_backend): New function.
20751
20752 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20753 FontBackend frame parameter.
20754 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20755 x_set_font_backend.
20756
20757 * xfont.c (xfont_list): Don't try listing by :name property if the
20758 name is not for XLFD.
20759
207602008-02-01 Kenichi Handa <handa@m17n.org>
20761
20762 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20763 (LGLYPH_SET_TO): New macros.
20764 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20765 element of G is vector or not.
20766 (font_at): Extern it.
20767
20768 * font.c: Include window.h.
20769 (font_lispy_object): New function.
20770 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20771 end of valid glyph.
20772 (font_close_object): Fix getting (struct font *).
20773 (font_at): New function.
20774 (Ffont_get): If FONT is a font-object, get entity from it.
20775 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20776 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20777 range check.
20778 (Ffont_at): New function.
20779 (syms_of_font): Defsubr Sfont_at.
20780
20781 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20782 before the entry for Qcomposition.
20783 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20784 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20785 the font in gstring.
20786 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20787 LGLYPH_FORM (g) to detect the end of valid glyph.
20788 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20789 we are composing with gstring.
20790
20791 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20792 Check if adjustment is vector or not.
20793
20794 * Makefile.in (font.o): Make it depends on window.h.
20795
207962008-02-01 Kenichi Handa <handa@m17n.org>
20797
20798 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20799 adjustment is vector or not.
20800
208012008-02-01 Miles Bader <miles@gnu.org>
20802
20803 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20804
208052008-02-01 Kenichi Handa <handa@m17n.org>
20806
20807 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20808 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20809 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20810
20811 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20812 (DEVICE_DELTA): Fix typo.
20813 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20814 LGLYPH format.
20815
20816 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20817 the change of LGLYPH format.
20818
208192008-02-01 Kenichi Handa <handa@m17n.org>
20820
20821 * ftfont.c (ftfont_list): Fix typo.
20822 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20823
208242008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20825
20826 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20827
20828 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20829 xftface_info is non-NULL.
20830
208312008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20832
20833 * ftfont.c (ftfont_list): Move misplaced #endif.
20834
208352008-02-01 Kenichi Handa <handa@m17n.org>
20836
20837 * ftfont.c (ftfont_list): Pay attention to the case that
20838 FC_CAPABILITY is not defined.
20839
208402008-02-01 Kenichi Handa <handa@m17n.org>
20841
20842 * xftfont.c (xftfont_open): Set charset related members to -1.
20843
20844 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20845 QCname.
20846 (ftfont_open): Set charset related members to -1.
20847
20848 * fontset.c (Votf_script_alist): New variable.
20849 (syms_of_fontset): Initialize it.
20850 (fontset_font): Delete unused variable.
20851
20852 * fontset.h (Votf_script_alist): Extern it.
20853
20854 * font.c (font_find_for_lface): Optimize code.
20855
20856 * font.h (font_close_object, font_merge_old_spec): Extern them.
20857
208582008-02-01 Kenichi Handa <handa@m17n.org>
20859
20860 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20861 (syms_of_font): Initialize them.
20862 (font_pixel_size): Allow float value in dpi.
20863 (font_prop_validate_type): Delete.
20864 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20865 Change caller.
20866 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20867 (font_prop_validate_extra): Delete.
20868 (font_prop_validate_spacing): New function.
20869 (font_property_table): Add elements for all known properties.
20870 (get_font_prop_index): Rename from check_font_prop_name. New
20871 argument FROM. Change caller.
20872 (font_prop_validate): Validate all known properties.
20873 (font_put_extra): Delete argument force. Change caller.
20874 (font_expand_wildcards): Make it static. Fix the way of shrinking
20875 the possible range.
20876 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20877 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20878 Change caller.
20879 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20880 (font_parse_fcname): Delete argument merge. Fix parsing of point
20881 size. Don't validate properties values here. Change caller.
20882 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20883 (font_open_by_name): Delete unused variable.
20884 (Ffont_spec): Likewise. Validate property values.
20885 (Ffont_match_p): New function.
20886
20887 * font.h (QCscalable): Extern it.
20888 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20889
20890 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20891
20892 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20893 (xfont_list_pattern): New function.
20894 (xfont_list): Use xfont_list_pattern.
20895
208962008-02-01 Kenichi Handa <handa@m17n.org>
20897
20898 * font.h (Flist_fonts): EXFUN it.
20899
209002008-02-01 Jason Rumney <jasonr@gnu.org>
20901
20902 * w32term.c (w32_initialize): Add back smoothing_type and
20903 smoothing_enabled definitions.
20904
209052008-02-01 Kenichi Handa <handa@m17n.org>
20906
20907 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20908 s->face->font on determining underline position.
20909
209102008-02-01 Kenichi Handa <handa@m17n.org>
20911
20912 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20913 (font_has_char): Accept font-object too.
20914 (font_find_for_lface): Try at first with a size specified in face.
20915
209162008-02-01 Kenichi Handa <handa@m17n.org>
20917
20918 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20919 font_open_by_name.
20920
209212008-02-01 Kenichi Handa <handa@m17n.org>
20922
20923 * font.h (QCspacing, QCdpi): Extern them.
20924 (enum font_spacing): New enum.
20925 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20926
20927 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20928 (QCspacing, QCdpi): New variables.
20929 (syms_of_font): Initialize them.
20930 (font_pixel_size): New function.
20931 (font_put_extra): New function.
20932 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20933 in FONT_EXTRA.
20934 (font_parse_fcname): Handle enumerated values (e.g. bold).
20935 Fix handling font size. Add QCname property that contains only
20936 unknown properties.
20937 (font_score): Change argument. Change caller. Pay attention to
20938 FONT_PIXEL_SIZE_QUANTUM.
20939 (font_sort_entites, font_list_entities, font_find_for_lface)
20940 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20941 (Ffont_spec): Add QCname property that contains only unknown properties.
20942
20943 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20944 include weight in listing pattern, instead check weight of each
20945 listed font. Don't include scalable in pattern. Pay attention to
20946 FONT_PIXEL_SIZE_QUANTUM.
20947
209482008-02-01 Kenichi Handa <handa@m17n.org>
20949
20950 * font.c (font_parse_fcname): Fix parsing of point-size.
20951 (font_unparse_fcname): Produce symbolic names for style properties.
20952 (font_list_entities): Handle float size correctly.
20953 (font_open_by_name): Prefer `normal' property values if the name
20954 doesn't specify them.
20955
20956 * fontset.c (Finternal_char_font): Use font_get_name, not
20957 Ffont_xlfd_name.
20958
20959 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20960 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20961 pattern. Don't force scalable.
20962
20963 * xftfont.c (xftfont_open): For generating a name, start from
20964 96-byte buffer.
20965
209662008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20967
20968 * frame.h (x_new_fontset2): Fix prototype.
20969
209702008-02-01 Kenichi Handa <handa@m17n.org>
20971
20972 * font.h (struct font_driver): Delete member parse_name.
20973 (font_match_p, font_get_spec, font_parse_fcname)
20974 (font_unparse_fcname): Extern them.
20975 (font_get_name): Adjust prototype.
20976
20977 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20978 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20979 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20980 unnecessary checks for weight, slant, and swidth.
20981 (font_parse_fcname): New function.
20982 (font_unparse_fcname): New function.
20983 (font_parse_name): New function.
20984 (font_match_p): New function.
20985 (font_get_name): Change return value to Lisp string.
20986 (font_get_spec): New function.
20987 (Qunspecified, Qignore_defface): Don't extern them.
20988 (font_find_for_lface): Assume that LFACE is fully specified.
20989 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20990 object, use it for FACE.
20991 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20992 driver->parse_name.
20993 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20994
20995 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20996 prototype.
20997
20998 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20999 argument F. Don't call Fnew_fontset. Instead, directly call
21000 make_fontset.
21001
21002 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
21003
21004 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
21005 of x_new_fontset2.
21006
21007 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
21008 (Qsans__serif): New variables.
21009 (ftfont_generic_family_list): New variable.
21010 (syms_of_ftfont): Initialize the above variables.
21011 (ftfont_pattern_entity): Delete argument NAME.
21012 (ftfont_list_generic_family): New function.
21013 (ftfont_parse_name): Delete this function.
21014 (ftfont_list): Try generic family only when FcFontList found no font.
21015 (ftfont_list_family): Fix args to FcObjectSetBuild.
21016
21017 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
21018 object in attrs[LFACE_FONT_INDEX].
21019 (set_lface_from_font_name): Cancel all changes for font-backend.
21020 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
21021 function.
21022 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
21023 font object in QCfont attribute.
21024 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
21025 (realize_default_face) [USE_FONT_BACKEND]: Call
21026 set_lface_from_font_and_fontset.
21027
21028 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
21029 "fixed", and signal error here if no suitable font was found.
21030
21031 * xfont.c (xfont_parse_name): Delete this function.
21032
21033 * xftfont.c (xftfont_open): Change coding style of error
21034 handling. Generate fontconfig's fontname pattern.
21035
21036 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
21037 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
21038
21039 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
21040 Both args FONTSET and FONT_OBJECT must be existing ones.
21041
210422008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21043
21044 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
21045
210462008-02-01 Kenichi Handa <handa@m17n.org>
21047
21048 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
21049
21050 * font.h (struct font): Fix typo.
21051
21052 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
21053 XLFD_XXX_INDEX.
21054 (enum xlfd_field_mask): New enum.
21055 (intern_font_field): Changed argument. Change caller. If digits
21056 are followed by non-digits, return a symbol.
21057 (font_expand_wildcards): New function.
21058 (font_parse_xlfd): Fix wildcard handling.
21059 (Ffont_spec): If :name is specified, reflect the info in the other
21060 properties.
21061
21062 * ftfont.c (ftfont_pattern_entity): Fix typo.
21063 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
21064 locale.
21065
210662008-02-01 Kenichi Handa <handa@m17n.org>
21067
21068 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
21069
21070 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
21071 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
21072 registry doesn't specify encoding part.
21073 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
21074 (font_open_by_name): At first try parsing the name.
21075 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
21076 as Lisp symbols.
21077
21078 * fontset.c (reorder_font_vector): Pay attention to the case that
21079 the 3rd element of font_def is nil.
21080 (fontset_font): For the default fontset, append one more fontset
21081 elements for a script-based font specification. Don't add script
21082 attribute on finding a font.
21083 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
21084 font name.
21085 (fontset_ascii_font): If a font can't be opened, return nil.
21086
21087 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
21088 (ftfont_pattern_entity): New function.
21089 (ftfont_get_cache): Assume that freetype_font_cache is already
21090 initialized.
21091 (ftfont_list): Handle the case that a file is specified in font
21092 name. Use ftfont_pattern_entity to generate entities.
21093 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
21094 (syms_of_ftfont): Initialize freetype_font_cache.
21095
21096 * xftfont.c (xftfont_open): Make the font name fontconfig's
21097 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
21098 (xftfont_close): Free font->font.name if not NULL.
21099
21100 * xfont.c (xfont_list): If script is specified for a font, return
21101 null_vector.
21102 (xfont_list_family): Declare argument type.
21103
21104 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
21105 name, set LFACE_FONT (lface) to nil.
21106
21107 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
21108 return Qnil.
21109
211102008-02-01 Kenichi Handa <handa@m17n.org>
21111
21112 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
21113 (standard_args): Add "-enable-font-backend".
21114
211152008-02-01 Kenichi Handa <handa@m17n.org>
21116
21117 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
21118 (struct xftdraw_list, xftdraw_list): Delete them.
21119 (register_xftdraw, check_xftdraw): Delete them.
21120 (xftfont_prepare_face): Don't call register_xftdraw.
21121 (xftfont_done_face): Don't call check_xftdraw.
21122 (xftfont_draw): Get background color only when with_background is
21123 nonzero.
21124
21125 * xfont.c (xfont_encode_char): Fix calculation of char2b.
21126
211272008-02-01 Kenichi Handa <handa@m17n.org>
21128
21129 These changes are for the new font handling codes.
21130
21131 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
21132 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
21133 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
21134 (FONTSRC, FONTOBJ): New variables.
21135 (obj): Add $(FONTOBJ).
21136 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
21137 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
21138 @LIBOTF_LIBS@.
21139 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
21140 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
21141
21142 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
21143
21144 * character.h (Vscript_representative_chars): Extern it.
21145
21146 * character.c (Vscript_representative_chars): New variable.
21147 (syms_of_character): Declare it as a Lisp variable.
21148
21149 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
21150 enable_font_backend is nonzero, accept the composition method
21151 COMPOSITION_WITH_GLYPH_STRING.
21152
21153 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
21154 enumeration COMPOSITION_WITH_GLYPH_STRING.
21155
21156 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
21157 members clip_x, clip_y, clip_width, and clip_height.
21158 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
21159
21160 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
21161 --enable-font-backend. Call syms_of_font.
21162
21163 * fns.c (assoc_no_quit): New function.
21164
21165 * fontset.h (FONT_INFO_FROM_FACE): New macro.
21166 (face_for_font, new_fontset_from_font)
21167 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
21168
21169 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
21170 (fontset_font, fontset_ascii, face_for_char)
21171 (make_fontset_for_ascii_face, Ffont_info)
21172 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
21173 is nonzero, use font-backend mechanism.
21174 (find_font_encoding): Make it non-static.
21175 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
21176 New functions.
21177
21178 * frame.h (struct frame): New members resx and resy.
21179 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
21180 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
21181
21182 * frame.c [USE_FONT_BACKEND]: Include "font.h".
21183 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
21184
21185 * lisp.h (assoc_no_quit): Extern it.
21186
21187 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
21188 Through out the file, use FONT_INFO_FROM_FACE instead of
21189 FONT_INFO_FROM_ID, use get_per_char_metric instead of
21190 rif->per_char_metric.
21191 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21192 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21193 (get_glyph_face_and_encoding, fill_composite_glyph_string)
21194 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21195 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21196 nonzero, use font-backend mechanism.
21197 (get_per_char_metric): New function.
21198
21199 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21200 (set_lface_from_font_name)
21201 (set_font_frame_param, free_realized_face)
21202 (prepare_face_for_display, clear_face_gcs)
21203 (Finternal_set_font_selection_order, realize_x_face)
21204 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21205 font-backend mechanism.
21206 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21207 (load_face_font) [USE_FONT_BACKEND]: Abort.
21208 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21209 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21210
21211 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21212 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21213 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21214 nonzero, register all available font drivers. Call
21215 x_default_font_parameter for deciding a font.
21216 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21217
21218 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21219 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21220 (x_set_glyph_string_clipping_exactly)
21221 (x_compute_glyph_string_overhangs)
21222 (x_draw_glyph_string_foreground)
21223 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21224 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21225 enable_font_backend is nonzero, use font-backend mechanism.
21226 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21227
212282008-02-01 Kenichi Handa <handa@m17n.org>
21229
21230 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21231 system_eol_type.
21232 (syms_of_coding): Initialize system_eol_type.
21233
21234 * process.c (Fset_process_coding_system): Inherit system's eol
21235 format if necessary.
21236
212372008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21238
21239 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21240
212412008-02-01 Kenichi Handa <handa@m17n.org>
21242
21243 * coding.c (decode_eol): Pay attention to buffer relocation in
21244 del_range_2.
21245 (decode_coding): Call decode_eol before restoring undo_list.
21246
212472008-02-01 Kenichi Handa <handa@m17n.org>
21248
21249 * charset.c (Fdefine_charset_internal): Fix setting of
21250 emacs_mule_bytes.
21251
212522008-02-01 Kenichi Handa <handa@m17n.org>
21253
21254 * keyboard.c (read_char): Check if C is a character or not before
21255 looking up Vkeyboard_translate_table.
21256
212572008-02-01 Kenichi Handa <handa@m17n.org>
21258
21259 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21260 condition to terminate the loop.
21261
212622008-02-01 Kenichi Handa <handa@m17n.org>
21263
21264 * coding.c (produce_composition): Compare charbuf[i] instead of
21265 args[i] against 0.
21266 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21267
212682008-02-01 Kenichi Handa <handa@m17n.org>
21269
21270 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21271 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21272 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21273 detect_coding.
21274 (emacs_mule_char): Handle old style (Emacs 20) component character
21275 of a composition.
21276 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21277 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21278 composition rule.
21279 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21280
212812008-02-01 Kenichi Handa <handa@m17n.org>
21282
21283 * coding.c (encode_coding_ccl): Allocate destination dynamically
21284 when necessary.
21285
212862008-02-01 Kenichi Handa <handa@m17n.org>
21287
21288 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21289 the loop. When quitted, show a proper error message.
21290
212912008-02-01 Kenichi Handa <handa@m17n.org>
21292
21293 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21294 src->clip_head and src->clip_tail temporarily instead of src->hl.
21295
21296 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21297 character sequence.
21298 (Fccl_execute_on_string): Use ASET, not XSET.
21299
213002008-02-01 Kenichi Handa <handa@m17n.org>
21301
21302 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21303
213042008-02-01 Kenichi Handa <handa@m17n.org>
21305
21306 * coding.c (decode_coding): Fix the condition of terminating the
21307 decoding loop.
21308
213092008-02-01 Kenichi Handa <handa@m17n.org>
21310
21311 * data.c (Faset): On setting a character bigger than 255 in a
21312 unibyte string, signal an error instead of make the string multibyte.
21313
213142008-02-01 Kenichi Handa <handa@m17n.org>
21315
21316 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21317 made by a mapping table.
21318
213192008-02-01 Kenichi Handa <handa@m17n.org>
21320
21321 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21322 not.
21323 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21324 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21325
21326 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21327 s->face is NULL or not.
21328
213292008-02-01 Kenichi Handa <handa@m17n.org>
21330
21331 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21332 (x_draw_glyph_string): Fix drawing of right_overhang and
21333 left_overhang around/on cursor.
21334
21335 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21336
213372008-02-01 Kenichi Handa <handa@m17n.org>
21338
21339 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21340
213412008-02-01 Kenichi Handa <handa@m17n.org>
21342
21343 * coding.c (Fdefine_coding_system_internal)
21344 (Fdefine_coding_system_alias): Avoid a duplicated element in
21345 Vcoding_system_alist.
21346
213472008-02-01 Kenichi Handa <handa@m17n.org>
21348
21349 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21350
21351 * coding.c (Qcoding_system_define_form): New variable.
21352 (syms_of_coding): Intern and staticpro it.
21353 (Fcoding_system_p): Check Qcoding_system_define_form.
21354 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21355
21356 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21357 Fcoding_system_p.
21358 (CHECK_CODING_SYSTEM): If ID is not available, call
21359 Fcheck_coding_system.
21360 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21361 Try also Fcheck_coding_system.
21362
213632008-02-01 Kenichi Handa <handa@m17n.org>
21364
21365 * coding.c (code_conversion_restore): GCPRO arg.
21366
213672008-02-01 Kenichi Handa <handa@m17n.org>
21368
21369 * character.c (lisp_string_width): Check multibyteness of STRING.
21370
213712008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21372
21373 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21374 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21375 (decode_mac_font_name): Use decode_coding_c_string instead of
21376 decode_coding.
21377 (x_load_font): Initialize fontp->fontset to -1. Set
21378 fontp->encoding_type.
21379
213802008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 * search.c (search_buffer): Give up BM search on case-fold-search
21383 if one of a target character has a case-equivalence of different
3b59c351 21384 byte length even if that target character is an ASCII.
aac0c6e3
MR
21385 (simple_search): Fix calculation of byte length of matched text.
21386 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21387
213882008-02-01 Kenichi Handa <handa@m17n.org>
21389
21390 * coding.c (decode_coding): Fix handling of invalid bytes.
21391
213922008-02-01 Kenichi Handa <handa@m17n.org>
21393
21394 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21395 Unicode characters.
21396
213972008-02-01 Kenichi Handa <handa@m17n.org>
21398
21399 * coding.c (encode_coding_object): If a pre-write-conversion
21400 function makes a new buffer, kill it.
21401
214022008-02-01 Kenichi Handa <handa@m17n.org>
21403
21404 * coding.c (QCascii_compatible_p): New variable.
21405 (syms_of_coding): Initialize it.
21406 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21407 calling string_char.
21408 (record_conversion_result): Add `default:' case.
21409 (coding_charset_list): Delete unused variable `coding_type'.
21410 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21411 property in the plist of the coding system.
21412 (Fcoding_system_put): Check QCascii_compatible_p.
21413
214142008-02-01 Miles Bader <miles@gnu.org>
21415
21416 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21417 removed calculation of frame `f', as it's now used.
21418
214192008-02-01 Kenichi Handa <handa@m17n.org>
21420
21421 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21422 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21423 (UNIDATA): New variable.
21424 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21425 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21426 $(RUN_TEMACS) unconditionally.
21427
214282008-02-01 Kenichi Handa <handa@m17n.org>
21429
21430 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21431 (admindir): New variable.
21432 ($(lispsource)international/charprop.el): New target.
21433
214342008-02-01 Miles Bader <miles@gnu.org>
21435
21436 * character.c (chars-in-region): Remove obsolete function.
21437 (syms_of_character): Remove its initialization.
21438
214392008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21440
21441 * w32select.c (validate_coding_system)
21442 (setup_windows_coding_system): New functions.
21443 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21444 setup_windows_coding_system.
21445 (setup_config, Fw32_get_clipboard_data): Use
21446 validate_coding_system.
21447 (Fx_selection_exists): Move call to setup_config to a place
21448 where signals are allowed.
21449
21450 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21451 (Fcheck_coding_system): Add declarations.
21452
214532008-02-01 Kenichi Handa <handa@m17n.org>
21454
21455 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21456
214572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21458
21459 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21460 string as the second argument for x_new_fontset.
21461
214622008-02-01 Kenichi Handa <handa@m17n.org>
21463
21464 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21465 (encode_coding_object): Use safe_call instead of call2.
21466
214672008-02-01 Kenichi Handa <handa@m17n.org>
21468
21469 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21470
21471 * Makefile.in (lisp): Include charprop.el.
21472
214732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21474
21475 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21476 Not sure if it's unnecessary.
21477
214782008-02-01 Steven Tamm <steventamm@mac.com>
21479
21480 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21481 some possibly unnecessary fontset checking code that crashed
21482 when creating a new frame.
21483
214842008-02-01 Kenichi Handa <handa@m17n.org>
21485
21486 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21487 lookup_face.
21488
21489 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21490
21491 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21492
214932008-02-01 Kenichi Handa <handa@m17n.org>
21494
21495 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21496 (coding_charset_list): New function.
21497
21498 * coding.h (coding_charset_list): Extern it.
21499
215002008-02-01 Kenichi Handa <handa@m17n.org>
21501
21502 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21503 concatenation of family and registry.
21504
215052008-02-01 Kenichi Handa <handa@m17n.org>
21506
21507 * character.h (BYTE8_STRING): Fix typo.
21508
21509 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21510 string to multibyte (sync to HEAD).
21511
21512 * casefiddle.c (casify_region): Handle changes in byte-length
21513 using replace_range_2 (sync to HEAD).
21514
215152008-02-01 Andreas Schwab <schwab@suse.de>
21516
21517 * chartab.c (map_char_table): GCPRO table and arg.
21518
215192008-02-01 Kenichi Handa <handa@m17n.org>
21520
21521 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21522 already at limit.
21523
215242008-02-01 Kenichi Handa <handa@m17n.org>
21525
21526 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21527 instead of fast_c_string_match_ignore_case.
21528 (find_font_encoding): Change argument to Lisp_Object. Use
21529 fast_string_match_ignore_case instead of
21530 fast_c_string_match_ignore_case. Change caller.
21531
215322008-02-01 Kenichi Handa <handa@m17n.org>
21533
21534 * xdisp.c (get_next_display_element): In unibyte case, decide to
21535 display in octal form by checking a character by
21536 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21537
21538 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21539
21540 * character.c (unibyte_has_multibyte_table): New variable.
21541
21542 * character.h (unibyte_has_multibyte_table): Extern it.
21543 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21544
215452008-02-01 Kenichi Handa <handa@m17n.org>
21546
21547 * coding.c (encode_coding_iso_2022): Fix handling of charset
21548 annotation.
21549
215502008-02-01 Kenichi Handa <handa@m17n.org>
21551
21552 * coding.c (setup_coding_system): If coding_system is nil, use
21553 Qundecided.
21554 (Fterminal_coding_system): Return nil if terminal coding system is
21555 `undecided'.
21556 (syms_of_coding): Define coding-system `undecided' here. Setup
21557 terminal_coding as `undecided'.
21558
215592008-02-01 Kenichi Handa <handa@m17n.org>
21560
21561 * xdisp.c (message_dolog, set_message_1): Call
21562 unibyte_char_to_multibyte with arg type int.
21563
21564 * lread.c (read1): Fix reading of a char-table.
21565
21566 * print.c (print_object): Include sub char-table in circularities
21567 detection.
21568
215692008-02-01 Kenichi Handa <handa@m17n.org>
21570
21571 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21572 Append the found sequences in car of ARGS instead of prepending.
21573
215742008-02-01 Kenichi Handa <handa@m17n.org>
21575
21576 * fileio.c (report_file_error): Make a unibyte string from
21577 strerror (errorno).
21578 (Fsubstitute_in_file_name): Fix the arg to
21579 unibyte_char_to_multibyte. It is evaluated twice.
21580
215812008-02-01 Kenichi Handa <handa@m17n.org>
21582
21583 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21584
215852008-02-01 Kenichi Handa <handa@m17n.org>
21586
21587 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21588 BOM is not found.
21589 (detect_coding, detect_coding_system): Optimization for ISO-2022
21590 when no 8-bit data is found.
21591
215922008-02-01 Jason Rumney <jasonr@gnu.org>
21593
21594 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21595
215962008-02-01 Kenichi Handa <handa@m17n.org>
21597
21598 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21599 CHARS.
21600
216012008-02-01 Steven Tamm <steventamm@mac.com>
21602
21603 * macterm.c (mac_encode_char): Add charset argument and update
21604 to use encoding_type.
21605 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21606 switch to pure fontset.
21607 (decode_mac_font_name): Temporarily remove decoding.
21608 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21609 (x_load_font): Temporarily remove encoding.
21610
216112008-02-01 Kenichi Handa <handa@m17n.org>
21612
21613 * xfaces.c (Fface_font): If frame is not on a window system,
21614 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21615 refer to face->font.
21616 (split_font_name_into_vector, build_font_name_from_vector)
21617 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21618 when HAVE_WINDOW_SYSTEM is defined.
21619
216202008-02-01 Kenichi Handa <handa@m17n.org>
21621
21622 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21623 (x_produce_glyphs): Fix setting of members of cmp in case
21624 cmp->glyph_len is zero.
21625
21626 * fontset.c (Fset_fontset_font): Fix docstring.
21627 (Ffontset_info): Make it backward compatible. New arg ALL.
21628
216292008-02-01 Kim F. Storm <storm@cua.dk>
21630
21631 * process.c (read_process_output): Grow decoding_buf when needed;
21632 this could cause a crash in allocate_string and compact_small_strings.
21633
216342008-02-01 Kenichi Handa <handa@m17n.org>
21635
21636 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21637
216382008-02-01 Kenichi Handa <handa@m17n.org>
21639
21640 * coding.c (setup_coding_system): Set coding->common_flags
21641 correctly for raw-text.
21642 (consume_chars): On encoding unibyte text by raw-text, don't check
21643 multibyte form.
21644 (encode_coding): On encoding by raw-text, never use translation tables.
21645
21646 * fileio.c (e_write): Short cut for the case of no encoding.
21647
216482008-02-01 Kenichi Handa <handa@m17n.org>
21649
21650 * coding.c (detect_coding, detect_coding_system): Delete unused
21651 variables.
21652
216532008-02-01 Kenichi Handa <handa@m17n.org>
21654
21655 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21656 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21657
216582008-02-01 Kenichi Handa <handa@m17n.org>
21659
21660 * coding.c (Ffind_coding_systems_region_internal): Include
21661 raw-text and no-conversion in the result.
21662
216632008-02-01 Kenichi Handa <handa@m17n.org>
21664
21665 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21666 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21667 FONT_DEF.
21668 (font_def_arg, add_arg, from_arg, to_arg): New args.
21669 (set_fontset_font): Change argument.
21670 (Fset_fontset_font): Fix for the case that TARGET is a script
21671 name and charset name.
21672 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21673
216742008-02-01 Kenichi Handa <handa@m17n.org>
21675
21676 * fontset.c (fontset_font): Rename from fontset_face. Change return
21677 value.
21678 (face_suitable_for_char_p, face_for_char): Adjust for the change
21679 of fontset_font.
21680 (make_fontset_for_ascii_face): Fix setting of the fontset element
21681 for ASCII.
21682 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21683 to get a font name.
21684 (Ffontset_info): Adjust for the change of fontset_font.
21685
21686 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21687
21688 * character.h (LEADING_CODE_LATIN_1_MIN)
21689 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21690
216912008-02-01 Kenichi Handa <handa@m17n.org>
21692
21693 * editfns.c (check_translation): New function.
21694 (Ftranslate_region_internal): Handle M:N mapping.
21695
216962008-02-01 Kenichi Handa <handa@m17n.org>
21697
21698 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21699
217002008-02-01 Kenichi Handa <handa@m17n.org>
21701
21702 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21703 goto invalid_code.
21704 (decode_coding_iso_2022): Fix handling of invalid designation.
21705
21706 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21707 after calling code_conversion_save.
21708
217092008-02-01 Kenichi Handa <handa@m17n.org>
21710
21711 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21712
21713 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21714
21715 * fontset.c: Include "intervals.h".
21716 (fontset_face): Fix comparing of Lisp_Objects.
21717 (free_face_fontset, new_fontset_from_font_name): Fix
21718 Lisp_Object/int mixup.
21719
21720 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21721
21722 * coding.c: Add many prototypes for static functions.
21723 (get_translation_table): Allow max_lookup to be NULL.
21724 (decode_coding, Ffind_coding_systems_region_internal)
21725 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21726 get_translation_table with max_lookup NULL.
21727
217282008-02-01 Kenichi Handa <handa@m17n.org>
21729
21730 * coding.c (get_translation_table): Declare it as Lisp_Object.
21731 (LOOKUP_TRANSLATION_TABLE): New macro.
21732 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21733 instead of CHAR_TABLE_REF.
21734
217352008-02-01 Kenichi Handa <handa@m17n.org>
21736
21737 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21738 annotation data format.
21739 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21740 Change arguments FROM and TO to single argument NCHARS. Change caller.
21741 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21742 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21743 (decode_coding_ccl, decode_coding_charset): Pay attention to
21744 coding->charbuf_used.
21745 (get_translation): New function.
21746 (produce_chars): New arguments translation_table and last_block.
21747 Translate characters here. Return number of carryover chars.
21748 Change caller.
21749 (produce_composition): New argument pos. Change caller.
21750 Adjust for the change of annotation data format.
21751 (produce_charset, produce_annotation): Likewise.
21752 (decode_coding, encode_coding): Don't call translate_chars.
21753 (consume_chars): New arg translation_table. Change caller.
21754 (translate_chars): Delete.
21755 (syms_of_coding): Make translation-table's number of extra slots 2.
21756
217572008-02-01 Kenichi Handa <handa@m17n.org>
21758
21759 * search.c (simple_search): Fix setting this_pos_byte in backward
21760 search.
21761
21762 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21763 byte sequence.
21764 (detect_coding_ccl): Fix setting of the variable valids.
21765
217662008-02-01 Kenichi Handa <handa@m17n.org>
21767
21768 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21769
21770 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21771
21772 * editfns.c (Ftranslate_region_internal): Rename from
21773 Ftranslate_region. Accept a char-table in TABLE.
21774 (syms_of_editfns): Defsubr Stranslate_region_internal.
21775
21776 * xfaces.c (set_lface_from_font_name): If a font is specified for
21777 a frame, generate a fontset from the font.
21778 (build_scalable_font_name): If the scalable font is requested for
21779 a specific size, don't change that size.
21780 (try_font_list): Try a scalable font also in the case that a
21781 pattern string is specified.
21782
217832008-02-01 Kenichi Handa <handa@m17n.org>
21784
21785 * xfaces.c (Fface_font): New optional arg CHARACTER.
21786
217872008-02-01 Kenichi Handa <handa@m17n.org>
21788
21789 * charset.h (CHARSET_OFFSET): New macro.
21790
217912008-02-01 Kenichi Handa <handa@m17n.org>
21792
21793 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21794
21795 * fontset.c (fontset_face): Handle the case that repertory is a
21796 char-table.
21797 (find_font_encoding): Return nil for unknown encoding.
21798 (Fset_fontset_font): Ignore a font of unknown encoding.
21799
218002008-02-01 Kenichi Handa <handa@m17n.org>
21801
21802 * keymap.c (describe_vector): Handle default value of a char table.
21803
21804 * fontset.c (fontset_face): Handle fallback fonts correctly.
21805 (Ffontset_info): Return infomation about fallback fonts.
21806
218072008-02-01 Kenichi Handa <handa@m17n.org>
21808
21809 * fontset.c (FONTSET_DEFAULT): New macro.
21810 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21811 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21812 the case that it is nil.
21813 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21814 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21815
21816 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21817 subset or superset.
21818
218192008-02-01 Kenichi Handa <handa@m17n.org>
21820
21821 * emacs.c (main): Call init_charset after syms_of_XXX.
21822
21823 * charset.c (Vcharset_map_directory): Delete.
21824 (Vcharset_map_path): New variable.
21825 (load_charset_map_from_file): Use Vcharset_map_path instead.
21826 (init_charset): Initialize Vcharset_map_path.
21827 (syms_of_charset): Delete declaration of "charset-map-directory",
21828 add declaration of "charset-map-path".
21829
218302008-02-01 Kenichi Handa <handa@m17n.org>
21831
21832 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21833 ASCII only string.
21834
21835 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21836
21837 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21838 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21839
218402008-02-01 Kenichi Handa <handa@m17n.org>
21841
21842 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21843
21844 * coding.c (QCmnemonic, QCdefalut_char)
21845 (QCdecode_translation_table, QCencode_translation_table)
21846 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21847 (get_translation_table): Return a list of translation tables if
21848 necessary.
21849 (decode_coding): Call get_translation_table with ENCODEP 0.
21850 (char_encodable_p): If translation_table is non-nil, always call
21851 translate_char.
21852 (Fdefine_coding_system_internal): Accept list of translation
21853 tables as :encode-translation-table and :decode-translation-table.
21854 (Fcoding_system_put): New function.
21855 (syms_of_coding): Declare new symbols. Defsubr
21856 Scoding_system_put.
21857 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21858 typically JISX0212.
21859
21860 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21861 when the charset is superset type.
21862
21863 * character.c (translate_char): Accept list of translation tables.
21864
218652008-02-01 Kenichi Handa <handa@m17n.org>
21866
21867 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21868 (CODING_ATTR_TRANS_TBL): New macro.
21869
21870 * coding.c (get_translation_table): New function.
21871 (translate_chars): Fix the bug of skipping annotation data.
21872 (decode_coding, encode_coding): Utilize get_translation_table.
21873 (char_encodable_p, Funencodable_char_position): Translate char if
21874 necessary.
21875 (Ffind_coding_systems_region_internal)
21876 (Fcheck_coding_systems_region): Setup translation table for encode
21877 in a coding system attribute vector in advance.
21878 (Fdefine_coding_system_internal): Allow a symbol as translation
21879 table. For shift-jis type coding system, allow 4th charset.
21880
218812008-02-01 Kenichi Handa <handa@m17n.org>
21882
21883 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21884
21885 * xdisp.c (get_next_display_element): Pass -1 as POS to
21886 FACE_FOR_CHAR if displaying a C-string.
21887
218882008-02-01 Kenichi Handa <handa@m17n.org>
21889
21890 * composite.c (get_composition_id): Handle xoff and yoff in a
21891 composition rule.
21892
21893 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21894 (struct composition): New member lbearing and rbearing.
21895
21896 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21897 (x_get_glyph_overhangs): Handle a composition glyph.
21898 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21899
21900 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21901 composition glyph.
21902
219032008-02-01 Kenichi Handa <handa@m17n.org>
21904
21905 * print.c: Include charset.h.
21906 (Vprint_charset_text_property): New variable.
21907 (Qdefault): Extern it.
21908 (PRINT_STRING_NON_CHARSET_FOUND)
21909 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21910 (print_check_string_result): New variable.
21911 (print_check_string_charset_prop): New function.
21912 (print_prune_charset_plist): New variable.
21913 (print_prune_string_charset): New function.
21914 (print_object): Call print_prune_string_charset if
21915 Vprint_charset_text_property is not t.
21916 (print_interval): Print nothing if interval->plist is nil.
21917 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21918 variable. Init and staticpro print_prune_charset_plist.
21919
219202008-02-01 Kenichi Handa <handa@m17n.org>
21921
21922 * fontset.c (new_fontset_from_font_name): Use the specified font
21923 for all characters in the new fontset.
21924
21925 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21926 OBJECT args.
21927
21928 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21929 OBJECT args for composition too.
21930
21931 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21932 OBJECT args.
21933
219342008-02-01 Kenichi Handa <handa@m17n.org>
21935
21936 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21937
21938 * fontset.c (reorder_font_vector): Adjust for the change of
21939 FONT_DEF format.
21940 (fontset_face): New arg id. Change caller.
21941 (face_for_char): New args pos and object.
21942 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21943 (fs_query_fontset): Check NAME by Fassoc too.
21944 (Fset_fontset_font): Allow non-XLFD font name.
21945 (Ffontset_info): Adjust for the change of FONT_DEF format.
21946
21947 * fontset.h (face_for_char): Adjust prototype.
21948
21949 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21950 (append_space, extend_face_to_end_of_line)
21951 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21952 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21953
21954 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21955 POS and OBJECT args.
21956
21957 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21958 POS and OBJECT args.
21959
219602008-02-01 Jason Rumney <jasonr@gnu.org>
21961
21962 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21963 of GlobalAlloc'ed memory.
21964
219652008-02-01 Kenichi Handa <handa@m17n.org>
21966
21967 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21968
21969 * charset.h (charset_table_used): Delete extern.
21970
21971 * charset.c (charset_table_used): Make it static.
21972 (map_charset_chars): Fix args to c_function with.
21973
21974 * chartab.c (map_sub_char_table_for_charset): Fix args to
21975 c_function with.
21976
21977 * coding.h (enum coding_result_code): Delete
21978 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21979
21980 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21981 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21982 (Vlast_code_conversion_error): New variables.
21983 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21984 (ONE_MORE_BYTE): Record error if any instead of signaling an
21985 error. If non-ASCII multibyte char is found, return the negative
21986 value of the code. All callers changed to check it.
21987 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21988 (record_conversion_result): New function. Change all codes setting
21989 coding->result to call this function.
21990 (detect_coding_utf_8, decode_coding_utf_8)
21991 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21992 Don't use the local variable incomplete.
21993 (emacs_mule_char): Change the second arg to `const'.
21994 (decode_coding): Fix of flushing out unprocessed data.
21995 (make_conversion_work_buffer): Fix making of a work buffer.
21996 (decode_coding_object): Return coding->dst_object.
21997
21998 * fontset.c (set_fontset_font): Fix args.
21999
22000 * lisp.h (CHARACTERBITS): Define as 22.
22001
22002 * process.c (send_process): Be sure to set coding->src_multibyte.
22003
22004 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
22005
220062008-02-01 Kenichi Handa <handa@m17n.org>
22007
22008 * xdisp.c (handle_auto_composed_prop): Give limit to
22009 Fnext_single_char_property_change.
22010
220112008-02-01 Kenichi Handa <handa@m17n.org>
22012
22013 * composite.c (syms_of_composite): Don't make the composition hash
22014 table weak.
22015
22016 * fontset.c (Fset_fontset_font): Fix docstring.
22017
22018 * lisp.h (detect_coding_system): Adjust prototype.
22019
22020 * fileio.c (kill_workbuf_unwind): Delete this function.
22021 (Finsert_file_contents): Adjust the call of detect_coding_system.
22022 Get conversion_buffer by code_conversion_save. Use the macro
22023 CODING_MAY_REQUIRE_DECODING. After decoding, update
22024 coding_system.
22025
22026 * coding.h (make_conversion_work_buffer): Delete extern.
22027 (code_conversion_save): Extern it.
22028
22029 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
22030 (CODING_GET_INFO): Delete argument eol_type. Change callers.
22031 (decode_coding_utf_8): Don't do eol converion.
22032 (detect_coding_utf_16): Check coding->src_chars, not
22033 coding->src_bytes. Add heuristics for those that have no signature.
22034 (decode_coding_emacs_mule, decode_coding_iso_2022)
22035 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22036 Don't do eol converion.
22037 (adjust_coding_eol_type): Return a new coding system.
22038 (detect_coding): Don't detect eol. Fix for utf-16 detection.
22039 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
22040 each change.
22041 (decode_coding): Pay attention to undo_list. Do eol conversion for
22042 all types of coding-systems (if necessary).
22043 (Vcode_conversion_work_buf_list): Delete it.
22044 (Vcode_conversion_reused_workbuf): Rename from
22045 Vcode_conversion_reused_work_buf.
22046 (Vcode_conversion_workbuf_name): New variable.
22047 (reused_workbuf_in_use): New variable.
22048 (make_conversion_work_buffer): Delete the arg DEPTH.
22049 (code_conversion_restore): Change argument to cons.
22050 (code_conversion_save): Delete the argument BUFFER. Change callers.
22051 (detect_coding_system): New argument src_chars. Change callers.
22052 Fix for utf-16 detection.
22053 (init_coding_once): Don't use ISO_carriage_return.
22054 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
22055 reused_workbuf_in_use.
22056
220572008-02-01 Kenichi Handa <handa@m17n.org>
22058
22059 * keymap.c (store_in_keymap): Pay attention to the case that idx
22060 is a cons specifying a character range.
22061
220622008-02-01 Kenichi Handa <handa@m17n.org>
22063
22064 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
22065 HANDLED_RECOMPUTE_PROPS.
22066
22067 * coding.c (Fdefine_coding_system_internal): Fix checking of
22068 ascii compatibility.
22069
220702008-02-01 Kenichi Handa <handa@m17n.org>
22071
22072 * charset.c (find_charsets_in_text): Delete unused locale variable.
22073 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
22074
22075 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
22076 Resync charset_list to Vemacs_mule_charset_list.
22077
22078 * keymap.c (store_in_keymap): Pay attention to the case that idx
22079 is a cons specifying a character range.
22080
220812008-02-01 Kenichi Handa <handa@m17n.org>
22082
22083 * composite.c (update_compositions): Bind inhibit-read-only, etc
22084 to t before calling remove-list-of-text-properties.
22085
22086 * print.c (print_object): Always print ASCII chars as is.
22087
220882008-02-01 Kenichi Handa <handa@m17n.org>
22089
22090 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
22091
22092 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
22093 is a char table.
22094
220952008-02-01 Kenichi Handa <handa@m17n.org>
22096
22097 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
22098
220992008-02-01 Kenichi Handa <handa@m17n.org>
22100
22101 * xfaces.c (set_lface_from_font_name): Fix for the case that
22102 FONTNAME is not fontset name.
22103
221042008-02-01 Kenichi Handa <handa@m17n.org>
22105
22106 * fns.c (base64_encode_1): Fix previous change.
22107
221082008-02-01 Kenichi Handa <handa@m17n.org>
22109
22110 * fontset.c (set_fontset_font): New function.
22111 (Fset_fontset_font): If a font is specified for a charset, use
22112 map_charset_chars to store the font spec in a fontset.
22113
221142008-02-01 Kenichi Handa <handa@m17n.org>
22115
22116 * fontset.c (fontset_face): Create a fallback fontset on demand.
22117 (make_fontset): Don't create a fallback fontset here.
22118 (free_face_fontset): Free a fallback fontset (if any) too.
22119 (n_auto_fontsets): Delete this variable.
22120 (auto_fontset_alist): New variable.
22121 (new_fontset_from_font_name): Check auto_fontset_alist.
22122 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
22123 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
22124 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
22125 Defsubr Sfontset_list_all.
22126
221272008-02-01 Kenichi Handa <handa@m17n.org>
22128
22129 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
22130
221312008-02-01 Kenichi Handa <handa@m17n.org>
22132
22133 * fontset.c (Fnew_fontset): Check NAME more rigidly.
22134
221352008-02-01 Kenichi Handa <handa@m17n.org>
22136
22137 * editfns.c (Fgoto_char): Fix docstring.
22138
221392008-02-01 Kenichi Handa <handa@m17n.org>
22140
22141 * insdel.c (insert_from_gap): Adjust intervals correctly.
22142
221432008-02-01 Jason Rumney <jasonr@gnu.org>
22144
22145 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
22146 (pfnGetFontUnicodeRanges): New dynamically loaded function.
22147 (w32_initialize): Try to load it.
22148 (x_get_font_repertory): Use it if available.
22149 (w32_encode_char): Add shortcut for unicode output.
22150
22151 * w32fns.c (w32_load_system_font): Default charset to -1.
22152 (x_to_w32_charset): Match all fonts for unicode.
22153 (w32_to_x_charset): New parameter matching. Don't return partial
22154 or wildcard charsets.
22155 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
22156 (w32_codepage_for_font): Return CP_UNICODE for unicode.
22157 (w32_to_x_font): Match charset to real charset.
22158 (enum_font_cb2): Always list unicode versions.
22159
22160 * makefile.w32-in (temacs): Increase EMHEAP.
22161
221622008-02-01 Jason Rumney <jasonr@gnu.org>
22163
22164 * w32term.c (w32_encode_char): New charset parameter.
22165 font_info.encoding becomes encoding_type.
22166 (x_get_font_repertory): New function. Warning: stub only!
22167 (x_new_font): Return quickly if font already set.
22168 (x_new_fontset): fontsetname parameter is Lisp_Object.
22169 Use new fs_query_fontset. Try new_fontset_from_font_name.
22170 Use fontset_name for return value.
22171
22172 * w32term.h: Declare x_get_font_repertory.
22173
22174 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
22175 place of find_charset_in_text. Use encode_coding_object in place
22176 of encode_coding.
22177 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
22178 decode_coding.
22179
22180 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
22181 of x_new_fontset.
22182 (w32_load_system_font): Initialize charset as unicode.
22183 font_info.encoding becomes encoding_type.
22184 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
22185 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
22186 (syms_of_w32fns): Set get_font_repertory_func.
22187
22188 * w32console.c: Include character.h. Use terminal_encode_buffer
22189 from term.c.
22190 (write_glyphs): Use new version of encode_terminal_code. Use
22191 encode_coding_object in place of encode_coding.
22192
22193 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22194 encoding becomes encoding_type.
22195
22196 * term.c (terminal_encode_buffer): Make externally visible.
22197
22198 * makefile.w32-in: Add character.h dependancies.
22199 (character.o, chartab.o): New targets.
22200
222012008-02-01 Kenichi Handa <handa@m17n.org>
22202
22203 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22204 CODING_ID_EOL_TYPE.
22205
222062008-02-01 Andreas Schwab <schwab@suse.de>
22207
22208 * coding.c (produce_chars): Revert last change.
22209
222102008-02-01 Kenichi Handa <handa@m17n.org>
22211
22212 * charset.h (charset_unicode): Extern it.
22213
22214 * charset.c (string_xstring_p): Check by (C >= 0x100).
22215 (find_charsets_in_text): Change format of the arc CHARSETS. New
22216 arg MULTIBYTE.
22217 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22218 change of find_charsets_in_text.
22219 (Fsplit_char): Fix doc. Never return unknown.
22220
22221 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22222
22223 * coding.c (Fdefine_coding_system_alias): Update
22224 Vcoding_system_list.
22225
22226 * fontset.c (load_font_get_repertory): Pay attention to the case
22227 that ENCODING of a font is specified by a char-table.
22228
22229 * xterm.c (x_get_font_repertory): Handle the case that the
22230 encoding of font is other than Unicode.
22231
222322008-02-01 Kenichi Handa <handa@m17n.org>
22233
22234 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22235 if a character is encodable by the terminal coding system. If
22236 not, produces proper number of `?'s. Update
22237 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22238 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22239
222402008-02-01 Kenichi Handa <handa@m17n.org>
22241
22242 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22243 variables.
22244 (encode_terminal_code): Change argument. Encode multiple
22245 characters at once. Store the result of encoding in
22246 terminal_encode_buffer.
22247 (write_glyphs, insert_glyphs): Adjust for the change of
22248 encode_terminal_code.
22249 (term_init): Initialize terminal_encode_buffer and
22250 terminal_encode_buf_size.
22251
22252 * coding.c (consume_chars): If coding->src_object is nil, don't
22253 check annotation.
22254
222552008-02-01 Kenichi Handa <handa@m17n.org>
22256
22257 * character.c (char_string): Use ASCII_CHAR_P instead of
22258 SINGLE_BYTE_CHAR_P.
22259
222602008-02-01 Kenichi Handa <handa@m17n.org>
22261
22262 * xdisp.c (handle_auto_composed_prop): Check if the last
22263 characters of auto-composed region is newly composed with the
22264 following characters.
22265 (handle_composition_prop): Fix checking of point being inside
22266 composition.
22267
222682008-02-01 Kenichi Handa <handa@m17n.org>
22269
22270 * fns.c (concat): Don't change multibyteness of the result by
22271 concatenating an 8-bit character.
22272
22273 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22274 multibyteness of the result when newelt is an 8-bit character.
22275
222762008-02-01 Dave Love <fx@gnu.org>
22277
22278 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22279 EMACS_INT.
22280
22281 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22282
22283 * xfaces.c (face_numeric_value): Declare dim size_t.
22284 (Finternal_lisp_face_equal_p): Remove unused f.
22285
22286 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22287 (MATRIX_ROW): Remove unused vars.
22288 (draw_glyphs, x_insert_glyphs, fast_find_position)
22289 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22290 byte/char counts.
22291
22292 * regex.c (regex_compile): Remove unused var.
22293
22294 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22295
22296 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22297 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22298
22299 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22300
22301 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22302
22303 * fileio.c (Fwrite_region): Remove unused var.
22304
22305 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22306 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22307
22308 * composite.c (Fremove_list_of_text_properties): Declare.
22309
22310 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22311 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22312 (coding_inherit_eol_type): Remove unused attrs.
22313 (detect_coding): Cast arg of detect_eol.
22314
22315 * charset.c (syms_of_charset): Remove unused var p.
22316 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22317 byte/char counts.
22318
22319 * casetab.c (set_case_table): Remove unused var.
22320
22321 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22322 unused vars.
22323
223242008-02-01 Dave Love <fx@gnu.org>
22325
22326 * xterm.c (x_bitmap_mask): Declare.
22327
223282008-02-01 Dave Love <fx@gnu.org>
22329
22330 * xterm.c (x_term_init): Fix type error.
22331
22332 * lisp.h: Add Funibyte_char_to_multibyte.
22333
22334 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22335 (Fset_coding_system_priority): Doc fix.
22336
22337 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22338
22339 * indent.c (check_composition): Make start and end EMACS_INT.
22340
22341 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22342
22343 * xdisp.c (handle_composition_prop, check_point_in_composition):
22344 Make buffer positions EMACS_INT.
22345
22346 * composite.c (find_composition, run_composition_function)
22347 (update_compositions, Ffind_composition_internal): Make buffer
22348 positions EMACS_INT.
22349
22350 * composite.h (find_composition, update_compositions): Make
22351 position args EMACS_INT.
22352
22353 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22354
22355 * intervals.c (get_property_and_range):
22356 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22357
22358 * unexalpha.c: Don't include varargs.h.
22359
223602008-02-01 Dave Love <fx@gnu.org>
22361
22362 * coding.h (ENCODE_UTF_8): New.
22363
22364 * Makefile.in (gtkutil.o): Depend on coding.h.
22365
22366 * coding.c (Fset_coding_system_priority): Doc fix.
22367
223682008-02-01 Kenichi Handa <handa@m17n.org>
22369
22370 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22371 the case of auto saving.
22372
223732008-02-01 Andreas Schwab <schwab@suse.de>
22374
22375 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22376 `range' from GC.
22377
223782008-02-01 Kenichi Handa <handa@m17n.org>
22379
22380 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22381
223822008-02-01 Kenichi Handa <handa@m17n.org>
22383
22384 * fileio.c (choose_write_coding_system): Return a decided coding system.
22385 (Fwrite_region): Set Vlast_coding_system_used to the return value
22386 of choose_write_coding_system.
22387
223882008-02-01 Kenichi Handa <handa@m17n.org>
22389
22390 * charset.c (Fset_charset_priority): Pay attention to duplicated
22391 arguments.
22392
22393 * coding.c (QCcategory): New variable.
22394 (syms_of_coding): Defsym it. Set all elements of
22395 Vcoding_category_table and their symbol values.
22396 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22397 coding-category-XXX, and coding-category-list.
22398 (Fdefine_coding_system_internal): Add category in the plist.
22399
224002008-02-01 Kenichi Handa <handa@m17n.org>
22401
22402 * callproc.c (Fcall_process): Handle carryover correctly.
22403
22404 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22405 (raw_text_coding_system): Check NILP (coding_system).
22406 (coding_inherit_eol_type): Check NILP (coding_system) and
22407 NILP (parent).
22408 (consume_chars): Fix for the case of raw-text.
22409
22410 * process.c (read_process_output): Handle carryover correctly.
22411
224122008-02-01 Dave Love <fx@gnu.org>
22413
22414 * regex.c (re_search_2): Fix last change.
22415
224162008-02-01 Kenichi Handa <handa@m17n.org>
22417
22418 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22419 target_multibyte. Even in a unibyte case, return a converted
22420 multibyte char.
22421 (GET_CHAR_AFTER): New macro.
22422 (PATFETCH): Translate via multibyte char.
22423 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22424 (SETUP_MULTIBYTE_RANGE): New macro.
22425 (regex_compile): Setup compiled code so that its multibyteness
22426 matches that of a target. Fix the handling of "[X-YZ]" using
22427 SETUP_MULTIBYTE_RANGE.
22428 (analyse_first) <charset>: For filling fastmap for all multibyte
22429 characters, don't check by BASE_LEADING_CODE_P.
22430 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22431 the same as RE_MULTIBYTE_P (bufp) now.
22432 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22433 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22434 (TRANSLATE_VIA_MULTIBYTE): New macro.
22435 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22436 It is the same as RE_MULTIBYTE_P (bufp) now.
22437 <exactn>: Translate via multibyte.
22438 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22439 translate it.
22440 <charset, charset_not>: Fetch a character by
22441 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22442 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22443 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22444 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22445 by GET_CHAR_AFTER.
22446 (bcmp_translate): Likewise.
22447
22448 * search.c (compile_pattern): Check the member target_multibyte,
22449 not the member multibyte of buf.
22450
22451 * lread.c (read1): While reading a string, set force_singlebyte
22452 and force_multibyte correctly.
22453
22454 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22455 up of unibyte_to_multibyte_table.
22456
224572008-02-01 Kenichi Handa <handa@m17n.org>
22458
22459 * coding.c (setup_coding_system): If coding has
22460 post-read-conversion or pre-write-conversion, set
22461 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22462 respectively.
22463 (decode_coding_gap): Run post-read-conversion if any.
22464
22465 * fileio.c (Finsert_file_contents): Even if we read into a
22466 unibyte buffer, check if we must decode the result or not.
22467
224682008-02-01 Kenichi Handa <handa@m17n.org>
22469
22470 * coding.c (make_conversion_work_buffer): Change the work buffer
22471 name to the same one as that of Emacs 21.
22472
224732008-02-01 Kenichi Handa <handa@m17n.org>
22474
22475 * coding.h (make_conversion_work_buffer): Adjust prototype.
22476 (code_conversion_restore): Don't extern it.
22477
22478 * coding.c (detected_mask): Delete unused variable.
22479 (decode_coding_iso_2022): Pay attention to the byte sequence of
22480 CTEXT extended segment, and retain those bytes as is.
22481 (decode_coding_ccl): Delete unused variable `valids'.
22482 (setup_coding_system): Delete unused variable `category'.
22483 (consume_chars): Delete unused variable `category'. Make it work
22484 for non-multibyte case.
22485 (make_conversion_work_buffer): Change argument.
22486 (saved_coding): Delete unused variable.
22487 (code_conversion_restore): Don't check saved_coding->destination.
22488 (code_conversion_save): New function.
22489 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22490 instead of record_unwind_protect.
22491 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22492 (detect_coding_system): Delete unused variable `mask'.
22493 (Fdefine_coding_system_internal): Delete unused variable id.
22494
22495 * fileio.c (kill_workbuf_unwind): New function.
22496 (Finsert_file_contents): On replacing, call
22497 make_conversion_work_buffer with correct args, and call
22498 record_unwind_protect with the first arg kill_workbuf_unwind.
22499
22500 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22501
225022008-02-01 Kenichi Handa <handa@m17n.org>
22503
22504 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22505 (fontset_add): Fix for the case that TO is less than TO1.
22506 (Ffontset_info): Don't use fallback fontset on checking the
22507 default fontset.
22508 (dump_fontset): New function for debugging.
22509
22510 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22511 coding_type is Qcharset.
22512
225132008-02-01 Kenichi Handa <handa@m17n.org>
22514
22515 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22516 (map_char_table): Don't inherit the value from the parent on
22517 initializing VAL. Adjust for the above change.
22518
225192008-02-01 Kenichi Handa <handa@m17n.org>
22520
22521 * coding.c (Qsignature, Qendian): Delete these variables.
22522 (syms_of_coding): Don't initialize them.
22523 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22524 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22525 detect_info->found.
22526 (decode_coding_utf_16): Don't detect BOM here.
22527 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22528 is NOT utf_16_without_bom.
22529 (setup_coding_system): For a coding system of type utf-16, check
22530 if the attribute :endian is Qbig or not (not nil or not), and set
22531 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22532 (detect_coding): If coding type is utf-16 and BOM detection is
22533 required, detect it.
22534 (Fdefine_coding_system_internal): For a coding system of type
22535 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22536
225372008-02-01 Kenichi Handa <handa@m17n.org>
22538
22539 * coding.c (coding_set_source): Fix for the case that the current
22540 buffer is different from coding->src_object.
22541 (decode_coding_object): Don't use the conversion work buffer if
22542 DST_OBJECT is a buffer.
22543
225442008-02-01 Dave Love <fx@gnu.org>
22545
22546 * lread.c (read_emacs_mule_char) [len==2]: Index
22547 emacs_mule_charset correctly.
22548
225492008-02-01 Dave Love <fx@gnu.org>
22550
22551 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22552 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22553 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22554 treated specially.)
22555 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22556 (detected_mask): Remove Big5 bits.
22557
225582008-02-01 Kenichi Handa <handa@m17n.org>
22559
22560 The following changes are to make the font rescaling facility
22561 compatible with Emacs 21.
22562
22563 * xfaces.c (Vface_font_rescale_alist): Rename from
22564 Vface_resizing_fonts.
22565 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22566 (font_rescale_ratio): Rename from font_resizing_ratio.
22567 (split_font_name): Set font->rescale_ratio.
22568 (better_font_p): Pay attention to font->rescale_ratio.
22569 (build_scalable_font_name): Likewise. Change RESX, and RESY
22570 fields.
22571 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22572
225732008-02-01 Kenichi Handa <handa@m17n.org>
22574
22575 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22576 (Qutf_16_le): Remove these variables.
22577 (syms_of_coding): Don't DEFSYM them.
22578 (decode_coding_utf_16): Fix handling of BOM.
22579 (encode_coding_utf_16): Fix handling of BOM.
22580
225812008-02-01 Kenichi Handa <handa@m17n.org>
22582
22583 * fileio.c (Finsert_file_contents): On replacing, before decoding
22584 the file into the work buffer, set point of the work buffer to the end.
22585
225862008-02-01 Dave Love <fx@gnu.org>
22587
22588 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22589
225902008-02-01 Dave Love <fx@gnu.org>
22591
22592 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22593 and fix C types.
22594
225952008-02-01 Kenichi Handa <handa@m17n.org>
22596
22597 * xdisp.c (SKIP_GLYPHS): New macro.
22598 (set_cursor_from_row): Pay attention to string display properties.
22599
22600 * category.c (copy_category_entry): Fix for the case that RANGE
22601 is an integer.
22602
22603 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22604
22605 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22606
226072008-02-01 Kenichi Handa <handa@m17n.org>
22608
22609 * charset.c (Fcharset_id_internal): New function.
22610 (syms_of_charset): Defsubr it.
22611
22612 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22613 with the last arg charset_list acquired from coding.
22614 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22615 the attribute coding_attr_ccl_valids.
22616
22617 * coding.h (enum define_coding_ccl_arg_index): Set the first
22618 member coding_arg_ccl_decoder to coding_arg_max.
22619
22620 * ccl.h (ccl_driver): Adjust prototype.
22621
22622 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22623 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 22624 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
22625 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22626 last arg Qnil.
22627
226282008-02-01 Kenichi Handa <handa@m17n.org>
22629
22630 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22631 call encode_char.
22632
22633 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22634
226352008-02-01 Dave Love <fx@gnu.org>
22636
22637 * composite.c (syms_of_composite): Make composition_hash_table weak.
22638
226392008-02-01 Kenichi Handa <handa@m17n.org>
22640
22641 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22642 (font_name_registry): Don't extern them.
22643 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22644
22645 * fontset.h (Qfontset): Don't extern it.
22646 (new_fontset_from_font_name): Extern it.
22647
22648 * fontset.c: Give 8 extra slots to fontset objects.
22649 (Qfontset_info): New variable.
22650 (syms_of_fontset): Defsym it.
22651 (FONTSET_FALLBACK): New macro.
22652 (fontset_face): Try also the default fontset.
22653 (make_fontset): Realize a fallback fontset from the default fontset.
22654 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22655 using split_font_name_into_vector and build_font_name_from_vector.
22656 (Fset_fontset_font): Access the elements of font_spec by enum
22657 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22658 name by using split_font_name_into_vector.
22659 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22660 generate a proper font name from the fontset name. Update
22661 Vfontset_alias_alist.
22662 (n_auto_fontsets): New variable.
22663 (new_fontset_from_font_name): New function.
22664 (Ffont_info): Store the information about fonts generated from the
22665 default fontset in the first extra slot of the returned char-table.
22666
22667 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22668 (font_name_registry): Delete function.
22669 (split_font_name_into_vector): New function.
22670 (build_font_name_from_vector): New function.
22671 (font_list): The argument REGISTRY is now a list of registry names.
22672 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22673 specifies an explicit font name, return the name as is. Make a
22674 list of registy names.
22675
22676 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22677 of x_new_fontset.
22678 (Fx_create_frame): Don't call x_new_fontset here. Just use
22679 x_list_fonts to check the existence of fonts.
22680
22681 * xterm.h (x_new_fontset): Adjust prototype.
22682
22683 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22684 string. Use new_fontset_from_font_name to create a fontset from a
22685 font name.
22686
226872008-02-01 Kenichi Handa <handa@m17n.org>
22688
22689 * syntax.c (Vfind_word_boundary_function_table): New name for
22690 Vnext_word_boundary_function_table.
22691 (find-word-boundary-function-table): New name for
22692 next-word-boundary-function-table.
22693
226942008-02-01 Dave Love <fx@gnu.org>
22695
22696 * Makefile.in: Fix some dependencies.
22697
22698 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22699 set it to nil before returning.
22700
22701 * composite.c (update_compositions): Fix type error.
22702
22703 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22704
227052008-02-01 Kenichi Handa <handa@m17n.org>
22706
22707 * xterm.c (x_new_font): Optimize for the case that the font is
22708 already set for the frame.
22709
227102008-02-01 Kenichi Handa <handa@m17n.org>
22711
22712 * chartab.c (char_table_ascii): Check if the char table contents
22713 is sub-char-table or not.
22714 (char_table_set, char_table_set_range): Fix argument to
22715 char_table_ascii.
22716
22717 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22718 (detect_coding_utf_8, detect_coding_utf_16)
22719 (detect_coding_emacs_mule, detect_coding_iso_2022)
22720 (detect_coding_sjis, detect_coding_big5)
22721 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22722 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22723 sequence is valid in this coding system. Change callers.
22724 (MAX_ANNOTATION_LENGTH): New macro.
22725 (ADD_ANNOTATION_DATA): New macro.
22726 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22727 ADD_ANNOTATION_DATA. Change the format of annotation data.
22728 (ADD_CHARSET_DATA): New macro.
22729 (emacs_mule_char): New argument ID. Change callers.
22730 (decode_coding_emacs_mule, decode_coding_iso_2022)
22731 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22732 Produce charset annotation data in coding->charbuf.
22733 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22734 to charset annotation data in coding->charbuf.
22735 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22736 coding->common_flags if the coding system is iso-2022 based and
22737 uses designation.
22738 (produce_composition): Adjust for the new annotation data format.
22739 (produce_charset): New function.
22740 (produce_annotation): Handle charset annotation.
22741 (handle_composition_annotation, handle_charset_annotation): New
22742 functions.
22743 (consume_chars): Handle charset annotation. Utilize the above two
22744 functions.
22745 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22746 buffer, get the deleted text as a string and set
22747 coding->src_object to that string.
22748 (detect_coding, detect_coding_system): Use the new struct
22749 coding_detection_info.
22750
22751 * coding.h (struct coding_detection_info): New structure.
22752 (struct coding_system): Adjust prototype of the member `detector'.
22753 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22754
227552008-02-01 Kenichi Handa <handa@m17n.org>
22756
22757 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22758
227592008-02-01 Dave Love <fx@gnu.org>
22760
22761 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22762 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22763 to new local and nullify apropos_accumulate before returning.
22764 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22765
227662008-02-01 Kenichi Handa <handa@m17n.org>
22767
22768 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22769 correctly.
e3eea1fc 22770
aac0c6e3
MR
227712008-02-01 Dave Love <fx@gnu.org>
22772
22773 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22774
227752008-02-01 Kenichi Handa <handa@m17n.org>
22776
22777 The following changes are to make character composition happen
22778 automatically on displaying.
22779
22780 * Makefile.in (lisp, shortlisp): Add composite.elc.
22781
22782 * composite.h (Qauto_composed, Vauto_composition_function)
22783 (Qauto_composition_function): Extern them.
22784
22785 * composite.c (Vcomposition_function_table)
22786 (Qcomposition_function_table): Delete variables.
22787 (Qauto_composed, Vauto_composition_function)
22788 (Qauto_composition_function): New variables.
22789 (run_composition_function): Don't call
22790 compose-chars-after-function.
22791 (update_compositions): Clear `auto-composed' text property.
22792 (compose_chars_in_text): Delete this function.
22793 (syms_of_composite): Staticpro Qauto_composed and
22794 Qauto_composition_function. Declare Vauto_composition_function as
22795 a Lisp variable.
22796
22797 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22798
22799 * xdisp.c (it_props): Add an entry for Qauto_composed.
22800 (handle_auto_composed_prop): New function.
22801
22802 * xselect.c (selection_data_to_lisp_data): Don't call
22803 compose_chars_in_text.
22804
228052008-02-01 Dave Love <fx@gnu.org>
22806
22807 * keyboard.c (read_char): Modify checking around use of
22808 Vkeyboard_translate_table.
22809
22810 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22811 and fix C types.
22812
228132008-02-01 Kenichi Handa <handa@m17n.org>
22814
22815 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22816 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22817 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22818 the case that the last byte is '\r' correctly.
22819 (decode_coding): Flush out the unprocessed data correctly.
22820 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22821
228222008-02-01 Dave Love <fx@gnu.org>
22823
22824 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22825 Add XK_ISO... case.
22826 (xaw_scroll_callback): Revert last change.
22827
228282008-02-01 Kenichi Handa <handa@m17n.org>
22829
22830 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22831
228322008-02-01 Kenichi Handa <handa@m17n.org>
22833
22834 * xfaces.c (Vface_resizing_fonts): New variable.
22835 (struct font_name): New member `resizing_ratio'.
22836 (font_resizing_ratio): New function.
22837 (split_font_name): Set font->resizing_ratio.
22838 (better_font_p): Pay attention to font->resizing_ratio.
22839 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22840 RESX, and RESY fields.
22841 (try_alternative_families): Try scalable fonts if
22842 Vscalable_fonts_allowed is not Qt.
22843 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22844
228452008-02-01 Dave Love <fx@gnu.org>
22846
22847 * xterm.c (xaw_scroll_callback): Cast correctly.
22848
228492008-02-01 Dave Love <fx@gnu.org>
22850
22851 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22852 (lispy_kana_keys): Comment out.
22853 (make_lispy_event) [XK_kana_A]: Comment out.
22854
22855 * xterm.c (xaw_scroll_callback): Cast call_data.
22856 (XTread_socket): Deal with ASCII keysyms.
22857 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22858
228592008-02-01 Dave Love <fx@gnu.org>
22860
22861 * xterm.c (Vx_keysym_table): New.
22862 (syms_of_xterm): Initialize it.
22863 (XTread_socket): Use it.
22864 From head: Eliminate incorrect optimization that tried to avoid
22865 decoding the output of X*LookupString.
22866 (x_get_font_repertory): Delete charset declaration.
22867
228682008-02-01 Kenichi Handa <handa@m17n.org>
22869
22870 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22871 return 0.
22872 (Fdefine_coding_system_internal): Setup
22873 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22874
228752008-02-01 Dave Love <fx@gnu.org>
22876
22877 * coding.c (Fcheck_coding_system): Doc fix.
22878
22879 * editfns.c (Finsert_byte): Return a proper value.
22880
228812008-02-01 Kenichi Handa <handa@m17n.org>
22882
22883 * coding.c (decode_coding): Fix args to translate_chars. Pay
22884 attention to Vstandard_translation_table_for_decode.
22885 (encode_coding): Fix args to translate_chars. Pay attention to
22886 Vstandard_translation_table_for_encode.
22887
22888 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22889 SINGLE_BYTE_CHAR_P.
22890
22891 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22892 not by SINGLE_BYTE_CHAR_P.
22893
22894 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22895 SINGLE_BYTE_CHAR_P.
22896
22897 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22898 SINGLE_BYTE_CHAR_P.
22899
22900 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22901 by SINGLE_BYTE_CHAR_P.
22902
22903 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22904 SINGLE_BYTE_CHAR_P.
22905
229062008-02-01 Dave Love <fx@gnu.org>
22907
22908 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22909
229102008-02-01 Dave Love <fx@gnu.org>
22911
22912 * fns.c (Flanginfo): Fix typo.
22913
22914 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22915
229162008-02-01 Kenichi Handa <handa@m17n.org>
22917
22918 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22919 (detect_coding_emacs_mule, detect_coding_iso_2022)
22920 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22921 incomplete byte sequence. Don't update *mask when correctly detected.
22922 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22923 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22924 (detect_coding, detect_coding_system): Adjust for the changes above.
22925
229262008-02-01 Kenichi Handa <handa@m17n.org>
22927
22928 * character.c (char_string): Rename from
22929 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22930 (string_char): Rename from string_char.
22931
22932 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22933 if C is greater than MAX_3_BYTE_CHAR.
22934 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22935 string_char instead of string_char_with_unification.
22936
229372008-02-01 Dave Love <fx@gnu.org>
22938
22939 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22940
229412008-02-01 Kenichi Handa <handa@m17n.org>
22942
22943 * keymap.c (push_key_description): Pay attention to force_multibyte.
22944
22945 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22946
229472008-02-01 Dave Love <fx@gnu.org>
22948
22949 * charset.c (define_charset_internal): Rename `supprementary'.
22950
22951 * Makefile.in (lisp, shortlisp): Remove latin-N.
22952
229532008-02-01 Dave Love <fx@gnu.org>
22954
22955 * xfns.c (x_window, x_window): Use use_xim.
22956
22957 * xterm.c (use_xim): Initialize.
22958 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22959 (x_term_init): Maybe set use_xim.
22960
22961 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22962
229632008-02-01 Kenichi Handa <handa@m17n.org>
22964
22965 * search.c (search_buffer): Fix case-fold-search of multibyte
22966 characters.
22967 (boyer_moore): Rename the last argument to char_high_bits.
22968
229692008-02-01 Kenichi Handa <handa@m17n.org>
22970
22971 * xdisp.c (display_string): Fix for the case of zero width glyph.
22972
22973 * xfns.c (x_set_font): Change the error message of the case that
22974 x_new_fontset returns Qt.
22975
22976 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22977 (Finternal_set_lisp_face_attribute): Use signal_error for the
22978 error of invalid fontset.
22979
22980 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22981 fontset, return Qt.
22982
229832008-02-01 Dave Love <fx@gnu.org>
22984
22985 * unexelf.c (unexec): Make .got handling not SGI-specific.
22986
22987 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22988
22989 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22990
22991 * keyboard.c (read_key_sequence): Fix type error.
22992
22993 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22994 type error.
22995
22996 * fontset.c (fontset_add): Return Lisp_Object.
22997
229982008-02-01 Dave Love <fx@gnu.org>
22999
23000 * charset.h (charset_ordered_list_tick): Declare extern.
23001
230022008-02-01 Kenichi Handa <handa@m17n.org>
23003
23004 The following changes (and some of 2008-02-01 changes of mine) are
23005 for handling syntax, category, and case conversion for unibyte
23006 characters by converting them to multibyte on the fly. With these
23007 changes, we don't have to setup syntax and case tables for unibyte
23008 characters in each language environment.
23009
23010 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
23011 multibyte if necessary.
23012
23013 * bytecode.c (Fbyte_code): Likewise.
23014
23015 * character.h (LEADING_CODE_LATIN_1_MIN)
23016 (LEADING_CODE_LATIN_1_MAX): New macros.
23017 (unibyte_to_multibyte_table): Extern it.
23018 (unibyte_char_to_multibyte): New macro.
23019 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
23020 (CHAR_LEADING_CODE): New macro.
23021 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
23022
23023 * character.c (unibyte_to_multibyte_table): New variable.
23024 (unibyte_char_to_multibyte): Move to character.h and define as macro.
23025 (multibyte_char_to_unibyte): If C is an eight-bit character,
23026 convert it to the corresponding byte value.
23027
23028 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
23029 not 1, signals an error. Update the elements of
23030 unibyte_to_multibyte_table.
23031 (init_charset_once): Initialize unibyte_to_multibyte_table.
23032 (syms_of_charset): Define the charset `iso-8859-1'.
23033
23034 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
23035 as is without converting it to unibyte. In a unibyte buffer,
23036 convert C to multibyte before checking the syntax.
23037
23038 * lisp.h (unibyte_char_to_multibyte): Delete extern.
23039
23040 * minibuf.c (Fminibuffer_complete_word): Use the macro
23041 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
23042
23043 * regex.h (struct re_pattern_buffer): New member target_multibyte.
23044
23045 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
23046 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
23047 that is zero, convert an eight-bit char to multibyte.
23048 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
23049 non-emacs case.
23050 (PATFETCH): Convert an eight-bit char to multibyte.
23051 (HANDLE_UNIBYTE_RANGE): New macro.
23052 (regex_compile): Setup the compiled pattern for multibyte chars
23053 even if the given regex string is unibyte. Use PATFETCH_RAW
23054 instead of PATFETCH in many places. To handle `charset'
23055 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
23056 only for ASCII chars.
23057 (analyse_first) <exactn>: Simplify because the compiled pattern
23058 is multibyte.
23059 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
23060 <charset>: Use CHAR_LEADING_CODE to get leading codes.
23061 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
23062 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
23063 multibyte always 1.
23064 (re_search_2): In emacs, set the locale variable multibyte to 1,
23065 otherwise to 0. New local variable target_multibyte. Check it
23066 to decide the multibyteness of STR1 and STR2. If
23067 target_multibyte is zero, convert unibyte chars to multibyte
23068 before translating and checking fastmap.
23069 (TARGET_CHAR_AND_LENGTH): New macro.
23070 (re_match_2_internal): In emacs, set the locale variable multibyte
23071 to 1, otherwise to 0. New local variable target_multibyte. Check
23072 it to decide the multibyteness of STR1 and STR2. Use
23073 TARGET_CHAR_AND_LENGTH to fetch a character from D.
23074 <charset, charset_not>: If multibyte is nonzero, check fastmap
23075 only for ASCII chars. Call bcmp_translate with
23076 target_multibyte, not with multibyte.
23077 <begline>: Declare the local variable C as `unsigned'.
23078 (bcmp_translate): Change the last arg name to target_multibyte.
23079
23080 * search.c (compile_pattern_1): Don't adjust the multibyteness of
23081 the regexp pattern and the matching target. Set cp->buf.multibyte
23082 to the multibyteness of the regexp pattern. Set
23083 cp->but.target_multibyte to the multibyteness of the matching target.
23084 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
23085 FETCH_STRING_CHAR_ADVANCE.
23086 (Freplace_match): Convert unibyte chars to multibyte.
23087
23088 * syntax.c (char_quoted, back_comment, scan_words)
23089 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
23090 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
23091 unibyte chars to multibyte.
23092 (skip_chars): Delete the arg syntaxp, and move the code for
23093 handling syntaxes to skip_syntaxes. Change callers.
23094 Fix the case that the multibyteness of STRING and the current
23095 buffer doesn't match.
23096 (skip_syntaxes): New function.
23097 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
23098 SINGLE_BYTE_CHAR_P.
23099
231002008-02-01 Kenichi Handa <handa@m17n.org>
23101
23102 * xfaces.c (QCfontset): New variable.
23103 (LFACE_FONTSET): New macro.
23104 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
23105 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
23106 (Finternal_set_lisp_face_attribute)
23107 (Finternal_get_lisp_face_attribute): Handle QCfontset.
23108 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
23109 check also LFACE_FONTSET_INDEX.
23110 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
23111 attrs[LFACE_FONT_INDEX].
23112 (syms_of_xfaces): Intern and staticpro QCfontset.
23113
23114 * dispextern.h (enum lface_attribute_index): New member
23115 LFACE_FONTSET_INDEX.
23116
23117 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
23118
231192008-02-01 Kenichi Handa <handa@m17n.org>
23120
23121 * coding.c (coding_set_destination): Fix coding->destination for
23122 the case converting a region.
23123 (encode_coding_utf_8): Encode eight-bit chars as single byte.
23124 (encode_coding_object): Fix coding->dst_pos and
23125 coding->dst_pos_byte for the case converting a region.
23126
23127 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
23128
23129 * character.h (BYTE8_STRING): New macro.
23130
23131 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
23132
231332008-02-01 Kenichi Handa <handa@m17n.org>
23134
23135 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
23136 characters by octal form.
23137
23138 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23139
23140 * buffer.h (_fetch_multibyte_char_len): Delete extern.
23141 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
23142 _fetch_multibyte_char_len.
23143 (FETCH_CHAR_AS_MULTIBYTE): New macro.
23144
23145 * casetab.c (set_canon, set_identity, shuffle): Simplify.
23146
23147 * casefiddle.c (casify_object): Simplify. Handle the case that
23148 the case conversion change the byte length.
23149 (casify_region): Likewise.
23150
23151 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
23152
23153 * character.c (_fetch_multibyte_char_len): Delete this variable.
23154 (syms_of_character): Setup Vprintable_chars.
23155
23156 * editfns.c (Fchar_equal): Fix for the unibyte case.
23157 (Finsert_byte): New function.
23158 (syms_of_editfns): Defsubr it.
23159
23160 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
23161 of direct code 0x3ffff.
23162
23163 * search.c (Freplace_match): Fix for the unibyte case.
23164
231652008-02-01 Kenichi Handa <handa@m17n.org>
23166
23167 * lread.c (safe_to_load_p): Fix the logic.
23168
23169 * syntax.c (scan_words): Don't treat characters belonging to
23170 different scripts as constituting a word.
23171
23172 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23173
23174 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
23175
23176 * emacs.c (main): In the case of --unibyte, instead of aborting on
23177 finding non-empty buffer, make it unibyte.
23178
231792008-02-01 Kenichi Handa <handa@m17n.org>
23180
23181 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
23182 to create a fontset.
23183
231842008-02-01 Dave Love <fx@gnu.org>
23185
23186 * character.c (Funibyte_char_to_multibyte): Doc fix.
23187
23188 * xfns.c [HAVE_STDLIB_H]: Fix last change.
23189
231902008-02-01 Kenichi Handa <handa@m17n.org>
23191
23192 * fontset.c (fontset_add): Make the type `int'.
23193 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23194
23195 * character.c (unibyte_char_to_multibyte)
23196 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23197 charset_unibyte, not charset_primary.
23198
23199 * charset.h (charset_unibyte): Extern it instead of charset_primary.
23200
23201 * charset.c (charset_unibyte): Rename from charset_primary.
23202 (Funibyte_charset): Rename from Fprimary_charset.
23203 (Fset_unibyte_charset): Rename from Fset_primary_charset.
23204 (syms_of_charset): Adjust for the above changes.
23205
23206 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23207 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23208 it->multibyte_p is zero.
23209
23210 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23211 Delete extern.
23212
232132008-02-01 Kenichi Handa <handa@m17n.org>
23214
23215 * coding.c (Fdefine_coding_system_internal): Fix category setting
23216 for a coding system of type iso-2022.
23217
232182008-02-01 Kenichi Handa <handa@m17n.org>
23219
23220 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23221
232222008-02-01 Kenichi Handa <handa@m17n.org>
23223
23224 * syntax.c (Vnext_word_boundary_function_table): New variable.
23225 (next-word-boundary-function-table): Declare it as a Lisp variable
23226 in syms_of_syntax.
23227 (scan_words): Call functions in Vnext_word_boundary_function_table
23228 if any.
23229
23230 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23231
23232 * fontset.c (fs_load_font): If fontp->charset is not negative,
23233 return fontp without setting its members.
23234
232352008-02-01 Dave Love <fx@gnu.org>
23236
23237 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23238
23239 * m/sparc.h (HAVE_ALLOCA): Delete.
23240
23241 * s/irix6-5.h: Don't include strings.h.
23242 (bcopy, bzero, bcmp): Don't undef.
23243
23244 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23245
23246 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23247 (TIOCSIGSEND): Don't test IRIX6.
23248 (bcopy, bzero, bcmp): Define conditionally.
23249
232502008-02-01 Kenichi Handa <handa@m17n.org>
23251
23252 * buffer.c (Qas, Qmake, Qto): New variables.
23253 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23254 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23255
23256 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23257 we are inserting a process output into a multibyte buffer.
23258
23259 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23260 multibyte_char_to_unibyte.
23261
23262 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23263 by the primary charset, make it eight-bit char.
23264 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23265
23266 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23267 (charset_8_bit__control, charset_8_bit_graphic)
23268 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23269 (define_charset_internal): New function.
23270 (syms_of_charset): Call define_charset_internal for pre-defined
23271 charsets.
23272
23273 * charset.h (charset_8_bit): Extern it.
23274
23275 * coding.c (make_conversion_work_buffer): Adjust for the change
23276 of Fset_buffer_multibyte.
23277 (encode_coding_raw_text): Increment p0 in the loop.
23278
23279 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23280
23281 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23282 for the change of Fset_buffer_multibyte.
23283
23284 * fns.c (Fstring_to_multibyte): New function.
23285 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23286
232872008-02-01 Dave Love <fx@gnu.org>
23288
23289 * xfns.c (x_put_x_image): Declare args.
23290
23291 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23292 (try_font_list): Declare an arg.
23293
23294 * xdisp.c (message2_nolog, set_message): Declare an arg.
23295
23296 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23297
23298 * syntax.c (scan_sexps_forward): Declare an arg.
23299
23300 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23301 Declare an arg.
23302
23303 * lisp.h (Fnew_fontset): Declare.
23304
23305 * keymap.c (push_key_description): Call CHARACTERP correctly.
23306
23307 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23308 (face_for_char): Delete unused vars.
23309 (Fset_fontset_font): Doc fix. Delete unused vars.
23310
23311 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23312
23313 * composite.c (update_compositions): Declare arg.
23314
23315 * cm.c (calccost, cmgoto): Declare args.
23316
23317 * charset.c: Remove `emacs' conditional. Doc fixes.
23318 (map_char_table_for_charset): Declare.
23319
23320 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23321
23322 * ccl.c: Remove `emacs' conditional.
23323
233242008-02-01 Kenichi Handa <handa@m17n.org>
23325
23326 The following changes are to allow specifying multiple font
23327 patterns for a character range (specified by script or charset).
23328
23329 * Makefile.in (abbrev.o): Depend on syntax.h.
23330 (xfaces.o): Depend on charset.h.
23331
23332 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23333 SINGLE_BYTE_CHAR_P.
23334
23335 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23336
23337 * character.h (Vchar_script_table): Extern it.
23338
23339 * character.c (Vscript_alist): Delete.
23340 (Vchar_script_table, Qchar_script_table): New variable.
23341 (syms_of_character): Declare Vchar_script_table as a lisp variable
23342 and initialize it.
23343
23344 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23345 have property char-table-extra-slots, make no extra slot.
23346
23347 * dispextern.h (struct face): Delete member `charset'.
23348 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23349 SINGLE_BYTE_CHAR_P.
23350 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23351 Add prototypes.
23352 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23353 (generate_ascii_font_name): Rename from generate_ascii_font.
23354
23355 * fontset.h (get_font_repertory_func): New prototype.
23356 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23357 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23358
23359 * fontset.c (Qprepend, Qappend): New variables.
23360 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23361 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23362 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23363 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23364 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23365 (load_font_get_repertory): New functions.
23366 (fontset_set): Delete.
23367 (fontset_face): New arg FACE. Return face ID, not face.
23368 Complete re-write to handle new fontset structure. Change caller.
23369 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23370 (face_for_char): Don't call lookup_face.
23371 (make_fontset_for_ascii_face): New arg FACE.
23372 (fs_load_font): New arg CHARSET_ID. Don't check
23373 Vfont_encoding_alist here.
23374 (find_font_encoding): New function.
23375 (list_fontsets): Use STRINGP, not ! NILP.
23376 (accumulate_script_ranges): New function.
23377 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23378 re-written to handle new fontset structure.
23379 (Ffontset_font): Return a copy of element.
23380 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23381 docstring of font-encoding-alist.
23382
23383 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23384 (Fset_fotset_font): Fix arguments to 5.
23385
23386 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23387
23388 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23389 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23390 (highlight_trailing_whitespace): Adjust for the change of
23391 lookup_named_face.
23392
23393 * xfaces.c: Include charset.h.
23394 (load_face_font): Delete argument C. Change caller.
23395 (generate_ascii_font_name): Rename from generate_ascii_font.
23396 (font_name_registry): New function.
23397 (cache_face): Store ascii faces before non-ascii faces in buckets.
23398 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23399 Lookup only ascii faces.
23400 (lookup_non_ascii_face): New function.
23401 (lookup_named_face): Delete argument C. Change caller.
23402 (lookup_derived_face): Delete argument C. Change caller.
23403 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23404 a string, just call font_list with it.
23405 (choose_face_font): Delete arguments FACE and C. New arg
23406 FONT_SPEC. Change caller.
23407 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23408 Change caller.
23409 (realize_non_ascii_face): New function.
23410 (realize_x_face): Call load_face_font here.
23411 (realize_tty_face): Delete argument C. Change caller.
23412 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23413 get a face ID.
23414 (dump_realized_face): Don't print charset of FACE.
23415
23416 * xfns.c (x_set_font): Always call x_new_fontset and
23417 store_frame_parameter.
23418 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23419 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23420
23421 * xterm.h (x_get_font_repertory): Extern it.
23422
23423 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23424 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23425 it->multibyte_p is zero.
23426 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23427 (x_new_fontset): If FONTSETNAME doesn't match any existing
23428 fontsets, create a new one.
23429 (x_get_font_repertory): New function.
23430
234312008-02-01 Kenichi Handa <handa@m17n.org>
23432
23433 * coding.c (Ffind_coding_systems_region_internal): Detect an
23434 ASCII only string correctly.
23435
23436 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23437 version is 0.
23438
234392008-02-01 Kenichi Handa <handa@m17n.org>
23440
23441 * lread.c: Include "coding.h".
23442 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23443 (load_each_byte, unread_char): New variables.
23444 (readchar_backlog): Delete.
23445 (readchar): Return a character unless load_each_byte is nonzero.
23446 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23447 cons. If unread_char is not -1, simply return it.
23448 (unreadchar): Handle the case that readcharfun is
23449 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23450 (read_multibyte): Delete.
23451 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23452 (read_emacs_mule_char): New functions.
23453 (Fload): Even if the file doesn't have the extension ".elc", if
23454 safe_to_load_p returns a positive version number, assume that the
23455 file contains bytecompiled code. If the version is less than 22,
23456 load the file while decoding multibyte sequences by emacs-mule.
23457 (readevalloop): Don't use readchar_backlog.
23458 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23459 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23460 (read_escape): Delete the arg BYTEREP.
23461 (read1): Set load_each_byte to 1 temporarily while handling
23462 #@NUMBER. Don't call read_multibyte.
23463 (read_vector): Call Fread with a cons. If readcharfun is
23464 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23465 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23466 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23467 and Qload_force_doc_strings.
23468
234692008-02-01 Kenichi Handa <handa@m17n.org>
23470
23471 * xdisp.c (face_before_or_after_it_pos): Call
23472 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23473
234742008-02-01 Kenichi Handa <handa@m17n.org>
23475
23476 * character.h (TRAILING_CODE_P): New macro.
23477 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23478 (string_char_with_unification): Fix prototype.
23479 (Vscript_alist): Extern it.
23480
23481 * character.c (Vscript_alist): New variable.
23482 (string_char_with_unification, str_as_unibyte)
23483 (string_escape_byte8): Add `const' to local variables.
23484 (syms_of_character): Declare script-alist as a Lisp variable.
23485
23486 * charset.h (Vcharset_ordered_list): Extern it.
23487 (charset_ordered_list_tick): Extern it.
23488 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23489 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23490 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23491 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23492 (Funify_charset): Adjust for the change of Funify_charset.
23493
23494 * charset.c (charset_ordered_list_tick): New variable.
23495 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23496 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 23497 deunify instead of unify a charset.
aac0c6e3
MR
23498 (string_xstring_p): Add `const' to local variables.
23499 (find_charsets_in_text): Add `const' to arguments and local variables.
23500 (encode_char): Adjust for the change of Funify_charset. Fix
23501 detecting of invalid code.
23502 (Fset_charset_priority): Increment charset_ordered_list_tick.
23503 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23504 and TO_CODE.
23505
23506 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23507 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23508 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23509 (decode_coding_ccl, consume_chars)
23510 (Ffind_coding_systems_region_internal)
23511 (Fcheck_coding_systems_region): Add `const' to local variables.
23512
23513 * print.c (print_object): Use octal form for printing the
23514 contents of a bool vector.
23515
235162008-02-01 Dave Love <fx@gnu.org>
23517
23518 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23519 <version == 20>: Refuse to load.
23520
235212008-02-01 Dave Love <fx@gnu.org>
23522
23523 * fns.c: Move coding.h.
23524 (Qcodeset, Qdays, Qmonths): New.
23525 (concat): Use CHARACTERP instead of INTEGERP.
23526 (Flocale_codeset): Delete.
23527 (Flanginfo): New function.
23528 (syms_of_fns): Change accordingly.
23529
23530 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23531
235322008-02-01 Dave Love <fx@gnu.org>
23533
23534 * casetab.c (init_casetab_once, init_casetab_once): Fix
23535 CHAR_TABLE_SET call.
23536
23537 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23538
23539 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23540
23541 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23542 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23543 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23544
23545 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23546
23547 * coding.c (ENCODE_DESIGNATION, decode_eol)
23548 (make_conversion_work_buffer, code_conversion_restore)
23549 (Fdefine_coding_system_internal): Convert Lisp types.
23550 (code_conversion_restore): Use EQ, not ==.
23551 (Fencode_coding_string): Fix code_convert_string call.
23552
23553 * coding.h (code_convert_region): Fix prototype.
23554
23555 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23556
23557 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23558 (Ffontset_info): Convert Lisp types.
23559
23560 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23561
23562 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23563
23564 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23565
23566 * chartab.c: Include "...h", not <...h> in some cases.
23567
23568 * callproc.c (Fcall_process): Remove unused variables.
23569
235702008-02-01 Dave Love <fx@gnu.org>
23571
23572 * coding.c (Fset_coding_system_priority): Allow null arg list.
23573
235742008-02-01 Dave Love <fx@gnu.org>
23575
23576 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23577 (Fself_insert_and_exit): Use CHARACTERP.
23578
23579 * callproc.c (Fcall_process): Remove unused vars.
23580
23581 * xterm.c (XTread_socket): Add extra dead keysyms.
23582
23583 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23584
23585 * dispextern.h: Remove prototypes for redraw_frame,
23586 redraw_garbaged_frames.
23587
23588 * cmds.c (Fself_insert_command): Use CHARACTERP.
23589
23590 * chartab.c (make_sub_char_table): Remove unused var.
23591 (Fset_char_table_default, Fmap_char_table): Doc fix.
23592
23593 * keymap.c (access_keymap): Remove generic char code.
23594 (push_key_description): Use CHARACTERP.
23595
235962008-02-01 Dave Love <fx@gnu.org>
23597
23598 * charset.c: Doc fixes.
23599 (Funify_charset): Extra checking.
23600
236012008-02-01 Dave Love <fx@gnu.org>
23602
23603 * lread.c: Remove some unused variables.
23604 (safe_to_load_p): If safe, return the magic number version byte.
23605 (Fload): Maybe use load-with-code-conversion.
23606
236072008-02-01 Kenichi Handa <handa@m17n.org>
23608
23609 * category.c (Fmodify_category_entry): Don't modify the contents
23610 of category_set for characters out of the range. Avoid
23611 unnecessary modification.
23612
23613 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23614 Vchar_unify_table. The default value of the table is now nil.
23615
23616 * character.c (syms_of_character): Setup Vchar_width_table for
23617 eight-bit-control and raw-byte chars.
23618
23619 * charset.h (enum define_charset_arg_index): Delete
23620 charset_arg_parents and add charset_arg_subset and
23621 charset_arg_superset.
23622 (enum charset_attr_index): Delete charset_parents and add
23623 charset_subset and charset_superset.
23624 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23625 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23626 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23627 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23628 (CHARSET_SUPERSET): New macros.
23629 (charset_work): Extern it.
23630 (ENCODE_CHAR): Use charset_work.
23631 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23632 (map_charset_chars): Extern it.
23633
23634 * charset.c (load_charset_map): Set the default value of encoder
23635 and deunifier char-tables to nil.
23636 (map_charset_chars): Change argument. Change callers. Use
23637 map_char_table_for_charset instead of map_char_table.
23638 (Fmap_charset_chars): New optional args from_code and to_code.
23639 (Fdefine_charset_internal): Adjust for the change of
23640 `define-charset' (:parents -> :subset or :superset).
23641 (charset_work): New variable.
23642 (encode_char, syms_of_charset): Adjust for the change of
23643 Fdefine_charset_internal.
23644 (Ffind_charset_string): Setup the vector `charsets' correctly.
23645
23646 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23647 the previous change.
23648 (char_table_ref_and_range): Adjust for the above change.
23649 (map_sub_char_table_for_charset): New function.
23650 (map_char_table_for_charset): New function.
23651
23652 * keymap.c (describe_vector): Handle a char-table directly here.
23653 (describe_char_table): Delete.
23654
23655 * lisp.h (map_charset_chars): Delete.
23656
236572008-02-01 Dave Love <fx@gnu.org>
23658
23659 * fns.c (count_combining): Comment out (unused).
23660 (Flocale_codeset): New.
23661 (syms_of_fns): Defsubr it.
23662
23663 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23664 (size_t): Remove.
23665
236662008-02-01 Dave Love <fx@gnu.org>
23667
23668 * Makefile.in (chartab.o): Depend on charset.h.
23669
236702008-02-01 Kenichi Handa <handa@m17n.org>
23671
23672 * character.c (syms_of_character): Set the default value of
23673 Vprintable_chars to Qnil.
23674
236752008-02-01 Dave Love <fx@gnu.org>
23676
23677 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23678
236792008-02-01 Kenichi Handa <handa@m17n.org>
23680
23681 * charset.c (load_charset_map): Handle the case that from < to
23682 correctly.
23683
23684 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23685 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23686 Pay attention to raw-8-bit chars.
23687
236882008-02-01 Kenichi Handa <handa@m17n.org>
23689
23690 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23691 It is not bytecompiled now.
23692
23693 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23694 (charset_jisx0208): New variables.
23695 (Fdefine_charset_internal): Setup them if appropriate.
23696 (init_charset_once): Initialize them to -1.
23697
23698 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23699 (charset_jisx0208): Extern them.
23700
23701 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23702 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23703 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23704 (setup_iso_safe_charsets): Fix arguments to Fassq.
23705 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23706 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23707 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23708 (encode_coding_iso_2022): Change the 1st arg to
23709 ENCODE_ISO_CHARACTER to a variable.
23710
237112008-02-01 Kenichi Handa <handa@m17n.org>
23712
23713 * charset.h (enum define_charset_arg_index): New enums
23714 charset_arg_min_code and charset_arg_max_code.
23715 (struct charset): New member char_index_offset.
23716
23717 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23718 Take charset->char_index_offset into account.
23719 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23720 args[charset_arg_max_code]. Setup charset.char_index_offset.
23721 (syms_of_charset): Fix args to Fdefine_charset_internal.
23722
237232008-02-01 Dave Love <fx@gnu.org>
23724
23725 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23726
237272008-02-01 Dave Love <fx@gnu.org>
23728
23729 * coding.c: Doc fixes.
23730 (Fcoding_system_aliases): Fix return value.
23731 (Qmac): Remove (duplicated) definition.
23732
237332008-02-01 Dave Love <fx@gnu.org>
23734
362654a6
JB
23735 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23736 New functions.
aac0c6e3
MR
23737
23738 * character.c (Fstring): Doc fix.
23739
23740 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23741
362654a6 23742 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23743 (font-encoding-alist): Doc fix.
23744
237452008-02-01 Dave Love <fx@gnu.org>
23746
23747 * term.c (costs_set): Declare static, non-initialized for pcc.
23748 (encode_terminal_code): Remove unused var.
23749
23750 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23751 for K&R.
23752
23753 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23754
23755 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23756 (suffixes): Move out of make_subsidiaries for K&R.
23757
23758 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23759
23760 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23761
237622008-02-01 Dave Love <fx@gnu.org>
23763
23764 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23765
23766 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23767
237682008-02-01 Yong Lu <lyongu@asia-infonet.com>
23769
23770 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23771
23772 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23773
237742008-02-01 Kenichi Handa <handa@m17n.org>
23775
23776 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23777 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23778
237792008-02-01 Kenichi Handa <handa@m17n.org>
23780
23781 * coding.c (decode_coding_charset): Adjust for the change of
23782 Fdefine_coding_system_internal.
23783 (Fdefine_coding_system_internal): For a coding system of
23784 `charset' type, store a list of charset IDs in
23785 `charset_attr_charset_valids' element of coding attributes.
23786
237872008-02-01 Kenichi Handa <handa@m17n.org>
23788
23789 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23790 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23791 caller. Handle 2-byte and 3-byte charsets correctly.
23792 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23793 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23794 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23795 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23796 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23797 sequence.
23798 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23799 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23800 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23801 and alt&rule composition.
23802 (decode_coding_iso_2022): Handle composition correctly.
23803 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23804
23805 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23806 re-defining a charset. If the charset has :emacs-mule-id, setup
23807 emacs_mule_bytes.
23808 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23809
238102008-02-01 Kenichi Handa <handa@m17n.org>
23811
23812 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23813 (encode_coding_big5, encode_coding_charset): If coding requires safe
23814 encoding, produce a character specified by
23815 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23816
238172008-02-01 Dave Love <fx@gnu.org>
23818
23819 * xterm.c (XSetIMValues): Declare.
23820
23821 * process.c: Conditionally include sys/wait.h, pty.h.
23822
23823 * print.c (print_object): Fix print format for 64-bit systems.
23824
23825 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23826
23827 * buffer.c (emacs_strerror): Declare.
23828
23829 * fontset.c (Fclear_face_cache): Declare.
23830 (accumulate_font_info): Comment-out (unused).
23831 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23832 variables.
23833
23834 * character.h (string_escape_byte8): Declare.
23835
23836 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23837 unused vars.
23838 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23839 (Fmap_charset_chars): Doc fix.
23840
23841 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23842 (Fset_coding_system_priority, Fset_coding_system_priority)
23843 (Fdefine_coding_system_internal): Doc fix.
23844
238452008-02-01 Dave Love <fx@gnu.org>
23846
23847 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23848
238492008-02-01 Kenichi Handa <handa@m17n.org>
23850
23851 * character.c (string_escape_byte8): Make multibyte string with
23852 correct size.
23853
23854 * charset.c (Fmake_char): Delete unnecessary code.
23855
238562008-02-01 Kenichi Handa <handa@m17n.org>
23857
23858 * xfns.c (x_encode_text): Allocate coding.destination here, and
23859 call encode_coding_object with dst_object Qnil.
23860
23861 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23862 multibyte form correctly.
23863
23864 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23865 against Vfont_encoding_alist.
23866
23867 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23868 handling of charset list.
23869 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23870 (decode_coding_object): Move point to coding->dst_pos before
23871 calling post-read-conversion function.
23872 (encode_coding_object): Give correct arguments to
23873 pre-write-conversion. Ignore the return value of
23874 pre-write-conversion function. Pay attention to the case that
23875 pre-write-conversion changes the current buffer. If dst_object is
23876 Qt, even if coding->src_bytes is zero, allocate at least one byte
23877 to coding->destination.
23878
23879 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23880
23881 * charset.c (Fmake_char): Make it more backward compatible.
23882 (Fmap_charset_chars): Fix docstring.
23883
238842008-02-01 Dave Love <fx@gnu.org>
23885
23886 * coding.c: Doc fixes.
23887 (Fdefine_coding_system_alias): Use names, not symbols, in
23888 coding-system-alist.
23889
238902008-02-01 Kenichi Handa <handa@m17n.org>
23891
23892 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23893 of calling free_realized_face.
23894
238952008-02-01 Yong Lu <lyongu@asia-infonet.com>
23896
23897 * charset.c (read_hex): Don't treat SPC as a comment starter.
23898 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23899 (Fdecode_char): Fix typo.
23900
239012008-02-01 Kenichi Handa <handa@m17n.org>
23902
23903 * charset.h (struct charset): New member `code_space_mask'.
23904
23905 * coding.c (coding_set_source): Delete the local variable beg_byte.
23906 (encode_coding_charset, Fdefine_coding_system_internal):
23907 Delete the local variable charset.
23908 (Fdefine_coding_system_internal): Setup
23909 attrs[coding_attr_charset_valids] correctly.
23910
23911 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23912 member to check if CODE is valid or not.
23913 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23914 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23915 is within the range of charset->min_code and carset->max_code.
23916
239172008-02-01 Dave Love <fx@gnu.org>
23918
23919 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23920
23921 * dispextern.h (generate_ascii_font): Fix return type.
23922
23923 * xfaces.c (generate_ascii_font): Fix arg declaration.
23924
23925 * coding.c (coding_inherit_eol_type)
23926 (Fset_terminal_coding_system_internal)
23927 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23928
239292008-02-01 Kenichi Handa <handa@m17n.org>
23930
23931 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23932 multiple charsets correctly.
23933
239342008-02-01 Kenichi Handa <handa@m17n.org>
23935
23936 * search.c (boyer_moore): Fix handling of multibyte character
23937 translation.
23938
23939 * xdisp.c (display_mode_element): When the variable `elt' is
23940 changed, update `this' and `lisp_string'.
23941
239422008-02-01 Kenichi Handa <handa@m17n.org>
23943
23944 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23945
23946 * callproc.c (Fcall_process): Be sure to give the current buffer
23947 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23948
23949 * charset.c (struct charset_map_entries): New struct.
23950 (load_charset_map): Rename from parse_charset_map. New args
23951 entries and n_entries. Change caller.
23952 (load_charset_map_from_file): Rename from load_charset_map.
23953 Change caller. New arg control_flag. Call load_charset_map at
23954 the tail.
23955 (load_charset_map_from_vector): New function.
23956 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23957 (encode_char): If the charset is compact, change a character index
23958 to a code point.
23959
23960 * coding.c (coding_alloc_by_making_gap): Check the case that the
23961 source and destination are the same correctly.
23962 (decode_coding_raw_text): Set coding->consumed_char and
23963 coding->consumed to 0.
23964 (produce_chars): If coding->chars_at_source is nonzero, update
23965 coding->consumed_char and coding->consumed before calling
23966 alloc_destination.
23967 (Fdefine_coding_system_alias): Register ALIAS in
23968 Vcoding_system_alist.
23969 (syms_of_coding): Define `no-conversion' coding system at the tail.
23970
23971 * fileio.c (Finsert_file_contents): Set coding_system instead of
23972 val. If the current buffer is multibyte, always call
23973 decode_coding_gap.
23974
23975 * xfaces.c (try_font_list): Give higher priority to fontset's
23976 family than face's family.
23977
239782008-02-01 Kenichi Handa <handa@m17n.org>
23979
23980 * callproc.c (Fcall_process): Be sure to give the current buffer
23981 to decode_coding_c_string.
23982
23983 * xfaces.c (try_font_list): Give a family specified in a fontset
23984 higher priority than a family specified in a face.
23985
239862008-02-01 Kenichi Handa <handa@m17n.org>
23987
23988 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23989 Fix arguments to insert_from_buffer.
23990
23991 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23992
239932008-02-01 Kenichi Handa <handa@m17n.org>
23994
23995 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23996 (decode_coding_gap): Set coding->dst_multibyte correctly.
23997
239982008-02-01 Kenichi Handa <handa@m17n.org>
23999
24000 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
24001 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
24002 (encode_coding_utf_16): Substitute coding->default_char for
24003 non-Unicode characters.
24004 (decode_coding): Don't call record_insert here.
24005 (setup_coding_system): Initialize `surrogate' of
24006 coding->spec.utf_16 to 0.
24007 (EMIT_ONE_BYTE): Fix for multibyte case.
24008
24009 * insdel.c (insert_from_gap): Call record_insert.
24010
240112008-02-01 Kenichi Handa <handa@m17n.org>
24012
24013 * casefiddle.c (casify_region): Fix multibyte case.
24014
24015 * character.c (c_string_width): Add return type `int'.
24016 (char_string_with_unification): Delete arg ADVANCED.
24017
24018 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
24019 (CHAR_STRING): Adjust for the change of char_string_with_unification.
24020 (CHAR_STRING_ADVANCE): Make it do-while statement.
24021
24022 * chartab.c (sub_char_table_set_range): Optimize for the case
24023 DEPTH == 3. Add workaround code for a GCC optimization bug.
24024
24025 * charset.c (parse_charset_map): Remove an unused variable.
24026
24027 * coding.c: Delete unused variables.
24028
24029 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
24030 earlier. If inserted is zero and the coding system doesn't
24031 require flushing, don't call decode_coding_gap.
24032
24033 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
24034
240352008-02-01 Kenichi Handa <handa@m17n.org>
24036
24037 The following changes are for using Unicode as an internal
24038 character model, and use UTF-8 format for buffer/string
24039 representation.
24040
24041 * .gdbinit (xchartable): Adjust for the change of char table structure.
24042 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
24043
24044 * Makefile.in (obj): Add character.o and chartab.o.
24045 (lisp, shortlisp): Remove utf-8.elc.
24046 (*.o): For many files, change dependency on charset.h to
24047 character.h, and add dependency on character.h.
24048 (character.o, chartab.o): New targets.
24049
24050 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
24051 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
24052 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
24053 of "charset.h".
24054
24055 * dired.c, filelock.c: Include "character.h".
24056
24057 * alloc.c: Include "character.h" instead of "charset.h".
24058 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
24059 (syms_of_alloc): Remove defsubr for Smake_char_table.
24060
24061 * buffer.c: Include "character.h" instead of "charset.h", don't
24062 include "coding.h".
24063 (Fset_buffer_multibyte): Adjust for UTF-8.
24064
24065 * buffer.h: EXFUN Fbuffer_live_p.
24066
24067 * callproc.c: Include "character.h" instead of "charset.h".
24068 (Fcall_process): Big change for the new code-conversion APIs.
24069
24070 * casetab.c: Include "character.h" instead of "charset.h".
24071 (set_canon, set_identity, shuffle): Adjust for the new
24072 map_char_table spec.
24073 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
24074 accessing the char table structure.
24075
24076 * chartab.c: New file that implements char table.
24077
24078 * category.c: Include "character.h".
24079 (copy_category_entry): New function.
24080 (copy_category_table): Call map_char_table and copy_category_entry.
24081 (Fmake_category_table): Initialize all top-level slots.
24082 (char_category_set): New function.
24083 (modify_lower_category_set): Delete.
24084 (Fmodify_category_entry): Call char_table_ref_and_range.
24085
24086 * category.h (CATEGORY_SET): Just call char_category_set.
24087
24088 * ccl.c: Include "character.h".
24089 (Qccl, Qcclp): New variables.
24090 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
24091 it's less than 256.
24092 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
24093 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
24094 and DST type.
24095 (ccl_driver): Change types of argument, adjust code accordingly.
24096 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
24097 ccl_driver.
24098 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
24099
24100 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
24101 New members src_multibyte, dst_multibyte, consumed, and produced.
24102 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
24103 (CODING_SPEC_CCL_PROGRAM): New macro.
24104 (ccl_driver): Update prototype.
24105 (Qccl, Qcclp, Fccl_program_p): Extern them.
24106 (CHECK_CCL_PROGRAM): New macro.
24107
24108 * character.c, character.h, chartab.c: New files.
24109
24110 * charset.c: Mostly re-written. Move character and multibyte sequence
24111 handling codes to character.c.
24112
24113 * charset.h: Mostly re-written. Move character and multibyte sequence
24114 handling codes to character.h.
24115
24116 * coding.c, coding.h: Mostly re-written.
24117
24118 * composite.c: Include "character.h" instead of "charset.h".
24119 (CHAR_WIDTH): Move to character.h.
24120 (HASH_KEY, HASH_VALUE): Delete.
24121
24122 * composite.h (enum composition_method): Change order of enumeration
24123 symbols.
24124
24125 * data.c: Include "character.h" instead of "charset.h".
24126 (Faref): Call CHAR_TABLE_REF for a char table.
24127 (Faset): Call CHAR_TABLE_SET for a char table.
24128
24129 * dispextern.h (free_realized_face, check_face_attribytes)
24130 (generate_ascii_font): Extern them.
24131 (free_realized_multibyte_face): Delete extern.
24132
24133 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
24134 table structure.
24135
24136 * editfns.c: Include "character.h" instead of "charset.h".
24137 (Fchar_to_string): Always call CHAR_STRING.
24138
24139 * emacs.c (main): Call init_charset_once, init_charset,
24140 syms_of_chartab, and syms_of_character.
24141
24142 * fileio.c: Include "character.h" instead of "charset.h".
24143 (Finsert_file_contents): Big change for the new code-conversion API.
24144 (choose_write_coding_system, Fwrite_region): Likewise.
24145 (build_annotations_2): Delete.
24146 (e_write): Big change for the new code-conversion API.
24147
24148 * fns.c: Include "character.h" instead of "charset.h".
24149 (copy_sub_char_table): Move to chartab.c.
24150 (Fcopy_sequence): Call copy_char_table for a char table.
24151 (concat): Delete codes calling count_multibyte.
24152 (string_char_to_byte, string_byte_to_char): Adjust for the new
24153 multibyte form.
24154 (internal_equal): Adjust for the change of char table structure.
24155 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
24156 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
24157 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
24158 (char_table_translate, optimize_sub_char_table)
24159 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
24160 chartab.c.
24161 (char_table_ref_and_index): Delete.
24162 (HASH_KEY, HASH_VALUE): Move to lisp.h.
24163 (Fmd5): Call preferred_coding_system instead of accessing
24164 Vcoding_category_list. Adjust for the new code-conversion API.
24165 (syms_of_fns): Move defsubr for char table related functions to
24166 chartab.c.
24167
24168 * fontset.c: Mostly re-written.
24169
24170 * fontset.h (struct font_info): Change type of the member encoding_type.
24171 (enum FONT_SPEC_INDEX): New enum.
24172 (fontset_font_pattern, fs_load_font): Update prototype.
24173 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
24174
24175 * indent.c: Include "character.h" instead of "charset.h".
24176 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
24177
24178 * insdel.c: Include "character.h" instead of "charset.h".
24179 (copy_text): Don't refer to Vnonascii_translation_table.
24180 (insert_from_gap): New function.
24181
24182 * keyboard.c: Include "character.h" instead of "charset.h".
24183 (command_loop_1): Never call direct_output_forward_char before
24184 a non-ASCII character.
24185 (read_char): If Vkeyboard_translate_table is a char table, always
24186 translate a character.
24187
24188 * keymap.c: Include "character.h".
24189 (store_in_keymap): Handle the case that IDX is a cons.
24190 (Fdefine_key): Handle the case that KEY is a cons and the car part
24191 is also a cons (range).
24192 (push_key_description): Adjust for the new character code.
24193 (describe_vector): Call describe_char_table for a char table.
24194 (describe_char_table): New function.
24195
24196 * keymap.h (describe_char_table): Extern it.
24197
24198 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24199 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24200 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24201 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24202 Delete.
24203 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24204 structure.
24205 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24206 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24207 (CHARTAB_SIZE_BITS_3): New macros.
24208 (chartab_size): Extern it.
24209 (struct Lisp_Char_Table): Re-design.
24210 (struct Lisp_Sub_Char_Table): New structure.
24211 (HASH_KEY, HASH_VALUE): Move from fns.c.
24212 (CHARACTERBITS): Define as 22.
24213 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24214 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24215 (GC_SUB_CHAR_TABLE_P): New macro.
24216 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24217 (code_convert_string_norecord): Deleted extern.
24218 (init_character_once, syms_of_character, init_charset)
24219 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24220
24221 * lread.c: Include "character.h".
24222 (read_multibyte): New arg NBYTES.
24223 (read_escape): Change the meaning of returned *BYTEREP.
24224 (to_multibyte): Delete.
24225 (read1): Adjust the handling of char table and string.
24226
24227 * print.c: Include "character.h" instead of "charset.h".
24228 (print_string): Convert 8-bit raw bytes to octal form by
24229 string_escape_byte8.
24230 (print_object): Adjust for the new multibyte form. Print 8-bit
24231 raw bytes always in octal form. Handle sub char table correctly.
24232
24233 * process.c: Include "character.h" instead of "charset.h".
24234 (read_process_output, send_process): Adjust for the new
24235 code-conversion API.
24236
24237 * puresize.h (BASE_PURESIZE): Increase.
24238
24239 * regex.c: Include "character.h" instead of "charset.h".
24240 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24241 (regex_compile): Accept a range whose starting and ending
24242 character have different leading bytes.
24243 (analyse_first): Adjust for the above change.
24244
24245 * search.c: Include "character.h" instead of "charset.h".
24246 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24247 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24248
24249 * syntax.c: Include "character.h" instead of "charset.h".
24250 (syntax_parent_lookup): Delete.
24251 (Fmodify_syntax_entry): Accept a cons as CHAR.
24252 (skip_chars): Adjust for the new multibyte form.
24253 (init_syntax_once): Call char_table_set_range instead of directly
24254 accessing the structure of a char table.
24255
24256 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24257 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24258 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24259 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24260
24261 * term.c: Include "buffer.h" and "character.h".
24262 (encode_terminal_code, write_glyphs): Adjust for the new
24263 code-conversion API.
24264 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24265
24266 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24267
24268 * xdisp.c: Include "character.h".
24269 (get_next_display_element): Adjust for the new multibyte form.
24270 (disp_char_vector): Adjust for the new char table structure.
24271 (decode_mode_spec_coding): Adjust for the new structure of
24272 coding system.
24273 (decode_mode_spec): Adjust for the new code-conversion API.
24274
24275 * xfaces.c: Include "character.h" instead of "charset.h".
24276 (load_face_font): Adjust for the change of choose_face_font and
24277 FS_LOAD_FONT.
24278 (generate_ascii_font): New function.
24279 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24280 (set_font_frame_param): Adjust for the change of choose_face_font.
24281 (free_realized_face): Make it public.
24282 (free_realized_faces_for_fontset): Rename from
24283 free_realized_multibyte_face. Free also faces realized for ASCII.
24284 (choose_face_font): Change arguments. Adjust for the change of
24285 fontset_font_pattern and FS_LOAD_FONT.
24286
24287 * xfns.c: Include "character.h".
24288 (x_encode_text): Adjust for the new code-conversion API.
24289
24290 * xselect.c: Don't include "charset.h".
24291 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24292
24293 * xterm.c: Include "character.h".
24294 (x_encode_char): New argument CHARSET. Change caller.
24295 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24296 Call ENCODE_CHAR instead of SPLIT_CHAR.
24297 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24298 CHAR_WIDTH instead of CHARSET_WIDTH.
24299 (XTread_socket): Adjust for the new code-conversion API.
24300 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24301 (x_load_font): Adjust for the change of struct font.
24302
243032008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24304
24305 * xfaces.c (face_at_buffer_position): Remove unused vars.
24306
243072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24308
24309 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24310 Fix overflow checking.
24311
243122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24313
24314 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24315 Cancel previous change.
24316
243172008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24318
24319 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24320 ccl->eight_bit_control. Fix check for buffer overflow.
24321 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24322 (ccl_driver): Initialize extra_bytes to 0.
24323
243242008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24325
24326 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24327 return it ORed with ctrl_modifier.
24328
243292008-01-29 Miles Bader <miles@gnu.org>
24330
24331 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24332
243332008-01-28 Jason Rumney <jasonr@gnu.org>
24334
24335 * w32.c (stat): Don't double check for networked drive.
24336
243372008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24338
24339 * window.c (run_window_configuration_change_hook): New function.
24340 Code extracted from set_window_buffer. Set the selected frame.
24341 (set_window_buffer): Use it.
24342 * window.h (run_window_configuration_change_hook): Declare.
24343 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24344
24345 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24346
243472008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24348
24349 * Makefile.in: Remove references to unused macros.
24350
243512008-01-26 Eli Zaretskii <eliz@gnu.org>
24352
24353 * w32.c (g_b_init_get_sid_sub_authority)
24354 (g_b_init_get_sid_sub_authority_count): New static variables.
24355 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24356 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24357 (init_user_info): Use them to retrieve uid and gid.
24358 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24359 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24360 st_uid and st_gid of the file.
24361
243622008-01-26 Jason Rumney <jasonr@gnu.org>
24363
24364 * w32.c (logon_network_drive): New function.
24365 (stat): Use it.
24366
243672008-01-26 Chong Yidong <cyd@stupidchicken.com>
24368
24369 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24370 invisible text covered with an ellipsis.
24371
243722008-01-25 Richard Stallman <rms@gnu.org>
24373
24374 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24375 jump back to beginning. Move some other initializations after that.
24376 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24377 New variables.
24378 (syms_of_xdisp): Init them.
24379
24380 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24381
24382 * buffer.c (reset_buffer_local_variables):
24383 Implement `permanent-local-hook'.
24384 (Qpermanent_local_hook): New variable.
24385 (syms_of_buffer): Init and staticpro it.
24386
243872008-01-25 Michael Albinus <michael.albinus@gmx.de>
24388
24389 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24390
243912008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24392
24393 * fns.c (Fclrhash): Return TABLE.
24394
243952008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24396
24397 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24398 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24399 is set even without positional changes.
24400 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24401
24402 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24403
244042008-01-23 Jason Rumney <jasonr@gnu.org>
24405
24406 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24407
24408 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24409 the unicode range available in MULE by locale-coding-system.
24410 Improve dbcs lead byte detection. Set event timestamp and modifiers
24411 earlier.
24412
244132008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24414
24415 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24416 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24417 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24418 when used on child processes.
24419
244202008-01-21 Michael Albinus <michael.albinus@gmx.de>
24421
24422 * dbusbind.c (Fdbus_method_return_internal): Rename from
24423 Fdbus_method_return.
24424 (Fdbus_unregister_object): Move to dbus.el.
24425 (Fdbus_call_method, Fdbus_method_return_internal)
24426 (Fdbus_send_signal): Improve debug messages.
24427
244282008-01-20 Martin Rudalics <rudalics@gmx.at>
24429
24430 * undo.c (undo_inhibit_record_point): New variable.
24431 (syms_of_undo): Initialize it.
24432 (record_point): Don't record point when undo_inhibit_record_point
24433 is set.
24434
244352008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24436
24437 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24438
24439 * xdisp.c (Qauto_hscroll_mode): New var.
24440 (syms_of_xdisp): Initialize it.
24441 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24442 window's buffer.
24443 (hscroll_windows): Don't check automatic_hscrolling_p here.
24444
24445 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24446 vscroll if we're setting window-buffer to the value it already has.
24447
244482008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24449
24450 * m/intel386.h: Remove references to XENIX.
24451
244522008-01-17 Andreas Schwab <schwab@suse.de>
24453
24454 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24455 instead of HAVE_X86_64_LIB64_DIR.
24456 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24457
244582008-01-17 Glenn Morris <rgm@gnu.org>
24459
24460 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24461 to HAVE_X86_64_LIB64_DIR.
24462
244632008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24464
24465 * s/irix3-3.h:
24466 * s/irix4-0.h:
24467 * s/386-ix.h:
24468 * s/domain.h:
24469 * s/hpux9-x11r4.h:
24470 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24471
24472 * sysdep.c: Remove code containing references to symbols defined
24473 by unsupported systems.
24474
244752008-01-16 Glenn Morris <rgm@gnu.org>
24476
24477 * coding.c (select-safe-coding-system-function): Doc fix.
24478
244792008-01-15 Glenn Morris <rgm@gnu.org>
24480
24481 * config.in: Revert 2008-01-13 change: this is a generated file.
24482
244832008-01-13 Tom Tromey <tromey@redhat.com>
24484
24485 * lisp.h: Fix typo.
24486
244872008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24488
24489 * m/sequent-ptx.h:
24490 * m/sequent.h:
24491 * s/ptx.h:
24492 * s/ptx4-2.h:
24493 * s/ptx4.h: Remove files for systems no longer supported.
24494
24495 * callproc.c (Fcall_process): Fix previous change.
24496
244972008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24498
24499 * unexsunos4.c: Remove file, system not supported anymore.
24500
24501 * m/mips.h:
24502 * m/intel386.h:
24503 * callproc.c:
24504 * config.in:
24505 * ecrt0.c:
24506 * emacs.c:
24507 * fileio.c:
24508 * frame.c:
24509 * getpagesize.h:
24510 * keyboard.c:
24511 * lread.c:
24512 * process.c:
24513 * puresize.h:
24514 * sysdep.c:
24515 * systty.h:
24516 * syswait.h:
24517 * unexec.c:
24518 * xdisp.c:
24519 * alloc.c: Remove code containing references to symbols defined by
24520 unsupported systems.
24521
245222008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24523
24524 * coding.c (detect_coding_mask): Fix previous change.
24525
245262008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24527
24528 * coding.c (detect_coding_iso2022): New arg
24529 latin_extra_code_state. Allow Latin extra codes only
24530 when *latin_extra_code_state is nonzero.
24531 (detect_coding_mask): If there is a NULL byte, detect the encoding
24532 as UTF-16 or binary. If Latin extra codes exist, detect the
24533 encoding as ISO-2022 only when there's no other proper encoding is
24534 found.
24535
245362008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24537
24538 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24539 #ifdef MAC_OS.
24540
245412008-01-08 Richard Stallman <rms@gnu.org>
24542
24543 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24544
245452008-01-06 Nick Roberts <nickrob@snap.net.nz>
24546
24547 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24548 menu bar in parentheses.
24549
245502008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24551
24552 * m/7300.h:
24553 * m/acorn.h:
24554 * m/alliant-2800.h:
24555 * m/alliant.h:
24556 * m/alliant1.h:
24557 * m/alliant4.h:
24558 * m/altos.h:
24559 * m/amdahl.h:
24560 * m/apollo.h:
24561 * m/att3b.h:
24562 * m/aviion-intel.h:
24563 * m/aviion.h:
24564 * m/celerity.h:
24565 * m/clipper.h:
24566 * m/cnvrgnt.h:
24567 * m/convex.h:
24568 * m/cydra5.h:
24569 * m/delta88k.h:
24570 * m/dpx2.h:
24571 * m/dual.h:
24572 * m/elxsi.h:
24573 * m/f301.h:
24574 * m/gould-np1.h:
24575 * m/gould.h:
24576 * m/i860.h:
24577 * m/ibmps2-aix.h:
24578 * m/ibmrt-aix.h:
24579 * m/ibmrt.h:
24580 * m/irist.h:
24581 * m/is386.h:
24582 * m/isi-ov.h:
24583 * m/mega68.h:
24584 * m/mg1.h:
24585 * m/news-r6.h:
24586 * m/news-risc.h:
24587 * m/news.h:
24588 * m/nh3000.h:
24589 * m/nh4000.h:
24590 * m/ns16000.h:
24591 * m/ns32000.h:
24592 * m/nu.h:
24593 * m/orion.h:
24594 * m/orion105.h:
24595 * m/paragon.h:
24596 * m/pfa50.h:
24597 * m/plexus.h:
24598 * m/pyramid.h:
24599 * m/pyrmips.h:
24600 * m/sh3el.h:
24601 * m/sps7.h:
24602 * m/sr2k.h:
24603 * m/stride.h:
24604 * m/sun1.h:
24605 * m/sun2.h:
24606 * m/sun3-68881.h:
24607 * m/sun3-fpa.h:
24608 * m/sun3-soft.h:
24609 * m/sun3.h:
24610 * m/sun386.h:
24611 * m/symmetry.h:
24612 * m/tad68k.h:
24613 * m/tahoe.h:
24614 * m/targon31.h:
24615 * m/tek4300.h:
24616 * m/tekxd88.h:
24617 * m/tower32.h:
24618 * m/tower32v3.h:
24619 * m/ustation.h:
24620 * m/wicat.h:
24621 * m/xps100.h:
24622 * s/cxux.h:
24623 * s/cxux7.h:
24624 * s/dgux.h:
24625 * s/dgux4.h:
24626 * s/dgux5-4-3.h:
24627 * s/dgux5-4r2.h:
24628 * s/esix.h:
24629 * s/esix5r4.h:
24630 * s/hiuxmpp.h:
24631 * s/hiuxwe2.h:
24632 * s/iris3-5.h:
24633 * s/iris3-6.h:
24634 * s/isc2-2.h:
24635 * s/isc3-0.h:
24636 * s/isc4-0.h:
24637 * s/isc4-1.h:
24638 * s/newsos5.h:
24639 * s/newsos6.h:
24640 * s/osf1.h:
24641 * s/osf5-0.h:
24642 * s/riscix1-1.h:
24643 * s/riscix12.h:
24644 * s/sco4.h:
24645 * s/sco5.h:
24646 * s/sunos4-0.h:
24647 * s/sunos4-1.h:
24648 * s/sunos413.h:
24649 * s/sunos4shr.h:
24650 * s/umax.h:
24651 * s/unipl5-2.h:
24652 * s/xenix.h:
24653 * cxux-crt0.s:
24654 * unexapollo.c:
24655 * unexconvex.c:
24656 * unexenix.c:
24657 * unexsni.c: Remove files for systems no longer supported.
24658
24659 * m/intel386.h: Remove references to unsupported systems.
24660
24661 * w32.c (get_emacs_configuration): Remove reference to i860.
24662
24663 * sysdep.c: Remove dead code.
24664
246652008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24666
24667 * s/rtu.h:
24668 * m/masscomp.h: Remove files. Platform is obsolete.
24669
246702008-01-04 Michael Albinus <michael.albinus@gmx.de>
24671
24672 * dbusbind.c (Fdbus_method_return): New function.
24673 (xd_read_message): Add the serial number to the event.
24674 (Fdbus_register_method): Activate the function.
24675
246762008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24677
24678 * keyboard.c (read_key_sequence): Fix typo.
24679
246802008-01-03 Michael Albinus <michael.albinus@gmx.de>
24681
24682 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24683 (xd_signature, xd_append_arg): Handle element type detection for
24684 empty arrays.
24685 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24686 SDATA () calls; this must be solved more general.
24687 (Fdbus_register_signal): Use SBYTES instead of strlen.
24688
246892008-01-03 Magnus Henoch <magnus@zemdatav>
24690
24691 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24692 unsigned int for byte values (necessary for big-endian platform).
24693 (Fdbus_call_method): Handle the case of no returned arguments.
24694
246952007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24696
24697 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24698
246992007-12-31 Magnus Henoch <mange@freemail.hu>
24700
24701 * dbusbind.c (xd_signature): Signature of variant is just "v".
24702
247032007-12-30 Michael Albinus <michael.albinus@gmx.de>
24704
24705 * dbusbind.c: Fix several errors and compiler warnings.
24706 Reported by Tom Tromey <tromey@redhat.com>.
24707 (XD_ERROR, XD_DEBUG_MESSAGE)
24708 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24709 (xd_append_arg): Part for basic D-Bus types rewritten.
24710 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24711 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24712 appropriate.
24713 (xd_read_message): Return Qnil. Don't signal an error; it is not
24714 useful during event reading.
24715 (Fdbus_register_signal): Signal an error if the check for
24716 FUNCTIONP fails.
24717 (Fdbus_register_method): New function. The implementation is not
24718 complete, the call of the function signals an error therefore.
24719 (Fdbus_unregister_object): New function, renamed from
24720 Fdbus_unregister_signal. The initial check signals an error, if
24721 the object is not well formed.
24722
247232007-12-30 Richard Stallman <rms@gnu.org>
24724
24725 * textprop.c (get_char_property_and_overlay):
24726 Signal error if POSITION is out of range in a buffer.
24727
247282007-12-29 Martin Rudalics <rudalics@gmx.at>
24729
24730 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24731 because the original parameters are in pure storage now.
24732
247332007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24734
24735 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24736
247372007-12-22 Eli Zaretskii <eliz@gnu.org>
24738
24739 * callint.c (syms_of_callint) <command-history>: Add reference to
24740 history-length in the doc string.
24741
247422007-12-17 Jason Rumney <jasonr@gnu.org>
24743
24744 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24745 before passing as wParam.
24746
247472007-12-22 Michael Albinus <michael.albinus@gmx.de>
24748
24749 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24750 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24751 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24752 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24753 as number.
24754 (Fdbus_call_method): Fix docstring.
24755
247562007-12-21 Michael Albinus <michael.albinus@gmx.de>
24757
24758 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24759 New macros.
24760 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24761 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24762 Simplify.
24763 (xd_signature): New function.
24764 (xd_append_arg): Compute also signatures. Major rewrite.
24765 (xd_retrieve_arg): Make debug messages friendly.
24766 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24767 Check for signatures of arguments.
24768
247692007-12-19 Michael Albinus <michael.albinus@gmx.de>
24770
24771 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24772 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24773 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24774 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24775 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24776 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24777 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24778 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24779 (xd_retrieve_value): Remove. Functionality included in ...
24780 (xd_append_arg): New function.
24781 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24782
247832007-12-16 Michael Albinus <michael.albinus@gmx.de>
24784
24785 * dbusbind.c (top): Include <stdio.h>.
24786 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24787 dbus_message_new_method_call and dbus_message_new_signal.
24788 (Fdbus_register_signal): Rename unique_name to uname.
24789 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24790 non-existing unique name. Fix typos in matching rule. Return an
24791 object which is useful in Fdbus_unregister_signal.
24792 (Fdbus_unregister_signal): Reimplementation, in order to remove
24793 only the corresponding entry.
24794 (Vdbus_registered_functions_table): Change the order of entries.
24795 Apply these changes in xd_read_message and Fdbus_register_signal.
24796
247972007-12-16 Andreas Schwab <schwab@suse.de>
24798
24799 * fileio.c (Finsert_file_contents): Fix overflow check to not
24800 depend on undefined integer overflow.
24801
248022007-12-14 Jason Rumney <jasonr@gnu.org>
24803
24804 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24805 for characters above 127.
24806
248072007-12-13 Jason Rumney <jasonr@gnu.org>
24808
24809 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24810 before dereferencing array.
24811 (lookup_vk_code): Remove zero comparison.
24812
248132007-12-14 Michael Albinus <michael.albinus@gmx.de>
24814
24815 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24816 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24817 Use `unsigned int' instead of `uint'.
24818 (xd_read_message, Fdbus_register_signal): Split expressions into
24819 multiple lines before operators "&&" and "||", according to the
24820 GNU Coding Standards.
24821
248222007-12-14 Eli Zaretskii <eliz@gnu.org>
24823
24824 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24825
248262007-12-12 Juri Linkov <juri@jurta.org>
24827
24828 * buffer.c (Frename_buffer): In interactive spec replace
24829 `read-buffer' with `read-string' that uses `buffer-name-history'
24830 as history, and the current buffer's name as default.
24831
248322007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24833
24834 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24835 manipulating the backtrace manually.
24836 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24837 (struct backtrace, backtrace_list): Remove.
24838 (command_loop_1): Remove dead var `no_direct'.
24839
24840 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24841 preserve non-built-in buffer-local variables.
24842 (Fkill_all_local_variables): Don't re-create&re-set permanent
24843 buffer-local variables.
24844
248452007-12-09 Juri Linkov <juri@jurta.org>
24846
24847 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24848 Lisp code that uses `read-buffer' with current buffer as default.
24849
248502007-12-08 Michael Albinus <michael.albinus@gmx.de>
24851
24852 * dbusbind.c (xd_read_message): Generate an event for every
24853 registered handler. There might be several handlers registered
24854 for the same signal.
24855 (Fdbus_register_signal): Don't overwrite a registration for the
24856 same signal. Add a new registration if handlers are different.
24857 (Vdbus_registered_functions_table): Rework doc string.
24858
248592007-12-07 Michael Albinus <michael.albinus@gmx.de>
24860
24861 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24862 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24863 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24864 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24865 Unify argument lists.
24866 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24867 arguments and hash table keys. Use unique name for service.
24868 (Fdbus_unregister_signal): Remove checks.
24869 (Vdbus_registered_functions_table): Fix doc string.
24870
248712007-12-05 Magnus Henoch <mange@freemail.hu>
24872
24873 * process.c (make_process): Initialize pty_flag to 0.
24874
248752007-12-05 Jason Rumney <jasonr@gnu.org>
24876
24877 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24878 specified XBMs.
24879
248802007-12-05 Richard Stallman <rms@gnu.org>
24881
24882 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24883
248842007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24885
24886 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24887 New variable.
24888 (mac_try_close_socket) [MAC_OSX]: New function.
24889 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24890 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24891
24892 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24893 Use mac_try_close_socket.
24894
248952007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24896
24897 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24898 reloc_base.
24899 (copy_dysymtab): Compute relocation base here.
24900 (rebase_reloc_address) [__ppc64__]: New function.
24901 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24902 changed.
24903
249042007-12-05 Jason Rumney <jasonr@gnu.org>
24905
24906 * w32proc.c (sys_spawnve): Quote args with wildcards.
24907
249082007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24909
24910 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24911 __objc_* sections.
24912 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24913
249142007-12-05 Michael Albinus <michael.albinus@gmx.de>
24915
24916 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24917 Move check for Vdbus_registered_functions_table to
24918 xd_read_queued_messages.
24919 (xd_read_queued_messages): Protect xd_read_message calls by
24920 internal_condition_case_1.
24921
249222007-12-04 Michael Albinus <michael.albinus@gmx.de>
24923
24924 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24925 Qdbus_system_bus and Qdbus_session_bus, respectively.
24926 (Vdbus_intern_symbols): Remove.
24927 (Vdbus_registered_functions_table): New hash table.
24928 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24929 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24930 Rewrite in order to manage registered functions by hash table
24931 Vdbus_registered_functions_table.
24932
249332007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24934
24935 * xterm.c: Update URL to Window Manager Specification in comment.
24936
249372007-12-02 Michael Albinus <michael.albinus@gmx.de>
24938
24939 * config.in (HAVE_DBUS): Add.
24940
24941 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24942 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24943 (obj): Add $(DBUS_OBJ).
24944 (LIBES): Add $(DBUS_LIBS).
24945 (dbusbind.o): New target.
24946
24947 * dbusbind.c: New file.
24948
24949 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24950
24951 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24952 (Qdbus_event): New Lisp symbol.
24953 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24954 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24955 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24956
24957 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24958
249592007-12-01 Richard Stallman <rms@gnu.org>
24960
24961 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24962
249632007-11-30 Jason Rumney <jasonr@gnu.org>
24964
24965 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24966 (w32con_reset_terminal_modes): Clear screen buffer.
24967 (w32_face_attributes): Don't use color indexes that are out of range.
24968 Only reverse the default colors.
24969
24970 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24971 WINDOWSNT.
24972
24973 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24974
249752007-11-29 Jason Rumney <jasonr@gnu.org>
24976
24977 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24978 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24979 if the terminal colors are initialized.
24980 (unspecified_fg, unspecified_bg): Remove unused declarations.
24981
249822007-11-29 Andreas Schwab <schwab@suse.de>
24983
24984 * keyboard.c (apply_modifiers): Fix typo.
24985
249862007-11-29 Richard Stallman <rms@gnu.org>
24987
24988 * keymap.c (Fcurrent_local_map): Doc fix.
24989
249902007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24991
24992 * s/gnu-kfreebsd.h: New file.
24993
249942007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24995
24996 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24997 Don't cast redundantly.
24998
24999 * keyboard.c (KEY_TO_CHAR): New macro.
25000 (parse_modifiers, apply_modifiers): Accept integer arguments.
25001 (read_key_sequence): Use them to unify the "shift->unshift" mapping
25002 for chars and symbol keys.
25003 After doing such remapping, apply function-key-map again.
25004
250052007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
25006
25007 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
25008 compiled anymore.
25009
250102007-11-26 Andreas Schwab <schwab@suse.de>
25011
25012 * process.c (list_processes_1): Fix indentation level of the
25013 command column.
25014
250152007-11-23 Andreas Schwab <schwab@suse.de>
25016
25017 * editfns.c (Fformat): Handle %c specially since it requires the
25018 argument to be of type int.
25019
250202007-11-23 Markus Triska <markus.triska@gmx.at>
25021
25022 * emacs.c (main): Call init_editfns before init_process, since
25023 init_process sets Vprocess_connection_type depending on OS release.
25024
250252007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
25026
25027 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
25028 (find_symbol_value): Use do_symval_forwarding.
25029
25030 * data.c (set_internal): Set the value in the `cons-cell' (for
25031 Buffer_Local_values) not only for frame-local variables.
25032
250332007-11-22 Andreas Schwab <schwab@suse.de>
25034
25035 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
25036 values to sprintf.
25037 * keymap.c (Fsingle_key_description): Likewise.
25038 * print.c (print_object): Likewise.
25039
250402007-11-22 Jan Djärv <jan.h.d@swipnet.se>
25041
25042 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
25043 file for image is nil.
25044
250452007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
25046
25047 * term.c: Include stdarg.h.
25048 (fatal): Implement using varargs.
25049 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
25050
250512007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25052
25053 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
25054 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
25055 Update call to buffer_slot_type_mismatch.
25056 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
25057 (buffer_slot_type_mismatch): Update.
25058 * buffer.c (buffer_local_types): Remove.
25059 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
25060 (defvar_per_buffer): Set the type in the buffer_objfwd.
25061
250622007-11-21 Jason Rumney <jasonr@gnu.org>
25063
25064 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
25065 CreateFileMapping returns NULL on failure.
25066
250672007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25068
25069 * search.c (Fset_match_data): Remove the `evaporate' feature.
25070 (unwind_set_match_data): Don't use the `evaporate' feature.
25071
250722007-11-21 Jason Rumney <jasonr@gnu.org>
25073
25074 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
25075
25076 * w32console.c (w32con_write_glyphs): Remove unused variables.
25077
250782007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
25079
25080 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
25081
25082 * s/darwin.h (MULTI_KBOARD): Remove.
25083
25084 * macfns.c (x_create_tip_frame, Fx_create_frame)
25085 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
25086
250872007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
25088
25089 * buffer.c (Fbuffer_local_value): Remove redundant test.
25090 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
25091 than in `current-buffer' to match the comment.
25092 Do the swap using swap_in_global_binding.
25093
25094 * data.c (store_symval_forwarding, set_internal):
25095 * eval.c (specbind): Remove dead code.
25096
25097 * coding.c (detect_coding, Fupdate_coding_systems_internal):
25098 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
25099 Since we do not want to see internal Lisp_*fwd objects here.
25100
251012007-11-18 Jan Djärv <jan.h.d@swipnet.se>
25102
25103 * sysdep.c (init_system_name): Use getaddrinfo if available.
25104
25105 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
25106 (x_scroll_bar_note_movement): start, end, with, height in struct
25107 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
25108
251092007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
25110
25111 * puresize.h (BASE_PURESIZE): Increase to 1190000.
25112
251132007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
25114
25115 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
25116 This undoes Richard's change of 14-Oct-2002.
25117
25118 * alloc.c (allocate_other_vector):
25119 * lisp.h (allocate_other_vector): Remove.
25120
25121 * window.c (struct save_window_data): Move non-lisp data to the end
25122 and make it `int' rather than Lisp_Object.
25123 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
25124 Done wrap/unwrap integer values.
25125 (Fset_window_configuration, compare_window_configurations):
25126 Update use of fields to their new types.
25127
25128 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
25129 Turn integer fields into `int'. Merge x_window_low and x_window_high.
25130 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
25131 (SET_SCROLL_BAR_X_WINDOW): Remove.
25132 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
25133 Access the new x_window field directly.
25134 * xterm.c (x_scroll_bar_create): Use a pseudovector.
25135 Don't wrap/unwrap integers into Lisp_Objects.
25136 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
25137 (x_scroll_bar_report_motion):
25138 Don't wrap/unwrap integers into Lisp_Objects.
25139 (x_term_init): Use SDATA.
25140 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
25141 (x_scroll_bar_set_handle, x_scroll_bar_remove)
25142 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
25143 (x_scroll_bar_report_motion, x_scroll_bar_clear):
25144 * xfns.c (x_set_background_color):
25145 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
25146 Access the new x_window field directly.
25147
25148 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
25149 (allocate_pseudovector): Make non-static.
25150
25151 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
25152 (allocate_pseudovector): Declare.
25153 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
25154
251552007-11-15 Andreas Schwab <schwab@suse.de>
25156
25157 * editfns.c (Fformat): Correctly format EMACS_INT values.
25158 Also take precision into account when formatting an integer.
25159
25160 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
25161
251622007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
25163
25164 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
25165 (syms_of_keyboard): Defsubr it.
25166
25167 * data.c (swap_in_global_binding): Fix longstanding bug where
25168 store_symval_forwarding was not called with the right second argument,
25169 thus causing objfwd-ing from being dropped.
25170
251712007-11-14 Juanma Barranquero <lekktu@gmail.com>
25172
25173 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
25174 (Fx_display_pixel_height, Fx_display_planes)
25175 (Fx_display_color_cells, Fx_server_max_request_size)
25176 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25177 (Fx_display_visual_class, Fx_display_save_under):
25178 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
25179 (Fx_display_pixel_height, Fx_display_planes)
25180 (Fx_display_color_cells, Fx_server_max_request_size)
25181 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25182 (Fx_display_mm_height, Fx_display_mm_width)
25183 (Fx_display_backing_store, Fx_display_visual_class)
25184 (Fw32_select_font, Fx_display_save_under):
25185 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
25186 (Fx_display_pixel_height, Fx_display_planes)
25187 (Fx_display_color_cells, Fx_server_max_request_size)
25188 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25189 (Fx_display_save_under): Fix typos in docstrings.
25190
251912007-11-14 Juanma Barranquero <lekktu@gmail.com>
25192
25193 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25194 corresponding to deleted entries; they are an implementation detail.
25195 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25196 Remove variables.
25197 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25198 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25199 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25200 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25201 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25202 (Fw32_define_rgb_color, Fw32_load_color_file)
25203 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25204 Fix typos in docstrings.
25205 (Fx_server_version): Reflow docstring.
25206 (Fw32_shell_execute): Doc fixes.
25207
252082007-11-13 Juanma Barranquero <lekktu@gmail.com>
25209
25210 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25211 if w32_parse_hot_key returned nil.
25212
252132007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
25214
25215 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25216
252172007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 25218
aac0c6e3
MR
25219 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25220
25221 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25222
25223 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25224 Remove W32_SCROLL_BAR_CLICK_EVENT.
25225
25226 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25227 Add MULTIMEDIA_KEY_EVENT.
25228
25229 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25230 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25231 (make_lispy_event) [WINDOWSNT]: Use it to translate
25232 MULTIMEDIA_KEY_EVENT.
25233
25234 * w32term.h (WM_APPCOMMAND): Define if not already.
25235 (GET_APPCOMMAND_LPARAM): Likewise.
25236
25237 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25238 WM_APPCOMMAND.
25239
25240 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25241 (syms_of_w32fns): Export and initialize it.
25242 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25243
252442007-11-09 Chong Yidong <cyd@stupidchicken.com>
25245
25246 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25247 twice.
25248
25249 * xdisp.c (handle_face_prop): Fix last change.
25250
252512007-11-09 Richard Stallman <rms@gnu.org>
25252
25253 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25254 not just for after-strings and before-strings.
25255 Call face_for_overlay_string and pass the overlay to it.
25256 (handle_display_prop): Determine whether property came from an overlay.
25257 Pass OVERLAY arg to handle_single_display_spec.
25258 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25259 (load_overlay_strings): Fill in it->string_overlays.
25260 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25261
25262 * xfaces.c (face_for_overlay_string): Function renamed from
25263 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25264
25265 * dispextern.h (struct it): New elt string_overlays.
25266 New elt from_overlay, also in stack.
25267 Rearrange a few elements.
25268 (face_for_overlay_string): Decl renamed from
25269 face_at_buffer_position_no_overlays, and add argument.
25270
252712007-11-09 Richard Stallman <rms@gnu.org>
25272
25273 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25274 to get the base face for an overlay string.
25275
25276 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25277
25278 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25279
25280 * xdisp.c (handle_stop): Move some code out of loop.
25281
252822007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25283
25284 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25285 Fix conversion from Lisp object to ATSUFontID.
25286
252872007-11-09 Jason Rumney <jasonr@gnu.org>
25288
25289 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25290
252912007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25292
25293 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25294 Don't assume regions are aligned to page boundary.
25295 (print_load_command_name): Add LC_UUID if defined.
25296
252972007-11-09 Richard Stallman <rms@gnu.org>
25298
25299 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25300
253012007-11-07 Jason Rumney <jasonr@gnu.org>
25302
25303 * s/windows95.h: Remove.
25304
253052007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25306
25307 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25308 abort with a message on unhandled store_type values.
25309
253102007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25311
25312 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25313 Remove HAVE_X11R5 and HAVE_X11R4.
25314
253152007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25316
25317 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25318
253192007-11-01 Johan Bockgård <bojohan@gnu.org>
25320
25321 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25322 Don't set s->stippled_p here, since it has already been set by
25323 x_set_glyph_string_gc from x_draw_glyph_string.
25324
253252007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25326
25327 * sunfns.c: Remove file.
25328
25329 * m/sun386.h:
25330 * m/sun2.h:
25331 * m/sparc.h: Remove Sun windows code.
25332
253332007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25334
25335 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25336 (init_keyboard): Set current_kboard's window-system to nil.
25337 (tty_read_avail_input): Typo.
25338 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25339
253402007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25341
25342 * s/usg5-4.h:
25343 * s/usg5-3.h:
25344 * s/ptx.h:
25345 * m/is386.h:
25346 * m/ibmps2-aix.h:
25347 * Makefile.in: Remove all mentions of X10.
25348
25349 * dispnew.c (syms_of_display): Don't mention version 10.
25350
253512007-10-28 Juanma Barranquero <lekktu@gmail.com>
25352
25353 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25354 ($(BLD)/abbrev.$(O)): Remove.
25355
253562007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25357
25358 Rewrite abbrev.c in Elisp.
25359 * image.c (Qcount): Don't declare as extern.
25360 (syms_of_image): Initialize and staticpro `Qcount'.
25361 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25362 * emacs.c (main): Don't call syms_of_abbrev.
25363 * Makefile.in (obj): Remove abbrev.o.
25364 (abbrev.o): Remove.
25365 * abbrev.c: Remove.
25366
253672007-10-26 Martin Rudalics <rudalics@gmx.at>
25368
25369 * window.c (window_min_size_2): Don't count header-line.
25370
253712007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25372
25373 * frame.h (struct frame): Move all bit fields after the first bit
25374 field to take advantage of the available space. Group all the
25375 chars together to reduce wasted space due to padding.
25376
253772007-10-26 Juanma Barranquero <lekktu@gmail.com>
25378
25379 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25380
25381 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25382 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25383 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25384 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25385 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25386 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25387 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25388 (last_marked, mark_object_loop_halt): Make static.
25389
25390 * frame.c (syms_of_frame) <delete-frame-functions>:
25391 Fix typo in docstring.
25392
253932007-10-25 Juanma Barranquero <lekktu@gmail.com>
25394
25395 * w32.c (init_environment): Fix tiny memory leak.
25396 (w32_get_resource): Remove unused variable `ok'.
25397
253982007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25399
25400 Make `window-system' into a keyboard-local variable (rather than
25401 frame-local as done originally by multi-tty).
25402
25403 * keyboard.h (struct kboard): Add Vwindow_system.
25404 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25405 (mark_kboards): Mark Vwindow_system.
25406
25407 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25408 (init_display): Don't set the obsolete `window-system' frame-param.
25409
25410 * xterm.c (x_term_init):
25411 * w32term.c (w32_create_terminal):
25412 * term.c (init_tty): Set Vwindow_system.
25413 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25414 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25415
25416 * xfns.c (Fx_create_frame, x_create_tip_frame):
25417 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25418 * macfns.c (Fx_create_frame):
25419 Don't set the obsolete `window-system' frame-param.
25420
25421 * frame.h (Qwindow_system): Remove.
25422 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25423 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25424
254252007-10-24 Richard Stallman <rms@gnu.org>
25426
25427 * frame.c (x_figure_window_size): For fullscreen case,
25428 set USPosition | PPosition without clobbering rest of window_prompting.
25429
25430 * keyboard.c (Fcurrent_idle_time): Doc fix.
25431
25432 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25433
254342007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25435
25436 * process.c (unwind_request_sigio): Only define if __ultrix__.
25437
25438 * callproc.c (child_setup): Remove spurious *.
25439
25440 * lisp.h (Fget_text_property): Declare.
25441 (have_menus_p): Declare it here rather than in sys-dep header files.
25442 * macterm.h (have_menus_p):
25443 * msdos.h (have_menus_p):
25444 * xterm.h (have_menus_p): Remove.
25445
25446 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25447 (Fmake_variable_frame_local): Just check the variable's const-ness
25448 rather than checking nil or t.
25449
254502007-10-22 Jason Rumney <jasonr@gnu.org>
25451
25452 * w32fns.c: Include math.h.
25453 (w32_abort): Declaration moved to nt/config.nt.
25454
25455 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25456 (abort): Redefinition moved to nt/config.nt.
25457
25458 * m/windowsnt.h: Remove.
25459
254602007-10-22 Juanma Barranquero <lekktu@gmail.com>
25461
25462 * emacs.c (Fdump_emacs): Fix typo in message.
25463 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25464 <installation-directory>: Reflow docstring.
25465
254662007-10-22 Juri Linkov <juri@jurta.org>
25467
25468 * minibuf.c: Allow minibuffer default to be a list of default values.
25469 With empty input use the first element of this list as returned default.
25470 (string_to_object)
25471 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25472 (read_minibuf): If defalt is cons, set histstring to its car.
25473 (Fread_string): If default_value is cons, set val to its car.
25474 (Fread_buffer): If def is cons, use its car.
25475 (Fcompleting_read): If defalt is cons, set val to its car.
25476
254772007-10-21 Michael Albinus <michael.albinus@gmx.de>
25478
25479 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25480
254812007-10-20 Juanma Barranquero <lekktu@gmail.com>
25482
25483 * doc.c (Fdocumentation): Check for advice in all cases.
25484
254852007-10-19 Chong Yidong <cyd@stupidchicken.com>
25486
25487 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25488
254892007-10-19 Richard Stallman <rms@gnu.org>
25490
25491 * doc.c (Fdocumentation): Check for and handle an advised function.
25492
254932007-10-19 Juanma Barranquero <lekktu@gmail.com>
25494
25495 * process.c (Fset_process_filter): Doc fix.
25496
254972007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25498
25499 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25500 which caused key-translation-map to applied repeatedly (thus breaking
25501 double-mode).
25502
255032007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25504
25505 * xselect.c (x_own_selection, x_handle_selection_clear)
25506 (x_clear_frame_selections):
25507 * w32menu.c (list_of_panes, list_of_items):
25508 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25509 * textprop.c (validate_plist, interval_has_all_properties)
25510 (interval_has_some_properties, interval_has_some_properties_list)
25511 (add_properties, text_property_list):
25512 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25513 * minibuf.c (Fassoc_string):
25514 * macselect.c (x_own_selection, x_clear_frame_selections)
25515 (Fx_disown_selection_internal):
25516 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25517 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25518
255192007-10-17 Chong Yidong <cyd@stupidchicken.com>
25520
25521 * process.c: Link to libs for calling res_init() if available.
25522 (Fmake_network_process): Call res_init() before getaddrinfo or
25523 gethostbyname, if possible.
25524
255252007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25526
25527 * lread.c (read1): Set pvectype for char_tables.
25528
25529 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25530 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25531 Add type checks.
25532 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25533
25534 * alloc.c (free_misc): Use XMISCTYPE.
25535 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25536
255372007-10-17 Glenn Morris <rgm@gnu.org>
25538
25539 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25540 (syms_of_minibuf): Add Qcompletion_ignore_case.
25541 * dired.c (Qcompletion_ignore_case): Change to external.
25542 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25543 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25544 (Fread_file_name): Use it rather than intern'ing.
25545
25546 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25547 (Fread_coding_system): Ignore case of user input.
25548
255492007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25550
25551 * xdisp.c (handle_display_prop): Ignore display specs after
25552 replacing one when string text is being replaced.
25553 (handle_single_display_spec): Pretend as if characters with display
25554 property haven't been consumed only when buffer text is being replaced.
25555
255562007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25557
25558 * xfns.c (Fx_create_frame, Fx_display_list):
25559 * window.c (window_fixed_size_p, enlarge_window)
25560 (shrink_window_lowest_first):
25561 * macterm.c (init_font_name_table):
25562 * macfns.c (Fx_create_frame, Fx_display_list):
25563 * lread.c (close_load_descs):
25564 * keyboard.c (read_char_x_menu_prompt):
25565 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25566 * coding.c (code_convert_region_unwind): Test the type of an object
25567 rather than just !NILP before extracting data from it.
25568
25569 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25570
25571 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25572 (XMISCANY): New macro.
25573 (XMISCTYPE): Use it.
25574 (struct Lisp_Misc_Any): New type.
25575 (union Lisp_Misc): Use it.
25576 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25577 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25578 (find_symbol_value, set_internal, default_value, Fset_default)
25579 (Fmake_variable_buffer_local, Fmake_local_variable)
25580 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25581 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25582 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25583 * alloc.c (allocate_buffer): Set the size and tag.
25584 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25585 Use XMISCANY.
25586 (die): Follow the GNU convention for error messages.
25587 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25588 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25589 tag any more.
25590 (set_buffer_internal_1):
25591 * frame.c (store_frame_param):
25592 * eval.c (specbind):
25593 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25594
25595 * doc.c (Fsnarf_documentation): Simplify.
25596
255972007-10-14 Juanma Barranquero <lekktu@gmail.com>
25598
25599 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25600 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25601
256022007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25603
25604 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25605
256062007-10-14 Juanma Barranquero <lekktu@gmail.com>
25607
25608 * eval.c (do_autoload): Don't save autoloads.
25609
25610 * data.c (Ffset): Save autoload of the function being set.
25611
256122007-10-07 John Paul Wallington <jpw@pobox.com>
25613
25614 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25615 parameter before setting up faces.
25616
256172007-10-13 Eli Zaretskii <eliz@gnu.org>
25618
25619 * ccl.c (Fregister_code_conversion_map):
25620 * keyboard.c (append_tool_bar_item): Reformat last change.
25621
25622 * lisp.h (eabs): Rename from `abs'. All callers changed.
25623
256242007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25625
25626 * buffer.c (add_overlay_mod_hooklist):
25627 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25628 * fontset.c (make_fontset):
25629 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25630 (append_tool_bar_item):
25631 * macmenu.c (grow_menu_items):
25632 * w32menu.c (grow_menu_items):
25633 * xmenu.c (grow_menu_items): Use larger_vector.
25634
256352007-10-13 Eli Zaretskii <eliz@gnu.org>
25636
25637 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25638 selected frame'' on MSDOS).
25639
256402007-10-12 Martin Rudalics <rudalics@gmx.at>
25641
25642 * frame.c (Qexplicit_name): New variable.
25643 (x_report_frame_params): Report it in parameter alist.
25644 (syms_of_frame): Intern and staticpro it.
25645
256462007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25647
25648 * macfns.c (x_create_tip_frame): Set terminal for frame.
25649
256502007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25651
25652 * frame.c (Qenvironment): Remove.
25653 (syms_of_frame) <Qenvironment>: Don't initialize.
25654 (Fdelete_frame): Don't treat the `environment' param specially.
25655 * frame.h (Qenvironment): Don't declare.
25656 * callproc.c (set_initial_environment): Don't set unused frame param.
25657
25658 * frame.c (Fframe_with_environment): Remove.
25659 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25660
25661 * lisp.h (Fframe_with_environment): Don't declare.
25662
256632007-10-10 Juanma Barranquero <lekktu@gmail.com>
25664
25665 * indent.c (indent_tabs_mode, last_known_column)
25666 (last_known_column_modified): Make static.
25667 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25668
256692007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25670
25671 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25672
256732007-10-09 Jason Rumney <jasonr@gnu.org>
25674
25675 * w32term.c (x_set_window_size): Disable code that attempts to tell
25676 Lisp code about a size change before it actually happens.
25677
256782007-10-09 Richard Stallman <rms@gnu.org>
25679
25680 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25681 return HANDLED_RETURN.
25682
256832007-10-08 Martin Rudalics <rudalics@gmx.at>
25684
25685 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25686 when there's an unread command event.
25687
25688 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25689 window autoselection act appropriately when leaving selected frame.
25690 (syms_of_frame): Initialize focus_follows_mouse.
25691 * frame.h (focus_follows_mouse): Extern it.
25692 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25693 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25694 * msdos.c (dos_rawgetc): Likewise.
25695 * w32term.c (w32_read_socket): Likewise.
25696 * xterm.c (handle_one_xevent): Likewise.
25697 * xdisp.c (syms_of_xdisp): In doc-string of
25698 mouse-autoselect-window mention focus-follows-mouse.
25699
257002007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25701
25702 * macterm.c (mac_load_query_font): Fix missing return value.
25703 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25704 Add BLOCK_INPUT.
25705
257062007-10-08 Richard Stallman <rms@gnu.org>
25707
25708 * xdisp.c (get_window_cursor_type): Implement documented behavior
25709 for cursor-in-non-selected-windows = t.
25710
257112007-10-08 Jason Rumney <jasonr@gnu.org>
25712
25713 * w32.c (w32_get_resource): Always close registry keys.
25714
257152007-10-08 Jason Rumney <jasonr@gnu.org>
25716
25717 * makefile.w32-in (LIBS): Add COMCTL32.
25718
25719 * w32fns.c (globals_of_w32fns): Init common controls.
25720
257212007-10-08 Richard Stallman <rms@gnu.org>
25722
25723 * image.c (our_memory_buffer): Rename from omfib_buffer.
25724
257252007-10-08 Richard Stallman <rms@gnu.org>
25726
25727 * buffer.c (Foverlays_at): Doc fix.
25728
257292007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25730
25731 * fns.c (Fplist_put): Preserve uneven tail data.
25732
257332007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25734
25735 * termhooks.h (enum event_kind): Remove trailing comma.
25736
25737 * frame.h (enum): Remove trailing comma.
25738
257392007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25740
25741 * w32proc.c (delete_child): Don't terminate threads of zombies.
25742
257432007-10-08 Martin Rudalics <rudalics@gmx.at>
25744
25745 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25746
25747 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25748 last-repeatable-command.
25749 (init_kboard): Initialize Vlast_repeatable_command.
25750 (command_loop_1): Set it to real_this_command unless that was
25751 bound to an input event.
25752 (mark_kboards): Mark it.
25753
257542007-10-08 Richard Stallman <rms@gnu.org>
25755
25756 * eval.c (condition-case): Doc fix.
25757
257582007-10-08 Masatake YAMATO <jet@gyve.org>
25759
25760 * xfaces.c (tty_supports_face_attributes_p): Fix code
25761 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25762 was copied and not edited.
25763
257642007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25765
25766 Add new `input-decode-map' keymap and use it for terminal
25767 escape sequences.
25768 * keyboard.h (struct kboard): Add Vinput_decode_map.
25769 Remove Vlocal_key_translation_map.
25770 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25771 (init_kboard): Init input-decode-map.
25772 Replace local-key-translation-map back with key-translation-map.
25773 (syms_of_keyboard): Declare input-decode-map.
25774 Remove local-key-translation-map. Update docstrings.
25775 (mark_kboards): Mark Vinput_decode_map.
25776 Don't mark Vlocal_key_translation_map.
25777 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25778 Replace local-key-translation-map back with key-translation-map.
25779 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25780 Bind in input-decode-map rather than function-key-map.
25781
25782 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25783 This was made redundant by the previous introduction of XSETPVECTYPE.
25784
257852007-10-09 Richard Stallman <rms@gnu.org>
25786
25787 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25788
257892007-09-29 Richard Stallman <rms@gnu.org>
25790
25791 * eval.c (internal_condition_case_2, internal_condition_case_1)
25792 (internal_condition_case): Reenable abort if x_catching_errors ()
25793 to see if that really happens and why.
25794
257952007-10-06 Andreas Schwab <schwab@suse.de>
25796
25797 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25798
257992007-10-04 Juanma Barranquero <lekktu@gmail.com>
25800
25801 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25802
258032007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25804
25805 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25806
258072007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25808
25809 * window.h (struct window):
25810 * window.c (struct save_window_data, struct saved_window):
25811 * termhooks.h (struct terminal):
25812 * process.h (struct Lisp_Process):
25813 * frame.h (struct frame):
25814 * buffer.h (struct buffer):
25815 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25816 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25817 The size field of (pseudo)vectors is now unsigned.
25818 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25819
25820 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25821 Turn `count' into an integer.
25822
25823 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25824 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25825 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25826 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25827 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25828
25829 * alloc.c (allocate_pseudovector): New fun.
25830 (ALLOCATE_PSEUDOVECTOR): New macro.
25831 (allocate_window, allocate_terminal, allocate_frame)
25832 (allocate_process): Use it.
25833 (mark_vectorlike): New function.
25834 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25835 (mark_terminals): Use it.
25836 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25837 (Fmake_byte_code): Use XSETPVECTYPE.
25838
25839 * frame.c (Fframe_parameters): Minor simplification.
25840
25841 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25842
25843 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25844
25845 * buffer.c (Fget_buffer_create, init_buffer_once):
25846 * lread.c (defsubr):
25847 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25848
25849 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25850 defined differently in the m/*.h files.
25851 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25852 (XSETPVECTYPE): New macro.
25853 (XSETPSEUDOVECTOR): Use it.
25854
25855 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25856 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25857
25858 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25859 * lread.c (defvar_per_buffer):
25860 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25861
25862 * window.c (candidate_window_p): Only consider as visible frames that
25863 are on the same terminal.
25864
25865 * m/ibms390x.h (MARKBIT): Remove unused macro.
25866
258672007-10-01 Juanma Barranquero <lekktu@gmail.com>
25868
25869 * lread.c (Fload): Fix typo in docstring.
25870
258712007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25872
25873 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25874 of a non-zero value can't yield zero.
25875
258762007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25877
25878 * term.c (term_clear_mouse_face, term_mouse_highlight)
25879 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25880
25881 * print.c (safe_debug_print): Use XHASH.
25882
25883 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25884 Lisp elements such as tags.
25885 (XHASH): New macro.
25886 (EQ): Use it.
25887 (SREF, SSET, STRING_COPYIN): Use SDATA.
25888 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25889
25890 * alloc.c (mark_terminal): Remove left-over declaration.
25891 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25892 (allocate_vectorlike): Remove type argument. Adjust callers.
25893 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25894 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25895
25896 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25897 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25898 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25899 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25900 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25901 Use them.
25902
25903 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25904 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25905 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25906
259072007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25908
25909 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25910 loaded by default.
25911
259122007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25913
25914 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25915 on this tty.
25916 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25917
25918 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25919 Update all users.
25920 (handle_one_term_event): Use Gpm_DrawPointer.
25921 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25922 Signal errors instead of returning nil. Always return nil.
25923 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25924 Make it a noop if gpm-mouse was not activated.
25925 (syms_of_term): Update names.
25926
259272007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25928
25929 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25930 (init_sys_modes): Check that gpm_tty is the current tty.
25931
25932 * alloc.c (allocate_terminal): Set the vector size to only count the
25933 lisp fields. Initialize those to nil.
25934 (mark_object): Don't treat terminals specially.
25935 (mark_terminal): Remove.
25936 (mark_terminals): Use mark_object instead.
25937
25938 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25939 the GC to the beginning.
25940
25941 * indent.h:
25942 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25943
25944 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25945
259462007-09-25 Jason Rumney <jasonr@gnu.org>
25947
25948 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25949
25950 * w32console.c (create_w32cons_output): Remove.
25951
25952 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25953
25954 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25955 (reset_sys_modes): Use reset_terminal_modes_hook.
25956
259572007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25958
25959 * eval.c (do_autoload): Don't output any message.
25960
259612007-09-24 Juri Linkov <juri@jurta.org>
25962
25963 * emacs.c (standard_args): Change priority of "--no-splash"
25964 from 40 to 3. Add "--no-desktop" with the same priority.
25965
259662007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25967
25968 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25969 and optimize the case where they are all 1.
25970
259712007-09-23 Johannes Weiner <hannes@saeurebad.de>
25972
25973 * lisp.h (abs): Define if not defined.
25974 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25975 Don't define `abs', since it's defined in lisp.h.
25976
259772007-09-22 Eli Zaretskii <eliz@gnu.org>
25978
25979 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25980 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25981 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25982 (init_tty): Use DEV_TTY instead of "/dev/tty".
25983 [WINDOWSNT]: No need to protect from NAME arg being null.
25984
259852007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25986
25987 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25988 up the tty state.
25989
259902007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25991
25992 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25993 (gpm_tty): Change its type.
25994 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25995 (gpm_tty): Change its type and initialize it.
25996 (Fterm_open_connection): Check the frame is indeed a tty.
25997 Use the new gpm_tty.
25998 (Fterm_close_connection): Use the new gpm_tty.
25999 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
26000 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
26001
260022007-09-21 Juanma Barranquero <lekktu@gmail.com>
26003
26004 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
26005 underline_color, to draw strike-through.
26006
260072007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26008
26009 * lisp.h (allocate_terminal): Declare.
26010
26011 * window.c (candidate_window_p): Consider frames that are being placed
26012 by the user as somewhere between visible and iconified.
26013 (window_loop): Prefer windows on the current frame.
26014 (Fselect_window): Move the use of select-frame to the beginning so we
26015 can just delegate all the work (it'll call us back anyway).
26016
26017 * frame.c (Qdisplay_environment_variable):
26018 * frame.h (Qdisplay_environment_variable): Delete.
26019
26020 * .gdbinit (xbacktrace): Print the arg's address rather than the value
26021 of the first arg, since that value may be a union.
26022
26023 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
26024 parameter rather than Qdisplay_environment_variable. If all else
26025 fails, look for DISPLAY in initial-environment.
26026
260272007-09-21 Glenn Morris <rgm@gnu.org>
26028
26029 * Makefile.in (emacstool): Remove target.
26030 (lisp, shortlisp): Remove termdev.elc.
26031
260322007-09-21 Markus Triska <markus.triska@gmx.at>
26033
26034 * xterm.c (x_delete_display): Compile session management conditionally.
26035
260362007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
26037
26038 * callproc.c (getenv_internal_1): New function.
26039 (getenv_internal): Use it.
26040 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
26041
26042 * terminal.c (get_terminal): Don't accept ints to represent terminals.
26043 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
26044 (Fset_terminal_parameter): Work with dead terminals as well.
26045 (Fmodify_terminal_parameters): Remove.
26046
26047 * terminal.c (get_terminal): Handle terminals.
26048 Make sure the terminal returned is live.
26049 (create_terminal): Use allocate_terminal.
26050 (mark_terminals): Move to alloc.c.
26051 (delete_terminal): Use terminal->name as liveness status.
26052 NULL out fields after freeing their contents.
26053 Don't deallocate the object.
26054 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
26055 rather than an int.
26056 (Fterminal_live_p): Accept non-integer arguments.
26057 (Fterminal_list): Return terminal objects rather than an ints.
26058
26059 * alloc.c (enum mem_type): New member for `terminal' objects.
26060 (allocate_terminal): New function.
26061 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
26062 Handle terminals.
26063 (mark_terminal): New fun.
26064 (mark_terminals): Move from terminal.c.
26065
26066 * term.c (get_tty_terminal): Don't treat output_initial specially.
26067 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
26068 (delete_tty): Use terminal->name as liveness status.
26069
26070 * termhooks.h (struct terminal): Make it into a pseudovector.
26071 Remove `deleted' replaced by checking `name's nullness.
26072
26073 * print.c (print_object): Handle terminals.
26074
26075 * lisp.h (enum pvec_type): New `terminal' pseudovector.
26076 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
26077
26078 * frame.c (make_terminal_frame):
26079 * keyboard.c (tty_read_avail_input):
26080 * w32term.c (x_delete_terminal):
26081 * xfns.c (Fx_create_frame, x_create_tip_frame):
26082 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
26083
260842007-09-20 Glenn Morris <rgm@gnu.org>
26085
26086 * process.c (Fmake_network_process): Doc fix.
26087
260882007-09-19 Jason Rumney <jasonr@gnu.org>
26089
26090 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
26091
260922007-09-19 Michaël Cadilhac <michael@cadilhac.name>
26093
26094 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
26095 Fix a C warning regarding variable constness.
26096
26097 * xterm.c (handle_one_xevent): Fix a C warning.
26098
260992007-09-18 Jason Rumney <jasonr@gnu.org>
26100
26101 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
26102
261032007-09-17 Jan Djärv <jan.h.d@swipnet.se>
26104
26105 * gtkutil.c (gdpy_def): New variable.
26106 (xg_initialize): Initialize gdpy_def.
26107 (xg_display_close): If no other display exists, set gdpy_def to a
26108 new connection.
26109
261102007-09-16 Jan Djärv <jan.h.d@swipnet.se>
26111
26112 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
26113 when we have no file name for the icon.
26114 (xg_tool_bar_expose_callback): Remove.
26115 (xg_create_tool_bar): Don't connect expose signal to
26116 xg_tool_bar_expose_callback.
26117 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
26118
261192007-09-16 Andreas Schwab <schwab@suse.de>
26120
26121 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
26122 values instead of zapping them.
26123
261242007-09-14 Glenn Morris <rgm@gnu.org>
26125
26126 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
26127 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
26128 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
26129 scope and rename to omfib_buffer for clarity.
26130 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
26131
261322007-09-14 Kenichi Handa <handa@m17n.org>
26133
26134 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
26135
261362007-09-13 Jason Rumney <jasonr@gnu.org>
26137
26138 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
26139
26140 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
26141
26142 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
26143 (mac_term_init): Call here instead, passing rif.
26144
261452007-09-13 Glenn Morris <rgm@gnu.org>
26146
26147 * s/hpux.h: No longer define `static' as nothing.
26148
261492007-09-13 Johan Bockgård <bojohan@gnu.org>
26150
26151 * callint.c (Fcall_interactively): Remove unused var `fun'.
26152
261532007-09-12 Romain Francoise <romain@orebokech.com>
26154
26155 * window.c (prefer_window_split_horizontally, display_buffer):
26156 Revert 2007-09-08 change.
26157
261582007-09-12 Glenn Morris <rgm@gnu.org>
26159
26160 * alloca.c: Remove file.
26161 * Makefile.in (alloca): Do not undef.
26162 (allocaobj, alloca.o): Remove.
26163 (otherobj): Remove allocaobj.
26164 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
26165 * regex.c (C_ALLOCA): Remove all references and code that was only
26166 used when this was defined.
26167 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
26168 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
26169 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
26170
26171 * Makefile.in (SOURCES, unlock, relock): Delete.
26172
26173 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
26174 (menu_grab_callback): All uses changed.
26175
26176 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
26177 (x_reply_selection_request): All uses changed.
26178
261792007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
26180
26181 * lread.c (load_warn_old_style_backquotes): Change message to look
26182 better when it appears in the middle of byte-compiler messages.
26183
261842007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
26185
26186 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
26187
26188 * xterm.c (x_create_terminal): Add comment.
26189
26190 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26191
261922007-09-10 Richard Stallman <rms@gnu.org>
26193
26194 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26195
261962007-09-10 Michaël Cadilhac <michael@cadilhac.name>
26197
26198 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26199 (DEFUN): Document `intspec', use it instead of `prompt'.
26200
26201 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26202
26203 * data.c (Finteractive_form): If the interactive specification starts
26204 with a `(', use it as a Lisp form.
26205
26206 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26207 name and file modes.
26208
26209 * callint.c (Fcall_interactively): Comment fixes.
26210
262112007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
26212
26213 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26214 and compiled functions.
26215
262162007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
26217
26218 * window.c (prefer_window_split_horizontally): New variable.
26219 (display_buffer): Consider splitting window horizontally depending
26220 on prefer_window_split_horizontally.
26221
262222007-09-08 Eli Zaretskii <eliz@gnu.org>
26223
26224 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26225
262262007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26227
26228 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26229
26230 * frame.c (x_set_frame_parameters): Check number is positive before
26231 using XFASTINT.
26232
26233 * window.c (freeze_window_start): Don't presume selected_window holds
26234 a window object.
26235 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26236
262372007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26238
26239 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26240
262412007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26242
26243 * window.c (Vsplit_window_preferred_function): New var.
26244 (Fdisplay_buffer): Use it.
26245 (syms_of_window): Export, and initialize it.
26246
262472007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26248
26249 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26250
262512007-09-06 Glenn Morris <rgm@gnu.org>
26252
26253 * gtkutil.c (menu_grab_callback) <cnt>:
26254 * xselect.c (x_reply_selection_request) <cnt>: Move static
26255 variable to file scope.
26256
262572007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26258
26259 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26260 consistent values of selected_frame and selected_window.
26261
262622007-09-04 Jason Rumney <jasonr@gnu.org>
26263
26264 * w32console.c (initialize_w32_display): Zero unused hooks.
26265
262662007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26267
26268 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26269 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26270
262712007-09-04 Jason Rumney <jasonr@gnu.org>
26272
26273 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26274 in w32console.c. Set up input. Remove XXX comments that have been
26275 confirmed as correct.
26276
26277 * s/ms-w32.h (MULTI_KBOARD): Define.
26278
26279 * w32console.c (one_and_only_w32cons): Remove.
26280 (initialize_w32_display): Take terminal argument.
26281
26282 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26283 initialize_w32_display.
26284 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26285
26286 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26287
26288 * keyboard.c (discard_mouse_events): Discard it.
26289 (make_lispy_event): Translate it to a lisp event.
26290 (lispy_wheel_names): Add wheel-left and right events.
26291 (syms_of_keyboard): Enlarge wheel_syms.
26292
26293 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26294 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26295
26296 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26297
26298 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26299 from WM_MOUSEHWHEEL.
26300 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26301
26302 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26303 terminal.
26304
26305 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26306 keyboard for the terminal.
26307
263082007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26309
26310 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26311 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26312 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26313 and resume-tty-function to resume-tty-hook.
26314 (Fsuspend_tty, Fresume_tty): Use new names.
26315
263162007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26317
26318 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26319 if it starts with "n:".
26320
263212007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26322
26323 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26324
263252007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26326
26327 * frame.h:
26328 * frame.c (Qterm_environment_variable): Remove.
26329 (syms_of_frame): Don't init and staticpro it.
26330
26331 * callproc.c (getenv_internal): Remove special case for $TERM.
26332
26333 * callproc.c (Vinitial_environment): New variable.
26334 (set_initial_environment): Initialize it.
26335 (syms_of_callproc): Declare it.
26336 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26337 TERM under which a process runs is never related to the TERM in which
26338 Emacs is running.
26339
263402007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26341
26342 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26343 * s/darwin.h: ... do it here.
26344
263452007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26346
26347 * lisp.h (set_initial_environment): Rename from set_global_environment.
26348
26349 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26350 removed by mistake on the multi-tty branch.
26351
26352 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26353 (Fmodify_frame_parameters): Return a value.
26354
26355 * image.c (png_load): Comment-out var only used in commented-out code.
26356
26357 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26358 before passing it to mark_object.
26359
26360 * xfaces.c (internal_resolve_face_name): Return a value.
26361 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26362
26363 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26364 (x_icon): Comment-out var only used in commented-out code.
26365
263662007-08-29 Romain Francoise <romain@orebokech.com>
26367
26368 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26369 QUIT hasn't been provided.
26370
263712007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26372
26373 * callproc.c (child_setup, getenv_internal): Use the
26374 display-environment-variable and term-environment-variable frame params.
26375 (set_initial_environment): Initialise Vprocess_environment.
26376
26377 * config.in: Disable multi-keyboard support on a mac.
26378
26379 * frame.c (Qterm_environment_variable)
26380 (Qdisplay_environment_variable): New variables.
26381 (syms_of_frame): Intern and staticpro them.
26382 (Fmake_terminal_frame): Disable output method test.
26383
26384 * frame.h: Declare them here.
26385
26386 * macfns.c (x_set_mouse_color): Get rif from the frame.
26387 (x_set_tool_bar_lines): Don't use updating_frame.
26388 (mac_window): Add 2 new parameters for consistency with other systems.
26389 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26390 frame parameters following what is done in X11 and w32. Don't use
26391 FRAME_MAC_DISPLAY_INFO.
26392 (Fx_open_connection, start_hourglass): Remove window-system check.
26393 (x_create_tip_frame): Get the keyboard from the terminal.
26394
26395 * macmenu.c: Reorder includes.
26396 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26397
26398 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26399 terminal parameter.
26400 (x_clear_frame): Add a frame parameter.
26401 (note_mouse_movement): Get rif from the frame.
26402 (mac_term_init): Initialize the terminal.
26403 (mac_initialize): Make static and move terminal initialization ...
26404 (mac_create_terminal): ... to this new function.
26405
26406 * macterm.h (struct mac_display_info): Add terminal.
26407 (mac_initialize): Delete declaration.
26408
26409 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26410
26411 * sysdep.c: Comment out text after #endif.
26412
26413 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26414 is defined. Better initialize ttys in windows. Use terminal
26415 specific mouse_position_hook.
26416
26417 * termhooks.h (union display_info): Add mac_display_info.
26418
26419 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26420 Set the default minibuffer frame, window_system and the rest of the
26421 frame parameters following what is done in X11.
26422
26423 * w32term.c (w32_initialize): Make static.
26424
26425 * xselect.c (x_handle_selection_clear): Only access
26426 terminal->kboard when MULTI_KBOARD is defined.
26427
26428 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26429 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26430
264312007-08-29 Jason Rumney <jasonr@gnu.org>
26432
26433 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26434 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26435
26436 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26437 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26438
26439 * keyboard.c (restore_kboard_configuration): Only define when
26440 MULTI_KBOARD defined.
26441
26442 * makefile.w32-in: Update dependancies from Makefile.in.
26443 (OBJ1): Add terminal.$(O)
26444
26445 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26446 Don't define function body.
26447 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26448
26449 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26450
26451 * w32.c (request_sigio, unrequest_sigio): Remove.
26452
26453 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26454 (w32con_clear_frame, w32con_clear_end_of_line)
26455 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26456 (w32con_delete_glyphs, w32con_set_terminal_window)
26457 (scroll_line, w32_sys_ring_bell): Add frame arg.
26458 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26459 Add terminal arg.
26460 (PICK_FRAME): Remove.
26461 (w32con_write_glyphs): Use frame specific terminal coding.
26462 (one_and_only_w32cons): New global variable.
26463 (initialize_w32_display): Use it for storing hooks.
26464 (create_w32cons_output): New function.
26465
26466 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26467 arg a frame.
26468
26469 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26470 Set window_system.
26471 (x_set_tool_bar_lines): Don't use updating_frame.
26472 (Fx_create_frame): Set terminal and ref count.
26473 (Fx_open_connection): Remove window-system check.
26474
26475 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26476
26477 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26478 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26479 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26480 Add frame arg.
26481 (x_delete_terminal, w32_create_terminal): New functions.
26482 (w32_term_init): Create a terminal.
26483 (w32_initialize): Move terminal specific initialization to
26484 w32_create_terminal.
26485
26486 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26487 (w32_clear_rect, w32_clear_area): Use background from frame.
26488 (w32_display_info): Add terminal.
26489 (w32_sys_ring_bell, x_delete_display): Declare here.
26490
26491 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26492
26493 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26494
264952007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26496
26497 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26498 Fix get_named_tty calls for the controlling tty.
26499
265002007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26501
194d44e7 26502 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
26503
265042007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26505
26506 * term.c (tty_insert_glyphs): Add missing first parameter.
26507
265082007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26509
26510 * buffer.c (Fbuffer_list, Fbury_buffer):
26511 Take frame->buried_buffer_list into account.
26512
26513 * cm.c (current_tty): New variable, for cmputc().
26514 (cmputc): Use it.
26515 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26516 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26517 (cmgoto): Add tty parameter. Pass it on to calccost().
26518 Use emacs_tputs() instead of tputs().
26519
26520 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26521 tputs().
26522 (current_tty): New variable, for cmputc().
26523 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26524
26525 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26526 (internal_condition_case, internal_condition_case_1)
26527 (internal_condition_case_2): Don't abort when x_catching_errors.
26528
26529 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26530 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26531 prevent crashes caused by bogus longjmps in read_char.
26532
26533 * keymap.h (Fset_keymap_parent): Add EXFUN.
26534
26535 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26536 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26537 Remove redundant definition.
26538
26539 * macfns.c (x_set_mouse_color, x_make_gc):
26540 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26541
26542 * w32term.c (x_free_frame_resources):
26543 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26544 (w32_initialize): Use the accessor macros for terminal characteristics.
26545
26546 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26547 Use the accessor macros for terminal characteristics.
26548 * msdos.c (internal_terminal_init): Use the accessor macros for
26549 terminal characteristics.
26550 (ScreenVisualBell, internal_terminal_init):
26551 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26552
26553 * termopts.h (no_redraw_on_reenter): Declare.
26554
26555 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26556 (mark_terminals, mark_ttys): Declare.
26557 (Fgarbage_collect): Call them.
26558 (mark_object): Mark buried_buffer_list.
26559
26560 * prefix-args.c: Include stdlib.h for exit.
26561
26562 * syssignal.h: Add comment.
26563
26564 * indent.c: Include stdio.h.
26565
26566 * window.h (Vinitial_window_system): Declare.
26567 (Vwindow_system): Delete declaration.
26568
26569 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26570
26571 * image.c (lookup_image): Don't initialize `c' until the xasserts
26572 have been run.
26573
26574 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26575 FRAME_FOREGROUND_PIXEL.
26576
26577 * print.c (print_preprocess): Don't lose print_depth levels while
26578 iterating.
26579
26580 * widget.c (update_from_various_frame_slots):
26581 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26582
26583 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26584 frames.
26585 (window_internal_height): Remove bogus make_number call.
26586 (init_window_once): Call make_terminal_frame with two zero parameters.
26587
26588 * fileio.c (Fread_file_name): Update comment.
26589
26590 * callint.c (Fcall_interactively):
26591 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26592 Make sure it is correctly unwound.
26593
26594 * xsmfns.c (x_session_close): New function.
26595
26596 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26597 Delete declarations.
26598
26599 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26600 (x_output): Remove background_pixel and foreground_pixel fields.
26601 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26602 (x_delete_device, x_session_close): Declare.
26603
26604 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26605 (read_filtered_event): Call `read_char' with a local
26606 `wrong_kboard_jmpbuf'.
26607
26608 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26609 Don't call single_kboard_state. Use FRAME_RIF.
26610
26611 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26612 systems.
26613
26614 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26615 (Fframe_with_environment, Fset_input_meta_mode)
26616 (Fset_quit_char): EXFUN.
26617 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26618 (init_sys_modes, reset_sys_modes): Update prototypes.
26619 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26620
26621 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26622 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26623 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26624 Delete declarations.
26625 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26626 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26627 New declarations.
26628
26629 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26630 already does that during init_display(). Call syms_of_keymap
26631 before syms_of_keyboard. Call `syms_of_terminal'.
26632 Call set_initial_environment, not set_process_environment.
26633 (shut_down_emacs): Call reset_all_sys_modes() instead of
26634 reset_sys_modes().
26635
26636 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26637 (internal_resolve_face_name, resolve_face_name_error): New functions.
26638 (resolve_face_name): Protect against loops and errors thrown by Fget.
26639 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26640 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26641
26642 * scroll.c: Replace CURTTY() with local variables throughout the
26643 file (where applicable).
26644 (calculate_scrolling, calculate_direct_scrolling)
26645 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26646 characteristics.
26647
26648 * keymap.c (Vfunction_key_map): Remove.
26649 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26650 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26651 (Vkey_translation_map): Remove.
26652 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26653 (Fdescribe_buffer_bindings)
26654 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26655 Update for terminal-local key-translation-map.
26656
26657 * Makefile.in (callproc.o): Update dependencies.
26658 (lisp, shortlisp): Add termdev.elc.
26659 (obj): Add terminal.o.
26660 (terminal.o): Add dependencies.
26661 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26662 (data.o, fns.o): Add termhooks.h dependency.
26663 (SOME_MACHINE_LISP): Add dnd.elc.
26664 (minibuf.o): Fix typo.
26665 Update dependencies.
26666
26667 * data.c (do_symval_forwarding, store_symval_forwarding)
26668 (find_symbol_value): Use the selected frame's keyboard, not
26669 current_kboard.
26670
26671 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26672 Vwindow_system.
26673
26674 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26675 Fmenu_bar_open.
26676 (syms_of_xmenu): Update defsubr.
26677 (mouse_position_for_popup, Fx_popup_menu)
26678 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26679 (set_frame_menubar, free_frame_menubar)
b97439ce 26680 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
26681 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26682 an X frame.
26683
26684 * xselect.c (x_own_selection): Abort if not an X frame.
26685 (some_frame_on_display): Check if it is an X frame.
26686 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26687
26688 * coding.c: Include frame.h and termhooks.h.
26689 (terminal_coding, keyboard_coding): Delete.
26690 (Fset_terminal_coding_system_internal)
26691 (Fset_keyboard_coding_system_internal)
26692 (Fkeyboard_coding_system)
26693 (Fterminal_coding_system): Add a terminal parameter.
26694 Get terminal_coding from the terminal.
26695 (init_coding_once): Don't call setup_coding_system here.
26696
26697 * dispextern.h (set_scroll_region, turn_off_insert)
26698 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26699 (tty_clear_end_of_line, tty_setup_colors)
26700 (delete_tty, updating_frame)
26701 (produce_special_glyphs, produce_glyphs, write_glyphs)
26702 (insert_glyphs): Remove.
26703 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26704 (tty_turn_off_highlight, get_tty_size): Add declaration.
26705 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26706
26707 * frame.h (enum output_method): Add output_initial.
26708 (struct x_output): Delete.
26709 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26710 Access foreground_pixel and background_pixel directly from the frame.
26711 (tty_display): Delete.
26712 (struct frame): Add buried_buffer_list, foreground_pixel,
26713 background_pixel and terminal. Delete kboard.
26714 (union output_data): Add tty.
26715 (FRAME_KBOARD): Get the kboard from the terminal.
26716 (FRAME_INITIAL_P): New macro.
26717 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26718 (Qterm_environment_variable, Qdisplay_environment_variable)
26719 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26720 New declarations.
26721
26722 * termchar.h (tty_output, tty_display_info): New structures.
26723 (tty_list): Declare.
26724 (FRAME_TTY, CURTTY): New macros.
26725 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26726 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26727 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26728 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26729
26730 * callproc.c: Include frame.h and termhooks.h, for terminal
26731 parameters.
26732 (add_env): New function.
26733 (child_setup): Use it.
26734 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26735 (getenv_internal): Fix get_terminal_param call.
26736 (Fgetenv_internal, egetenv): Update doc.
26737 (syms_of_callproc): Initialize Vprocess_environment to nil.
26738 Register and initialize them. Remove obsolete defvars. Update doc
26739 strings.
26740 (child_setup): Handle Vlocal_environment_variables.
26741 (getenv_internal): Add terminal parameter.
26742 Handle Vlocal_environment_variables.
26743 (Fgetenv_internal): Add terminal parameter.
26744 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26745 environment in a frame (not terminal) parameter. Update doc strings.
26746 (set_initial_environment): Rename from set_global_environment.
26747 Store Emacs environment in initial frame parameter.
26748
26749 * xdisp.c (redisplay_internal): Update references to
26750 `previous_terminal_frame'.
26751 (display_mode_line, Fformat_mode_line): Replace calls to
26752 `push_frame_kboard' with `push_kboard'.
26753 (get_glyph_string_clip_rects): Add extra parentheses and
26754 braces to prevent compiler warnings.
26755 (calc_pixel_width_or_height): Add xassert to check that the
26756 frame is alive. Don't call `lookup_image' on a termcap frame.
26757 (message2_nolog, message3_nolog, redisplay_internal)
26758 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26759 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26760 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26761 (Fx_display_pixel_width, Fx_display_pixel_height)
26762 (Fx_display_planes, Fx_display_color_cells)
26763 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26764 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26765 (Fx_display_backing_store, Fx_display_visual_class)
26766 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26767 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26768
26769 * xfns.c (x_set_foreground_color x_set_background_color)
26770 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26771 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26772 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26773 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26774 terminal that is being deleted.
26775 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26776 frame parameter, and make sure it overrides any user-supplied setting.
26777 (Fx_close_connection, Fx_synchronize): Unify argument names with
26778 the rest of the DEFUNs.
26779
26780 * dispnew.c (Fsend_string_to_terminal): Update call to
26781 `get_tty_terminal'.
26782 (Fredraw_frame, Fsend_string_to_terminal)
26783 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26784 FRAME_TERMCAP_P and FRAME_TTY.
26785 (window_change_signal): Don't believe width/height values that are
26786 impossibly small.
26787 (Vinitial_window_system): Rename from Vwindow_system.
26788 (termscript, Wcm, rif): Delete.
26789
26790 * termhooks.h (struct terminal): New struct containing the
26791 previously global text display hooks and new members NAME,
26792 DELETED and PARAM_ALIST.
26793 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26794 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26795 (FRAME_RIF): New macros.
26796 (get_terminal_param, get_device): New declarations.
26797 (termscript): Delete declaration.
26798
26799 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26800 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26801 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26802 FRAME_FOREGROUND_PIXEL.
26803 (x_fully_uncatch_errors): Disable definition.
26804 (x_scroll_bar_expose): Fix reference to foreground pixel.
26805 (XTread_socket): Disable loop on all X displays.
26806 (x_delete_terminal): Don't set terminal->deleted and let
26807 delete_terminal delete the frames on the terminal.
26808 (x_delete_display): Doc update to reflect changes in
26809 delete_terminal.
26810 (x_display_info) <terminal>: Move member earlier in the struct.
26811 (deleting_tty): Remove old variable.
26812 (Fsuspend_tty): Call clear_tty_hooks.
26813 (Fresume_tty, init_tty): Call set_tty_hooks.
26814 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26815 errors on X frames.
26816 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26817 (handle_one_xevent): Initialize `f' to NULL.
26818 (x_delete_terminal, x_create_terminal): New functions.
26819 (XTset_terminal_modes, XTreset_terminal_modes)
26820 (XTread_socket, x_connection_closed, x_term_init)
26821 (x_term_init, x_delete_display): Add terminal parameter.
26822 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26823 X connections.
26824
26825 * frame.c: Include termchar.h.
26826 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26827 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26828 (Qdisplay_environment_variable): New vars.
26829 (Fframep): Deal with output_initial.
26830 (Fframe-live-p): Doc fix.
26831 (Fwindow-system): New function.
26832 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26833 (make_terminal_frame): Don't create frames on a terminal that is
26834 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26835 (store_frame_param): Check for found_for_frame before calling XFRAME.
26836 (Fmake_terminal_frame): Handle NULL tty names correctly.
26837 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26838 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26839 frames to refer to a deleted frame in their 'environment parameter.
26840 (Fframe_with_environment): New function.
26841 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26842 (get_future_frame_param): New function.
26843 (Fmake_terminal_frame): Use it.
26844 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26845
26846 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26847 * sysdep.c (reset_sys_modes): Update for renames.
26848
26849 * keyboard.c (tty_read_avail_input): New function.
26850 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26851 (syms_of_keyboard): Defsubr them.
26852 (Fset_input_meta_mode, Fset_quit_char): New functions.
26853 (Fset_input_mode): Split to above functions.
26854 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26855 parameter. Use it in call to `read_char'.
26856 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26857 Set wrong_kboard_jmpbuf correctly in recursive calls.
26858 Use current_kboard to access Vkeyboard_translate_table.
26859 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26860 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26861 Update longjmp invocations. Remember the original current_kboard,
26862 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26863 changes it. Comment out unnecessary calls to
26864 `record_single_kboard_state' and `any_kboard_state'.
26865 Update recursive calls.
26866 (wrong_kboard_jmpbuf): Remove global variable.
26867 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26868 Handle deleted interrupted_kboards correctly; that is a legal
26869 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26870 and read_char calls. Abort if interrupted_kboard died in read_char.
26871 (any_kboard_state, single_kboard_state)
26872 (push_frame_kboard): Remove function.
26873 (pop_kboard): Switch out of single_kboard mode if the kboard has
26874 been deleted. Remove unused variable. Help debugging by not
26875 changing current_kboard unnecessarily. Set current_kboard to the
26876 kboard of the selected frame when the stored kboard object has
26877 been deleted before pop_kboard.
26878 (temporarily_switch_to_single_kboard): Change first parameter to a
26879 frame pointer. Throw an error when caller wants to change kboards
26880 while in single_kboard mode. Don't push_kboard if we weren't in
26881 single kboard state. Don't pop_kboard if we popped into any
26882 kboard state.
26883 (restore_kboard_configuration): Abort if pop_kboard changed the
26884 kboard in single_kboard mode. Call pop_kboard only after setting
26885 up single_kboard mode.
26886 (Frecursive_edit): Switch to single_kboard mode only in nested
26887 command loops.
26888 (cmd_error, command_loop, command_loop_1, timer_check):
26889 Comment out unnecessary call to `any_kboard_state' and
26890 `record_single_kboard_state'.
26891 (delete_kboard): Exit single_kboard mode if we have just deleted
26892 that kboard. Use FRAME_KBOARD.
26893 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26894 `fatal_error_signal'.
26895 (record_single_kboard_state): Don't push_kboard if we weren't in
26896 single kboard state. Don't pop_kboard if we popped into any
26897 kboard state.
26898 (push_frame_kboard): Rename to push_kboard.
26899 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26900 (read_avail_input): Read input from all terminals.
26901 (mark_kboards): Also mark Vkeyboard_translate_table.
26902 (kbd_buffer_store_event_hold): Simplify condition.
26903 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26904 (Vkeyboard_translate_table): Move to struct kboard.
26905 (init_kboard): Initialize Vkeyboard_translate_table.
26906 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26907 Vkeyboard_translate_table. Update doc strings. Update docs of
26908 local-function-key-map and function-key-map.
26909
26910 * terminal.c: New file.
26911
26912 * term.c: Include errno.h.
26913 (Vring_bell_function, device_list, initial_device)
26914 (next_device_id, ring_bell, update_begin, update_end)
26915 (set_terminal_window, cursor_to, raw_cursor_to)
26916 (clear_to_end, clear_frame, clear_end_of_line)
26917 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26918 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26919 (syms_of_term): Move their initialization to terminal.c.
26920 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26921 (Ftty_display_color_cells)
26922 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26923 (clear_tty_hooks, set_tty_hooks)
26924 (init_tty, maybe_fatal): New functions.
26925 (Ftty_type): Return nil if terminal is not on a tty instead of
26926 throwing an error. Doc update.
26927 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26928 Doc update. Initialize new subrs and variables.
26929 (delete_tty): Use terminal->deleted.
26930 (tty_set_terminal_modes): Rename from set_terminal_modes.
26931 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26932 (set_scroll_region): Rename to `tty_set_scroll_region'.
26933 (turn_on_insert): Rename to `tty_turn_on_insert'.
26934 (turn_off_insert): Rename to `tty_turn_off_insert'.
26935 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26936 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26937 (toggle_highligh): Rename to `tty_toggle_highlight'.
26938 (background_highlight): Rename to `tty_background_highlight'.
26939 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26940 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26941 (tty_set_scroll_region, tty_background_highlight)
26942 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26943 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26944 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26945 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26946 Add static modifier.
26947 (tty_reset_terminal_modes, tty_set_terminal_window)
26948 (tty_set_scroll_region, tty_background_highlight)
26949 (tty_highlight_if_desired, tty_cursor_to)
26950 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26951 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26952 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26953 renames.
26954
269552007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26956
26957 * keyboard.c: Qrtl is new.
26958 (parse_tool_bar_item): Handle :rtl keyword.
26959 (syms_of_keyboard): Intern :rtl keyword.
26960
26961 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26962
26963 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26964 so no Lisp code is executed.
26965 (file_for_image, find_rtl_image): New functions.
26966 (xg_get_image_for_pixmap): Use file_for_image.
26967 (update_frame_tool_bar): If direction is RTL, use RTL image if
26968 defined. Use Gtk stock images if defined.
26969
269702007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26971
26972 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26973 for nonexistent or zero-width glyph in composition glyph.
26974
269752007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26976
26977 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26978
26979 * xdisp.c (Finvisible_p): New function.
26980 (syms_of_xdisp): defsubr it.
26981
269822007-08-24 Juanma Barranquero <lekktu@gmail.com>
26983
26984 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26985 Doc fixes.
26986
269872007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26988
26989 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26990
269912007-08-24 Martin Rudalics <rudalics@gmx.at>
26992
26993 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26994 whether decoding has modified buffer contents.
26995
269962007-08-24 Jason Rumney <jasonr@gnu.org>
26997
26998 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26999 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
27000 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
27001 (init_svg_functions) [HAVE_NTGUI]: New function.
27002 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
27003 (svg_load_image): Use them.
27004 (svg_load_image) [HAVE_NTGUI]: Implement background.
27005
270062007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27007
27008 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
27009 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
27010 (LIBX): Remove @RSVG_LIBS@.
27011 (LIBES): Add $(RSVG_LIBS).
27012
27013 * image.c (svg_load_image): Blend with specified background if exists.
27014 Use IMAGE_BACKGROUND. Add Mac OS Support.
27015
27016 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
27017 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
27018 Remove macros.
27019 [MAC_OSX] (socket_callback): Do nothing.
27020 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
27021 ReceiveNextEvent.
27022 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
27023 socket_callback.
27024 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
27025
270262007-08-22 Glenn Morris <rgm@gnu.org>
27027
27028 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
27029
270302007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
27031
27032 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
27033
27034 * image.c: Add support for SVG images. Some additional comments
27035 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
27036 (svg_image_p): New function to test for SVG image.
27037 (svg_load): New function to load SVG image.
27038 (svg_load_image): New function, helper for svg_load.
27039 (Qsvg): New Lisp_object.
27040 (svg_keyword_index): New enum.
27041 (svg_format): New static `image_keyword' struct.
27042 (svg_type): New static `image_type' struct.
27043 (librsvg/rsvg.h): Include it.
27044
270452007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
27046
27047 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
27048
270492007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
27050
27051 * lread.c (Qold_style_backquotes): New var.
27052 (syms_of_lread): Init and staticpro it.
27053 (load_warn_old_style_backquotes): New fun.
27054 (Fload): Use them to warn about old style backquotes.
27055 (end_of_file_error, Fload): Remove unused vars.
27056
27057 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
27058
27059 * lread.c (Vold_style_backquotes): New var.
27060 (syms_of_lread): Init and export it to Elisp.
27061 (read1): Set it when we find an old-style (back)quote.
27062
270632007-08-22 Jason Rumney <jasonr@gnu.org>
27064
27065 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
27066
270672007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
27068
27069 * puresize.h (BASE_PURESIZE): Increase to 1140000.
27070
270712007-08-19 Richard Stallman <rms@gnu.org>
27072
27073 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
27074
270752007-08-19 Andreas Schwab <schwab@suse.de>
27076
27077 * alloc.c (pure): Round PURESIZE up.
27078
270792007-08-17 Jan Djärv <jan.h.d@swipnet.se>
27080
27081 * xterm.c (handle_one_xevent): Remove check that mouse click is in
27082 active frame.
27083
270842007-08-16 Richard Stallman <rms@gnu.org>
27085
27086 * eval.c (Fcommandp): Add parens to clarify.
27087
27088 * minibuf.c (Fall_completions): Use enum for type of table.
27089
27090 * emacs.c (USAGE2): Improve text.
27091
270922007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
27093
27094 * term.c (tty_default_color_capabilities): Declare static
27095 variables in file scope, to avoid HPUX compiler problem.
27096
270972007-08-13 Jan Djärv <jan.h.d@swipnet.se>
27098
27099 * gtkutil.c (update_frame_tool_bar): Use -1 as index
27100 to gtk_toolbar_insert.
27101
271022007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
27103
27104 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
27105
27106 * insdel.c (reset_var_on_error): New fun.
27107 (signal_before_change, signal_after_change):
27108 Use it to reset (after|before)-change-functions to nil in case of error.
27109 Bind inhibit-modification-hooks to t.
27110 Don't bind (after|before)-change-functions to nil while they run.
27111
271122007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27113
27114 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
27115 filling pixmap with stippled background.
27116
271172007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27118
27119 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
27120 Don't use invisible frame as parent window for repositioning.
27121
271222007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
27123
27124 * print.c (new_backquote_output): Rename from old_backquote_output.
27125 (print): Inverse its logic (according to its name) so as to match the
27126 behavior of new_backquote_flag in lread.c.
27127
271282007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27129
27130 * gmalloc.c (posix_memalign): New function.
27131
27132 * macterm.c (frame_highlight, frame_unhighlight): Don't call
27133 ActivateControl/DeactivateControl here.
27134 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
27135 frame-notice-user-settings is non-nil.
27136 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
27137 for kEventParamFMFontStyle.
27138 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
27139 mac_pass_command_to_system and mac_pass_control_to_system here.
27140 (XTread_socket): Call ActivateControl/DeactivateControl here.
27141 (XTread_socket) [TARGET_API_MAC_CARBON]:
27142 Check mac_pass_command_to_system and mac_pass_control_to_system here.
27143 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
27144 for window repositioning.
27145
271462007-08-08 Glenn Morris <rgm@gnu.org>
27147
27148 * Replace `iff' in doc-strings and comments.
27149
271502007-08-07 Chong Yidong <cyd@stupidchicken.com>
27151
27152 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
27153
271542007-08-07 Martin Rudalics <rudalics@gmx.at>
27155
27156 * fileio.c (Finsert_file_contents): Run format-decode and
27157 after_insert_file_functions on entire buffer when REPLACE is
27158 non-nil and inhibit modification_hooks and point_motion_hooks.
27159 For consistency, run after_insert_file_functions iff something
27160 got inserted. Move signal_after_change and update_compositions
27161 after code running after_insert_file_functions. Make sure that
27162 undo_list doesn't record intermediate steps of the decoding process.
27163
271642007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27165
27166 * emacs.c (main)
27167 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
27168 Call malloc_enable_thread on interactive startup.
27169
27170 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
27171 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
27172 [USE_PTHREAD]: Conditionalize with it.
27173 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
27174 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
27175 New functions.
27176
271772007-08-06 Chong Yidong <cyd@stupidchicken.com>
27178
27179 * xdisp.c (redisplay_window): When restoring original buffer
27180 position, make sure it is still valid.
27181
27182 * image.c (png_load): Ignore png-supplied background color.
27183
271842007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27185
27186 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
27187 Use kCFAbsoluteTimeIntervalSince1970.
27188
27189 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27190 New variable.
27191 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27192 event loop should be quit.
27193 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27194 Quit dialog event loop if quit_dialog_event_loop is set.
27195
27196 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27197 (Selection): New typedef. Use instead of ScrapRef.
27198 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27199 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27200 (mac_clear_selection): Rename from clear_scrap.
27201 (get_flavor_type_from_symbol): New argument SEL and subsume function of
27202 scrap_has_target_type. All uses changed.
27203 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27204 (mac_selection_has_target_p): New functions.
27205 (mac_put_selection_value): Rename from put_scrap_string.
27206 (mac_get_selection_value): Rename from get_scrap_string.
27207 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27208 (put_scrap_private_timestamp, scrap_has_target_type)
27209 (get_scrap_private_timestamp): Remove functions.
27210 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27211 (x_own_selection, x_get_local_selection):
27212 Use mac_valid_selection_value_p.
27213 (x_own_selection): Don't use put_scrap_private_timestamp.
27214 Record OWNERSHIP-INFO into Vselection_alist instead.
27215 (x_get_local_selection): Don't check type if request is local.
27216 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27217 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27218
272192007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27220
27221 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27222 add comment explaining why.
27223
272242007-08-03 Richard Stallman <rms@gnu.org>
27225
27226 * fileio.c (Fvisited_file_modtime): Use make_time.
27227
272282007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27229
27230 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27231 build.
27232
272332007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27234
27235 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27236
272372007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27238
27239 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27240
272412007-07-30 Richard Stallman <rms@gnu.org>
27242
27243 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27244
272452007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27246
27247 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27248
272492007-07-28 Nick Roberts <nickrob@snap.net.nz>
27250
27251 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27252 remote default-directory.
27253
27254 * buffer.c (mode-line-format): Update doc string.
27255
272562007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27257
27258 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27259 scroll bar gap.
27260 (x_scroll_bar_create): Set bar->fringe_extended_p.
27261 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27262 on frame edge. Check fringe background extension. Don't clear
27263 extended fringe background area.
27264
27265 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27266 (w32_fill_area): Enclose multiple statements with do ... while (0).
27267
27268 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27269 Extend fringe background to scroll bar gap.
27270 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27271 Set bar->fringe_extended_p.
27272 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27273 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27274 background extension. Don't clear extended fringe background area.
27275
27276 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27277 New member fringe_extended_p.
27278
272792007-07-25 Glenn Morris <rgm@gnu.org>
27280
27281 * Relicense all FSF files to GPLv3 or later.
27282
27283 * COPYING: Switch to GPLv3.
27284
272852007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27286
27287 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27288
27289 * data.c (Finteractive_form): Check for the presence of an
27290 `interactive-form' symbol property more thoroughly.
27291
27292 * data.c (Finteractive_form): Use an `interactive-form' property if
27293 present, analogous to the function-documentation property.
27294
272952007-07-24 Jason Rumney <jasonr@gnu.org>
27296
27297 * w32fns.c (x_real_positions): Get real position from OS instead of
27298 calculating it.
27299
273002007-07-23 Jason Rumney <jasonr@gnu.org>
27301
27302 * filelock.c (current_lock_owner): Allow for @ sign in username.
27303
273042007-07-22 Nick Roberts <nickrob@snap.net.nz>
27305
27306 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27307 remote default-directory.
27308
27309 * buffer.c (mode-line-format): Describe above case in doc string.
27310
273112007-07-20 Eli Zaretskii <eliz@gnu.org>
27312
27313 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27314 Define if not defined.
27315
273162007-07-18 Jason Rumney <jasonr@gnu.org>
27317
27318 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27319
273202007-07-18 Richard Stallman <rms@gnu.org>
27321
27322 * data.c (Fsetq_default): Doc fix.
27323
27324 * eval.c (Fsetq): Doc fix.
27325
273262007-07-18 Juanma Barranquero <lekktu@gmail.com>
27327
27328 * coding.c (Ffind_operation_coding_system):
27329 * eval.c (For, Fand): Doc fixes.
27330 Reported by Johan Bockgård.
27331
273322007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27333
27334 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27335
27336 * xterm.h: Declare x_ewmh_activate_frame.
27337
27338 * xterm.c (x_ewmh_activate_frame): New function.
27339 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27340
273412007-07-17 Martin Rudalics <rudalics@gmx.at>
27342
27343 * window.c (Fdisplay_buffer): If largest or LRU window is the
27344 only window, split it even if it is not eligible for splitting.
27345 This restores the original behavior broken by the 2007-07-15
27346 change.
27347
273482007-07-17 Glenn Morris <rgm@gnu.org>
27349
27350 * abbrev.c (abbrev_check_chars): New function.
27351 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27352 Call abbrev_check_chars to check abbrev characters are word
27353 constituents. Doc fix.
27354
273552007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27356
27357 * process.c (Fstart_process, Fmake_network_process)
27358 (read_process_output): Fix up last changes.
27359
273602007-07-16 Eli Zaretskii <eliz@gnu.org>
27361
27362 * makefile.w32-in (clean): Don't delete *~.
27363
273642007-07-16 Andreas Schwab <schwab@suse.de>
27365
27366 * window.c (Fdisplay_buffer): Use NILP.
27367 (Fset_window_scroll_bars): Likewise.
27368
273692007-07-15 Martin Rudalics <rudalics@gmx.at>
27370
27371 * window.c (window_min_size_2): New function.
27372 (window_min_size_1, size_window, Fdisplay_buffer)
27373 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27374 windows without mode- or header-lines when window-min-height is
27375 too small.
27376 (size_window): Reset nodelete_p after testing it, following an
27377 earlier note by Kim F. Storm.
27378 (display_buffer): Do not set split_height_threshold to twice the
27379 value of window_min_height to avoid changing the value of a
27380 customizable variable. Rather explicitly check whether the
27381 height of the window that shall be splitted is at least as large
27382 as split_height_threshold.
27383 (Fwindow_full_width_p): New defun.
27384 (syms_of_window): Defsubr it.
27385
27386 * window.h: Add EXFUN for Fwindow_full_width_p.
27387
273882007-07-14 Jason Rumney <jasonr@gnu.org>
27389
27390 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27391
273922007-07-14 Richard Stallman <rms@gnu.org>
27393
27394 * eval.c (maybe_call_debugger): New function.
27395 (find_handler_clause): Use maybe_call_debugger.
27396 Call it when the handler says `debug'.
27397 Eliminate DEBUGGER_VALUE_PTR.
27398 (Fsignal): Eliminate debugger_value.
27399 (Qdebug): New variable.
27400 (syms_of_eval): Initialize it.
27401
274022007-07-14 Juanma Barranquero <lekktu@gmail.com>
27403
27404 * eval.c (Fprogn):
27405 * keyboard.c (Ftrack_mouse):
27406 * print.c (Fwith_output_to_temp_buffer):
27407 * window.c (Fsave_window_excursion): Doc fix.
27408
274092007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27410
27411 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27412
274132007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27414
27415 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27416 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27417 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27418 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27419 Remove unused encoding_carryover.
27420 * process.c: Adjust all functions accordingly.
27421
274222007-07-12 Richard Stallman <rms@gnu.org>
27423
27424 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27425
274262007-07-11 Jason Rumney <jasonr@gnu.org>
27427
27428 * makefile.w32-in (LIBS): Include OLE32.
27429
27430 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27431 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27432
274332007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27434
27435 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27436 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27437 from a Lisp_Object into a bare pointer.
27438 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27439 Adjust the code correspondingly.
27440
27441 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27442
27443 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27444 (term_show_mouse_face): Remove unused var `j'.
27445 (handle_one_term_event): Remove unused vars `i' and `j'.
27446 Don't cast return value of ttyname since it's not necessary.
27447
274482007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27449
27450 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27451 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27452
27453 * fns.c (map_char_table): Use an array of int for `indices' rather than
27454 an array of Lisp_Objects (which are only ever integers anyway).
27455 (Fmap_char_table): Update caller.
27456 * lisp.h: Update prototype.
27457 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27458 * fontset.c (Ffontset_info):
27459 * casetab.c (set_case_table): Update callers.
27460
27461 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27462
27463 * keymap.c (struct accessible_keymaps_data)
27464 (struct where_is_internal_data): New structures.
27465 (accessible_keymaps_1, where_is_internal_1): Use them to change
27466 interface to adhere to the one used by map_keymap.
27467 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27468 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27469
27470 * keymap.h (map_keymap_function_t): More informative prototype.
27471
274722007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27473
27474 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27475 (looking_at_1): Don't change search_regs and last_thing_searched
27476 if `inhibit-changing-match-data' is non-nil.
27477 (string_match_1, search_buffer, set_search_regs): Likewise.
27478 (syms_of_search): Add Lisp level definition for
27479 `inhibit-changing-match-data' and set it to nil.
27480 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27481 start and end of the match, instead of using values in search_regs.
27482
274832007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27484
27485 * minibuf.c (Fcompleting_read): New value `confirm-only'
27486 for `require-match'.
27487
274882007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27489
27490 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27491 part of the 2007-06-27 change to syms_of_fileio.
27492
274932007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27494
27495 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27496 Check WINDOWP before using XWINDOW. Consolidate return statements.
27497
274982007-06-27 Richard Stallman <rms@gnu.org>
27499
27500 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27501
275022007-06-27 Juanma Barranquero <lekktu@gmail.com>
27503
27504 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27505
275062007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27507
27508 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27509 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27510 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27511 (_free_internal, memalign): Use them.
27512 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27513 Initialize to PTHREAD_MUTEX_INITIALIZER.
27514 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27515 (morecore_nolock): Rename from morecore. All uses changed.
27516 Use only nolock versions of internal allocation functions.
27517 (_malloc_internal_nolock, _realloc_internal_nolock)
27518 (_free_internal_nolock): New functions created from
27519 _malloc_internal, _realloc_internal, and _free_internal.
27520 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27521 Copy hook value to automatic variable before its use.
27522 (memalign): Copy hook value to automatic variable before its use.
27523
275242007-06-26 Kenichi Handa <handa@m17n.org>
27525
27526 * coding.c (Ffind_operation_coding_system): Docstring improved.
27527 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27528
275292007-06-25 David Kastrup <dak@gnu.org>
27530
27531 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27532 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27533 cater for additional parameter.
27534
27535 * keymap.h: Adjust number of parameters to `current-active-maps'.
27536
27537 * doc.c (Fsubstitute_command_keys): Adjust call of
27538 `current-active-maps'.
27539
275402007-06-25 David Kastrup <dak@gnu.org>
27541
27542 * callint.c (Fcall_interactively): Make the parsing of interactive
27543 specs somewhat more readable.
27544
275452007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27546
27547 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27548 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27549 if extended background has already been filled.
27550
275512007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27552
27553 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27554 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27555
27556 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27557 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27558 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27559 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27560 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27561 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27562 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27563 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27564 Run timers during dialog popup.
27565 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27566
275672007-06-21 Jason Rumney <jasonr@gnu.org>
27568
27569 * image.c (convert_mono_to_color_image): Swap fore and background.
27570
275712007-06-20 Jason Rumney <jasonr@gnu.org>
27572
27573 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27574 (w32_free_bdf_font): Unmap memory not handle.
27575
275762007-06-20 Sam Steingold <sds@gnu.org>
27577
27578 * gmalloc.c (__morecore): Fix the declaration to comply with the
27579 definition.
27580
275812007-06-20 Juanma Barranquero <lekktu@gmail.com>
27582
27583 * w32term.c (w32_delete_display): Remove leftover declaration.
27584 (w32_define_cursor, w32_initialize): Make static.
27585
27586 * w32.c (_wsa_errlist): Fix typo in error message.
27587 (init_environment): Ignore any environment variable from the
27588 registry having a null value.
27589
275902007-06-20 Glenn Morris <rgm@gnu.org>
27591
27592 * Makefile.in (LIBGIF): Default to -lgif.
27593
275942007-06-17 Jason Rumney <jasonr@gnu.org>
27595
27596 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27597 unicode strings.
27598
275992007-06-16 Juanma Barranquero <lekktu@gmail.com>
27600
27601 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27602 Fix typo in docstring.
27603
276042007-06-16 Eli Zaretskii <eliz@gnu.org>
27605
27606 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27607 and their keybindings.
27608
276092007-06-15 Chong Yidong <cyd@stupidchicken.com>
27610
27611 * composite.c (update_compositions): Fix last fix.
27612
276132007-06-14 Jason Rumney <jasonr@gnu.org>
27614
27615 * w32.c (get_process_times_fn): New function pointer.
27616 (globals_of_w32): Intialize it if present in kernel32.dll.
27617 (w32_get_internal_run_time): New function.
27618
27619 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27620
276212007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27622
27623 * composite.c (update_compositions): Check the validness of
27624 compositions.
27625
276262007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27627
27628 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27629 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27630
27631 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27632 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27633
27634 * macgui.h (USE_MAC_TOOLBAR): New define.
27635
27636 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27637 Return immediately unless popup is activated.
27638
27639 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27640 background to scroll bar gap.
27641 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27642 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27643 scroll bars on frame edge. Check fringe background extension.
27644 Don't clear extended fringe background area.
27645 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27646 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27647 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27648 [USE_MAC_TOOLBAR]: New macros.
27649 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27650 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27651 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27652 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27653 [USE_MAC_TOOLBAR]: New functions.
27654 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27655 manually if previous repositioning has failed.
27656 (mac_handle_keyboard_event): Use precomputed event kind.
27657 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27658 as tool bar item click. Handle mouse movement over tool bar items.
27659
27660 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27661 toolbar_win_gravity.
27662 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27663 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27664 Add externs.
27665
27666 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27667 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27668
276692007-06-14 Chong Yidong <cyd@stupidchicken.com>
27670
27671 * image.c (search_image_cache): Remove unused variable.
27672
276732007-06-13 Chong Yidong <cyd@stupidchicken.com>
27674
27675 * xfns.c, xmenu.c: Link to xaw3d if available.
27676
276772007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27678
27679 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27680 frame_foreground and frame_background.
27681
27682 * image.c (lookup_image): Save frame foreground and background colors.
27683 (search_image_cache): Check if saved and current frame colors match.
27684
276852007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27686
27687 * regex.c (regex_compile): Remove the `regnum' counter.
27688 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27689
276902007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27691
27692 * term.c: Include intervals.h to declare Fget_text_property.
27693
276942007-06-10 Jason Rumney <jasonr@gnu.org>
27695
27696 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27697
276982007-06-08 Juanma Barranquero <lekktu@gmail.com>
27699
27700 * callint.c (Fcall_interactively):
27701 * editfns.c (Fdelete_and_extract_region):
27702 * fileio.c (Fread_file_name):
27703 * fns.c (Fmapconcat):
27704 * keyboard.c (cmd_error_internal):
27705 * keymap.c (Fkey_description):
27706 * lread.c (openp):
27707 * minibuf.c (read_minibuf):
27708 * search.c (wordify):
27709 * sunfns.c (sel_read):
27710 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27711 * xfns.c (x_default_scroll_bar_color_parameter):
27712 * xmenu.c (menu_help_callback):
27713 * xselect.c (Fx_get_atom_name):
27714 * xterm.c (x_term_init): Use empty_unibyte_string.
27715
277162007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27717
27718 * alloc.c (init_strings): Initialize canonical empty strings.
27719 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27720 canonical empty string when the requested size is 0.
27721
27722 * emacs.c (empty_unibyte_string): Rename from empty_string.
27723 (empty_multibyte_string): New canonical empty string.
27724 (syms_of_emacs): Don't initialize empty_string.
27725
27726 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27727 string, if appropriate.
27728 (empty_unibyte_string, empty_multibyte_string): New externs.
27729 (empty_string): Remove extern.
27730
27731 * lread.c (syms_of_lread): Use empty_unibyte_string.
27732
277332007-06-07 Jason Rumney <jasonr@gnu.org>
27734
27735 * s/ms-w32.h: Don't define HAVE_TZNAME.
27736
27737 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27738
277392007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27740
27741 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27742
27743 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27744 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27745
27746 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27747 Don't call next handler.
27748 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27749 Remove argument. Install handler to application.
27750 (set_frame_menubar): Don't change deep_p.
27751 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27752 FRAME_OUTER_TO_INNER_DIFF_Y.
27753 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27754 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27755 [HAVE_DIALOGS]: New macros.
27756 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27757 Use them.
27758 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27759
27760 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27761 init_service_handler. All callers changed. Return OSStatus value.
27762
27763 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27764 All callers changed so as not to call SetPortWindowPort.
27765 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27766 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27767 mac_draw_string_common.
27768 (mac_draw_image_string_qd): Likewise.
27769 (mac_draw_string_common): Use them. Add INLINE.
27770 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27771 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27772 GetGlobalMouse.
27773 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27774 and FRAME_OUTER_TO_INNER_DIFF_Y.
27775 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27776 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27777 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27778 repositioning window to mac_handle_window_event.
27779 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27780 saving window location to mac_handle_window_event
27781 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27782 (install_menu_target_item_handler): Remove argument in extern.
27783 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27784 Also accept command events.
27785 (do_keystroke): New function created from XTread_socket.
27786 (init_command_handler): Remove functions.
27787 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27788 and save window location by kEventWindowShowing and kEventWindowHiding
27789 handlers here. Don't call next handler for window state change and
27790 focus events.
27791 (mac_handle_application_event, mac_handle_keyboard_event)
27792 [TARGET_API_MAC_CARBON]: New functions.
27793 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27794 kEventWindowShowing and kEventWindowHiding events. Move installation
27795 of mouse, font, text input and menu target item handlers to
27796 install_application_handler.
27797 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27798 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27799 New function.
27800 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27801 Register it.
27802 (XTread_socket) [TARGET_API_MAC_CARBON]:
27803 Consolidate SendEventToEventTarget calls.
27804 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27805 Move application activation handler to mac_handle_application_event.
27806 Move keyboard handler to mac_handle_keyboard_event.
27807 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27808 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27809 init_command_handler. Call install_application_handler.
27810
27811 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27812 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27813
278142007-06-07 Glenn Morris <rgm@gnu.org>
27815
27816 * emacs.c (main): Use `emacs-copyright' in --version output.
27817
278182007-06-06 Chong Yidong <cyd@stupidchicken.com>
27819
27820 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27821
278222007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27823
27824 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27825
27826 * macgui.h: Replace WindowPtr with WindowRef.
27827
27828 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27829 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27830 Replace ControlHandle with ControlRef.
27831 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27832
27833 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27834 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27835 Replace ControlHandle with ControlRef.
27836 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27837 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27838
27839 * macterm.h (struct scroll_bar): Rename member control_handle_low
27840 and control_handle_high to control_ref_low and control_ref_high.
27841 All uses changed.
27842 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27843 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27844 respectively. All uses changed.
27845 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27846 (install_window_handler, remove_window_handler): Replace WindowPtr
27847 with WindowRef in externs.
27848
278492007-06-05 Juanma Barranquero <lekktu@gmail.com>
27850
27851 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27852
278532007-06-03 Nick Roberts <nickrob@snap.net.nz>
27854
27855 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27856
27857 * frame.c (Fmouse_position, Fmouse_pixel_position):
27858 Condition on HAVE_GPM too.
27859
27860 * term.c (term_mouse_highlight): Remove unused variables.
27861 (Fterm_open_connection): Set gpm_zerobased to 1.
27862 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27863 Use zero based co-ordinates.
27864 (handle_one_term_event): Report a drag as mouse movement too.
27865
27866 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27867
278682007-06-03 Chong Yidong <cyd@stupidchicken.com>
27869
27870 * image.c (search_image_cache): New function. Require background
27871 color match if background color is unspecified in the image spec.
27872 (uncache_image, lookup_image): Use it.
27873
278742007-06-01 Juanma Barranquero <lekktu@gmail.com>
27875
27876 * window.c (Fshrink_window): Reflow docstring.
27877
278782007-06-02 Chong Yidong <cyd@stupidchicken.com>
27879
27880 * Version 22.1 released.
27881
278822007-06-01 Richard Stallman <rms@gnu.org>
27883
27884 * xfns.c (x_encode_text): Add GCPRO.
27885
278862007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27887
27888 * xfns.c (x_set_name_internal): Save encoded name before
27889 x_encode_text in case string data is relocated.
27890
278912007-05-31 Richard Stallman <rms@gnu.org>
27892
27893 * buffer.c (syms_of_buffer): Doc fix.
27894
278952007-05-30 Nick Roberts <nickrob@snap.net.nz>
27896
27897 * sysdep.c (init_sys_modes): Add rather than replace with
27898 O_NONBLOCK.
27899
27900 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27901 term_mouse_moveto.
27902
27903 * termhooks.h (term_mouse_moveto): New extern.
27904
27905 * term.c (mouse_face_window): Rename...
27906 (Qmouse_face_window): ...to this.
27907 (term_show_mouse_face, term_clear_mouse_face)
27908 (term_mouse_highlight): Use Qmouse_face_window.
27909 (term_mouse_moveto): New function.
27910 (term_mouse_position): Make it work.
27911 (syms_of_term): Uncomment assignment to mouse_position_hook.
27912 Staticpro Qmouse_face_window.
27913
279142007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27915
27916 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27917 around current_column call.
27918
279192007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27920
27921 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27922 * xdisp.c (next_element_from_buffer):
27923 * window.c (delete_window):
27924 * term.c (term_mouse_highlight):
27925 * msdos.c (getdefdir):
27926 * macterm.c (mac_create_bitmap_from_bitmap_data)
27927 (init_font_name_table):
27928 * fns.c (Fsxhash):
27929 * data.c (Fmake_local_variable):
27930 * ccl.c (ccl_driver): Likewise.
27931
279322007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27933
27934 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27935 Call mac_wakeup_from_rne on window size change.
27936
279372007-05-25 Chong Yidong <cyd@stupidchicken.com>
27938
27939 * image.c (uncache_image): Fix typo.
27940
279412007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27942
27943 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27944
279452007-05-22 Richard Stallman <rms@gnu.org>
27946
27947 * xterm.c (x_connection_closed): Remove NO_RETURN.
27948
279492007-05-22 Martin Rudalics <rudalics@gmx.at>
27950
27951 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27952
279532007-05-21 Chong Yidong <cyd@stupidchicken.com>
27954
27955 * image.c (uncache_image): New function.
27956 (Fimage_refresh): New function.
27957
279582007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27959
27960 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27961
279622007-05-20 Nick Roberts <nickrob@snap.net.nz>
27963
27964 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27965 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27966
279672007-05-20 Nick Roberts <nickrob@snap.net.nz>
27968
27969 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27970 conditional on [HAVE_GPM_H].
27971
279722007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27973
27974 * syntax.c (skip_chars): Update syntax-table only after we checked that
27975 the new location is valid.
27976
279772007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27978
27979 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27980 mac_get_window_bounds.
27981
279822007-05-20 Nick Roberts <nickrob@snap.net.nz>
27983
27984 * Makefile.in (LIBGPM): Allow it to be set from configure.
27985 If set then link Emacs with it.
27986
27987 * config.in: Regenerate.
27988
27989 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27990 New externs.
27991
27992 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27993 Include gpm.h.
27994 (handle_one_term_event, term_gpm): New externs.
27995
27996 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27997 and allow it to be interrupted by SIGIO.
27998
27999 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
28000 (wait_reading_process_output): Wait on gpm_fd too.
28001 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
28002 (add_gpm_wait_descriptor_called_flag): New variable.
28003 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
28004
28005 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
28006 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
28007 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
28008 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
28009 (make_lispy_event): Add case GPM_CLICK_EVENT.
28010 (read_avail_input): Handle mouse input.
28011
28012 * term.c (write_glyphs_with_face): New function.
28013 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
28014 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
28015 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
28016 (mouse_face_face_id, term_gpm, pos_x, pos_y)
28017 (last_mouse_x, last_mouse_y): New variables.
28018 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
28019 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
28020 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
28021 (Fterm_close_connection): New functions.
28022 (term_init): Initialise mouse_face_window.
28023
280242007-05-19 Chong Yidong <cyd@stupidchicken.com>
28025
28026 * xdisp.c (redisplay_window): If first window line is a
28027 continuation line, recompute the new window start instead of
28028 recentering.
28029
280302007-05-18 Glenn Morris <rgm@gnu.org>
28031
28032 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
28033 Suggested by Alfred M. Szmidt <ams@gnu.org>.
28034
280352007-05-17 Glenn Morris <rgm@gnu.org>
28036
28037 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
28038
280392007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28040
28041 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
28042 dead key repeat and up events.
28043
280442007-05-14 Chong Yidong <cyd@stupidchicken.com>
28045
28046 * image.c (pbm_load): Check image size for monochrome pbm.
28047
280482007-05-13 Chong Yidong <cyd@stupidchicken.com>
28049
28050 * xterm.c (XTread_socket): Revert last change.
28051
280522007-05-12 Chong Yidong <cyd@stupidchicken.com>
28053
28054 * image.c (pbm_load): Correctly check image size for greyscale pbm.
28055
28056 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
28057
280582007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28059
28060 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
28061 mixup (YAILOM).
28062
280632007-05-07 Andreas Schwab <schwab@suse.de>
28064
28065 * keymap.c (Flookup_key): Fix typo in last change.
28066
280672007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28068
28069 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
28070 mapping for unibyte strings.
28071
280722007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28073
28074 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
28075 (Fx_popup_dialog) [MAC_OSX]: Likewise.
28076
280772007-04-29 Richard Stallman <rms@gnu.org>
28078
28079 * insdel.c (replace_range): For undo, record insertion first.
28080
280812007-04-29 Andreas Schwab <schwab@suse.de>
28082
28083 * lisp.h (VECSIZE): Use OFFSETOF.
28084
280852007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28086
28087 * xdisp.c (try_window_reusing_current_matrix): Fix number of
28088 disabled lines.
28089
280902007-04-28 Richard Stallman <rms@gnu.org>
28091
28092 * lread.c (read_escape): In a string, \s is always space.
28093
280942007-04-27 Jan Djärv <jan.h.d@swipnet.se>
28095
28096 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
28097
28098 * gtkutil.c (xg_update_menubar, create_menus): Create empty
28099 submenu for menu bar items.
28100
28101See ChangeLog.10 for earlier changes.
28102
28103;; Local Variables:
28104;; coding: utf-8
28105;; add-log-time-zone-rule: t
aac0c6e3
MR
28106;; End:
28107
e3eb1dae 28108 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
28109
28110 This file is part of GNU Emacs.
28111
28112 GNU Emacs is free software: you can redistribute it and/or modify
28113 it under the terms of the GNU General Public License as published by
28114 the Free Software Foundation, either version 3 of the License, or
28115 (at your option) any later version.
28116
28117 GNU Emacs is distributed in the hope that it will be useful,
28118 but WITHOUT ANY WARRANTY; without even the implied warranty of
28119 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28120 GNU General Public License for more details.
28121
28122 You should have received a copy of the GNU General Public License
28123 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28124
28125;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40