Fix the MSDOS build broken by latest revisions.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
9cf66cf2
EZ
12010-10-15 Eli Zaretskii <eliz@gnu.org>
2
c3911ead
EZ
3 * unexcoff.c (make_hdr): Fix prototype according to changes in
4 2010-10-03T13:59:56Z!dann@ics.uci.edu.
5
9cf66cf2
EZ
6 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
7
be98da05
TH
82010-10-15 Tassilo Horn <tassilo@member.fsf.org>
9
10 * Makefile.in (really-oldXMenu): Fix typo in variable name that
11 made building the X menu fail.
cc98b256 12 (really-oldXMenu): Fix my previous fix.
be98da05 13
220d91b8 142010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
15
16 Fix handling of font properties on Windows (bug#6303).
17 * font.c (font_filter_properties): New function, refactored from
18 ftfont_filter_properties.
19 * font.h (font_filter_properties): Declare.
20 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
21 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
22 (w32font_filter_properties): New function.
23 (w32font_driver): Add w32font_filter_properties.
24
220d91b8 252010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 26
c0943d3d 27 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
28 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
29
24f981c9
JB
302010-10-14 Juanma Barranquero <lekktu@gmail.com>
31
32 * w32fns.c (w32_wnd_proc, file_dialog_callback):
33 * w32font.c (w32_generic_family):
34 * w32inevt.c (key_event):
35 * w32menu.c (fill_in_menu):
36 * w32proc.c (reader_thread, w32_executable_type, compare_env)
37 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
38 * w32term.c (w32_read_socket): Make static.
39
850690cc
JB
402010-10-13 Juanma Barranquero <lekktu@gmail.com>
41
42 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
43 prototypes; all callers changed.
44
5e371708
JB
452010-10-13 Juanma Barranquero <lekktu@gmail.com>
46
47 * makefile.w32-in (TLIB2): Rename from TLIBW32.
48 (OBJ2): New macro.
49 (WIN32OBJ, FONTOBJ): Remove.
50 (OBJ1): Redistribute object files with OBJ2.
51 (LIBS, $(TEMACS)): Use TLIB2.
52 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
53 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
54
2e288d54
JB
552010-10-13 Juanma Barranquero <lekktu@gmail.com>
56
57 * emacs.c (Vdynamic_library_alist)
58 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
59 Doc fix.
60
61 * lisp.h (Vdynamic_library_alist): Declare extern.
62
63 * image.c (Vimage_library_alist)
64 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
65 (lookup_image_type): Use Vdynamic_library_alist.
66 (Finit_image_library): Doc fix.
67
aba1381b
DN
682010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
69
70 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
71 (lispdir): Remove trailing /, update all uses.
72
4c14013d 732010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
74
75 * nsterm.m (Qleft): Declare.
76 (ns_right_alternate_modifier): New variable
77 (NSRightAlternateKeyMask): New define.
78 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
79 ns_right_alternate_modifier isn't Qleft.
80 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
81 as emacs modifier for NSRightAlternateKeyMask.
82 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
83
355cdaf3
LMI
842010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
85
86 * gnutls.c (emacs_gnutls_write): If we're trying to write before
87 gnutls is ready, return EAGAIN as the errno.
88
4c620157
DN
892010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
90
edfd76ce
DN
91 * vm-limit.c:
92 * unexhp9k800.c:
93 * unexelf.c:
94 * unexaix.c:
95 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
96
a4daeecf
DN
97 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
98 (PROFILING_LDFLAGS): Remove, not needed anymore.
99
2cb72a75 100 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
101 (CRT_DIR): Move near potential user.
102 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 103
4c620157
DN
104 * sysdep.c (LPASS8): Remove, unused.
105 (emacs_ospeed): Change from being a global to a local in the only
106 user: init_baud_rate.
107
b845653d
LMI
1082010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
109
110 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 111 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 112 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 113 gnutls_read. This allows us to actually read lots of data from
b845653d 114 the GnuTLS stream.
2e6c74c5
LMI
115 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
116 According to the documentation, this is correct, and it seems to
117 make things work.
b845653d 118
3625b3e2
CY
1192010-10-09 Chong Yidong <cyd@stupidchicken.com>
120
121 * xterm.c (x_draw_relief_rect): Clear corner pixels.
122
8b1c619f
MA
1232010-10-08 Michael Albinus <michael.albinus@gmx.de>
124
125 * keyboard.c: Revert last change; it was not intended to be
126 synchronized with the trunk.
127
93d50df8
KH
1282010-10-08 Kenichi Handa <handa@m17n.org>
129
2b7c9342 130 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 131
4628bef1 1322010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
133
134 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
135 (Fdbus_init_bus): ... here. (Bug#7113)
136
4628bef1 1372010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
138
139 * buffer.c (before-change-functions, after-change-functions):
140 Three-year overdue doc fix following 2007-08-13 change.
141
4628bef1 1422010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
143
144 * coding.c (coding_inherit_eol_type): If parent doesn't specify
145 eol-format, inherit from the system's default.
146 (complement_process_encoding_system): Make a new coding system
147 inherit the original eol-format.
148
4628bef1 1492010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
150
151 * coding.c (complement_process_encoding_system): New function.
152
153 * coding.h (complement_process_encoding_system): Extern it.
154
155 * callproc.c (Fcall_process): Complement the coding system for
156 encoding arguments.
157 (Fcall_process_region): Complement the coding system for encoding
158 the input to the process.
159
160 * process.c (Fstart_process): Complement the coding system for
161 encoding arguments.
162 (send_process): Complement the coding system for encoding what
163 sent to the process.
164
4628bef1 1652010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
166
167 * xfont.c (xfont_open): Fix setting of font->average_width from
168 :avgwidth property (Bug#7123).
169
4628bef1 1702010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
171
172 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
173 is more portable.
174
175 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
176 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
177 has not defined SIGIO.
178
389454fb
CY
1792010-10-08 Chong Yidong <cyd@stupidchicken.com>
180
181 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
182 draw the outermost line using the black relief, for legibility.
183 Omit drawing the four corner pixels.
184
51b403bd
CY
1852010-10-04 Chong Yidong <cyd@stupidchicken.com>
186
187 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
188 (read_key_sequence): Inline echo_prompt.
189 (echo_dash): Add a dash only if key is continued (Bug#7137).
190
3e6ae1a4
DN
1912010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
192
193 Remove O_RDONLY, O_WRONLY definitions, not needed.
194 * unexcoff.c:
195 * lread.c:
196 * fileio.c:
197 * doc.c:
198 * callproc.c:
199 * alloc.c:
200 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
201
c1ae068b
LMI
2022010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
203
204 * gnutls.h (GNUTLS_LOG2): Convenience macro.
205
206 * gnutls.c: Add property list symbol holders.
207 (emacs_gnutls_handshake): Clarify how sockets are passed to
208 GnuTLS.
209 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
210 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
211 and keyfiles to be a list of file names. Default to "NORMAL" for
212 the priority string. Improve logging.
213
e2afe435
GM
2142010-10-03 Glenn Morris <rgm@gnu.org>
215
216 * fileio.c (Vdirectory_sep_char): Remove.
217
dd5ecd6b
DN
2182010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
219
b5437a05
DN
220 * termhooks.h: Remove #ifdef CONSP.
221
4777478a
DN
222 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
223
a3d5088d
DN
224 Include <fcntl.h> unconditionally.
225 * termcap.c:
226 * sysdep.c:
227 * lread.c:
228 * keyboard.c:
229 * filelock.c:
230 * fileio.c:
231 * doc.c:
232 * callproc.c:
233 * alloc.c: Remove include guards for <fcntl.h>, process.c already
234 does it.
235
82719735
DN
236 * process.c: Do not include <sys/wait.h>, syswait.h does it.
237
9de940b5
DN
238 * sysdep.c (flush_pending_output): Remove code, does not do
239 anything on any platform.
240
57507bf8
DN
241 Remove unused code.
242 * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
243 select emulation, all systems support select.
244 (set_exclusive_use): Remove, the only user is in an #if 0 block.
245 * process.c (create_process): Remove #if 0 code.
246
dd5ecd6b
DN
247 Remove unused arguments for unexec.
248 The third one is never used, and the last two are always passed as zero.
249 * emacs.c (unexec): Add declaration.
250 (Fdump_emacs): Only pass the first two arguments to unexec.
251 Simplify #ifdef.
252 * unexw32.c (unexec):
253 * unexsol.c (unexec):
254 * unexhp9k800.c (unexec):
255 * unexcw.c (unexec): Remove the last 3 arguments, unused.
256 * unexelf.c (unexec): Remove the last 3 arguments, unused.
257 (find_section): Use const.
258 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
259 (unexec_error): Declare it NO_RETURN.
260 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
261 it as an argument, remove data_start and entry_address arguments, unused.
262 (unexec): Remove bss_start, data_start and
263 entry_address arguments.
264 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
265 it as an argument, remove data_start and entry_address arguments, unused.
266 (unexec): Remove bss_start, data_start and
267 entry_address arguments.
268
74f1829d
JB
2692010-10-03 Juanma Barranquero <lekktu@gmail.com>
270
7f467e14
JB
271 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
272
74f1829d
JB
273 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
274 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
275 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
276 Fix typos in docstrings.
277 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
278 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
279
6926550f
CY
2802010-10-03 Chong Yidong <cyd@stupidchicken.com>
281
282 * keyboard.c (command_loop_1): Make sure the mark is really alive
283 before using it (Bug#7044).
284
54b65f7b
JB
2852010-10-02 Juanma Barranquero <lekktu@gmail.com>
286
287 * makefile.w32-in (tags): Rename target to full-tags.
288
383ebd15
EZ
2892010-10-02 Eli Zaretskii <eliz@gnu.org>
290
291 * emacs.c (main): Remove !WINDOWSNT conditional.
292 (Fkill_emacs): Don't mention exemption on MS-Windows.
293
9c524fcb
GM
2942010-10-02 Glenn Morris <rgm@gnu.org>
295
3226d6ca
GM
296 * character.c (Fchar_bytes): Remove obsolete function.
297 (syms_of_character): Remove Schar_bytes.
298
9c524fcb
GM
299 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
300 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
301 in batch-mode.
302 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
303 (kill-emacs-hook): Doc fix.
304
1b217849
LMI
3052010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
306
307 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
308 (parse_region): Reworked to take regions instead of strings, and
309 renamed to reflect that these are the libxml functions.
310
54cc6a83
EZ
3112010-10-01 Eli Zaretskii <eliz@gnu.org>
312
0ebf79de
EZ
313 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
314 screen dimensions in tty->Wcm.
315
54cc6a83
EZ
316 * xdisp.c (set_cursor_from_row): When the row is truncated and
317 point is outside the range of displayed characters, position the
318 cursor inside the scroll margin. (Bug#6349)
319
321401d1
DN
3202010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
321
4cacd822
DN
322 Do not include stdlib.h and string.h, config.h does it.
323 * xfont.c:
324 * w32term.c:
325 * w32reg.c:
326 * w32inevt.c:
327 * w32heap.c:
328 * w32console.c:
329 * w16select.c:
330 * unexsol.c:
331 * term.c:
332 * sound.c:
333 * scroll.c (m):
334 * gtkutil.c:
335 * font.c:
336 * filelock.c:
337 * fileio.c:
338 * dosfns.c:
339 * dbusbind.c:
340 * bidi.c:
341 * callproc.c:
342 * process.c:
343 * msdos.c:
344 * charset.c: Do not include stdlib.h and string.h, config.h does it.
345
0781e7ab
DN
346 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
347
9bf58201
DN
348 * process.c: Move #include <pty.h> earlier.
349 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
350 (pty_name): Move definition later.
351
088dcc3e
DN
352 * nsselect.m (syms_of_nsselect):
353 * nsmenu.m (syms_of_nsmenu):
354 * nsfns.m (syms_of_nsfns):
355 * msdos.c (syms_of_msdos):
4cacd822 356
088dcc3e
DN
357 * image.c (syms_of_image):
358 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
359
321401d1
DN
360 * point.h: Remove, unused.
361
73077a9a
EZ
3622010-10-01 Eli Zaretskii <eliz@gnu.org>
363
364 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
365 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
366 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
367
55e572ef
DN
3682010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
369
370 * xml.c (parse_string): Use const.
371
d4b6d95d
LMI
3722010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
373
374 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
375 only override Vprint_level if it isn't already bound, and increase
376 the level to 8 to produce more useful backtraces for bug reports.
377
e4b6db12
DN
3782010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
379
380 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
381
1becef93
JB
3822010-09-30 Juanma Barranquero <lekktu@gmail.com>
383
384 * w32console.c (vga_stdcolor_name): Remove unused function;
385 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
386
df7fcaff
LMI
3872010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
388
bac5cef8
LMI
389 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
390 (Fgnutls_boot): Start the handshake.
391 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
392 (Fgnutls_boot): Remove some debugging messages.
393 Change indentation throughout to use the Emacs style.
394 (emacs_gnutls_handshake): Cast the fds to something that's
395 possibly the expected length.
396 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 397
df7fcaff
LMI
398 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
399
400 * process.c (make_process): Set the gnutls_p field to zero by
401 default.
402 (read_process_output): Always call the gnutls_read function if the
403 stream is a gnutls stream.
404 (send_process): Ditto for writes.
405
406 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
407 or write anything until the state is GNUTLS_STAGE_READY.
408 (Fgnutls_boot): Mark the stream as being a gnutls stream.
409
d585695f
EZ
4102010-09-29 Eli Zaretskii <eliz@gnu.org>
411
af7ef32d
EZ
412 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
413 NEUTRAL_DIR.
414 (handle_invisible_prop, iterate_out_of_display_property)
415 (next_element_from_buffer): If bidi_it.first_elt is set, call
416 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
417 (Bug#7128)
418
d585695f
EZ
419 * print.c (print_object): Fix format string and argument types for
420 printing a Lisp_Misc_Marker.
421
422 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
423 (load_overlay_strings, get_overlay_strings_1)
424 (get_overlay_strings, forward_to_next_line_start)
425 (back_to_previous_visible_line_start, reseat, reseat_to_string)
426 (get_next_display_element, next_element_from_string)
427 (next_element_from_c_string, next_element_from_buffer)
428 (move_it_vertically_backward, move_it_by_lines, add_to_log)
429 (message_dolog, message_log_check_duplicate, message2_nolog)
430 (message3, message3_nolog, vmessage, set_message, set_message_1)
431 (hscroll_window_tree, text_outside_line_unchanged_p)
432 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
433 (find_last_unchanged_at_beg_row)
434 (find_first_unchanged_at_end_row, row_containing_pos)
435 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
436 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
437 EMACS_INT for buffer and string positions.
438
439 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
440 (row_containing_pos): Adjust prototype.
441
442 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
443 (message2_nolog, set_message): Adjust prototypes.
444
a6f3211f
SM
4452010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
446
447 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
448 (Fgnutls_boot): Use SDATA.
449 (Fgnutls_handshake): Remove unused var `max_log_level'.
450
e0720500
MA
4512010-09-27 Michael Albinus <michael.albinus@gmx.de>
452
11a5af7c 453 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
454 (Bug#7113)
455
d8a4b27a
J
4562010-09-27 Jan Djärv <jan.h.d@swipnet.se>
457
42d3022b
J
458 * xgselect.c (xg_select): Clear file descriptors not set from
459 rfds and wfds.
460
d8a4b27a
J
461 * process.c (wait_reading_process_output): Add missing FD_CLR
462 for write_mask (must mirror connect_wait_mask).
463
8ed70bf3
LMI
4642010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
465
466 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
467 prefix.
468 (Fgnutls_boot): Use changed process members. Use log level with a
469 function parameter to set it. Bring back Emacs-level debugging
470 messages at log level 1 and 2.
471
472 * process.c (make_process): Initialize gnutls_log_level.
473
474 * process.h: Add gnutls_log_level and rename x509_cred and
475 anon_cred to have the gnutls_ prefix for consistency.
476
477 * gnutls.h (GNUTLS_LOG): Add convenience macro.
478
bedf4aab
JB
4792010-09-27 Juanma Barranquero <lekktu@gmail.com>
480
481 * w32.c (g_b_init_get_sid_identifier_authority)
482 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
483 Remove, not used.
484 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
485 (init_winsock): Remove useless assignment.
486 (open_process_token, get_token_information, lookup_account_sid)
487 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
488 (get_security_descriptor_owner, get_security_descriptor_group)
489 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
490 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
491 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
492 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
493 (unc_volume_file_attributes, convert_from_time_t)
494 (create_toolhelp32_snapshot, process32_first, process32_next)
495 (open_thread_token, impersonate_self, revert_to_self)
496 (get_process_memory_info, get_process_working_set_size)
497 (global_memory_status, global_memory_status_ex, socket_to_fd)
498 (shutdown_handler): Make static.
499
08609ffd
MA
5002010-09-27 Michael Albinus <michael.albinus@gmx.de>
501
502 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
503 (xd_pending_messages): Functions removed.
504 (xd_read_queued_messages): Add parameters fd, *data, for_read in
505 order to be compatible with add_read_fd. Determine bus from data,
506 and call xd_read_message just for this bus.
507 (xd_add_watch): Use xd_read_queued_messages as callback function.
508 Add data.
509
510 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
511
d2e9d0bb
LMI
5122010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
513
514 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 515 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 516
4be9765d
KH
5172010-09-27 Kenichi Handa <handa@m17n.org>
518
519 These changes are to remove restriction on the number of glyphs in
520 one composition.
521
522 * dispextern.h (struct glyph): Change the member "slice" to union.
523 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
524 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
525
526 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
527 instead of glyph->slice.
528 (marginal_area_string): Likewise.
529
530 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
531 glyph->u.cmp.
532 (append_composite_glyph): Likewise.
533
534 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
535 glyph->u.cmp.
536 (fill_gstring_glyph_string, x_get_glyph_overhangs)
537 (append_composite_glyph): Likewise.
538 (fill_image_glyph_string): Use glyph->slice.img instead of
539 glyph->slice.
540 (append_glyph, produce_image_glyph, append_stretch_glyph)
541 (note_mouse_highlight): Likewise.
542
3fad2ad2
J
5432010-09-26 Jan Djärv <jan.h.d@swipnet.se>
544
bf05eed6
J
545 * process.c (add_keyboard_wait_descriptor)
546 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
547 (wait_reading_process_output): Don't pass write_mask to select
548 if SELECT_CANT_DO_WRITE_MASK is defined.
549 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 550
3fad2ad2
J
551 * process.h (add_read_fd, delete_read_fd, add_write_fd)
552 (delete_write_fd): Declare.
553
554 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
555 (write_mask): New variable.
556 (max_input_desc): Renamed from max_keyboard_desc.
557 (fd_callback_info): New variable.
70e31436
JB
558 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
559 New functions.
3fad2ad2
J
560 (Fmake_network_process): FD_SET write_mask.
561 (deactivate_process): FD_CLR write_mask.
562 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
563 check_connect removed. check_write is new. Remove references to gpm.
564 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
565 NON_BLOCKING_CONNECT) instead of Connecting.
566 Loop over file descriptors and call callbacks in fd_callback_info
567 if file descriptor is ready for I/O.
568 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
569 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
570 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
571 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
572 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
573 (init_process): Initialize write_mask and fd_callback_info.
574
575 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
576
577 * dbusbind.c: Include process.h.
578 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
579 (xd_read_message_1): New functions.
70e31436
JB
580 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
581 Handle watch for both read and write.
3fad2ad2
J
582 (Fdbus_init_bus): Also register xd_toggle_watch.
583 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
584 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
585 to dbus_connection_flush.
70e31436 586 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
587 Call xd_read_message_1 until status is COMPLETE.
588
dce4c2ac
DN
5892010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
590
591 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
592 (init_tty): Reorder code to reduce the number of #ifdefs.
593 No code changes.
dce4c2ac 594
8af55556
TZ
5952010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
596
597 * process.h: Set up GnuTLS support.
598
599 * process.c (make_process, Fstart_process)
600 (read_process_output, send_process): Set up GnuTLS support for
601 process input/output file descriptors.
602
603 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
604
605 * gnutls.c: The source code for GnuTLS support in Emacs.
606
607 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
608
609 * config.in: Set up GnuTLS support.
610
611 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
612 (obj, LIBES): Set up GnuTLS support.
613
83e245c4
JB
6142010-09-26 Juanma Barranquero <lekktu@gmail.com>
615
616 * w32.c (get_emacs_configuration_options): Fix previous change.
617
d24ec09a
CY
6182010-09-25 Chong Yidong <cyd@stupidchicken.com>
619
620 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
621 alive before using it (Bug#6977).
622
b7bdc47c
LMI
6232010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
624
a952d5f3
LMI
625 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
626
627 * dispextern.h: EMACS_INT/int fixup.
628
629 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
630 fixup.
631
b7bdc47c
LMI
632 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
633
41118bd3
EZ
6342010-09-25 Eli Zaretskii <eliz@gnu.org>
635
2452438f
EZ
636 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
637 (Fselect_window, window_scroll_pixel_based)
638 (window_scroll_line_based, Frecenter, Fset_window_configuration):
639 Use EMACS_INT for buffer positions.
640
641 * textprop.c (validate_interval_range, interval_of)
642 (property_change_between_p, Fadd_text_properties)
643 (set_text_properties_1, Fremove_text_properties)
644 (Fremove_list_of_text_properties, Ftext_property_any)
645 (Ftext_property_not_all, copy_text_properties)
646 (text_property_list, extend_property_ranges)
647 (verify_interval_modification): Use EMACS_INT for buffer
648 positions.
649
f877c546
EZ
650 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
651 for buffer positions.
652
653 * process.c (read_process_output, send_process)
654 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
655 and string positions and size.
656
da43f021
EZ
657 * print.c (print_object, print_string, strout): Use EMACS_INT for
658 string indices.
659
660 * minibuf.c (string_to_object): Use EMACS_INT for string position
661 and size.
662
663 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
664
665 * lread.c <read_from_string_index, read_from_string_index_byte>
666 <read_from_string_limit, readchar_count>: Define EMACS_INT.
667 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
668 buffer positions and string length.
669
41118bd3
EZ
670 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
671 EMACS_INT.
672 (echo_truncate, adjust_point_for_property, read_char)
673 (gen_help_event, make_lispy_event, modify_event_symbol)
674 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
675 for buffer positions and string length.
676
677 * keyboard.h (gen_help_event): Adjust prototype.
678
679 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
680
681 * commands.h <last_point_position>: Declare EMACS_INT.
682
683 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
684 (truncate_echo_area): Accept EMACS_INT argument.
685
686 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
687
688 * lisp.h (truncate_echo_area): Adjust prototype.
689
690 * composite.c (composition_adjust_point): Return EMACS_INT.
691
692 * composite.h (composition_adjust_point): Adjust prototype.
693
ba3033ee
JB
6942010-09-25 Juanma Barranquero <lekktu@gmail.com>
695
696 * process.c (Fmake_network_process): When arg :host is 'local,
697 use address 127.0.0.1, not name "localhost". (Bug#6781)
698
4f3a2f8d
EZ
6992010-09-24 Eli Zaretskii <eliz@gnu.org>
700
5816888b
EZ
701 * indent.c (Fcurrent_indentation, indented_beyond_p)
702 (compute_motion): Use EMACS_INT for buffer position variables.
703
704 * lisp.h (indented_beyond_p): Adjust prototype.
705
706 * buffer.c (overlay_strings): Return EMACS_INT.
707
708 * buffer.h (overlay_strings): Adjust prototype.
709
710 * region-cache.c (pp_cache): Adjust format to arguments.
711
712 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
713 (call_debugger): Use EMACS_INT for specpdl_size related variables.
714 (verror): Use EMACS_INT for size of allocated buffer.
715
ace1712c
EZ
716 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
717 positions.
718
719 * xdisp.c (redisplay_internal, try_window_id)
720 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
721 EMACS_INT for buffer positions.
722
f5276b75 723 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
724
725 * dispnew.c (increment_matrix_positions)
726 (increment_row_positions, copy_glyph_row_contents)
727 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
728 positions.
729
730 * dispextern.h (mode_line_string, marginal_area_string)
731 (increment_matrix_positions, increment_row_positions): Adjust
732 prototypes.
733
734 * data.c (Faref, Faset): Use EMACS_INT for string length and
735 positions.
736
737 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
738 characters to insert.
739
740 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
741 position and size.
742
4f3a2f8d
EZ
743 * syntax.c (scan_words, update_syntax_table)
744 (prev_char_comend_first, back_comment, skip_chars)
745 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
746 EMACS_INT for buffer and string positions.
747
748 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
749
750 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
751 positions.
752
db063399
LMI
7532010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
754
f0812d35
LMI
755 * scroll.c (calculate_scrolling, line_ins_del)
756 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
757 conversion.
758
f5c7fc27
LMI
759 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
760 (region_cache_backward, region_cache_forward)
761 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
762 conversion.
763
db063399
LMI
764 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
765
766 * eval.c (verror): Fix EMACS_INT/int conversion.
767
07914cd0 768 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
769 (print_preprocess, print_check_string_charset_prop)
770 (print_object): Fix EMACS_INT/int conversion.
771
772 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
773
e6d4aefa
EZ
7742010-09-24 Eli Zaretskii <eliz@gnu.org>
775
69481da7
EZ
776 * callproc.c (Fcall_process): Use EMACS_INT for count of
777 characters read from the subprocess.
778
61bfec98
EZ
779 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
780 positions.
781 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
782 positions.
783
145582a0
EZ
784 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
785 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
786 length.
787 (advance_to_char_boundary, Fset_buffer_multibyte)
788 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
789 (overlay_touches_p, record_overlay_string, overlay_strings)
790 (recenter_overlay_lists, fix_start_end_in_overlays)
791 (modify_overlay, Fmove_overlay, report_overlay_modification)
792 (evaporate_overlays): Use EMACS_INT for buffer positions.
793
794 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
795 prototypes.
796
446470a9
EZ
797 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
798 positions.
799
e6d4aefa
EZ
800 * fns.c (Fcompare_strings, Fstring_lessp, concat)
801 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
802 (Fsubstring_no_properties, substring_both, Ffillarray)
803 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
804 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
805 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
806 (Fmd5): Use EMACS_INT for buffer and string positions and length
807 variables and arguments.
808
809 * lisp.h (substring_both): Adjust prototype.
810
eb652396
JB
8112010-09-24 Juanma Barranquero <lekktu@gmail.com>
812
813 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
814 * w32fns.c (clipboard_sequence_fn): Don't declare.
815 (globals_of_w32fns): Don't initialize it.
816
266a86bd 8172010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
818
819 * syntax.c (back_comment): Detect the case where a 1-char comment
820 starter is also the 2nd char of a 2-char comment ender.
821
266a86bd 8222010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
823
824 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
825
40283062
LMI
8262010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
827
db063399
LMI
828 * eval.c (verror): EMACS_INT/int cleanup.
829
faf8b5bc
LMI
830 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
831 unwind_protect more than 2GB worth of functions.
832
833 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
834
40283062
LMI
835 * lisp.h: Have oblookup take EMACS_INT to allow interning big
836 string and avoid compiler warnings.
837 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
838 all users.
839
840 * lread.c (oblookup): EMACS_INT/int cleanup.
841
842 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
843
fe3537c3
EZ
8442010-09-23 Eli Zaretskii <eliz@gnu.org>
845
846 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
847
848 * lisp.h (clip_to_bounds): Adjust prototype.
849
850 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
851
0350982f
LMI
8522010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
853
84c9ce05
LMI
854 * lisp.h: doprnt.c EMACS_INT/int cleanup.
855
856 * doprnt.c (doprnt): EMACS_INT/int cleanup.
857
858 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
859 cleanup.
860
0350982f
LMI
861 * lisp.h: Change the definition of all marker.c functions that
862 take and return buffer stuff to be EMACS_INT instead of int.
863
864 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
865 (buf_charpos_to_bytepos, bytepos_to_charpos)
866 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
867 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
868 for all buffer positions.
869
c50bd0d2
CY
8702010-09-23 Chong Yidong <cyd@stupidchicken.com>
871
872 * intervals.c (traverse_intervals, rotate_right, rotate_left)
873 (split_interval_right, find_interval, next_interval)
874 (delete_node, delete_interval, interval_deletion_adjustment)
875 (adjust_intervals_for_deletion, merge_interval_right)
876 (merge_interval_left, graft_intervals_into_buffer)
877 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
878
879 * intervals.h (traverse_intervals): Update prototype.
880
14162469
EZ
8812010-09-23 Eli Zaretskii <eliz@gnu.org>
882
c098fdb8
EZ
883 * indent.c (compute_motion): Use EMACS_INT for arguments to
884 region_cache_forward.
885
886 * region-cache.c (struct boundary, struct region_cache): Use
887 EMACS_INT for positions.
888 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
889 (delete_cache_boundaries, set_cache_region)
890 (invalidate_region_cache, know_region_cache)
891 (region_cache_forward, region_cache_backward, pp_cache): Use
892 EMACS_INT for buffer positions.
893
894 * region-cache.h (know_region_cache, invalidate_region_cache)
895 (region_cache_forward, region_cache_backward): Adjust prototypes.
896
897 * search.c (string_match_1, fast_c_string_match_ignore_case)
898 (looking_at_1, scan_buffer, scan_newline)
899 (find_next_newline_no_quit, find_before_next_newline)
900 (search_command, trivial_regexp_p, search_buffer, simple_search)
901 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
902 and string positions and length.
903
caefdbe7
EZ
904 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
905 (find_before_next_newline): Adjust prototypes.
c098fdb8 906
29cdc13e
EZ
907 * editfns.c (transpose_markers, update_buffer_properties)
908 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
909 (get_pos_property, Fconstrain_to_field)
910 (Fline_beginning_position, Fline_end_position, Fprevious_char)
911 (Fchar_after, Fchar_before, Finsert_char)
912 (Finsert_buffer_substring, Fcompare_buffer_substrings)
913 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
914 EMACS_INT for buffer and string position variables.
c098fdb8 915 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
916
917 * lisp.h (clip_to_bounds): Adjust prototype.
918
e79123aa
EZ
919 * intervals.c (traverse_intervals, rotate_right, rotate_left)
920 (balance_an_interval, split_interval_right, split_interval_left)
921 (find_interval, next_interval, update_interval)
922 (adjust_intervals_for_insertion, delete_node, delete_interval)
923 (interval_deletion_adjustment, adjust_intervals_for_deletion)
924 (offset_intervals, merge_interval_right, merge_interval_left)
925 (graft_intervals_into_buffer, adjust_for_invis_intang)
926 (move_if_not_intangible, get_local_map, copy_intervals)
927 (copy_intervals_to_string, compare_string_intervals)
928 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 929 and for interval tree size.
e79123aa
EZ
930
931 * intervals.h (traverse_intervals, split_interval_right)
932 (split_interval_left, find_interval, offset_intervals)
933 (graft_intervals_into_buffer, copy_intervals)
934 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
935 (update_interval): Adjust prototypes.
936
579c18d0
EZ
937 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
938 Use EMACS_INT for buffer position variables and arguments.
939
940 * composite.c (get_composition_id, find_composition)
941 (run_composition_function, compose_text)
942 (composition_gstring_width, autocmp_chars)
943 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
944 for buffer positions and string length variables and arguments.
945
946 * composite.h (get_composition_id, find_composition, compose_text)
947 (composition_gstring_width): Adjust prototypes.
948
949 * editfns.c (Fformat): Use EMACS_INT for string size variables.
950
951 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
952 EMACS_INT for string positions.
953
954 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
955 position arguments.
956
957 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
958
959 * character.c (parse_str_as_multibyte, str_as_multibyte)
960 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
961 (string_count_byte8, string_escape_byte8, c_string_width)
962 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
963 EMACS_INT for string length variables and arguments.
14162469
EZ
964
965 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
966 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
967 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
968 prototypes.
969
579c18d0
EZ
970 * font.c (font_intern_prop): Use EMACS_INT for string length
971 variables.
972
973 * font.c (font_intern_prop): Use EMACS_INT for string length
974 variables.
975
14162469
EZ
976 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
977 variables.
978
979 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
980 (Fmake_string): Protect against too large strings.
981 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
982 (live_misc_p): Use ptrdiff_t instead of int for pointer
983 differences.
984 (string_bytes, check_sblock, check_string_free_list)
985 (allocate_string_data, compact_small_strings, Fmake_string)
986 (Fmake_bool_vector, make_string, make_unibyte_string)
987 (make_multibyte_string, make_string_from_bytes)
988 (make_specified_string_string, Fmake_list, Fmake_vector): Use
989 EMACS_INT for string length variables and arguments.
990 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
991 (Fpurecopy): Use EMACS_INT for string size.
992 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
993 for vector size.
994
995 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
996 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
997 (make_pure_string, string_bytes, check_point_in_composition):
998 Adjust prototypes.
14162469 999
c8a66ab8
EZ
10002010-09-22 Eli Zaretskii <eliz@gnu.org>
1001
1002 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
1003 (check_translation): Use EMACS_INT for buffer positions and
1004 length.
1005
1006 * undo.c (record_marker_adjustment, record_delete)
1007 (record_change, record_point, record_insert)
1008 (record_property_change, Fprimitive_undo): Use EMACS_INT for
1009 buffer positions.
1010
1011 * lisp.h (record_marker_adjustment, record_delete)
1012 (record_change, record_point, record_insert)
1013 (record_property_change, Fprimitive_undo): Adjust prototypes.
1014
38c54d9d
JB
10152010-09-22 Juanma Barranquero <lekktu@gmail.com>
1016 Eli Zaretskii <eliz@gnu.org>
1017
1018 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
1019
413d18e7
EZ
10202010-09-22 Eli Zaretskii <eliz@gnu.org>
1021
1022 * minibuf.c (Fminibuffer_contents)
1023 (Fminibuffer_contents_no_properties)
1024 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
1025 positions.
1026
1027 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
1028 mark.
1029
1030 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
1031 (allocate_string_data): Accept EMACS_INT for string length.
1032
1033 * editfns.c (Ffield_string, Ffield_string_no_properties)
1034 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
1035 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
1036 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
1037 (Ffield_end): Use EMACS_INT for buffer positions.
1038
1039 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
1040 point with mark.
1041
1042 * lisp.h (allocate_string_data, make_uninit_string)
1043 (make_uninit_multibyte_string, make_buffer_string)
1044 (make_buffer_string_both): Adjust prototypes.
1045
4b9832a6
CY
10462010-09-22 Chong Yidong <cyd@stupidchicken.com>
1047
1048 * xml.c: Switch to GNU indentation.
1049 (make_dom): Change parse tree format to match xml.el.
1050 (Fxml_parse_html_string_internal): Rename from html-parse-string.
1051 (Fxml_parse_string_internal): Rename from xml-parse-string.
1052
86282aab
KH
10532010-09-22 Kenichi Handa <handa@m17n.org>
1054
1055 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
1056 only if we are not at a composition.
1057 (set_iterator_to_next): Give it->end_charpos to
1058 composition_compute_stop_pos.
1059 (set_iterator_to_next, next_element_from_buffer): Likewise.
1060
1061 * dispnew.c (buffer_posn_from_coords): Fix position when the
1062 current display element is a grapheme cluster in bidi-reordered
1063 region.
1064
840b985a
AR
10652010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
1066
1067 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
1068 the regions may overlap.
1069
5bc88f4b
JB
10702010-09-21 Juanma Barranquero <lekktu@gmail.com>
1071
1072 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
1073
92bc9a36
DN
10742010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
1075
d19e096e
DN
1076 * emacs.c: Do not include sys/ioctl.h, not needed.
1077
92bc9a36
DN
1078 * doprnt.c: Do not include stdlib.h, config.h does it.
1079 Move #include before macro definition.
1080
15f844ac
DN
10812010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
1082
48e24408
DN
1083 * Makefile.in (temacs): Link using $(CC) not $(LD).
1084 (LD_FIRSTFLAG): Define using autoconf.
1085 (LD): Remove.
1086
65539506
DN
1087 Remove HAVE_TERMIOS definitions.
1088 * s/usg5-4-common.h (HAVE_TERMIOS):
1089 * s/template.h (HAVE_TERMIOS):
1090 * s/gnu-linux.h (HAVE_TERMIOS):
1091 * s/darwin.h (HAVE_TERMIOS):
1092 * s/cygwin.h (HAVE_TERMIOS):
1093 * s/bsd-common.h (HAVE_TERMIOS):
1094 * s/aix4-2.h (HAVE_TERMIOS):
1095 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
1096 defined on all non-MS platforms.
1097 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
1098
15f844ac
DN
1099 * xterm.c (xt_action_hook): Use const.
1100
7d701334
JB
11012010-09-20 Juanma Barranquero <lekktu@gmail.com>
1102
1103 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
1104 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1105 (gethostname) [!HAVE_SOCKETS]: Remove.
1106 (SOCK_REPLACE_HANDLE): Remove macro.
1107 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
1108 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
1109 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1110 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
1111
f3ec267a
EZ
11122010-09-18 Eli Zaretskii <eliz@gnu.org>
1113
1114 * deps.mk (xml.o): Add dependencies.
1115
93acd23d
JB
1116 * xdisp.c (Fcurrent_bidi_paragraph_direction):
1117 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
1118
1119 * bidi.c (bidi_paragraph_init): Accept an additional argument
1120 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
1121 search back until a paragraph with a strong directional character
1122 is found, and use that to determine paragraph's base direction.
1123
1124 * dispextern.h (bidi_paragraph_init): Update prototype.
1125
69e847be
EZ
11262010-09-17 Eli Zaretskii <eliz@gnu.org>
1127
1128 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1129 of w32api >= 3.15. (Bug#6989)
1130
283357a7
LMI
11312010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
1132
1133 * process.c (wait_reading_process_output): Don't message about
1134 accept-process-output unless the time limit really is zero.
1135
4ddb20d6
SM
11362010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1137
1138 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
1139 int/Lisp_Object mixup).
1140
e24ad6dd
J
11412010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1142
1143 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
1144 not HELP.
1145
fb0cf781
J
11462010-09-17 Stephen Berman <stephen.berman@gmx.net>
1147
1148 * frame.c (Ftool_bar_pixel_width): New function to expose tool
1149 bar's pixel width to Lisp (Bug#7048).
1150
4ddb20d6
SM
11512010-09-14 Juanma Barranquero <lekktu@gmail.com>
1152
1153 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 1154
318a04c6
J
11552010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1156
1157 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
1158 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
1159
78a21772
KH
11602010-09-17 Kenichi Handa <handa@m17n.org>
1161
1162 * ftfont.c (ftfont_check_otf): Fix previous change.
1163
fa3f6039
KH
11642010-09-14 Kenichi Handa <handa@m17n.org>
1165
1166 * ftfont.c (ftfont_check_otf): Fix the case of checking just
1167 existence of GSUB or GPOS.
1168
2b5491fa
JB
11692010-09-14 Juanma Barranquero <lekktu@gmail.com>
1170
1171 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1172
c97c655f
LMI
11732010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
1174
2b5491fa 1175 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
1176 what it does.
1177 (parse_string): Return nil when the document can't be parsed.
1178
6664fc59 11792010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
1180
1181 * xterm.c (get_current_vm_state): New function.
1182 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
1183 want_fullscreen so set_wm_state calls are few (Bug#7013).
1184 (x_handle_net_wm_state): Move code to get_current_vm_state and
1185 call that function.
1186
6664fc59 11872010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
1188
1189 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
1190
6664fc59 11912010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
1192
1193 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
1194 we may use designation or locking-shift.
1195
6664fc59 11962010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
1197
1198 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
1199 sequence when the source is multibyte.
1200
1da70e99
AS
12012010-09-14 Andreas Schwab <schwab@linux-m68k.org>
1202
6664fc59
JB
1203 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
1204 Don't make first argument optional. Doc fix.
1da70e99 1205
26632d8d
LMI
12062010-09-14 Leo <sdl.web@gmail.com> (tiny change)
1207
1208 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
1209 parameters for the doc string.
1210
21fa8e37
LMI
12112010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
1212
1213 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
1214
5616cc54
SM
12152010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1216
1217 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
1218 (syms_of_fns): Don't defsubr Sy_or_n_p.
1219 * lisp.h: Don't declare Fy_or_n_p.
1220 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
1221
381408e2
LMI
12222010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1223
1224 * xml.c (Fxml_parse_buffer): New function to parse XML files.
1225
12262010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1227
1228 * xml.c: New file.
1229 (Fhtml_parse_buffer): New function to interface to the libxml2
1230 html parsing function.
1231
733946e7
JB
12322010-09-05 Juanma Barranquero <lekktu@gmail.com>
1233
1234 * biditype.h: Regenerate.
1235
7574650a
AS
12362010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1237
1238 * nsimage.m (ns_load_image): Check argument types.
1239
1240 * image.c: Remove all uses of gcpro.
1241 (xpm_load): Check all lisp types.
1242 (pbm_load): Likewise.
1243 (png_load): Likewise.
1244 (jpeg_load): Likewise.
1245 (tiff_load): Likewise.
1246 (gif_load): Likewise.
1247 (imagemagick_load_image): Likewise.
1248 (imagemagick_load): Likewise.
1249 (svg_load): Likewise.
1250 (gs_load): Likewise.
1251
6e6b8e25
EZ
12522010-09-04 Eli Zaretskii <eliz@gnu.org>
1253
1254 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
1255 try to reorder grapheme clusters, since LGSTRING should always
1256 hold them in the logical order.
1257 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1258 return glyph codes in the logical order.
1259
dbfe4532
AS
12602010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1261
1262 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 1263 (imagemagick_load_image): Fix type mismatch.
5e5992c2 1264 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 1265
6d7cc563
JD
12662010-09-02 Jan Djärv <jan.h.d@swipnet.se>
1267
1268 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
1269
1270 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
1271
1272 * xselect.c: Remove declaration of cut-buffer objects and functions.
1273 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
1274 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
1275 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
1276 (Fx_rotate_cut_buffers_internal): Remove.
1277 (syms_of_xselect): Remove defsubr of above.
1278 Remove intern of QCUT_BUFFERn.
1279
8f4e9110
SM
12802010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1281
1282 * cmds.c (Vblink_paren_function): Remove.
1283 (internal_self_insert): Make it insert N chars at a time.
1284 Don't call blink-paren-function.
1285 (Fself_insert_command): Adjust accordingly.
1286 (syms_of_cmds): Don't declare blink-paren-function.
1287
d419e1d9
KH
12882010-08-31 Kenichi Handa <handa@m17n.org>
1289
1290 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1291 characters.
1292
1293 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
1294 (produce_glyphs): Don't set it->char_to_display here.
1295 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
1296 (produce_special_glyphs): Set temp_it.char_to_display before
1297 calling produce_glyphs.
1298
1299 * xdisp.c (get_next_display_element): Set it->char_to_display
1300 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1301 characters.
1302 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1303 calling PRODUCE_GLYPHS.
1304 (append_space_for_newline): Save and store it->char_to_display.
1305 Set it->char_to_display before calling PRODUCE_GLYPHS.
1306 (extend_face_to_end_of_line): Set it->char_to_display before
1307 calling PRODUCE_GLYPHS.
1308 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1309 character to its byte value.
1310 (get_char_glyph_code): New function.
1311 (produce_stretch_glyph): Set it2.char_to_display too before
1312 calling x_produce_glyphs.
1313 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
1314 non-ASCII characters. Don't set it->char_to_display here.
1315 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 1316 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 1317
b819f760
SM
13182010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1319
1320 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1321
07fa68a7
CY
13222010-08-31 Chong Yidong <cyd@stupidchicken.com>
1323
1324 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1325
cd196f12
SM
13262010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1327
1328 * marker.c (Fcopy_marker): Make the first arg optional.
1329
49a752bb
KH
13302010-08-30 Kenichi Handa <handa@m17n.org>
1331
1332 * composite.c (composition_update_it): Fix computing of
1333 cmp_it->width.
1334
769ae9e1
KH
13352010-08-29 Kenichi Handa <handa@m17n.org>
1336
9e69cb05 1337 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 1338 corresponding bytes.
9e69cb05 1339
4520b858
J
13402010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1341
1342 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1343
fe50eb41
KH
13442010-08-26 Kenichi Handa <handa@m17n.org>
1345
1346 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1347 on calling composition_compute_stop_pos.
1348
f6aa6ec6
KH
13492010-08-25 Kenichi Handa <handa@m17n.org>
1350
9dfdbc0a
KH
1351 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1352 :otf.
1353
f6aa6ec6
KH
1354 * composite.c (composition_compute_stop_pos): Don't break
1355 composition at PT.
1356 (composition_reseat_it): Likewise. Fix calculation of character
1357 position starting a composition.
1358 (Fcomposition_get_gstring): Don't limit the number of components
1359 for automatic composition.
1360
ff94e32c
KH
13612010-08-25 Kenichi Handa <handa@m17n.org>
1362
1363 * composite.c (composition_compute_stop_pos): In forward search,
1364 pay attention to the possibility that some character after ENDPOS
1365 will be composed with charactrs before ENDPOS.
1366
1c409d0b
CY
13672010-08-24 Chong Yidong <cyd@stupidchicken.com>
1368
1369 * keyboard.c (command_loop_1): Don't clobber primary selection
1370 during handle-switch-frame (Bug#6872).
1371
0c372655
MA
13722010-08-23 Michael Albinus <michael.albinus@gmx.de>
1373
1374 * dbusbind.c: Accept UNIX domain sockets as bus address.
1375 (Fdbus_close_bus): New function.
1376 (Vdbus_registered_buses): New variable.
1377 (xd_initialize): Implement string as bus address.
1378 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1379 (Fdbus_get_unique_name, Fdbus_call_method)
1380 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1381 (Fdbus_method_error_internal, Fdbus_send_signal)
1382 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1383 check. This is done in xd_initialize_bus. Adapt doc string, if
1384 necessary.
1385 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1386 Vdbus_registered_buses.
1387 (Vdbus_registered_objects_table): Create hash.
1388
7133b7ee
JL
13892010-08-22 Juri Linkov <juri@jurta.org>
1390
1391 * keyboard.c (Fexecute_extended_command): Move reading a command name
1392 with `completing-read' to a new Elisp function `read-extended-command'.
1393 Call it to read a command to `function' (bug#5364, bug#5214).
1394
198a7a97
CY
13952010-08-22 Chong Yidong <cyd@stupidchicken.com>
1396
1397 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1398
b0126eac 13992010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
1400
1401 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1402 instead of SAFE_ALLOCA.
1403
b0126eac 14042010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
1405
1406 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1407 (Bug#6214).
1408
b0126eac 14092010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
1410
1411 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1412
b0126eac
CY
14132010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1414
1415 * doc.c (Fsnarf_documentation): Initialize skip_file before
1416 build-files test.
1417
692f3ddc 14182010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 1419
692f3ddc
JB
1420 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1421 New definitions.
b0126eac
CY
1422 (HAVE_TERMIO): Remove.
1423
5f2f0bc1
EZ
14242010-08-22 Eli Zaretskii <eliz@gnu.org>
1425
b613941b
EZ
1426 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1427
a583bbef
EZ
1428 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1429 for w32.
1430
1431 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1432 it's done in nt/config.nt.
1433
1434 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1435
5f2f0bc1
EZ
1436 * unexcoff.c (report_error, make_hdr, write_segment)
1437 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1438 Convert argument lists and prototypes to ANSI C.
1439 (make_hdr, write_segment): Remove unused variables.
1440 (unexec): Remove commented-out line. Initialize `new' to shut up
1441 compiler warnings.
1442
a7ebc409
DN
14432010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1444
1445 Simplify termio code.
1446 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1447 HAVE_TERMIO code is obsolete.
1448 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1449 * systty.h: Do not define HAVE_TCATTR.
1450 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1451 Do not define EMACS_HAVE_TTY_PGRP. Only define
1452 EMACS_GET_TTY_PGRP for !DOS_NT.
1453 * sysdep.c: Include sysselect.h unconditionally. Do not include
1454 sys/ioctl.h and termios.h, systty.h does it. Use
1455 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1456 (init_baud_rate): Remove HAVE_TERMIO code.
1457 (child_setup_tty): Remove HAVE_TERMIO code.
1458 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1459 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1460 (new_ltchars, new_tchars): Remove, unused.
1461 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1462 code. Remove special casing for __mips__, it was a no-op. Remove
1463 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1464 (init_sys_modes): Remove HPUX special case.
1465 * process.c: Include stdlib.h unconditionally. Do not include
1466 fcntl.h, systty.h does it. Remove conditional code for
1467 HAVE_SERIAL, it is always true.
1468 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1469 always true when SIGNALS_VIA_CHARACTERS is true.
1470 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1471 !WINDOWSNT means HAVE_TERMIOS.
1472 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1473 conditional, which is true for all HAVE_TERMIOS systems.
1474 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1475 instead of HAVE_TERMIOS.
1476 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1477 EMACS_HAVE_TTY_PGRP.
1478 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1479 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1480 anyway.
1481
40629f17
EZ
14822010-08-21 Eli Zaretskii <eliz@gnu.org>
1483
1484 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1485 mirroring pixel positions.
1486
d931da8c
DN
14872010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1488
b5c76d0c
DN
1489 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1490 write only.
1491 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1492 malloc_sbrk_used, nothing uses them.
1493
74815588
DN
1494 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1495 defined, unconditionally defined in lisp.h.
1496
f5817d1c
DN
1497 * term.c: Do not include <termios.h>, systty.h does it.
1498
d931da8c
DN
1499 * s/unixware.h (HAVE_TCATTR):
1500 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1501 systty.h defines it when HAVE_TERMIOS is defined.
1502
ff2de6d2 15032010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 1504
b43c883c 1505 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 1506 terminals: add one-character offset for R2L lines.
b43c883c 1507
491a1546
EZ
1508 * emacs.c <emacs_version>: Add a comment regarding
1509 msdos/mainmake.v2's dependency on the syntax of this declaration.
1510
2396cbba
EZ
15112010-08-20 Eli Zaretskii <eliz@gnu.org>
1512
1513 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1514 position for R2L lines by mirroring the pixel position wrt the
1515 text are box. Improve commentary.
1516
7df6150a
AS
15172010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1518
1519 * image.c (imagemagick_clear_image): Remove debugging output.
1520
a2e5caf7
SM
15212010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1522
1523 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1524 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1525 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1526 self-insert-face.
1527 (syms_of_cmds): Initialize the new vars.
1528
20d60baf
JR
15292010-08-19 Jason Rumney <jasonr@gnu.org>
1530
cc477da7
JR
1531 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1532
20d60baf
JR
1533 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1534
2c0ac867
J
15352010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1536
1537 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1538
93352106
EZ
15392010-08-18 Eli Zaretskii <eliz@gnu.org>
1540
1541 * xterm.c (x_draw_bar_cursor):
1542 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1543 R2L, draw the bar cursor on its right rather than on its left.
1544
c785836d
SM
15452010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1546
0193499f
SM
1547 * eval.c (Fdefmacro): Only obey one declaration.
1548
c785836d
SM
1549 * casefiddle.c (casify_region): Setup gl_state.
1550
9cb728a5
J
15512010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1552
1553 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1554
e1e18511
J
15552010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1556
1d77b63e 1557 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 1558
64cb6c78
J
15592010-08-18 David De La Harpe Golden <david@harpegolden.net>
1560
1561 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1562 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1563 QPRIMARY => NXPrimaryPboard.
1564 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1565 NXPrimaryPboard => QPRIMARY.
1566 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1567 NXSecondaryPboard = SecondarySelection.
1568 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1569
0c9b8993
GM
15702010-08-18 Joakim Verona <joakim@verona.se>
1571
1572 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1573 defined:
1574 (imagemagick_image_p): New function to test for ImageMagic image.
1575 (imagemagick_load): New function to load ImageMagick image.
1576 (imagemagick_load_image): New function, helper for imagemagick_load.
1577 (imagemagick-types): New function.
1578 (Qimagemagick): New Lisp_object.
1579 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 1580
c3554f68
SM
15812010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1582
1583 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1584 is a string.
1585
1ff2e434
J
15862010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1587
1588 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1589 x_set_tool_bar_position handler.
1590
0cc56427
EZ
15912010-08-17 Eli Zaretskii <eliz@gnu.org>
1592
1593 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1594 x_set_tool_bar_position handler, needed to support changes from
1595 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1596
e45a249b
JD
15972010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1598
921242c6
J
1599 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1600 declaration (Bug#6863).
573d150b 1601 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 1602
e45a249b
JD
1603 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1604
1605 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1606
7c23dd44
CY
16072010-08-16 Chong Yidong <cyd@stupidchicken.com>
1608
1609 * keyboard.c (command_loop_1): Avoid setting selection twice,
1610 since it's done in deactivate-mark as well.
1611 (Vselect_active_regions): Change default to t. Replace `lazy'
1612 with non-default value `only', meaning only set PRIMARY for
1613 temporarily active regions.
1614
1615 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1616 select-active-regions.
1617
0005830c
J
16182010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1619
1620 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1621 isn't a string.
1622
603dfc72
AS
16232010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1624
1625 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1626
c25ce9d0
J
16272010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1628
c3554f68
SM
1629 * keyboard.c (parse_tool_bar_item): malloc buf.
1630 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1631 new_lbl (Bug#6855).
c25ce9d0 1632
5872c762
EZ
16332010-08-14 Eli Zaretskii <eliz@gnu.org>
1634
b236615c
EZ
1635 * xterm.c (x_draw_stretch_glyph_string):
1636 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1637 the cursor on the right edge of the stretch glyph.
1638
c3554f68
SM
1639 * xdisp.c (window_box_right_offset, window_box_right):
1640 Fix commentary.
b236615c 1641
5872c762
EZ
1642 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1643 direction when point is inside a run of whitespace characters.
1644
1645 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1646
e66f9a1b
JR
16472010-08-14 Jason Rumney <jasonr@gnu.org>
1648
1649 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1650
79d6f59e
CY
16512010-08-14 Chong Yidong <cyd@stupidchicken.com>
1652
1653 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1654
1c9b4129
JR
16552010-08-13 Jason Rumney <jasonr@gnu.org>
1656
1657 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1658 (MessageBoxW_Proc): New function typedef.
1659 (unicode-message-box): New function pointer.
1660 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1661
2b4e6277
J
16622010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1663
1664 * frame.h (Qtool_bar_position): Declare.
1665
1666 * xfns.c (Fx_create_frame): Call x_default_parameter for
1667 Qtool_bar_position.
1668
94c97d85
EZ
16692010-08-13 Eli Zaretskii <eliz@gnu.org>
1670
8ee81892
EZ
1671 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1672 (report_error, report_error_1): Ditto.
1673 (write_segment): Remove "#if 0" unused code.
1674 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1675 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1676 (start_of_text): Remove unused function (was used only if NO_REMAP
1677 was NOT defined).
1678
891ef8f7
EZ
1679 * msdos.c (IT_set_face): Fix format string to match argument
1680 types.
1681 (IT_write_glyphs, IT_note_mode_line_highlight)
1682 (IT_set_frame_parameters): Remove unused variables.
1683 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1684 (IT_set_terminal_modes): Disambiguate expression in if clause.
1685 (Fmsdos_remember_default_colors): Return Qnil.
1686 (IT_set_frame_parameters): Add parens to disambiguate boolean
1687 expression for logging the cursor type to termscript.
1688 (keyboard_layout_list, keypad_translate_map)
1689 (grey_key_translate_map): Add braces in inner initializers.
1690 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1691 (dos_rawgetc): Remove unused label.
1692 (XMenuActivate): Add braces to remove ambiguous `else'.
1693 (dos_ttraw): Always return a value.
1694 (spawnve): Declare.
1695 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1696
1697 * dosfns.h (x_set_title): Declare.
1698
1699 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1700 Remove unused variables.
1701
1702 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1703 variables.
1704 (init_dosfns): Declare get_lim_data.
1705 (system_process_attributes): Declare Fget_internal_run_time.
1706
38e41e0e
EZ
1707 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1708 list to be consistent with menu.h.
1709
94c97d85
EZ
1710 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1711 warnings due to mixing of "char *" and "const char *".
1712
c5683ceb
SM
17132010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1714
1715 Introduce a new comment style "c" flag.
1716 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1717 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1718 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1719 (syntax_prefix_flag_p): New function.
1720 (Fstring_to_syntax): Understand new "c" flag.
1721 (Finternal_describe_syntax_value): Recognize new flag; use the
1722 SYNTAX_FLAGS_* macros.
1723 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1724 comment style to accomodate the new styles.
1725 (back_comment, forw_comment, Fforward_comment, scan_lists)
1726 (scan_sexps_forward): Update code to obey the new comment style flag.
1727
1728 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1729
1730 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1731
7aee76f4
J
17322010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1733
3a46642b
J
1734 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1735 first.
94dff98f 1736 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
1737
1738 * gtkutil.h (xg_check_special_colors): Declare.
1739
1740 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1741 (xg_create_frame_widgets): Connect theme name changes to
1742 style_changed_cb.
1743
42ca4633
J
1744 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1745 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1746 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 1747 string literal. file is const char*.
42ca4633
J
1748
1749 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1750 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1751 props. Free them at the end.
1752
1753 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1754
c5683ceb
SM
1755 * xrdb.c (get_system_app): Make path const and use char *p for
1756 non-const char.
42ca4633
J
1757
1758 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 1759 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
1760 char *.
1761 (button_names): Is const char *.
1762 (xdialog_show): error_name and pane_string is const.
1763
1764 * process.h (synch_process_death): Is const char*.
1765
1766 * w32menu.c (w32_menu_show):
1767 * nsmenu.m (ns_menu_show): error parameter is const char **.
1768
1769 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1770 is const char **.
1771
1772 * menu.c (Fx_popup_menu): error_name is const.
1773
1774 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1775 with unsigned char and XtPointer with void *.
1776
1777 * gtkutil.h: Replace widget_value with struct _widget_value.
1778 (enum button_type, struct _widget_value): Remove and use the one from
1779 keyboard.h.
1780
1781 * gtkutil.c (get_utf8_string): Always return an allocated string.
1782 Parameter is const.
1783 (create_dialog, xg_create_one_menuitem, create_menus)
1784 (xg_item_label_same_p, xg_update_menu_item): Free result from
1785 get_utf8_string.
1786 (xg_separator_p, xg_item_label_same_p): label is const.
1787
1788 * font.h (font_open_by_name): Make name const.
1789
1790 * font.c (font_open_by_name): Make name const.
1791
1792 * floatfns.c (matherr): Use a const char* variable for x->name.
1793
1794 * emacs.c (main): Pass char[] to putenv instead of literal.
1795
1796 * callproc.c (synch_process_death): Make const.
1797 (Fcall_process): Make signame const.
1798
9c5bd55a
J
1799 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1800 (addDisplayItemWithImage): Use const char*.
1801
1802 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1803 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1804
1805 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1806
1807 * keyboard.h (_widget_value): name, value and key are const char*.
1808
7aee76f4
J
1809 * unexmacosx.c (unexec_error): Use const char *.
1810
09d93395
DN
18112010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1812
1813 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1814 (font_parse_name, font_open_by_name):
09d93395 1815 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1816 (font_parse_name, font_open_by_name): Remove const.
09d93395 1817
671d409f
AS
18182010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1819
1820 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1821 definition.
1822
1823 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1824 * m/amdx86-64.h: Likewise.
1825 * m/arm.h: Likewise.
1826 * m/hp800.h: Likewise.
1827 * m/ia64.h: Likewise.
1828 * m/ibmrs6000.h: Likewise.
1829 * m/ibms390.h: Likewise.
1830 * m/intel386.h: Likewise.
1831 * m/iris4d.h: Likewise.
1832 * m/m68k.h: Likewise.
1833 * m/macppc.h: Likewise.
1834 * m/mips.h: Likewise.
1835 * m/sh3.h: Likewise.
1836 * m/sparc.h: Likewise.
1837 * m/template.h: Likewise.
1838 * m/vax.h: Likewise.
1839 * m/xtensa.h: Likewise.
1840 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1841 WORDS_BIG_ENDIAN.
1842 * lisp.h: Likewise.
1843 * md5.c: Likewise.
1844 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1845
8ea90aa3
DN
18462010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1847
1848 Use const char* instead of char*.
1849 Reduce the number of warnings with -Wwrite-strings.
1850 * xrdb.c (get_environ_db, get_system_name):
1851 * unexelf.c (find_section):
1852 * term.c (string_cost, string_cost_one_line, per_line_cost)
1853 (get_named_tty, init_tty):
1854 * sysdep.c (sys_subshell):
1855 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1856 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1857 * search.c (Freplace_match):
1858 * process.c (Fmake_network_process, send_process, init_process):
1859 * lread.c (Fload, init_lread):
1860 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1861 * keyboard.c (parse_tool_bar_item, struct event_head):
1862 * gtkutil.h (xg_get_font_name):
1863 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1864 (make_widget_for_menu_item, make_menu_item, create_menus)
1865 (xg_make_tool_item):
1866 * font.c (parse_matrix, font_parse_name):
1867 * floatfns.c (rounding_driver, float_error_fn_name):
1868 * filelock.c (get_boot_time_1, lock_file_1):
1869 * fileio.c (barf_or_query_if_file_exists, check_writable):
1870 * editfns.c (get_system_name, get_operating_system_release)
1871 (Fencode_time, Fset_time_zone_rule):
1872 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1873 * buffer.c (defvar_per_buffer): Use const.
1874
7815fe19 18752010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1876
692f3ddc 1877 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1878 (struct charset_sort_data): New struct.
1879 (charset_compare): New function.
692f3ddc 1880 (Fsort_charsets): New function.
7a84eee5
KH
1881 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1882
1883 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1884 number in CTEXT extended segment.
1885
7815fe19 18862010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1887
1888 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1889 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1890
7815fe19 18912010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1892
1893 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1894 (Fhash_table_size): Fix typos in docstrings.
1895 (Fmake_hash_table): Doc fix.
1896
7815fe19 18972010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1898
1899 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1900 Doc fix (bug#5625).
1901
7815fe19 19022010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1903
1904 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1905 the MSDOS definition.
1906
1b6d8cf0
DN
19072010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1908
675e2c69
DN
1909 Use const char* instead of char*.
1910 * xterm.c (x_create_toolkit_scroll_bar):
1911 * xfont.c (xfont_list_pattern):
1912 * xfns.c (x_default_scroll_bar_color_parameter)
1913 (xic_create_fontsetname, x_default_font_parameter)
1914 (x_screen_planes):
1915 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1916 (store_mode_line_string, decode_mode_spec, display_string):
1917 * menu.c (digest_single_submenu):
1918 * keymap.h (initial_define_key, initial_define_lispy_key):
1919 * keymap.c (initial_define_key, initial_define_lispy_key):
1920 * image.c (image_error, image_keyword):
1921 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1922 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1923 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1924 (ftfont_list, ftfont_match):
1925 * frame.c (frame_parm_table):
1926 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1927 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1928 (font_add_log, font_deferred_log):
1929 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1930 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1931 (font_add_log, font_deferred_log):
1932 * emacs.c (argmatch):
1933 * dispextern.h (struct it):
1934 * coding.c (ENCODE_DESIGNATION):
1935 * charset.c (define_charset_internal): Use const.
1936
25717ca1
DN
1937 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1938
c5683ceb
SM
1939 * xrdb.c: Remove include guard.
1940 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1941 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1942 realloc->xrealloc instead of using #defines.
1943
efb41e21
EZ
19442010-08-08 Eli Zaretskii <eliz@gnu.org>
1945
cd21226d 1946 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1947 * editfns.c (Fline_beginning_position, Fline_end_position):
1948 State in the doc strings that start and end of line are in the
1949 logical order.
cd21226d 1950
efb41e21
EZ
1951 * xdisp.c (display_line): Move the handling of overlay arrow after
1952 the call to find_row_edges. (Bug#6699)
1953
746812d9
CY
19542010-08-07 Chong Yidong <cyd@stupidchicken.com>
1955
1956 * keyboard.c (command_loop_1):
1957 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1958
9852377f
CY
19592010-08-07 Chong Yidong <cyd@stupidchicken.com>
1960
1961 * insdel.c (prepare_to_modify_buffer): Save active region text to
1962 Vsaved_region_selection.
1963
1964 * xselect.c (QPRIMARY): Move to keyboard.c.
1965
1966 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1967 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1968 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1969
0e9c8657
JB
19702010-08-07 Juanma Barranquero <lekktu@gmail.com>
1971
1972 * alloc.c (lisp_malloc):
1973 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1974 * charset.h (emacs_mule_charset):
1975 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1976 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1977 (bitch_at_user):
1978 * lisp.h (Fcheck_coding_system, Fget_text_property)
1979 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1980 Remove duplicate declarations.
1981
648801d1
DN
19822010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1983
32bc6709
DN
1984 * process.c: Simplify include logic.
1985
3ef1d108
DN
1986 * keyboard.h (quit_char): Add declaration.
1987 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1988 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1989 Add declarations.
3ef1d108
DN
1990 * sysdep.c:
1991 * w32.c: Remove the above declarations.
1992
97ec208f
DN
1993 Remove extern declarations in .c files, .h files have them.
1994 * xterm.c:
1995 * xdisp.c:
97ec208f
DN
1996 * msdos.c:
1997 * image.c:
1998 * gtkutil.c:
1999 * fileio.c:
2000 * eval.c: Remove declarations.
2001
94eed851
DN
2002 * frame.c (frame_params): Make const.
2003
36e053eb
DN
2004 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
2005
0e843971
DN
2006 * emacs.c (emacs_copyright, emacs_version): Make static.
2007 (Vinitial_window_system, Vauto_save_list_file_name)
2008 (Vinhibit_redisplay): Remove declarations.
2009 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
2010 for AIX.
2011
648801d1
DN
2012 Use const for some arrays and functions.
2013 * xterm.h (xg_set_icon_from_xpm_data):
2014 * xfns.c (xg_set_icon_from_xpm_data):
2015 * term.c (fkeys):
2016 * keyboard.c (lispy_accent_keys, lispy_function_keys)
2017 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
2018 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
2019 (frame.c frame_parms):
2020 * emacs-icon.h (gnu_xpm_bits):
2021 * callint.c (callint_argfuns): Use const.
2022
8646d999
J
20232010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2024
2025 * sysdep.c: Move include term.h last of includes (Bug#6812).
2026
cb4545ad
EZ
20272010-08-06 Eli Zaretskii <eliz@gnu.org>
2028
2029 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
2030
2031 * msdos.c (IT_display_cursor): Log cursor position on termscript.
2032
2033 * .gdbinit (pgx): Display the avoid_cursor_p flag.
2034
da7e2be6
JB
20352010-08-06 Juanma Barranquero <lekktu@gmail.com>
2036
2037 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
2038
3d608a86
J
20392010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2040
7908fb60
J
2041 * xterm.h (x_get_focus_frame): Declare.
2042
2043 * keyboard.h (poll_for_input_1): Unconditionally declare.
2044
4094bf36
J
2045 * nsterm.h (x_set_menu_bar_lines): Declare.
2046
2047 * window.c: Don't include menu.h, it depends on lots of other .h-files.
2048
3d608a86
J
2049 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
2050
2051 * window.c: Include menu.h.
2052
2053 * unexmacosx.c (print_region_list, print_regions)
2054 (build_region_list, find_emacs_zone_regions)
2055 (unexec_regions_merge, read_load_commands, dump_it)
2056 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
2057
2058 * term.c: Check HAVE_SYS_IOCTL_H.
2059
686b968e 2060 * sysdep.c: Check HAVE_TERM_H.
3d608a86 2061
686b968e 2062 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
2063
2064 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
2065 (ns_ring_bell, ns_defined_color, hide_hourglass)
2066 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
2067 Convert to ANSI C prototypes.
2068 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
2069 before code.
2070
2071 * nsterm.h : Include sysselect.h.
2072 (x_sync, x_get_focus_frame, x_set_mouse_position)
2073 (x_set_mouse_pixel_position, x_make_frame_visible)
2074 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
2075 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
2076 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
2077 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 2078 Declare.
3d608a86
J
2079
2080 * nsmenu.m (popup_activated, name_is_separator)
2081 (syms_of_nsmenu): Convert to ANSI C prototypes.
2082 (runMenuAt): Prototypes and move declarations before code.
2083
2084 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
2085
2086 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
2087 prototypes.
2088
2089 * nsfns.m (have_menus_p, ns_display_info_for_name)
2090 (x_set_cursor_type, ns_appkit_version_str)
2091 (ns_appkit_version_int, ns_do_applescript)
2092 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
2093 (syms_of_nsfns): Convert to ANSI C prototypes.
2094
2095 * menu.h (x_set_menu_bar_line): Declare.
2096 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
2097
2098 * lisp.h (fmod_float): Declare.
2099
2100 * image.c (xpm_scan, xpm_make_color_table_v)
2101 (xpm_put_color_table_v, xpm_get_color_table_v)
2102 (xpm_make_color_table_h, xpm_put_color_table_h)
2103 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
2104 (xpm_load): Convert to ANSI C prototypes.
2105
2106 * emacs.c: Include nsterm.h if HAVE_NS.
2107
2108 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
2109
fce70521
DN
21102010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2111
2112 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
2113 subprocesses, only MSDOS does not define HAVE_SOCKETS.
2114 (socket_options): Use const char* for name.
2115
a11889ab
JB
21162010-08-06 Juanma Barranquero <lekktu@gmail.com>
2117
2118 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
2119
2120 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
2121 Don't declare xmalloc_widget_value and digest_single_submenu.
2122
2123 * w32font.c (Qlatin): Remove declaration.
2124
2125 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
2126
c95b508f 2127 * dired.c (compile_pattern): Restore declaration.
a11889ab 2128
6254cdda
DN
21292010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
2130
04bab72c
DN
2131 Remove extern declarations in .c files, .h files have them.
2132 * data.c:
2133 * dired.c:
2134 * editfns.c:
2135 * filelock.c:
2136 * fns.c:
2137 * font.c:
2138 * fontset.c:
2139 * frame.c:
2140 * fringe.c:
2141 * ftfont.c:
2142 * gtkutil.c:
2143 * indent.c:
2144 * keyboard.c:
2145 * keymap.c:
2146 * lread.c:
2147 * menu.c:
2148 * print.c:
2149 * search.c:
2150 * sound.c:
2151 * window.c:
2152 * xdisp.c:
2153 * xfaces.c:
2154 * xfns.c:
2155 * xfont.c:
2156 * xftfont.c:
2157 * xmenu.c:
2158 * xterm.c: Remove declarations.
2159
dff94ed5
DN
2160 Cleanup syssignal.h.
2161 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
2162 (main_thread): Move down to remove #ifdef.
2163 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
2164 Remove conditional definition following unconditional ones.
2165
99f3388e
DN
2166 * lisp.h: Remove HAVE_SHM code, unused.
2167 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
2168 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
2169 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
2170 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
2171 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
2172 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
2173 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
2174 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
2175 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
2176 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
2177 (Qwindow_scroll_functions, Vafter_load_alist)
2178 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
2179 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
2180 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
2181 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
2182 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
2183 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
2184 (initial_argv, last_nonmenu_event, load_in_progress)
2185 (noninteractive_need_newline, scroll_margin): Add declarations.
2186
2187 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
2188 declarations, menu.h has them.
2189 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
2190 (Vinput_method_function, Qinput_method_function)
2191 (Qevent_symbol_element_mask, last_event_timestamp):
2192 * dispextern.h (Voverflow_newline_into_fringe):
2193 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
2194 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
2195 (syms_of_w32font, syms_of_nsfont):
2196 * fontset.h (find_font_encoding, Qlatin):
2197 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
2198 (Vtool_bar_mode, set_frame_menubar):
2199 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
2200 * xterm.h (Qx_gtk_map_stock):
2201 * keymap.h (meta_prefix_char): Add declarations.
2202
9f5dd6f2
DN
2203 * term.c: Remove dead code.
2204
6254cdda
DN
2205 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
2206 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
2207 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
2208 which is what was there before BSD_PGRPS was removed.
2209
29cf3e20
EZ
22102010-08-05 Eli Zaretskii <eliz@gnu.org>
2211
2212 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
2213
2214 * unexcoff.c: Renamed from unexec.c.
2215
aaa0a19a
SM
22162010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2217
2218 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
2219
8d1d9587
JB
22202010-08-03 Johan Bockgård <bojohan@gnu.org>
2221
2222 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 2223 (Bug#6744)
8d1d9587 2224
9a747ba6
JD
22252010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2226
4d464ae4
JD
2227 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
2228 to TRUE if depth of screen is < 16.
2229
ac01763e
JD
2230 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
2231 USE_GTK_TOOLTIP.
e0d62a9b
JB
2232 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
2233 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 2234 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
2235 USE_GTK_TOOLTIP.
2236 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
2237
2238 * xterm.h (USE_GTK_TOOLTIP): New define.
2239 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
2240
9a747ba6
JD
2241 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
2242 to Control-D (Bug#6771).
2243
7b0815ba
JB
22442010-08-02 Juanma Barranquero <lekktu@gmail.com>
2245
2246 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
2247 Wording by Drew Adams <drew.adams@oracle.com>.
2248
aa1859f5
J
22492010-08-01 Jan Djärv <jan.h.d@swipnet.se>
2250
2251 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
2252 ttip_lbl.
2253
2254 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
2255 calling gtk_widget_queue_draw.
2256 (x_free_frame_resources): Call xg_free_frame_widgets.
2257
2258 * xfns.c (x_gtk_use_system_tooltips): New variable.
2259 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
2260 new gtkutil tooltip functions to show the tooltip.
2261 (Fx_hide_tip): Call xg_hide_tooltip.
2262 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
2263
2264 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
2265 (xg_show_tooltip, xg_hide_tooltip): Declare.
2266
2267 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
2268 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
2269 New functions.
aa1859f5
J
2270 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
2271 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
2272 Remove code that is commented out.
2273
76417ef4
SM
22742010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
2275
2276 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
2277
16041401
CY
22782010-07-31 Chong Yidong <cyd@stupidchicken.com>
2279
2280 * xselect.c (x_own_selection): Use list4.
2281
2c09a58f
DN
22822010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2283
2284 * buffer.c (Qwindow): Do not define, already defined in data.c.
2285 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
2286
59df9fdd 22872010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 2288
59df9fdd
JB
2289 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2290 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2291 * config.in: Undef HAVE_DIRENT_H.
1c97e857 2292 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 2293 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 2294
1b231651
DN
22952010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2296
2297 Rename s/usg5-4.h -> s/usg5-4-common.h.
2298 * s/usg5-4.h: Rename file to ...
2299 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2300 * s/unixware.h:
2301 * s/sol2-6.h:
2302 * s/irix6-5.h: Update includes accordingly.
2303
bfeabdc3
JD
23042010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2305
2ebf1083
J
2306 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2307
bfeabdc3 2308 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
2309 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2310 Remove toolbar_height.
2311 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
2312 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2313 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2314 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2315
2316 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2317
2318 * xfns.c (x_set_tool_bar_position): New function.
2319 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2320 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 2321 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
2322
2323 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2324 and FRAME_TOOLBAR_LEFT_WIDTH.
2325
2326 * gtkutil.h (xg_change_toolbar_position): Declare.
2327
2328 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2329 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2330 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2331 (xg_create_frame_widgets): Create a hobox for placing widgets
2332 vertically. Use gtk_box_pack_start.
2333 (xg_height_or_width_changed): Renamed from xg_height_changed.
2334 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2335 (xg_update_frame_menubar, free_frame_menubar): Change to
2336 xg_height_or_width_changed.
2337 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2338 size correctly. Remove hardcoded 4, instead use handlebox size -
2339 toolbar size.
2340 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 2341 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
2342 (xg_pack_tool_bar): POS is a new parameter.
2343 Set orientation of tool bar based on pos.
2344 Only make handlebox_widget if NULL.
2345 Check if tool bar goes to vbox or hbox depending on pos.
2346 (xg_update_tool_bar_sizes): New function.
686b968e 2347 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
2348 height, call xg_update_tool_bar_sizes instead.
2349 (free_frame_tool_bar): Remove from hbox or vbox depending on
2350 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2351 (xg_change_toolbar_position): New function.
2352
2353 * frame.h (struct frame): Add tool_bar_position.
2354 (Qbottom): Declare.
2355
2356 * frame.c (Qtool_bar_position): New variable.
2357 (make_frame): Set tool_bar_position to Qtop.
2358 (frame_parms): Add tool-bar-position.
2359 (x_report_frame_params): Store tool_bar_position.
2360 (x_set_fringe_width): Reset wm size hint after fringe changes.
2361
26469a38
DN
23622010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2363
2364 Make lisp_time_argument declaration work on all systems.
2365 * lisp.h (lisp_time_argument): Move declaration ...
2366 * systime.h (lisp_time_argument): ... here
2367 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2368
8848b728
JD
23692010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2370
2371 * vm-limit.c (POINTER): Add typedef for it.
2372 (start_of_data): Change return type from POINTER to char *.
2373
2374 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2375 HAVE_WINDOW_SYSTEM.
2376
76fd1ee9
DN
23772010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2378
0441987e
DN
2379 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2380 Remove reference to __osf__, unused.
2381
56a000c7
DN
2382 * mem-limits.h: Remove duplicated includes.
2383 (NULL): Remove definition, unused.
2384 (POINTER): Remove definition.
2385 (start_of_data): Use char* in prototype, as the function
2386 definition does.
2387
e6cba650
DN
2388 Remove extern declarations from .c files, and them to .h files.
2389 * keyboard.h (Qhelp_echo, waiting_for_input)
2390 (input_available_clear_time, ignore_mouse_drag_p)
2391 (Vdouble_click_time, real_this_command, Vthis_original_command):
2392 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2393 (Voverriding_local_map_menu_flag):
2394 * lisp.h (Qinteractive_form, use_file_dialog)
2395 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2396 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2397 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2398 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2399 (Qfunction, debug_on_next_call, Qfield)
2400 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2401 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2402 (Qfile_directory_p, Qinsert_file_contents)
2403 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2404 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2405 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2406 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2407 (Qminibuffer_prompt)
2408 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2409 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2410 (gray_bitmap_bits, xic_create_fontsetname):
2411 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2412
2413 * xsmfns.c (Vuser_login_name):
2414 * xrdb.c (Vdouble_click_time):
2415 * xfaces.c (xic_create_fontsetname):
2416 * w32select.c (waiting_for_input):
2417 * print.c (minibuffer_auto_raise):
2418 * msdos.c (Qhelp_echo):
2419 * macros.c (real_this_command):
2420 * keymap.c (Voverriding_local_map):
2421 * xterm.c (poll_for_input_1, gray_bitmap_width)
2422 (gray_bitmap_height, gray_bitmap_bits;
2423 * xmenu.c ( Voverriding_local_map)
2424 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2425 (use_file_dialog, Xt_app_con):
2426 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2427 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2428 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2429 (Qtool_bar_lines, ignore_mouse_drag_p):
2430 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2431 (Qrear_nonsticky, nconc2):
2432 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2433 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2434 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2435 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2436 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2437 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2438 (gc_in_progress):
2439 * doc.c (Voverriding_local_map, Qremap):
2440 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2441 (Vcompletion_regexp_list):
2442 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2443 (Qcompletion_ignore_case):
2444 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2445 (Vhistory_length, Vthis_original_command, real_this_command)
2446 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2447 * image.c (Qrisky_local_variable):
2448 * fontset.c (QCname):
2449 * fns.c (minibuffer_auto_raise, QCname):
2450 * dispnew.c (char_ins_del_cost):
2451 * composite.c (font_fill_lglyph_metrics):
2452 * cmds.c (Qface, Vtranslation_table_for_input):
2453 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2454 * ccl.c (charset_unicode):
2455 * callproc.c (Vtemporary_file_directory):
2456 * buffer.c (emacs_strerror): Remove extern declarations.
2457
2458 * data.c (Qwindow): Make non-static, used from other files too.
2459 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2460
76fd1ee9
DN
2461 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2462 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2463 * s/usg5-4.h (COFF):
2464 * s/template.h:
2465 * s/msdos.h (COFF, NO_REMAP):
2466 * s/ms-w32.h (NO_REMAP):
2467 * s/hpux10-20.h (NO_REMAP):
2468 * m/sparc.h (SEGMENT_MASK):
2469 * m/m68k.h (NO_REMAP):
2470 * m/intel386.h (SEGMENT_MASK):
2471 * m/arm.h (NO_REMAP):
2472 * m/alpha.h (COFF):
2473 * m/template.h: Remove references to unused defines.
2474
8a52f00a
JD
24752010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2476
2477 * xsettings.c (Ftool_bar_get_system_style): Also check for
2478 Qtext_image_horiz.
2479
2480 * xdisp.c (Qtext_image_horiz): Define.
2481 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 2482 to documentation of tool-bar-style.
8a52f00a
JD
2483
2484 * lisp.h (Qtext_image_horiz): Declare.
2485
2486 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2487 style text_image_horiz.
2488
89dc303e
DN
24892010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2490
60799703
DN
2491 * emacs.c (Fkill_emacs): Remove return statement.
2492
37254dc1
DN
2493 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2494 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2495 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2496 local extern declarations.
2497
71c7345a
DN
2498 * xmenu.c: Do not included lwlib.h, not needed.
2499
6ba577cb
DN
2500 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2501
fdb183d6
DN
2502 * process.c: Move definitions earlier to minimize #ifdefs.
2503
2504 * xterm.h (x_get_customization_string, x_load_resources)
2505 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2506 (x_check_errors, x_property_data_to_lisp, defined_color)
2507 (xic_set_xfontset, x_defined_color): Use const.
2508
2509 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2510 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2511
2512 * xselect.c (selection_data_to_lisp_data)
2513 (x_property_data_to_lisp):
2514 * xrdb.c (x_get_string_resource, file_p)
2515 (x_get_customization_string, magic_file_p, search_magic_path)
2516 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2517 (x_get_string_resource): Use const.
2518
2519 * xfns.c: Include xlwmenu.h when USE_LUCID.
2520 (x_defined_color, xic_set_xfontset): Use const.
2521 (Fx_hide_tip): Remove local extern declaration.
2522
2523 * xfaces.c (Qmouse_face): Remove declaration.
2524 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 2525 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
2526
2527 * xdisp.c (do_mouse_tracking): Remove declaration.
2528 (add_to_log): Use const.
2529
2530 * minibuf.c (Qmouse_face): Remove declaration.
2531
2532 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2533
2534 * keyboard.h (do_mouse_tracking): Add declaration.
2535
2536 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2537 (QCdata, QCtype, Qcenter): Remove declarations.
2538
2539 * frame.c (x_get_resource_string, x_get_string_resource)
2540 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2541 (x_default_parameter): Use const.
2542
2543 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2544 (QCheight, QCsize, QCname): Remove declarations.
2545
2546 * emacs.c (main): Remove local extern declaration.
2547
2548 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2549 declarations.
2550
2551 * dispnew.c: Remove duplicate #include <unistd.h>.
2552 (update_window, update_frame_1, init_display): Remove local extern
2553 declarations.
2554
2555 * dispextern.h (add_to_log): Remove declaration.
2556 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2557 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2558
2559 * dired.c (scmp): Add const.
2560 (directory_files_internal): Remove local extern declaration.
2561
2562 * data.c (Finteractive_form): Use const.
2563
2564 * composite.c (syms_of_composite): Remove local extern declarations.
2565
2566 * charset.c (add_to_log): Remove declaration.
2567
2568 * character.c (strwidth, parse_str_to_multibyte): Add const.
2569
2570 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2571
2572 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2573
89dc303e 2574 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
2575 (Lisp_Subr): Make doc and intspec constant.
2576 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2577 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2578 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2579 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2580 (display_arg): Add declarations.
89dc303e 2581
0ed082fe 25822010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
2583
2584 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2585
0ed082fe
JB
2586 * window.c (Fwindow_height): Doc fix (bug#6518).
2587
25882010-07-27 Juanma Barranquero <lekktu@gmail.com>
2589
2590 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2591
ccaf0336
DN
25922010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2593
977105dc
DN
2594 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2595 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2596 functions.
2597
f5ada890
DN
2598 * frame.h (Qtty_color_mode): Add declaration.
2599
ccaf0336
DN
2600 * lisp.h (Ftop_level, Fexit_recursive_edit)
2601 (Fabort_recursive_edit): Mark as NO_RETURN.
2602
dfe3c90f
KH
26032010-07-26 Kenichi Handa <handa@m17n.org>
2604
2605 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 2606 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 2607
7d383292
JB
26082010-07-26 Juanma Barranquero <lekktu@gmail.com>
2609
2610 * lread.c (unreadpure, mapatoms_1): Make static.
2611
da31e629
JB
26122010-07-25 Juanma Barranquero <lekktu@gmail.com>
2613
2614 * terminfo.c (tparam): Fix prototype of tparm.
2615
7bfa6d77
AS
26162010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2617
dcc19aac
AS
2618 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2619 find start of text segment.
2620 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2621 is defined.
2622
7bfa6d77
AS
2623 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2624
63f9a672
KB
26252010-07-25 Ken Brown <kbrown@cornell.edu>
2626
2627 * vm-limit.c (check_memory_limits): Fix previous change;
2628 accidentally reverted an earlier change.
2629
24933075
KB
26302010-07-25 Ken Brown <kbrown@cornell.edu>
2631
2632 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2633 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2634
361358ea
JB
26352010-07-25 Juanma Barranquero <lekktu@gmail.com>
2636
2637 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2638 * dired.c (opendir, readdir): Fix prototypes.
2639 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2640 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2641 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2642 (telldir): Remove declaration.
2643 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2644 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2645 * syssignal.h (strsignal): Fix prototype.
2646 * term.c (tparam): Fix prototype.
2647 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2648 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2649 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2650 and __morecore.
2651 * w32gui.h (XParseGeometry): Fix prototype.
2652 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2653 * w32term.c (my_set_focus): Declare inside #if 0.
2654 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2655 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2656 (drain_message_queue, get_next_msg, post_msg, parse_button)
2657 (ClipboardSequence_Proc): Fix prototypes.
2658 (wait_for_sync): Remove declaration.
2659
630b9592
JB
26602010-07-24 Juanma Barranquero <lekktu@gmail.com>
2661
2662 * w32fns.c (w32_to_x_color): Remove, unused.
2663
6a0d6611
AS
26642010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2665
2666 * lisp.h: Remove leftover P_.
2667
4e8608ff
DN
26682010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2669
2670 * ecrt0.c, unexalpha.c: Remove files, unused.
2671
c8197983
AS
26722010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2673
2674 * cmds.c (internal_self_insert): Make static.
2675 * lisp.h (internal_self_insert): Remove declaration.
2676
97b372d7
JB
26772010-07-23 Juanma Barranquero <lekktu@gmail.com>
2678
33ac0414
JB
2679 * alloc.c (free_float):
2680 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2681 * frame.c (delete_frame_handler):
2682 * ralloc.c (reorder_bloc):
2683 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2684 Remove unused static functions.
2685
94da8397
JB
2686 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2687 it is called only from NS code.
2688
2e6c8532
JB
2689 * w32term.c (my_set_focus): #ifdef away; it is called only from
2690 "#ifdef 0" code.
2691
97b372d7
JB
2692 * w32fns.c (x_edge_detection):
2693 * xfaces.c (may_use_scalable_font_p):
2694 Remove obsolete static declarations.
2695
7c3320d8
JB
26962010-07-20 Juanma Barranquero <lekktu@gmail.com>
2697
2698 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2699 (emacs_blocked_realloc, uninterrupt_malloc):
2700 * fringe.c (w32_reset_fringes):
2701 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2702 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2703 * sound.c (be2hs, do_play_sound):
2704 * vm-limit.c (get_lim_data, ret_lim_data):
2705 * w32term.c (x_free_frame_resources):
2706 * xfaces.c (x_create_gc, x_free_gc):
2707 Convert definitions to standard C.
2708
d5273788
SM
27092010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2710
2711 * eval.c (Feval, Ffuncall): Use the new names.
2712
2713 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2714 (DEFUN): Add braces around the union initialisation and use ## to
2715 specify the right union alternative and avoid a cast.
2716
8d16a259
JB
27172010-07-18 Juanma Barranquero <lekktu@gmail.com>
2718
2719 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2720
3b8eff32
CY
27212010-07-17 Chong Yidong <cyd@stupidchicken.com>
2722
2723 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2724
499322ce
J
27252010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2726
2727 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2728 is related to the menu bar (Bug#6499).
a628ad9d 2729 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 2730
f6003da5 27312010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
2732
2733 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2734
2735 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2736
2737 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2738 i.e. don't put back ButtonRelease (Bug#6608).
2739
2740 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2741 instead of Window. Call xg_event_is_for_menubar when
2742 USE_GTK (Bug#6499).
2743
2744 * gtkutil.h (xg_event_is_for_menubar): Declare.
2745
2746 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2747
f6003da5 27482010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
2749
2750 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2751 when it's the same as the old foreground. (Bug#6609)
2752
23243f29
J
27532010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2754
2755 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2756 widget is non-null (Bug#6645).
2757
2b23d2a6
AS
27582010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2759
01b564ff
AS
2760 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2761 Convert old-style definition.
2762
2b23d2a6
AS
2763 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2764 timestamp argument.
2765
c4affd2c
EZ
27662010-07-15 Eli Zaretskii <eliz@gnu.org>
2767
2768 * fringe.c (update_window_fringes): Restore mistakenly reverted
2769 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2770
cf28cebc
J
27712010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2772
2773 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2774 (SET_SAVED_KEY_EVENT): Remove (not used).
2775 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2776 remove size parameter.
2777 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2778 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2779 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2780 ButtonRelease.
6b2c4bd9
J
2781 (x_set_window_size_1): scroll_bar_actual_width is always
2782 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2783
2784 * xdisp.c (pending_menu_activation): Remove extern declaration.
2785 (prepare_menu_bars): Remove setting of pending_menu_activation.
2786
2787 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2788 (x_activate_menubar): Set popup_activated_flag for Xt also.
2789 Remove setting of pending_menu_activation.
cf28cebc
J
2790 (set_frame_menubar): Remove check of pending_menu_activation.
2791 Declare menubar_size before code. Correct spelling in comment.
2792
f6c1c771
KH
27932010-07-14 Kenichi Handa <handa@m17n.org>
2794
2795 * font.c (font_open_entity): Cancel previous change.
2796 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2797
20477505
EZ
27982010-07-13 Eli Zaretskii <eliz@gnu.org>
2799
77defa9a
EZ
2800 Remove subprocesses #ifdefs.
2801 * process.c <inhibit_sentinels>: Move to the common part.
2802 (Fwaiting_for_user_input_p): Move to the common part; return nil
2803 if async subprocesses aren't supported.
2804 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2805 MS-DOS. Remove "#ifdef subprocesses".
2806 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2807 (gettimeofday): Remove "#ifdef subprocesses".
2808 (wait_without_blocking): Remove function.
2809 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2810 Remove "#ifdef subprocesses".
2811 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2812 compiled on MS-DOS.
2813 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2814 wait_for_termination on MS-DOS.
2815 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2816 initialization of inhibit_sentinels.
2817 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2818 subprocesses" conditional.
2819 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2820 wait_for_termination, since `buffer' cannot be an integer when
2821 async subprocesses are not supported
2822 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2823 for ifdefing away the call to Fprocess_status.
2824
20477505
EZ
2825 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2826 away the entire body of the function.
2827
b3ffc17c
DN
28282010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2829
01faa934
DN
2830 Remove subprocesses #ifdefs from term.c.
2831 * process.c (add_keyboard_wait_descriptor)
2832 (delete_keyboard_wait_descriptor): Move to common section, do
2833 nothing when subprocesses is not defined.
a628ad9d
JB
2834 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2835 Remove subprocesses #ifdefs.
01faa934 2836
b3ffc17c
DN
2837 Convert maybe_fatal to standard C.
2838 * lisp.h (verror): Declare.
2839 * eval.c (verror): New function containing the code from ...
2840 (error): ... this. Call verror.
2841 * term.c (vfatal): New function containing the code from ...
2842 (fatal): ... this. Call vfatal.
2843 (maybe_fatal): Convert to standard C, use variable number of
2844 arguments. Declare as non-return.
2845 (init_tty): Fix maybe_fatal call.
2846
0521f580
DN
28472010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2848
2849 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2850 (_scroll_bar_note_movement): Convert definitions to standard C.
2851 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2852 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2853
ebd15611
DN
28542010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2855
2856 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2857 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2858 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2859 (xaw_jump_callback, xaw_scroll_callback)
2860 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2861 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2862 definitions to standard C.
2863 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2864 (popup_activate_callback, popup_deactivate_callback)
2865 (menu_highlight_callback, menubar_selection_callback)
2866 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2867 (free_frame_menubar, popup_selection_callback, as)
2868 (create_and_show_popup_menu, dialog_selection_callback)
2869 (create_and_show_dialog):
2870 * xfns.c (hack_wm_protocols, x_window):
2871 * xfaces.c (x_update_menu_appearance):
2872 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2873 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2874 (set_frame_size, update_wm_hints, setup_frame_gcs)
2875 (update_various_frame_slots, update_from_various_frame_slots)
2876 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2877 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2878 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2879
de06a2dd
AS
28802010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2881
a628ad9d 2882 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2883
fc549af9
EZ
28842010-07-12 Eli Zaretskii <eliz@gnu.org>
2885
2886 * process.c (setup_process_coding_systems): Move to the part
2887 shared by non-subprocesses systems, and make its body empty when
2888 subprocesses is not defined.
2889 (close_process_descs): Move to the part shared by non-subprocesses
2890 systems.
1408902e
EZ
2891 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2892 ANSI C.
fc549af9 2893
d5a3eaaf
AS
28942010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2895
2896 * editfns.c (transpose_markers): Convert old-style definition.
2897 * emacs.c (abort, shut_down_emacs, fixup_locale)
2898 (synchronize_system_time_locale)
2899 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2900 * floatfns.c (extract_float, matherr, init_floatfns)
2901 (syms_of_floatfns): Likewise.
2902 * fns.c (make_hash_table): Likewise.
2903 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2904 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2905 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2906 (ftfont_variation_glyphs): Likewise.
2907 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2908 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2909 * lread.c (read_filtered_event): Likewise.
2910 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2911 * process.c (wait_reading_process_output): Likewise.
2912 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2913 * search.c (search_buffer, boyer_moore): Likewise.
2914 * syntax.c (scan_sexps_forward): Likewise.
2915 * xdisp.c (try_scrolling): Likewise.
2916 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2917 (face_at_string_position): Likewise.
2918 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2919 * xselect.c (x_get_window_property, receive_incremental_selection)
2920 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2921 Likewise.
2922 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2923
6f704c76
DN
29242010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2925
ded80a25
DN
2926 * callproc.c (child_setup): Remove subprocesses conditional.
2927 Remove code dealing with SET_EMACS_PRIORITY, unused.
2928
49d937f4 2929 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2930 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2931
2932 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2933 (__do_global_dtors, __main): Use void in definition.
2934 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2935 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2936 the only users from ...
2937 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2938 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2939 (HAVE_VOLATILE): Remove, unused.
2940
6f704c76
DN
2941 Convert more function definitions to standard C.
2942 * xdisp.c (window_box_edges, handle_single_display_spec)
2943 (display_string): Convert definition to standard C.
2944 * scroll.c (do_direct_scrolling, scrolling_1):
2945 * dispnew.c (allocate_matrices_for_frame_redisplay)
2946 (mirrored_line_dance):
2947 * coding.c (code_convert_string):
2948 * charset.c (map_charset_chars):
2949 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2950 (Fregister_ccl_program, Fregister_code_conversion_map):
2951 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2952 (head_table): Make static and const.
2953
e6cfa7c3
AS
29542010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2955
2956 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2957 (PROFILING_LDFLAGS): Set from substitution.
2958 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2959 CFLAGS last.
2960
892dd565
KH
29612010-07-12 Kenichi Handa <handa@m17n.org>
2962
6f2cdcd1
KH
2963 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2964 (shortlisp): Likewise.
2965
892dd565
KH
2966 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2967
2968 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2969 of FONT_ENTITY_INDEX.
2970 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2971 property, get the property value dynamically.
2972 (Ffont_put): Accept font-entity and font-object too.
2973 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2974 return value changed.
2975 (syms_of_font): Adjusted for the above change.
2976
ae96d47a
AS
29772010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2978
c8fc18ee
AS
2979 * blockinput.h: Remove obsolete comment.
2980
89887d67
AS
2981 * lisp.h: Include <stddef.h>.
2982 (OFFSETOF): Don't define.
2983 (VECSIZE): Use offsetof instead of OFFSETOF.
2984 (PSEUDOVECSIZE): Likewise.
2985 * process.c (conv_sockaddr_to_lisp): Likewise.
2986 * alloc.c: Don't include <stddef.h>.
2987 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2988
ae96d47a
AS
2989 * process.c: Remove obsolete comment.
2990
635c0aa1
CY
29912010-07-11 Chong Yidong <cyd@stupidchicken.com>
2992
2993 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2994
a64df650
AS
29952010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2996
8966b757
AS
2997 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2998 index, rindex.
2999 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
3000 * editfns.c (Fuser_full_name, Fformat): Likewise.
3001 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
3002 * fileio.c (Ffile_symlink_p): Likewise.
3003 * filelock.c (current_lock_owner): Likewise.
3004 * font.c (font_parse_name, font_parse_family_registry): Likewise.
3005 * fontset.c (fontset_pattern_regexp): Likewise.
3006 * lread.c (read1): Likewise.
3007 * sysdep.c (init_system_name): Likewise.
3008 * xfns.c (select_visual): Likewise.
3009 * s/hpux10-20.h (index, rindex): Don't define.
3010 * s/ms-w32.h (index): Likewise.
3011 * s/usg5-4.h: Likewise.
3012
cf237e27
AS
3013 * callproc.c (relocate_fd): Use F_DUPFD if defined.
3014
a8fe7202
AS
3015 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
3016 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
3017 (egetenv): Likewise.
3018 * doprnt.c (doprnt): Likewise.
3019 * editfns.c (set_time_zone_rule, format2): Likewise.
3020 * emacs.c (decode_env_path): Likewise.
3021 * eval.c (signal_error, error): Likewise.
3022 * insdel.c (replace_range_2): Likewise.
3023 * keyboard.c (cmd_error_internal): Likewise.
3024 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
3025 * print.c (write_string, write_string_1, print_error_message):
3026 Likewise.
3027 * vm-limit.c (warn_function, memory_warnings): Likewise.
3028 * xdisp.c (message1, message1_nolog, message_with_string)
3029 (vmessage, message, message_nolog): Likewise.
3030 * emacs.c: Remove duplicate declaration.
3031 * keyboard.h: Likewise.
3032 * lisp.h: Update prototypes.
3033
bb8e180f
AS
3034 * eval.c: Fix indentation problem.
3035
83380e65
AS
3036 * keyboard.c: Include "process.h"
3037
a64df650
AS
3038 * eval.c: Remove obsolete noinline declaration.
3039 * fns.c: Likewise.
3040
6a8033e1
KR
30412010-07-11 Ken Raeburn <raeburn@raeburn.org>
3042
3043 * doprnt.c (doprnt): Take a va_list argument instead of count and
3044 pointer.
3045 * eval.c (error): Change to a standard-C variadic function.
3046 * xdisp.c (vmessage): Renamed from message, made static, and
3047 changed to take a va_list argument.
3048 (message): New variadic wrapper.
3049 (message_nolog): Now a variadic function, calling vmessage.
3050 * lisp.h: Include stdarg.h for va_list.
3051 (doprnt, error, message, message_nolog): Decls updated.
3052
462aa963
EZ
30532010-07-11 Eli Zaretskii <eliz@gnu.org>
3054
3055 * process.c (syms_of_process) <delete-exited-processes>: Define
3056 even if !subprocesses.
3057 (delete_exited_processes): Ditto.
3058
3059 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
3060 (delete_exited_processes): Don't define.
3061
48104462
CY
30622010-07-10 Chong Yidong <cyd@stupidchicken.com>
3063
3064 * frame.c (make_frame): Initialize menu_bar_lines and
3065 tool_bar_lines members.
3066 (make_initial_frame, make_terminal_frame): Initialize
3067 menu_bar_lines using value of menu-bar-mode.
3068
3069 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
3070
f388c88a
EZ
30712010-07-10 Eli Zaretskii <eliz@gnu.org>
3072
3073 * process.c: Reshuffle #include's. Condition some of the global
3074 and static variables on `subprocesses'.
3075 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3076 Leave only one implementation.
3077 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
3078 (kill_buffer_processes, Flist_system_processes)
3079 (Fprocess_attributes, init_process, syms_of_process): Unify the
3080 implementations for with subprocesses and without them.
3081
723f5a07
J
30822010-07-09 Jan Djärv <jan.h.d@swipnet.se>
3083
3084 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
3085 correct size for Motif.
3086 (free_frame_menubar): Call x_set_window_size to update frame size.
3087
3088 * xfns.c (x_window): Set borderWidth to 0 for pane and
3089 EmacsFrame. Frame size calculation is wrong otherwise.
3090
2536a4b7
MA
30912010-07-09 Michael Albinus <michael.albinus@gmx.de>
3092
3093 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
3094 allows to suppress errors when polling in Emacs' main loop.
3095 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
3096 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3097 (Fdbus_method_error_internal, Fdbus_send_signal)
3098 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
3099 (Fdbus_register_method): Use it. (Bug#6579)
3100
5842a27b
DN
31012010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3102
3103 * alloc.c: Convert DEFUNs to standard C.
3104 * buffer.c:
3105 * bytecode.c:
3106 * callint.c:
3107 * callproc.c:
3108 * casefiddle.c:
3109 * casetab.c:
3110 * category.c:
3111 * character.c:
3112 * charset.c:
3113 * chartab.c:
3114 * cmds.c:
3115 * coding.c:
3116 * composite.c:
3117 * data.c:
3118 * dbusbind.c:
3119 * dired.c:
3120 * dispnew.c:
3121 * doc.c:
3122 * dosfns.c:
3123 * editfns.c:
3124 * emacs.c:
3125 * eval.c:
3126 * fileio.c:
3127 * filelock.c:
3128 * floatfns.c:
3129 * fns.c:
3130 * font.c:
3131 * fontset.c:
3132 * frame.c:
3133 * fringe.c:
3134 * image.c:
3135 * indent.c:
3136 * insdel.c:
3137 * keyboard.c:
3138 * keymap.c:
3139 * lread.c:
3140 * macros.c:
3141 * marker.c:
3142 * menu.c:
3143 * minibuf.c:
3144 * msdos.c:
3145 * nsfns.m:
3146 * nsmenu.m:
3147 * nsselect.m:
3148 * print.c:
3149 * process.c:
3150 * search.c:
3151 * sound.c:
3152 * syntax.c:
3153 * term.c:
3154 * terminal.c:
3155 * textprop.c:
3156 * undo.c:
3157 * w16select.c:
3158 * w32console.c:
3159 * w32fns.c:
3160 * w32font.c:
3161 * w32menu.c:
3162 * w32proc.c:
3163 * w32select.c:
3164 * window.c:
3165 * xdisp.c:
3166 * xfaces.c:
3167 * xfns.c:
3168 * xmenu.c:
3169 * xselect.c:
3170 * xsettings.c:
3171 * xsmfns.c: Likewise.
3172
d568829b
EZ
31732010-07-08 Eli Zaretskii <eliz@gnu.org>
3174
3175 * process.c (kbd_is_on_hold, hold_keyboard_input)
3176 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
3177
52214050
J
31782010-07-08 Jan Djärv <jan.h.d@swipnet.se>
3179
3180 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
3181 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
3182 unless USE_LUCID.
3183
313d9eb2
DN
31842010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3185
a628ad9d
JB
3186 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
3187 declaration.
d8825aa3 3188
295d0d8f
DN
3189 Clean up include guards.
3190 * tparam.c: Remove include guards for config.h, string.h and code
3191 that assumes #ifndef emacs.
3192 * termcap.c:
3193 * unexalpha.c:
3194 * sysdep.c:
3195 * filemode.c:
3196 * filelock.c:
3197 * bidi.c: Likewise.
3198
49d9e6b0
DN
3199 Remove prefix-args.c
3200 * prefix-args.c: Remove file.
3201 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
3202 * Makefile.in (temacs${EXEEXT}): Remove references to
3203 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
3204 (mostlyclean): Remove reference to prefix-args.
3205 (prefix-args): Remove.
3206
313d9eb2
DN
3207 Simplify cstart_of_data, start_of_code and related code.
3208 * mem-limits.h: Remove !emacs and _LIBC conditional code.
3209 (start_of_data): Merge into start_of_data function.
3210 * sysdep.c (start_of_text): Remove. Move simplified versions of
3211 it in the only users: unexaix.c and unexec.c.
3212 (read_input_waiting): Remove local declaration of quit_char.
3213 (start, etext): Remove declarations.
3214 (start_of_data): Merge with the version in mem-limits.h and move
3215 to vm-limits.c.
3216 * vm-limit.c (start_of_data): Merged and simplified version of the
3217 code formerly in mem-limits.h and sysdep.c.
3218 * unexec.c (start): New declaration, moved from sysdep.c.
3219 (start_of_text): Simplified version of the code formerly in sysdep.c.
3220 * unexaix.c (start_of_text): Simplified version of the code
3221 formerly in sysdep.c.
3222 * m/alpha.h (HAVE_TEXT_START): Remove.
3223 (TEXT_START): Move ...
3224 * unexalpha.c (TEXT_START): ... here.
3225 * s/hpux10-20.h (TEXT_START): Remove.
3226 * s/darwin.h (TEXT_START):
3227 * m/mips.h (TEXT_START):
3228 * m/macppc.h (HAVE_TEXT_START):
3229 * m/m68k.h (TEXT_START):
3230 * m/iris4d.h (TEXT_START):
3231 * m/intel386.h (TEXT_START):
3232 * m/ibmrs6000.h (TEXT_START):
3233 * m/ia64.h (HAVE_TEXT_START):
3234 * s/msdos.h (TEXT_START): Likewise.
3235
72af86bd
AS
32362010-07-07 Andreas Schwab <schwab@linux-m68k.org>
3237
3238 * alloc.c (overrun_check_malloc, overrun_check_realloc)
3239 (overrun_check_free, xstrdup, allocate_string)
3240 (allocate_string_data, compact_small_strings, Fmake_string)
3241 (make_unibyte_string, make_multibyte_string)
3242 (make_string_from_bytes, make_specified_string, make_float)
3243 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
3244 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
3245 memcpy, memmove, memset, memcmp.
3246 * atimer.c (start_atimer, set_alarm): Likewise.
3247 * buffer.c (clone_per_buffer_values, report_overlay_modification)
3248 (mmap_realloc, init_buffer_once): Likewise.
3249 * callint.c (Fcall_interactively): Likewise.
3250 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
3251 (getenv_internal_1): Likewise.
3252 * casefiddle.c (casify_object): Likewise.
3253 * ccl.c (ccl_driver): Likewise.
3254 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
3255 * charset.c (load_charset_map_from_file)
3256 (load_charset_map_from_file, load_charset_map_from_vector)
3257 (Fdefine_charset_internal): Likewise.
3258 * cm.c (Wcm_clear): Likewise.
3259 * coding.c (decode_eol, decode_coding_object)
3260 (Fset_coding_system_priority, make_subsidiaries): Likewise.
3261 * data.c (Faset): Likewise.
3262 * dired.c (directory_files_internal, file_name_completion_stat):
3263 Likewise.
3264 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
3265 (clear_glyph_row, copy_row_except_pointers)
3266 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
3267 (save_current_matrix, restore_current_matrix)
3268 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
3269 (mirror_line_dance, scrolling_window): Likewise.
3270 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
3271 Likewise.
3272 * doprnt.c (doprnt): Likewise.
3273 * editfns.c (Fuser_full_name, make_buffer_string_both)
3274 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
3275 * emacs.c (sort_args): Likewise.
3276 * eval.c (Fapply, Ffuncall): Likewise.
3277 * fileio.c (Ffile_name_directory, make_temp_name)
3278 (Fexpand_file_name, search_embedded_absfilename)
3279 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
3280 (auto_save_error): Likewise.
3281 * fns.c (Fstring_equal, Fcopy_sequence, concat)
3282 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
3283 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3284 (Fmake_hash_table): Likewise.
3285 * fringe.c (Fdefine_fringe_bitmap): Likewise.
3286 * ftfont.c (ftfont_text_extents): Likewise.
3287 * getloadavg.c (getloadavg): Likewise.
3288 * image.c (define_image_type, make_image, make_image_cache)
3289 (x_create_x_image_and_pixmap, xbm_image_p)
3290 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3291 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3292 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3293 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3294 (tiff_image_p, tiff_read_from_memory, gif_image_p)
3295 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3296 Likewise.
3297 * indent.c (scan_for_column, compute_motion): Likewise.
3298 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3299 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3300 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3301 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3302 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3303 (store_user_signal_events, menu_bar_items, tool_bar_items)
3304 (process_tool_bar_item, append_tool_bar_item)
3305 (read_char_minibuf_menu_prompt, read_key_sequence)
3306 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3307 Likewise.
3308 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3309 Likewise.
3310 * lisp.h (STRING_COPYIN): Likewise.
3311 * lread.c (Fload, read1, oblookup): Likewise.
3312 * msdos.c (Frecent_doskeys): Likewise.
3313 * nsfns.m (Fx_create_frame): Likewise.
3314 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3315 Likewise.
3316 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3317 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3318 Likewise.
3319 * nsmenu.m (ns_update_menubar): Likewise.
3320 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3321 * print.c (print_unwind, printchar, strout, print_string)
3322 (print_error_message): Likewise.
3323 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3324 (Fmake_network_process, Fnetwork_interface_list)
3325 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3326 (init_process): Likewise.
3327 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3328 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3329 Likewise.
3330 * scroll.c (do_scrolling, do_direct_scrolling)
3331 (scrolling_max_lines_saved): Likewise.
3332 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3333 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3334 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3335 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3336 (emacs_set_tty): Likewise.
3337 * term.c (encode_terminal_code, calculate_costs)
3338 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3339 Likewise.
3340 * termcap.c (tgetst1, gobble_line): Likewise.
3341 * termhooks.h (EVENT_INIT): Likewise.
3342 * tparam.c (tparam1): Likewise.
3343 * unexalpha.c (unexec): Likewise.
3344 * unexec.c (write_segment): Likewise.
3345 * unexmacosx.c (unexec_write_zero): Likewise.
3346 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3347 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3348 * w32font.c (w32font_list_family, w32font_text_extents)
3349 (w32font_list_internal, w32font_match_internal)
3350 (w32font_open_internal, compute_metrics, Fx_select_font):
3351 Likewise.
3352 * w32menu.c (set_frame_menubar, add_menu_item)
3353 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3354 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3355 * w32uniscribe.c (uniscribe_list_family): Likewise.
3356 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3357 * window.c (make_window, replace_window, set_window_buffer)
3358 (Fsplit_window): Likewise.
3359 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3360 (add_to_log, message3, x_consider_frame_title)
3361 (append_space_for_newline, extend_face_to_end_of_line)
3362 (decode_mode_spec_coding, init_glyph_string): Likewise.
3363 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3364 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3365 (face_attr_equal_p, make_realized_face, make_face_cache)
3366 (free_realized_faces, lookup_named_face, smaller_face)
3367 (face_with_height, lookup_derived_face)
3368 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3369 (Finternal_set_font_selection_order, realize_default_face)
3370 (compute_char_face, face_at_buffer_position)
3371 (face_for_overlay_string, face_at_string_position, merge_faces):
3372 Likewise.
3373 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3374 (Fx_window_property, x_create_tip_frame)
3375 (Fx_backspace_delete_keys_p): Likewise.
3376 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3377 (xfont_text_extents): Likewise.
3378 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3379 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3380 * xselect.c (x_queue_event, x_get_window_property)
3381 (receive_incremental_selection): Likewise.
3382 * xsmfns.c (x_session_check_input): Likewise.
3383 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3384 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3385 Likewise.
3386 * character.h (BCOPY_SHORT): Removed.
3387 * config.in: Regenerate.
3388 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3389 * emacs.c (main) [PROFILING]: Don't declare
3390 dump_opcode_frequencies.
3391 * lisp.h (safe_bcopy): Remove declaration.
3392 (memset) [!HAVE_MEMSET]: Declare.
3393 (memcpy) [!HAVE_MEMCPY]: Likewise.
3394 (memmove) [!HAVE_MEMMOVE]: Likewise.
3395 (memcmp) [!HAVE_MEMCMP]: Likewise.
3396 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3397 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3398 Don't define.
3399 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3400 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3401 (BCOPY_DOWNWARD_SAFE): Don't define.
3402 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3403 (memcpy) [!HAVE_MEMCPY]: Define.
3404 (memmove) [!HAVE_MEMMOVE]: Define.
3405 (memcmp) [!HAVE_MEMCMP]: Define.
3406
cb768704
J
34072010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3408
3409 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
3410 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3411 New functions.
cb768704
J
3412 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3413 select on empty input mask.
3414 (init_process): Initialize kbd_is_on_hold to 0.
3415
3416 * process.h (hold_keyboard_input, unhold_keyboard_input)
3417 (kbd_on_hold_p): Declare.
3418
3419 * keyboard.c (input_available_signal): Declare.
3420 (kbd_buffer_nr_stored): New function.
3421 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3422 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3423 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3424 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3425 (tty_read_avail_input): If input is on hold, return.
3426 Don't read more that free slots in kbd_buffer (Bug#6571).
3427
3a8ce822
EZ
34282010-07-07 Eli Zaretskii <eliz@gnu.org>
3429
3430 * msdos.h:
3431 * msdos.c:
3432 * dosfns.c:
3433 * w16select.c: Convert function definitions to ANSI C.
3434
a628ad9d
JB
3435 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3436 Remove unused prototypes.
3a8ce822 3437
cf84bb53
JB
34382010-07-07 Juanma Barranquero <lekktu@gmail.com>
3439
3440 * coding.c, sysdep.c: Convert some more functions to standard C.
3441
1a4990fb
JB
34422010-07-07 Juanma Barranquero <lekktu@gmail.com>
3443
3444 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3445 (encode_coding_object): Use SPECPDL_INDEX.
3446 (syms_of_coding): Use DOS_NT.
3447
c0f2f16b
DN
34482010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3449
48fb6855
DN
3450 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3451
c0f2f16b
DN
3452 Make the function member of Lisp_Subr use standard C prototypes.
3453 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3454 (DECL_ALIGN): Add a cast for the function.
3455 * eval.c (Feval, Ffuncall): Use the proper type for each type
3456 function call.
3457
67aecef9
CY
34582010-07-06 Chong Yidong <cyd@stupidchicken.com>
3459
3460 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3461 fringe face id, so face-remapping-alist works (Bug#6091).
3462
b56ceb92
JB
34632010-07-06 Juanma Barranquero <lekktu@gmail.com>
3464
3465 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3466 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3467 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3468
7af07b96
AS
34692010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3470
3471 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3472 * lisp.h: Declare x_get_keysym_name.
3473 * keyboard.c (modify_event_symbol): Don't declare
3474 x_get_keysym_name here.
3475
69e24e34
DN
34762010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3477
3478 * ecrt0.c: Revert conversion to standard C.
3479
d3da34e0 34802010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
3481
3482 * vm-limit.c (memory_warnings):
3483 * keyboard.c (modify_event_symbol):
3484 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3485 (round2, emacs_rint):
3486 * process.c (send_process, old_sigpipe): Convert function
3487 definitions and declarations to standard C.
3488
34892010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
3490
3491 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3492 * xdisp.c: Convert function definitions to standard C.
3493
3494 * cm.c (cmputc): Arg C is now int, not char.
3495 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3496
00be444c
J
34972010-07-05 James Cloos <cloos@jhcloos.com>
3498
3499 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3500
3501 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3502 _NET_WM_ICON_NAME atoms.
3503
3504 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3505 and _NET_WM_ICON_NAME properties, too, matching what is
3506 done in the Gtk+ case.
3507
e4c8d29a
J
35082010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3509
ff919460
J
3510 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3511
e4c8d29a
J
3512 * xsmfns.c (SSDATA): New macro.
3513 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3514 passed to strlen/strcpy/strcat.
3515 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 3516 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
3517
3518 * xsettings.c (something_changedCB, parse_settings)
3519 (apply_xft_settings): Reformat prototype.
3520 (something_changedCB, init_gconf): Remove unused variable i.
3521 (read_settings): Remove unused variable long_len.
3522
3523 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3524 (xg_get_image_for_pixmap, create_dialog)
3525 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3526 (menuitem_highlight_callback, make_menu_item)
3527 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3528 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3529 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3530 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3531 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3532 (xg_tool_bar_item_expose_callback): Reformat prototype.
3533 (xg_update_menubar): GList *group => GSList *group.
3534 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3535 before use.
3536 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3537 to GTK_IMAGE (wimage).
3538
dd4c5104
DN
35392010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3540
898b4c5c
DN
3541 * atimer.c: Use "" instead of <> for local includes for
3542 consistency with the rest of the code.
3543
dd4c5104
DN
3544 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3545 * xrdb.c (get_system_name):
3546 * window.c (shrink_windows):
3547 * syntax.c (forw_comment):
3548 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3549 (ins_del_costs):
3550 * mem-limits.h (start_of_data):
3551 * lread.c (readevalloop):
3552 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3553 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3554 * frame.c (x_get_focus_frame):
3555 * floatfns.c (fmod_float):
3556 * fileio.c (choose_write_coding_system):
3557 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3558 (malloc_initialize_hook, sort_args, synchronize_locale):
3559 * doprnt.c (doprnt):
3560 * dired.c (compile_pattern):
3561 * data.c (fmod_float):
3562 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3563 (map_char_table_for_charset):
3564 * charset.c (define_charset_internal):
3565 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3566 to standard C.
3567
9a39b306 35682010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 3569 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
3570
3571 * lread.c (read1): Fix up last change to not mess up `c'.
3572
e6cb2cbb
JB
35732010-07-04 Juanma Barranquero <lekktu@gmail.com>
3574
3575 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3576
438105ed
JB
35772010-07-04 Juanma Barranquero <lekktu@gmail.com>
3578
3579 Fix prototypes.
3580
e5447b22 3581 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 3582 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
3583 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3584 arg, as required by internal_condition_case_1.
dcc7404b 3585 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
3586 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3587 (analyse_first): Fix "const const".
e5447b22 3588 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 3589 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 3590 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 3591
971de7fb
DN
35922010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3593
3594 * alloc.c: Convert function definitions to standard C.
3595 * atimer.c:
3596 * bidi.c:
3597 * bytecode.c:
3598 * callint.c:
3599 * callproc.c:
3600 * casefiddle.c:
3601 * casetab.c:
3602 * category.c:
3603 * ccl.c:
3604 * character.c:
3605 * charset.c:
3606 * chartab.c:
3607 * cmds.c:
3608 * coding.c:
3609 * composite.c:
3610 * data.c:
3611 * dbusbind.c:
3612 * dired.c:
3613 * dispnew.c:
3614 * doc.c:
3615 * doprnt.c:
3616 * ecrt0.c:
3617 * editfns.c:
3618 * fileio.c:
3619 * filelock.c:
3620 * filemode.c:
3621 * fns.c:
3622 * font.c:
3623 * fontset.c:
3624 * frame.c:
3625 * fringe.c:
3626 * ftfont.c:
3627 * ftxfont.c:
3628 * gtkutil.c:
3629 * indent.c:
3630 * insdel.c:
3631 * intervals.c:
3632 * keymap.c:
3633 * lread.c:
3634 * macros.c:
3635 * marker.c:
3636 * md5.c:
3637 * menu.c:
3638 * minibuf.c:
3639 * prefix-args.c:
3640 * print.c:
3641 * ralloc.c:
3642 * regex.c:
3643 * region-cache.c:
3644 * scroll.c:
3645 * search.c:
3646 * sound.c:
3647 * strftime.c:
3648 * syntax.c:
3649 * sysdep.c:
3650 * termcap.c:
3651 * terminal.c:
3652 * terminfo.c:
3653 * textprop.c:
3654 * tparam.c:
3655 * undo.c:
3656 * unexelf.c:
3657 * window.c:
3658 * xfaces.c:
3659 * xfns.c:
3660 * xfont.c:
3661 * xftfont.c:
3662 * xgselect.c:
3663 * xmenu.c:
3664 * xrdb.c:
3665 * xselect.c:
3666 * xsettings.c:
3667 * xsmfns.c:
3668 * xterm.c: Likewise.
3669
ae492bec
EZ
36702010-07-03 Eli Zaretskii <eliz@gnu.org>
3671
76ea4cc9
EZ
3672 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3673 frames other than the initial one. Fix reversal of colors when
3674 `reverse' is specified in the frame parameters. Call
3675 update_face_from_frame_parameter instead of
3676 internal-set-lisp-face-attribute. Initialize screen colors from
3677 initial_screen_colors[] when f->default_face_done_p is zero,
3678 instead of depending on being called with default-frame-alist as
3679 the alist argument.
3680
3681 * xfaces.c (update_face_from_frame_parameter): Move out of
3682 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3683 with HAVE_WINDOW_SYSTEM.
3684
1e6255ae
EZ
3685 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3686 to menu-bar-mode, if not set in the frame parameters or in
3687 default-frame-alist.
3688
ae492bec
EZ
3689 * w32console.c (sys_tputs): Adjust argument list to prototype in
3690 term.c.
3691
3a35a84c
JB
36922010-07-03 Juanma Barranquero <lekktu@gmail.com>
3693
3694 * lisp.h (memory_warnings): Fix prototype.
3695
3696 * cm.h (evalcost): Fix prototype.
3697
3698 * cm.c (evalcost): Fix arg type.
3699
c532d349
DN
37002010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3701
3702 * term.c (term_clear_mouse_face, Fidentity):
3703 * syssignal.h (signal_handler_t):
3704 * lisp.h (memory_warnings):
3705 * coding.h (preferred_coding_system):
3706 * cm.h (evalcost):
3707 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3708
c0b36d46
EZ
37092010-07-02 Eli Zaretskii <eliz@gnu.org>
3710
3711 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3712 from prototypes.
3713
3714 * msdos.h (load_pixmap): Don't define away.
3715
383e0970
J
37162010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3717
f57e2426
J
3718 * lisp.h:
3719 * atimer.h: Remove define for P_.
3720
3721 * alloc.c: Remove __P and P_ from .c and .m files.
3722 * atimer.c:
3723 * buffer.c:
3724 * callint.c:
3725 * category.c:
3726 * charset.c:
3727 * chartab.c:
3728 * cm.c:
3729 * coding.c:
3730 * composite.c:
3731 * data.c:
3732 * dired.c:
3733 * dispnew.c:
3734 * doc.c:
3735 * editfns.c:
3736 * emacs.c:
3737 * eval.c:
3738 * fileio.c:
3739 * filelock.c:
3740 * fns.c:
3741 * font.c:
3742 * fontset.c:
3743 * frame.c:
3744 * ftfont.c:
3745 * ftxfont.c:
3746 * gmalloc.c:
3747 * gtkutil.c:
3748 * image.c:
3749 * indent.c:
3750 * intervals.c:
3751 * keyboard.c:
3752 * keymap.c:
3753 * lread.c:
3754 * marker.c:
3755 * menu.c:
3756 * minibuf.c:
3757 * print.c:
3758 * process.c:
3759 * scroll.c:
3760 * search.c:
3761 * sound.c:
3762 * strftime.c:
3763 * syntax.c:
3764 * sysdep.c:
3765 * term.c:
3766 * terminal.c:
3767 * textprop.c:
3768 * unexalpha.c:
3769 * w32console.c:
3770 * w32fns.c:
3771 * w32font.c:
3772 * w32menu.c:
3773 * w32term.c:
3774 * w32uniscribe.c:
3775 * window.c:
3776 * xdisp.c:
3777 * xfaces.c:
3778 * xfns.c:
3779 * xfont.c:
3780 * xftfont.c:
3781 * xmenu.c:
3782 * xselect.c:
3783 * xterm.c: Likewise.
3784
383e0970 3785 Remove P_ and __P macros.
f57e2426
J
3786 * atimer.h: Remove P_ and __P macros.
3787 * buffer.h:
383e0970
J
3788 * category.h:
3789 * ccl.h:
3790 * character.h:
3791 * charset.h:
3792 * cm.h:
3793 * coding.h:
3794 * composite.h:
3795 * dispextern.h:
3796 * disptab.h:
9e892c8d 3797 * dosfns.h:
383e0970
J
3798 * font.h:
3799 * fontset.h:
3800 * frame.h:
3801 * gtkutil.h:
3802 * indent.h:
3803 * intervals.h:
3804 * keyboard.h:
3805 * keymap.h:
3806 * lisp.h:
3807 * macros.h:
3808 * md5.h:
3809 * menu.h:
3810 * msdos.h:
3811 * nsterm.h:
3812 * puresize.h:
3813 * region-cache.h:
3814 * syntax.h:
3815 * syssignal.h:
3816 * systime.h:
3817 * termhooks.h:
9e892c8d 3818 * w32font.h:
383e0970
J
3819 * w32term.h:
3820 * widget.h:
3821 * window.h:
3822 * xgselect.h:
3823 * xsettings.h:
3824 * xterm.h: Likewise.
3825
98601119
DN
38262010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3827
d9170db5
DN
3828 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3829
98601119
DN
3830 Cleanup old code.
3831 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3832 * syssignal.h: Remove code for Lynx, not supported anymore.
3833 * vm-limit.c: Remove unused code the depends on emacs not being
3834 defined and NO_LIM_DATA being defined.
3835 * mem-limits.h: Remove dead code.
3836
1f984e12
J
38372010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3838
c49d071a
J
3839 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3840
9d5405ec
J
3841 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3842 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3843
7a18115b
J
3844 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3845 parameters, they are already absolute.
3846
a628ad9d
JB
3847 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3848 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3849
a628ad9d 3850 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3851
a628ad9d
JB
3852 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3853 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3854
a628ad9d
JB
3855 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3856 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3857
c1ef4455
CY
38582010-06-30 Chong Yidong <cyd@stupidchicken.com>
3859
3860 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3861 check default-frame-alist.
3862
ce8f5a9a
AS
38632010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3864
3865 * process.c (create_process): Avoid using invalid file descriptors.
3866
3867 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3868
bf935339
J
38692010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3870
3871 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3872 Improve documentation. Return font regardless of use_system_font.
3873 (syms_of_xsettings): Improve documentation for font-use-system-font.
3874
7c33a057
CY
38752010-07-10 Chong Yidong <cyd@stupidchicken.com>
3876
2ec1b5ee
CY
3877 * xfaces.c (realize_face): Garbage the frame if a face is removed
3878 (Bug#6593).
3879
38802010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3881
3882 * keyboard.c: Remove duplicate <setjmp.h>.
3883 (read_key_sequence): Remove volatile qualifiers.
3884
38852010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3886
3887 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3888 (struct glyph_row): New members left_fringe_offset and
3889 right_fringe_offset.
3890
3891 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3892 specially.
3893 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3894 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3895
3896 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3897 Take account of bitmap offset.
2ec1b5ee
CY
3898 (draw_window_fringes): Take account of window vscroll.
3899 (update_window_fringes): Likewise. Extend top-aligned top indicator
3900 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3901 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3902 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3903
39042010-07-04 Juanma Barranquero <lekktu@gmail.com>
3905
3906 * w32fns.c (Qtooltip): Declare.
3907 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3908
39092010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3910
3911 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3912 grab on just Press (Bug#6499).
3913
39142010-07-02 Chong Yidong <cyd@stupidchicken.com>
3915
3916 * frame.c (Qtooltip): New var.
3917 (delete_frame): Use it. Fix faulty if statement. Don't update
3918 mode line for tooltip frames. Suggested by Martin Rudalics.
3919
3920 * xfns.c (x_create_tip_frame):
3921 * w32fns.c (x_create_tip_frame): Use it.
3922
39232010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3924
3925 * xftfont.c (xftfont_open): Check font width one by one also when
3926 spacing is dual.
3927
3928 * ftfont.c (ftfont_open): Ditto.
3929
6259c2ec
GM
39302010-06-30 Glenn Morris <rgm@gnu.org>
3931
a46007e9
GM
3932 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3933
6259c2ec
GM
3934 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3935
3936 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3937 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3938 * s/darwin.h (SYSTEM_MALLOC):
3939 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3940
5d1d3d04
J
39412010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3942
3943 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3944 (ns_get_screen): Don't assign integer to f.
3945 (Fx_display_color_cells): Declarations before statements.
3946
e547b051
J
39472010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3948
5fc8e5bc
J
3949 * xfns.c (x_default_font_parameter): Remove got_from_system
3950 (Bug#6526).
3951
e547b051
J
3952 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3953 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3954 defines based on what configure finds.
3955
3956 * xterm.c (XTflash): Use gtk_widget_get_window.
3957 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3958 gtk_adjustment_get_page_size.
3959 (handle_one_xevent): Use gtk_widget_get_mapped.
3960 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3961 messages.
3962
3963 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3964
3965 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3966 HAVE_GTK_FILE_SELECTION_NEW.
3967
3968 * gtkutil.c (xg_display_open, xg_display_close): Remove
3969 HAVE_GTK_MULTIDISPLAY, it is always defined.
3970 (xg_display_open): Return type is void.
3971 (gtk_widget_set_has_window)
3972 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3973 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3974 (gtk_adjustment_set_page_increment)
3975 (gtk_adjustment_get_step_increment): #define these if not found
3976 by configure.
3977 (remove_submenu): New define based on Gtk+ version.
3978 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3979 gtk_widget_get_window.
3980 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3981 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3982 (create_dialog): Use gtk_dialog_get_action_area and
3983 gtk_dialog_get_content_area.
3984 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3985 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3986 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3987 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3988 g_object_ref and g_object_unref.
3989 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3990 gtk_widget_get_sensitive.
3991 (xg_update_submenu): Use remove_submenu.
3992 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3993 properties instead to get old x and y position.
3994 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3995 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3996 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3997 (xg_get_tool_bar_widgets): New function.
3998 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3999 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
4000 (toolbar_set_orientation): New #define based on if configure
4001 finds gtk_orientable_set_orientation.
4002 (xg_create_tool_bar): Call toolbar_set_orientation.
4003 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
4004 instead of gtk_box_pack_start_defaults.
4005
b9229673
CY
40062010-06-28 Chong Yidong <cyd@stupidchicken.com>
4007
4008 * cmds.c (Fdelete_backward_char): Move into Lisp.
4009
bbc803b0
DN
40102010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
4011
4012 * s/freebsd.h (BSD4_2): Remove redundant definition.
4013 bsd-common.h defines it already.
4014
6431f2e6
CY
40152010-06-27 Chong Yidong <cyd@stupidchicken.com>
4016
4017 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
4018 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
4019 tool-bar-mode, which are now set using these X resources at
4020 startup, to determine the defaults (Bug#2249).
4021
4022 * w32fns.c (Fx_create_frame):
4023 * nsfns.m (Fx_create_frame): Likewise.
4024
4025 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
4026
8c079ebb
JB
40272010-06-24 Juanma Barranquero <lekktu@gmail.com>
4028
4029 * gtkutil.c (xg_update_scrollbar_pos):
4030 Avoid C99 mid-block variable declaration.
4031
e9b7ab96
JD
40322010-06-22 Jan Djärv <jan.h.d@swipnet.se>
4033
bc869eca
JD
4034 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
4035
2b7e356a 4036 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
4037
4038 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
4039 if height is less than scroll bar min size.
4040 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
4041
e9b7ab96
JD
4042 * xfns.c (x_default_font_parameter): Try to open font from system
4043 before using it (bug#6478). Rename got_from_gconf to got_from_system.
4044
a628ad9d 40452010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
4046
4047 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
4048
70c4cfbb
EZ
40492010-06-20 Eli Zaretskii <eliz@gnu.org>
4050
4051 * xdisp.c (try_scrolling): When scroll-conservatively is set to
4052 most-positive-fixnum, be extra accurate when scrolling window
4053 start, to avoid missing the cursor line.
4054
ad5a12b5
EZ
40552010-06-19 Eli Zaretskii <eliz@gnu.org>
4056
4057 * xdisp.c (try_scrolling): Compute the limit for searching point
4058 in forward scroll from scroll_max, instead of an arbitrary limit
4059 of 10 screen lines. See
4060 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
4061 and
4062 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
4063 for details.
4064
2a64315a 40652010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
4066
4067 * editfns.c (Fbyte_to_string): Pacify compiler.
4068
288cf4e9
SM
40692010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
4070
4071 * lread.c (read1): Phase out old-style backquotes a bit more.
4072
6e6e5760
EZ
40732010-06-12 Eli Zaretskii <eliz@gnu.org>
4074
cbc4fd20
EZ
4075 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
4076 bidimirror.h.
4077
4078 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
4079
317fbf33
EZ
4080 * bidi.c (bidi_initialize): Remove explicit initialization of
4081 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 4082 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 4083 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
4084
4085 * biditype.h: New file.
4086
cbc4fd20
EZ
4087 * bidimirror.h: New file.
4088
6e6e5760
EZ
4089 * window.c (syms_of_window): Doc fix (bug#6409).
4090
4176cba2
RF
40912010-06-12 Romain Francoise <romain@orebokech.com>
4092
4093 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
4094 ediff-hook.
4095
cb4bfcb5
GM
40962010-06-10 Glenn Morris <rgm@gnu.org>
4097
64c60c2f
GM
4098 * editfns.c (Fbyte_to_string): Pacify compiler.
4099
cb4bfcb5
GM
4100 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
4101
2ec1b5ee
CY
41022010-06-26 Andreas Schwab <schwab@linux-m68k.org>
4103
4104 * alloc.c (Fmake_byte_code): Don't access undefined argument
4105 (Bug#6517).
4106
41072010-06-25 Chong Yidong <cyd@stupidchicken.com>
4108
4109 * xdisp.c (next_element_from_image): Ensure that after-strings are
4110 read the next time we hit handle_stop (Bug#1336).
4111
41122010-06-23 Andreas Schwab <schwab@linux-m68k.org>
4113
4114 * lread.c (read1): Signal error if #s is not followed by paren.
4115
41162010-06-19 Chong Yidong <cyd@stupidchicken.com>
4117
4118 * image.c (free_image): Mark frame as garbaged (Bug#6426).
4119
4120 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
4121
41222010-06-15 Glenn Morris <rgm@gnu.org>
4123
4124 * editfns.c (Fbyte_to_string): Pacify compiler.
4125
e454a4a3
SM
41262010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
4127
4128 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
4129 Check `object's type before accessing its guts.
4130
c1b1acc2
DN
41312010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
4132
4133 * s/usg5-4.h: Fix previous change.
4134 Suggested by Lawrence Mitchell <wence@gmx.li>
4135
657d4c0b
AS
41362010-06-08 Andreas Schwab <schwab@linux-m68k.org>
4137
4138 * minibuf.c (Fall_completions): Add more checks.
4139
9b27fd9f
JB
41402010-06-08 Juanma Barranquero <lekktu@gmail.com>
4141
4142 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
4143
a99ebb40
DN
41442010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
4145
d7c5d87d
DN
4146 * lread.c (X_OK): Remove, unused.
4147
0263a941
DN
4148 * dispnew.c: Remove obsolete comment.
4149
a99ebb40
DN
4150 Remove INCLUDED_FCNTL.
4151 * xterm.c (INCLUDED_FCNTL):
4152 * callproc.c (INCLUDED_FCNTL):
4153 * alloc.c (INCLUDED_FCNTL):
4154 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
4155 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
4156
13b5221f
MR
41572010-06-07 Martin Rudalics <rudalics@gmx.at>
4158
4159 * window.c (Fselect_window): Move `record_buffer' up to the
4160 beginning of this function, so the buffer gets recorded
4161 even if the selected window does not change.
4162 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
4163
5220357f
JB
41642010-06-07 Juanma Barranquero <lekktu@gmail.com>
4165
4166 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
4167 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
4168
3085237c
DN
41692010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
4170
4171 Remove BSTRING related code, all platforms define it.
4172 * s/usg5-4.h (BSTRING): Remove definition.
4173 * s/template.h (BSTRING):
4174 * s/msdos.h (BSTRING):
4175 * s/ms-w32.h (BSTRING):
4176 * s/hpux10-20.h (BSTRING):
4177 * s/gnu-linux.h (BSTRING):
4178 * s/darwin.h (BSTRING):
4179 * s/cygwin.h (BSTRING):
4180 * s/bsd-common.h (BSTRING):
4181 * s/aix4-2.h (BSTRING): Likewise.
4182 * sysdep.c: Remove code depending on BSTRING not being defined.
4183
409f2919
JB
41842010-06-05 Juanma Barranquero <lekktu@gmail.com>
4185
4186 Remove obsolete macro BASE_LEADING_CODE_P.
4187 * character.h (BASE_LEADING_CODE_P): Remove.
4188 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
4189 * buffer.c (Fset_buffer_multibyte):
4190 * indent.c (scan_for_column, compute_motion):
4191 * insdel.c (count_combining_before, count_combining_after):
4192 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
4193
087fc47a
JB
41942010-06-04 Juanma Barranquero <lekktu@gmail.com>
4195
4196 Turn `directory-sep-char' into a noop.
4197
4198 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
4199 (DIRECTORY_SEP): Define unconditionally.
4200
4201 * s/ms-w32.h (DIRECTORY_SEP): Remove.
4202
4203 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
4204 call dostounix_filename directly.
4205
4206 * fileio.c (CORRECT_DIR_SEPS): Remove.
4207 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
4208 (Fsubstitute_in_file_name): Use dostounix_filename instead.
4209 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
4210 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
4211
4212 * w32proc.c (CORRECT_DIR_SEPS): Remove.
4213 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
4214
0eb7675e
AS
42152010-06-03 Andreas Schwab <schwab@linux-m68k.org>
4216
a628ad9d
JB
4217 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
4218 (Bug#6346)
0eb7675e 4219
78edd3b7
JB
42202010-06-03 Juanma Barranquero <lekktu@gmail.com>
4221
4222 * ccl.c (Fccl_program_p): Fix typo in docstring.
4223
eb697db5
DN
42242010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
4225
4226 Move UNEXEC definition to autoconf.
4227 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
4228 * s/sol2-10.h (UNEXEC):
4229 * s/irix6-5.h (UNEXEC):
4230 * s/hpux10-20.h (UNEXEC):
4231 * s/gnu-linux.h (UNEXEC):
4232 * s/darwin.h (UNEXEC):
4233 * s/cygwin.h (UNEXEC):
4234 * s/bsd-common.h (UNEXEC):
4235 * s/aix4-2.h (UNEXEC):
4236 * m/alpha.h (UNEXEC): Likewise.
4237 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
4238
aa3830c4
JB
42392010-06-03 Juanma Barranquero <lekktu@gmail.com>
4240
4241 Remove obsolete pre-unicode2 macros.
4242 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
4243 * composite.c (composition_reseat_it):
4244 * data.c (Faset):
4245 * fns.c (Ffillarray):
4246 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
4247 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
4248
d234d13e
JL
42492010-06-03 Juri Linkov <juri@jurta.org>
4250
4251 * buffer.c (Fother_buffer): Add CHECK_FRAME.
4252 (Fswitch_to_buffer): Remove unused variable `err'.
4253
0d4bcf4d
GM
42542010-06-03 Glenn Morris <rgm@gnu.org>
4255
e23dc1e2
GM
4256 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
4257
05b09564
GM
4258 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
4259 now that AH_BOTTOM does it.
4260
824e2978
GM
4261 * m/hp800.h (HAVE_ALLOCA):
4262 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
4263
0d4bcf4d
GM
4264 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
4265 Remove NOT_C_CODE tests, it is always true now.
4266
c55d2abf
DN
42672010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
4268
08a494a3
DN
4269 Fix config.h includes.
4270 * xsettings.c:
4271 * xgselect.c:
4272 * nsterm.m:
4273 * nsselect.m:
4274 * nsimage.m:
4275 * nsfont.m:
4276 * nsfns.m:
4277 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
4278 other files do.
4279
75934b1d
DN
4280 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4281
9f32a766
DN
4282 * s/sol2-6.h: Remove obsolete comments.
4283
c55d2abf
DN
4284 Remove unnecessary alloca.h includes.
4285 * keymap.c: Do not include alloca.h, config.h does that.
4286 * sysdep.c: Likewise. Do not define fwrite, not used.
4287
06ac62b4
SM
42882010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4289
4290 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4291 the HAVE_TERMIO where it belongs (bug#6149).
4292
1ab8293c
SM
42932010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4294
4295 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4296 of bug#6305).
4297
6dcfd253
EZ
42982010-05-30 Eli Zaretskii <eliz@gnu.org>
4299
4300 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4301 state is always cached (bug#6306).
4302
6d26bbb2
EZ
43032010-05-29 Eli Zaretskii <eliz@gnu.org>
4304
06fa4a23
EZ
4305 Fix cursor motion in bidi-reordered continued lines.
4306 * xdisp.c (try_cursor_movement): Backup to non-continuation line
4307 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
4308 over continuation lines in bidi-reordered buffers. Return
4309 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4310 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4311
f5783df3
MA
43122010-05-28 Michael Albinus <michael.albinus@gmx.de>
4313
4314 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4315
7d56b2dd
KH
43162010-05-28 Kenichi Handa <handa@m17n.org>
4317
4318 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4319 Don't sheck SPEC if it is nil.
4320 (font_list_entities): Call font_delete_unmatched if
b925d231 4321 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 4322
e58d4ff7
GM
43232010-05-28 Glenn Morris <rgm@gnu.org>
4324
4325 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4326
f1a5d776
CY
43272010-05-27 Chong Yidong <cyd@stupidchicken.com>
4328
4329 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4330 whether to trash.
4331 (internal_delete_file, Frename_file): Callers changed.
4332 (delete_by_moving_to_trash): Doc fix.
4333 (Fdelete_directory_internal): Don't move to trash.
4334
4335 * callproc.c (delete_temp_file):
4336 * buffer.c (Fkill_buffer): Callers changed.
4337
4338 * lisp.h: Update prototype.
4339
f44a59e6
CY
43402010-05-27 Chong Yidong <cyd@stupidchicken.com>
4341
4342 * xdisp.c (redisplay_window): After redisplay, check if point is
4343 still valid before setting it (Bug#6177).
4344
81ac4f35
GM
43452010-05-27 Glenn Morris <rgm@gnu.org>
4346
4347 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4348 Convert comments to Makefile format.
4349
4350 * Makefile.in (bootstrap-clean): No more Makefile.c.
4351
ccd89fb3
GM
43522010-05-26 Glenn Morris <rgm@gnu.org>
4353
90278cb6
GM
4354 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4355 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4356
ccd89fb3
GM
4357 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4358 Remove.
4359 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4360
b7050583
KH
43612010-05-26 Kenichi Handa <handa@m17n.org>
4362
4363 * composite.c (composition_compute_stop_pos): Fix condition for
4364 backward scanning.
4365
e5458003
GM
43662010-05-25 Glenn Morris <rgm@gnu.org>
4367
c345fe90
GM
4368 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4369 Move before TEMACS_LDFLAGS.
4370 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4371 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4372
2e0689ab
GM
4373 * Makefile.in (NOT_C_CODE): No longer define.
4374 (config.h): No longer include.
4375
8009a5e8
GM
4376 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4377 variables it may reference.
4378
e5458003
GM
4379 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4380 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4381
10f72a37
KH
43822010-05-25 Kenichi Handa <handa@m17n.org>
4383
4384 * dispextern.h (struct composition_it): New members rule_idx and
4385 charpos.
4386
4387 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4388 that the character positions of IT point the last character of the
4389 current grapheme cluster.
4390 (next_element_from_composition): Don't change character positions
4391 of IT.
4392 (append_composite_glyph): Set glyph->charpos to
4393 it->cmp_it.charpos.
4394
4395 * composite.c (autocmp_chars): Change the first argument to RULE,
4396 and try composition with RULE only.
4397 (composition_compute_stop_pos): Record the index number of the
4398 composition rule in CMP_IT->rule_idx.
4399 (composition_reseat_it): Call autocmp_chars repeatedly until the
4400 correct rule of the composition is found.
4401 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4402 is at the last character of the current grapheme cluster when
4403 CMP_IT->reversed_p is nonzero.
4404
171eda53 44052010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 4406
171eda53
SM
4407 * editfns.c (Fbyte_to_string): New function.
4408
66a9f7f4
SM
44092010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4410
4411 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4412 Suggested by Masatake YAMATO <yamato@redhat.com>.
4413
d8c315d1
EZ
44142010-05-23 Eli Zaretskii <eliz@gnu.org>
4415
171eda53 4416 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 4417
f5b416d2 44182010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4419
4420 * s/netbsd.h: If terminfo is found, use it in preference to
4421 termcap. (Bug#6190) [Backport from trunk]
4422
0416466c
EZ
44232010-05-19 Eli Zaretskii <eliz@gnu.org>
4424
11117830 4425 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
4426
4427 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4428 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4429 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4430 and maxpos members instead of start.pos and end.pos, respectively.
4431
4432 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4433 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4434 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
4435 (try_window_reusing_current_matrix, try_window_id):
4436 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
4437 (init_from_display_pos, init_iterator): Use EMACS_INT for
4438 character and byte positions.
66a9f7f4 4439 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
4440 arguments for minimum and maximum buffer positions seen by
4441 display_line for this row. Don't use iterator to find the
4442 position following the maximum one; instead, increment the
11117830
EZ
4443 position found by display_line directly. Fix logic; eol_pos
4444 should be tested before the rest. Handle the case of characters
4445 delivered from display vector (bug#6036). Fix tests related to
4446 it->method. Handle the truncated_on_right_p rows.
4447 (RECORD_MAX_MIN_POS): New macro.
4448 (display_line): Use it to record the minimum and maximum buffer
4449 positions for glyphs in the row being assembled. Record the
4450 position of the newline that terminates the line. If word wrap is
4451 in effect, restore minimum and maximum positions seen up to the
4452 wrap point, when iterator returns to it.
4453 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4454 row and cursor not already at point. Restore original pre-bidi
4455 code for unidirectional buffers.
d36fe237
EZ
4456
4457 * dispnew.c (increment_row_positions, check_matrix_invariants):
4458 Increment and check row->start.pos and row->end.pos, in addition
4459 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4460
11117830
EZ
4461 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4462 Display truncated_on_left_p and truncated_on_right_p flags.
4463 Formatting fixes.
4464 (pmtxrows): Display the ordinal number of each row. Don't display
4465 rows beyond the last one.
4466
4467 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4468 it is not copied by bidi_copy_it.
4469
6e83d800
EZ
44702010-05-22 Eli Zaretskii <eliz@gnu.org>
4471
4472 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4473 (Bug#6237)
4474
110683ad
CY
44752010-05-22 Chong Yidong <cyd@stupidchicken.com>
4476
4477 * image.c (Fimage_flush): Rename from image-refresh.
4478
98fe5161
CY
44792010-05-21 Chong Yidong <cyd@stupidchicken.com>
4480
4481 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4482 just one window.
4483
4484 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4485 (clear_image_cache): If the number of cached images is unusually
4486 large, decrease the cache eviction delay (Bug#6230).
4487
e8752c66
GM
44882010-05-21 Glenn Morris <rgm@gnu.org>
4489
66dbf213
GM
4490 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4491 Move these rules to ns.mk.
4492 * ns.mk: New file.
4493
04384b2d
GM
4494 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4495
e8752c66
GM
4496 * Makefile.in (CANNOT_DUMP): New, set by configure.
4497 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4498
2e2bbddb
JL
44992010-05-20 Juri Linkov <juri@jurta.org>
4500
4501 * fileio.c (Fdelete_file): Change interative spec to use
4502 `read-file-name' like in `find-file-read-args' where the default
4503 value is `default-directory' instead of `buffer-file-name'.
4504 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4505
31c4aaf6
KR
45062010-05-20 Kevin Ryde <user42@zip.com.au>
4507
4508 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4509 (Voverriding_terminal_local_map, Vsystem_key_alist)
4510 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4511
9d5cf9b6
GM
45122010-05-20 Glenn Morris <rgm@gnu.org>
4513
4514 * Makefile.in (DEPDIR): New constant.
4515 (DEPFLAGS): Set with configure, not cpp.
4516 (MKDEPDIR): New, set by configure.
4517 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4518 (clean): Use $DEPDIR.
4519 (deps_frag): Include from configure.
4520 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4521 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4522
ead6f8f5
EZ
4523 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4524 reallocation of the cache. (Bug#6210)
4525
7f34aec3
GM
45262010-05-19 Glenn Morris <rgm@gnu.org>
4527
d494e8f2
GM
4528 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4529
c1d0dcfd
GM
4530 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4531 (GNULIB_VAR): Remove.
4532 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4533
4534 * m/ibms390x.h (LINKER):
4535 * m/macppc.h (LINKER) [GNU_LINUX]:
4536 * s/aix4-2.h (ORDINARY_LINK):
4537 * s/cygwin.h (LINKER):
4538 * s/darwin.h (ORDINARY_LINK):
4539 * s/gnu.h (ORDINARY_LINK):
4540 * s/netbsd.h (LINKER):
4541 * s/usg5-4.h (ORDINARY_LINK):
4542 Move to configure.
4543
7f34aec3
GM
4544 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4545
754790b6
CY
45462010-05-18 Chong Yidong <cyd@stupidchicken.com>
4547
4548 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4549 prevent stack overflow if number of arguments is too large
4550 (Bug#6214).
4551
161e44d1
JB
45522010-05-18 Juanma Barranquero <lekktu@gmail.com>
4553
4554 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4555
be4ff9da
GM
45562010-05-18 Glenn Morris <rgm@gnu.org>
4557
9539dc5d
GM
4558 * s/gnu-linux.h: Combine two conditionals.
4559
4560 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
4561 $(POST_ALLOC_OBJ).
4562
40dc6bf4
GM
4563 * Makefile.in (RALLOC_OBJ): New, set by configure.
4564 (rallocobj): Replace with the previous variable.
4565 (otherobj): Use $RALLOC_OBJ.
4566
4567 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4568 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4569
be4ff9da
GM
4570 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4571 (gmallocobj, vmlimitobj): Replace with previous two variables.
4572 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4573
16455a85
GM
45742010-05-17 Glenn Morris <rgm@gnu.org>
4575
4576 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4577 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4578
5fdb7468
GM
45792010-05-16 Glenn Morris <rgm@gnu.org>
4580
7ca1f3f9
GM
4581 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4582
7541dad5
GM
4583 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4584
da53fab9
GM
4585 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4586 trailing "/".
4587
b02a6645
GM
4588 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4589 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4590
8877ca0f
GM
4591 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4592 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4593 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4594 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4595 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4596
5fdb7468
GM
4597 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4598 Remove ${STARTFLAGS}, nothing ever sets it.
4599
95adb4b1
DN
46002010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4601
4602 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4603
676b6304
GM
46042010-05-16 Glenn Morris <rgm@gnu.org>
4605
9beab9ce
GM
4606 * Makefile.in (LIBX_BASE): Always define.
4607
8a95f0e7
GM
4608 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4609
676b6304
GM
4610 * Makefile.in (LIBXT): Always define.
4611
6e546d18
GM
46122010-05-15 Glenn Morris <rgm@gnu.org>
4613
4235ca47 4614 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 4615
6e546d18
GM
4616 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4617 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4618
8c5ff6dd
KR
46192010-05-15 Ken Raeburn <raeburn@raeburn.org>
4620
560bb7ae 4621 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
4622 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4623
8b4eb796
KR
4624 * emacs.c (main): Initialize initial-environment and
4625 process-environment before generating from env, not after.
4626
8c5ff6dd
KR
4627 Handle --version reasonably in CANNOT_DUMP configuration.
4628 * emacs.c (emacs_version, emacs_copyright): New string variables.
4629 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4630 (syms_of_emacs): Defvar them, and initialize them from the C
4631 string variables.
4632 (main): If initialization hasn't been done, print initial version
4633 info from the C strings, instead of starting an interactive session.
4634
dbd3f723
EZ
46352010-05-15 Eli Zaretskii <eliz@gnu.org>
4636
d20e1419
EZ
4637 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4638 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
4639 (bidi_paragraph_init): Remove redundant assertion that we are at
4640 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
4641
4642 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4643 (syms_of_xdisp): Defsubr it.
4644
d36fe237
EZ
4645 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4646
dbd3f723
EZ
4647 * Makefile.in: Fix MSDOS-related comments.
4648
02be533b
GM
46492010-05-15 Glenn Morris <rgm@gnu.org>
4650
1a82cca9
GM
4651 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4652 (really-lwlib, really-oldXMenu): Always define.
4653 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4654
3df7b338
GM
4655 * Makefile.in: Simplify cpp conditional.
4656
2b5f541b
GM
4657 * Makefile.in (${ns_appdir}): Simplify using umask.
4658
02be533b
GM
4659 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4660
4e2db1fe
SM
46612010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4662
4663 * eval.c (specbind): Remove left-over duplicate test.
4664 Disallow let-binding frame-local vars. Add comment.
4665
4b292a22
EZ
46662010-05-14 Eli Zaretskii <eliz@gnu.org>
4667
2fe72643 4668 Make the cache of bidi iterator states dynamically allocated.
1edbd309 4669 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
4670 (bidi_init_it): Call it.
4671 (bidi_cache_iterator_state): Enlarge the cache if needed.
4672
4e2db1fe 4673 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
4674 bidi_get_next_char_visually. All callers changed.
4675
82ebc97b
KH
46762010-05-14 Kenichi Handa <handa@m17n.org>
4677
4678 * dispextern.h (struct composition_it): New member reversed_p.
4679
4680 * composite.c (composition_compute_stop_pos): Search backward if
4681 ENDPOS < CHARPOS.
4682 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4683 Set CMP_IT->reversed_p.
b4b6e17e 4684 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 4685
4e2db1fe
SM
4686 * xdisp.c (set_iterator_to_next):
4687 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
4688 scanning backward. Call composition_compute_stop_pos if scan
4689 direction is changed.
4690 (next_element_from_buffer): Call composition_compute_stop_pos with
4691 negative ENDPOS if we are scanning backward.
4692 (next_element_from_composition): Pay attention to
4693 IT->cmp_it.reversed_p.
4694
0e5d7800
KH
46952010-05-14 Kenichi Handa <handa@m17n.org>
4696
560bb7ae 4697 * font.c (font_range): Return the range for the font found at first.
0e5d7800 4698
cb027b32
GM
46992010-05-14 Glenn Morris <rgm@gnu.org>
4700
177b0288
GM
4701 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4702
fbc00890
GM
4703 * Makefile.in (mktime, X11, register): Move undefs to configure.
4704
f14d1dfd
GM
4705 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4706 (MSDOS_X_OBJ): New variable.
4707 (MSDOS_SUPPORT_REAL): New constant.
4708 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4709 (obj): Use MSDOS_X_OBJ.
4710 (lisp): Use MSDOS_SUPPORT as a variable.
4711
11842bd8
GM
4712 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4713 (GPM_MOUSE_SUPPORT): Now it's a constant.
4714 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4715 not cpp.
4716
489d31a4 4717 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 4718 (ns_appresdir): Remove, unused.
e20f1f07 4719
489d31a4
GM
4720 * Makefile.in (SHELL): Move outside cpp section.
4721
cb027b32
GM
4722 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4723
5a903aa9
GM
47242010-05-13 Glenn Morris <rgm@gnu.org>
4725
3369c79f
GM
4726 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4727 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4728
d5e982a6
GM
4729 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4730 HAVE_WINDOW_SYSTEM must be too.
4731
6192e163
GM
4732 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4733 (lisp): Remove WINNT_SUPPORT.
4734
472c5d6b
GM
4735 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4736 Let configure set these variables (to empty) in this case as well.
4737
0116466b
GM
4738 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4739 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4740
5a903aa9
GM
4741 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4742 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4743 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4744 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4745 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 4746 the values output by configure.
5a903aa9
GM
4747 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4748
1a0d7c06
GM
47492010-05-12 Glenn Morris <rgm@gnu.org>
4750
b5457f14
GM
4751 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4752 (LINKER_WAS_SPECIFIED): Remove.
4753
1a0d7c06
GM
4754 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4755 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4756 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4757 * s/cygwin.h (LIB_GCC):
4758 * s/freebsd.h (LIB_GCC):
4759 * s/gnu-linux.h (LIB_GCC):
4760 * s/msdos.h (LIB_GCC):
4761 * s/netbsd.h (LIB_GCC):
4762 Move to configure.
4763
3ffd4615 47642010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
4765
4766 * ftfont.c: Fix incorrect parentheses of #if condition for
4767 definining M17N_FLT_USE_NEW_FEATURE.
4768
acddf8ae
GM
47692010-05-11 Glenn Morris <rgm@gnu.org>
4770
4771 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4772 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4773
ae5e04fa
EZ
47742010-05-10 Eli Zaretskii <eliz@gnu.org>
4775
4776 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4777 unibyte buffers. See
4778 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4779
7490175b
GM
47802010-05-10 Glenn Morris <rgm@gnu.org>
4781
97efb629
GM
4782 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4783 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4784 (LIBES): Use LIBS_SYSTEM as a variable.
4785 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4786 * s/aix4-2.h (LIBS_SYSTEM):
4787 * s/freebsd.h (LIBS_SYSTEM):
4788 * s/hpux10-20.h (LIBS_SYSTEM):
4789 * s/sol2-6.h (LIBS_SYSTEM):
4790 * s/unixware.h (LIBS_SYSTEM):
4791 Move to configure.
4792
7490175b
GM
4793 * s/aix4-2.h (MAIL_USE_LOCKF):
4794 * s/bsd-common.h (MAIL_USE_FLOCK):
4795 * s/darwin.h (MAIL_USE_FLOCK):
4796 * s/gnu-linux.h (MAIL_USE_FLOCK):
4797 * s/irix6-5.h (MAIL_USE_FLOCK):
4798 * s/template.h (MAIL_USE_FLOCK):
4799 Move to configure.
4800
0235128c 48012010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4802
4803 * Version 23.2 released.
4804
0235128c 48052010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4806
4807 * composite.c (autocmp_chars): Save point as marker before calling
4808 auto-composition-function (Bug#5984).
4809
4810 * lisp.h (restore_point_unwind): Add prototype.
4811
4812 * fileio.c (restore_point_unwind): Remove static attribute.
4813
0235128c 48142010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4815
4816 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4817 new feature of libotf and m17n-flt.
0235128c
SM
4818 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4819 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4820 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4821 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4822 that OUT is NULL. Use OTF_drive_gsub_with_log and
4823 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4824 OTF_drive_gpos.
4825 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4826 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4827 Setup mflt_enable_new_feature and mflt_try_otf.
4828
4721152c
J
48292010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4830
4831 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4832
4833 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4834 box and toolbar (Bug #6139).
4835 (xg_create_tool_bar): Remove comment (Bug #6139).
4836 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4837 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4838
ee0a16cf
JB
48392010-05-08 Juanma Barranquero <lekktu@gmail.com>
4840
4841 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4842 Update dependencies.
4843
96d79611
EZ
48442010-05-08 Eli Zaretskii <eliz@gnu.org>
4845
4846 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4847 R2L lines.
4848
40c17879
GM
48492010-05-08 Glenn Morris <rgm@gnu.org>
4850
7b42b29f
GM
4851 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4852
40c17879
GM
4853 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4854 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4855 (termcapobj): Replace with TERMCAP_OBJ.
4856 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4857 (LIBES): Use LIBS_TERMCAP as a variable.
4858
4859 * s/freebsd.h (osreldate.h): No longer include, since this file
4860 does not use __FreeBSD_version any more.
4861
4862 * s/aix4-2.h (TERMINFO):
4863 * s/cygwin.h (TERMINFO):
4864 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4865 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4866 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4867 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4868 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4869 * s/irix6-5.h (TERMINFO):
4870 * s/netbsd.h (LIBS_TERMCAP):
4871 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4872 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4873 * s/usg5-4.h (TERMINFO):
4874 Move to configure.
4875
94b612ad
SM
48762010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4877
4878 * eval.c (unbind_to): Don't unbind a local binding into the global
4879 binding when the local binding disappeared. Inversely, don't unbind
4880 a global binding into a newly created local binding.
4881 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4882 can specify the frame to use, when applicable. Adjust callers.
4883
15e12598 48842010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4885 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4886
4887 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4888
f724825e
EZ
48892010-05-07 Eli Zaretskii <eliz@gnu.org>
4890
5cba3209
EZ
4891 * w32fns.c: Include w32.h.
4892 (Fw32_shell_execute): Decode the error message before passing it
4893 to `error'. (Bug#6126)
4894
d16bdfc3
EZ
4895 * msdos.c (dos_set_window_size):
4896 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4897 instead of `XSYMBOL (foo)->value'.
4898
59d93e87
EZ
48992010-05-07 Eli Zaretskii <eliz@gnu.org>
4900
9fdec8bc
EZ
4901 Fix the MS-DOS build, broken by autoconfiscation.
4902
4903 * Makefile.in: Don't use Make-style comments past the "start of
4904 cpp stuff" line.
4905 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4906
4907 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4908 edited directly by msdos/sed1v2.inp).
f724825e 4909
2f86b22b
GM
49102010-05-07 Glenn Morris <rgm@gnu.org>
4911
4912 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4913 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4914 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4915 move out of cpp section.
4916 * s/freebsd.h (LD_SWITCH_SYSTEM):
4917 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4918 * s/netbsd.h (LD_SWITCH_SYSTEM):
4919 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4920
49ebbd65
DN
49212010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4922
4923 Define LIB_STANDARD and START_FILES using autoconf.
4924 * s/usg5-4.h (LIB_STANDARD):
4925 * s/netbsd.h (START_FILES):
4926 * s/irix6-5.h (LIB_STANDARD):
4927 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4928 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4929 * s/freebsd.h (START_FILES):
4930 * s/darwin.h (START_FILES):
4931 * s/cygwin.h (START_FILES):
4932 * s/aix4-2.h (LIB_STANDARD):
4933 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4934 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4935 autoconf, not cpp.
4936
d43c06d6
DN
49372010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4938
28823648
DN
4939 Remove NEED_BSDTTY and NEED_UNISTD_H.
4940 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4941 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4942 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4943 <sys/ptyio.h> and <unistd.h>.
4944
aca00430
DN
4945 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4946
d43c06d6
DN
4947 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4948 * s/gnu.h (START_FILES): Remove empty definition.
4949
3e56b11d
JD
49502010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4951
4952 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4953
e3cf0cde
GM
49542010-05-06 Glenn Morris <rgm@gnu.org>
4955
4956 * Makefile.in (CPP, LN_S): Remove unused variables.
4957
774b9a60
SM
49582010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4959
4960 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4961
4ab92842
LM
49622010-05-05 Lawrence Mitchell <wence@gmx.li>
4963
4964 * m/sparc.h: Fix typo in earlier change.
4965
178f2507
SM
49662010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4967
4968 Misc tweaks.
4969 * eval.c (Fdefvaralias): Remove unintended nested if.
4970 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4971
80f00217 49722010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4973
4974 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4975
ef03a4e6
DN
49762010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4977
58eb6cf0
DN
4978 Remove BSD_PGRPS.
4979 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4980 * s/gnu-linux.h (BSD_PGRPS): Remove.
4981 * term.c (dissociate_if_controlling_tty):
4982 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4983 (init_sys_modes, reset_sys_modes):
4984 * emacs.c (main):
4985 * callproc.c (Fcall_process, child_setup): Remove code depending
4986 on BSD_PGRPS.
4987
ef03a4e6
DN
4988 Remove POSIX_SIGNALS.
4989 * s/usg5-4.h (POSIX_SIGNALS):
4990 * s/netbsd.h (POSIX_SIGNALS):
4991 * s/msdos.h (POSIX_SIGNALS):
4992 * s/ms-w32.h (POSIX_SIGNALS):
4993 * s/hpux11.h (POSIX_SIGNALS):
4994 * s/gnu.h (POSIX_SIGNALS):
4995 * s/gnu-linux.h (POSIX_SIGNALS):
4996 * s/freebsd.h (POSIX_SIGNALS):
4997 * s/darwin.h (POSIX_SIGNALS):
4998 * s/cygwin.h (POSIX_SIGNALS):
4999 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
5000 * s/unixware.h:
5001 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
5002 * process.c (create_process):
5003 * syssignal.h:
5004 * sysdep.c (wait_for_termination, init_signals):
5005 * process.c (create_process):
5006 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
5007 remove all code that assumes the contrary.
5008
49628785
GM
50092010-05-04 Glenn Morris <rgm@gnu.org>
5010
27a2cdfc
GM
5011 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
5012 variable.
5013 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5014 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
5015 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5016 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
5017 LD_SWITCH_SYSTEM_tmp.
5018 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
5019 New variables, set by configure.
5020
eb21eab5
GM
5021 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5022 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
5023 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5024 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
5025 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
5026
49628785
GM
5027 * s/aix4-2.h (C_SWITCH_SYSTEM):
5028 * m/alpha.h (C_SWITCH_MACHINE):
5029 Move to configure.in.
5030 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
5031 New variables, set by configure.
5032 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
5033 $c_switch_machine and $c_switch_system.
5034
7dff330b
DN
50352010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5036
5037 * s/hpux10-20.h (LIB_STANDARD): New definition.
5038 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
5039 on it, not used anymore.
5040
53967e09
CY
50412010-05-03 Chong Yidong <cyd@stupidchicken.com>
5042
5043 * eval.c (internal_condition_case_n): Rename from
5044 internal_condition_case_2.
5045 (internal_condition_case_2): New function.
5046
5047 * xdisp.c (safe_call): Use internal_condition_case_n.
5048
5049 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
5050 (internal_delete_file, Frename_file): Callers changed.
5051
5052 * buffer.c (Fkill_buffer):
5053 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
5054
5055 * lisp.h: Update prototypes.
5056
3dee6fdb
GM
50572010-05-03 Glenn Morris <rgm@gnu.org>
5058
5059 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
5060 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
5061 (LIBXT): Set with configure, not cpp.
5062 (LIBX): Remove.
5063 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
5064
a101e0fb
DN
50652010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5066
5067 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
5068 The FreeBSD is not needed, the default works, Solaris version is
5069 not needed, and the remaining case is not supported by configure.
5070
f63d0028
JD
50712010-05-02 Jan Djärv <jan.h.d@swipnet.se>
5072
5073 * xsmfns.c (CHDIR_OPT): New define.
5074 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
5075 restarting emacs.
5076
5077 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
5078 shut_down_emacs.
5079
5080 * emacs.c (USAGE1): Mention --chdir.
5081 (main): Handle --chdir.
5082 (standard_args): Add --chdir.
5083 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
5084 #5552).
5085
e4814a9f
DN
50862010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
5087
cd03c74a
DN
5088 Remove LD_SWITCH_MACHINE.
5089 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
5090 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
5091
c3a398a1
DN
5092 Clean up IRIX code.
5093 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
5094 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
5095
87e7285c
DN
5096 Clean up AIX code.
5097 * m/ibmrs6000.inp: Remove file, unused.
5098 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
5099 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
5100 definition ...
5101 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
5102
80f00217
JB
5103 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
5104 unused.
e4814a9f 5105
59ca28de
EZ
51062010-05-01 Eli Zaretskii <eliz@gnu.org>
5107
197daef4
EZ
5108 Emulate POSIX_SIGNALS on MS-Windows.
5109
5110 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
5111 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
5112
5113 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
5114 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
5115 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
5116
80f00217
JB
5117 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
5118 New stubs.
197daef4 5119
af7c7572
EZ
5120 Miscellaneous fixes of bidi display.
5121
59ca28de
EZ
5122 * xdisp.c (find_row_end): New function, refactored from display_line.
5123 (display_line): Use it.
017ea819
EZ
5124 (extend_face_to_end_of_line): In almost-filled rows, extend only
5125 if the row is R2L and not continued.
166e930d 5126 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 5127 Preserve overlay and string info in row->end.
166e930d
EZ
5128 (insert_left_trunc_glyphs): Support addition of left truncation
5129 glyphs to R2L rows.
b47e0dcf 5130 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
5131 glyph between adjacent windows. Fix a crash when a display string
5132 is continued to the next line. Don't return zero if cursor was
5133 found by `cursor' property of a display string.
b47e0dcf
EZ
5134 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
5135 test for that explicitly.
59ca28de 5136
7acac9f4
GM
51372010-05-01 Glenn Morris <rgm@gnu.org>
5138
5139 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
5140 for clarity.
5141 (OTHER_OBJ): Remove.
5142 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
5143 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
5144
45841e65
KK
51452010-05-01 Karel Klíč <kklic@redhat.com>
5146
5147 * fileio.c (Ffile_selinux_context): Context functions may return null.
5148
afc61943
DN
51492010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
5150
80f00217 5151 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 5152
5a1bb006
GM
51532010-04-30 Glenn Morris <rgm@gnu.org>
5154
5155 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
5156 (OTHER_OBJ): Define as a separate variable, for clarity.
5157
210af043
J
51582010-04-30 Jan Djärv <jan.h.d@swipnet.se>
5159
5160 * xsettings.c: include limits.h and update file comment.
5161
0a7df391
GM
51622010-04-30 Glenn Morris <rgm@gnu.org>
5163
d5096f16
GM
5164 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
5165 Set with configure, not cpp.
5166 (LIBW): Remove, replace with $TOOLKIT_LIBW.
5167
7eb1ac33
GM
5168 * Makefile.in (mallocobj): Remove.
5169 (otherobj): Simplify using @OTHER_OBJ@.
5170
517d086b
GM
5171 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
5172 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
5173 Don't bother making nsgui.h dependency platform-specific.
5174
0a7df391
GM
5175 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
5176
d6d23852
SM
51772010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
5178
d2630aef
SM
5179 * process.c (read_process_output, exec_sentinel): Don't burp if the
5180 sentinel/filter kills the current buffer (bug#6060).
5181
f9dddf52 5182 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
5183 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
5184 Remove unused var `args'.
5185 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
5186 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
5187 * doc.c (store_function_docstring): Use XSETCAR.
5188
f1e3642a
GM
51892010-04-28 Glenn Morris <rgm@gnu.org>
5190
faf535f8
GM
5191 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
5192 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
5193
c40f9449
GM
5194 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
5195
658f86ca
GM
5196 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
5197 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
5198
bc0b5f61
GM
5199 * Makefile.in (FONT_OBJ): New, set by configure.
5200 (FONT_DRIVERS): Use $FONT_OBJ.
5201
294c50a0
GM
5202 * Makefile.in (LIBXMU): Set with configure, not cpp.
5203 * s/aix4-2.h (LIBXMU):
5204 * s/hpux10-20.h (LIBXMU):
5205 Remove definition, now set in configure.
5206
e6ec4e99
GM
5207 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
5208
f1e3642a
GM
5209 * m/amdx86-64.h [i386]: Move this test to configure.in.
5210
c6ea2936
GM
52112010-04-27 Glenn Morris <rgm@gnu.org>
5212
8fdac2c3
GM
5213 * Makefile.in (LIBXTR6): Set with configure, not cpp.
5214 * s/unixware.h (NEED_LIBW): Remove definition.
5215
986fb647
GM
5216 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
5217 (TOOLKIT_LIBW): New, set by configure.
5218 (@X_TOOLKIT_TYPE@): No longer define it.
5219
c6ea2936
GM
5220 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
5221 (MOTIF_LIBW): Set with configure, not cpp.
5222 * s/aix4-2.h (LIB_MOTIF):
5223 * s/gnu-linux.h (LIB_MOTIF):
5224 * s/unixware.h (LIB_MOTIF): Move to configure.in.
5225
aaa36002
DN
52262010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
5227
5228 Reduce CPP usage.
5229 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5230 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
5231 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
5232 definitions and undefs. Inline definitions in the only user.
5233 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 5234
b678dd8b
GM
52352010-04-27 Glenn Morris <rgm@gnu.org>
5236
76cda504
GM
5237 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
5238 since the defaults (set by the system file) are fine in most cases.
5239 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
5240 * m/ibms390x.h (START_FILES, LIB_STANDARD):
5241 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
5242 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
5243 Remove definitions, since they are set correctly in s/gnu-linux.h.
5244 * s/freebsd.h (START_FILES, LIB_STANDARD):
5245 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5246 * s/hpux10-20.h (START_FILES):
5247 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
5248 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
5249
b678dd8b
GM
5250 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
5251 (MOTIF_LIBW): Use $LIBXP.
5252 (otherobj): Use $WIDGET_OBJ.
5253
9452ded1
DN
52542010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
5255
7e10844c
DN
5256 * Makefile.in (LIBS_MACHINE): Remove, unused.
5257
9452ded1
DN
5258 Use autoconf instead of cpp for LIB_MATH.
5259 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
5260 * s/cygwin.h (LIB_MATH): Likewise.
5261 * Makefile.in (LIB_MATH): Do not define with cpp.
5262 (LIBES): Use autoconf for LIB_MATH.
5263
fcebfc6a
KH
52642010-04-26 Kenichi Handa <handa@m17n.org>
5265
5266 * composite.c (Ffind_composition_internal): Fix the return value
5267 for an automatic composition.
5268
39e2ad1b
DN
52692010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
5270
5271 Remove all NO_ARG_ARRAY uses.
5272 * fns.c (concat2, concat3, nconc2):
5273 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
5274 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
5275 * m/xtensa.h (NO_ARG_ARRAY):
5276 * m/template.h (NO_ARG_ARRAY):
5277 * m/sparc.h (NO_ARG_ARRAY):
5278 * m/sh3.h (NO_ARG_ARRAY):
5279 * m/mips.h (NO_ARG_ARRAY):
5280 * m/macppc.h (NO_ARG_ARRAY):
5281 * m/iris4d.h (NO_ARG_ARRAY):
5282 * m/intel386.h (NO_ARG_ARRAY):
5283 * m/ibms390x.h (NO_ARG_ARRAY):
5284 * m/ibms390.h (NO_ARG_ARRAY):
5285 * m/ibmrs6000.h (NO_ARG_ARRAY):
5286 * m/ia64.h (NO_ARG_ARRAY):
5287 * m/hp800.h (NO_ARG_ARRAY):
5288 * m/arm.h (NO_ARG_ARRAY):
5289 * m/amdx86-64.h (NO_ARG_ARRAY):
5290 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5291
adf4f59c
EZ
52922010-04-25 Eli Zaretskii <eliz@gnu.org>
5293
6bdf5d65
EZ
5294 * xdisp.c (display_line): Don't assume 2nd call to
5295 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
5296 (iterate_out_of_display_property): New function, body from pop_it.
5297 (pop_it): Use it.
adf4f59c 5298
dfbbda83
GM
52992010-04-24 Glenn Morris <rgm@gnu.org>
5300
5301 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5302 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5303 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5304 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
5305
2d4018aa
EZ
53062010-04-24 Eli Zaretskii <eliz@gnu.org>
5307
a49884a6
EZ
5308 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5309 use `get_next_display_element' and `set_iterator_to_next' to
5310 advance to the next character, when looking for the character that
5311 begins the next row.
5312
76db6fcc 5313 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
5314 definition of "struct Lisp_Symbol".
5315
70eab5c1
GM
53162010-04-24 Glenn Morris <rgm@gnu.org>
5317
5318 * Makefile.in (CRT_DIR): New variable, set by configure.
5319 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5320 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5321
1ad4cc3d
DN
53222010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5323
e769f484
DN
5324 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5325
4196ff33
DN
5326 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5327
879b0ee4
DN
5328 Remove redundant flags.
5329 * s/freebsd.h (C_SWITCH_SYSTEM):
5330 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5331 * s/netbsd.h (C_SWITCH_SYSTEM):
5332 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5333 of these.
5334
03cbbcb8
DN
5335 Simplify m/intel386.h.
5336 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5337 user: ecrt0.c.
5338 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5339 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5340 the only user: s/unixware.h.
5341 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5342 from m/intel386.h.
5343 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5344 moved here from m/intel386.h.
5345
1ad4cc3d
DN
5346 * m/mips.h: Remove #if 0 code.
5347
8785b888
EZ
53482010-04-23 Eli Zaretskii <eliz@gnu.org>
5349
728588cc
EZ
5350 Fix display of composed characters from L2R scripts in bidi buffers.
5351 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5352 After advancing IT past the composition, resync the bidi iterator
5353 with IT's position. (Bug#5977)
5354
a63f80b4
DN
53552010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5356
5357 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5358 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5359
ff5dec5c
SM
53602010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5361
5362 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5363
8785b888
EZ
53642010-04-23 Eli Zaretskii <eliz@gnu.org>
5365
58ccf243 5366 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
5367 * xdisp.c (pop_it): When the stack is popped after displaying
5368 from a string, bidi-iterate to exit from the text portion covered
5369 by the `display' property or overlay. (Bug#5988, bug#5920)
5370
feeb1604
DN
53712010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5372
8e324eb6
DN
5373 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5374 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5375
809fcaba
DN
5376 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5377 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5378
ed710380
DN
5379 Simplify STARTFILES definition.
5380 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5381 relying on Makefile.in to define it.
5382 * s/cygwin.h (START_FILES): Likewise.
5383 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5384
feeb1604
DN
5385 Clean up Solaris code.
5386 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5387 (LIB_MOTIF): Remove, configure takes care of this.
5388 (NOT_USING_MOTIF): Remove, unused.
5389 * xrdb.c: Remove #if 0-ed #include.
5390 (SYSV): Remove conditional for old SysV.
5391 * sysdep.c (closedir): Remove conditional code for Solaris,
5392 Solaris has closedir.
5393
a0d0b563
JD
53942010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5395
5396 * xsettings.c (read_and_apply_settings): Check if current_font is
5397 NULL before strcmp (Bug#6001).
5398
56bae7c7
DN
53992010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5400
5401 Clean up HP-UX files.
5402 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5403 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5404 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5405 * s/hpux10-20.h: ... to the only user, here.
5406
372b7a95
EZ
54072010-04-21 Eli Zaretskii <eliz@gnu.org>
5408
5409 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5410 use buffer-local values of paragraph-start and paragraph-separate.
5411 <paragraph_start_re, paragraph_separate_re>: Rename from
5412 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5413 (Bug#5992)
5414
f904c0f9
JD
54152010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5416
5417 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5418 current_tool_bar_style are new.
5419 (store_config_changed_event): Rename from store_font_changed_event.
5420 (XSETTINGS_TOOL_BAR_STYLE): New define.
5421 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5422 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5423 HAVE_XFT.
5424 (something_changedCB): store_font_changed_event is now
c4cc8b9a 5425 store_config_changed_event.
f904c0f9
JD
5426 (parse_settings): Rename from parse_xft_settings. Read
5427 non-xft xsettings outside #ifdef HAVE_XFT.
5428 (read_settings): Renamed from read_xft_settings.
5429 (apply_xft_settings): Take current settings as parameter. Do not
5430 call read_(xft)_settings.
5431 (read_and_apply_settings): New function.
5432 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5433 read_and_apply_settings if there are settings to be read.
5434 (init_xsettings): Renamed from init_xfd_settings.
5435 Call read_and_apply_settings unconditionally.
5436 (xsettings_initialize): Call init_xsettings.
5437 (Ftool_bar_get_system_style): New function.
5438 (syms_of_xsettings): Define Qmonospace_font_name and
5439 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 5440 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 5441 dynamic-setting.
31a01b90 5442 Move misplaced HAVE_GCONF
f904c0f9
JD
5443
5444 * xsettings.h (Ftool_bar_get_system_style): Declare.
5445
5446 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5447 Qtext, Qboth, Qboth_horiz are new.
5448 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5449 Vtool_bar_style, tool_bar_max_label_size.
5450
5451 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5452
5453 * keyboard.c: QClabel is new.
5454 (parse_tool_bar_item): Take out QClabel from tool bar items.
5455 Try to construct a label if ther is no QClabel.
5456 (syms_of_keyboard): Intern :label as QClabel.
5457
5458 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5459 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5460 New.
5461
5462 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5463 dynamic-setting.el.
5464
5465 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5466 (xg_make_tool_item, xg_show_toolbar_item): New function.
5467 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5468 Call xg_make_tool_item to make a tool bar item.
5469 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5470
5471 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5472 into account for toolbars.
5473
c632dfda
JD
54742010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5475
5476 * data.c (make_blv): Declarations before code (Bug#5993).
5477
10efe302
GM
54782010-04-21 Glenn Morris <rgm@gnu.org>
5479
5480 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5481 Define using autoconf, not cpp.
5482 (LIBXSM): New variable, set by autoconf.
5483 (LIBXT): Use $LIBXSM.
5484
4285ac5a
DN
54852010-04-21 Dan Nicolaescu <local_user@dannlt>
5486
3ec759e7
DN
5487 Remove NOMULTIPLEJOBS, unused.
5488 * s/template.h (NOMULTIPLEJOBS):
5489 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5490
4285ac5a
DN
5491 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5492 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5493 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5494 detects -znocombreloc and passes it to the linker
5495 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5496
2807228d
GM
54972010-04-21 Glenn Morris <rgm@gnu.org>
5498
5499 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5500
574c05e2
KK
55012010-04-21 Karel Klíč <kklic@redhat.com>
5502
5503 * Makefile.in (LIBSELINUX_LIBS): New.
5504 (LIBES): Add $LIBSELINUX_LIBS.
5505 * eval.c, lisp.h (call7): New function.
5506 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5507 (Ffile_selinux_context, Fset_file_selinux_context):
5508 New functions.
5509 (Fcopy_file): New parameter preserve-selinux-context.
5510 (Frename_file): Preserve selinux context when renaming by copy-file.
5511
91eac4bb 55122010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 5513 Eli Zaretskii <eliz@gnu.org>
91eac4bb 5514
50426a04
JB
5515 Don't depend on cm.c or termcap.c on Windows, use stubs.
5516 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5517 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5518 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5519 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5520 (sys_tputs, sys_tgetstr): New stubs.
5521 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5522 (tputs, tgetstr): New; define to sys_*.
91eac4bb 5523
938efb77
JB
55242010-04-20 Juanma Barranquero <lekktu@gmail.com>
5525
5526 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5527
b4bf28b7
SM
55282010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5529
8b1e1112
SM
5530 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5531 Just signal a warning rather than an error when inside a let.
5532 (Fmake_variable_frame_local): Add the same test.
5533
933ac235
SM
5534 * font.c (syms_of_font): Make the style table vars read-only.
5535
b4bf28b7
SM
5536 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5537 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5538
5539 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5540
93d68d0c
EZ
55412010-04-20 Eli Zaretskii <eliz@gnu.org>
5542
5543 Fix R2L paragraph display on TTY.
5544
5545 * xdisp.c (unproduce_glyphs): New function.
5546 (display_line): Use it when produced glyphs are discarded from R2L
5547 glyph rows.
5548 (append_composite_glyph): In R2L rows, prepend the glyph rather
5549 than appending it.
5550
5551 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5552 rather than append it. Set up the resolved_level and bidi_type
5553 attributes of the appended glyph.
283ccc18
EZ
5554 (produce_special_glyphs): Mirror the backslash continuation
5555 character in R2L lines.
93d68d0c 5556
283ccc18 5557 Implement display of R2L paragraphs in GUI sessions.
26cdf528 5558
283ccc18
EZ
5559 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5560 append_stretch_glyph.
5561 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5562 off-by-one error in computing x at end of text in the row.
5563 (append_stretch_glyph): In reversed row, prepend the glyph rather
5564 than append it. Set resolved_level and bidi_type of the glyph.
5565 (extend_face_to_end_of_line): If the row is reversed, prepend a
5566 stretch glyph whose width is such that the rightmost glyph will be
5567 drawn at the right margin of the window. Fix off-by-one error on
5568 TTY frames in testing whether a line needs face extension. Fix
5569 face extension at ZV. If this is the last glyph row, use
5570 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5571 region face.
5572 (set_cursor_from_row, display_line): Use
26cdf528
EZ
5573 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5574 row->continuation_lines_width.
283ccc18
EZ
5575 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5576 are at ZV. Fixes a crash when reseated to ZV by
5577 try_window_reusing_current_matrix.
45903529
EZ
5578 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5579 which happens with R2L glyph rows. Fixes a crash when inserting a
5580 character at end of an R2L line.
283ccc18
EZ
5581 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5582 treat them as having zero-width characters. Improve comments.
5583 Don't reverse pos_before and pos_after for reversed glyph rows.
5584 Set cursor.x to negative value when the cursor might be on the
5585 left fringe.
5586 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5587 left fringe, not the right one.
f951a506
EZ
5588 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5589 (erase_phys_cursor): For reversed cursor_row, support cursor on
5590 the left fringe.
5591
283ccc18
EZ
5592 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5593 of continuation indicators on the fringes.
5594 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5595 left fringe.
5596
f951a506
EZ
5597 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5598 draw cursor on the left fringe.
5599
5600 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5601 cursor on the left fringe.
5602
f951a506
EZ
5603 * dispnew.c (update_text_area): Handle reversed desired rows when
5604 the cursor is on the left fringe.
5605 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5606 below, not by 0, for when the cursor is on the left fringe.
5607
3bb49aaf
JD
56082010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5609
5610 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5611 widget is a scrollbar.
5612
c0be27fd
KH
56132010-04-20 Kenichi Handa <handa@m17n.org>
5614
5615 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5616 only when the arg CHARSET_LIST is nil.
5617
ce5b453a
SM
56182010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5619
5620 Make variable forwarding explicit rather the using special values.
5621 Basically, this makes the structure of buffer-local values and object
5622 forwarding explicit in the type of Lisp_Symbols rather than use
5623 special Lisp_Objects for that. This tends to lead to slightly more
5624 verbose code, but is more C-like, simpler, and makes it easier to make
5625 sure we handled all cases, among other things by letting the compiler
5626 help us check it.
5627 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5628 Removing forwarding objects.
5629 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5630 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5631 explicit rather than hiding them inside Lisp_Object "values".
5632 (XFWDTYPE): New macro.
5633 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5634 (XBUFFER_LOCAL_VALUE): Remove.
5635 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5636 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5637 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5638 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5639 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5640 Remove the Lisp_Misc_* header.
5641 (struct Lisp_Buffer_Local_Value): Redefine.
5642 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5643 (struct Lisp_Misc_Any): Add filler to get the right size.
5644 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5645 Lisp_Intfwd.
5646 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5647 (DEFVAR_KBOARD): Allocate a forwarding object.
5648 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5649 (let_shadows_global_binding_p): New function.
5650 (union Lisp_Val_Fwd): New type.
5651 (make_blv): New function.
5652 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5653 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5654 (swap_in_symval_forwarding, find_symbol_value, Fset)
5655 (let_shadows_buffer_binding_p, set_internal, default_value)
5656 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5657 (Fkill_local_variable, Fmake_variable_frame_local)
5658 (Flocal_variable_p, Flocal_variable_if_set_p)
5659 (Fvariable_binding_locus):
5660 * xdisp.c (select_frame_for_redisplay):
5661 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5662 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5663 * frame.c (store_frame_param):
5664 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5665 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5666 value structure.
5667 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5668 (clone_per_buffer_values): Only adjust markers into the current buffer.
5669 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5670 (Fbuffer_local_value, set_buffer_internal_1)
5671 (swap_out_buffer_local_variables):
5672 Adapt to the new symbol value structure.
5673 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5674 (defvar_per_buffer): Take a new arg for the fwd object.
5675 (buffer_lisp_local_variables): Return a proper alist (different fix
5676 for bug#4138).
5677 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5678 (Fgarbage_collect): Don't handle buffer_defaults specially.
5679 (mark_object): Handle new symbol value structure rather than the old
5680 special Lisp_Misc_* objects.
5681 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5682 * term.c (set_tty_color_mode):
5683 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5684 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5685 a buffer_local_flags.
5686 * print.c (print_object): Get rid of impossible forwarding objects.
5687
fd3998ff
EZ
56882010-04-19 Eli Zaretskii <eliz@gnu.org>
5689
5690 * bidi.c (bidi_get_type, bidi_get_category)
5691 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
5692 (bidi_type_of_next_char, bidi_level_of_next_char):
5693 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 5694
e42cd1a7
JB
56952010-04-19 Juanma Barranquero <lekktu@gmail.com>
5696
5697 * dired.c (Ffile_attributes): Fix typo in docstring.
5698
6e104790 56992010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
5700
5701 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5702 NSInteger (Bug#5811).
5703
6e104790 57042010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
5705
5706 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5707 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5708
6e104790 57092010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
5710
5711 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5712
6e104790
SM
57132010-04-19 Chong Yidong <cyd@stupidchicken.com>
5714
5715 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5716 terminal frames (Bug#5837).
5717
37dcfea0
EZ
57182010-04-19 Eli Zaretskii <eliz@gnu.org>
5719
d1da276f
EZ
5720 * .gdbinit (xsubchartable): New command.
5721
37dcfea0
EZ
57222010-04-19 Eli Zaretskii <eliz@gnu.org>
5723
5724 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 5725 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
5726 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5727 and
5728 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5729
e9515805
SM
57302010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5731
5732 * alloc.c (Fpurecopy): Hash-cons if requested.
5733 (syms_of_alloc): Update purify-flag docstring.
5734
22aa44a8
JD
57352010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5736
5737 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5738 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5739
ebb5722e
EZ
57402010-04-17 Eli Zaretskii <eliz@gnu.org>
5741
5742 Fix a crash when an NSM character is inserted at BEGV.
5743
5744 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5745 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5746 NEUTRAL_B or UNKNOWN_BT.
5747
0f4442ef
EZ
57482010-04-16 Eli Zaretskii <eliz@gnu.org>
5749
5750 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5751 other rows with cursor unless they are different from this row and
5752 this row is part of a continued line. (Bug#5943)
5753
7d4e45f8
DN
57542010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5755
5756 * s/freebsd.h: Restore osreldate.h include.
5757 Suggested by Naohiro Aota.
5758
5ba5ec85
J
57592010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5760
5761 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5762
20af301d
CY
57632010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5764
5765 * s/cygwin.h: Avoid linking against static libgcc.
5766
a4b000fb
JL
57672010-04-15 Juri Linkov <juri@jurta.org>
5768
5769 * window.c: Add Qscroll_command.
5770 Remove Vscroll_preserve_screen_position_commands.
5771 (window_scroll_pixel_based, window_scroll_line_based): Check the
5772 `scroll-command' property on the last command instead of searching
5773 the last command in Vscroll_preserve_screen_position_commands.
5774 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5775 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5776 (scroll-preserve-screen-position): Doc fix.
5777 (Vscroll_preserve_screen_position_commands): Remove variable.
5778
bc319ba4
DN
57792010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5780
6bb24457
DN
5781 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5782
19d4c244
DN
57832010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5784
5785 Reduce cpp use in Makefile.in.
5786 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5787 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5788 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5789 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5790 (CRT0_COMPILE): Remove, inline it in the only user.
5791
32129746
JL
57922010-04-14 Juri Linkov <juri@jurta.org>
5793
5794 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5795 `scroll-up-command' and `M-v' from `scroll-down' to
5796 `scroll-down-command'.
5797
9013a7f8
JL
57982010-04-14 Juri Linkov <juri@jurta.org>
5799
5800 * window.c (Vscroll_preserve_screen_position_commands): New variable
5801 with the default value as the list of Qscroll_down and Qscroll_up.
5802 (window_scroll_pixel_based, window_scroll_line_based): Search the
5803 last command in the list Vscroll_preserve_screen_position_commands
5804 instead of comparing with Qscroll_up and Qscroll_down.
5805
4bef8d26
JD
58062010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5807
92848133
JD
5808 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5809 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5810 does that.
5811
4bef8d26
JD
5812 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5813 to zero.
5814
58b963f7
SM
58152010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5816
84164a0d
SM
5817 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5818
2b0a91e7
SM
5819 Try to solve the problem of spurious EOF chars in long lines of text
5820 sent to interactive subprocesses.
5821 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5822 (system_process_attributes): Remove unused var `ttotal'.
5823 * process.c (send_process): Don't bother breaking long line with EOF
5824 chars when talking to ttys any more.
5825 (wait_reading_process_output): Output a warning when called in such
5826 a way that it could block without being interruptible.
5827
58b963f7
SM
5828 Try to detect file modification within the same second.
5829 * buffer.h (struct buffer): New field modtime_size.
5830 * buffer.c (reset_buffer): Initialize it.
5831 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5832 (Fverify_visited_file_modtime): Check it.
5833 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5834 (Fset_visited_file_modtime): Set (or clear) it.
5835
01f5787b
SM
58362010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5837
5838 * process.c (status_notify): Remove unused var `ro'.
5839
83725342
JD
58402010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5841
5842 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5843 more than one visual (Bug#5938).
5844
b9465836
DN
58452010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5846
50426a04
JB
5847 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5848 Undefine.
b9465836 5849
8d9c8ece
DN
58502010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5851
b1f52161
DN
5852 Remove C_SWITCH_SYSTEM_TEMACS.
5853 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5854 (malloc, realloc, free): Use emacs, not temacs for conditional
5855 definition.
5856
5857 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5858 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5859
8d9c8ece
DN
5860 Use autoconf, not cpp for some variables.
5861 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5862 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5863 (ALL_CFLAGS): Use them as make variables.
5864 (really-lwlib, really-oldXMenu): Do not pass them.
5865
1ecb2d3f
JD
58662010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5867
5868 * xmenu.c (apply_systemfont_to_dialog): New.
5869 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5870
3a4fa2f2
SM
58712010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5872
97e53006
SM
5873 * process.c (exec_sentinel): Preserve current-buffer.
5874
3a4fa2f2
SM
5875 * process.c (read_process_output): Move the save-current-buffer to
5876 apply to both the filter and the non-filter branches.
5877
88df7221
DN
58782010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5879
5880 * s/msdos.h (UNEXEC): New definition.
5881
5634ff85
YM
58822010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5883
6eff5c3d
YM
5884 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5885 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5886
5887 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5888 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5889 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5890 TRY_WINDOW_CHECK_MARGINS.
5891
5892 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5893 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5894 width only when it is for padding.
5634ff85 5895
b13aef54
J
58962010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5897
5898 * xfns.c (Fx_show_tip): Call try_window in a loop until
5899 fonts_changed_p is zero (Bug#2423).
5900
21d28484
EZ
59012010-04-08 Eli Zaretskii <eliz@gnu.org>
5902
5903 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5904 the end of TEXT_AREA. (Bug#5856)
5905
0269ef77
JD
59062010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5907
5908 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5909 HAVE_GCONF.
5910
5930fe97
EZ
59112010-04-08 Eli Zaretskii <eliz@gnu.org>
5912
5913 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5914 prev.orig_type, for resolving type of NSM. (Bug#5858)
5915
99852628
JD
59162010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5917
5918 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5919 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5920 in current_font.
5921 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5922 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5923 New functions.
5924 (syms_of_xsettings): Initialize current_font.
5925 defsubr Sfont_get_system_normal_font.
99852628 5926
686b968e
JB
5927 * xsettings.h (Ffont_get_system_normal_font)
5928 (xsettings_get_system_normal_font): Declare.
99852628
JD
5929
5930 * xfns.c (extern xlwmenu_default_font): Remove.
5931 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5932 to xlwmenu.c.
5933
5934 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5935 menu items in UTF-8.
5936
5937 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5938 (apply_systemfont_to_menu): New function.
5939 (set_frame_menubar, create_and_show_popup_menu): Call
5940 apply_systemfont_to_menu.
5941
7fc874c4
J
59422010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5943
5944 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5945 FRAME_LINE_TO_PIXEL_Y.
5946
5947 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5948 pixelwidth/height.
5949
863bf481
DN
59502010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5951
5e5a3b92
DN
5952 Simplify code for HP machines.
5953 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5954 for GNU_LINUX, not needed.
5955 (UNEXEC, NEED_BSDTTY): Move definitions...
5956 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5957
863bf481
DN
5958 * m/iris4d.h (UNEXEC): Move definition ...
5959 * s/irix6-5.h (UNEXEC): ... here.
5960
3e6bec3b
JD
59612010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5962
5963 * xfns.c (set_machine_and_pid_properties): New function.
5964 (Fx_create_frame): Call set_machine_and_pid_properties.
5965
2912322b
SM
59662010-04-03 Eli Zaretskii <eliz@gnu.org>
5967
1502b819
EZ
5968 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5969 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5970 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5971
2912322b
SM
5972 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5973 in this function. (Bug#5703)
5974
59752010-04-03 Chong Yidong <cyd@stupidchicken.com>
5976
5977 * nsterm.h: Fix last change.
5978
c435b432
DN
59792010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5980
a568f507
DN
5981 * m/intel386.h (NO_REMAP): Move definition ...
5982 * s/msdos.h (NO_REMAP): ... here.
5983
4cd9f6c2
DN
5984 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5985
c435b432
DN
5986 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5987 used on those platforms.
5988
42a2c622
DN
59892010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5990
5991 Remove extern errno declarations.
5992 * xterm.c:
5993 * xrdb.c:
5994 * w32term.c:
5995 * unexec.c:
5996 * unexaix.c:
5997 * sysdep.c:
5998 * process.c:
5999 * lread.c:
6000 * keyboard.c:
6001 * floatfns.c:
6002 * filelock.c:
6003 * fileio.c:
6004 * emacs.c (main):
6005 * ecrt0.c:
6006 * dispnew.c:
6007 * callproc.c:
6008 * buffer.c: Remove errno extern declarations.
6009 * s/netbsd.h (NEED_ERRNO): Remove.
6010
8224f93d
DN
60112010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
6012
6013 Remove all uses of LIBX11_SYSTEM.
6014 * Makefile.in (LIBX11_SYSTEM): Remove.
6015 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
6016 instead.
6017
814062c7
EZ
60182010-04-01 Eli Zaretskii <eliz@gnu.org>
6019
ed68db4d
EZ
6020 Remove support for DJGPP v1.x (bug#5813).
6021
6022 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
6023 * s/msdos.h:
6024 * unexec.c (make_hdr, copy_text_and_data):
6025 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 6026 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
6027 (IT_set_terminal_modes, __write, _rename, gethostname)
6028 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
6029 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
6030 the value of __DJGPP__.
ed68db4d
EZ
6031 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
6032 compatibility code.
8224f93d
DN
6033 * lread.c:
6034 * gmalloc.c (memalign):
6035 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
6036 * emacs.c (main):
6037 * dosfns.c (init_dosfns):
ed68db4d
EZ
6038 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
6039
52f4d8d5
EZ
60402010-04-01 Eli Zaretskii <eliz@gnu.org>
6041
814062c7
EZ
6042 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
6043 string with `cursor' property comes from an `after-string'
6044 overlay. (Bug#5816)
6045
0dc2e11d
GM
60462010-04-01 Glenn Morris <rgm@gnu.org>
6047
6048 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
6049 Define as Makefile variables.
6050 (LIBX): Use above variables rather than directly using autoconf.
6051
1d29df59
DN
60522010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
6053
6054 Clean up BSD_SYSTEM use.
6055 * xterm.c:
6056 * process.c:
6057 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
6058 for including <sys/ioctl.h>.
6059 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
6060 code is only used for MSDOS.
6061
1546c559
JL
60622010-03-31 Juri Linkov <juri@jurta.org>
6063
6064 * image.c: Add `Qextension_data'.
6065 (syms_of_image): Initialize and staticpro `Qextension_data'.
6066 (Fimage_metadata): Rename from `Fimage_extension_data'.
6067 (gif_load): Put GIF extension data to the property
6068 `Qextension_data'.
6069
6521c534
CY
60702010-03-31 Chong Yidong <cyd@stupidchicken.com>
6071
6072 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
6073 * nsterm.h: Fix prototype.
6074
52c30783
EZ
60752010-03-31 Eli Zaretskii <eliz@gnu.org>
6076
6077 * xdisp.c (highlight_trailing_whitespace): Support highlight of
6078 trailing whitespace in right-to-left rows.
6079
855a0da7
SM
60802010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6081
6082 Get rid of the direct_output optimizations.
6083 * keyboard.c (nonundocount): Remove extern declaration.
6084 (command_loop_1): Remove brittle optimisation for cheap and
6085 common operations.
6086 * xdisp.c (redisplay_internal): Don't bother checking
6087 redisplay_performed_directly_p any more.
6088 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
6089 any more.
6090 * dispnew.c (redisplay_performed_directly_p)
6091 (direct_output_for_insert, direct_output_forward_char):
6092 * dispextern.h (redisplay_performed_directly_p)
6093 (direct_output_for_insert, direct_output_forward_char): Remove.
6094 * cmds.c (nonundocount): Make it static.
6095
85738751 60962010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
6097
6098 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
6099
85738751 61002010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
6101
6102 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
6103 invisible (Bug#5766).
6104
85738751 61052010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 6106
855a0da7
SM
6107 * xdisp.c (x_consider_frame_title, update_window_cursor):
6108 Remove HAVE_NS conditionals.
194d44e7 6109 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
6110
6111 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
6112 filename for the title.
6113 (ns_set_doc_edited): Do nothing if the selected window is a
6114 minibuffer window.
6115
6116 * nsterm.h: Add prototypes for ns_set_name_as_filename and
6117 ns_set_doc_edited.
6118
6119 * nsterm.m: Remove unneeded prototype.
6120
85738751 61212010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
6122
6123 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
6124 in the DOC file. (Bug#5336)
6125
85738751 61262010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
6127
6128 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
6129
75d1428c
SM
61302010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6131
6132 * window.c (keys_of_window): Remove redundant/overridden bindings.
6133
82043cfb
EZ
61342010-03-30 Eli Zaretskii <eliz@gnu.org>
6135
6136 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
6137 Restore original behavior when the iterator is not bidi_p.
6138
b5dd0ae7
DN
61392010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6140
6141 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
6142
bd924a5d
EZ
61432010-03-30 Eli Zaretskii <eliz@gnu.org>
6144
6145 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
6146 are outside the range of cached character positions.
6147
3580374b
JB
61482010-03-30 Juanma Barranquero <lekktu@gmail.com>
6149
6150 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
6151
a7b02820
EZ
61522010-03-30 Eli Zaretskii <eliz@gnu.org>
6153
6154 Initial support for bidirectional editing.
6155
6156 * Makefile.in (obj): Include bidi.o.
6157 (bidi.o): New target.
6158
6159 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
6160 ($(BLD)/bidi.$(O)): New target.
6161
6162 * bidi.c: New file.
6163
6164 * buffer.h (struct buffer): New members bidi_display_reordering
6165 and bidi_paragraph_direction.
6166
6167 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
6168 and bidi_paragraph_direction.
6169 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
6170 and bidi-paragraph-direction.
6171 (Fbuffer_swap_text): Swap the values of
6172 bidi_display_reordering and bidi_paragraph_direction.
6173
6174 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
6175 (bidi_type_t, bidi_dir_t): New types.
6176 (bidi_saved_info, bidi_stack, bidi_it): New structures.
6177 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
6178 prev_stop, base_level_stop, and eol_pos.
6179 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
6180 (IT_STACK_SIZE): Enlarge to 5.
6181 (struct glyph_row): New member reversed_p.
6182 <string_buffer_position>: Update prototype.
6183 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
6184 glyph_row if bidi_it.paragraph_dir == R2L.
6185 (struct glyph): New members resolved_level and bidi_type.
6186
6187 * dispnew.c (direct_output_forward_char): Give up if we need bidi
6188 processing or buffer's direction is right-to-left.
6189 (prepare_desired_row): Preserve the reversed_p flag.
6190 (row_equal_p): Compare the reversed_p attributes as well.
6191
6192 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
6193 bidi_init_it and set it->paragraph_embedding from the current
6194 buffer's value of bidi_paragraph_direction.
6195 (reseat_1): Initialize bidi_it.first_elt.
6196 (set_iterator_to_next, next_element_from_buffer): Use the value of
6197 paragraph_embedding to determine the paragraph direction.
6198 (set_iterator_to_next): Under bidi reordering, call
6199 bidi_get_next_char_visually. Call bidi_paragraph_init if the
6200 new_paragraph flag is set in the bidi iterator.
6201 (next_element_from_buffer): If bidi_it.first_elt is set,
6202 initialize paragraph direction and find the first character to
6203 display in the visual order. If reseated to a middle of a line,
6204 prime the bidi iterator starting at the line's beginning. Handle
6205 the situation where we overstepped stop_charpos due to
6206 non-linearity of the bidi iteration. Likewise for when we back up
6207 beyond the previous stop_charpos. When moving across stop_charpos,
6208 record it in prev_stop.
6209 (display_line): Set row->end and it->start for the next row to the
6210 next character in logical order. Always extend reversed_p rows to
6211 the end of line, even if they end at ZV. Copy the reversed_p flag
6212 to the next glyph row. Keep calling set_cursor_from_row for
6213 bidi-reordered rows even if we already have a possible candidate
6214 for cursor position. Set row_end after all the row's glyphs have
6215 been produced, by looping over the glyphs. Record the position
6216 after EOL in it->eol_pos, and use it to set end_pos of the last
6217 row produced for a continued line.
6218 <Qright_to_left, Qleft_to_right>: New variables.
6219 (syms_of_xdisp): Initialize and staticpro them.
6220 (string_buffer_position_lim): New function.
6221 (string_buffer_position): Most of code moved to
6222 string_buffer_position_lim. Last argument and return value are
6223 now EMACS_INT; all callers changed.
6224 (set_cursor_from_row): Rewritten to support bidirectional text and
6225 reversed glyph rows.
6226 (text_outside_line_unchanged_p, try_window_id): Disable
6227 optimizations if we are reordering bidirectional text and the
6228 paragraph direction can be affected by the change.
6229 (append_glyph, append_composite_glyph)
6230 (produce_image_glyph, append_stretch_glyph): Set the
6231 resolved_level and bidi_type members of each glyph.
6232 (append_glyph): If the glyph row is reversed, prepend the glyph
6233 rather than appending it.
6234 (handle_stop_backwards): New function.
6235 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
6236 (reseat): call handle_stop_backwards to recompute prev_stop and
6237 base_level_stop for the new position.
6238 (handle_invisible_prop): Under bidi iteration, skip invisible text
6239 using bidi_get_next_char_visually. If we are `reseat'ed, init the
6240 paragraph direction. Update IT->prev_stop after skipping
6241 invisible text.
6242 (move_it_in_display_line_to): New variables prev_method
6243 and prev_pos. Compare for strict equality in
6244 BUFFER_POS_REACHED_P.
6245 (try_cursor_movement): Examine all the candidate rows that occlude
6246 point, to return the best match. If rows are bidi-reordered
6247 and point moved backwards, back up to the row that is not a
6248 continuation line, and start looking for a suitable row from
6249 there.
6250
6251 * term.c (append_glyph): Reverse glyphs by pre-pending them,
6252 rather than appending, if the glyph_row's reversed_p flag is set.
6253 Set the resolved_level and bidi_type members of each glyph.
6254
6255 * .gdbinit (pbiditype): New command.
6256 (pgx): Use it to display bidi level and type of the glyph.
6257 (pitx): Display some bidi information about the iterator.
6258 (prowlims, pmtxrows): New commands.
6259
32a8894e
DN
62602010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6261
6262 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
6263 * s/usg5-4.h (LIBS_DEBUG):
6264 * s/irix6-5.h (C_DEBUG_SWITCH):
6265 * s/gnu-linux.h (LIBS_DEBUG):
6266 * s/darwin.h (LIBS_DEBUG):
6267 * s/bsd-common.h (LIBS_DEBUG):
6268 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
6269 * m/iris4d.h (LIBS_DEBUG):
6270 * m/hp800.h (LIBS_DEBUG): Remove definitions.
6271
6272 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
6273 (LIBS_DEBUG): Remove definition.
6274
649dbf36
CY
62752010-03-27 Chong Yidong <cyd@stupidchicken.com>
6276
6277 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
6278 Windows.
6279
cad4261f
YM
62802010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6281
6282 * process.c (Fmake_network_process): Don't call turn_on_atimers around
6283 `connect' (Bug#5723).
6284
cd591dbc
HE
62852010-03-25 Helmut Eller <eller.helmut@gmail.com>
6286
6287 * process.c (Fmake_network_process): Call `select' for interrupted
6288 `connect' rather than creating new socket (Bug#5173).
6289
e867cb5d 62902010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
6291
6292 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6293
6294 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6295
6296 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6297
e867cb5d 62982010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
6299
6300 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6301 XLoadQueryFont.
6302
e867cb5d 63032010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
6304
6305 * coding.c (decode_coding_ccl): Fix previous change for the
6306 multibyte case.
fb608df3
KH
6307 (encode_coding_ccl): Don't setup ccl program here. Fix for the
6308 case that the output buffer is fullfilled.
6309 (encode_coding): Setup ccl program here.
fbdc1721 6310
5845f0ed
DN
63112010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
6312
814fb708
DN
6313 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6314
5845f0ed
DN
6315 Simplify LIBS_MACHINE definitions.
6316 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6317 * m/iris4d.h (LIBS_MACHINE): Likewise.
6318 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6319 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 6320 * s/netbsd.h: Remove commented out code.
5845f0ed 6321
b7064064
DN
63222010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6323
df7734b2
DN
6324 Remove dead code dealing with POSIX_SIGNALS.
6325 * atimer.c (set_alarm): Remove dead code, all USG systems define
6326 POSIX_SIGNALS.
6327 * data.c (arith_error): Likewise.
6328 * keyboard.c (input_available_signal, handle_user_signal)
6329 (interrupt_signal): Likewise.
6330 * process.c (sigchld_handler): Likewise.
6331 (create_process): Remove if 0 code. Remove HPUX conditional when
6332 !defined (POSIX_SIGNALS), it cannot be true.
6333 * syssignal.h: Remove USG5_4 and USG conditionals when
6334 !POSIX_SIGNALS, they cannot be true.
6335
b7064064
DN
6336 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6337 NO_SOCK_SIGIO, not used anymore.
6338
55da5ee3
DN
63392010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6340
0be96e3a
DN
6341 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6342 support vax on BSDs.
6343
55da5ee3
DN
6344 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6345 * s/aix4-2.h (ORDINARY_LINK): ... here.
6346
c0282183
AS
63472010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6348
82c3d67a
AS
6349 * Makefile.in (abs_builddir): Define.
6350 (bootstrap_exe): Use it.
6351 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 6352
3613edce
SM
63532010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6354
6355 * Makefile.in (bootstrap_exe): Use an absolute name.
6356
7f110ddc
DN
63572010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6358
22e87574
DN
6359 Remove support for old GNU/Linux using libc version 5.
6360 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6361 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6362
05a670e6
DN
6363 Consolidate redundant definitions in s/bsd-common.h.
6364 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6365 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6366 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6367 doing it in all files that include this one.
6368 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6369 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6370 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6371 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6372 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6373 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6374 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6375 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6376 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6377
2968f561
DN
6378 Consolidate redundant definitions.
6379 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6380 it's undefined in all files that include this one.
6381 (POSIX_SIGNALS): Define here instead of doing it in all files that
6382 include this one.
6383 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6384 (POSIX_SIGNALS): Do not define.
6385 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6386 (POSIX_SIGNALS): Do not define.
6387 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6388 (POSIX_SIGNALS): Do not define.
6389
15d25dc0
DN
6390 Remove support for old UNIX System V systems.
6391 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6392 * s/usg-5-4-2.h: Remove.
6393
07e339e4
DN
6394 Remove support for Solaris on PPC and for old versions.
6395 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6396 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6397 that cancel each other.
6398 * s/sol2-3.h:
6399 * s/sol2-4.h:
6400 * s/sol2-5.h: Remove.
6401 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6402 (NO_REMAP): Remove, unused.
6403 (UNEXEC): Move definition ...
6404 * s/aix4-2.h (UNEXEC): ... here.
6405
7f110ddc
DN
6406 * s/openbsd.h: Remove support for non-ELF and for systems that do
6407 not support shared libraries.
6408 * s/netbsd.h:
6409 * s/freebsd.h: Likewise.
6410
605f35cd
DN
64112010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6412
6413 Remove non-working support for lynxos 3.0.
6414 * s/lynxos.h: Remove file.
6415
6416 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6417 COFF_BSD_SYMBOLS, nothing defines it anymore.
6418
aed71cf4
DN
64192010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6420
6421 Remove obsolete uses of HAVE_SHM.
6422 * emacs.c (standard_args):
6423 (Fdump_emacs):
6424 (syms_of_emacs): Remove code depending on HAVE_SHM.
6425
6426 * alloc.c: Remove HAVE_SHM dependent definition.
6427
6428 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6429
aded53ff
GM
64302010-03-18 Glenn Morris <rgm@gnu.org>
6431
17284745
GM
6432 * emacs.c (USAGE4): Hard-code bug address.
6433 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6434 (bug_reporting_address): Remove.
6435 (main): Don't call bug_reporting_address.
6436
aded53ff
GM
6437 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6438 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6439
303500aa
CY
64402010-03-15 Chong Yidong <cyd@stupidchicken.com>
6441
6442 * xfns.c (Fx_create_frame):
6443 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6444 on left.
6445
cef3058f
CY
64462010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6447
6448 * editfns.c (Fformat): Account for string precision when computing
6449 field width (Bug#5710).
6450
a647d59d
CY
64512010-03-12 Chong Yidong <cyd@stupidchicken.com>
6452
4fa42018
CY
6453 * xfns.c (Fx_create_frame): Set default to Qright.
6454
a647d59d
CY
6455 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6456 all window systems.
6457
6da23aaa
EZ
64582010-03-12 Eli Zaretskii <eliz@gnu.org>
6459
a96f6398 6460 These changes remove termcap.c from the build on Posix platforms.
83d02def 6461 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
6462 (MSDOS_OBJ): ...to here.
6463 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6464 now identical to when LIBS_TERMCAP is defined.
6465
6466 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6467
6468 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6469
a96f6398 6470 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 6471
288f9fc0
CY
64722010-03-10 Chong Yidong <cyd@stupidchicken.com>
6473
6474 * Branch for 23.2.
6475
d48cd3f4
SM
64762010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6477
6478 Cleanup setup of gl_state in various parts of the code.
6479 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6480 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6481 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6482 (skip_chars):
6483 * regex.c (regex_compile): Use it.
6484 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6485 it's now set in regex_compile when/if we need it.
6486
618db430
SM
64872010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6488
c0335e02
SM
6489 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6490 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6491 (QUIT): Use it to consolidate code and remove redundancy.
6492 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6493
254c06a8
SM
6494 * regex.c (regex_compile): Setup gl_state as well.
6495
618db430
SM
6496 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6497 (in_classes): Use CONSP before XCAR/XCDR.
6498
233f0c9f
CY
64992010-03-03 Chong Yidong <cyd@stupidchicken.com>
6500
6501 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6502 definitions, so that keyboard macros are correctly handled
6503 (Bug#5481).
6504
75f80e63
EZ
65052010-03-02 Eli Zaretskii <eliz@gnu.org>
6506
6507 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6508 text that could be relocated inside the call to emacs_mule_char.
6509 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6510 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6511
dcfb9bc4
KH
65122010-03-02 Kenichi Handa <handa@m17n.org>
6513
fc9a17bc
KH
6514 * character.c (parse_str_as_multibyte): Fix handling of the
6515 multibyte form of raw-bytes.
6516 (str_as_multibyte): Likewise.
6517
dcfb9bc4
KH
6518 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6519 form of raw-bytes.
6520
412c01b6
CY
65212010-02-28 Chong Yidong <cyd@stupidchicken.com>
6522
6523 * charset.c (load_charset_map_from_file)
6524 (load_charset_map_from_vector): Zero out allocated
6525 charset_map_entries before using them.
6526
df7e1ea0
AS
65272010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6528
6529 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6530
fe69a722
CY
65312010-02-27 Chong Yidong <cyd@stupidchicken.com>
6532
4ed28cf4
CY
6533 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6534 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 6535
7379cfce
KH
65362010-02-26 Kenichi Handa <handa@m17n.org>
6537
f88cc4d6
KH
6538 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6539
7379cfce
KH
6540 * xdisp.c (reseat_to_string): Fix previous change.
6541
cf2fdcfb
CY
65422010-02-26 David Reitter <david.reitter@gmail.com>
6543
6544 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6545 Lisp_Object (Bug#4736).
6546
cc6c7c75
KH
65472010-02-25 Kenichi Handa <handa@m17n.org>
6548
6549 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6550
32e737d7
JD
65512010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6552
6553 * xterm.c (XTflash): Move declarations before statements.
6554
6555 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6556 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6557 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6558 (xg_create_tool_bar): Remove unused variables.
6559 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 6560 (xg_create_frame_widgets): Remove variable grav.
32e737d7 6561
676cae9f
CY
65622010-02-21 Chong Yidong <cyd@stupidchicken.com>
6563
6564 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6565
886cc2b8
SM
65662010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6567
6568 * term.c (fatal): Add a final \n if needed (bug#5596).
6569
ddb2d8e2
CY
65702010-02-18 Chong Yidong <cyd@stupidchicken.com>
6571
6572 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6573
2a4f8d3d
GM
65742010-02-18 Glenn Morris <rgm@gnu.org>
6575
6576 * callint.c (Finteractive): Doc fix.
6577
ebaf11b6
KH
65782010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6579
886cc2b8
SM
6580 * coding.c (record_conversion_result):
6581 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
6582 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6583 memory allocation error.
6584
d0396581
KH
65852010-02-17 Kenichi Handa <handa@m17n.org>
6586
886cc2b8
SM
6587 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6588 Fix for the case that the output buffer is fullfilled.
d0396581
KH
6589 (decode_coding): Setup ccl program here. Keep looping when the
6590 decoder stopped because the output buffer is
6591 fullfilled (bug#5534).
6592
6593 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6594
98599f74
JD
65952010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6596
471e4f04 6597 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 6598 bug #5571.
886cc2b8 6599 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 6600 overdrawn.
98599f74 6601
182659ae
JD
66022010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6603
6604 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6605 doing_interact here.
6606 (ice_connection_closed): New function.
6607 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6608 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6609 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6610 returns I/O error.
6611 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6612 bug #5512.
6613
9be32c4e 66142010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
6615
6616 * nsfont.m (nsfont_open): The system's value for the font descent
6617 is negative, so round it down to avoid clipping.
6618
a2f3eb19
CY
66192010-02-06 Chong Yidong <cyd@stupidchicken.com>
6620
6621 * charset.c (load_charset_map_from_file)
6622 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 6623 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 6624
3088147c
CY
66252010-02-05 Chong Yidong <cyd@stupidchicken.com>
6626
6627 * charset.c (load_charset_map_from_file): Allocate large
6628 charset_map_entries structure on the heap rather than the stack.
6629 (Bug#5526).
6630
b57d9029
KH
66312010-01-31 Kenichi Handa <handa@m17n.org>
6632
6633 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 6634 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 6635
c67d885b
CY
66362010-01-31 Chong Yidong <cyd@stupidchicken.com>
6637
6638 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6639 <deactivated@gmail.com> (Bug#3605).
6640
8fab2362
CY
66412010-01-31 David De La Harpe Golden <david@harpegolden.net>
6642
6643 * fileio.c (Frename_file): Correctly rename symlinks to
6644 directories (Bug#5496).
6645
cb2a62f2
CY
66462010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6647
6648 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6649
944c7a26
AS
66502010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6651
6652 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6653
c024ac08
CY
66542010-01-29 Chong Yidong <cyd@stupidchicken.com>
6655
6656 * frame.c (DEFAULT_ROWS): Change default to 35.
6657
6658 * xfns.c (x_default_font_parameter): Change default XFT font to
6659 monospace-10 (Bug#3643).
6660
af93af83
EZ
66612010-01-29 Eli Zaretskii <eliz@gnu.org>
6662
6663 * w32inevt.c (key_event): Remove unnecessary comparison of
6664 event->uChar.AsciiChar with 128.
6665
ca0eb708
CY
66662010-01-28 Chong Yidong <cyd@stupidchicken.com>
6667
b242dbfc
CY
6668 * fileio.c (Frename_file): Fix last change (Bug#5487).
6669
ca0eb708
CY
6670 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6671
6672 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6673
45d45af5
JD
66742010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6675
6676 * xfns.c (Fx_create_frame): Remove window size matching code from
6677 2010-01-15.
a73f9c9d 6678 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 6679
7e233730
JR
66802010-01-27 Jason Rumney <jasonr@gnu.org>
6681
6682 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 6683 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 6684
86e893e3
KH
66852010-01-27 Kenichi Handa <handa@m17n.org>
6686
6687 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 6688 pattern string (Bug#4209).
86e893e3 6689
8719abec
CY
66902010-01-27 David De La Harpe Golden <david@harpegolden.net>
6691
6692 * fileio.c (Frename_file): Call copy-directory and
6693 delete-directory for directories, in order to handle cross-device
6694 renaming (Bug#3353).
6695
844794c8
JD
66962010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6697
aa3e13b5 6698 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 6699 sizes 24 and 10. Bug #3643.
844794c8 6700
bd4b5750
SM
67012010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6702
8dc1adf6 6703 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
6704 * keymap.c (shadow_lookup): Add `remap' arg.
6705 (describe_map, describe_vector): Update calls to shadow_lookup.
6706 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6707 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
6708 perform remapping during shadow_lookup check of remapped_sequences.
6709
285d07e2
CY
67102010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6711
6712 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6713 png_check_sig, which has been removed in libpng 1.4.
6714
c6d09b8d
CY
67152010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6716
6717 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6718 lacks this header file).
6719
3d782998
YM
67202010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6721
6722 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6723 as in Emacs 22.
6724
2aff7c53
YM
67252010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6726
6727 * lisp.h (make_pure_string): String pointer arg now points to const.
6728
6729 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6730 args now point to const.
6731
74327f7a
EZ
67322010-01-22 Eli Zaretskii <eliz@gnu.org>
6733
6734 * lread.c (Fload): Don't treat files without .elc extension as
6735 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6736 them. (bug#5303)
6737
4d1e6632
KH
67382010-01-20 Kenichi Handa <handa@m17n.org>
6739
6740 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6741 treat the source as actual byte sequence.
6742
1fdede8f
AM
67432010-01-19 Alan Mackenzie <acm@muc.de>
6744
6745 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 6746 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
6747 `signal_after_change_p' to `coherent_change_p', and make the
6748 invocation of `modify_region' conditional on it.
6749
67477f30
JD
67502010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6751
6752 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6753 for debug purpose.
6754 (syms_of_xsettings): Declare xft-settings.
6755
244b023e
CY
67562010-01-18 Chong Yidong <cyd@stupidchicken.com>
6757
6758 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6759
617364fe
CY
67602010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6761
6762 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6763
4fe22cdf
CY
67642010-01-16 Chong Yidong <cyd@stupidchicken.com>
6765
6766 * emacs.c (standard_args): Adjust arg priorities to reflect how
6767 they are processed in startup.el.
6768
e118d2be
AS
67692010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6770
6771 * Makefile.in (lisp, shortlisp): Update.
6772
523ae620
SM
67732010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6774
6775 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6776 code, link the new kboard into all_kboard before running Lisp code,
6777 and protect the new terminal with GCPRO (Bug#5365).
6778 (x_term_init): Remove unused var `atom'.
6779 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6780
f0d13888
JD
67812010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6782
6783 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6784 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6785 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6786 this. Bug #3643.
f0d13888 6787
cc320f07
KH
67882010-01-15 Kenichi Handa <handa@m17n.org>
6789
6790 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6791
7ffdf101
CY
67922010-01-15 Chong Yidong <cyd@stupidchicken.com>
6793
6794 * nsterm.m (Qnone): Define.
6795
6796 * nsfns.m (Qnone): Move definition to nsterm.m.
6797
d12bd917
KH
67982010-01-14 Kenichi Handa <handa@m17n.org>
6799
6800 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6801 systems.
6802
d9a7c140
KH
68032010-01-14 Kenichi Handa <handa@m17n.org>
6804
6805 Make auto-composition work on all buffers even if they are
6806 fundamental mode.
6807
6808 * composite.c (Vauto_composition_mode): New variable.
6809 (composition_compute_stop_pos): Check Vauto_composition_mode
6810 instead of Vauto_composition_function.
6811 (composition_adjust_point, Ffind_composition_internal): Likewise.
6812 (syms_of_composite): Declare Lisp variable
6813 "auto-composition-mode" here.
6814
63286bb2
CY
68152010-01-13 Chong Yidong <cyd@stupidchicken.com>
6816
6817 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6818 during call to vendor-specific-keysyms (Bug#5365).
6819
c2623ee7
YM
68202010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6821
6822 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6823 Call SIGNAL_THREAD_CHECK (Bug#5333).
6824
6825 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6826 Call SIGNAL_THREAD_CHECK.
6827
0b5397c2
SM
68282010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6829
6830 Try to fix bug#5314. This is probably not the final word, tho.
6831 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6832 recent-auto-save-p as a side-effect.
6833 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6834 * buffer.c (Fkill_buffer, reset_buffer):
6835 * editfns.c (Fsubst_char_in_region):
6836 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6837 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6838
dc954cb2
KH
68392010-01-13 Kenichi Handa <handa@m17n.org>
6840
6841 Display buffer name, etc. in mode line by composing correctly.
6842
6843 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6844 STRING is not nil.
0b5397c2 6845 (display_mode_element): Adjust for the change of
dc954cb2
KH
6846 decode_mode_spec and display_line.
6847 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6848 (display_string): Handle the case that STRING is non-null and
6849 LISP_STRING is not nil.
6850
0b5397c2
SM
6851 * xterm.c (x_draw_composite_glyph_string_foreground):
6852 Pay attention to s->face->overstrike.
dc954cb2
KH
6853
6854 * composite.c (composition_reseat_it): Don't check PT if STRING is
6855 non nil.
6856
4a00eaca
YM
68572010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6858
6859 * keyboard.c (read_char): Don't apply previous change when current
6860 buffer is unchanged by command execution.
6861
60abb287
JD
68622010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6863
6864 * keyboard.c (read_char): Return after executing from special map.
6865
893db5bc
GM
68662010-01-12 Glenn Morris <rgm@gnu.org>
6867
6868 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6869 bug-gnu-emacs rather than emacs-pretest-bug.
6870
4d03ece0
CY
68712010-01-11 Chong Yidong <cyd@stupidchicken.com>
6872
6873 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6874 initializing the Lisp variables that depend on them.
6875
1df47e38
YM
68762010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6877
6878 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6879 Clear areas that will not be updated after change of menu bar lines.
6880 Clear the menu bar window's current matrix when the window gets empty.
6881
2f1c6384
CY
68822010-01-09 Chong Yidong <cyd@stupidchicken.com>
6883
e398c61c
CY
6884 * intervals.h, textprop.c (extend_property_ranges): Return value
6885 and args changed. Discard properties that begin at or after the
6886 new end (Bug#5306).
6887
6888 * editfns.c (Fformat): Caller changed.
6889
e5a29a10
CY
6890 * nsterm.m (ns_set_default_prefs): Delete function.
6891 (syms_of_nsterm): Initialize ns_command_modifier,
6892 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6893 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6894
2f1c6384
CY
6895 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6896 position (Bug#4040).
6897
d427a9fa
EZ
68982010-01-09 Eli Zaretskii <eliz@gnu.org>
6899
6900 * editfns.c (Ffloat_time): Doc fix.
6901
21b9df2f
JD
69022010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6903
6904 * xfns.c (Fx_create_frame): Don't create frame larger than display
6905 by default bug#3643.
6906
4b00d3b1
YM
69072010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6908
6909 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6910 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6911 windows above internal border.
6912
6913 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6914 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6915 windows above internal border.
6916
6917 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6918 tool bar windows specially.
6919
6920 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6921
6922 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6923 specially.
6924 (XTflash): Take account of menu bar height.
6925
6926 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6927 specially.
6928
5075d853
JD
69292010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6930
ac146f82 6931 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6932 also be true before we can return early (bug #5339).
6933
474217c8
CY
69342010-01-06 David Reitter <david.reitter@gmail.com>
6935
6936 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6937 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6938 (Bug#3233).
6939
c0e6d47d
JD
69402010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6941
d0cf45b7
JD
6942 * font.c (font_open_entity): Enable chache and call cached_font_ok
6943 for the driver if defined.
6944 (QCuser_spec): New symbol.
6945 (font_spec_from_name): Save name as user-spec.
6946 (font_load_for_lface): Keep user-spec instead of name.
6947 (font_open_by_name): Save name as user-spec.
6948 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6949 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6950
6951 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6952 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6953 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6954
6955 * font.h (struct font_driver): Add cached_font_ok.
6956
c0e6d47d
JD
6957 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6958
7c583cd8
JD
69592010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6960
6961 * xterm.c (x_new_font): Move code for setting rows/cols before
6962 resizing ...
ac146f82 6963 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6964
6965 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6966 (xg_frame_resized, xg_frame_set_char_size):
6967 Call xg_clear_under_internal_border.
7c583cd8 6968 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6969
03f77f0a
CY
69702010-01-05 Chong Yidong <cyd@stupidchicken.com>
6971
6972 * keyboard.c (read_key_sequence): Catch keyboard switch after
6973 making a new tty frame (Bug#5095).
6974
2a1ef5be
KH
69752010-01-05 Kenichi Handa <handa@m17n.org>
6976
6977 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6978
e3eb1dae
SM
69792010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6980
6981 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6982 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6983 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6984
777013f2
MA
69852010-01-03 Michael Albinus <michael.albinus@gmx.de>
6986
6987 * dbusbind.c (xd_add_watch): Improve debug message.
6988 (xd_remove_watch): Improve debug message. If DATA is the session
6989 bus, unset D-Bus session environment.
6990 (Fdbus_init_bus): Pass the bus as argument to
6991 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6992
8932b1c2
CY
69932010-01-01 Chong Yidong <cyd@stupidchicken.com>
6994
87231e2c
CY
6995 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6996
4801c5fa
CY
6997 * lread.c (syms_of_lread): Make it clearer that these are the
6998 names of loaded files (Bug#5068).
6999
8932b1c2
CY
7000 * eval.c (run_hook_with_args): Handle the case where the global
7001 value has the obsolete single-function form (Bug#5026).
7002
11e3c684
CY
70032009-12-27 Chong Yidong <cyd@stupidchicken.com>
7004
7005 * minibuf.c (Fall_completions): Minor optimization.
7006
5b28ce35
EZ
70072009-12-26 Eli Zaretskii <eliz@gnu.org>
7008
5ce6e4f4
JB
7009 * .gdbinit (pgx): Fix display of composite glyphs.
7010 Display cmp.from and cmp.to as well.
7011 (pitx): Fix last change.
5b28ce35 7012
bcffff46
KH
70132009-12-25 Kenichi Handa <handa@m17n.org>
7014
7015 * composite.h (composition_adjust_point): Update prototype.
7016
7017 * composite.c (composition_reseat_it): Don't make a composition
7018 spanning over point.
7019 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
7020 composable characters.
7021 (composition_adjust_point): New arg NEW_PT. Callers changed.
7022
7023 * keyboard.c (command_loop_1): Force redisplay if the last point
7024 was within a composition.
7025 (adjust_point_for_property): Don't adjust point for automatic
7026 composition when called after buffer modification.
7027
3f670e9a
EZ
70282009-12-19 Eli Zaretskii <eliz@gnu.org>
7029
5ce6e4f4
JB
7030 * .gdbinit (pitx): Don't use enum names, use their values.
7031 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
7032 (pgx): Don't use enum names, use their values.
7033 (pitmethod): New helper command.
7034 (pitx): Use it to display iteration method.
7035 (pgrowit): New command.
7036
ad903955
EZ
7037 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
7038
3f670e9a
EZ
7039 Update dependencies in Makefile.in.
7040
7041 * Makefile.in (alloc.o): Depend on termhooks.h.
7042 (atimer.o): Depend on blockinput.h.
7043 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
7044 and frame.h.
7045 (callint.o): Depend on systime.h, coding.h, and composite.h.
7046 (callproc.o): Depend on buffer.h.
7047 (casefiddle.o): Don't depend on charset.h.
7048 (casetab.o): Depend on character.h.
7049 (ccl.o): Depend on composite.h.
7050 (chartab.o): Depend on ccl.h.
7051 (cm.o): Depend on dispextern.h.
7052 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
7053 (coding.o): Don't depend on $(INTERVALS_H).
7054 (composite.o): Don't depend on dispextern.h explicitly (it's in
7055 $(INTERVALS_H)). Depend on ccl.h.
7056 (data.o): Depend on systime.h, coding.h, composite.h,
7057 dispextern.h, font.h, and ccl.h.
7058 (dired.o): Depend on composite.h.
7059 (dispnew.o): Depend on coding.h. Don't depend explicitly on
7060 composite.h (it's in $(INTERVALS_H)).
7061 (doc.o): Depend on systime.h, coding.h, and composite.h.
7062 (editfns.o): Don't depend explicitly on dispextern.h.
7063 (emacs.o): Depend on frame.h and coding.h.
7064 (eval.o): Depend on coding.h, composite.h, and xterm.h.
7065 (fileio.o): Depend on frame.h and commands.h. Don't depend
7066 explicitly on dispextern.h.
7067 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
7068 composite.h.
7069 (fns.o): Don't depend on termhooks.h.
7070 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
7071 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
7072 coding.h, $(INTERVALS_H), window.h, xterm.h.
7073 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
7074 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
7075 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
7076 fontset.h, ccl.h, and ftfont.h.
7077 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7078 (gtkutil.o): Depend on dispextern.h and composite.h.
7079 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
7080 termhooks.h, and ccl.h.
7081 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
7082 (intervals.o): Depend on systime.h and coding.h.
7083 (keyboard.o): Depend on composite.h and coding.h.
7084 (keymap.o): Depend on coding.h and frame.h.
7085 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
7086 (macros.o): Depend on systime.h, coding.h, and composite.h.
7087 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
7088 and atimer.h.
7089 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
7090 dispextern.h explicitly.
0b5397c2
SM
7091 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
7092 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
7093 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
7094 (regex.o): Don't depend on charset.h.
7095 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
7096 (search.o): Don't depend explicitly on composite.h.
7097 (sound.o): Depend on atimer.h and systime.h.
7098 (syntax.o): Don't depend explicitly on composite.h.
7099 (sysdep.o): Depend on coding.h and composite.h.
7100 (term.o): Depend on xterm.h and buffer.h.
7101 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
7102 (textprop.o): Don't depend on dispextern.h explicitly.
7103 (undo.o): Depend on dispextern.h.
7104 (window.o): Depend on coding.h and termhooks.h. Don't depend on
7105 dispextern.h and composite.h explicitly.
7106 (xdisp.o): Depend on ccl.h.
7107 (xfaces.o): Depend on coding.h and ccl.h.
7108 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
7109 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7110 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
7111 ftfont.h.
7112 (xgselect.o): New dependency.
7113 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
7114 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
7115 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
7116 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
7117 (xsmfns.o): Depend on frame.h and dispextern.h.
7118 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
7119 sysselect.h.
7120
7a6f7fea
AS
71212009-12-19 Andreas Schwab <schwab@linux-m68k.org>
7122
7123 * font.c (Fclear_font_cache): Pass correct cache argument to
7124 font_clear_cache.
7125
f4c21026
AS
71262009-12-16 Andreas Schwab <schwab@linux-m68k.org>
7127
7128 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
7129 twice.
7130
f7ab0997
CY
71312009-12-15 Chong Yidong <cyd@stupidchicken.com>
7132
7133 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
7134 calling file-remote-p. Reported by Jim Meyering.
7135
fa8e045a
MA
71362009-12-15 Michael Albinus <michael.albinus@gmx.de>
7137
7138 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 7139 avoid compiler warnings. (Bug #5217)
fa8e045a 7140
a63dba42
KH
71412009-12-14 Kenichi Handa <handa@m17n.org>
7142
7143 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
7144 in 8-bit encoding.
7145
5ce6e4f4 71462009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
7147
7148 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
7149 tooltip windows.
7150
223e5fc6
JD
71512009-12-13 Jan Djärv <jan.h.d@swipnet.se>
7152
36acb2a7
JD
7153 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
7154 Xatom_net_window_type.
7155
7156 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
7157 Xatom_net_window_type.
7158
b8f00677
JD
7159 * xterm.c (my_log_handler): New function.
7160 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 7161 so we can filter out buggy messages. (Bug #5120).
b8f00677 7162
e5f0bc9a
JD
7163 * xterm.c (xg_scroll_callback): Parameter list changed,
7164 use parameter GtkScrollType to determine scroll/line/page.
7165 Only allow dragging if a button < 4 is grabbed (bug #5177).
7166 (xg_end_scroll_callback): New function.
7167 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
7168 xg_create_scroll_bar.
7169
7170 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
7171 (scroll_end_callback): Remove.
7172 (xg_create_scroll_bar): Add parameter end_callback, bind it to
7173 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 7174 bug #5177.
e5f0bc9a
JD
7175 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
7176 bug #5177.
7177
7178 * gtkutil.h (XG_LAST_SB_DATA): Remove.
7179 (xg_create_scroll_bar): Add GCallback end_callback.
7180
223e5fc6
JD
7181 * xftfont.c (QClcdfilter): New variable.
7182 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
7183 (syms_of_xftfont): Initialize QClcdfilter.
7184
3c055b77
JD
71852009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7186
7187 * xsettings.c (struct xsettings): Add member seen.
7188 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 7189 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
7190 (apply_xft_settings): Only update Xft settings with what member seen
7191 indicates as new.
7192
05fe33ff
EZ
71932009-12-12 Eli Zaretskii <eliz@gnu.org>
7194
c4cc8b9a 7195 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
7196 (struct glyph): Use EMACS_INT for charpos.
7197 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
7198 region_beg_charpos, region_end_charpos,
7199 redisplay_end_trigger_charpos, and also for
7200 iterator_stack_entry.end_charpos and
7201 iterator_stack_entry.stop_charpos.
7202
e8d7886a
JD
72032009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7204
5ce6e4f4 7205 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
7206 (xg_create_scroll_bar): Call scroll_end_callback on button release
7207 event (bug #5177).
7208 (xg_event_is_for_scrollbar): != replaced with ==.
7209
d0db2ec8
KH
72102009-12-12 Kenichi Handa <handa@m17n.org>
7211
7212 * ftfont.c (struct ftfont_info): New member matrix.
7213 (ftfont_open): Setup xftfont_info->matrix.
7214 (MFLTFontFT): New member matrix.
7215 (FLOOR, CEIL, ROUND): New macros.
7216 (ftfont_get_metrics): Handle matrix transformation.
7217 (ftfont_shape_by_flt): New arg matrix. Callers changed.
7218
7219 * xftfont.c (struct xftfont_info): New member matrix.
7220 (xftfont_open): Setup xftfont_info->matrix.
7221
72222009-12-10 Kenichi Handa <handa@m17n.org>
7223
7224 * xdisp.c (append_space_for_newline): Consider face-remapping.
7225
2cc7b62f
AS
72262009-12-09 Andreas Schwab <schwab@linux-m68k.org>
7227
b87dd913
AS
7228 * xsettings.c: Include "keyboard.h".
7229
eba5eb94
AS
7230 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
7231
2cc7b62f
AS
7232 Fix implicit function declarations.
7233 * cmds.c: Include "frame.h".
7234 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
7235 * frame.h: Move declaration of delete_frame outside of
7236 HAVE_WINDOW_SYSTEM.
7237
a4ef73c8
CY
72382009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
7239
7240 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
7241
7242 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
7243 GTK builds.
7244
944a300c
AS
72452009-12-07 Andreas Schwab <schwab@linux-m68k.org>
7246
7247 * unexelf.c (unexec): Don't search for .data twice.
7248
022eef62
CY
72492009-12-05 Chong Yidong <cyd@stupidchicken.com>
7250
426ac949
CY
7251 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
7252 if push failed.
7253 (handle_line_prefix): Set avoid_cursor_p here. Check return value
7254 of push_display_prop (Bug#5000).
7255
022eef62
CY
7256 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
7257 value of font_list_entities (Bug#5085).
7258
be95bee9
JB
72592009-12-04 Juanma Barranquero <lekktu@gmail.com>
7260
7261 Fix `string-to-number' to deal consistently with integers and floats.
7262 * lread.c (isfloat_string): New argument ignore_trailing to accept all
7263 trailing characters, not just whitespace.
7264 (read1): Pass new arg 0 to keep old behavior.
7265 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
7266 trailing chars, as it is already done for integers. Doc fixes.
7267 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
7268
24c2d7ce
EZ
72692009-12-04 Eli Zaretskii <eliz@gnu.org>
7270
0b5397c2
SM
7271 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
7272 Delete unused enumeration value.
24c2d7ce 7273
7e694795
EZ
72742009-12-03 Eli Zaretskii <eliz@gnu.org>
7275
7276 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
7277
84b31826
SM
72782009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
7279
7280 * process.c (Fmake_network_process): Fix up the tests for
7281 "connectionless socket", so they DTRT for seqpacket sockets as well.
7282
f00c449b
SM
72832009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7284
7285 * process.c (Qseqpacket): New symbol.
7286 (HAVE_SEQPACKET): New macro.
7287 (Fmake_network_process): Accept new :type `seqpacket'.
7288 (init_process): Add `seqpacket' feature when applicable.
7289 (syms_of_process): Initialize Qseqpacket.
7290
8096a0ff
YM
72912009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7292
7293 * font.c (font_load_for_lface, font_open_by_name): Don't store name
7294 if entity is Qnil.
7295
3e0de07f
SM
72962009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
7297
7298 * print.c (print_preprocess): Preprocess the key_and_value table of
7299 hashtables, even tho they're "hidden" (bug#5082).
7300
abeafb2a
JD
73012009-11-29 Jan Djärv <jan.h.d@swipnet.se>
7302
7303 * frame.c (frame_make_pointer_invisible)
7304 (frame_make_pointer_visible): Declare f before statements.
7305
4bf47195
EZ
73062009-11-28 Eli Zaretskii <eliz@gnu.org>
7307
7308 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7309 omitted dependencies on lisp.h.
7310
c525b3f2
JD
73112009-11-27 Jan Djärv <jan.h.d@swipnet.se>
7312
ece2d4ed
JD
7313 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7314 is NULL.
7315
7316 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7317
7318 * frame.c (frame_make_pointer_invisible)
3e0de07f 7319 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
7320 frame.
7321
c525b3f2
JD
7322 * search.c (simple_search): Remove warning by making *p const.
7323
2f00e299
DN
73242009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7325
7326 * xdisp.c (power_letter): Remove duplicate const.
7327
084b049b
JD
73282009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7329
a1fadc6f
JD
7330 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7331
5ce6e4f4 7332 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
7333 defaults (bug #5025).
7334
28259cac
SM
73352009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7336
7337 * insdel.c (adjust_markers_for_delete): Move it in the
7338 right direction! (bug#4803)
7339
e8e14166
YM
73402009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7341
7342 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7343
7344 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7345
86677b58
GM
73462009-11-24 Glenn Morris <rgm@gnu.org>
7347
7348 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7349
581e51e8
JD
73502009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7351
cfc86c7a
JD
7352 * Makefile.in: Must create deps for ecrt0.o in its rule.
7353
581e51e8
JD
7354 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7355 because that is what Gtk+ font dialog understands.
7356
7357 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7358 of Fcopy_sequence.
7359 (font_open_by_name): Put name given into QCname for font-object returned.
7360
7361 * frame.c (x_set_font): Save original font name as frame parameter
7362 font-parameter.
7363
7364 * xsettings.c (set_default_xft_settings): New function.
7365 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7366 is found.
7367
8b264ecb
AS
73682009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7369
7370 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7371 searching backwards through multibyte buffer.
7372
872870b2
JD
73732009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7374
7375 * xterm.c: #include xgselect.h.
7376 (x_initialize): Call xgselect_initialize.
7377
7378 * xsettings.c (something_changedCB): C++ comments => C comments.
7379 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7380 does that now.
7381
7382 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7383 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7384 (scroll_bar_button_cb): Remove.
5ce6e4f4 7385 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
7386 event.
7387 (xg_create_scroll_bar): Don't bind button-press-event and
7388 button-release-event.
7389
7390 * process.c: Include xgselect.h if defined (USE_GTK) ||
7391 defined (HAVE_GCONF).
7392 (wait_reading_process_output): Call xg_select for the same condition.
7393
7394 * xgselect.c (xg_select): New function to better integrate with
7395 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7396
7397 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7398
7399 * Makefile.in (XOBJ): Add xgselect.o.
7400
62a6e103
AS
74012009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7402
0b5397c2
SM
7403 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7404 Remove ignored second argument. All callers changed.
62a6e103
AS
7405 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7406 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7407 * xdisp.c (string_char_and_length): Likewise.
7408
b0ca0f33
DN
74092009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7410
7411 * xterm.c (x_new_font):
7412 * print.c (print_object):
7413 * cmds.c (Fself_insert_command): Move declarations before statements.
7414
dd5a6279
CY
74152009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7416
7417 * s/cygwin.h: Remove unneeded linker flags.
7418
4a8e097d
JD
74192009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7420
0d1d0d26
JD
7421 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7422
7423 * xsettings.h: Declare xsettings_get_system_font.
7424
7425 * xsettings.c (xsettings_get_system_font): New function.
7426 (init_gconf): No use initiating gconf unless we have Xft also.
7427 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7428 HAVE_GCONF.
7429
4a8e097d
JD
7430 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7431 add a blank entry so it doesn't collapse into nothing.
7432
8ab1650e
SM
74332009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7434
7435 * lread.c (Funintern): Comment out last change.
7436
82c602f0
RS
74372009-11-19 Richard Stallman <rms@gnu.org>
7438
7439 * lread.c (Funintern): Error if symbol is t or nil.
7440
87e32266
SM
74412009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7442
7443 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7444 representation of Lisp integers.
7445 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7446
1b9ac145
AS
74472009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7448
7449 * lisp.h: Remove declaration of Ffont_get_system_font.
7450 * xfns.c: Move include of "xsettings.h".
7451 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7452
dfb3c4c6
JD
74532009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7454
87e32266
SM
7455 * xsettings.c (something_changedCB, Ffont_get_system_font):
7456 Check use_system_font.
dfb3c4c6
JD
7457 (syms_of_xsettings): DEFVAR font-use-system-font.
7458
9370c1d8
AS
74592009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7460
25fe851a
AS
7461 * xfns.c (x_default_font_parameter): Remove dead assignment.
7462
9370c1d8
AS
7463 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7464
637fa988
JD
74652009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7466
87e32266 7467 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 7468 not have FC_LCD_*. #define them if not there.
a6eb20d8 7469
87e32266 7470 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 7471
637fa988
JD
7472 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7473
7474 * xterm.c (handle_one_xevent): Call xft_settings_event for
7475 ClientMessage, PropertyNotify and DestroyNotify.
7476 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7477 Call xsettings_initialize.
7478
7479 * xftfont.c (xftfont_fix_match): New function.
7480 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7481 Call xftfont_fix_match after XftFontMatch.
7482
7483 * xfont.c (xfont_driver): Initialize all members.
7484
87e32266
SM
7485 * xfns.c (x_default_font_parameter):
7486 Try font from Ffont_get_system_font.
637fa988
JD
7487 Do not get font from x_default_parameter if we got one from
7488 Ffont_get_system_font.
87e32266 7489 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
7490
7491 * w32font.c (w32font_driver): Initialize all members.
7492
7493 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7494
7495 * lisp.h: Declare syms_of_xsettings.
7496
87e32266
SM
7497 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7498 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
7499
7500 * ftfont.c (ftfont_filter_properties): New function.
7501
7502 * frame.c (x_set_font): Remove unused variable lval.
7503
87e32266 7504 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
7505
7506 * font.c (font_put_extra): Don't return if val is nil, it means
7507 boolean option is off.
7508 (font_parse_fcname): Collect all extra properties in extra_props
7509 and call filter_properties for all drivers with extra_props and
7510 font as parameter.
87e32266
SM
7511 (font_open_entity): Do not use cache, it does not pick up new
7512 fontconfig settings like hinting.
637fa988
JD
7513 (font_load_for_lface): If spec had a name in it, store it in entity.
7514
a73f9c9d 7515 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
7516
7517 * config.in: HAVE_GCONF is new.
7518
7519 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7520 xsettings.o is new.
7521
5a942932
KH
75222009-11-17 Kenichi Handa <handa@m17n.org>
7523
7524 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7525 back to the default font in case that no suitable font is found.
7526
b7c7a4d1
SM
75272009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7528
7529 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7530 Suggested by Chad Brown <yandros@mit.edu>.
7531 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7532
072f1e39
JD
75332009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7534
7535 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7536
5d1e70a2
AS
75372009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7538
87e32266 7539 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 7540
a53cfbe5
JD
75412009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7542
473a99b7
JD
7543 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7544 has a parent.
7545
a53cfbe5 7546 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 7547 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
7548
7549 * config.in: Generated (AUTO_DEPEND).
7550
f04bb9b2
MA
75512009-11-13 Michael Albinus <michael.albinus@gmx.de>
7552
b7c7a4d1 7553 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
7554 Vdbus_registered_functions_table, because it contains also
7555 properties. Fix docstring.
b7c7a4d1 7556 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 7557
8f11f7ec
SM
75582009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7559
7560 * alloc.c (mark_object): Don't reprocess marked strings.
7561 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7562 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7563
8a605fe8
KH
75642009-11-13 Kenichi Handa <handa@m17n.org>
7565
8f11f7ec 7566 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
7567 semantics of Vword_combining_categories.
7568 (Vword_combining_categories): Describe the slight change of the
7569 semantics.
7570
241c4680
EZ
75712009-11-13 Eli Zaretskii <eliz@gnu.org>
7572
7573 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7574
7575 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7576
5d58e44c
SM
75772009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7578
7579 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7580
5e13f9d3
JB
75812009-11-12 Juanma Barranquero <lekktu@gmail.com>
7582
7583 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7584
cf54c754
DR
75852009-11-11 David Reitter <david.reitter@gmail.com>
7586
7587 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7588 variables to fix 2009-11-09 change.
7589
a4ada374
DN
75902009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7591
91433552
DN
7592 * process.c (ifflag_def): Make flag_sym constant.
7593 (Fnetwork_interface_info): Use a constant pointer.
7594 (ifflag_table):
7595 * xfns.c (cursor_bits):
7596 * xdisp.c (power_letter):
7597 * termcap.c (speeds, esctab):
7598 * sysdep.c (baud_convert):
7599 * keyboard.c (lispy_accent_codes, modifier_names):
7600 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7601 (jpeg_format, tiff_format, gif_format, svg_format)
7602 (interlace_start, interlace_increment, gs_format):
7603 * gtkutil.c (separator_names):
7604 * fringe.c (swap_nibble):
7605 * fns.c (base64_value_to_char, base64_char_to_value):
7606 * fileio.c (make_temp_name_tbl):
7607 * coding.c (suffixes): Make constant.
7608
f4265f6c
DN
7609 * frame.c (make_initial_frame):
7610 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7611 build_string.
7612 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7613
04420943
DN
7614 * s/freebsd.h:
7615 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7616
0a5d24ae
DN
7617 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7618 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7619
a4ada374
DN
7620 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7621 * xterm.c (syms_of_xterm):
7622 * xfaces.c (syms_of_xfaces):
7623 * xdisp.c (syms_of_xdisp):
7624 * lread.c (syms_of_lread):
7625 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7626 build_string.
91433552 7627
a4ada374
DN
7628 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7629
af98fc7f
SM
76302009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7631
8ab1650e 7632 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 7633
e90292a9
JD
76342009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7635
7636 * keyboard.h: Declare timer_check.
7637
7638 * keyboard.c (timer_check_2): New function that does what the old
7639 timer_check did.
7640 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7641 returned, i.e. don't return -1 with timers pending.
7642
7643 * process.c: Remove extern declaration of timer_check.
7644
7645 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7646 even if timer_check returned -1.
7647
af98fc7f
SM
7648 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7649 xg_dialog_data.
e90292a9
JD
7650 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7651 the event loop.
7652 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7653 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7654 Destroy the dialog after xg_dialog_run.
7655
045b83c0
SM
76562009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7657
7658 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7659
1fb99a3a
JD
76602009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7661
7662 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7663
04e452cb
JB
76642009-11-09 Juanma Barranquero <lekktu@gmail.com>
7665
7666 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7667
ef7417fd
SM
76682009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7669
7670 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7671 w32menu.c, and nsmenu.m.
7672 Simplify the obsolete case where position is nil.
7673 (cleanup_popup_menu): New function, moved from nsmenu.m.
7674 (struct skp): Remove slot `notreal'.
7675 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7676 adjust callers.
7677 (single_menu_item): Adjust call to parse_menu_item.
7678 (syms_of_menu): Defsubr x-popup-menu.
7679 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7680 (keymap_panes): Don't export any more.
7681 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7682 (xmenu_show): Declare.
7683 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7684 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7685 * keyboard.h (parse_menu_item): Update declaration.
7686 * xmenu.c (Fx_popup_menu): Remove.
7687 (syms_of_xmenu): Don't defsubr x-popup-menu.
7688 * w32menu.c (Fx_popup_menu): Remove.
7689 (syms_of_w32menu): Don't defsubr x-popup-menu.
7690 * nsmenu.m (cleanup_popup_menu): Remove.
7691 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7692 moved to menu.c's Fx_popup_menu.
7693 (Fx_popup_menu): Remove.
7694 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7695 menu_items (it's done in menu.c already).
7696
424d6179
SM
76972009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7698
7699 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7700 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7701
c0df13a6 77022009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
7703
7704 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 7705 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
7706 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7707 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7708
2de9f71c
SM
77092009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7710
7711 Let integers use up 2 tags to give them one extra bit and thus double
7712 their range.
7713 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7714 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7715 New macros.
7716 (enum Lisp_Type): Use them. Give explicit values.
7717 (Lisp_Type_Limit): Remove.
7718 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7719 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7720 Pay attention to USE_2_TAGS_FOR_INTS.
7721 (INTEGERP): Use LISP_INT_TAG_P.
7722 * fns.c (internal_equal): Simplify the default case.
7723 (sxhash): Use case_Lisp_Int.
7724 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7725 any more.
7726 (Ftype_of): Use case_Lisp_Int.
7727 (store_symval_forwarding): Take into account the fact that Ints can
7728 now have more than one tag.
7729 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 7730 (buffer_slot_type_mismatch):
2de9f71c
SM
7731 * xfaces.c (face_attr_equal_p):
7732 * print.c (print_object):
7733 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7734 Use case_Lisp_Int.
7735
323637a2
EZ
77362009-11-06 Eli Zaretskii <eliz@gnu.org>
7737
7ac65b38
EZ
7738 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7739
323637a2
EZ
7740 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7741 warning.
7742
e511451f
JD
77432009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7744
7745 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7746
7747 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7748
7749 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7750 ButtonPressRelease and MotionNotify (bug#4870).
7751
5e2327cf
DN
77522009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7753
5adc433e
DN
7754 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7755
d67b4f80
DN
7756 * xterm.c (syms_of_xterm):
7757 * xselect.c (syms_of_xselect):
7758 * xmenu.c (syms_of_xmenu):
7759 * xfns.c (syms_of_xfns):
7760 * xfaces.c (syms_of_xfaces):
7761 * xdisp.c (syms_of_xdisp):
7762 * window.c (syms_of_window):
7763 * w32fns.c (syms_of_w32fns):
7764 * undo.c (syms_of_undo):
7765 * textprop.c (syms_of_textprop):
7766 * terminal.c (syms_of_terminal):
7767 * syntax.c (syms_of_syntax):
7768 * sound.c (syms_of_sound):
7769 * search.c (syms_of_search):
7770 * print.c (syms_of_print):
7771 * minibuf.c (syms_of_minibuf):
7772 * macros.c (syms_of_macros):
7773 * keymap.c (syms_of_keymap, initial_define_key)
7774 (initial_define_lispy_key):
7775 * keyboard.c (syms_of_keyboard):
7776 * insdel.c (syms_of_insdel):
7777 * image.c (syms_of_image):
7778 * fringe.c (syms_of_fringe):
7779 * frame.c (syms_of_frame):
7780 * fontset.c (syms_of_fontset):
7781 * fns.c (syms_of_fns):
7782 * fns.c (syms_of_fns):
7783 * fileio.c (syms_of_fileio):
7784 * fileio.c (syms_of_fileio):
7785 * eval.c (syms_of_eval):
7786 * doc.c (syms_of_doc):
7787 * dispnew.c (syms_of_display):
7788 * dired.c (syms_of_dired):
7789 * dbusbind.c (syms_of_dbusbind):
7790 * data.c (syms_of_data):
7791 * composite.c (syms_of_composite):
7792 * coding.c (syms_of_coding):
7793 * cmds.c (syms_of_cmds):
7794 * charset.c (define_charset_internal, syms_of_character):
7795 * ccl.c (syms_of_ccl):
7796 * category.c (syms_of_category, init_category_once):
7797 * casetab.c (syms_of_casetab):
7798 * casefiddle.c (syms_of_casefiddle):
7799 * callint.c (syms_of_callint):
7800 * bytecode.c (syms_of_bytecode):
7801 * buffer.c (keys_of_buffer, syms_of_buffer):
7802 * alloc.c (syms_of_alloc):
7803 * process.c (syms_of_process, init_process):
7804 * lread.c (syms_of_lread, init_obarray):
7805 * font.c (build_style_table):
7806 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7807 intern_c_string, calls to make_pure_string with
7808 make_pure_c_string. Use pure_cons instead of Fcons.
7809
5e2327cf
DN
7810 * process.c (socket_options): Make it const.
7811 (set_socket_option, init_process): Use a const pointer.
7812
7813 * lread.c (intern_c_string): New function.
7814 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7815 (defvar_int): Uset it. Make the name const char*.
7816
7817 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7818 (defvar_int): Update prototypes.
7819 (DEFUN, EXFUN): Support for prototypes is now required.
7820 (intern_c_string): New prototype.
7821 (struct Lisp_Subr): Make symbol_name constant.
7822
7823 * font.c (struct table_entry): Remove unused member. Make NAMES
7824 constant.
7825 (weight_table, slant_table, width_table): Make constant.
7826
7827 * emacs.c (struct standard_args): Make name and longname constant.
7828
7829 * character.h (DEFSYM): Use intern_c_string.
7830
a56eaaef
DN
78312009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7832
7833 * alloc.c (make_pure_c_string): New function.
7834
7835 * eval.c (Fautoload): Purecopy all arguments.
7836
f6a07420
KH
78372009-11-05 Kenichi Handa <handa@m17n.org>
7838
7839 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7840 the buffer in case of replace.
7841
5d28d4b1
DN
78422009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7843
7844 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7845
b349d111
SM
78462009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7847
d528b1ce
SM
7848 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7849 when applicable (bug#4851).
7850
b349d111
SM
7851 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7852 (P_): Support for prototypes is now required.
7853
c38eb027
CY
78542009-10-31 Chong Yidong <cyd@stupidchicken.com>
7855
7856 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7857 (Bug#4827).
7858
0405f8d9
EZ
78592009-10-30 Eli Zaretskii <eliz@gnu.org>
7860
d528b1ce 7861 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7862
ca0a881a
DN
78632009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7864
7865 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7866
d528b1ce
SM
7867 * lread.c (Fload): Purecopy the file name when building
7868 Vpreloaded_file_list.
ca0a881a 7869
47e0e0e4
JR
78702009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7871
7872 * w32fns.c (syms_of_w32fns): Change default value of
7873 w32-scroll-lock-modifier to nil. (Bug#2827)
7874
057bce6f
JB
78752009-10-26 Juanma Barranquero <lekktu@gmail.com>
7876
782a943e 7877 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7878
242bc74c
AS
78792009-10-26 Andreas Schwab <schwab@redhat.com>
7880
7881 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7882
522d013a
JB
78832009-10-26 Juanma Barranquero <lekktu@gmail.com>
7884
7885 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7886 For delta < 0, skip check that only makes sense when the mini-window
7887 is going to be enlarged. (Bug#4534)
7888
18060980
CY
78892009-10-25 Chong Yidong <cyd@stupidchicken.com>
7890
7891 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7892 string in menu maps (Bug#4471).
7893
fec8f0fe
CY
78942009-10-24 Chong Yidong <cyd@stupidchicken.com>
7895
7896 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7897 FRAME_NS_VIEW on terminal frames (Bug#4765).
7898
10d66ec0
AS
78992009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7900
1cae01f7
AS
7901 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7902 DBUS_TYPE_UINTnn separately to get proper sign extension.
7903
58a12889
AS
7904 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7905 can properly handle unsigned types.
d528b1ce 7906 (make_uid, make_gid): Remove.
58a12889 7907
987c9327
AS
7908 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7909 types again.
7910
522d013a 7911 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7912 (system_process_attributes): Likewise.
7913
905a9ed3
DN
79142009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7915
7916 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7917
7918 * eval.c (Fautoload): Purecopy the filename. Simplify.
7919
7920 * category.c (Fdefine_category): Purecopy docstring.
7921
a599b3e8
AS
79222009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7923
7b792fc9
AS
7924 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7925
a599b3e8
AS
7926 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7927
b35ac83e
CY
79282009-10-23 Chong Yidong <cyd@stupidchicken.com>
7929
7930 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7931 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7932 (Bug#4775).
7933
e8903e00
SM
79342009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7935
7936 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7937 (init_fileio_once):
7938 * lisp.h (init_fileio_once): Remove.
7939 * emacs.c (main): Don't call init_fileio_once.
7940
8f43cbf3
DN
79412009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7942
7943 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7944
26898943
AS
79452009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7946
7947 * doprnt.c (doprnt): Fix overflow check.
7948
5c646d5a
JD
79492009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7950
3132a7ea
JD
7951 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7952
5c646d5a
JD
7953 * xterm.h (x_wait_for_event): Declare it.
7954
7955 * xterm.c (pending_event_wait): New variable.
7956 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7957 see pending_event_wait.eventtype.
7958 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7959 (x_new_font): Call change_frame_size with new rows/columns before we
7960 try to resize the frame.
5c646d5a 7961 (x_wait_for_event): New function.
d528b1ce
SM
7962 (x_set_window_size_1): Don't change gravity unless change_gravity
7963 is set.
5c646d5a
JD
7964 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7965 don't change frame size, instead wait for the ConfigureNotify.
7966 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7967 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7968 (x_initialize): Initialize pending_event_wait.
7969
7970 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7971 size.
7972
7973 * widget.c (EmacsFrameSetValues): Add comment.
7974 (EmacsFrameSetCharSize): Just call x_set_window_size.
7975
7976 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7977 x_wait_for_event.
d528b1ce 7978 (flush_and_sync): Remove again.
5c646d5a
JD
7979 (xg_get_font_name): Suggest monospace if no previous font is known.
7980
e9c1637d
SM
79812009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7982
7983 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7984 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7985
5a72cccb
YM
79862009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7987
7988 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7989 processing pending events when event is filtered for input method.
ab04798f 7990 (Bug#3681)
5a72cccb 7991
2629aa37
JB
79922009-10-20 Juanma Barranquero <lekktu@gmail.com>
7993
7994 * fns.c: Add #endif accidentally removed in previous change.
7995
c3417a74
DN
79962009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7997
7998 * fns.c: Remove code for unsupported system: MAC_OS.
7999 * image.c: Likewise. Include setjmp.h.
8000
9685cef2
JD
80012009-10-19 Jan Djärv <jan.h.d@swipnet.se>
8002
8003 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
8004 pixel -1 (bug #4742).
8005
d7306fe6
DN
80062009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8007
019d2c4c
DN
8008 * process.c (create_pty): Remove conditionals for no longer
8009 supported systems: UNIPLUS and RTU.
8010
ee6bacd4
DN
8011 * xterm.c:
8012 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
8013
d7306fe6
DN
8014 * alloc.c: Do not define struct catchtag.
8015 * eval.c: Move struct catchtag definition ...
8016 * lisp.h: ... here.
8017
8018 * image.c: Move png.h #include earlier to avoid warnings.
8019
8020 * xterm.c:
8021 * xsmfns.c:
8022 * xselect.c:
8023 * xrdb.c:
8024 * xmenu.c:
8025 * xftfont.c:
8026 * xfont.c:
8027 * xfns.c:
8028 * xfaces.c:
8029 * xdisp.c:
8030 * window.c:
8031 * widget.c:
8032 * w32xfns.c:
8033 * w32uniscribe.c:
8034 * w32term.c:
8035 * w32select.c:
8036 * w32reg.c:
8037 * w32proc.c:
8038 * w32menu.c:
8039 * w32inevt.c:
8040 * w32heap.c:
8041 * w32font.c:
8042 * w32fns.c:
8043 * w32console.c:
8044 * w32.c:
8045 * w16select.c:
8046 * vm-limit.c:
8047 * unexsol.c:
8048 * unexec.c:
8049 * unexcw.c:
8050 * unexaix.c:
8051 * undo.c:
8052 * tparam.c:
8053 * textprop.c:
8054 * terminfo.c:
8055 * terminal.c:
8056 * termcap.c:
8057 * term.c:
8058 * syntax.c:
8059 * sound.c:
8060 * sheap.c:
8061 * search.c:
8062 * scroll.c:
8063 * region-cache.c:
8064 * regex.c:
8065 * ralloc.c:
8066 * process.c:
8067 * print.c:
b024548b
DN
8068 * nsterm.m:
8069 * nsselect.m:
8070 * nsmenu.m:
8071 * nsimage.m:
8072 * nsfont.m:
8073 * nsfns.m:
d7306fe6
DN
8074 * msdos.c:
8075 * minibuf.c:
8076 * menu.c:
8077 * marker.c:
8078 * macros.c:
8079 * keymap.c:
8080 * keyboard.c:
8081 * intervals.c:
8082 * insdel.c:
8083 * indent.c:
8084 * gtkutil.c:
8085 * ftxfont.c:
8086 * ftfont.c:
8087 * fringe.c:
8088 * frame.c:
8089 * fontset.c:
8090 * font.c:
8091 * fns.c:
8092 * floatfns.c:
8093 * filelock.c:
8094 * fileio.c:
8095 * emacs.c:
8096 * editfns.c:
8097 * dosfns.c:
8098 * doprnt.c:
8099 * doc.c:
8100 * dispnew.c:
8101 * dired.c:
8102 * dbusbind.c:
8103 * data.c:
8104 * composite.c:
8105 * coding.c:
8106 * cmds.c:
8107 * cm.c:
8108 * chartab.c:
8109 * charset.c:
8110 * character.c:
8111 * ccl.c:
8112 * category.c:
8113 * casetab.c:
8114 * casefiddle.c:
8115 * callproc.c:
8116 * callint.c:
8117 * bytecode.c:
8118 * buffer.c:
8119 * atimer.c: Include setjmp.h. (Bug#4643)
8120
fd5f21e6
SM
81212009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
8122
4c0354d7
SM
8123 Remove leftover table unibyte_to_multibyte_table.
8124 * character.c (unibyte_to_multibyte_table): Remove.
8125 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
8126 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
8127 * character.h (UNIBYTE_TO_CHAR): New macro.
8128 (MAKE_CHAR_MULTIBYTE): Use it.
8129 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
8130 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
8131 (message_dolog, set_message_1):
8132 * search.c (Freplace_match):
8133 * editfns.c (Fcompare_buffer_substrings):
8134 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
8135 (concat):
8136 * insdel.c (copy_text, count_size_as_multibyte):
8137 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
8138 * term.c (produce_glyphs):
8139 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
8140 * regex.c (RE_CHAR_TO_MULTIBYTE):
8141 * cmds.c (internal_self_insert):
8142 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
8143
fd5f21e6
SM
8144 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
8145
4418646e
DN
81462009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
8147
8148 * puresize.h (BASE_PURESIZE): Increase to 1310000.
8149
35f5c1d2
JB
81502009-10-16 Juanma Barranquero <lekktu@gmail.com>
8151
8152 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
8153
a0cd8f6b
AR
81542009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8155
8156 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
8157 still needed under Tiger.
8158
8159 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
8160
8161 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
8162 __Apple__.
8163
8164 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
8165
01a8d3fa
KH
81662009-10-15 Kenichi Handa <handa@m17n.org>
8167
8168 * print.c (print_object): Escape a symbol like "2E10" too.
8169
bf6c75c9 81702009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
8171
8172 Cleanups and changes for 64-bit compile under Snow Leopard.
8173 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
8174
8175 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
8176
c5959062 8177 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
8178 (ns_findfonts, nsfont_list_family): Use long format in printf, and
8179 cast argument.
8180 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 8181 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
8182
8183 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
8184
8185 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
8186 where appropriate.
8187
8188 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
8189 where appropriate.
6e4780c5
JB
8190 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
8191 Use stringWithUTF8String.
bf6c75c9
AR
8192 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
8193
6e4780c5
JB
8194 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
8195 Add formal protocol mention to inheritance.
bf6c75c9
AR
8196 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
8197
6e4780c5
JB
8198 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
8199 Fix printf format.
bf6c75c9
AR
8200 (ns_query_color): Use CGFloat where appropriate.
8201 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 8202 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
8203 argument.
8204
3d87f118
AR
8205 * config.in (NS_HAVE_NSINTEGER): Drop.
8206
a95c8102
AR
8207 * dbusbind.c (dbus-method-return-internal)
8208 (dbus-method-error-internal): Use long format in printf, and cast
8209 argument.
8210
8211 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
8212 in printf, and cast argument.
8213
6873acca 8214 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
8215 cast argument.
8216
9ec6f100
GM
82172009-10-11 Glenn Morris <rgm@gnu.org>
8218
8219 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
8220
5be883cd
JD
82212009-10-08 Jan Djärv <jan.h.d@swipnet.se>
8222
8223 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
8224 menu bar with a small width so it doesn't enlarge the frame.
8225
d7a39b51
JB
82262009-10-08 Juanma Barranquero <lekktu@gmail.com>
8227
8228 * fontset.c (Fset_fontset_font): Fix typos in error messages.
8229
0c2b6f8e
GM
82302009-10-06 Glenn Morris <rgm@gnu.org>
8231
8232 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
8233 SOME_MACHINE_LISP (this enters indirectly via DOC).
8234
e02131a2
EZ
82352009-10-05 Eli Zaretskii <eliz@gnu.org>
8236
8237 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
8238
b4744254
EZ
82392009-10-04 Eli Zaretskii <eliz@gnu.org>
8240
8241 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
8242 Doc fix.
8243
dbf64827
JB
82442009-10-03 Martin Rudalics <rudalics@gmx.at>
8245
8246 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
8247
e9a0aef8
MA
82482009-10-02 Michael Albinus <michael.albinus@gmx.de>
8249
d528b1ce 8250 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
8251 used anymore outside fileio.c.
8252
8253 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
8254
64eb2b56
JB
82552009-10-01 Juanma Barranquero <lekktu@gmail.com>
8256
8257 * lisp.h (Qdelete_directory_internal):
8258 Declare, instead of Qdelete_directory.
8259
8260 * w32fns.c (Fsystem_move_file_to_trash): Use it.
8261
9d28c33e
SM
82622009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
8263
8264 * eval.c (Fcalled_interactively_p): Add `kind' argument.
8265
9d8f3bd9
MA
82662009-10-01 Michael Albinus <michael.albinus@gmx.de>
8267
9d28c33e 8268 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
8269 Fdelete_directory. It is not a command anymore. It has no file
8270 name handler.
8271
9694740b
SM
82722009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
8273
8274 * xdisp.c (get_next_display_element): Use an enum in last change.
8275
748e162f
KH
82762009-09-28 Kenichi Handa <handa@m17n.org>
8277
9694740b 8278 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
8279 unibyte_display_via_language_environment in handling
8280 Vnobreak_char_display.
8281
17efd58d
AR
82822009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8283
8284 * nsterm.h (ns_app_name): New extern variable.
8285
8286 * nsterm.m (ns_app_name): New variable.
8287 (ns_term_init): Set and use it.
8288 (ns_term_shutdown): Use it.
8289
8290 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
8291 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8292
8293 * nsfns.m (ns_set_name_iconic, ns_set_name)
8294 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8295 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8296
9694740b
SM
8297 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8298 Remove double-casting in client_data comparison.
31c2d412 8299
3208cb35
YM
83002009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8301
8302 * keyboard.c (make_lispy_event): Remember last wheel direction.
8303 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8304
b7d552d6
GM
83052009-09-26 Glenn Morris <rgm@gnu.org>
8306
8307 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8308 internal.elc. Add term/pc-win.elc.
8309 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8310 term/x-win.elc.
8311 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8312 term/w32-win.elc.
8313 (NS_SUPPORT): New.
8314 (lisp): Add NS_SUPPORT.
8315 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8316
4ff670a8
DR
83172009-09-25 David Reitter <david.reitter@gmail.com>
8318
8319 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8320 on Mac OS X 10.6+ (bug#4513).
8321
feabfb6c
JB
83222009-09-24 Juanma Barranquero <lekktu@gmail.com>
8323
8324 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
8325 some parts of Emacs code (like font selection) don't grok them.
8326 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 8327
de59072a
AS
83282009-09-24 Andreas Schwab <schwab@redhat.com>
8329
8330 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8331
a489517b
JB
83322009-09-24 Juanma Barranquero <lekktu@gmail.com>
8333
8334 * dired.c (Fdirectory_files): Fix typo in docstring.
8335
0592970c
AR
83362009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8337
8338 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8339 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8340 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8341 under GNUstep.
8342 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8343
8344 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8345 glyph advancement.
8346
48e8a88b
AR
83472009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8348
8349 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 8350 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
8351
8352 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8353 deleted (bug #4492).
8354
e14f0a78
AR
8355 * nsfont.m (Vns_reg_to_script): New lisp variable.
8356 (syms_of_nsfont): Declare it.
8357 (ns_registry_to_script): New function.
8358 (ns_get_req_script): Call it.
8359 (ns_findfonts): Don't give up on non-unicode registry.
8360
8361 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8362
5b650faa
SM
83632009-09-20 Tom Tromey <tromey@redhat.com>
8364
8365 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8366 batch mode (bug#4228).
8367
a489517b 83682009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
8369
8370 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 8371 carefully. (Bug #4339)
0bae4e09 8372
fcfe06f3
CY
83732009-09-18 Chong Yidong <cyd@stupidchicken.com>
8374
d798ba87 8375 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 8376
31642728
AR
83772009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8378
8379 * emacs.c (inhibit_x_resources): Update doc string for NS.
8380 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 8381 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
8382
8383 * nsterm.h (ns_no_defaults): Remove.
8384
8385 * nsterm.m (ns_no_defaults): Remove.
8386 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8387 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
8388 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8389 don't update the NSWindow itself.
8390 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 8391 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
8392
8393 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8394 ns_use_qd_smoothing.
8395
8396 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8397 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 8398 (x-close-connection): Drop PSFlush() under OS X.
a489517b 8399 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 8400
8686ac71
JB
84012009-09-17 Juanma Barranquero <lekktu@gmail.com>
8402
8403 * emacs.c (inhibit_x_resources): New variable.
8404 (main) [HAVE_NS]: Don't process --quick command line option.
8405 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8406
8407 * lisp.h (inhibit_x_resources): Declare it extern.
8408
8409 * w32reg.c (x_get_string_resource):
8410 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8411
e227ba05
EZ
84122009-09-17 Eli Zaretskii <eliz@gnu.org>
8413
362654a6
JB
8414 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8415 Add lisp/term/internal.elc.
e227ba05 8416
742d40e8
SM
84172009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8418
8419 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8420 (bug#4461).
8421
005bd5a2
DN
84222009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8423
8424 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8425
8426 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8427 (OBJECTS_MACHINE): Remove, unused.
8428
f9af9719
SM
84292009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8430
8431 * frame.c (x_get_resource_string): Remove unused.
8432
0307c7d2
JD
84332009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8434
8435 * xterm.c (x_new_font): Call change_frame_size before calling
8436 x_set_window_size, in case frame size won't change.
8437
8438 * frame.c (x_set_font): Remove dead code.
8439
428b13d6
SM
84402009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8441
8442 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8443
5766c380
SM
84442009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8445
8446 * lread.c (Fload): Don't output a message after loading an obsolete
8447 package any more (done in Lisp now).
8448
2fd0161b
CY
84492009-09-12 Chong Yidong <cyd@stupidchicken.com>
8450
8451 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8452
bc5e75b6
SM
84532009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8454
8455 * keymap.c (Fwhere_is_internal): Use nconc2.
8456
c31c985e
AM
84572009-09-11 Alan Mackenzie <acm@muc.de>
8458
8459 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8460 batch mode.
8461
78012bd2
AS
84622009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8463
8464 * xdisp.c (display_mode_element): Detect cycles.
8465
9d889332
SM
84662009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8467
8468 * keymap.c (where_is_internal): Don't erroneously return nil right after
8469 filling the cache.
8470 (where_is_internal_1): Fix up typo.
8471
7ab5d780
GM
84722009-09-11 Glenn Morris <rgm@gnu.org>
8473
8474 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8475 share a common doc-string.
8476
5238a749
SM
84772009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8478
66d77eda
SM
8479 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8480 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8481
5238a749
SM
8482 * keymap.c (QCadvertised_binding): New constant.
8483 (syms_of_keymap): Initialize it.
8484 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8485 if applicable.
8486
19f48442
SM
84872009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8488
50d4ba39
SM
8489 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8490 (parse_menu_item): Streamline since bindings are recomputed all the
8491 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8492 more and don't support lmenu's menu-alias any more either.
8493
a88a5372
SM
8494 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8495 (where_is_internal): Strip it down to only traverse the keymaps.
8496 Move the cache handling from Fwhere_is_internal to here.
8497 (Fwhere_is_internal): Move the handling of remapping and the choice of
8498 the best binding from where_is_internal to here.
8499 Unify the cached/noncached paths, so remapping is also handled
8500 correctly when the cache is used, and so the cache can be used to
8501 speed up remap-handling when applicable.
8502 Give preference to non-remapped bindings.
8503 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8504 non-remapped bindings.
8505 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8506 command remapping.
8507
19f48442
SM
8508 * xdisp.c (display_mode_element): Move list length limit from 50 to
8509 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8510
599498c3 85112009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
8512
8513 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8514
f9b7b5ac
SM
85152009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8516
a53af587
JB
8517 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8518 (Bug#4334)
8519
f9b7b5ac
SM
8520 * keymap.c (where_is_internal): Filter out shadowed remappings.
8521 Assume that where_is_internal returns unshadowed bindings to simplify
8522 the code and get rid of the gotos. Use ASIZE.
8523
04f4b72d
JD
85242009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8525
4da146f2
JD
8526 * xterm.c (x_focus_changed): If we get a focusout and pointer
8527 is invisible, make it visible.
8528
04f4b72d
JD
8529 * xterm.h: Remove condition for declaration of
8530 x_*_window_to_frame.
8531
7cef7ce3
SM
85322009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8533
8534 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8535 initial terminal as well.
8536
a54fa5b7
JD
85372009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8538
8539 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 8540 x_menubar_window_to_frame.
a54fa5b7 8541
50426a04 8542 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
8543 (XTmouse_position): Do not return valid positions
8544 for clicks in the menubar and the toolbar for Gtk+.
8545
8546 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8547 if the widget for the event has the same top level as a frame,
8548 return the frame.
8549 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8550 internal windows, bug #4122.
8551 (x_non_menubar_window_to_frame): Remove.
8552
5a021dd0
GM
85532009-09-02 Glenn Morris <rgm@gnu.org>
8554
8555 * buffer.c (default-major-mode): Move most of the doc from here...
8556 (major-mode): ... to here.
8557
548fe2f3
NR
85582009-08-30 Nick Roberts <nickrob@snap.net.nz>
8559
8560 * process.c (wait_reading_process_output): Keep the descriptor
8561 when pty is used by a non-child process, e.g., in I/O buffer of
8562 GDB this allows inferior to be restarted.
8563
e0840eef
EZ
85642009-08-29 Eli Zaretskii <eliz@gnu.org>
8565
8566 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8567 both branches into one.
8568
82e98df4
SM
85692009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8570
8571 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8572 (main): Use enable-multibyte-characters rather than
8573 default-enable-multibyte-characters. Output a warning message when
8574 running a unibyte session.
8575
890617cb
YM
85762009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8577
8578 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8579 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8580 (copy_data_segment): Also copy __program_vars section.
8581 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8582 (dump_it) [LC_DYLD_INFO]: Use it.
8583
8584 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8585
e7adeadc
EZ
85862009-08-28 Eli Zaretskii <eliz@gnu.org>
8587
8588 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8589 $(SRC)/buildobj.h.
8590 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8591 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8592 $(SRC)/buildobj.h.
8593 (clean): Add buildobj.h.
8594
3ed8bbdc
TZ
85952009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8596
8597 * print.c (print_object): Set escapeflag to 1 when printing
8598 hashtable keys and values.
8599
155a6764
SM
86002009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8601
8602 * lread.c (read_integer): Use doubles (and potentially return a float
8603 number) as we do in string-to-number.
8604 (read1): Use strtol to read integers, signal errors on strtol's
8605 overflow and use floats if strtol's output is too large for
8606 Elisp integers.
8607
877610de
EZ
86082009-08-27 Eli Zaretskii <eliz@gnu.org>
8609
8610 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8611 (make-buildobj-SH): Fix last change.
8612 (SRC): Move to before where it's first used.
8613
ef73e7be
KH
86142009-08-27 Kenichi Handa <handa@m17n.org>
8615
550c8289
KH
8616 * process.c (send_process): Use encode_coding_object instead of
8617 encode_coding_string to perform eol-conversion even if the string
8618 is unibyte.
8619
60afa08d
KH
8620 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8621 character.
8622
ef73e7be 8623 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 8624 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 8625
7b3a82d7
DN
86262009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8627
5654bf63
DN
8628 * callproc.c (Fcall_process): Remove always true #if.
8629
7b3a82d7
DN
8630 * lisp.h: Replace #if 0 code for checking with text pointing to
8631 the --enable-checking configure flag.
8632
8633 * emacs.c (main): Mention the --enable-profiling configure flag
8634 instead of using CFLAGS.
8635
878bde49
KR
86362009-08-26 Ken Raeburn <raeburn@raeburn.org>
8637
8638 * Makefile.in (buildobj.h): New target.
8639 (doc.o): Depend on it.
8640 (temacs${EXEEXT}): Don't generate buildobj.lst.
8641 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8642 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8643 ($(BLD)/doc.$(O)): Depend on it.
8644 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8645 provided by Eli Zaretskii.)
8646 ($(TEMACS)): Don't generate buildobj.lst.
8647 * doc.c: Include buildobj.h.
8648 (buildobj): New static variable.
8649 (Fsnarf_documentation): Use it, instead of opening and reading
8650 buildobj.lst.
8651
1574224c
MA
86522009-08-25 Michael Albinus <michael.albinus@gmx.de>
8653
8654 * dbusbind.c (Fdbus_call_method)
8655 (Fdbus_call_method_asynchronously): Use English numeric format for
8656 timeout values in doc string.
8657
d9da2f45
KH
86582009-08-25 Kenichi Handa <handa@m17n.org>
8659
ef73e7be
KH
8660 * alloc.c (mark_char_table): New function.
8661 (mark_object): Use mark_char_table for a char-table.
8662
d9da2f45
KH
8663 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8664 (CHAR_TABLE_REF): Use it.
8665
c8edcc01
KR
86662009-08-23 Ken Raeburn <raeburn@raeburn.org>
8667
8668 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8669 before invoking the newly build emacs to check for load-path
8670 shadowing.
8671
7763401b
GM
86722009-08-22 Glenn Morris <rgm@gnu.org>
8673
8674 * Makefile.in (bootstrap_exe): New variable.
8675 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8676 Use ${bootstrap_exe}.
8677
729eadda
EZ
86782009-08-22 Eli Zaretskii <eliz@gnu.org>
8679
8680 * coding.h (encode_coding_string): Don't encode unibyte strings.
8681 (Bug#4047)
8682
eb4c6ace
MA
86832009-08-22 Michael Albinus <michael.albinus@gmx.de>
8684
8685 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8686
8687 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8688 intended as hotfix only.
8689 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8690
36e34d1b
AR
86912009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8692
8693 * nsterm.m (ns_get_color): Update documentation properly for last
8694 change, and clean up loose ends in the code left by it. Fix
8695 longstanding bug with 16-bit hex parsing, and add support for
8696 yet another X11 format (rgb:r/g/b) for compatibility.
8697 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8698 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8699
f983eb8a
SM
87002009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8701
8702 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8703
3f56d3c6
MA
87042009-08-20 Michael Albinus <michael.albinus@gmx.de>
8705
8706 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8707 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8708 (xd_initialize, xd_pending_messages): Check, whether
8709 $DBUS_SESSION_BUS_ADDRESS is set.
8710
fb641d68
YM
87112009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8712
8713 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8714
8715 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8716
cf59a374
GM
87172009-08-20 Glenn Morris <rgm@gnu.org>
8718
8719 * emacs.c (system-type): Doc fix.
8720
1373f3be
SM
87212009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8722
8723 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8724 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8725
058ed861
MA
87262009-08-18 Michael Albinus <michael.albinus@gmx.de>
8727
1373f3be
SM
8728 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8729 New functions.
058ed861
MA
8730 (xd_initialize): Revert change from 2009-08-16.
8731
563a866e 87322009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
8733
8734 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 8735 font-group vector, return nil.
5fc05db0 8736
e42bdf01
CY
87372009-08-17 Chong Yidong <cyd@stupidchicken.com>
8738
8739 * process.c (status_notify): Don't perform redisplay.
8740 (Fdelete_process, list_processes_1, process_send_signal):
8741 Expliticly perform redisplay.
8742 (wait_reading_process_output): Always check process status, but
8743 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8744
4230ab74
KR
87452009-08-17 Ken Raeburn <raeburn@raeburn.org>
8746
1373f3be 8747 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
8748 (XFLOAT_INIT): New macro for storing a float value.
8749 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8750 * fns.c (sxhash): Copy out the value of a float in order to
8751 examine its bytes.
8752 * dbusbind.c (xd_append_arg): Likewise.
8753
4230ab74
KR
8754 * emacs.c (main): Don't call syms_of_data twice.
8755
a0645cdd
MA
87562009-08-16 Michael Albinus <michael.albinus@gmx.de>
8757
8758 * dbusbind.c (xd_initialize): Add connection file descriptor to
8759 input_wait_mask, in order to let select() detect, whether a new
8760 message has been arrived.
ca4f31ea 8761 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 8762
485db0ba
MA
87632009-08-15 Michael Albinus <michael.albinus@gmx.de>
8764
1373f3be
SM
8765 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8766 New functions.
485db0ba
MA
8767
8768 * lisp.h (xd_pending_messages): Declare.
8769
8770 * keyboard.c (readable_events): Call xd_pending_messages.
8771
b5b98ff4
CY
87722009-08-15 Chong Yidong <cyd@stupidchicken.com>
8773
1373f3be 8774 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 8775
f8354c6e
CY
8776 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8777
b5b98ff4
CY
8778 * buffer.c (set_buffer_internal_1)
8779 (swap_out_buffer_local_variables): Check for unbound local
8780 variables (Bug#4138).
8781
8b9fc636
EZ
87822009-08-14 Eli Zaretskii <eliz@gnu.org>
8783
8784 * process.c (create_pty): Fix last change.
8785
ce959360
CY
87862009-08-13 Chong Yidong <cyd@stupidchicken.com>
8787
8788 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8789 (xbm_load_image): Caller changed.
64b807c9 8790 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8791
c7baf7e9
NR
87922009-08-13 Nick Roberts <nickrob@snap.net.nz>
8793
8794 * process.c (create_pty): New function.
8795 (Fstart_process): Use it to allow Emacs to just associate a pty
8796 with the buffer. See associated change in gdb-mi.el.
8797 (list_processes_1): Deal with no program name.
8798 (start_process_unwind): Use pid == -2 to mean no process.
8799
1ac9108a
SM
88002009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8801
8802 * cmds.c (nonundocount): New global variable.
8803 (keys_of_cmds): Initialize it.
8804 (Fself_insert_command): Use it to combine upto 20 sequential chars
8805 into a single undo entry, just like the Qself_insert_command code in
8806 keyboard.c does.
8807 Call frame_make_pointer_invisible, also like the Qself_insert_command
8808 code in keyboard.c does.
8809 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8810 than its own local replacement for it.
8811
e267324c
KR
88122009-08-10 Ken Raeburn <raeburn@raeburn.org>
8813
1ac9108a 8814 * fns.c (concat): Don't re-set string length to its current value.
77437343 8815
1ac9108a
SM
8816 * coding.h (decode_coding_string, encode_coding_string):
8817 Use SBYTES macro.
f0bed503 8818
1ac9108a 8819 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8820 (doprnt): Merge with doprnt1, discarding lispstrings code.
8821 * lisp.h (doprnt_lisp): Don't declare.
8822
416e006d
JL
88232009-08-07 Juri Linkov <juri@jurta.org>
8824
8825 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8826
6f7d5780
DN
88272009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8828
8829 * print.c (syms_of_print): Undo previous change.
8830
f19a0f5b
TZ
88312009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8832
8833 * lread.c (read1, syms_of_lread): Read hashtables back from the
8834 readable format.
8835
8836 * print.c (print_preprocess, print_object): Print hashtables fully
8837 and readably.
8838 (syms_of_print): Provide 'hashtable-print-readable.
8839
b9173dc2
AR
88402009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8841
8842 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8843 no family set.
8844 (nsfont_open): Handle case when entity has no family.
8845
1586503c
AR
88462009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8847
8848 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8849 element, not a list, for match case.
8850
087048cd
KH
88512009-07-28 Kenichi Handa <handa@m17n.org>
8852
8853 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8854 rigidly.
8855
8856 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8857 font_parse_xlfd. Check font properties more rigidly.
8858
780c2506
DN
88592009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8860
31fd7c5c
JB
8861 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8862 bsd-common.h.
780c2506 8863
a8c0cc18
KH
88642009-07-27 Kenichi Handa <handa@m17n.org>
8865
8866 * xfaces.c (face_with_height): Call font_clear_prop.
8867
4fbe2306
CY
88682009-07-26 Chong Yidong <cyd@stupidchicken.com>
8869
111d9af3
CY
8870 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8871
8872 * xterm.c (x_term_init): Use Qx.
8873
4fbe2306
CY
8874 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8875
1ac9108a 8876 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8877 (ns_get_color): Revert 2009-07-16 change.
8878
beb0b7f9
EZ
88792009-07-25 Eli Zaretskii <eliz@gnu.org>
8880
8881 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8882 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8883
2baf5e76
KR
88842009-07-25 Ken Raeburn <raeburn@raeburn.org>
8885
1ac9108a
SM
8886 * coding.h (decode_coding_string, encode_coding_string):
8887 Use SCHARS macro.
8890e5f5 8888
2baf5e76 8889 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8890 (load_depth): Delete.
2baf5e76
KR
8891 (Qload_in_progress): New variable.
8892 (load_unwind): Don't reference load_depth or load_in_progress.
8893 (Fload): Likewise; specbind Qload_in_progress instead.
8894 (init_lread): Don't initialize load_depth.
8895 (syms_of_lread): Initialize and protect Qload_in_progress.
8896
1395c6f5
AR
88972009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8898
8899 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8900
4e2f36cf
AR
89012009-07-23 Yavor Doganov <yavor@gnu.org>
8902
8903 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8904
5dd9a6f7
AR
89052009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8906
8907 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8908 Bugs 3792, 3720, 2402.
8909 (ns_lookup_indexed_color): Check for bad index.
8910 (ns_index_color): Init unused slot to 0.
8911 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8912 Bug 3714, possibly 3082.
5dd9a6f7 8913
c902b920
JR
89142009-07-22 Jason Rumney <jasonr@gnu.org>
8915
1ac9108a
SM
8916 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8917 Position IME window at cursor (Bug#2570).
c902b920
JR
8918 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8919 (globals_of_w32fns): Dynamically load functions required above.
8920
8921 * w32term.c (w32_draw_window_cursor): Send message to reposition
8922 any IME window.
8923
090101cf
CY
89242009-07-21 Chong Yidong <cyd@stupidchicken.com>
8925
8926 * fileio.c: Revert 2009-07-16 changes.
8927 (Vauto_save_include_big_deletions): New variable.
8928 (Fdo_auto_save): Disable auto-save only if
8929 auto-save-include-big-deletions is nil.
8930
e6583e3d
CY
89312009-07-21 Chong Yidong <cyd@stupidchicken.com>
8932
8933 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8934 the overflowed pixels into account (Bug#3879).
8935
ece435a5
KR
89362009-07-21 Ken Raeburn <raeburn@raeburn.org>
8937
8938 * lread.c (load_depth): New variable.
8939 (Fload, load_unwind, init_lread): Set it to the load recursion
8940 depth; set load_in_progress as a simple boolean based on the
8941 current load_depth. (Bug#3892)
8942
40b2d973
AR
89432009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8944
8945 * nsfont.m (ns_has_attribute): Remove.
8946 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8947
10be7e0d
JL
89482009-07-18 Juri Linkov <juri@jurta.org>
8949
8950 * process.c (Fset_process_query_on_exit_flag): Mention killing
8951 a buffer in docstring.
8952
fa055055
KH
89532009-07-17 Kenichi Handa <handa@m17n.org>
8954
8955 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8956
042f7b69
YM
89572009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8958
8959 * nsfns.m (Fns_set_alpha): Remove function.
8960 (syms_of_nsfns): Don't defsubr it.
8961
8962 * nsterm.m (ns_get_color): Remove incompatible color formats.
8963 (ns_color_to_lisp): Generate #rrggbb color format string.
8964
4be941e3
RS
89652009-07-16 Richard Stallman <rms@gnu.org>
8966
8967 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8968 (Fset_buffer_auto_saved): Handle save_length = -2.
8969
4e6b227d
CY
89702009-07-16 Chong Yidong <cyd@stupidchicken.com>
8971
8972 * xterm.c (Qx_gtk_map_stock): New var.
8973
8974 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8975 of calling intern each time.
8976
a1856973
YM
89772009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8978
8979 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8980 does tiling.
8981
8982 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8983
497e54d8
KH
89842009-07-14 Kenichi Handa <handa@m17n.org>
8985
72d36834
KH
8986 * font.c (font_vconcat_entity_vectors): New function.
8987 (struct font_sort_data): New member font_driver_preference.
8988 (font_compare): Check font_driver_preference.
8989 (font_sort_entities): The format of the first argument changed.
8990 (font_delete_unmatched): Likewise.
8991 (font_list_entities): The return type changed.
8992 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8993 (font_find_for_lface): Adjuste for the above changes.
8994 Don't suppress the checking of C even if the repertory supports it.
8995 (Flist_fonts): Adjust for the above changes.
72d36834 8996
1ac9108a
SM
8997 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8998 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8999 Reject a font who has adstyle property that is different from a
9000 langname derived from registry property.
1ac9108a 9001 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 9002
b6046155
EZ
90032009-07-13 Eli Zaretskii <eliz@gnu.org>
9004
9005 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
9006 local copy of dirfilename.
9007
fb6b6049
KH
90082009-07-13 Kenichi Handa <handa@m17n.org>
9009
e2402a5e
KH
9010 * chartab.c (sub_char_table_ref_and_range): Fix the range check
9011 against max_char.
9012
fb6b6049
KH
9013 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
9014 calling XSYMBOL (sym).
9015
65156807
EZ
90162009-07-11 Eli Zaretskii <eliz@gnu.org>
9017
1ac9108a
SM
9018 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
9019 New function.
9020 (directory_files_internal) [WINDOWSNT]:
9021 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
9022 the filesystem of the directory is fast or slow.
9023
9024 * w32.c (logon_network_drive): Don't assume PATH is an absolute
9025 file name.
9026 (is_slow_fs): New function.
9027 (stat): Use it to determine whether to issue more system calls to
9028 get accurate file attributes, when w32-get-true-file-attributes is
9029 `local'.
9030
e0ab5fcf
JD
90312009-07-10 Jan Djärv <jan.h.d@swipnet.se>
9032
9033 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 9034 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
9035 parameter font-parameter as default to the font dialog.
9036
784ceded
KH
90372009-07-10 Kenichi Handa <handa@m17n.org>
9038
9039 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
9040
fb8edc0b
EZ
90412009-07-09 Eli Zaretskii <eliz@gnu.org>
9042
1ac9108a 9043 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 9044
fb8edc0b
EZ
9045 * w32.c (stat): Treat UNC file names as residing on remote
9046 drives. (Bug#3542)
9047
635c75b1
KH
90482009-07-09 Kenichi Handa <handa@m17n.org>
9049
9050 * fontset.c (fontset_find_font): Fix previous change.
9051
c1d5ce94
MA
90522009-07-08 Michael Albinus <michael.albinus@gmx.de>
9053
9054 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
9055 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
9056 error flag.
9057
edb61b39
KH
90582009-07-08 Kenichi Handa <handa@m17n.org>
9059
374bf7e4
KH
9060 * fontset.c (fontset_find_font): Fix the logic of handling
9061 charset_matched.
9062 (font_for_char): Delete unused var.
9063 (generate_ascii_font_name): Delete it.
9064
edb61b39
KH
9065 * coding.h (JIS_TO_SJIS2): Fix the code range check.
9066
9067 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
9068 (encode_coding_sjis): Fix the code range check.
9069
0f3f018c
CY
90702009-07-07 Chong Yidong <cyd@stupidchicken.com>
9071
9072 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
9073 (Fexpand_file_name): Copy string data properly (Bug#3772).
9074
fcaf6f3a
JD
90752009-07-07 Jan Djärv <jan.h.d@swipnet.se>
9076
9077 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
9078 first MapNotify.
9079
6809ca75
KH
90802009-07-07 Kenichi Handa <handa@m17n.org>
9081
9082 * character.h (unibyte_has_multibyte_table): Delete extern.
9083 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
9084
9085 * charset.c (Fset_charset_priority): Update charset_unibyte.
9086 (syms_of_charset): Initialize charset_unibyte.
9087
9088 * character.c (unibyte_has_multibyte_table): Delete it.
9089 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
9090 charset_unibyte.
9091 (multibyte_char_to_unibyte_safe): Likewise.
9092 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
9093
1ac9108a 9094 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
9095 (x_produce_glyphs): Likewise.
9096
9097 * .gdbinit (xcharset): Fix the treating $arg0.
9098
ad9e2d54
EZ
90992009-07-04 Eli Zaretskii <eliz@gnu.org>
9100
9101 Emulation of `getloadavg' on MS-Windows.
50426a04 9102 * w32.c: Include float.h.
ad9e2d54
EZ
9103 (g_b_init_get_native_system_info, g_b_init_get_system_times)
9104 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
9105 (get_native_system_info, get_system_times): New functions.
9106 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
9107 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
9108 (globals_of_w32): Initialize g_b_init_get_native_system_info,
9109 g_b_init_get_system_times, and num_of_processors.
9110
0a3472c7
JR
91112009-07-03 Jason Rumney <jasonr@gnu.org>
9112
9113 * w32term.c (w32_initialize): Use standard types.
9114
80904120
EZ
91152009-07-03 Eli Zaretskii <eliz@gnu.org>
9116
9117 * dired.c (Ffile_attributes): Decode user and group names by the
9118 locale's encoding. (Bug#3443)
9119
6978862d
DN
91202009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
9121
f8d23104
DN
9122 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
9123 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
9124
9125 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
9126
9127 * term.c (init_tty): Remove spurious #ifdef.
9128
6978862d
DN
9129 * m/mips.h: Mention this file is also used for netbsd.
9130 * m/pmax.h: Remove file.
9131
e044e4fc
JD
91322009-07-03 Jan Djärv <jan.h.d@swipnet.se>
9133
9134 * xterm.h (struct x_display_info): Add invisible_cursor.
9135 (struct x_output): Add current_cursor.
9136
9137 * xterm.c (XTtoggle_invisible_pointer): New function.
9138 (x_define_frame_cursor): Don't define cursor if invisible or the
9139 same as before. Set current_cursor.
9140 (x_create_terminal): Set toggle_invisible_pointer_hook.
9141
9142 * xfns.c (make_invisible_cursor): New function.
9143 (x_set_mouse_color): Call make_invisible_cursor.
9144 Set current_cursor.
9145 (x_window): Set current_cursor.
9146
9147 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
9148
9149 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
9150 inserting a character.
9151 (read_avail_input): Call frame_make_pointer_visible.
9152
9153 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
9154 (frame_make_pointer_invisible, frame_make_pointer_visible):
9155 New functions.
e044e4fc
JD
9156 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
9157
9158 * frame.h: Declare frame_make_pointer_invisible and
9159 frame_make_pointer_visible.
9160 (struct frame): Add pointer_invisible.
9161
574c8efa
JD
91622009-07-02 Jan Djärv <jan.h.d@swipnet.se>
9163
7b507248
JD
9164 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
9165 frame isn't visible.
9166 (xg_frame_resized): If width/height is -1, get size of window
9167 from X server.
9168
9169 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
9170 for MapNotify.
9171
835bdaa7 9172 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 9173 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 9174 (flush_and_sync): Reintroduce.
574c8efa 9175
3f1c6666 91762009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 9177
31fd7c5c 9178 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
9179
9180 * xterm.c (x_handle_net_wm_state): Also look for sticky.
9181 (x_term_init): Initialize Xatom_net_wm_state_sticky.
9182
9183 * frame.h: Declare Qsticky.
9184
cad9ef74
JD
9185 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
9186
9187 * nsfns.m (ns_frame_parm_handlers): Ditto.
9188
9189 * frame.c: Declare Qsticky.
9190 (frame_parms): Add sticky.
9191
9192 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
9193
9194 * xterm.h: Declare x_set_sticky.
9195
9196 * xterm.c (x_set_sticky): New function.
9197
69b16610
JD
9198 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
9199 (xg_tool_bar_menu_proxy): Attach enter/leave events to
9200 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
9201
9202 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
9203
9204 * frame.c: Qmaximized is new.
9205 (x_set_frame_parameters): Do not handle fullscreen specially.
9206 Only set width and height if explicitly set.
9207 (x_set_fullscreen): Handle Qmaximized.
9208 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
9209 (syms_of_frame): Initialize Qmaximized.
9210
1ac9108a
SM
9211 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
9212 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
9213
9214 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
9215 for Expose event. Add call to x_check_fullscreen for MapNotify event.
9216 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
9217 set gravity to NorthWestGravity when USE_GTK.
9218 (set_wm_state): New function.
31fd7c5c 9219 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
9220 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
9221 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 9222 or the case when no window manager is running. That means remove calls
3f1c6666
JD
9223 to x_real_positions and x_fullscreen_adjust.
9224
9225 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
9226 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
9227 flush_and_sync.
9228 (xg_height_changed): New function.
9229 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
9230 and gtk_window_set_policy. Set frame gravity after parsing the
9231 geometry string.
3f1c6666
JD
9232 (xg_update_frame_menubar, free_frame_menubar)
9233 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9234 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
9235 Remove calls to xg_frame_set_char_size.
9236
fd503d99
KH
92372009-07-01 Kenichi Handa <handa@m17n.org>
9238
9239 * keyboard.c (decode_keyboard_code): New function.
9240 (tty_read_avail_input): Decode the input bytes if necessary.
9241
1ac9108a
SM
9242 * coding.c (setup_coding_system):
9243 Initialize coding->carryover_bytes to 0.
fd503d99
KH
9244 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9245 use Qno_conversion.
9246
24ed93fb
YM
92472009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9248
9249 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
9250
99061dfc
CY
92512009-06-30 Chong Yidong <cyd@stupidchicken.com>
9252
1ac9108a 9253 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 9254
ff90fbde
JR
92552009-06-30 Jason Rumney <jasonr@gnu.org>
9256
9257 * w32term.c (w32_initialize): Use GetModuleHandle for library that
9258 is already loaded.
9259 Set user model ID if supported (bug#1849).
9260
5f445726
JM
92612009-06-29 Jim Meyering <meyering@redhat.com>
9262
9263 Remove useless if-before-xfree test.
9264 * nsfont.m (nsfont_close): Remove useless test.
9265 * term.c (delete_tty): Likewise.
9266 * w32.c (system_process_attributes): Likewise.
9267 * w32font.c (w32font_close): Likewise.
9268 * xfaces.c (x_free_gc): Likewise.
9269 * xselect.c (buffer): Likewise.
9270
b9607587
AS
92712009-06-28 Andreas Schwab <schwab@linux-m68k.org>
9272
9273 * process.c (send_process): Keep decoded string in a local
9274 variable and protect it from GC. (Bug#3521)
9275
89ba96f4
EZ
92762009-06-28 Eli Zaretskii <eliz@gnu.org>
9277
9278 * term.c (create_tty_output) [MSDOS]: #ifdef away.
9279 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
9280
098a1589
CY
92812009-06-28 Chong Yidong <cyd@stupidchicken.com>
9282
485422be
CY
9283 * xdisp.c (start_display, handle_face_prop)
9284 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
9285 (redisplay_window, try_window_id, produce_image_glyph):
9286 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 9287
098a1589
CY
9288 * xterm.c (x_update_window_begin, x_new_focus_frame)
9289 (x_scroll_bar_handle_click, handle_one_xevent)
9290 (handle_one_xevent, XTread_socket, x_focus_on_frame)
9291 (x_make_frame_visible, x_make_frame_invisible)
9292 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9293 code chunks that are now obsolete.
9294
78c38319
MA
92952009-06-28 Michael Albinus <michael.albinus@gmx.de>
9296
9297 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9298 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
9299 for hours, when optimzation is enabled.
9300 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9301 (xd_read_message): Make them static.
9302
4189ed40
CY
93032009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
9304
9305 * term.c (turn_on_face): Allow simultaneously bold and dim
9306 terminal faces (Bug#3530).
9307
cd9b5e16
CY
93082009-06-27 Chong Yidong <cyd@stupidchicken.com>
9309
4e23bedb
CY
9310 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9311
cd9b5e16
CY
9312 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9313 truncation glyphs (Bug#3686).
9314
07cc3c35
GM
93152009-06-27 Glenn Morris <rgm@gnu.org>
9316
9317 * m/pmax.h: Restore file, with only netbsd portions.
9318
31fd7c5c 93192009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 9320
cd9b5e16 9321 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 9322
42d4a64f
KH
93232009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9324
9325 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9326 the arg FORCE_SYMBOL.
9327
930fe55b 93282009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
9329
9330 * fontset.c (fontset_find_font): When a usable rfont_def is found
9331 in a fallback font-group, make it the first element of the group.
9332
57ebc3fd
CY
93332009-06-24 Chong Yidong <cyd@stupidchicken.com>
9334
9335 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9336
f084f942
KH
93372009-06-24 Kenichi Handa <handa@m17n.org>
9338
9339 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9340 set for C.
9341 (fontset_font): Record the availability of a font for C both in
9342 the realized fontsets of the current one and the default one.
9343
2f686c87
DN
93442009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9345
9346 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9347 conditional, it is always defined on AIX.
9348
666e158e
MB
93492009-06-23 Miles Bader <miles@gnu.org>
9350
9351 * window.c (Vrecenter_redisplay): New variable.
9352 (syms_of_window): Initialize it.
9353 (Qtty): New extern declaration.
9354 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9355
c6da7cd2
JM
93562009-06-23 Jim Meyering <meyering@redhat.com>
9357
1ac9108a
SM
9358 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9359 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 9360 pointer dereferences are guaranteed to be valid.
c6da7cd2 9361
678dca3d
KH
93622009-06-23 Kenichi Handa <handa@m17n.org>
9363
74d75424
KH
9364 * emacs.c (main): Call init_font ().
9365
9366 * font.h (Vfont_log): Extern it.
9367 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9368
9369 * font.c (font_sort_entities, font_list_entities)
9370 (font_matching_entity, font_open_entity)
9371 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9372 (Vfont_log): Delete static.
9373 (font_log_env_checked): Delete this variable.
9374 (font_add_log): Don't check font_log_env_checked.
9375 (font_deferred_log): Check Vfont_log.
9376 (init_font): New function.
9377
678dca3d
KH
9378 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9379
9380 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9381
9382 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9383
9384 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9385
9386 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9387 (face_for_char): Don't call font_deferred_log here.
9388 (font_for_char): Likewise.
9389
8a668709
CY
93902009-06-22 Chong Yidong <cyd@stupidchicken.com>
9391
9a01ee33
CY
9392 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9393 rather than its background_width for drawing the overline and
9394 underline (Bug#489).
9395
9396 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9397 rather than its background_width for drawing the overline and
9398 underline (Bug#489).
ec7c9926
CY
9399 (xg_default_icon_file): New variable.
9400 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9401 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 9402
8a668709
CY
9403 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9404 (load_overlay_strings): Remove externs.
9405 (fast_find_position): Function deleted.
9406 (mouse_face_from_buffer_pos): New function, based on
9407 fast_find_position. Correctly handle before-strings,
9408 display-strings, and after-strings (Bug#1220).
9409 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9410
4d4c02d8
CY
94112009-06-21 Chong Yidong <cyd@stupidchicken.com>
9412
1ac9108a 9413 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
9414 (move_it_in_display_line_to, move_it_in_display_line_to)
9415 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9416
70243478
CY
94172009-06-21 Chong Yidong <cyd@stupidchicken.com>
9418
9419 * Branch for 23.1.
9420
13087e59
JR
94212009-06-21 Jason Rumney <jasonr@gnu.org>
9422
9423 * w32term.c (keyboard_codepage): New static variable.
9424 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9425 (w32_read_socket) [WM_CHAR]: Use it to decode character
9426 input (bug#3237).
9427 (w32_initialize): Initialize it.
9428 (codepage_for_locale): New function.
9429
4735b74e
KR
94302009-06-20 Ken Raeburn <raeburn@raeburn.org>
9431
9432 * process.c (status_message): Pass Faset index argument as a lisp
9433 object, so as to work with USE_LISP_UNION_TYPE.
9434
0e727afa
YM
94352009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9436
9437 * coding.c (Ffind_coding_systems_region_internal):
9438 Cache checked characters.
9439
cf299835
KH
94402009-06-18 Kenichi Handa <handa@m17n.org>
9441
1ac9108a 9442 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 9443
90f20d94
AS
94442009-06-18 Andreas Schwab <aschwab@redhat.com>
9445
9446 * xdisp.c (redisplay_internal): Check that the frame is still
9447 live after redisplay of its windows.
9448 (redisplay_windows): Check that the window is still live.
9449
7f1faf1c
KH
94502009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9451
9452 * coding.c (detect_coding_utf_16): Fix previous change.
9453
cc13543e
KH
94542009-06-16 Kenichi Handa <handa@m17n.org>
9455
9456 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9457 UTF-16 by checking the dispersion of Eth and Oth bytes.
9458
977b85f4
AS
94592009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9460
9461 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9462
66bd43d1
KH
94632009-06-15 Kenichi Handa <handa@m17n.org>
9464
9465 * process.c (status_message): Fix previous change. Be sure to
9466 decode a localized string.
9467
cb5ca9c5
YM
94682009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9469
9470 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9471 add comment explaining why.
9472
ec7709ba 94732009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 9474
ec7709ba 9475 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 9476
4b7f335c
AR
94772009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9478
9479 * nsfont.m (ns_attribute_value): Remove.
9480 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9481 (ns_has_attribute): Shrink the normal range.
9482 (ns_findfonts): Don't worry about requested spec in determining
9483 need for synthItal.
e41820ee 9484 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 9485
73b26103
SZ
94862009-06-14 Seiji Zenitani <zenitani@mac.com>
9487
9488 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9489
5753e4da
KH
94902009-06-11 Kenichi Handa <handa@m17n.org>
9491
9492 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9493 overhang for the static composition case.
9494
3561b671
KH
94952009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9496
5753e4da
KH
9497 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9498 overhang for the automatic composition case.
9499
3561b671
KH
9500 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9501 composition case.
9502
852bbd41
CY
95032009-06-10 Chong Yidong <cyd@stupidchicken.com>
9504
9505 * xdisp.c (get_next_display_element): When handling wrap-prefix
9506 and line-prefix, treat \n as a control character (bug#3502).
9507
9903d1e6
KH
95082009-06-10 Kenichi Handa <handa@m17n.org>
9509
9510 * font.c (font_parse_family_registry): Fix for one-char foundry.
9511 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9512
0bcbaaaa
CY
95132009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9514
9515 * process.c (status_message): Fix handling of multibyte signal
9516 string (Bug#3499).
9517
40aa3f13
JM
95182009-06-09 Jim Meyering <meyering@redhat.com>
9519
1f80c7e2
CY
9520 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9521 color name is missing.
40aa3f13 9522
72d51285
KH
95232009-06-09 Kenichi Handa <handa@m17n.org>
9524
9525 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9526 FROM-CODE and TO-CODE are codepoints of CHARSET.
9527
c1d04d84
AR
95282009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9529
9530 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9531
95322009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9533
9534 Changes to support :script/:lang/:otf in NS font driver.
9535 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9536 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9537 indicate not part of font driver interface, and change callers.
9538 (ns_get_family): Remove pointless null check.
9539 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9540 ns_spec_to_descriptor, ns_descriptor_to_entity.
9541 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9542 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9543 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9544 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9545 (ns_get_req_script, ns_accumulate_script_ranges)
9546 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9547 New functions.
9548 (nsfont_list, nsfont_match): Use ns_findfonts.
9549 (nsfont_open): Use font descriptor instead of traits.
9550 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9551 (dump_glyphstring): Rename to ns_dump_glyphstring.
9552
c7eb9816
AR
9553 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9554
c1d04d84
AR
9555 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9556
9557 * fontset.c (fontset_from_font): Remove NS-specific code.
9558
ec7709ba 95592009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
9560
9561 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9562 nonactive windows.
9563
31fd7c5c 95642009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 9565
1ac9108a 9566 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 9567
68852c13 95682009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
9569
9570 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9571
6756cd1d
CY
95722009-06-07 Chong Yidong <cyd@stupidchicken.com>
9573
9574 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9575 account for the overflowing of newlines into the last glyph on the
9576 display line (Bug#3482).
9577
28bf482a
DR
95782009-06-05 David Reitter <david.reitter@gmail.com>
9579
ec7709ba
JB
9580 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9581 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
9582 Fns_selection_exists_p, Fns_selection_owner_p.
9583
fdb55376
JR
95842009-06-03 Jason Rumney <jasonr@gnu.org>
9585
9586 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9587 available. (Bug#3379)
9588
05129fbe
KH
95892009-05-29 Kenichi Handa <handa@m17n.org>
9590
1ac9108a
SM
9591 * coding.c (get_translation_table):
9592 Check Venable_character_translation.
05129fbe 9593
ec7709ba 95942009-05-26 David Reitter <david.reitter@gmail.com>
15891144 9595
ec7709ba
JB
9596 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9597 (x_make_frame_visible): Move frame to front rather than calling
15891144 9598 ns_raise_frame().
ec7709ba 9599 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 9600 isn't key window.
ec7709ba 9601 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
9602 drawRect may be called by NSView even if the frame is hidden.
9603
ec7709ba
JB
9604 * nsfns.m (Fx_create_frame): Follow other ports in
9605 determining visibility; default to t. Ensure async_visible is set.
15891144 9606
21f73755
EZ
96072009-05-23 Eli Zaretskii <eliz@gnu.org>
9608
9609 * dired.c (Ffile_attributes): Doc fix.
9610
34001e41
CY
96112009-05-22 Chong Yidong <cyd@stupidchicken.com>
9612
9613 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9614
46306a17
SM
96152009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9616
9617 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9618 and xfont_scratch_props.
9619 (syms_of_xfont): Do it here instead.
9620 (xfont_find_ccl_program): Delete, unused.
9621 (xfont_open): Delete unused var `i'.
9622
ef6e0694
KH
96232009-05-21 Kenichi Handa <handa@m17n.org>
9624
9625 * fontset.c (Qlatin): Don't make it static.
9626
46306a17
SM
9627 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9628 New functions.
ef6e0694
KH
9629 (xfont_scripts_cache, xfont_scratch_props): New variables.
9630 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
9631 (xfont_list_pattern): Argument changed. Callers changed.
9632 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
9633 (xfont_list): Don't reject a font spec with :script property.
9634 (xfont_has_char): Fix setting of encoding.
9635 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9636 xfont_scratch_props.
9637
96382009-05-19 Kenichi Handa <handa@m17n.org>
9639
46306a17 9640 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
9641 Callers changed.
9642
96432009-05-18 Kenichi Handa <handa@m17n.org>
9644
9645 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9646
ac71ced7
SM
96472009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9648
9649 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9650 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9651
1c6d1051
YM
96522009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9653
9654 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9655 (x_delete_terminal): Dissociate resource database from display and
9656 then call XrmDestroyDatabase before closing display.
9657
9b9b779c
AR
96582009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9659
9660 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
9661 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9662 whether selected frame is viable before raising it (based on patch
9663 by David Reitter), and improve commentary.
9664 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 9665
cccd42d5
KH
96662009-05-15 Kenichi Handa <handa@m17n.org>
9667
9668 * font.c (Ffont_spec): Check arguments.
9669
337fbd17
CY
96702009-05-14 Chong Yidong <cyd@stupidchicken.com>
9671
9672 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9673 weight when testing attributes (Bug#3282).
9674
47a6002f
JD
96752009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9676
9677 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9678 what we expect to get in the next ConfigureNotify event.
9679
9cb363db
YM
9680 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9681 before Xft one (Bug#1696).
9682
b9126609
CY
96832009-05-07 David Reitter <david.reitter@gmail.com>
9684
9685 * nsfns.m (Fx_display_planes): Compute bitplanes using
9686 NSBitsPerPixelFromDepth (Bug#3207).
9687
27a69fd9
CY
96882009-05-10 Chong Yidong <cyd@stupidchicken.com>
9689
9690 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9691
00f37552
TTN
96922009-05-10 Ulrich Mueller <ulm@gentoo.org>
9693
9694 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9695
2d82a920
DR
96962009-05-07 David Reitter <david.reitter@gmail.com>
9697
ec7709ba
JB
9698 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9699 Respect mouse face background.
2d82a920 9700
46b0d52d
DR
97012009-05-07 David Reitter <david.reitter@gmail.com>
9702
ec7709ba
JB
9703 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9704 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
9705 in ns_update_begin and ns_update_end.
9706
ce1b23bb
SM
97072009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9708
5996e1b7
SM
9709 * nsfns.m (ns_get_screen): Rewrite.
9710 Don't presume selected-frame is of type `ns'.
9711
ba98e3a0
SM
9712 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9713 all drivers.
9714
ce1b23bb
SM
9715 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9716
bcda200f
YM
97172009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9718
9719 * keyboard.h (add_user_signal): Fix typo in extern.
9720
9721 * lisp.h (add_user_signal): Remove extern.
9722
9723 * unexelf.c (unexec): Consider a section to precede the .bss section
9724 if its addresses overlap that of .bss.
9725 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9726 instead of dumping process.
9727
864660a2
SM
97282009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9729
9730 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9731
50da4e56
SM
97322009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9733
9734 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9735
51520a1a
DN
97362009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9737
9738 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9739 any statements.
9740
409ea3a1
AS
97412009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9742
59c4c60f
AS
9743 * process.c (read_process_output): Make sure the current buffer is
9744 always restored.
9745
409ea3a1
AS
9746 * coding.c (record_conversion_result): Don't modify
9747 Vlast_code_conversion_error for successful result.
9748 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9749
56f00ed2
KH
97502009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9751
9752 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 9753 (load_charset_map): Remove unnecessary code.
56f00ed2 9754
4491c9d2
DR
97552009-04-30 David Reitter <david.reitter@gmail.com>
9756
35f5b128 9757 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
9758 through f24.
9759
6970f632
CY
97602009-04-30 Chong Yidong <cyd@stupidchicken.com>
9761
9762 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9763
9764 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9765 face_at_buffer_position.
9766 (face_before_or_after_it_pos, get_next_display_element)
9767 (note_mouse_highlight): Update face_at_buffer_position call.
9768
9769 * term.c (term_mouse_highlight):
9770 * msdos.c (IT_note_mouse_highlight):
9771 * fontset.c (Finternal_char_font):
35f5b128 9772 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
9773
9774 * dispextern.h (face_at_buffer_position): Update prototype.
9775
0c616f63
KH
97762009-04-30 Kenichi Handa <handa@m17n.org>
9777
35f5b128 9778 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 9779
ad3aaf33
AS
97802009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9781
9782 * callproc.c (Fcall_process): Fix GC protection. Make sure
9783 current buffer is always restored.
9784
c3c963a0
YM
97852009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9786
9787 * atimer.c (init_atimer): Also clear stopped_atimers.
9788
9789 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9790
7e3386cb
YM
9791 * process.c (create_process): Clean up merger residues of
9792 2008-07-17 change.
9793
91f68422
CY
97942009-04-29 Ulrich Mueller <ulm@gentoo.org>
9795
9796 * lread.c (Vread_circle): New variable.
9797 (read1): Disable recursive read if Vread_circle is nil.
9798
24b34550
KH
97992009-04-29 Kenichi Handa <handa@m17n.org>
9800
9801 * fontset.h (set_default_ascii_font): Delete extern.
9802
9803 * fontset.c (set_default_ascii_font): Delete this unused function.
9804
9805 * frame.c (x_set_font): When ARG is a font-object, check if the
9806 font-object matches with the ASCII font-spec of the frame's
9c358bda 9807 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9808
77bf07e1
AS
98092009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9810
9811 * fns.c (Flocale_info): Protect vector from GC during decoding.
9812
9813 * process.c (Fstart_process): Protect argv strings from GC during
9814 encoding.
9815
2c55aacf
AS
98162009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9817
9818 * sysdep.c: Include <ctype.h>.
9819
b892d3c9
DR
98202009-04-27 David Reitter <david.reitter@gmail.com>
9821
35f5b128 9822 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9823 Remove commented-out code.
9824
9d0644c4
JB
98252009-04-26 Johan Bockgård <bojohan@gnu.org>
9826
9827 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9828
b7053016
JR
98292009-04-25 Jason Rumney <jasonr@gnu.org>
9830
9831 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9832
4e8231f3
YM
98332009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9834
9835 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9836 Swap bytes in short integer if fringe bitmap width > 8.
9837
493dcf2c
KH
98382009-04-23 Kenichi Handa <handa@m17n.org>
9839
9840 * xfaces.c (Fx_list_fonts): If a font size is specified in
9841 PATTERN, set it in returned scalable fonts.
9842
401e9e57
CY
98432009-04-22 Chong Yidong <cyd@stupidchicken.com>
9844
708e05dc
CY
9845 * keyboard.c (Fset_input_meta_mode): Doc fix.
9846
9847 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9848
1ac9108a 9849 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9850
9851 * coding.c (Fterminal_coding_system): Doc fix.
9852
9853 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9854 (Fx_display_pixel_height, Fx_display_planes)
9855 (Fx_display_color_cells, Fx_server_max_request_size)
9856 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9857 (Fx_display_mm_height, Fx_display_mm_width)
9858 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9859 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9860 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9861 (check_x_display_info): Handle terminal objects instead of
9862 terminal ids.
9863
401e9e57
CY
9864 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9865 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9866 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9867 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9868
df80c7f0
KH
98692009-04-21 Kenichi Handa <handa@m17n.org>
9870
5a8f12af 9871 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9872 (font_score): Check AVGWIDTH too.
908567ef 9873
df80c7f0
KH
9874 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9875 worst case.
1ac9108a
SM
9876 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9877 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9878
705af33f
JR
98792009-04-19 Jason Rumney <jasonr@gnu.org>
9880
9881 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9882 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9883
9884 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9885 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9886 get_phys_cursor_geometry.
9887
b71ac3dd 9888 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9889 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9890 using get_phys_cursor_geometry.
9891
9892 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9893 correctly calculated.
9894
dc2933eb
JD
98952009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9896
1ac9108a
SM
9897 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9898 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9899 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9900 is deprecated.
9901
973e7849
AS
99022009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9903
9904 * font.c (font_put_frame_data): Use xfree instead of free.
9905
314d66f4
JB
99062009-04-17 Juanma Barranquero <lekktu@gmail.com>
9907
9908 * w32font.c (Qja, Qko): Remove declarations.
9909 (syms_of_w32font): Don't DEFSYM them.
9910
cf702558
CY
99112009-04-17 Chong Yidong <cyd@stupidchicken.com>
9912
9913 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9914
9915 * font.h (Qja, Qko): Extern them.
9916
9917 * ftfont.c (Qja, Qko): Remove declarations.
9918
9919 * xfont.c (Qja, Qko): Remove declarations.
9920
b50504f5
KH
99212009-04-17 Kenichi Handa <handa@m17n.org>
9922
bde25748
KH
9923 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9924 string from a vector to handle Latin-1 characters correctly.
9925
b50504f5
KH
9926 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9927 entity even if the cache hits.
9928
f4646fff
AS
99292009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9930
9931 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9932 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9933
e7deaab0
AS
9934 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9935 * lisp.h: Adjust prototypes.
9936
0a0e7d49
CY
99372009-04-16 Chong Yidong <cyd@stupidchicken.com>
9938
9939 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9940 change (Bug#3003).
9941
3c908a57
KH
99422009-04-16 Kenichi Handa <handa@m17n.org>
9943
1ac9108a 9944 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9945
9946 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9947 adstyle.
9948
9949 * ftfont.c (Qja, Qko): Don't make them static.
9950 (enum ftfont_cache_for): New enum.
9951 (fc_charset_table): Undo the previous change.
9952 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9953 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9954 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9955 non-scarable font, try to get AVERAGE_WIDTH.
9956 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9957 Change ft_face_cache from a list of a hash-table. Don't check
9958 `ja' and `ko' adstyle here.
9959 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9960 FTFONT_CACHE_FOR_CHARET.
9961 (ftfont_get_charset): Undo the previous change.
1ac9108a 9962 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9963 (ftfont_close): Likewise.
9964 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9965
9966 * font.c (font_sort_entites): Change the meaning of the arg
9967 BEST-ONLY. Don't optimize for VEC of lenght 1.
9968 (font_select_entity): Just return the value of font_sort_entites.
9969
9970 * xfaces.c (merge_face_vectors): Reflect font properties in
9971 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9972 font_clear_prop if a face attribute doesn't change.
9973
3c908a57
KH
9974 * charset.h (charset_ksc5601): Extern it.
9975
9976 * charset.c (charset_ksc5601): New variable.
9977 (Fdefine_charset_internal): Set charset_ksc5601.
9978 (init_charset_once): Initialize charset_ksc5601 to -1.
9979
d65859c3
DN
99802009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9981
9982 * fileio.c (history_delete_duplicates): Remove unused declaration.
9983
9984 * callint.c (history_delete_duplicates): New declaration.
9985 (Fcall_interactively): Remove command history duplicates when
9986 history_delete_duplicates is true.
9987
3ba010e5
EZ
99882009-04-14 Eli Zaretskii <eliz@gnu.org>
9989
9990 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9991
06f19b91
KH
99922009-04-14 Kenichi Handa <handa@m17n.org>
9993
9994 * font.c (Ffont_info): Fix docstring. Fix the second element of
9995 the returned value (bug#2949).
9996
2cce8bfc
CY
99972009-04-14 Chong Yidong <cyd@stupidchicken.com>
9998
9999 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
10000
d156542d
KH
100012009-04-14 Kenichi Handa <handa@m17n.org>
10002
10003 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
10004 encoding charset is ascii_compatible.
10005
10006 * charset.c (Fdefine_charset_internal): Make charset
10007 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
10008 code_offset is 0, and covers all ASCII characters.
10009
86fa089e
SM
100102009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10011
10012 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
10013 (ns_string_to_pasteboard_internal):
10014 * nsmenu.m (process_dialog):
10015 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
10016 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
10017 * lisp.h (Fx_load_color_file): Declare.
10018
a8a3728b
KH
100192009-04-13 Kenichi Handa <handa@m17n.org>
10020
1ac9108a 10021 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
10022 (font_select_entity): Suppress the code to optimize for the same
10023 kind of fonts.
10024 (font_load_for_lface): Get a font that supports at least ASCII
10025 characters.
10026
10027 * ftfont.c (Qja, Qko): New variables.
10028 (fc_charset_table): Delete uniquifier data for iso8859-1.
10029 (ftfont_get_latin1_charset): New function.
10030 (get_adstyle_property): New function.
10031 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
10032 bitmap fonts.
10033 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
10034 Delete iso-8859-1 range from the charset of fonts whose adstyle is
10035 `ko' or `ja'.
10036 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 10037 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
10038 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
10039 property.
10040 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
10041 (syms_of_ftfont): DEFSYM Qja and Qko.
10042
483670b5
KH
100432009-04-09 Kenichi Handa <handa@m17n.org>
10044
12b55765
KH
10045 * charset.c (map_charset_chars): For a charset of `superset'
10046 method, fix calculation of code range.
10047
483670b5
KH
10048 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
10049 from the list of extra properties.
10050 (font_clear_prop): Be sure to delete `:name' font property.
10051
57d3b93b
KH
100522009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10053
b4b2c2ca
YM
10054 * dispnew.c (redraw_overlapping_rows): Fix detection of
10055 overlapping for topmost and bottommost rows.
10056
1ac9108a 10057 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 10058
472c3609
JR
100592009-04-06 Jason Rumney <jasonr@gnu.org>
10060
10061 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
10062
ab193662
KH
100632009-04-06 Kenichi Handa <handa@m17n.org>
10064
10065 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
10066
10067 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
10068
0c26f026
KH
100692009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10070
10071 * ftfont.c (ftfont_open): Fix checking of the return value of
10072 FT_Load_Char. Fix setting font->underline_thickness.
10073
e173bbce
CY
100742009-04-04 Chong Yidong <cyd@stupidchicken.com>
10075
10076 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
10077 (Fterminal_parameters, Fterminal_parameter)
10078 (Fset_terminal_parameter): In doc string, refer to terminal
10079 objects rather than terminal ids.
10080
693a2698
EZ
100812009-04-04 Eli Zaretskii <eliz@gnu.org>
10082
10083 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
10084 ret_lim_data. (Bug#2867)
10085
d5221487
CY
100862009-04-03 Chong Yidong <cyd@stupidchicken.com>
10087
10088 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
10089 so they don't get wider than the window, matching 2006-01-23
10090 change to the partner function in xdisp.c (Bug#2800).
10091
223509a3
KH
100922009-04-03 Kenichi Handa <handa@m17n.org>
10093
10094 * print.c (print_object): Make each lowest sub_char_table start a
10095 new line (Bug#2866).
10096
74fcd0b1
KH
100972009-04-02 Kenichi Handa <handa@m17n.org>
10098
10099 * fontset.c (fontset_font): Record no-font when a fontset
10100 explicitly tells not to try another font-specs.
10101
c542407d
SM
101022009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
10103
10104 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
10105
e3869731
KH
101062009-03-30 Kenichi Handa <handa@m17n.org>
10107
d8d2f142
KH
10108 * fontset.c (fontset_from_font): Specify only registry in a
10109 font-spec for all characters supported by that registry.
10110
e3869731
KH
10111 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
10112 even if HAVE_M17N_FLT is not defined.
10113
5da5f805
CY
101142009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
10115
10116 * ftfont.c: Conditionalize prototyping and use of
10117 ftfont_variation_glyphs.
10118
ab226c50
SM
101192009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10120
9628fed7
SM
10121 * frame.c (delete_frame): Work around compiler bug.
10122
10123 * editfns.c (general_insert_function): Adjust to insdel.c changes.
10124 * insdel.c (prepare_to_modify_buffer, signal_before_change):
10125 Some more EMACS_INT.
10126 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
10127
10128 * xdisp.c (dump_glyph): Fix typo.
10129
ae19ba7c
SM
10130 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
10131 (adjust_markers_gap_motion, adjust_markers_for_delete)
10132 (adjust_markers_for_insert, adjust_point)
10133 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
10134 (make_gap, copy_text, count_size_as_multibyte, insert)
10135 (insert_and_inherit, insert_before_markers)
10136 (insert_before_markers_and_inherit, insert_1)
10137 (count_combining_before, count_combining_after, insert_1_both)
10138 (insert_from_string, insert_from_string_before_markers)
10139 (insert_from_string_1, insert_from_gap, insert_from_buffer)
10140 (insert_from_buffer_1, adjust_after_replace)
10141 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
10142 (replace_range_2, del_range, del_range_1, del_range_byte)
10143 (del_range_both, del_range_2, modify_region)
10144 (prepare_to_modify_buffer, signal_before_change)
10145 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
10146 for buffer positions and sizes.
10147 * lisp.h: Adjust prototypes accordingly.
10148
10149 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
10150 (non_regular_inserted, non_regular_nbytes, read_non_regular)
10151 (Finsert_file_contents): Use EMACS_INT for buffer positions.
10152
ab226c50
SM
10153 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
10154
46dfb8fb
JD
101552009-03-27 Jan Djärv <jan.h.d@swipnet.se>
10156
10157 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
10158 lines and columns so we keep the same pixel height and width.
10159
10160 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
10161 the property _NET_WM_STATE has changed.
46dfb8fb
JD
10162 (x_handle_net_wm_state): New function to update frame parameter
10163 fullscreen.
10164 (x_term_init): Initialize atoms for _NET_WM_STATE.
10165
10166 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
10167
d347e494
SM
101682009-03-27 Kevin Ryde <user42@zip.com.au>
10169
10170 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
10171 Gpm_GetEvent as an error that justifies closing the filedescriptor.
10172 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
10173 (Fgpm_mouse_stop): Pass that new parameter.
10174 * termhooks.h (close_gpm): Adjust prototype.
10175
84db11d6
SM
101762009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10177
c95a5008
SM
10178 * lisp.h (Fx_focus_frame): Declare.
10179
84db11d6
SM
10180 * callint.c (Fcall_interactively): For '^' just delegate the work to
10181 handle-shift-selection.
10182 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
10183
0a1958d6
CY
101842009-03-24 Chong Yidong <cyd@stupidchicken.com>
10185
0bfdff23
CY
10186 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
10187
0a1958d6
CY
10188 * data.c (Qinteractive_form): New variable.
10189 (Finteractive_form): Use it.
10190
10191 * eval.c (Fcommandp): Use Qinteractive_form.
10192
58aec0d6
JR
101932009-03-24 Jason Rumney <jasonr@gnu.org>
10194
10195 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
10196 Calculate total size precisely. Decode environment variables
10197 before substituting. (Bug#38)
10198
553dd618
KH
101992009-03-24 Kenichi Handa <handa@m17n.org>
10200
10201 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 10202 encoding (Bug#2722).
553dd618 10203
c39ea606
JD
102042009-03-23 Jan Djärv <jan.h.d@swipnet.se>
10205
10206 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
10207 that gdpy is set.
10208
bc9b2b5e
AM
102092009-03-22 Alan Mackenzie <acm@muc.de>
10210
10211 * callint.c (Finteractive): Clarify the doc string - even
10212 promptless elements need \n separators.
10213
9f995a76
JR
102142009-03-22 Jason Rumney <jasonr@gnu.org>
10215
10216 * w32term.c (syms_of_w32term): Doc fix for
10217 x-use-underline-position-properties.
10218
22749e9a
EZ
102192009-03-21 Eli Zaretskii <eliz@gnu.org>
10220
10221 * w32.c (getpwuid): Change argument type to unsigned.
10222 (struct w32_id): Change type of `rid' member to unsigned.
10223 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
10224 argument ID to unsigned. All callers changed.
10225 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
10226
e00553bf
EZ
102272009-03-20 Eli Zaretskii <eliz@gnu.org>
10228
10229 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
10230 negative, produce a float value.
10231
10232 * dired.c (make_uid, make_gid): New functions.
10233 (Ffile_attributes): Use them to avoid negative UID and GID.
10234
f761d6b6
JB
102352009-03-20 Juanma Barranquero <lekktu@gmail.com>
10236
10237 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
10238 (syms_of_keyboard) <command-hook-internal, input-method-function>:
10239 Fix typos in docstrings.
10240
d507f8d7
KH
102412009-03-19 Kenichi Handa <handa@m17n.org>
10242
10243 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
10244 changed, use font_load_for_lface to get a new font object.
10245 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
10246
10247 * frame.c (x_set_font): Handle the case that ARG is a cons.
10248
c68845e0
GM
102492009-03-19 Glenn Morris <rgm@gnu.org>
10250
10251 * fileio.c (Fsubstitute_in_file_name): Doc fix.
10252
bfa49dd1
CY
102532009-03-19 Chong Yidong <cyd@stupidchicken.com>
10254
10255 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
10256
8458d4c1
KH
102572009-03-19 Kenichi Handa <handa@m17n.org>
10258
10259 * charset.c (load_charset_map_from_file): When a mapfile can't be
10260 loaded, signal an error.
10261
78e7d1fe
EZ
102622009-03-18 Eli Zaretskii <eliz@gnu.org>
10263
10264 * dired.c (Ffile_attributes): Make sure UID and GID are always
10265 positive, even if the value is too large for a positive EMACS_INT.
10266 Doc fix.
10267
10268 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
10269
5da9fdfa
YM
102702009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10271
10272 * xmenu.c (xdialog_show): Move Fredisplay call ...
10273 (Fx_popup_dialog): ... here.
10274
7519c40d
SM
102752009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
10276
10277 * dired.c (file_name_completion): Disable the first optimization just
10278 installed, since it is not implemented correctly.
10279
2cd298e2
SM
102802009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10281
10282 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 10283 only if the entry can affect bestmatch.
2cd298e2
SM
10284 Stop the search early, as Ftry_completion already does.
10285
48d37adf
CY
102862009-03-17 Chong Yidong <cyd@stupidchicken.com>
10287
e10c9c93 10288 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 10289
9286b16a
CY
102902009-03-15 Chong Yidong <cyd@stupidchicken.com>
10291
10292 * keyboard.c (parse_menu_item): Don't display remappings as menu
10293 equivalent bindings (Bug#788).
10294
f7b146dc
JR
102952009-03-15 Jason Rumney <jasonr@gnu.org>
10296
10297 * w32term.h (WM_EMACS_PAINT): New message.
10298 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10299 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10300 before passing to lisp thread. (Bug#950)
10301
f761d6b6 103022009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 10303
d93f9575
CY
10304 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10305 variable as it was never reset.
10306 (ns_term_init): Remove initialization of Lisp-settable defaults
10307 and ns_expand_space.
10308 (-setPanelFromDefaultValues): Remove ns_expand_space.
10309 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10310 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
10311 i.e. no additional spacing, similar to Carbon port.
10312
d93f9575
CY
10313 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10314 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 10315
305018ec
JD
103162009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10317
10318 * sound.c (alsa_configure): Remove call to deprecated
10319 snd_pcm_sw_params_set_xfer_align.
10320
f761d6b6 103212009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
10322
10323 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10324 after clicking in a detached tool bar.
10325 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10326
46e722a9
SM
103272009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10328
348db3dd
SM
10329 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10330 int/Lisp_Object mixup).
46e722a9 10331
a3d16f39
KH
103322009-03-13 Kenichi Handa <handa@m17n.org>
10333
10334 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 10335 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
10336 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10337 (set_fontset_font): Change ARG to a vector. Handle range_list in
10338 ARG correctly.
10339 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 10340 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
10341 the above change.
10342 (fontset_from_font): Fix previous change.
fe24f56a 10343 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
10344 entry. If FONTSET is the default fontset, don't set the extra
10345 slot of the returning char-table.
10346
b066e6b6
JB
103472009-03-12 Juanma Barranquero <lekktu@gmail.com>
10348
10349 * nsfns.m (Fx_close_connection): Doc fix.
10350 (Fns_do_applescript): Reflow docstring.
10351 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10352 (Fx_display_pixel_width, Fx_display_pixel_height)
10353 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10354 Fix typos in docstrings.
10355 (Fns_set_alpha): Fix typos in error messages.
10356
d472514e 103572009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 10358
d472514e 10359 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
10360 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10361 were used for such events.
10362
d472514e
JB
10363 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10364 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 10365
d472514e 10366 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
10367 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10368
fb930676
KH
103692009-03-11 Kenichi Handa <handa@m17n.org>
10370
ff85581a
KH
10371 * font.h (font_open_by_spec): Extern it.
10372
c50b7e98
KH
10373 * font.c (font_open_by_spec): New function.
10374 (font_open_by_name): Use font_open_by_spec.
10375
fb930676
KH
10376 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10377 fontset of the frame.
10378
10379 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10380 modify the default font of frames that use this fontset.
10381 (num_auto_fontsets): New variable.
10382 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10383 name. Be sure to set FONTSET_ASCII to the correct font name.
10384 (update_auto_fontset_alist): New function.
10385
df4e8455
JB
103862009-03-11 Juanma Barranquero <lekktu@gmail.com>
10387
10388 * makefile.w32-in: Update dependencies.
10389
0a375797
AR
103902009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10391
10392 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10393
61313fa3
SM
103942009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10395
10396 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10397
b55103fb
CY
103982009-03-10 Chong Yidong <cyd@stupidchicken.com>
10399
10400 * lread.c (Feval_buffer): Doc fix.
10401
dde2559c
KH
104022009-03-09 Kenichi Handa <handa@m17n.org>
10403
10404 * charset.c (Qfile_name_handler_alist): Extern it.
10405 (load_charset_map_from_file): Temporarily bind
10406 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10407
df4e8455 104082009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 10409
47f588bb
GM
10410 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10411 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 10412
4ddf94bd
AR
104132009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10414
4c9bdfc2
AR
10415 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10416 (x_set_window_size): Change back to calculated method of setting
10417 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
10418 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10419 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10420
fe41ae9e
AR
10421 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10422
4c9bdfc2
AR
10423 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10424 accelerator in parens under GNUstep.
10425
825d0875
KH
104262009-03-06 Kenichi Handa <handa@m17n.org>
10427
10428 These changes are to detect incorrect composition sequence without
f3b3be74 10429 looking ahead the source. (Bug#2370)
825d0875
KH
10430
10431 * coding.h: Include "composite.h".
10432 (enum compisition_state): New enum.
10433 (struct compisition_status): New struct.
10434 (struct iso_2022_spec): New member cmp_status.
10435 (struct emacs_mule_spec): New struct.
10436 (struct coding_system): New members ctext_extended_segment_len and
10437 embedded_utf_8. Change the union member
10438 spec.emacs_mule_full_support to spec.emacs_mule.
10439
10440 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10441 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 10442 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
10443 (ADD_COMPOSITION_DATA): New arg nbytes.
10444 (emacs_mule_char): New arg cmp_status.
10445 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10446 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10447 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10448 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10449 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10450 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10451 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10452 (EMACS_MULE_COMPOSITION_END): New macro.
10453 (emacs_mule_finish_composition): New function.
10454 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10455 (decode_coding_emacs_mule): Avoid long looking ahead while
10456 handling composition.
10457 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10458 (ENCODE_COMPOSITION_RULE): New macro.
10459 (finish_composition): New function.
10460 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10461 (DECODE_COMPOSITION_START): New implementation.
10462 (DECODE_COMPOSITION_END): Likewise.
10463 (STORE_COMPOSITION_RULE): New macro.
10464 (decode_coding_iso_2022): Avoid long looking ahead while handling
10465 composition, CTEXT extended segment, and embedded UTF-8.
10466 (setup_coding_system): For a coding of type iso-2022, reset
10467 CODING_ISO_EXTSEGMENT_LEN (coding) and
10468 CODING_ISO_EMBEDDED_UTF_8 (coding).
10469 (get_translation): Delete arguments last_block, from_nchars,
10470 to_nchars. Callers changed.
10471 (produce_chars): Don't modify charbuf. Adjusted for the change of
10472 get_translation.
98a326f7 10473 (produce_composition): Adjust for the new annotation sequence.
825d0875 10474 (handle_composition_annotation): Likewise.
98a326f7 10475 (consume_chars): Adjust for the change of get_translation.
825d0875 10476
ccbc4452
AR
104772009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10478
4ddf94bd 10479 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 10480
988a7ddb
KH
104812009-03-05 Kenichi Handa <handa@m17n.org>
10482
10483 * font.c (font_select_entity): New function.
10484 (font_find_for_lface): Use font_select_entity to select a font.
10485
10486 * fontset.c (fontset_find_font): If a font found without
a8a3728b 10487 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
10488 font with C restriction.
10489
98a326f7 104902009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 10491
be1bce46 10492 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 10493
10ea2b82
JR
104942009-03-04 Jason Rumney <jasonr@gnu.org>
10495
2c93b248 10496 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 10497 characters that have already been read. (Bug#2569)
2c93b248 10498
10ea2b82
JR
10499 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10500 Log an error message if check_image_size failed.
10501 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 10502 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 10503
71a0c011
EZ
105042009-03-02 Eli Zaretskii <eliz@gnu.org>
10505
10506 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10507 when decoding process output.
10508
2f63bba8
RS
105092009-03-01 Richard M Stallman <rms@gnu.org>
10510
10511 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10512
10513 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10514
0a9564cb
EZ
105152009-02-28 Eli Zaretskii <eliz@gnu.org>
10516
10517 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10518 (decode_coding_emacs_mule, decode_coding_iso_2022)
10519 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10520 (decode_coding_raw_text, decode_coding_charset)
10521 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10522 Honor inhibit-eol-conversion. (Bug #2186)
10523
449148b3
JR
105242009-02-28 Jason Rumney <jasonr@gnu.org>
10525
10526 * coding.c (detect_coding_charset): If not checking latin extra,
10527 fail on characters between 0x80 and 0xA0. (Bug#2354)
10528
a4aee864
EZ
105292009-02-28 Eli Zaretskii <eliz@gnu.org>
10530
10531 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 10532 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 10533
d88bee5a
GM
105342009-02-27 Glenn Morris <rgm@gnu.org>
10535
10536 * callint.c (Finteractive): Doc fix.
10537
a808f22d
KH
105382009-02-27 Kenichi Handa <handa@m17n.org>
10539
10540 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10541
caf8d60c
CY
105422009-02-27 Chong Yidong <cyd@stupidchicken.com>
10543
10544 * font.c (font_style_to_value): Set value for unknown symbols to
10545 100 instead of 255.
b61137ea
CY
10546 (weight_table, slant_table, width_table): Treat "unspecified" as
10547 the default value.
caf8d60c 10548
1a0de25c
JB
105492009-02-26 Juanma Barranquero <lekktu@gmail.com>
10550
10551 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10552
8fc45744
JB
105532009-02-25 Juanma Barranquero <lekktu@gmail.com>
10554
107bd7d1
JB
10555 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10556 error as soon as a recursive load is detected.
8fc45744 10557
f097e223
AR
105582009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10559
10560 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10561 before caching.
10562
8810a12f
KH
105632009-02-24 Kenichi Handa <handa@m17n.org>
10564
10565 * fontset.c (fontset_find_font): Fix the condition for checking
10566 unavailable font.
10567
2c7d1565
GM
105682009-02-24 Glenn Morris <rgm@gnu.org>
10569
10570 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10571 whitespace that confuses documentation.
10572
a20878b6
MB
105732009-02-23 Miles Bader <miles@gnu.org>
10574
10575 * process.c (Flist_system_processes, Fprocess_attributes)
10576 (syms_of_process): Rename `system-process-attributes' to
10577 `process-attributes'.
10578
b3b58c01
AS
105792009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10580
1b3b981b
AS
10581 * coding.h (struct coding_system): Make safe_charsets a pointer to
10582 unsigned char.
10583 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10584 being 255.
10585 (SAFE_CHARSET_P): Likewise.
10586 (setup_iso_safe_charsets): Properly setup safe_charsets.
10587 (Fdefine_coding_system_internal): Likewise.
10588 (setup_coding_system): Likewise. Remove unneeded casts.
10589 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10590 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10591 unneeded casts.
10592
b3b58c01
AS
10593 * insdel.c (del_range_2): Don't modify gap contents when called
10594 from decode_coding_object. (Bug#1809)
10595
0b6f228c
CY
105962009-02-21 Chong Yidong <cyd@stupidchicken.com>
10597
10598 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10599 Qfont_object.
10600 (Ftype_of): Recognize font objects.
10601
10602 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10603
10604 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10605 moved to data.c.
10606
52f8870b
AR
106072009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10608
10609 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10610 async_iconified. Based on a patch by Christian Lynbech
10611 <christian.lynbech@tieto.com>.
10612 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10613
7087d5e9
GM
106142009-02-20 Glenn Morris <rgm@gnu.org>
10615
10616 * syntax.c (Fskip_chars_forward): Fix doc typo.
10617
41d2ceef
CY
106182009-02-20 Chong Yidong <cyd@stupidchicken.com>
10619
10620 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10621
1a3b7ca6
CY
106222009-02-19 Chong Yidong <cyd@stupidchicken.com>
10623
10624 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10625
73cce38d
KH
106262009-02-19 Kenichi Handa <handa@m17n.org>
10627
10628 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 10629 Don't overflow coding->carryover. (Bug#2370)
73cce38d 10630
a51092ee
DN
106312009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10632
10633 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10634
c423ecca
KH
106352009-02-18 Kenichi Handa <handa@m17n.org>
10636
10637 * font.c (font_check_otf_features): Fix handling of `nil' element.
10638 (Ffont_spec): Describe :lang and :otf in the docstring.
10639
4c1958f4
AS
106402009-02-16 Andreas Schwab <schwab@suse.de>
10641
10642 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10643 string.
10644
5704f39a
KH
106452009-02-16 Kenichi Handa <handa@m17n.org>
10646
10647 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 10648 (Bug#1723)
5704f39a 10649
8f0085aa
CY
106502009-02-14 Chong Yidong <cyd@stupidchicken.com>
10651
a057d86a 10652 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
10653
10654 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10655 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10656
aff01dd9
EZ
106572009-02-14 Eli Zaretskii <eliz@gnu.org>
10658
10659 * msdos.c (MAX_SCREEN_BUF): New macro.
10660 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10661 Encode the entire run of glyphs sharing the same face, instead of
10662 doing that one glyph at a time (fixes a bug with displaying
10663 double-size characters).
10664
ba301db3
AR
106652009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10666
10667 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10668
10669 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10670 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 10671 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
10672
10673 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 10674 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 10675
51d861de
SM
106762009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10677
ac146f82 10678 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
10679 invisible areas.
10680
7fed8996
JR
106812009-02-12 Jason Rumney <jasonr@gnu.org>
10682
631ea4fb
JR
10683 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10684 (add_font_entity_to_list): Call check_face_name even when family
10685 is unspecified.
10686
cb4a3e42
JR
10687 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10688 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 10689 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 10690
7fed8996 10691 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 10692 raster fonts. (Bug#2219)
7fed8996 10693
895416e3
KH
106942009-02-12 Kenichi Handa <handa@m17n.org>
10695
10696 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10697 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10698 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 10699 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10700 (find_automatic_composition): While looking forward and backward,
10701 check static composition. Fix where to stop looking forward.
10702 (composition_adjust_point): Fix checking of static composition.
10703 (Fcomposition_get_gstring): Pay attention to
1dacf998 10704 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10705
10706 * lisp.h (fast_looking_at): Extern it.
10707
10708 * search.c (fast_looking_at): New function.
10709
51d861de 10710 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
10711 <struct glyph>.u.cmp.to.
10712 (append_composite_glyph): Likewise.
10713
51d861de 10714 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
10715 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10716 composition.
51d861de 10717 (append_composite_glyph): Adjust for the change of
895416e3
KH
10718 <strcut glyph>.u.cmp.to.
10719
8510724d
JB
107202009-02-11 Juanma Barranquero <lekktu@gmail.com>
10721
10722 * casetab.c (init_casetab_once):
10723 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10724 * font.c (font_update_lface):
10725 * fontset.c (Fnew_fontset):
10726 * ftfont.c (ftfont_drive_otf):
10727 * xfont.c (xfont_open):
10728 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10729
294fa707
SM
107302009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10731
10732 * fileio.c (Fwrite_region): !NILP -> CONSP.
10733
b5bfebec
AS
107342009-02-10 Andreas Schwab <schwab@suse.de>
10735
10736 * process.c (send_process): Properly relocate pointer into data
adab88bd 10737 when using encoded data. (Bug#2272)
b5bfebec 10738
cb84a2be
KH
107392009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10740
10741 * coding.c (detect_coding_charset): Fix previous change.
10742
89e09428
JR
107432009-02-08 Jason Rumney <jasonr@gnu.org>
10744
10745 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 10746 disappeared while hourglass was displayed. (Bug #2193)
89e09428 10747
4470a277
AS
107482009-02-07 Andreas Schwab <schwab@suse.de>
10749
10750 * unexelf.c (unexec): Fix error message.
10751
3175b12a
AR
107522009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10753
10754 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 10755 when modal window is active. (Bug #2152)
3175b12a
AR
10756 (applicationShouldTerminate:): Remove now-unneeded while loop
10757 around NSRunAlertPanel.
10758
10759 * nsmenu.m (popupSession): New file-global variable.
10760 (pop_down_menu): End the popupSession before closing dialog.
10761 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10762 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10763 don't query NSApp for events (just sleep instead).
10764
8434d0b8
EZ
107652009-02-07 Eli Zaretskii <eliz@gnu.org>
10766
51d861de
SM
10767 * coding.c (syms_of_coding) <translation-table-for-input>:
10768 Modify doc string to discourage use for character code unification.
8434d0b8 10769
aa82edfd
CY
107702009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10771
10772 * atimer.c (run_timers): Update pending_atimers.
10773
2d283c7c
CY
107742009-02-06 Chong Yidong <cyd@stupidchicken.com>
10775
eb306cab
CY
10776 * image.c (svg_load_image): Fix last change.
10777
2d283c7c
CY
10778 * xfns.c (Fx_create_frame): Signal an error if no font is
10779 found (Bug#2147).
10780
4d8e170e
JB
107812009-02-05 Juanma Barranquero <lekktu@gmail.com>
10782
10783 * character.c (syms_of_character) <script-representative-chars>:
10784 Fix typo in docstring.
10785
c96169a0
AR
107862009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10787
10788 * nsmenu.m (pop_down_menu): New function.
10789 (ns_popup_dialog): Call it on unwind.
10790 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10791 call timer_check() (Bug#2154).
10792 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10793 handling_signal is set.
10794 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10795
31fd7c5c 10796 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10797
10798 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10799
10800 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10801
51d861de
SM
10802 * keyboard.c (poll_for_input_1, handle_async_input):
10803 Set handling_signal under HAVE_NS.
c96169a0 10804
aacd8ba1
GM
108052009-02-04 Glenn Morris <rgm@gnu.org>
10806
10807 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10808
4cb75c4b
KH
108092009-02-04 Kenichi Handa <handa@m17n.org>
10810
10811 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10812
10813 * charset.c (Fchar_charset): New optional arg restriction.
10814
10815 * coding.h (coding_system_charset_list): Extern it.
10816
10817 * coding.c (coding_system_charset_list): New function.
10818
10819 * composite.c: Include coding.h and termhooks.h.
10820 (composition_gstring_p): Fix for the terminal case.
10821 (composition_gstring_width): Likewise.
10822 (fill_gstring_body): Likewise.
10823 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10824 the frame.
10825 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10826 is within a composition.
867d4bb3 10827 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10828
10829 * term.c (encode_terminal_code): Fix handling of composition.
10830 (produce_composite_glyph): For static composition, get pixel_width
10831 from struct composition.
10832
826ba17e
AS
108332009-02-02 Andreas Schwab <schwab@suse.de>
10834
10835 * unexelf.c (unexec): Handle unaligned bss offset.
10836
8ad093db
AR
108372009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10838
10839 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10840 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10841
8ad093db
AR
10842 * keyboard.c (handle_interrupt): Don't call
10843 quit_throw_to_read_char() under NS.
d0a76a6e 10844
8ad093db
AR
10845 * blockinput.h: Remove NS-specific code.
10846
4d18a7a2
DN
108472009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10848
db878925
DN
10849 * dispnew.c (window_change_signal): Don't try to get the size of a
10850 suspended tty frame.
10851 * term.c (Fresume_tty): Resize if the size has changed while the
10852 tty was suspended.
10853
4d18a7a2
DN
10854 * alloc.c (mark_stack): Properly conditionalize previous change.
10855
8984df7c
JB
108562009-01-30 Juanma Barranquero <lekktu@gmail.com>
10857
10858 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10859 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10860 Remove; this code is not used on Windows.
10861
75f4f1ac
EZ
108622009-01-30 Eli Zaretskii <eliz@gnu.org>
10863
10864 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10865 EOLs that also has stray ^M characters.
10866
07a1e794
JB
108672009-01-30 Juanma Barranquero <lekktu@gmail.com>
10868
10869 * atimer.c (run_timers, alarm_signal_handler):
10870 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10871 * w32inevt.c (w32_console_read_socket):
10872 * w32term.c (w32_read_socket):
10873 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10874
a8b11cc9
CY
108752009-01-30 Chong Yidong <cyd@stupidchicken.com>
10876
10877 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10878 Initialize it as a relative filename pattern.
10879 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10880 (Fcall_process_region): Simplify temp file creation using
10881 temporary-file-directory.
10882
c279587b
EZ
108832009-01-29 Eli Zaretskii <eliz@gnu.org>
10884
10885 * msdos.c: Rename pending_signals to msdos_pending_signals.
10886 (sig_suspender, sigprocmask): Adjust.
10887
a8fe3242
CY
108882009-01-29 Chong Yidong <cyd@stupidchicken.com>
10889
10890 * keyboard.c (pending_signals): New var.
10891 (poll_for_input, input_available_signal, init_keyboard): Set it.
10892 (process_pending_signals): New function.
10893
10894 * lisp.h (QUIT): Check pending_signals instead of
10895 interrupt_input_pending. Use process_pending_signals.
10896
51d861de 10897 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10898
51d861de 10899 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10900
10901 * sysdep.c (emacs_write): Use process_pending_signals.
10902
10903 * xterm.c (XTread_socket): Update pending_signals.
10904
10905 * w32term.c (w32_read_socket): Update pending_signals.
10906
10907 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10908
6570a1c4
KH
109092009-01-29 Kenichi Handa <handa@m17n.org>
10910
10911 * xftfont.c (xftfont_has_char): New function.
10912 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10913
d72a4afa
AR
109142009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10915
10916 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10917 under GNUstep.
10918 (ns_query_color): New declaration.
10919
10920 * nsterm.m (ns_confirm_quit): New variable.
10921 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10922 (EmacsApp-applicationShouldTerminate:): Use it.
10923 (EmacsPrefsController): Let user set it.
10924 (ns_query_color): New function.
10925 (ns_defined_color): Use it.
10926 (ns_initialize): Drop.
10927 (ns_term_init): Add two lines from ns_initialize(), and set
10928 input_interrupt_mode to nil.
10929
10930 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10931 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10932
9fe78804
KH
109332009-01-28 Kenichi Handa <handa@m17n.org>
10934
10935 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10936 (fontset_get_font_group): Remember that no font-group is specified
10937 for C.
9fe78804 10938
fa57de36
CY
109392009-01-27 Chong Yidong <cyd@stupidchicken.com>
10940
930600e9
CY
10941 * fns.c (concat): Check for string overflow (bug#1787).
10942
fa57de36
CY
10943 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10944 Quadruple undo limits (bug#1501).
10945
7179ce7b
KH
109462009-01-27 Kenichi Handa <handa@m17n.org>
10947
10948 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10949 directly use GT_Get_Char_index.
10950
10951 * xftfont.c (struct xftfont_info): New member `index'.
10952
10953 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10954 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10955
5be8fcc0
CY
109562009-01-26 Kenichi Handa <handa@m17n.org>
10957
10958 * fontset.c (fontset_find_font): Fix handling of non-cons return
10959 value of fontset_get_font_group.
10960 (fontset_font): Revert last change.
10961
19ae3e61
JR
109622009-01-26 Jason Rumney <jasonr@gnu.org>
10963
10964 * w32font.c (w32font_list_internal): Return quickly if registry is
10965 unknown. Simplify final return.
10966 (add_font_entity_to_list): Break complex logic down into more
10967 manageable chunks. Move unknown registry check to
10968 w32font_list_internal.
10969
8612b71a
AR
109702009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10971
10972 Changes to remove Feval calls from GUI under NS.
10973
d8038940
JB
10974 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10975 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10976 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10977
10978 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10979 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10980 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10981 instead of NON_ASCII_KEYSTROKE_EVENT.
10982 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10983 (EmacsApp-applicationShouldTerminate:): Query user.
10984 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10985 instead of Feval.
10986
10987 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10988
10989 * keyboard.c (kbd_buffer_get_event): Check for it.
10990 (keys_of_keyboard): Define lispy keys for
10991 ns-put/unput-working-text.
10992
10993 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10994 versions.
10995 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10996
6288ae55
CY
109972009-01-25 Chong Yidong <cyd@stupidchicken.com>
10998
10999 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 11000 setting current_buffer directly. (Bug#2044)
6288ae55 11001
289e7f8f
CY
110022009-01-24 Chong Yidong <cyd@stupidchicken.com>
11003
5ce87308 11004 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 11005 any work. (Bug#1952, bug#1990).
5ce87308 11006
64cc3cf6 11007 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 11008
b3243e6f
AR
110092009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11010
11011 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
11012 (ns_no_defaults): New declaration.
11013 (main): Use it.
e0d2e69a 11014
d900b2af 11015 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 11016
d900b2af 11017 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 11018
d900b2af
AR
11019 * nsterm.m (ns_no_defaults): New variable.
11020 (ns_initialize): Don't read defaults when ns_no_defaults.
11021 (EmacsView-readSelectionFromPasteboard:)
11022 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 11023 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
11024 (ns_dumpglyphs_stretch): New function.
11025 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 11026 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 11027
e0d2e69a
AR
11028 * nsimage.m (setPixmapData:): Set to ignore image DPI.
11029
3ac71f5d
CY
110302009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
11031
11032 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
11033 call for Sparc64.
11034
3fe53a83
AR
110352009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11036
11037 * nsfns.m:
11038 * nsgui.h:
11039 * nsmenu.m:
11040 * nsselect.m:
11041 * nsterm.h:
11042 * nsterm.m: Remove '23' comments that indicated code added during
11043 update from emacs-20 -> emacs-23.
11044
10f87c6f 110452009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
11046
11047 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 11048 ns_alternate_modifier. (Bug#1217)
a3b53a85 11049
c7cef62d
AR
11050 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
11051 Display all shortcuts, including those w/o super modifier.
11052
575fb8bd
AR
11053 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
11054
918b848b
CY
110552009-01-22 Chong Yidong <cyd@stupidchicken.com>
11056
11057 * fileio.c (Vwrite_region_post_annotation_function)
11058 (Vwrite_region_annotation_buffers): New vars.
11059 (build_annotations_unwind): Just reset
11060 Vwrite_region_annotation_buffers.
11061 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
11062 Call write-region-post-annotation-function.
11063 (build_annotations): Add to Vwrite_region_annotation_buffers if
11064 buffer changes.
11065
a39e2539
AR
110662009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11067
11068 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
11069 Tiger.
51d861de
SM
11070 * nsfns.m (ns_do_applescript):
11071 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 11072
35ed44db
AR
110732009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11074
11075 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
11076
cbe0b5bf
AR
110772009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11078
11079 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 11080
6049d3a0
AR
11081 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
11082
11083 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
11084 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
11085 handle Ctrl-tab. (Bug#1841)
11086 (ns_get_color): Use unsigned long long for scanned hex string value.
11087 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 11088 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 11089 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 11090 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 11091 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 11092 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 11093 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 11094
d3810c21 11095 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 11096 DPI. (Bug#1316)
d3810c21
AR
11097 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
11098 values in onTiger section.
4c7077c3 11099
e301e634
CY
111002009-01-19 Chong Yidong <cyd@stupidchicken.com>
11101
7f82490b
CY
11102 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
11103 Check return value of font_spec_from_name.
64cc3cf6 11104 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
11105
11106 * font.c (font_spec_from_name): Return Qnil if font name could not
11107 be parsed.
11108 (font_parse_name): Treat a `?' character as part of an XLFD.
11109
e301e634
CY
11110 * fns.c (Fsubstring): Doc fix.
11111
1c0db158
KH
111122009-01-19 Kenichi Handa <handa@m17n.org>
11113
51d861de 11114 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
11115 (ftfont_list): Likewise.
11116
acf20901
JB
111172009-01-18 Juanma Barranquero <lekktu@gmail.com>
11118
fff4e459
JB
11119 * dbusbind.c (Fdbus_register_signal):
11120 * process.c (conv_sockaddr_to_lisp):
11121 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
11122
acf20901
JB
11123 * callproc.c (Fgetenv_internal): Doc fix.
11124
e7abcdfb
CY
111252009-01-16 Chong Yidong <cyd@stupidchicken.com>
11126
11127 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
11128 it is not even used.
11129
b60861e6
GM
111302009-01-16 Glenn Morris <rgm@gnu.org>
11131
11132 * font.c (Ffont_variation_glyphs): Silence compiler.
11133
8db52afe
JB
111342009-01-15 Juanma Barranquero <lekktu@gmail.com>
11135
11136 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
11137 Reported by David Robinow <drobinow@gmail.com>.
11138
4cddb209
KH
111392009-01-15 Kenichi Handa <handa@m17n.org>
11140
51d861de 11141 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 11142
f247f67b
JR
111432009-01-14 Jason Rumney <jasonr@gnu.org>
11144
11145 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 11146 never a fontset. (Bug#1562)
f247f67b 11147
f56a4450
KH
111482009-01-14 Kenichi Handa <handa@m17n.org>
11149
11150 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 11151 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 11152
4e99855e
CY
111532009-01-13 Chong Yidong <cyd@stupidchicken.com>
11154
11155 * font.c (font_clear_prop): If clearing the family, clear the font
11156 width index too.
11157
fff4e459 11158 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 11159
24f01470
JB
111602009-01-12 Juanma Barranquero <lekktu@gmail.com>
11161
11162 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
11163 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
11164 functions, use sizeof.
11165
a41240a3
MR
111662009-01-12 Martin Rudalics <rudalics@gmx.at>
11167
11168 * keyboard.c (read_char): Fix case where last_nonmenu_event
11169 returned a bad value with submenus. (Bug#447)
11170
944636b8
CY
111712009-01-12 Chong Yidong <cyd@stupidchicken.com>
11172
11173 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
11174 family, clear the font width index too.
11175
0dad7c6f
JR
111762009-01-11 Jason Rumney <jasonr@gnu.org>
11177
11178 * keyboard.c (cmd_error_internal): Exit when errors occur before
11179 frame creation and not in daemon mode. (Bug#1836)
11180
7c2363af
CY
111812009-01-10 Chong Yidong <cyd@stupidchicken.com>
11182
11183 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
11184 of a display vector, backtrack.
11185 (try_window_reusing_current_matrix): Check glyph type before
11186 referencing charpos member.
11187
97b1b294
EZ
111882009-01-10 Eli Zaretskii <eliz@gnu.org>
11189
11190 Fix Bug #876:
11191
11192 * coding.c (inhibit_null_byte_detection): New variable.
11193 (detect_coding, detect_coding_system): Don't pay attention to null
11194 bytes if inhibit_null_byte_detection is non-zero.
51d861de 11195 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
11196 <inhibit-iso-escape-detection>: Doc fix.
11197
4624b6e3
JR
111982009-01-09 Jason Rumney <jasonr@gnu.org>
11199
11200 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 11201 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
11202 Only report Unicode Plane 2 fonts as unicode-sip.
11203
323b840c
CY
112042009-01-09 Chong Yidong <cyd@stupidchicken.com>
11205
51d861de
SM
11206 * xfaces.c (Fx_font_family_list): Delete function.
11207 Move compatibility version to faces.el.
323b840c 11208
51d861de 11209 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 11210
eba7400d
MR
112112009-01-09 Martin Rudalics <rudalics@gmx.at>
11212
11213 * frame.c (x_set_frame_parameters): Remember requested value for
11214 fullscreen before it's reset by the parameter handler.
11215
4b09796d
GM
112162009-01-09 Glenn Morris <rgm@gnu.org>
11217
11218 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 11219 (last_command_event): ... and update all users.
4b09796d
GM
11220 (last_input_char): For clarity, rename to...
11221 (last_input_event): ... and update all users.
11222 (last-command-char, last-input-char): Move to subr.el as aliases.
11223 * cmds.c, commands.h: Update for last_command_char rename.
11224
14ccea62
CY
112252009-01-08 Chong Yidong <cyd@stupidchicken.com>
11226
51d861de 11227 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 11228
5f004711
JR
112292009-01-08 Jason Rumney <jasonr@gnu.org>
11230
11231 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
11232 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
11233 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
11234 Don't declare.
fff4e459 11235 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
11236 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
11237
b71f6f73
KH
112382009-01-07 Kenichi Handa <handa@m17n.org>
11239
50b06221 11240 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 11241 remember the coding system used for decoding in
50b06221
KH
11242 coding_system (Bug#1039).
11243
b71f6f73 11244 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 11245 breaking the loop. (Bug#870)
b71f6f73
KH
11246 (decode_coding_utf_16, decode_coding_emacs_mule)
11247 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11248 (decode_coding_charset): Likewise.
11249
56f668f7
MR
112502009-01-05 Martin Rudalics <rudalics@gmx.at>
11251
11252 * frame.c (x_set_frame_parameters): Make sure height (width) get
11253 applied when fullwidth (fullheight) is set. (Bug#1522)
11254
5da9424d
JB
112552009-01-04 Juanma Barranquero <lekktu@gmail.com>
11256
11257 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
11258 (utc_base): Declare as ULONGLONG, not long double.
11259 (convert_time_raw): Delete.
11260 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
11261 (initialize_utc_base): New function.
11262 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
11263 (convert_from_time_t): Use initialize_utc_base; compute result with
11264 64-bit arithmetic.
11265 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
11266
c4605e09
EZ
112672009-01-03 Eli Zaretskii <eliz@gnu.org>
11268
9acef61c 11269 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
11270 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
11271 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
11272 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
11273 [!subprocesses]: Define.
11274 (syms_of_process) [!subprocesses]: Intern and staticpro them.
11275 (Flist_system_processes, Fsystem_process_attributes)
11276 [!subprocesses]: Call list_system_processes and
11277 system_process_attributes instead of returning Qnil.
11278
9acef61c
JB
11279 * dosfns.c (system_process_attributes, list_system_processes):
11280 New functions.
c4605e09
EZ
11281
11282 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
11283
11284 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11285 Don't use the default (no-op) implementation.
11286
8b7d0a16
JR
112872009-01-03 Jason Rumney <jasonr@gnu.org>
11288
a6d46bc1
JR
11289 * keyboard.c (parse_modifiers_uncached): Wheel events are
11290 clicks (bug#687).
11291
8b7d0a16
JR
11292 * w32term.c (x_query_colors, x_query_color): New functions.
11293
11294 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11295 (svg_load_image): Cast returned pointers from dynamically loaded
11296 functions. Eliminate W32 specific code.
11297
bfe11752
DN
112982009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
11299
89e2438a
DN
11300 * nsfns.m (x_set_foreground_color, x_set_background_color)
11301 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11302 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11303 x_ prefix instead of ns_. Update references.
11304 (syms_of_nsfns): Add a FIXME comment.
11305
11306 * nsterm.m (x_set_cursor_type): New prototype.
11307 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11308
bfe11752
DN
11309 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11310 for Solaris instead of incorrectly providing Qutime and Qcutime.
11311
031da700
EZ
113122009-01-02 Eli Zaretskii <eliz@gnu.org>
11313
11314 * w32.c (process_times): Compute sum of utime and stime.
11315 (system_process_attributes): Add Qtime to the alist.
11316
11317 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11318 and add them to the alist.
11319
11320 * process.c (top level) <Qtime, Qctime>: New variables.
11321 (syms_of_process): staticpro them.
11322 (Fsystem_process_attributes): Add their documentation to the doc
11323 string.
11324
11325 * process.h: Declare Qtime and Qctime.
11326
df23bf08
JR
113272009-01-02 Jason Rumney <jasonr@gnu.org>
11328
9acef61c 11329 * image.c (Qgobject): New symbol.
df23bf08
JR
11330 (syms_of_image): Initialize it.
11331 (init_svg_functions): Load some functions from gobject library.
11332
5bbdf7aa
DN
113332009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11334
11335 * frame.c (make_terminal_frame): Remove redundant code and useless
11336 block.
11337
63136da6
AS
113382009-01-01 Andreas Schwab <schwab@suse.de>
11339
11340 * process.c (conv_sockaddr_to_lisp): Add workaround for
11341 getsockname bug on BSD.
11342
9ef69046
CY
113432009-01-01 Chong Yidong <cyd@stupidchicken.com>
11344
d6fafbe0
CY
11345 * xfns.c (x_create_tip_frame): Set border width of the X window.
11346
51d861de 11347 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 11348
f9c34147
JR
113492009-01-01 Jason Rumney <jasonr@gnu.org>
11350
9acef61c 11351 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
11352 Don't block input, as per earlier xterm.c changes.
11353
f5497e45
AR
113542008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11355
11356 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11357 (ns_appkit_version_int): New function.
11358 (x-server-version): Use ns_appkit_version_int and follow 21+
11359 convention of returning 3 integers.
11360
c19cab20
KH
113612008-12-30 Kenichi Handa <handa@m17n.org>
11362
11363 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11364 (CHAR_SURROGATE_PAIR_P): New macro.
11365
11366 * font.h (struct font_driver): New member get_variation_glyphs.
11367
9acef61c 11368 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
11369 (Ffont_variation_glyphs): New function.
11370 (syms_of_font): Defsubr it.
11371
11372 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11373 ftfont_variation_glyphs.
11374 (setup_otf_gstring): New function.
11375 (ftfont_drive_otf): Use it.
11376 (ftfont_shape_by_flt): Handle variation selector.
11377 (ftfont_variation_glyphs): New function.
11378
28cd591f
MR
113792008-12-30 Martin Rudalics <rudalics@gmx.at>
11380
11381 * frame.c (Vemacs_iconified): Remove.
11382
7f714baf
JR
113832008-12-30 Jason Rumney <jasonr@gnu.org>
11384
11385 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 11386 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 11387
9d2d22ab
CY
113882008-12-30 Chong Yidong <cyd@stupidchicken.com>
11389
11390 * indent.c (Fvertical_motion): Don't advance iterator if we have
11391 reseated to the desired position.
11392
11393 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11394 checking for pos match.
11395
545312c2
KH
113962008-12-30 Kenichi Handa <handa@m17n.org>
11397
1ede3eb6
KH
11398 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11399 just get the low 8-bit of the code.
11400
545312c2
KH
11401 * font.c (font_intern_prop): Validate str as multibyte.
11402
bd7bbf29
DN
114032008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11404
31e0750e
DN
11405 * dispextern.h (struct face): Move lface and hash from the middle
11406 of bitfields.
11407
bd7bbf29
DN
11408 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11409
b5672e7c
DN
114102008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11411
11412 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11413 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11414 instead of intervals.h.
11415
d704470f
AS
114162008-12-26 Andreas Schwab <schwab@suse.de>
11417
11418 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11419 cons.
11420
54b33868
MR
114212008-12-26 Martin Rudalics <rudalics@gmx.at>
11422
11423 * textprop.c (Qminibuffer_prompt): New variable.
11424 (syms_of_textprop): Initialize it.
11425 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11426 in minibuffer-prompt face. (Bug#1662)
11427
40b615d6
JR
114282008-12-25 Jason Rumney <jasonr@gnu.org>
11429
11430 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11431
baae5c2d
JR
114322008-12-24 Jason Rumney <jasonr@gnu.org>
11433
11434 * ralloc.c (r_alloc_reset_variable): New function.
11435
11436 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 11437 record of what points where. (Bug#716)
baae5c2d 11438
a9051c88
DN
114392008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11440
11441 * minibuf.c (read_minibuf): Follow the non-interactive case when
11442 running as a daemon, before detaching.
11443
8b146312
AS
114442008-12-22 Andreas Schwab <schwab@suse.de>
11445
11446 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11447 * gtkutil.c (free_widget_value): Use xfree instead of free.
11448
56f2de10
MR
114492008-12-22 Martin Rudalics <rudalics@gmx.at>
11450
11451 * frame.c (delete_frame): New function derived from
11452 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11453 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11454 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11455 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11456 * frame.h: Extern delete_frame.
11457 * window.c (window_loop):
11458 * terminal.c (delete_terminal):
11459 * xterm.c (x_connection_closed):
11460 * xfns.c (Fx_hide_tip):
9acef61c 11461 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 11462
1fc200d6
JR
114632008-12-21 Jason Rumney <jasonr@gnu.org>
11464
11465 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11466 when character maps to .notdef character.
11467
5e252df2
SM
114682008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11469
11470 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11471
99b72cc4
JR
114722008-12-20 Jason Rumney <jasonr@gnu.org>
11473
11474 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 11475 a graphical frame on Windows. (Bug#1325)
99b72cc4 11476
acc49a52
JD
114772008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11478
11479 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11480
6ea15123
CY
114812008-12-20 Chong Yidong <cyd@stupidchicken.com>
11482
11483 * minibuf.c (Fread_buffer): Doc fix.
11484
b2dab6c8
JR
114852008-12-20 Jason Rumney <jasonr@gnu.org>
11486
54ea0c87 11487 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 11488 server name in UNC paths. (Bug#719)
54ea0c87 11489
b2dab6c8 11490 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 11491 charbuf. (Bug#1035)
b2dab6c8 11492
6d1921be
DN
114932008-12-19 Daniel Engeler <engeler@gmail.com>
11494
11495 * sysdep.c (serial_configure): Fix typo.
11496
53934c98
DN
114972008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11498
11499 * sysdep.c: Include alloca.h.
f4f634e8
DN
11500 (system_process_attributes): Add implementation for Solaris.
11501
11502 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 11503
06e111a6
DN
115042008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11505
11506 Reorganize implementation of Flist_system_processes and
11507 Fsystem_process_attributes. No functional changes.
11508 * process.c: Don't #include pwd.h, grp.h and limits.h.
11509 (Flist_system_processes): Just call list_system_processes.
11510 (Fsystem_process_attributes): Just call system_process_attributes.
11511 (procfs_list_system_processes, time_from_jiffies)
11512 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11513 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11514
11515 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11516 (list_system_processes): Rename from
11517 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11518 Provide a do nothing implementation.
11519 (system_process_attributes): Rename from
11520 procfs_list_system_processes.
11521 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 11522 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
11523
11524 * w32.c (list_system_processes): Rename from
11525 w32_list_system_processes.
11526 (system_process_attributes): Rename from
11527 w32_system_process_attributes.
11528
11529 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11530
11531 * process.h (w32_list_system_processes)
11532 (w32_system_process_attributes): Remove.
362654a6
JB
11533 (list_system_processes, system_process_attributes):
11534 New prototypes.
06e111a6 11535
6a705b23
KH
115362008-12-19 Kenichi Handa <handa@m17n.org>
11537
11538 * xfont.c (xfont_decode_coding_xlfd): New function.
11539 (xfont_encode_coding_xlfd): New function.
11540 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11541 (xfont_list): Decode and encode XLFD by iso-8859-1.
11542 (xfont_match): Likewise.
11543 (xfont_list_family): Likewise.
11544 (xfont_open): Likewise.
11545
d66c0241 11546 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
11547 names are utf-8.
11548
d66c0241 11549 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
11550 names are utf-8.
11551
5a130941
JD
115522008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11553
11554 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11555 changed.
bfd20325
JD
11556 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11557 clicked on a detached tool bar button.
5a130941 11558
fd95644b
DN
115592008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11560
11561 * emacs.c (main): Print and error and exit when no data is read
11562 from the pipe.
11563
e6eee6ae
JR
115642008-12-17 Jason Rumney <jasonr@gnu.org>
11565
11566 * w32font.c (w32font_has_char): Always return -1.
11567
a35dd56b
KH
115682008-12-16 Kenichi Handa <handa@m17n.org>
11569
11570 * font.c (font_open_entity): Fix previous change.
11571
0e3635c2
DN
115722008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11573
11574 * process.c: Include <limits.h>.
11575
d4835507 115762008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
11577
11578 * font.c (font_update_drivers): Fix mistake in reconstructing the
11579 driver list.
11580
115812008-12-16 Chong Yidong <cyd@stupidchicken.com>
11582
11583 * font.c (font_clear_cache): Fix format of font cache data.
11584
e2cbc401
CY
115852008-12-15 Chong Yidong <cyd@stupidchicken.com>
11586
11587 * xftfont.c (xftfont_open): Free Xft font pattern if
11588 XftFontOpenPattern fails.
11589
11590 * xterm.c (x_free_frame_resources): Remove extraneous call to
11591 free_frame_faces.
11592
b131d535
CY
115932008-12-13 Chong Yidong <cyd@stupidchicken.com>
11594
11595 * xterm.c (x_delete_display): Move xim_close_dpy call to
11596 x_delete_terminal.
11597 (x_delete_terminal): Call xim_close_dpy.
11598
e6df5336
JR
115992008-12-13 Jason Rumney <jasonr@gnu.org>
11600
11601 * w32font.c (intern_font_name): New function.
11602 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11603 (w32font_open_internal, Fx_select_font): Decode font name.
11604 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11605
11606 * w32font.h (intern_font_name): Declare new function.
11607
11608 * w32uniscribe.c (add_opentype_font_name_to_list):
11609 Use intern_font_name.
11610
20d68145
CY
116112008-12-13 Chong Yidong <cyd@stupidchicken.com>
11612
9f2554de
CY
11613 * frame.c (Fdelete_frame): Call free_font_driver_list.
11614
3d9bec9a
CY
11615 * font.c (free_font_driver_list): Implement missing function.
11616
20d68145
CY
11617 * w32term.c (w32_term_init): Don't initialize the image cache
11618 here; it will be done in init_frame_faces.
11619
11620 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11621 (struct x_display_info): Remove unused member null_pixel. New
11622 member xim_callback_data.
11623
11624 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11625 (xim_initialize): Save pointer to callback function data.
11626 (xim_close_dpy): Free callback function data. Call XCloseIM,
11627 reverting 2008-11-04 change by David Smith.
11628 (x_term_init): Don't initialize the image cache here; it will be
11629 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11630 (x_delete_display): Free x_dnd_atoms member.
11631
96f9306b
KH
116322008-12-13 Kenichi Handa <handa@m17n.org>
11633
6dec9044
JB
11634 * font.c (font_rescale_ratio): Moved from xfaces.c.
11635 Argument type changed. Handle a font-spec too.
96f9306b 11636 (font_score): Check Vface_font_rescale_alist.
6dec9044 11637 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
11638
11639 * xfaces.c (font_rescale_ratio): Moved to font.c.
11640
8d5b4964
CY
116412008-12-13 Chong Yidong <cyd@stupidchicken.com>
11642
11643 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11644
e6df5336
JR
116452008-12-12 Jason Rumney <jasonr@gnu.org>
11646
11647 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11648 Vwindow_system_version to the real w32 major version.
11649
97c6058a
DN
116502008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11651
11652 * term.c (init_tty): Move setting the terminal name before the
11653 potential user: maybe_fatal.
11654
ec4e88d7
CY
116552008-12-11 Chong Yidong <cyd@stupidchicken.com>
11656
d4835507
JB
11657 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11658 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 11659
b4233ec9
JR
116602008-12-11 Jason Rumney <jasonr@gnu.org>
11661
8ec71e23 11662 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 11663 SYMBOL_CHARSET. (Bug#547)
8ec71e23 11664
b4233ec9 11665 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 11666 size for surrogates. (Bug#1096, bug#872)
b4233ec9 11667
011a0143
JB
116682008-12-11 Juanma Barranquero <lekktu@gmail.com>
11669
11670 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11671
3c309f34
JB
116722008-12-11 Juanma Barranquero <lekktu@gmail.com>
11673
11674 * process.c (Fsystem_process_attributes, syms_of_process):
11675 Fix typo in name of Ssystem_process_attributes.
11676 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11677
fedc6ab5
JB
116782008-12-11 Juanma Barranquero <lekktu@gmail.com>
11679
11680 * syntax.c (Fmodify_syntax_entry): Doc fix.
11681
ba3de0e8
JB
116822008-12-10 Juanma Barranquero <lekktu@gmail.com>
11683
11684 * font.c (Ffont_spec): Move usage to end of docstring.
11685
174f1c74
JR
116862008-12-10 Jason Rumney <jasonr@gnu.org>
11687
11688 * w32font.c (Qcham): New symbol.
11689 (font_supported_scripts): Add cham, and comments for other new
11690 scripts in bitfield from OpenType spec.
9d32f818
JR
11691 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11692 contain characters beyond the bmp.
174f1c74 11693
7b649478
KH
116942008-12-10 Kenichi Handa <handa@m17n.org>
11695
11696 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 11697 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
11698 Qunicode_sip.
11699
2133e2d1
JB
117002008-12-10 Juanma Barranquero <lekktu@gmail.com>
11701
11702 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11703 (Fcoding_system_put): Use QCdefault_char.
11704 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11705
9af886ee
CY
117062008-12-09 Chong Yidong <cyd@stupidchicken.com>
11707
74d819eb
CY
11708 * xftfont.c (syms_of_xftfont): Fix typo.
11709
4ccfa1c0 11710 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 11711
7c19d3ae
DN
117122008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11713
11714 * emacs.c (main): Close daemon_pipe on exec.
11715
567826bb
CY
117162008-12-08 Chong Yidong <cyd@stupidchicken.com>
11717
11718 * termchar.h (struct tty): New members termcap_term_buffer and
11719 termcap_strings_buffer.
11720
11721 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 11722 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
11723 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11724 All callers changed.
11725 (init_tty): Store termcap data and string buffers in new struct
11726 tty members termcap_term_buffer and termcap_strings_buffer.
11727 (delete_tty): Free them.
4ccfa1c0 11728 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 11729
aa96c42b
SZ
117302008-12-07 Seiji Zenitani <zenitani@mac.com>
11731
11732 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 11733 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 11734
b7e1d896
CY
117352008-12-06 Chong Yidong <cyd@stupidchicken.com>
11736
11737 * coding.c (make_conversion_work_buffer): Disable buffer
11738 modification hooks in the work buffer.
11739
b5ec91a5
EZ
117402008-12-05 Eli Zaretskii <eliz@gnu.org>
11741
11742 * process.c (procfs_system_process_attributes): If `nread' has a
11743 negative value, assign zero to it.
11744
a5d2a52b
CY
117452008-12-05 Chong Yidong <cyd@stupidchicken.com>
11746
68c5540b 11747 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 11748
7bf1bb21
KH
117492008-12-05 Kenichi Handa <handa@m17n.org>
11750
11751 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11752 second character is a combining character.
11753
2fdc7d00
EZ
117542008-12-05 Eli Zaretskii <eliz@gnu.org>
11755
11756 * process.c (procfs_system_process_attributes): Don't use cmd,
11757 cmdsize, and q without initializing them first.
11758
bf6bfba8
JR
117592008-12-04 Jason Rumney <jasonr@gnu.org>
11760
11761 * w32font.c (w32font_draw): Initialize orig_clip before getting
11762 it, and delete it when finished.
11763
a3b1a468
DN
117642008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11765
11766 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11767 case when running as a daemon before detaching.
11768
8b8be8eb
JB
117692008-12-03 Juanma Barranquero <lekktu@gmail.com>
11770
805f2638 11771 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 11772
b1bde622
KH
117732008-12-03 Kenichi Handa <handa@m17n.org>
11774
e500c47d
KH
11775 * font.c (font_at): Set `multibyte' at first.
11776
ca516334
KH
11777 * coding.c (decode_coding_charset): Check type of an element of
11778 vector VALIDS.
7bf1bb21 11779 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 11780
4ccfa1c0 11781 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
11782 (font_for_char): Likewise.
11783
1e5ecd37
CY
117842008-12-03 Chong Yidong <cyd@stupidchicken.com>
11785
d5b01609 11786 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11787 (font_update_lface): Handle fonts with corrupted size specs,
11788 i.e. non-int and non-float.
d5b01609 11789
11e3a6e4 11790 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11791 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11792 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11793
ab06788b
CY
11794 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11795
1e5ecd37 11796 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11797 underline_minimum_offset for underline position.
1e5ecd37 11798
63c125ab
DN
117992008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11800
11801 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11802
11803 * character.c (c_string_width): Specify the type for LEN.
11804
3a8406e1
KH
118052008-12-03 Kenichi Handa <handa@m17n.org>
11806
4ccfa1c0 11807 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11808 (decode_coding_utf_8): Likewise.
4ccfa1c0 11809 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11810 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11811
651df7d9
CY
118122008-12-02 Chong Yidong <cyd@stupidchicken.com>
11813
11814 * keyboard.c (make_lispy_position): Only use PT if the selected
11815 window is current.
11816
1f625c6c
AS
118172008-12-02 Andreas Schwab <schwab@suse.de>
11818
f7741ce9
AS
11819 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11820
1f625c6c
AS
11821 * doprnt.c (doprnt1): Fix size of charbuf.
11822
92bc2678
CY
118232008-12-02 Chong Yidong <cyd@stupidchicken.com>
11824
11825 * keyboard.c (timer_check): Revert last change.
11826
93b9e8cc
JB
118272008-12-02 Juanma Barranquero <lekktu@gmail.com>
11828
11829 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11830
fd7a37d5
JB
118312008-12-01 Juanma Barranquero <lekktu@gmail.com>
11832
11833 * makefile.w32-in: Update dependencies.
11834 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11835
c115043b
AS
118362008-12-01 Andreas Schwab <schwab@suse.de>
11837
11838 * font.c (register_font_driver): Use xmalloc.
11839 (font_put_frame_data): Likewise.
11840
f5668d2a
CY
118412008-12-01 Chong Yidong <cyd@stupidchicken.com>
11842
860d96be
CY
11843 * xfaces.c (realize_x_face): Make abort condition clearer.
11844
f5668d2a
CY
11845 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11846
379c17e7
CY
118472008-11-30 Chong Yidong <cyd@stupidchicken.com>
11848
11849 * keyboard.c (timer_check): After a timer runs, ensure that the
11850 selected window's buffer is current.
11851
35f36d65
JB
118522008-11-30 Juanma Barranquero <lekktu@gmail.com>
11853
f952c61c
JB
11854 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11855 It was accidentally restored by the Unicode merge.
11856
35f36d65
JB
11857 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11858
b23077df
JB
118592008-11-29 Juanma Barranquero <lekktu@gmail.com>
11860
11861 * w32proc.c: Include "coding.h".
11862 (Fw32_short_file_name): Encode filename passed to Windows API.
11863 (Fw32_long_file_name): Encode filename passed to Windows API and
11864 decode back the result. (Bug#1433)
11865
b8ebe9dd
KH
118662008-11-29 Kenichi Handa <handa@m17n.org>
11867
8cc53f96
KH
11868 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11869 not before accessing it.
11870
b8ebe9dd
KH
11871 * charset.c (Fdefine_charset_internal): After calculating
11872 min_char, max_char, and fastmap, copy the charset structure again.
11873 (encode_char): Fix the previous change.
11874
59bc82c0
SZ
118752008-11-28 Seiji Zenitani <zenitani@mac.com>
11876
11877 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11878
11879 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11880
11881 * nsterm.m (x_set_frame_alpha): New function.
11882
32247e3d
EZ
118832008-11-27 Eli Zaretskii <eliz@gnu.org>
11884
11885 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11886
b003e5ff
JB
118872008-11-27 Juanma Barranquero <lekktu@gmail.com>
11888
11889 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11890 pointer to check_face_name.
11891
708550f5
KH
118922008-11-27 Kenichi Handa <handa@m17n.org>
11893
11894 * category.h (SET_CATEGORY_SET): Call set_category_set.
11895 (set_category_set): Extern it.
11896
11897 * category.c (hash_get_category_set): New function.
11898 (Fmodify_category_entry): Adjusted for the change of
11899 char_table_ref_and_range. Call hash_get_category_set to get a
11900 category set to store in the table.
11901
11902 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11903 Funify_charset.
11904
2ae37cf0 11905 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11906 (DECODE_CHAR): Check if the decoder vector is ready.
11907 (ENCODE_CHAR): Check if the encoder char-table is ready.
11908 (maybe_unify_char): Extern it.
11909
11910 * charset.c (Vchar_unified_charset_table): Delete it.
11911 (inhibit_load_charset_map): New variable.
11912 (temp_charset_work): New variable.
11913 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11914 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11915 New macros.
11916 (load_charset_map): Meaning of control_flag changed. If
11917 inhibit_load_charset_map is nonzero, setup a table in
11918 temp_charset_work.
11919 (load_charset): New argument control_flag.
11920 (map_charset_for_dump): New function.
11921 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11922 map_charset_for_dump.
11923 (Fdefine_charset_internal): If the charset method is MAP, load
11924 mapping tables by calling load_charset.
11925 (Funify_charset): Don't load a mapping table but directly set
11926 Vchar_unify_table.
11927 (maybe_unify_char): New function.
11928 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11929 Handle the case of inhibit_load_charset_map being nonzero.
11930 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11931 Handle the case of inhibit_load_charset_map being nonzero.
11932 (Fclear_charset_maps): Just free temp_charset_work.
11933 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11934 variable.
11935
11936 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11937 change of char_table_ref_and_range.
11938 (char_table_ref_and_range): Change the meaning of argument FROM
11939 and TO. Now the caller must provide initial values for *FROM
11940 and *TO.
11941
11942 * fontset.c (fontset_add): Adjusted for the change of
11943 char_table_ref_and_range.
11944 (fontset_get_font_group): Likewise.
11945 (Ffontset_info): Likewise.
11946
11947 * keymap.c (describe_vector): Adjusted for the change of
11948 char_table_ref_and_range. For char-table, put boundary between
11949 non-ASCII and 8-bit characters.
11950
11951 * print.c (print_object): For bool-vector, delete unnecessary
11952 check of ASCII_BYTE_P.
11953
9196133b
JR
119542008-11-26 Jason Rumney <jasonr@gnu.org>
11955
11956 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11957 leading in font height. (Bug#879)
9196133b 11958
9f688acf
GM
119592008-11-26 Glenn Morris <rgm@gnu.org>
11960
11961 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11962 redefinition with ifdef. (Bug#1383)
11963
90d19aff
AR
119642008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11965
11966 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11967
4ccfa1c0 119682008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11969
11970 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11971 New EmacsView methods.
11972 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11973 Fixes bug #1048,1357,1414.
11974
119752008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11976
11977 Fix bug #1362.
11978 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11979 is not an indexed color.
11980 * nsterm.m (free_indexed_color): Add argument checking.
11981 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11982
e7d5ecb3
CY
119832008-11-24 Chong Yidong <cyd@stupidchicken.com>
11984
11985 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11986 Document confirm-after-completion value for
11987 minibuffer-completion-confirm.
11988
c285743c
JR
119892008-11-24 Jason Rumney <jasonr@gnu.org>
11990
11991 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11992 warning.
11993
b0857706
JR
119942008-11-23 Jason Rumney <jasonr@gnu.org>
11995
11996 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11997 restored before returning.
11998
11999 * w32font.c (check_face_name): New function.
12000 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 12001 fonts. (Bug#642)
b0857706 12002
ee50ff07
MR
120032008-11-22 Martin Rudalics <rudalics@gmx.at>
12004
12005 * buffer.c (Fswitch_to_buffer): Reword and mention new option
12006 confirm-nonexistent-file-or-buffer in doc-string.
12007
b8ff72fa
SM
120082008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12009
12010 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
12011 Fix copy/paste typo. Add checks.
12012
cee53ed4
KH
120132008-11-21 Kenichi Handa <handa@m17n.org>
12014
12015 * coding.c (detect_coding_iso_2022): Reject invalid composition
12016 sequence.
12017 (DECODE_COMPOSITION_START): If the current source is the last
12018 block, and the current composition doesn't end, regard this
12019 sequence as invalid.
12020 (decode_coding_iso_2022): Handle invalid composition sequence.
12021
f6ef1e65
MR
120222008-11-20 Martin Rudalics <rudalics@gmx.at>
12023
12024 * window.c (coordinates_in_window): Don't return
12025 ON_VERTICAL_BORDER for the rightmost position of a mode/header
12026 line when the window is not the rightmost one. (Bug#1372)
12027
e08b1705
MR
120282008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
12029
12030 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
12031
ad98e89f
EZ
120322008-11-15 Eli Zaretskii <eliz@gnu.org>
12033
12034 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
12035 and bright_bg if noninteractive is non-zero.
12036
fb098a4b
CY
120372008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12038
12039 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
12040 x_draw_glyph_string_background.
12041
12042 * w32term.c (x_draw_glyph_string): Likewise.
12043
ce952b6e
CY
120442008-11-15 Chong Yidong <cyd@stupidchicken.com>
12045
12046 * xterm.c (x_draw_glyph_string): Stop drawing the background of
12047 the next glyph string once past the overhang width.
12048
12049 * nsterm.m (ns_draw_glyph_string): Likewise.
12050
12051 * w32term.c (x_draw_glyph_string): Likewise.
12052
26ea7079
CY
120532008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
12054
12055 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
12056 double file close.
12057
1c33c906
MR
120582008-11-14 Martin Rudalics <rudalics@gmx.at>
12059
12060 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
12061 dedicated status of window before attempting to display another
12062 buffer in it.
12063
8fc29035
JB
120642008-11-14 Juanma Barranquero <lekktu@gmail.com>
12065
12066 * msdos.c (Fmsdos_long_file_names):
12067 (syms_of_msdos) <dos-unsupported-char-glyph>:
12068 * dosfns.c (Fint86): Fix typos in docstrings.
12069
55fb4286
EZ
120702008-11-14 Eli Zaretskii <eliz@gnu.org>
12071
12072 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
12073
3fda0315
KY
120742008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
12075
12076 * puresize.h (BASE_PURESIZE): Increase to 1260000.
12077
7e849c17
CY
120782008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
12079
12080 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
12081
12082 * frame.h: Negative alpha means "don't touch".
12083
12084 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
12085
12086 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
12087
b9fd67bd
DN
120882008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
12089
12090 * hftctl.c:
12091 * chpdef.h:
12092 * acldef.h: Remove files used only for systems no longer supported.
12093
12094 * Makefile.in: Fix .o alphabetical ordering.
12095 (hftctl.o): Remove dependency, file removed.
12096 (keymap.o, print.o): Depend on charset.h.
12097
d5998e03
KH
120982008-11-10 Kenichi Handa <handa@m17n.org>
12099
2ae37cf0 12100 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 12101
be70e183
CY
121022008-11-08 Chong Yidong <cyd@stupidchicken.com>
12103
12104 * dired.c (file_name_completion): If completion_ignore_case is
12105 enabled, ignore case when checking completion-regexp-list.
12106
7cf94eac
EZ
121072008-11-08 Eli Zaretskii <eliz@gnu.org>
12108
12109 * vm-limit.c (get_lim_data): Fix last change.
12110
ee107a89
KH
121112008-11-08 Kenichi Handa <handa@m17n.org>
12112
12113 * character.c (Fget_byte): New function.
12114 (syms_of_character): Defsubr Fget_byte.
12115
5fd15622
CY
121162008-11-07 Chong Yidong <cyd@stupidchicken.com>
12117
12118 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
12119 cursor position is valid after scrolling.
12120
13d62fad
JB
121212008-11-06 Juanma Barranquero <lekktu@gmail.com>
12122
12123 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
12124
a1dd2936
GM
121252008-11-06 Glenn Morris <rgm@gnu.org>
12126
12127 * xterm.c (handle_one_xevent): Don't let popup menus cause
12128 mouse-autoselect-window related window switching. (Bug#1261)
12129
860cd236
CY
121302008-11-04 David Smith <davidsmith@acm.org> (tiny change)
12131
12132 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
12133
653a3150
AS
121342008-11-04 Andreas Schwab <schwab@suse.de>
12135
12136 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
12137
870f5cac
CY
121382008-11-03 Chong Yidong <cyd@stupidchicken.com>
12139
12140 * xfns.c (Fx_wm_set_size_hint): New function.
12141
1e02f3cb
MR
121422008-11-03 Martin Rudalics <rudalics@gmx.at>
12143
12144 * textprop.c (Fprevious_single_char_property_change): Return 0
12145 when there's no change in a string. (Bug#1301)
12146
e630dfc6
MR
121472008-11-02 Martin Rudalics <rudalics@gmx.at>
12148
12149 * frame.c (do_switch_frame): New argument NORECORD passed to
12150 Fselect_window.
12151 (Fselect_frame): New argument NORECORD passed to
12152 do_switch_frame.
12153 (Fset_frame_selected_window): New argument NORECORD passed to
12154 Fselect_frame.
12155 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
12156 in call of do_switch_frame.
12157 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
12158 Handle NORECORD argument in call of Fselect_frame.
12159 * lisp.h (do_switch_frame, Fselect_frame)
12160 (Fset_frame_selected_window): Adjust declarations.
12161 * window.c (select_frame_norecord): New function.
12162 (run_window_configuration_change_hook): Use it and call
12163 Fselect_frame with NORECORD set.
12164 (Fselect_window): Pass NORECORD to Fselect_frame.
12165 (Fset_window_configuration): Handle NORECORD argument in call of
12166 do_switch_frame.
12167 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
12168 Fset_frame_selected_window.
12169 * keyboard.c (command_loop_1): Handle NORECORD in call of
12170 Fselect_frame (currently ifdefd).
12171
9020b223
GM
121722008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
12173
12174 * emacs.c (USAGE2): Untabify.
12175
793ffee8
SM
121762008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
12177
12178 * composite.c (fill_gstring_header): Fix copy/paste typo.
12179
ab6d1131
MR
121802008-10-31 Martin Rudalics <rudalics@gmx.at>
12181
12182 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
12183 (Fother_window): Rename argument and rewrite doc-string.
12184 (select_window_norecord): Fix return value. (Bug#1276)
12185
601a9cf1
JB
121862008-10-30 Juanma Barranquero <lekktu@gmail.com>
12187
12188 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
12189 new frames overriding foreground for tooltips. Based on similar patch
12190 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
12191
813b0652
CY
121922008-10-29 Chong Yidong <cyd@stupidchicken.com>
12193
12194 * emacs.c (Fdaemon_initialized): Initialize nfd.
12195
4414f58f
MR
121962008-10-29 Martin Rudalics <rudalics@gmx.at>
12197
12198 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
12199 (Fwindow_text_height): Clarify doc-strings.
12200 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
12201 doc-string of window-scroll-functions.
12202
ecdcaa09
RS
122032008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
12204
12205 * category.c (syms_of_category): Fix typo in docstring.
12206
23fe745a
JB
122072008-10-28 Juanma Barranquero <lekktu@gmail.com>
12208
12209 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
12210 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
12211 Fix typos in docstrings.
12212
ff808935
DN
122132008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
12214
12215 * emacs.c (daemon_pipe): Make non-static.
12216 (IS_DAEMON): Move definition ...
12217 * lisp.h (IS_DAEMON): ... here.
12218 (daemon_pipe): Declare.
12219 (is_daemon): Remove.
12220 * dispnew.c (init_display): Use IS_DAEMON.
12221
fc012771
SM
122222008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12223
12224 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
12225 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
12226
12227 * emacs.c (is_daemon): Remove.
12228 (main): Don't set is_daemon.
12229 (IS_DAEMON): New macro.
12230 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 12231 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
12232 parent exits.
12233 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
12234
d8bdbe6f
CY
122352008-10-27 Chong Yidong <cyd@stupidchicken.com>
12236
d1a072bf
CY
12237 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
12238 over-sized glyph, draw it with the default glyph width.
12239
e2e325aa
CY
12240 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12241 glyph, draw it with the default glyph width.
12242
12243 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12244 glyph, draw it with the default glyph width.
12245
d8bdbe6f
CY
12246 * xdisp.c (try_scrolling): When computing the distance from the
12247 scroll margin to PT, try moving some distance past the window
12248 bottom before giving up.
12249
7bfac547
MR
122502008-10-27 Martin Rudalics <rudalics@gmx.at>
12251
12252 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
12253 (Fset_window_buffer): Explain in doc-string that a window can be
12254 "strongly" dedicated to its buffer.
12255
4ff029f6
DN
122562008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
12257
12258 * emacs.c (daemon_name): New variable.
12259 (main): Deal with --daemon=SERVER_NAME.
12260 (Fdaemonp): Return a name if one was passed to --daemon.
12261
5790ef40
DN
122622008-10-26 Romain Francoise <romain@orebokech.com>
12263
f9bd0df9 12264 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
12265 (main): Create a pipe before forking, make the parent exit only after
12266 the child has closed its end of the pipe. Move closing the
12267 descriptors ...
12268 (Fdaemon_initialized): ... here. New function.
12269
f5385255
SM
122702008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
12271
4d632321
SM
12272 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
12273 the previous unoptimized table.
12274
f5385255
SM
12275 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
12276 the distinction between non-nil and non-t value of `dedicated'.
12277
6c56a0f3
CY
122782008-10-25 Chong Yidong <cyd@stupidchicken.com>
12279
12280 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 12281 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 12282
fec89261
MR
122832008-10-25 Martin Rudalics <rudalics@gmx.at>
12284
12285 * window.c (Fget_buffer_window, Fdelete_windows_on)
12286 (Freplace_buffer_in_windows): Make buffer argument optional and
12287 rename to buffer_or_name.
12288
34fcddd0
CY
122892008-10-24 Chong Yidong <cyd@stupidchicken.com>
12290
f5385255
SM
12291 * xdisp.c (handle_single_display_spec, handle_display_prop):
12292 Undo 2005-05-16 change.
34fcddd0
CY
12293 (handle_stop): Pop iterator if it's loaded with an empty string.
12294 (get_overlay_strings_1): Don't save iterator if it's loaded with
12295 an empty string (bug#1201).
12296
064766f2
KH
122972008-10-24 Kenichi Handa <handa@m17n.org>
12298
12299 * ftfont.c (ftfont_otf_features): Fix previous change.
12300 (ftfont_otf_capability): Check FeatureList.FeatureCount before
12301 calling ftfont_otf_features.
12302
f9bd0df9 123032008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
12304
12305 * font.c (font_match_p): Fix for the case that a vector of
12306 characters is in script-representative-chars.
12307
1dae9197
MA
123082008-10-24 Michael Albinus <michael.albinus@gmx.de>
12309
12310 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 12311 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
12312 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12313 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 12314 macro. (Bug#1186)
1dae9197 12315
f9bd0df9 123162008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
12317
12318 * s/sol2-10.h: New file.
12319
878a4584
JB
123202008-10-23 Juanma Barranquero <lekktu@gmail.com>
12321
12322 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12323 poor beast has survived 9+ years and the jump from xterm.c!).
12324
cd265ca6
MR
123252008-10-23 Martin Rudalics <rudalics@gmx.at>
12326
12327 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12328 Reword doc-string.
f5385255 12329 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 12330
472a4dc9
JB
123312008-10-23 Juanma Barranquero <lekktu@gmail.com>
12332
12333 * character.c (syms_of_character) <script-representative-chars>:
12334 <unicode-category-table>: Doc fixes.
12335
159bd5a2
NF
123362008-10-23 Noah Friedman <friedman@splode.com>
12337
12338 * coding.c (make_conversion_work_buffer): Check that
12339 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12340 Fget_buffer_create.
12341
49f9c344
KH
123422008-10-23 Kenichi Handa <handa@m17n.org>
12343
12344 * font.c (font_add_log): Check the values of extra properties.
12345
12bb3111
MR
123462008-10-22 Martin Rudalics <rudalics@gmx.at>
12347
12348 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12349 Reword doc-string.
12350 (Fset_window_parameter): Use NILP.
12351 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 12352 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 12353
bbeb4e99
JB
123542008-10-22 Juanma Barranquero <lekktu@gmail.com>
12355
12356 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12357
123582008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
12359
12360 * nsfns.m (ns_appkit_version): New function.
12361 (x-server-version): Use it.
12362 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12363 (x-server-vendor): Don't check_ns().
12364
12365 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12366
a9b555d3
JB
123672008-10-22 Juanma Barranquero <lekktu@gmail.com>
12368
12369 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12370 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12371
4626499f
KH
123722008-10-22 Kenichi Handa <handa@m17n.org>
12373
e3681952
KH
12374 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12375 scripts.
12376
4626499f
KH
12377 * category.c (word_boundary_p): Check scripts instead of charset.
12378 Handle nil value in word-separating-categories and
12379 word-combining-categories.
12380 (syms_of_category): Fix docstrings of word-separating-categories
12381 and word-combining-categories.
12382
1560f91a
EZ
123832008-10-21 Eli Zaretskii <eliz@gnu.org>
12384
12385 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12386 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12387
f4668441
MR
123882008-10-21 Martin Rudalics <rudalics@gmx.at>
12389
12390 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12391 Rename arg "buffer" to "buffer_or_name".
12392 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12393 it optional.
12394 (no_switch_window): Remove since the return value is not used.
a9b555d3 12395 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
12396 Consider window as dedicated when Fwindow_dedicated_p returns a
12397 non-nil value.
12398 * lisp.h: Remove prototype for no_switch_window.
12399
fd75ddb2
JD
124002008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12401
12402 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 12403 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 12404
07295713
KH
124052008-10-21 Kenichi Handa <handa@m17n.org>
12406
12407 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12408 check Vlatin_extra_code_table.
12409
712adc82
EZ
124102008-10-20 Eli Zaretskii <eliz@gnu.org>
12411
12412 * fileio.c (Fset_file_modes): Doc fix.
12413
f549eb0b
MA
124142008-10-19 Michael Albinus <michael.albinus@gmx.de>
12415
12416 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12417 in arrays.
12418
aac0c6e3
MR
124192008-10-19 Martin Rudalics <rudalics@gmx.at>
12420
12421 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12422 Mention kill-buffer in doc-string.
12423 (Fset_window_buffer): Reinsert tem check removed in last commit.
12424 (Fenlarge_window, Fshrink_window): Have argument names and
12425 doc-string follow Elisp manual more closely.
12426
124272008-10-18 Eli Zaretskii <eliz@gnu.org>
12428
12429 * fileio.c (Fset_file_modes): Doc fix.
12430
124312008-10-18 Martin Rudalics <rudalics@gmx.at>
12432
12433 * window.c (Fwindow_width, Fset_window_start)
12434 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
12435 (Fdelete_windows_on, Freplace_buffer_in_windows):
12436 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
12437 (Fwindow_dedicated_p): Make window argument optional.
12438 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12439 (Fset_window_buffer): Respect any non-nil dedicated value for
12440 window. Rename "buffer" argument to "buffer_or_name".
12441
124422008-10-18 Ulrich Mueller <ulm@gentoo.org>
12443
12444 * m/sh3.h: New file, machine description for SuperH.
12445
124462008-10-17 Martin Rudalics <rudalics@gmx.at>
12447
12448 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12449
124502008-10-17 Kenichi Handa <handa@m17n.org>
12451
12452 * ftfont.c (ftfont_otf_features): Fix indexing
12453 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12454
124552008-10-16 Magnus Henoch <mange@freemail.hu>
12456
12457 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12458 (Fdbus_call_method_asynchronously): Ditto.
12459 This change makes C-h f display the argument list.
12460
124612008-10-16 Chong Yidong <cyd@stupidchicken.com>
12462
12463 * fileio.c (Fexpand_file_name): Doc fix.
12464
12465 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12466 of :foreground and :background equivalent to unspecified (20.x
12467 compatibility).
12468
124692008-10-15 Eli Zaretskii <eliz@gnu.org>
12470
12471 * buffer.c (syms_of_buffer): Doc fix.
12472
124732008-10-14 Kenichi Handa <handa@m17n.org>
12474
12475 * font.c (font_clear_prop): When clearing font width, clear the
12476 average width field too.
12477
124782008-10-12 Andreas Schwab <schwab@suse.de>
12479
12480 * ftfont.c (ftfont_shape_by_flt): Make static.
12481 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12482
12483 * font.c: Don't include <m17n-flt.h>.
12484
124852008-10-10 Eli Zaretskii <eliz@gnu.org>
12486
12487 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12488
124892008-10-09 Eli Zaretskii <eliz@gnu.org>
12490
12491 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12492 away code.
12493
124942008-10-09 Chong Yidong <cyd@stupidchicken.com>
12495
12496 * dispnew.c (update_text_area): Avoid looping due to large glyph
12497 overhangs (bug#1070).
12498
124992008-10-09 Kenichi Handa <handa@m17n.org>
12500
12501 * fontset.c (face_for_char): If face->fontset is negative, just
12502 return ascii_face.
12503
f5385255
SM
12504 * font.c (font_delete_unmatched): Fix previous change.
12505 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
12506
125072008-10-09 Martin Rudalics <rudalics@gmx.at>
12508
12509 * frame.c (Fraise_frame): On text-only terminals select frame in
12510 order to make it visible. (Bug#1061)
12511
125122008-10-08 Chong Yidong <cyd@stupidchicken.com>
12513
12514 * fontset.c (fontset_find_font): Check frame validity.
12515
125162008-10-07 Chong Yidong <cyd@stupidchicken.com>
12517
a9b555d3 12518 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
12519 (xg_display_close): Allow Emacs to close all displays (bug#985).
12520
125212008-10-06 Andreas Schwab <schwab@suse.de>
12522
f5385255 12523 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
12524
125252008-10-06 Chong Yidong <cyd@stupidchicken.com>
12526
f5385255 12527 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 12528
a9b555d3 12529 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
12530
12531 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12532 during initialization.
12533
125342008-10-04 Eli Zaretskii <eliz@gnu.org>
12535
12536 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12537 whole thing on MSDOS frames as well as on a TTY.
12538
12539 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12540 well as for TTY.
12541 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12542 well as on a TTY.
12543
12544 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12545 as well as for TTY.
12546
12547 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12548
12549 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12550 MSDOS frames as well.
12551
125522008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12553
12554 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12555 correct arguments.
b71ac3dd 12556 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
12557
125582008-10-03 Glenn Morris <rgm@gnu.org>
12559
12560 * emacs.c (USAGE1): Add --daemon.
12561
125622008-10-02 Eli Zaretskii <eliz@gnu.org>
12563
12564 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12565 100, so it's in percents as advertised.
12566
125672008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12568
12569 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12570 (ns_output.current_cursor, ns_output.desired_cursor)
12571 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12572 (FRAME_NEW_CURSOR_COLOR): Remove.
12573
12574 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 12575 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
12576 enumeration (HOLLOW_BOX_CURSOR, etc.).
12577
12578 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12579 (draw_window_cursor): Simplify code.
f5385255
SM
12580 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12581 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 12582 updates manually.
a9b555d3
JB
12583 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12584 Use core Emacs cursor types.
aac0c6e3 12585
b8ff72fa 12586 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
12587
125882008-10-02 Martin Rudalics <rudalics@gmx.at>
12589
12590 * process.c (Faccept_process_output): Fix doc-string.
12591
125922008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12593
12594 * gmalloc.c (__sbrk): Also define for uClibc.
12595
12596 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12597 for uClibc.
12598
125992008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12600
12601 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12602 styles.
12603 (nsfont_open): Reenable the cache.
12604
126052008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12606
12607 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12608 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12609
126102008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12611
12612 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12613 a suspended terminal.
12614
126152008-09-30 Michael Albinus <michael.albinus@gmx.de>
12616
12617 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12618
126192008-09-30 Eli Zaretskii <eliz@gnu.org>
12620
12621 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12622
126232008-09-30 Chong Yidong <cyd@stupidchicken.com>
12624
12625 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12626 in a continued line coincides with a line beginning.
12627
126282008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12629
12630 * nsfont.m (nsfont_trait_distance): Fix bug.
12631 (nsfont_list): Return a list rather than a vector (syncs with Handa
12632 changes of 2008-05-14).
12633 (nsfont_open): Improve logging.
12634
126352008-09-29 Andreas Schwab <schwab@suse.de>
12636
12637 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12638
126392008-09-28 Martin Rudalics <rudalics@gmx.at>
12640
12641 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12642 name as char-resolve-modifiers.
12643 Reported by: Markus Triska <markus.triska@gmx.at>
12644
126452008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12646
12647 * dispnew.c (init_display): Return earlier when running as a daemon.
12648
126492008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12650
12651 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12652
126532008-09-27 Eli Zaretskii <eliz@gnu.org>
12654
12655 * composite.c (Fcomposition_get_gstring)
12656 (Fcompose_region_internal, Fcompose_string_internal)
12657 (Ffind_composition_internal): Doc fix.
12658 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12659 (syms_of_composite) <auto-composition-function>: Doc fix.
12660 (syms_of_composite) <composition-function-table>: Doc fix.
12661
126622008-09-25 Chong Yidong <cyd@stupidchicken.com>
12663
12664 * search.c (wordify): New argument for lax word-ends.
12665 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12666
126672008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12668
12669 * lisp.h (is_daemon): Declare.
12670 * dispnew.c (init_display): Do not try to initialize the terminal
12671 when running as a daemon.
12672
126732008-09-22 Chong Yidong <cyd@stupidchicken.com>
12674
12675 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12676 x_display_pixel_height.
12677
126782008-09-22 Martin Rudalics <rudalics@gmx.at>
12679
12680 * undo.c (record_point): Don't call Fundo_boundary for first
12681 change. (Bug#731)
12682
126832008-09-22 Juanma Barranquero <lekktu@gmail.com>
12684
12685 * emacs.c (Fdaemonp): Doc fix.
12686
126872008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12688
12689 * emacs.c (main): Place #ifdef in the proper place.
12690
126912008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12692
12693 * emacs.c (standard_args): Add --daemon.
12694 (main): Disconnect from the terminal when --daemon is passed.
12695 (is_daemon): New variable.
12696 (Fdaemonp): New function.
12697 (syms_of_emacs): Defsubr it.
12698
126992008-09-20 Chong Yidong <cyd@stupidchicken.com>
12700
12701 * xdisp.c (get_next_display_element): Handle string display
12702 correctly when checking for the end of a box run.
12703
127042008-09-20 Glenn Morris <rgm@gnu.org>
12705
12706 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12707 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12708 (Frename_file): Avoid copying to trash if a rename involves
12709 a delete. (Bug#964).
12710
127112008-09-20 Eli Zaretskii <eliz@gnu.org>
12712
12713 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12714 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12715 frames as well as termcap frames.
12716 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12717 get_named_tty.
12718
127192008-09-19 Eli Zaretskii <eliz@gnu.org>
12720
12721 * process.c (procfs_system_process_attributes): Fix cmdline in
12722 case /proc/PID/cmdline is empty.
12723
12724 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12725 x_display_pixel_height.
12726
127272008-09-19 Juanma Barranquero <lekktu@gmail.com>
12728
12729 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12730
12731 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12732 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12733
127342008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12735
12736 * dispextern.h (struct it): Move line_wrap away from the middle of
12737 bitfields. Move voffset in struct iterator_stack_entry after the
12738 bitfields. Move tab_width near after another short.
12739
127402008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12741
12742 * frame.h (struct frame): Move alpha from the middle of bitfields.
12743
12744 * window.h (struct window): Move frozen_window_start_p after the
12745 rest of the bitfields to reduce padding.
12746
127472008-09-18 Chong Yidong <cyd@stupidchicken.com>
12748
12749 * xterm.h (x_display_info): Remove `height' and `width' members.
12750
12751 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12752
12753 * w32term.h (w32_display_info): Remove `height', `width',
12754 `height_in', and `width_in' members.
12755
b8ff72fa
SM
12756 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12757 New functions.
aac0c6e3
MR
12758 (x_calc_absolute_position): Use them.
12759 (x_term_init): Omit removed `height' and `width' members.
12760
b8ff72fa
SM
12761 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12762 New functions.
aac0c6e3
MR
12763 (w32_read_socket, x_calc_absolute_position): Use them.
12764 (w32_initialize_display_info, w32_term_init): Omit removed members
12765 of w32_display_info.
12766
b8ff72fa
SM
12767 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12768 New functions.
12769 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 12770
b8ff72fa
SM
12771 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12772 New functions.
aac0c6e3
MR
12773 (x_calc_absolute_position): Use them.
12774 (x_term_init): Omit removed `height' and `width' members.
12775
12776 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
12777 (compute_tip_xy):
12778 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
12779 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12780 x_display_pixel_width.
12781
127822008-09-18 Kenichi Handa <handa@m17n.org>
12783
12784 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12785 (composition_compute_stop_pos): Fix handling of static composition.
12786 (Fcomposition_get_gstring): Check FROM and TO at first.
12787
127882008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12789
46e722a9 12790 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12791 mixup (YAILOM).
12792
127932008-09-17 Chong Yidong <cyd@stupidchicken.com>
12794
12795 * indent.c (Fvertical_motion): Use position reported by iterator
12796 instead of PT for determining screen motion (bug#943).
12797
127982008-09-17 Romain Francoise <romain@orebokech.com>
12799
12800 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12801
128022008-09-17 Kenichi Handa <handa@m17n.org>
12803
12804 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12805
12806 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12807 if necessary.
12808
128092008-09-16 Kenichi Handa <handa@m17n.org>
12810
12811 * coding.c (make_conversion_work_buffer): Avoid calling
12812 Fget_buffer_create if it is not necessary.
12813
128142008-09-15 Martin Rudalics <rudalics@gmx.at>
12815
12816 * window.c (Fselect_window): Don't update window_select_count and
12817 use_time when norecord is not nil.
12818
128192008-09-14 Kenichi Handa <handa@m17n.org>
12820
12821 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12822 specpdl_ptr.
12823
128242008-09-12 Kenichi Handa <handa@m17n.org>
12825
12826 * indent.c (scan_for_column): Don't handle automatic composition
12827 if the current buffer is not associated with a window.
12828
12829 * composite.c (composition_reseat_it): If the current buffer is
12830 not associated with a window, ignore the automatic composition.
12831 (find_automatic_composition): Likewise.
12832
128332008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12834
12835 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12836 (Fgpm_mouse_stop): Use it.
12837 * termhooks.h (close_gpm): Declare.
12838 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12839 connection if Gpm_GetEvent fails.
12840
12841 * window.c (set_window_buffer): Always preserve current-buffer.
12842
128432008-09-12 Glenn Morris <rgm@gnu.org>
12844
12845 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12846
128472008-09-11 Glenn Morris <rgm@gnu.org>
12848
12849 * charset.c (charset-map-path): Doc fix.
12850
128512008-09-10 Kenichi Handa <handa@m17n.org>
12852
12853 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12854
12855 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12856 compose a grapheme cluster with the preceding base glyph.
12857
12858 * composite.c (composition_compute_stop_pos): Fix previous change.
12859 Reset cmp_it->id to -1 at first.
12860
128612008-09-10 Glenn Morris <rgm@gnu.org>
12862
12863 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12864
128652008-09-09 Chong Yidong <cyd@stupidchicken.com>
12866
12867 * keyboard.c (read_key_sequence): Reapply translation maps when
12868 switching keyboards.
12869
128702008-09-09 Kenichi Handa <handa@m17n.org>
12871
12872 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12873 characters.
12874
12875 * composite.c (FORWARD_CHAR): Fix calculation
12876 of (POSITION).pos_byte.
12877 (composition_compute_stop_pos): Limit the search of composition to
12878 at most 500 characters ahead. If we reach the limit or find a
12879 newline, set cmp_it->ch to -2 and return 0.
12880 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12881
128822008-09-08 Kenichi Handa <handa@m17n.org>
12883
12884 * indent.c (Fvertical_motion): Be sure to set
12885 it_overshoot_expected if it.cmp_it.id is non-negative.
12886
128872008-09-07 Andreas Schwab <schwab@suse.de>
12888
12889 * callproc.c (Fcall_process): Don't hold references to string data
12890 across garbage collection. Move initialisation of new_argv down
12891 to avoid compiler bug.
12892
128932008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12894
12895 * process.c (Fsystem_process_attributes): Doc fix.
12896
128972008-09-07 Chong Yidong <cyd@stupidchicken.com>
12898
12899 * callproc.c (Fcall_process): Canonicalize current directory name.
12900
12901 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12902 iterator advances to the next line if the current line ends in a
12903 continued tab.
12904
129052008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12906
12907 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12908 member to point to cmp_from.
12909
12910 * xdisp.c: Doc fix for references to gidx data member.
12911
129122008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12913
12914 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12915
129162008-09-07 Kenichi Handa <handa@m17n.org>
12917
12918 * composite.c (FORWARD_CHAR): Check STOP after
12919 incrementing (POSITION).pos.
12920
129212008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12922
12923 * process.c (Fsystem_process_attributes): Doc fix.
12924
129252008-09-06 Chong Yidong <cyd@stupidchicken.com>
12926
12927 * keyboard.c (Ftop_level): Doc fix.
12928
129292008-09-06 Eli Zaretskii <eliz@gnu.org>
12930
12931 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12932 minibuffer, don't let lower part of menu invade the echo area.
12933
12934 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12935 "char *q" to access menu text and advance through it. Revert the
12936 change that displayed ">" instead of ASCII character 0x10.
12937
129382008-09-05 Eli Zaretskii <eliz@gnu.org>
12939
12940 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12941 toggle boxes and radio buttons on MS-DOS as well.
12942
129432008-09-05 Kenichi Handa <handa@m17n.org>
12944
12945 * composite.c (autocmp_chars): Check lookback count.
12946 (composition_compute_stop_pos): Set cmp_it->lookback.
12947 (composition_reseat_it): Check lookback count.
12948 (struct position_record): New struct.
12949 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12950 (find_automatic_composition): New function.
12951 (composition_adjust_point): Use find_automatic_composition.
12952
12953 * dispextern.h (struct composition_it): New member lookback.
12954
129552008-09-02 Chong Yidong <cyd@stupidchicken.com>
12956
12957 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12958 if moving by a single line.
12959
129602008-09-02 Andreas Schwab <schwab@suse.de>
12961
12962 * xterm.c (x_delete_display): Fix merge error.
12963
12964 * fileio.c (Fexpand_file_name): Remove unused variables.
12965
129662008-09-02 Eli Zaretskii <eliz@gnu.org>
12967
12968 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12969 storage on all platforms, not just on DOS_NT.
12970
129712008-09-02 Jason Rumney <jasonr@gnu.org>
12972
b8ff72fa
SM
12973 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12974 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12975
129762008-09-01 Chong Yidong <cyd@stupidchicken.com>
12977
12978 * xfaces.c (Finternal_set_alternative_font_family_alist)
12979 (Finternal_set_alternative_font_registry_alist): Properly copy
12980 entire alist structure.
12981
129822008-09-01 Kenichi Handa <handa@m17n.org>
12983
d66c0241 12984 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12985 representative chars of the script is a vector.
d66c0241
JB
12986 (ftfont_list): Handle the case where the representative chars of
12987 the script is a vector.
aac0c6e3
MR
12988
12989 * character.c (syms_of_character): Docstring of
12990 script-representative-chars fixed.
12991
129922008-08-31 Eli Zaretskii <eliz@gnu.org>
12993
12994 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12995 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12996 the menu. Allocate larger buffer for `text', to account for
12997 possible ^C characters.
12998
129992008-08-31 Martin Rudalics <rudalics@gmx.at>
13000
13001 * xdisp.c (prepare_menu_bars): Don't call
13002 Vwindow_size_change_functions with arg Qt.
13003
130042008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
13005
13006 * font.h (font_range):
13007 * fileio.c (report_file_error):
46e722a9
SM
13008 * composite.c (composition_update_it): Yet another int/Lisp_Object
13009 mixup (YAILOM).
aac0c6e3
MR
13010
130112008-08-30 Glenn Morris <rgm@gnu.org>
13012
13013 * data.c (Fmake_variable_frame_local): Doc fix.
13014
13015 * frame.c (Fmodify_frame_parameters): Doc fix.
13016
130172008-08-30 Eli Zaretskii <eliz@gnu.org>
13018
13019 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
13020 needed by GetTokenInformation.
13021 (w32_system_process_attributes): Check return values of all system
13022 APIs.
13023
13024 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
13025 only when the state changes.
13026 (IT_update_begin, IT_update_end): Add termscript trace.
13027
13028 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
13029 clipboard is unavailable. Set dst to NULL if it doesn't point to
13030 malloc'ed data.
13031 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
13032 passing random values to xfree.
13033
13034 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 13035 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
13036
130372008-08-29 Jason Rumney <jasonr@gnu.org>
13038
13039 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
13040
130412008-08-29 Eli Zaretskii <eliz@gnu.org>
13042
13043 * composite.c (fill_gstring_body): Avoid compiler warnings.
13044
13045 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
13046 LGLYPH_SET_CODE to avoid compiler warnings.
13047
2ae37cf0 13048 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
13049
13050 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
13051
13052 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
13053 LGLYPH_SET_CODE.
13054
130552008-08-29 Kenichi Handa <handa@m17n.org>
13056
13057 * fileio.c (report_file_error): Don't downcase the first character
13058 of errstring if it is still unibyte.
13059
130602008-08-29 Kenichi Handa <handa@m17n.org>
13061
13062 These changes are to re-implement the automatic composition so
13063 that it doesn't use text properties.
13064
13065 * Makefile.in (ftfont.o): Depend on composite.h.
13066 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
13067
13068 * character.h (Vunicode_category_table): Extern it.
13069
13070 * character.c (Vunicode_category_table): New variable.
13071 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
13072
13073 * chartab.c (optimize_sub_char_table): Perform more greedy
13074 optimization.
13075
b8ff72fa
SM
13076 * composite.h (enum composition_method):
13077 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
13078 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
13079 (Vcomposition_function_table): Extern it.
13080 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
13081 (composition_gstring_put_cache, composition_gstring_from_id)
13082 (composition_gstring_p, composition_gstring_width)
13083 (composition_compute_stop_pos, composition_reseat_it)
13084 (composition_update_it, composition_adjust_point): Extern them.
13085 (Fcomposition_get_gstring): EXFUN it.
13086
d66c0241 13087 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
13088 (Vcomposition_function_table)
13089 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
13090 (gstring_hash_table, gstring_work, gstring_work_headers):
13091 New variables.
aac0c6e3
MR
13092 (gstring_lookup_cache, composition_gstring_put_cache)
13093 (composition_gstring_from_id, composition_gstring_p)
13094 (composition_gstring_width, fill_gstring_header)
13095 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
13096 (composition_reseat_it, composition_update_it)
b8ff72fa 13097 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
13098 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
13099 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 13100 Defsubr composition_get_gstring.
aac0c6e3
MR
13101
13102 * dispextern.h (struct glyph): New union u.cmp. Delete the member
13103 cmp_id.
13104 (struct glyph_string): Delete the member gidx. New members
13105 cmp_id, cmp_from, and cmp_to.
13106 (enum it_method): Delete GET_FROM_COMPOSITION.
13107 (struct composition_it): New struct.
13108 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
13109 Delete c, len, cmp_id, cmp_len in u.comp.
13110
13111 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 13112 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 13113 (enum lglyph_indices): Likewise.
b8ff72fa 13114 (font_range): Adjust extern.
aac0c6e3
MR
13115 (font_fill_lglyph_metrics): Extern it.
13116
13117 * font.c (QCf): New variable.
13118 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13119 (font_prepare_composition): Delete this function.
13120 (font_range): Type and arguments changed.
13121 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
13122 (font_fill_lglyph_metrics): New function.
b8ff72fa 13123 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 13124 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
13125 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
13126 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
13127
13128 * fontset.h (font_for_char): Extern it.
13129
13130 * fontset.c (font_for_char): New function.
13131
13132 * ftfont.c: Include composite.h.
13133 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 13134 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
13135
13136 * indent.c: Include composite.h and dispextern.h.
13137 (check_composition): Delete this function.
13138 (scan_for_column): Handle composition by
13139 composition_compute_stop_pos, composition_reseat_it, and
13140 composition_update_it.
13141 (compute_motion): Likewise.
13142 (Fvertical_motion): Fix checking of composition.
13143
13144 * keyboard.c (adjust_point_for_property): Check composition by
13145 composition_adjust_point.
13146
b8ff72fa 13147 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
13148 struct glyph_string.
13149
b8ff72fa
SM
13150 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
13151 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
13152 struct glyph.
13153 (produce_composite_glyph): Likewise.
13154
b8ff72fa
SM
13155 * w32term.c (x_draw_composite_glyph_string_foreground):
13156 Adjust for the change of struct glyph_string.
aac0c6e3
MR
13157 (x_draw_glyph_string): Likewise.
13158
13159 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
13160 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13161
13162 * xdisp.c: Include font.h.
13163 (it_props): Delete the entry for Qauto_composed.
13164 (init_iterator): Initialize it->cmp_it.id to -1.
13165 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 13166 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
13167 (handle_auto_composed_prop): Delete it.
13168 (handle_composition_prop): Handle only static composition.
13169 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
13170 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 13171 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
13172 (pop_it): Likewise.
13173 (get_next_element): Delete next_element_from_composition.
13174 (CHAR_COMPOSED_P): New macro.
13175 (get_next_display_element): For automatic composition, get a face
13176 from the font in the glyph-string.
13177 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 13178 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
13179 (next_element_from_string): Check if the character at the current
13180 position is composed by CHAR_COMPOSED_P.
13181 (next_element_from_buffer): Likewise.
d66c0241
JB
13182 (next_element_from_composition): Adjust for the change of struct it.
13183 Update it->cmp_it.
b8ff72fa
SM
13184 (dump_glyph): Adjust for the change of struct glyph.
13185 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
13186 it and struct glyph. Don't handle automatic composition here.
13187 (fill_gstring_glyph_string): New function.
13188 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 13189 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
13190 (BUILD_GSTRING_GLYPH_STRING): New macro.
13191 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
13192 automatic composition.
b8ff72fa 13193 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 13194 struct glyph.
b8ff72fa 13195 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 13196
b8ff72fa 13197 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
13198 the change of struct glyph_string.
13199 (x_draw_glyph_string): Likewise.
13200
132012008-08-29 Glenn Morris <rgm@gnu.org>
13202
13203 * buffer.c (word-wrap): Doc fix.
13204 * xdisp.c (truncate-partial-width-windows): Doc fix.
13205 Increase default to 50.
13206
132072008-08-29 Chong Yidong <cyd@stupidchicken.com>
13208
13209 * xdisp.c (update_tool_bar_unwind): New function.
13210 (update_tool_bar): Temporarily set selected frame before building
13211 tool-bar items.
13212
132132008-08-28 Michael Albinus <michael.albinus@gmx.de>
13214
13215 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
13216 snprintf, respectively.
13217 (xd_append_arg): Convert strings with Fstring_make_unibyte.
13218
132192008-08-28 Chong Yidong <cyd@stupidchicken.com>
13220
13221 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
13222 LDFLAGS to GNUstep CC invocation.
13223
132242008-08-27 Chong Yidong <cyd@stupidchicken.com>
13225
13226 * indent.c (Fvertical_motion): Revert last change. Handle the
13227 general case where we are moving forward, and PT spans multiple
13228 screen lines.
13229
13230 * eval.c (find_handler_clause): Temporarily increase
13231 max-lisp-eval-depth while printing the backtrace buffer, to
13232 guarantee that help-mode code can run.
13233
132342008-08-27 Eli Zaretskii <eliz@gnu.org>
13235
13236 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
13237 colors under -rv.
13238 (IT_set_frame_parameters): Don't swap foreground and background
13239 colors if `(reverse . t)' is present in the frame properties.
13240 (internal_terminal_init): Call init_frame_faces only for the
13241 initial frame.
13242
132432008-08-27 Andreas Schwab <schwab@suse.de>
13244
13245 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
13246
132472008-08-27 Andreas Schwab <schwab@suse.de>
13248
13249 * search.c (search_buffer): Set char_base to zero only at the end.
13250
132512008-08-27 Kenichi Handa <handa@m17n.org>
13252
b8ff72fa 13253 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
13254
132552008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
13256
13257 * xterm.c (x_term_init): Temporarily hide the partially
13258 initialized terminal while calling vendor-specific-keysyms.
13259
132602008-08-26 Eli Zaretskii <eliz@gnu.org>
13261
13262 * msdos.c (internal_terminal_init): Most initializations done only
13263 once, especially initial_screen_colors[] and termscript open.
13264
132652008-08-26 Chong Yidong <cyd@stupidchicken.com>
13266
13267 * eval.c (Fcondition_case): Doc fix.
13268
13269 * widgetprv.h (EmacsFramePart): Change font member to the new font
13270 struct.
13271
13272 * widget.c: Include character.h and font.h for XSETFONT.
13273 (setup_frame_gcs): Compute X font id from font struct, just once.
13274
132752008-08-26 Eli Zaretskii <eliz@gnu.org>
13276
13277 * term.c (get_named_tty): Fix last change.
13278
132792008-08-26 Chong Yidong <cyd@stupidchicken.com>
13280
13281 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 13282 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
13283
132842008-08-25 Eli Zaretskii <eliz@gnu.org>
13285
13286 * frame.c (do_switch_frame): Mark previously displayed frame as
13287 obscured for FRAME_MSDOS_P frames as well.
13288
132892008-08-24 Eli Zaretskii <eliz@gnu.org>
13290
13291 * frame.c (make_terminal_frame): Initialize f->terminal,
13292 f->terminal->reference_count, and scroll bars on MS-DOS as well.
13293 Set the top frame to newly created frame.
13294 (Fmake_terminal_frame): Reuse the_only_display_info.
13295
13296 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13297 estimating available memory.
13298
b97439ce 132992008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
13300
13301 * nsterm.m (ns_draw_window_cursor): Don't call
13302 NSDisableScreenUpdates and NSEnableScreenUpdates on
13303 non-NS_IMPL_COCOA systems.
13304
133052008-08-23 Andreas Schwab <schwab@suse.de>
13306
13307 * process.c (procfs_system_process_attributes): Fix use of
13308 uninitialized variables.
13309
133102008-08-23 Eli Zaretskii <eliz@gnu.org>
13311
13312 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13313
13314 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13315 calling tty-set-up-initial-frame-faces.
13316
b8ff72fa
SM
13317 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13318 Allow MSDOS frames along with X frames.
aac0c6e3
MR
13319
13320 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13321 addition to output_termcap.
13322
13323 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13324
13325 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13326 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13327 highlight.
13328
13329 * process.c [!subprocesses]: Define QCname.
13330 (syms_of_process): Intern and staticpro it.
13331
13332 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
13333 Adjust for changes in encoding/decoding routines.
13334 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
13335 encode_coding and decode_coding.
13336
b8ff72fa 13337 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
13338
13339 * dosfns.c: Include frame.h before termhooks.h.
13340 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13341 variable termscript.
13342
13343 * s/msdos.h (USER_FULL_NAME): Define.
13344 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13345
13346 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13347 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13348 pw->pw_gecos.
13349
13350 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13351 SELECTED_FRAME as additional (1st) argument.
13352 (tty_read_avail_input): Handle output_msdos_raw in
13353 addition to output_termcap.
13354
13355 * msdos.c: Include frame.h before termhooks.h.
13356 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13357 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13358 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13359 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13360 (IT_set_terminal_modes, IT_reset_terminal_modes)
13361 (IT_set_frame_parameters): Use tty->termscript instead of a global
13362 variable termscript.
13363 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13364 global variable terminal_coding. Don't refer to
13365 Vnonascii_translation_table.
13366 (internal_terminal_init): Set Vwindow_system in current_kboard.
13367 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13368 Announce date and time of session start, if termscript is open.
13369 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
13370 term.c:init_tty). Open termscript only of not already open.
13371 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
13372 here instead of dos_ttraw. Don't initialize display if this is an
13373 initial tty. Don't set FRAME_FONT.
13374 (Vwindow_system_version): Bump to 23.
13375 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13376 is available, set up mouse_position_hook.
13377 (dos_ttraw, IT_set_terminal_modes): If called with initial
13378 terminal, do nothing.
13379 (IT_set_frame_parameters): Handle the Qtty_type frame
13380 parameter by calling internal_terminal_init.
13381 (dos_set_window_size, show_mouse_face)
13382 (clear_mouse_face, IT_note_mode_line_highlight)
13383 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13384 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13385 (initialize_msdos_display): New function.
13386 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13387 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13388 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13389 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 13390 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
13391 (request_sigio, unrequest_sigio): Don't define, now defined on
13392 sysdep.c.
13393 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13394
13395 * term.c [MSDOS]: Include msdos.h.
13396 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13397 conditional to DOS_NT. Allow only one call to this function in a
13398 session. Don't allocate a new struct tty_display_info; instead,
13399 reuse the_only_display_info. Call get_tty_size to get screen
13400 dimensions. Call init_baud_rate to set bad_rate.
13401 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13402 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 13403 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
13404 (get_tty_terminal, get_named_tty, Ftty_type)
13405 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13406 output_termcap.
b8ff72fa
SM
13407 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13408 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 13409 only when subprocesses are supported.
aac0c6e3
MR
13410
13411 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13412 f->output_data.x.
13413 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13414 terminal devices.
13415
5582fbc7 13416 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
13417 x_output.
13418 (FRAME_FONT): Use output_data.tty.
13419 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
13420 (struct x_display_info): Rename from display_info. Update all users in
13421 msdos.c.
aac0c6e3 13422 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 13423 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
13424 (dos_ttraw): Update prototype.
13425
13426 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13427 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13428
134292008-08-23 Jason Rumney <jasonr@gnu.org>
13430
13431 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13432 (fn_TIFFSetDirectory): New library function used.
13433 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13434 (tiff_load): Use :index to select among multiple images. Set count
13435 property when multiple images exist.
13436 (gif_format): Use :index, not :image.
13437
134382008-08-23 Chong Yidong <cyd@stupidchicken.com>
13439
13440 * xdisp.c (try_scrolling): Check INT_MAX instead of
13441 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13442 to obtain INT_MAX.
13443
134442008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13445
13446 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13447
134482008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13449
13450 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13451 GNUstep library location.
13452
134532008-08-21 Chong Yidong <cyd@stupidchicken.com>
13454
13455 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13456 before using it.
13457
13458 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13459
134602008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13461
13462 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13463 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13464 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13465 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13466 (EmacsApp-cursor_blink_handler): Remove declaration.
13467 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13468 match 01 Feb 2008 changes in xterm.c.
13469 (ns_read_socket): Add cast to avoid warning.
13470 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13471 GNUstep.
13472
134732008-08-20 Chong Yidong <cyd@stupidchicken.com>
13474
13475 * xselect.c (x_get_foreign_selection): Return nil if desired
13476 selection could not be obtained, instead of signalling an error.
13477
134782008-08-20 David Reitter <david.reitter@gmail.com>
13479
13480 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13481 * nsterm.m: Remove ns-specific code for cursor blinking.
13482 (ns_draw_window_cursor): Clear cursor properly rather than
13483 redrawing the area. Respect width of bar cursors.
13484 These changes enable the use of generic blink-cursor-mode and
13485 generic cursor types in NS and support smooth cursor movements (do
13486 not blink off after command).
13487 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13488 Nextstep, too.
13489
134902008-08-19 Kenichi Handa <handa@m17n.org>
13491
13492 * font.c (Vfont_log_deferred): New variable.
13493 (font_add_log): Check Vfont_log_deferred.
13494 (font_deferred_log): New function.
13495
13496 * font.h (font_deferred_log): Extern it.
13497
13498 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13499 for sorting.
13500 (face_for_char): Use deferred log.
13501
135022008-08-18 Kenichi Handa <handa@m17n.org>
13503
13504 * fontset.c (face_for_char): Add font log.
13505
13506 * font.c (font_add_log): Add the font properties :script, :lang,
13507 and :otf in the log.
13508
135092008-08-17 Chong Yidong <cyd@stupidchicken.com>
13510
13511 * xdisp.c: Remove dead code.
13512 (handle_invisible_prop, next_overlay_string): Defer call to
13513 setup_for_ellipsis.
13514 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13515
135162008-08-15 Chong Yidong <cyd@stupidchicken.com>
13517
13518 * xfaces.c (lookup_derived_face): Properly handle possible zero
13519 return value of get_lface_attributes.
13520 (merge_faces): Don't tell lookup_derived_face to signal an error
13521 if face is not found.
13522
13523 * dired.c (Fdirectory_files): Doc fix.
13524
13525 * process.c (make_process): Initialize kill_without_query struct
13526 member.
13527
135282008-08-15 Eli Zaretskii <eliz@gnu.org>
13529
13530 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13531 Alternative calculation of totphys for Visual Studio 6.
13532
13533 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13534
13535 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13536 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13537 All users changed.
13538 (stat): Only root directory passed to GetDriveType. Allow RAM
13539 disk as well as local fixed disk when w32-get-true-file-attributes
13540 is set to `local'.
13541 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13542 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13543 (w32_cached_id, w32_add_to_cache): New functions.
13544 (get_name_and_id): Look account names in the cache before calling
13545 lookup_account_sid.
13546 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13547 New initialization flags.
13548 (globals_of_w32): Initialize them to zero.
13549 (w32_system_process_attributes): Use w32_cached_id and
13550 w32_add_to_cache.
13551
135522008-08-14 Lawrence Mitchell <wence@gmx.li>
13553
13554 * lread.c (Fread_char, Fread_char_exclusive): If no character
13555 event is read before timeout is reached, return nil, rather than
13556 converting to a number.
13557
135582008-08-14 Chong Yidong <cyd@stupidchicken.com>
13559
13560 * fns.c (use_dialog_box): Doc fix.
13561
13562 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13563 on OS X.
13564
135652008-08-13 Chong Yidong <cyd@stupidchicken.com>
13566
13567 * frame.c (Qns_parse_geometry): New var.
13568 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13569
135702008-08-11 Chong Yidong <cyd@stupidchicken.com>
13571
13572 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13573 space character in calculating tabs.
13574
135752008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13576
13577 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13578
135792008-08-10 Glenn Morris <rgm@gnu.org>
13580
13581 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13582 silence gcc "limited range of data type" warnings in some
13583 make_fixnum_or_float calls.
13584
135852008-08-09 Eli Zaretskii <eliz@gnu.org>
13586
13587 * w32.c (w32_system_process_attributes): If the process does not
13588 exist, return nil.
13589
13590 * w32.c: Include thelp32.h, psapi.h and coding.h.
13591 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13592 declarations.
13593 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13594 (Process32Next_Proc): New typedefs.
13595 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13596 (g_b_init_process32_next, g_b_init_open_thread_token)
13597 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13598 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13599 (g_b_init_get_process_working_set_size)
13600 (g_b_init_global_memory_status_ex): New static variables.
13601 (globals_of_w32): Initialize them.
13602 (create_toolhelp32_snapshot, process32_first, process32_next)
13603 (open_thread_token, impersonate_self, revert_to_self)
13604 (get_process_memory_info, get_process_working_set_size)
13605 (global_memory_status, global_memory_status_ex): New wrapper
13606 functions.
13607 (w32_list_system_processes, w32_system_process_attributes)
13608 (enable_privilege, restore_privilege, ltime, process_times):
13609 New functions.
13610 (convert_time_raw): New function.
13611 (convert_time): Remove conversion of FILETIME into time in 100
13612 nsec units, call convert_time_raw instead.
13613
13614 * process.h (w32_list_system_processes, w32_system_process_attributes):
13615 Add prototypes.
13616 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13617 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13618 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13619 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13620
13621 * process.c (Fsystem_process_attributes): Doc fix.
13622
136232008-08-08 Chong Yidong <cyd@stupidchicken.com>
13624
13625 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13626 a continued multi-char glyph; if so, advance to the actual glyph.
13627
136282008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13629
13630 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13631
13632 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13633 (.m.o): Use it.
13634 * config.in: Regenerate.
13635
136362008-08-07 Chong Yidong <cyd@stupidchicken.com>
13637
13638 * xdisp.c (redisplay_window): Revert last change.
13639 (try_window): Check bottom scroll margin too.
13640
136412008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13642
13643 * config.in: Regenerate.
13644
13645 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13646 -list-load-path-shadows'.
13647 (nsgui.h): Reduce number of things depending on it.
13648
136492008-08-06 Chong Yidong <cyd@stupidchicken.com>
13650
13651 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13652 instead of window-end which does the wrong thing at eob.
13653 (try_cursor_movement): Minor optimization.
13654 (redisplay_window): If scroll margin is defined, don't assume
13655 window doesn't need scrolling.
13656
136572008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13658
13659 * config.in: Regenerate.
13660
13661 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13662 (mostlyclean): Don't delete *.d under NS.
13663
13664 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13665
136662008-08-06 Kenichi Handa <handa@m17n.org>
13667
13668 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13669
136702008-08-06 Andreas Schwab <schwab@suse.de>
13671
13672 * config.in: Regenerate.
13673
136742008-08-05 Chong Yidong <cyd@stupidchicken.com>
13675
13676 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13677 forcing a window start.
13678
13679 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13680 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13681
136822008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13683
13684 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13685 argument.
13686
136872008-08-05 Juanma Barranquero <lekktu@gmail.com>
13688
13689 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13690 <scroll-down-aggressively, before-change-functions>:
13691 <after-change-functions>: Reflow docstrings.
13692
136932008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 13694 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
13695
13696 Dock menu customization, based on a patch by Ken Raeburn, plus some
13697 other fixes.
13698 * nsmenu.m (dockMenu): New variable.
13699 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13700
13701 * nsterm.h (dockMenu): Declare.
13702
13703 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13704 (ns_term_init): Initialize dockMenu.
13705 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13706 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13707 left.
13708
13709 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13710
137112008-08-04 Chong Yidong <cyd@stupidchicken.com>
13712
13713 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13714
13715 * config.in: Regenerate.
13716
137172008-08-04 Seiji Zenitani <zenitani@mac.com>
13718
13719 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13720
137212008-08-04 Chong Yidong <cyd@stupidchicken.com>
13722
13723 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13724
137252008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13726
13727 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13728
13729 * keyboard.h: Comment an #endif.
13730
13731 * lisp.h (have_menus_p): Adjust comment.
13732
13733 * menu.c (find_and_return_menu_selection): Fix comparison with
13734 client_data.
13735
13736 * nsmenu.m (popup_activated_flag): New variable.
13737 (popup_activated): New function.
13738 (menu-or-popup-active-p): New exported lisp definition.
13739 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13740 when popup done.
13741 (ns_popup_dialog): Set popup_activated_flag.
13742
13743 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13744 version for GNUstep (handled by conditional typedef in nsterm.m).
13745 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13746 in rgb.txt).
13747
13748 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13749
13750 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13751
13752 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13753
13754 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13755 shortcircuit if popup_activated like GTK and X toolkit.
13756
13757 * m/inter386.h: Change DARWIN to DARWIN_OS.
13758
13759 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13760 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13761 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13762 comment on NO_SOCK_SIGIO.
13763
137642008-08-03 Chong Yidong <cyd@stupidchicken.com>
13765
13766 * nsterm.m (windowDidResize): Remove stopModal call.
13767
137682008-08-03 Andreas Schwab <schwab@suse.de>
13769
13770 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13771 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13772
137732008-08-02 Chong Yidong <cyd@stupidchicken.com>
13774
13775 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13776 Don't use uninitialized pointer variable when using getrlimit.
13777
137782008-08-02 Jason Rumney <jasonr@gnu.org>
13779
13780 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13781
137822008-08-02 Eli Zaretskii <eliz@gnu.org>
13783
13784 * alloc.c (NSTATICS): Bump to 0x640.
13785
13786 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13787
13788 * lisp.h: Add prototype for directory_files_internal.
13789
13790 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13791 New functions.
13792 (syms_of_process): Defsubr them. Add initializations for various
13793 Q* symbols used in procfs_system_process_attributes.
13794 (procfs_list_system_processes, procfs_system_process_attributes)
13795 [HAVE_PROCFS]: New functions.
13796 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13797 (procfs_get_total_memory): New functions.
13798
137992008-08-01 Juanma Barranquero <lekktu@gmail.com>
13800
13801 * xfaces.c (Fx_load_color_file): Fix previous change;
13802 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13803
138042008-08-01 Michael Albinus <michael.albinus@gmx.de>
13805
13806 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13807
138082008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13809
13810 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13811
138122008-08-01 Chong Yidong <cyd@stupidchicken.com>
13813
13814 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13815
13816 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13817 define NSApplicationDelegateReplySuccess.
13818 (EmacsView -converstationIdentifier): Use long instead of
13819 NSInteger for GNUstep, since it doesn't have NSInteger.
13820
13821 * xmenu.c: Revert last change.
13822
13823 * keyboard.h: Fix last change.
13824
138252008-08-01 Juanma Barranquero <lekktu@gmail.com>
13826
13827 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13828 on Windows.
13829
138302008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13831
13832 Warning clearing and clean-up in NS port.
13833 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13834 Add prototypes.
13835 * nsgui.h (FACE_DEFAULT): Remove, unused.
13836 (XGCValues): Change colors to unsigned long.
13837 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13838 nsterm.m.
13839 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13840 (ns_list_fonts): Remove, unused.
13841 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13842 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13843 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13844 (nsfont_draw): Compare face colors to 0, not nil.
13845 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13846 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13847 (-addSubmenuWithTitle:): Use NSMenuItem class.
13848 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13849 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13850 (ns_clip_to_row): Make gc arg a BOOL.
13851 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13852 ns_clip_to_row() call.
13853 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13854 used). Cast FRAME_FONT assignments.
13855 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13856 (ns_string_to_lispmod): Change arg to const char.
13857 (ns_term_init): Use NSMenuItem class.
13858 (EmacsApp -openFile:): Move to different section of file.
13859 (EmacsApp -application:openFiles:): Don't return a value, call
13860 -replyToOpenOrPrint:.
13861 (EmacsView -keyDown:): Fix up cast.
13862 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13863 (EmacsView -menuDown:): Cast tag in call to
13864 find_and_call_menu_selection().
13865 (ns_list_fonts): Remove, unused.
13866 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13867 (ns_fontname_to_xlfd): Make static.
13868 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13869 Remove prototypes (now in keyboard.h).
13870 (next_menubar_widget_id): Remove, unused.
13871 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13872 Remove prototypes (now in keyboard.h).
13873 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13874
138752008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13876
13877 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13878 (floatfns.o): Depend on syssignal.h.
13879 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13880
13881 * systty.h: Fix previous change that removed BSD_TERMIOS.
13882 Add comments to #ifdefs.
13883
138842008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13885
13886 * w32fns.c (w32-load-color-file): Remove.
13887 (x-open-connection): Use renamed Fx_load_color_file.
13888 * xfaces.c (x-load-color-file): Add.
13889 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13890 Emacs.clr.
13891 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13892
138932008-07-31 Michael Albinus <michael.albinus@gmx.de>
13894
13895 * dbusbind.c (Fdbus_call_method_asynchronously)
13896 (Fdbus_method_error_internal): New defuns.
13897 (xd_read_message): Handle also reply messages.
13898 (Vdbus_registered_functions_table): Extend docstring.
13899
139002008-07-31 Juanma Barranquero <lekktu@gmail.com>
13901
13902 * keyboard.c (gobble_input): Fix previous change.
13903
139042008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13905
13906 * bitmaps/README:
13907 * xfns.c:
13908 * termcap.c:
13909 * term.c:
13910 * syswait.h:
13911 * systty.h:
13912 * systime.h:
13913 * syssignal.h:
13914 * sysdep.c:
13915 * process.h:
13916 * process.c:
13917 * print.c:
13918 * ndir.h:
13919 * lread.c:
13920 * keyboard.c:
13921 * getpagesize.h:
13922 * floatfns.c:
13923 * fileio.c:
13924 * emacs.c:
13925 * doc.c:
13926 * dispnew.c:
13927 * dired.c:
13928 * data.c:
13929 * callproc.c:
13930 * buffer.c:
13931 * README:
13932 * Makefile.in:
13933 * s/template.h:
13934 * s/msdos.h:
13935 * m/vax.h: Remove VMS support.
13936 * s/vms.h:
13937 * vlimit.h:
13938 * uaf.h:
13939 * temacs.opt:
13940 * param.h:
13941 * ioctl.h: Remove file.
13942
139432008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13944
13945 * s/ms-w32.h (MULTI_KBOARD): Remove.
13946 * xterm.c:
13947 * xselect.c:
13948 * xfns.c:
13949 * window.c:
13950 * w32term.c:
13951 * w32fns.c:
13952 * terminal.c:
13953 * termhooks.h:
13954 * term.c:
13955 * sysdep.c:
13956 * keyboard.h:
13957 * keyboard.c:
13958 * frame.h:
13959 * frame.c:
13960 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13961 * config.in: Regenerate.
13962
139632008-07-30 Jason Rumney <jasonr@gnu.org>
13964
13965 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13966
13967 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13968 (w32font_open_internal): Get unicode version of textmetrics.
13969 Don't enable or disable glyph indices here.
13970 (w32font_open): Disable use of glyph indices.
13971
13972 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13973
139742008-07-30 Chong Yidong <cyd@stupidchicken.com>
13975
13976 * minibuf.c (Vread_buffer_function): Doc fix.
13977
139782008-07-30 John Paul Wallington <jpw@pobox.com>
13979
13980 * minibuf.c (read_buffer_completion_ignore_case): New var.
13981 (Fread_buffer): Use it.
13982
139832008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13984
13985 * systty.h (sensemode): Remove empty #if. Remove reference to
13986 BSD_TERMIOS, unused.
13987
13988 * sysdep.c: Remove reference to DGUX.
13989 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13990
13991 * config.in: Regenerate.
13992
139932008-07-30 Jason Rumney <jasonr@gnu.org>
13994
13995 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13996
139972008-07-29 Jason Rumney <jasonr@gnu.org>
13998
13999 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
14000 is populated.
14001 (uniscribe_encode_char): Always use uniscribe.
14002 Avoid using context if cache is populated.
14003
140042008-07-29 Jan Djärv <jan.h.d@swipnet.se>
14005
14006 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
14007 open menu.
14008
14009 * gtkutil.c (menu_nav_ended): Remove.
14010 (create_menus): Remove signal connect for menu_nav_ended.
14011
140122008-07-28 Chong Yidong <cyd@stupidchicken.com>
14013
14014 * xdisp.c (redisplay_window): Check return value of
14015 compute_window_start_on_continuation_line before forcing a window
14016 start.
14017
140182008-07-28 Jason Rumney <jasonr@gnu.org>
14019
14020 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
14021
14022 * w32term.c (w32_enable_unicode_output, cleartype_active):
14023 Remove obsolete display options.
14024 (x_draw_glyph_string_background): Don't use old cleartype_active
14025 workaround.
14026 (w32_initialize): Remove cleartype_active initialization.
14027 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
14028
140292008-07-28 Andreas Schwab <schwab@suse.de>
14030
14031 * lisp.h (init_weak_hash_tables, syms_of_font)
14032 (xd_read_queued_messages, syms_of_dbusbind): Declare.
14033 (remove_hash_entry): Don't declare.
14034 * eval.c (maybe_call_debugger): Make static and move before use.
14035 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
14036 * xdisp.c: Include "gtkutil.h" if USE_GTK.
14037 * xterm.h (x_set_frame_alpha): Declare.
14038
140392008-07-28 Jan Djärv <jan.h.d@swipnet.se>
14040
14041 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
14042 (create_menus): Connect selection-done to menu_nav_ended.
14043
140442008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14045
14046 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
14047 Set Vx_resource_name to a fallback. Replace read of 'buffered'
14048 parameter with read of 'alpha' one.
14049 (Qns_frame_parameter): Remove.
5582fbc7 14050 * nsselect.m (selection-coding-system)
aac0c6e3
MR
14051 (next-selection-coding-system, Vselection_coding_system)
14052 (Vnext_selection_coding_system): Drop.
14053
140542008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14055
14056 * nsfns.m (do-applescript, do_applescript): Rename to
14057 ns-do-applescript, ns_do_applescript, and move within file.
14058
140592008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
14060
14061 Remove support for Mac Carbon.
14062 * mactoolbox.c:
14063 * macterm.h:
14064 * macterm.c:
14065 * macselect.c:
14066 * macmenu.c:
14067 * macgui.h:
14068 * macfns.c:
14069 * mac.c: Remove file.
14070 * s/darwin.h:
14071 * m/intel386.h:
14072 * xfaces.c:
14073 * xdisp.c:
14074 * window.c:
14075 * tparam.c:
14076 * termhooks.h:
14077 * termcap.c:
14078 * term.c:
14079 * syssignal.h:
14080 * sysselect.h:
14081 * sysdep.c:
14082 * process.c:
14083 * lread.c:
14084 * lisp.h:
14085 * keyboard.c:
14086 * image.c:
14087 * fringe.c:
14088 * frame.h:
14089 * frame.c:
14090 * fontset.c:
14091 * font.h:
14092 * font.c:
14093 * fns.c:
14094 * fileio.c:
14095 * emacs.c:
14096 * dispnew.c:
14097 * dispextern.h:
14098 * config.in:
14099 * atimer.c:
2ae37cf0 14100 * Makefile.in: Remove code for Carbon.
aac0c6e3 14101
f0131492 141022008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
14103
14104 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
14105
141062008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14107
14108 * macterm.h (kCGBitmapByteOrder32Host): New define for
14109 non-universal SDKs.
14110
14111 * image.c (mac_create_cg_image_from_image, image_load_image_io)
14112 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14113
14114 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
14115 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14116
141172008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
14118
14119 * w32inevt.c: Include dispextern.h.
14120
141212008-07-26 Andreas Schwab <schwab@suse.de>
14122
14123 * print.c (print_object): Fix off-by-one in last change.
14124
141252008-07-25 Juanma Barranquero <lekktu@gmail.com>
14126
14127 * term.c (syms_of_term): Don't initialize default_orig_pair,
14128 default_set_foreground and default_set_background on Windows.
14129
141302008-07-25 Jason Rumney <jasonr@gnu.org>
14131
14132 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
14133 ScriptItemize. Clean up return value checking. Remove unused
14134 variables.
14135 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
14136 shaping engine.
14137
14138 * w32font.c (w32font_has_char): Handle the case where we can't
14139 determine the script for a character.
14140
141412008-07-25 Chong Yidong <cyd@stupidchicken.com>
14142
14143 * term.c (syms_of_term): Initialize default_orig_pair,
14144 default_set_foreground, and default_set_background.
14145
14146 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14147 clash (bug#86).
14148 (getloadavg): Callers changed.
14149
14150 * image.c (svg_load_image): Fix last change.
14151 (svg_load_image): Use rsvg_handle_get_dimensions to check that
14152 image size is valid. Use g_object_unref instead of deprecated
14153 rsvg_handle_free to free rsvg handle.
14154 (x_from_xcolors): Don't initialize pixmap (silence compiler).
14155
141562008-07-25 Jason Rumney <jasonr@gnu.org>
14157
14158 * w32font.c (w32font_encode_char): Encode characters outside BMP as
14159 surrogates before looking up glyph index.
14160 (w32font_text_extents): Encode as surrogates if falling back to
14161 functions that need UTF-16 wide chars.
14162
14163 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
14164 BMP as surrogates before looking up glyph index.
14165
141662008-07-25 Chong Yidong <cyd@stupidchicken.com>
14167
14168 * image.c (svg_load_image): Check for failure in return value of
14169 rsvg_handle_get_pixbuf. Free rsvg handle when done.
14170
141712008-07-25 Jason Rumney <jasonr@gnu.org>
14172
14173 * w32font.c (Fx_select_font): Reverse sense of second arg.
14174
141752008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
14176
14177 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
14178 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
14179
14180 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
14181 (PURESIZE): Use it.
14182
141832008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
14184
14185 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
14186 * m/alpha.h (TEXT_END):
14187 * m/ibmrs6000.h (TEXT_END):
14188 * m/macppc.h (TEXT_END):
14189 * s/darwin.h (TEXT_END):
14190 * s/msdos.h (TEXT_END): Remove, unused.
14191 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
14192 * s/cygwin.h: Remove comment.
14193
14194 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
14195 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
14196 * m/intel386.h (DOT_GLOBAL_START):
14197 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
14198 (USG): Remove, file not used on USG platforms.
14199
14200 * Makefile.in (HAVE_X11): Remove empty #else.
14201
142022008-07-24 Andreas Schwab <schwab@suse.de>
14203
14204 * fileio.c (Finsert_file_contents): Properly adjust undo list
14205 after format conversion.
14206
142072008-07-24 Jan Djärv <jan.h.d@swipnet.se>
14208
14209 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
14210 (menu_nav_ended): Remove.
14211 (create_menus): Remove signal connect for menu_nav_ended.
14212 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
14213 create_menus.
14214 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
14215
142162008-07-23 Jason Rumney <jasonr@gnu.org>
14217
14218 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
14219 with opened font.
14220 (w32font_open): Set font type to gdi.
14221
14222 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
14223
142242008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
14225
14226 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
14227 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
14228 defines it.
14229 * unexec.c (ADDR_CORRECT): Define unconditionally.
14230
14231 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
14232
14233 * unexec.c: Remove code depending on !COFF and USG, the file is
14234 not used for such systems.
14235
14236 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
14237 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
14238 (LD_SWITCH_SYSTEM_1): Remove, update users.
14239
14240 * s/darwin.h (DATA_END):
14241 * m/intel386.h (DATA_END):
14242 * m/ibmrs6000.h (DATA_END):
14243 * m/alpha.h (DATA_END): Remove, unused.
14244
14245 * config.in: Regenerate.
14246 * s/ms-w32.h (subprocesses): Define unconditionally.
14247 * s/template.h (subprocesses): Update comment.
14248 * s/vms.h (subprocesses):
14249 * s/usg5-4.h (subprocesses):
14250 * s/hpux10-20.h (subprocesses):
14251 * s/gnu-linux.h (subprocesses):
14252 * s/cygwin.h (subprocesses):
14253 * s/bsd-common.h (subprocesses):
14254 * s/aix4-2.h (subprocesses):
14255 * s/darwin.h (subprocesses): Do not define, defined by default now.
14256
14257 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
14258 Remove all references.
14259 (temacs): Add GNUstep specific ld flags.
14260
14261 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
14262 similarly to what X does.
14263
142642008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14265
14266 * nsfns.m (x-list-fonts): Remove.
14267 (syms_of_nsfns): Drop the x-list-fonts declaration.
14268 * nsterm.m: Get rid of remaining "//" comments.
14269
142702008-07-22 Chong Yidong <cyd@stupidchicken.com>
14271
14272 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
14273
14274 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
14275 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
14276 (Fns_own_selection_internal, Fx_disown_selection_internal)
14277 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
14278
14279 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
14280 ... */' style of docstrings. Doc fixes.
14281
142822008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14283
14284 * terminfo.c (UP, BC, PC): Undo previous change.
14285
14286 * nsfns.m: Rename ns prefixed functions/variables to the
14287 corresponding x versions. Update references.
14288
142892008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
14290
14291 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14292
142932008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14294
14295 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14296 Remove forwarding functions.
14297 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14298 non-static.
14299 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14300 non-static.
14301 (ns_frame_parm_handlers): Use the new names.
14302 (syms_of_nsfns): Move to the end of file.
14303
14304 * nsterm.m (syms_of_nsterm): Move to the end of file.
14305
14306 * dispnew.c (init_display): Remove code for X10.
14307
143082008-07-22 Jason Rumney <jasonr@gnu.org>
14309
14310 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14311 bare drive.
14312
143132008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14314
14315 * nsterm.m (syms_of_nsterm): Remove debugging println.
14316
143172008-07-22 David Reitter <david.reitter@gmail.com>
14318
14319 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14320 Carbon implementation of the same functionality: execute arbitrary
14321 AppleScript code.
14322
143232008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14324
14325 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14326 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14327 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14328 (Fx_display_mm_height, Fx_display_mm_width)
14329 (Fx_display_backing_store, Fx_display_visual_class)
14330 (Fx_display_save_under, Fx_open_connection)
14331 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14332 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14333 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14334 (Fx_display_pixel_width, Fx_display_pixel_height)
14335 (Fx_display_usable_bounds, Fx_display_planes)
14336 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14337 ... */' style of docstrings.
14338
143392008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14340
14341 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14342 on this platform.
14343 (mips):
14344 * m/iris4d.h (mips): Do not define.
14345 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14346
14347 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14348
14349 * image.c:
14350 * nsfns.m:
14351 * nsselect.m:
14352 * nsterm.h:
14353 * nsterm.m: Rename ns prefixed functions/variables to the
14354 corresponding x versions. Update references.
14355
14356 * m/ibms390x.h (NO_REMAP): Do not undefine.
14357
14358 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14359
143602008-07-21 Chong Yidong <cyd@stupidchicken.com>
14361
14362 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14363 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14364 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14365 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14366 (Fns_display_mm_height, Fns_display_mm_width)
14367 (Fns_display_backing_store, Fns_display_visual_class)
14368 (Fns_display_save_under, Fns_open_connection)
14369 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14370 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14371 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14372 (Fns_display_pixel_width, Fns_display_pixel_height)
14373 (Fns_display_usable_bounds, Fx_display_planes)
14374 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14375
143762008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14377
14378 * print.c (print_object): Check print_depth before searching for
14379 circularities.
14380
143812008-07-21 Michael Albinus <michael.albinus@gmx.de>
14382
14383 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14384 only sprintf.
14385
143862008-07-21 Kenichi Handa <handa@m17n.org>
14387
14388 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14389
143902008-07-20 Andreas Schwab <schwab@suse.de>
14391
14392 * syntax.c (find_start_pos, find_start_value)
14393 (find_start_value_byte, find_start_begv, find_defun_start)
14394 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14395
143962008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14397
14398 * s/sol2-3.h: Insert contents of s/sol2.h.
14399 (LD_SWITCH_SYSTEM): Remove redundant definition.
14400 * s/sol2.h: Remove, unused.
14401
144022008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14403
14404 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14405
144062008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14407
14408 * Makefile.in (ns_appdir): Fix typo in find command.
14409
144102008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14411
14412 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14413
14414 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14415 added not supported anymore.
14416
14417 * s/usg5-4-2.h (LIBS_SYSTEM):
14418 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14419
14420 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14421 * s/lynxos.h (GETPGRP_NO_ARG):
14422 * s/hpux10-20.h (NO_SIOCTL_H):
14423 * s/gnu.h (GETPGRP_NO_ARG):
14424 * s/gnu-linux.h (NO_SIOCTL_H):
14425 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14426 * s/cygwin.h (GETPGRP_NO_ARG):
14427 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14428 (C_DEBUG_SWITCH): Remove duplicate definition.
14429
14430 * m/ibms390.h: Remove boilerplate comments.
14431
14432 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14433
14434 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14435 (wait_reading_process_output): Remove code for SunOS, platform not
14436 supported anymore. Use SOLARIS2 instead of sun.
14437
144382008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14439
14440 * font.c (font_open_by_name): Under NS, default lface height to zero.
14441 (font_open_for_lface): Under NS, set size based on frame fontsize.
14442 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14443 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14444
144452008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14446
14447 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14448 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14449 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14450 YES/NO.
14451 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14452 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14453 * Makefile.in (clean): Clear out build destination dir.
14454
144552008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14456
14457 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14458 xterm, xselect.
14459 * lisp.h: Remove declaration of hash_remove.
14460 * nsgui.h: Remove redefinitions of hash_remove.
14461 * fns.c (hash_remove): Rename to hash_remove_from_table.
14462
144632008-07-19 Seiji Zenitani <zenitani@mac.com>
14464
14465 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14466 strdup() the family UTF8String before modifying it.
14467
144682008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14469
14470 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14471 NS_FACE_BACKGROUND with 0 instead of nil.
14472 * nsfont.m (nsfont_draw): Same.
14473
144742008-07-19 Chong Yidong <cyd@stupidchicken.com>
14475
14476 * nsfns.m (ns_set_background_color): Fix crash.
14477
144782008-07-18 Chong Yidong <cyd@stupidchicken.com>
14479
14480 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14481
144822008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14483
14484 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14485
144862008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14487
14488 * gtkutil.c: Include <config.h> instead of "config.h".
14489
14490 * lisp.h (Foverlay_buffer): Add EXFUN.
14491
14492 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14493 child process to complete child_setup. Undo 2005-09-21 change.
14494
14495 * s/darwin.h: Mention setsid after vfork.
14496
144972008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14498
14499 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14500 Depend on macgui.h.
14501
14502 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14503 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14504
14505 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14506 and f19.
14507 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14508
14509 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14510 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14511 Remove enumerators.
14512
14513 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14514 Check if FACE_FROM_ID returns NULL.
14515
145162008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14517
14518 * w32inevt.c (change_frame_size): Remove extern declaration.
14519 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14520 change_frame_size.
14521
145222008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14523
14524 * getloadavg.c: Revert last change (2008-07-15).
14525
145262008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14527
14528 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 14529 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
14530 from configure.
14531
145322008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14533
14534 * s/sol2.h:
14535 * s/sol2-4.h: Reorganize conditionals.
14536
14537 * ecrt0.c: Remove code depending on m68000, not used anymore.
14538
14539 * fns.c (hash_remove): Make static.
14540 * lisp.h (hash_remove): Don't prototype.
14541
14542 * m/ibmrs6000.h:
14543 * m/ibms390x.h:
14544 * m/macppc.h: Remove boilerplate comments.
14545
14546 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14547 Solaris, which does not need them.
14548
14549 * m/vax.h: Remove comments about unsupported systems.
14550
14551 * s/darwin.h: Reorganize ifdefs.
14552
145532008-07-17 Andreas Schwab <schwab@suse.de>
14554
14555 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14556
145572008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14558
14559 Use SDATA. Follow coding convention of placing operators at
14560 beginning of next line rather than end of previous line, and placing
14561 spaces around infix operators.
14562
14563 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14564 in case it was defined already.
14565 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14566 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14567 ns_default.
14568 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14569 Lisp_Objects.
14570 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14571 (ns_defined_color, ns_color_to_lisp): Declare.
14572 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14573 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14574 it's accepted even with USE_LISP_UNION_TYPE.
14575 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14576 (update_frame_tool_bar): Remove apparently obsolete tests for
14577 non-integerness of f->tool_bar_lines.
14578 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14579 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14580 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14581 (nsfont_open): Don't confuse NULL for Qnil.
14582 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14583 * menu.h (find_and_call_menu_selection):
14584 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14585 (find_and_return_menu_selection): Always return something.
14586 * frame.h: Include dispextern.h for Display_Info.
14587 (display_x_get_resource): Declare.
14588
145892008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14590
14591 * syntax.c: Remove stdio.h include accidentally introduced in
14592 Emacs.app commit.
14593 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14594 NS_IMPL_COCOA.
14595 * keyboard.c (handle_async_input, input_available_signal): Remove
14596 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14597
145982008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14599
14600 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14601 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14602 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14603 Use SDATA.
14604
14605 * keymap.c: Remove all NS-specific code.
14606 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14607 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14608 where_is_preferred_modifier, return a different value depending on how
14609 preferred is the binding.
14610 (where_is_internal): Adjust accordingly.
14611 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14612 Adjust to new preferred_sequence_p.
14613 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14614 * keyboard.c (parse_solitary_modifier): Not static any more.
14615 * keyboard.h (parse_solitary_modifier): Declare.
14616
146172008-07-16 Andreas Schwab <schwab@suse.de>
14618
14619 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14620 of easymenu.
14621
146222008-07-16 Chong Yidong <cyd@stupidchicken.com>
14623
14624 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14625 that we don't move off the line.
14626
146272008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14628
14629 * keyboard.c (Qsuper): Remove.
14630 (parse_menu_item): Don't call where_is_internal specially for NS.
14631
146322008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14633
14634 * s/gnu-linux.h: Remove boilerplate comments.
14635
14636 * m/alpha.h (__ELF__): Consolidate conditions.
14637
14638 * m/m68k.h (linux): Use GNU_LINUX instead.
14639 Remove boilerplate comments.
14640
14641 * m/intel386.h: Undo refactoring from previous change.
14642 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14643 too, remove dead code.
14644 (linux): Use GNU_LINUX instead.
14645
146462008-07-16 Jason Rumney <jasonr@gnu.org>
14647
14648 * w32gui.h: Repeat 26 June changes lost by last change.
14649
146502008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14651
14652 * systty.h: Remove code for Aix on 386, unsupported platform.
14653
14654 * s/ms-w32.h: Remove boilerplate comments.
14655 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14656
14657 * s/gnu-linux.h (TERM): Remove support.
14658 (HAVE_SYSVIPC): Remove, unused.
14659 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14660 for this system.
14661
14662 * process.c: Remove support for IRIS, unused.
14663 Remove support for TERM, not relevant anymore.
14664
14665 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14666 used with the definition.
14667
14668 * s/aix4-2.h (static): Do not undef.
14669
14670 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14671 only used on Aix.
14672 (HAVE_SYSVIPC): Remove, unused.
14673
14674 * m/hp800.h (CANNOT_DUMP): Do not undef.
14675
14676 * m/alpha.h: Fix comment.
14677
14678 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14679 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14680 used by this configuration.
14681 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14682 * unexec.c: Remove code depending on HPUX and
14683 USG_SHARED_LIBRARIES, not used with this file. Remove code
14684 depending on IRIS, unused. Remove if 0-ed code.
14685
14686 * s/template.h: Remove comments about static.
14687
14688 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14689 Remove if 0-ed code.
14690 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14691 were the same as the default.
14692 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14693 Remove boilerplate comments.
14694 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14695 (HAVE_SYSVIPC): Remove, unused.
14696 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14697
14698 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14699 Remove boilerplate comments.
14700 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14701 Remove boilerplate comments.
14702 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14703 Remove boilerplate comments.
14704 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14705
14706 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14707 USG systems which do not use DATA_SEG_BITS.
14708 Refactor code. Remove boilerplate comments.
14709
14710 * m/ibms390.h:
14711 * m/m68k.h:
14712 * s/bsd-common.h:
14713 * s/cygwin.h:
14714 * s/darwin.h:
14715 * s/freebsd.h:
14716 * s/gnu.h:
14717 * s/msdos.h: Remove boilerplate comments.
14718
14719 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 14720 do not use this file.
aac0c6e3
MR
14721 (IRIS_4D): Remove, unused.
14722
14723 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 14724 do not use this file.
aac0c6e3
MR
14725 (SIGN_EXTEND_CHAR):
14726 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14727 * unexmips.c: Remove file, unused.
14728
14729 * editfns.c (Fuser_full_name): Replace the only use of
14730 USER_FULL_NAME with its value.
14731 * config.in: Regenerate.
14732
147332008-07-16 David Reitter <david.reitter@gmail.com>
14734
14735 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14736 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14737
147382008-07-16 Glenn Morris <rgm@gnu.org>
14739
14740 * emacs.c (system-type): Doc fix.
14741
147422008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14743
14744 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14745 If the cache doesn't work, let's fix it, rather than work around it.
14746
147472008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14748
14749 * Makefile.in: Correct additions for nsfont.o in last commit.
14750 * nsfont.m: New file (forgot last commit).
14751
147522008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14753
14754 * callproc.c (set_initial_environment): Initialize
14755 Vprocess_environment under CANNOT_DUMP (fixes crash when
14756 batch-compiling for bootstrap).
14757
147582008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 14759 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 14760
c4cc8b9a
JB
14761 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14762 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
14763
147642008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14765
14766 Changes and additions for NeXTstep windowing system (Cocoa and
14767 GNUstep) support.
14768
14769 * Makefile.in:
14770 * config.in: Support defines and build commands for NS port.
14771 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14772 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14773 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14774 windowing.
14775 (struct face): Add synth_ital field.
14776 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14777 (init_display): Initialize Vinitial_window_system to "ns" when so
14778 compiled.
14779 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14780 (display_arg): Use under NS.
14781 (main): Under NS, allocate autorelease pool and handle command line
14782 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14783 (standard_args): Add NS-specific args.
14784 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14785 * font.c (DEFAULT_ENCODING): New variable.
14786 (font_find_for_lface): Use it.
14787 (syms_of_font): Load syms_of_nsfont under NS.
14788 * font.h: Declare nsfont_driver when compiled under NS.
14789 * fontset.c: When compiling under NS, include nsterm.h.
14790 (fontset_from_font): Autoconstruct fontset under NS.
14791 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14792 symbol, document and use it.
14793 (do_switch_frame): When for_deletion under Cocoa, add
14794 Fraise_frame(Qnil).
14795 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14796 (x_get_arg): Allow "yes" and "no" as boolean values.
14797 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14798 Qright under Cocoa.
14799 (focus-follows-mouse): Default to 0 under NS.
14800 * frame.h (enum output_method): Add output_ns.
14801 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14802 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14803 (FRAME_WINDOW_P): NS-specific definition.
14804 * fringe.c (max_used_fringe_bitmap): Make public.
14805 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14806 (getloadavg): Use NeXT code under descendant OS's.
14807 * image.c (includes and header section, x_create_bitmap_from_data)
14808 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14809 (image_background_transparent, x_clear_image_1)
14810 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14811 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14812 (x_to_xcolors, x_from_xcolors, x_disable_image)
14813 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14814 other GUIs, including XPM support using code originally written for
14815 Carbon GUI.
14816 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14817 using NS API.
14818 (image_ascent): Use font metrics macros instead of direct struct field
14819 access.
14820 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14821 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14822 Also, handle NS as GTK for menu bar purposes.
14823 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14824 toolkit where they differ.
14825 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14826 use cachelist, still needed under NS.
14827 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14828 (struct widget_value): Define it here for menu.c.
14829 * keymap.c (includes): Include modifier internals.
14830 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14831 NS.
14832 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14833 support for preferring sequences using certain modifiers, specified by
14834 the FIRSTONLY argument.
14835 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14836 under NS GNUstep implementation.
14837 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14838 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14839 * menu.c: Include nsterm.h under NS.
14840 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14841 (free_menubar_widget_tree_value, update_submenu_strings)
14842 (find_and_call_menu_selection): Treat NS as X and NT.
14843 (find_and_return_menu_selection): New function, used for popup menus.
14844 * nsgui.h:
14845 * nsterm.h:
14846 * nsfns.m:
14847 * nsimage.m:
14848 * nsmenu.m:
14849 * nsselect.m:
14850 * nsterm.m: New files.
14851 * process.c (wait_reading_process_output): Under NS, call ns_select()
14852 instead of plain select().
14853 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14854 beginning of buffer.
14855 * sysselect.h (init_process): Rename when compiling under Cocoa to
14856 avoid name conflict.
14857 * termhooks.h (display_info): Add ns_display_info to union.
14858 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14859 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14860 COCOA environment.
14861 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14862 unexec() signature. (Note, this will dump, but the resulting file
14863 crashes; unexosx is used instead; keeping around for reference and
14864 possible aid in getting dump working under GNUstep.)
14865 * w32gui.h (button_type, widget_value): Remove definitions (now in
14866 keyboard.h).
14867 * window.c: Include nsterm.h when compiling under NS.
14868 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14869 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14870 other GUI windowing systems.
14871 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14872 GTK.
14873 (x_consider_frame_title): Under NS, set icon type and frame
14874 modified-state indicator; use ns_set_name_as_filename() when using
14875 formatted title.
14876 (update_window_cursor): Make public when compiling under NS.
14877 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14878 (hourglass_atimer, Vhourglass_delay
14879 * xfaces.c (header section, init_frame_faces, clear_font_table)
14880 (defined_color, unload_color, x_face_list_fonts)
14881 (prepare_face_for_display): Add NS support parallel to other GUIs.
14882 Emulate GCs like other non-X GUIs.
14883 (split_font_name): Don't lowercase font name under NS.
14884 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14885 under NS.
14886 * s/darwin.h: Add support for compilation under NS.
14887
148882008-07-15 Jason Rumney <jasonr@gnu.org>
14889
14890 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14891 (w32_show_hourglass): Rename from show_hourglass.
14892 (w32_hide_hourglass): Rename from hide_hourglass.
14893 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14894 (Vhourglass_delay): Declare extern.
14895 (hourglass_started): Remove.
14896
14897 * xdisp.c (Vhourglass_delay): Remove static.
14898 (hourglass_started, start_hourglass, cancel_hourglass):
14899 Don't include these versions on WINDOWSNT.
14900
149012008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14902
14903 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14904 variables (formerly in xfns.c).
14905 (show_hourglass, hide_hourglass): New prototypes (same).
14906 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14907 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14908 in xfns.c).
14909 (syms_of_xdisp): Declare/initialize display-hourglass,
14910 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14911 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14912 formerly in xfns.c.
14913 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14914 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14915 (start_hourglass, cancel_hourglass): Remove.
14916 (show_hourglass, hide_hourglass): Remove prototypes and static
14917 modifiers.
14918 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14919 hourglass_atimer, hourglass_shown_p declaration/initialization.
14920 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14921 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14922 (start_hourglass, cancel_hourglass): Remove.
14923 (show_hourglass, hide_hourglass): Remove prototypes and static
14924 modifiers.
14925 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14926 hourglass_atimer, hourglass_shown_p declaration/initialization.
14927 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14928 (DEFAULT_HOURGLASS_DELAY): Remove.
14929 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14930 hourglass_shown_p declaration/initialization.
14931
149322008-07-14 Jason Rumney <jasonr@gnu.org>
14933
14934 * w32fns.c (w32_get_arg): Remove wrapper function.
14935 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14936 directly.
14937 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14938
149392008-07-14 Kenichi Handa <handa@m17n.org>
14940
14941 * xfont.c (xfont_open): Add workaround for X's bug.
14942
149432008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14944
14945 * fontset.c: Include <stdio.h> unconditionally.
14946
149472008-07-13 Michael Albinus <michael.albinus@gmx.de>
14948
14949 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14950 for filtering.
14951
149522008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14953
14954 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14955
14956 * m/macppc.h:
14957 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14958
c4cc8b9a 14959 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14960 (SPECIAL_EMACS_INT):
14961 * m/ia64.h (SPECIAL_EMACS_INT):
14962 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14963 * s/gnu.h (NLIST_STRUCT):
14964 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14965 * s/gnu-linux.h (LINUX):
14966 * s/msdos.h (HAVE_FACES):
14967 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14968
14969 * systty.h:
14970 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14971 anymore.
14972
149732008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14974
14975 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14976 always defined as int.
14977
14978 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14979 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14980 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14981 * s/freebsd.h (HAVE_WAIT_HEADER):
14982 * s/bsd-common.h (HAVE_UNION_WAIT):
14983 * s/aix4-2.h (HAVE_WAIT_HEADER):
14984 * m/mips.h (HAVE_UNION_WAIT):
14985 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14986 (COFF, static): Do not define, they are undefined later in the file.
14987
14988 * process.c (update_status): Don't use a union.
14989 (status_convert):
14990 (sigchld_handler): Use int instead of WAITTYPE.
14991
149922008-07-12 Chong Yidong <cyd@stupidchicken.com>
14993
14994 * indent.c (Fvertical_motion): Restore hscroll before moving to
14995 goal column.
14996
149972008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14998
14999 * lisp.h: Remove left over code.
15000
150012008-07-11 Andreas Schwab <schwab@suse.de>
15002
15003 * lisp.h: Fix logic in last change.
15004
15005 * menu.h: New file.
15006 * menu.c: Include it.
15007 * xmenu.c: Likewise.
15008 * Makefile.in: Update dependencies.
15009
150102008-07-11 Kenichi Handa <handa@m17n.org>
15011
15012 * fontset.c (fontset_from_font): Cancel the previous change.
15013
150142008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15015
15016 * lisp.h:
15017 * w32heap.c:
15018 * emacs.c:
15019 * alloc.c: Replace all references of NO_UNION_TYPE with
15020 USE_LISP_UNION_TYPE.
15021
15022 * m/xtensa.h (NO_UNION_TYPE):
15023 * m/vax.h (NO_UNION_TYPE):
15024 * m/template.h (NO_UNION_TYPE):
15025 * m/sparc.h (NO_UNION_TYPE):
15026 * m/mips.h (NO_UNION_TYPE):
15027 * m/macppc.h (NO_UNION_TYPE):
15028 * m/m68k.h (NO_UNION_TYPE):
15029 * m/iris4d.h (NO_UNION_TYPE):
15030 * m/intel386.h (NO_UNION_TYPE):
15031 * m/ibms390x.h (NO_UNION_TYPE):
15032 * m/ibms390.h (NO_UNION_TYPE):
15033 * m/ibmrs6000.h (NO_UNION_TYPE):
15034 * m/ia64.h (NO_UNION_TYPE):
15035 * m/hp800.h (NO_UNION_TYPE):
15036 * m/arm.h (NO_UNION_TYPE):
15037 * m/amdx86-64.h (NO_UNION_TYPE):
15038 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
15039 defining it the same.
15040
150412008-07-10 Chong Yidong <cyd@stupidchicken.com>
15042
15043 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
15044
150452008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15046
15047 * fileio.c:
50426a04 15048 * sysdep.c:
aac0c6e3
MR
15049 * systty.h:
15050 * m/ibmrs6000.h:
15051 * m/iris4d.h:
15052 * s/aix4-2.h:
15053 * s/freebsd.h:
15054 * s/gnu-linux.h:
15055 * s/hpux10-20.h:
15056 * s/hpux11.h:
15057 * s/netbsd.h:
15058 * s/sol2-3.h:
15059 * s/sol2-4.h:
15060 * s/sol2.h:
15061 * s/usg5-4.h:
15062 * s/vms.h: Remove references to unused variables.
15063
150642008-07-10 Andreas Schwab <schwab@suse.de>
15065
15066 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
15067 pattern before matching the generic family.
15068
150692008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15070
15071 * unexec.c:
15072 * s/vms.h:
15073 * s/usg5-4-2.h:
15074 * s/sol2-5.h:
15075 * s/freebsd.h:
15076 * s/darwin.h: Remove dead code.
15077
15078 * m/template.h:
15079 * m/sparc.h:
15080 * m/mips.h:
15081 * m/m68k.h:
15082 * m/iris4d.h:
15083 * m/intel386.h:
15084 * m/ibms390x.h:
15085 * m/ibms390.h:
15086 * m/ia64.h:
15087 * m/hp800.h:
15088 * m/arm.h:
15089 * m/amdx86-64.h: Remove dead code and references to unused
15090 and compiler defined symbols.
15091
15092 * unexmips.c:
15093 * unexelf.c: Remove references to desupported systems.
15094
15095 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
15096
15097 * m/powermac.h: Remove boilerplate comments.
15098 (NO_REMAP): Remove unused definition.
15099
15100 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
15101 define them.
15102
151032008-07-10 Kenichi Handa <handa@m17n.org>
15104
15105 * xfont.c (xfont_open): Log the reason of failure.
15106
151072008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
15108
15109 * fontset.c (fontset_get_font_group):
15110 * font.c (font_check_otf): Specify argument types.
15111
151122008-07-09 Kenichi Handa <handa@m17n.org>
15113
15114 * coding.c (detect_coding_utf_8): Set detect_info->found only when
15115 non-ASCII char is found.
15116
15117 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
15118 (reorder_font_vector): Change the arg preferred_family to font.
15119 Prefer the spec matching with font.
15120 (fontset_get_font_group): New function.
15121 (fontset_find_font): Change the format of an element of a realized
15122 fontset. Use fontset_get_font_group.
15123 (fontset_font): Try the current fontset, the default fontset, the
15124 fallbacks of the current fontset, and the fallbacks of the default
15125 fontset in this order.
15126 (face_for_char): Delete the shortcut to use the current font.
15127 (fontset_from_font): Don't set fonts for Latin in the fontset.
15128
15129 * font.h (font_make_object, font_match_p): Adjust prototypes.
15130
15131 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
15132
15133 * font.c (font_make_object): New arg entity and pixelsize.
15134 (font_check_otf_features, font_check_otf): New functions.
15135 (font_match_p): Check :lang, :script, and :otf properties.
15136
15137 * xfont.c (xfont_open): Adjust it for the change of
15138 font_make_object.
15139 (xfont_text_extents): Fix initial setting of metrics.
15140
15141 * ftfont.c (struct ftfont_info): New member index, delete member
15142 fc_charset_idx. Make the member order compatible with struct
15143 xftfont_info.
15144 (fc_charset_table): Change charset names to registry names.
15145 (ftfont_pattern_entity): Delete the args registry and
15146 fc_charset_idx. Change the value of :font-entity property
15147 to (FONTNAME . INDEX). Always set :registry property to
15148 `iso10646-1'.
15149 (struct ftfont_cache_data): New struct.
15150 (ftfont_lookup_cache): New arg for_face.
15151 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
15152 (ftfont_driver): Set the member otf_capability.
15153 (ftfont_get_charset): Adjust it for the change of
15154 fc_charset_table.
15155 (OTF_TAG_SYM): New macro.
15156 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
15157 for the change of fc_charset_table.
15158 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
15159 ftfont_pattern_entity. Add FC_INDEX to objset.
15160 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
15161 and ftfont_pattern_entity.
15162 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
15163 font_make_object, struct ftfont_info.
15164 (ftfont_has_char): Use ftfont_get_fc_charset.
15165 (ftfont_otf_features, ftfont_otf_capability): New functions.
15166 (ftfont_shape): Use ftfont_get_otf.
15167 (ftfont_text_extents): Fix initial setting of metrics.
15168
15169 * xftfont.c (struct xftfont_info): New member ft_size. Make the
15170 member order compatible with struct ftfont_info.
15171 (xftfont_open): Add FC_CHARSET to the pattern. Set
15172 xftfont_info->ft_size. Don't unlock the face. Check BDF
15173 properties if appropriate.
15174 (xftfont_close): Unlock the face.
15175 (xftfont_anchor_point, xftfont_shape): Deleted.
15176 (syms_of_xftfont): Don't set members anchor_point and shape of
15177 xftfont_driver.
15178
15179 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
15180 font_make_object.
15181
15182 * w32font.c (w32font_open): Adjust it for the change of
15183 font_make_object.
15184 (w32font_open_internal): Don't set properties of font_object here.
15185
151862008-07-08 Chong Yidong <cyd@stupidchicken.com>
15187
15188 * macfns.c (x_create_tip_frame):
15189 * w32fns.c (x_create_tip_frame):
15190 * xfns.c (x_create_tip_frame): Pass parameter argument to
15191 face-set-after-frame-default.
15192
15193 * xfaces.c (Finternal_merge_in_global_face): Save merged
15194 attributes for the default face back into the face vector.
15195
151962008-07-08 Andreas Schwab <schwab@suse.de>
15197
15198 * fontset.h: Declare fontset_from_font. Don't declare
15199 new_fontset_from_font and fontset_from_font_name.
15200 * xterm.c: Include "fontset.h".
15201 * Makefile.in (xterm.o): Update dependencies.
15202
152032008-07-08 Glenn Morris <rgm@gnu.org>
15204
15205 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
15206 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
15207
152082008-07-07 Chong Yidong <cyd@stupidchicken.com>
15209
15210 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
15211 (x_set_frame_parameters): Don't bind it.
15212
152132008-07-07 Juanma Barranquero <lekktu@gmail.com>
15214
15215 * w32fns.c (map_w32_filename): Declare extern.
15216
152172008-07-07 Jason Rumney <jasonr@gnu.org>
15218
15219 * w32term.c (WS_EX_LAYERED): Define if not already.
15220
152212008-07-06 Chong Yidong <cyd@stupidchicken.com>
15222
15223 * xfaces.c (set_font_frame_param): Don't try to set the font
15224 parameter if it is still unspecified in the lface.
15225
152262008-07-05 Chong Yidong <cyd@stupidchicken.com>
15227
15228 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
15229 face if it didn't already exist.
15230
15231 * xdisp.c (try_window_id): Give up if word-wrapping is on.
15232
152332008-07-05 Andreas Schwab <schwab@suse.de>
15234
15235 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
15236
152372008-07-05 Chong Yidong <cyd@stupidchicken.com>
15238
15239 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
15240 word-wrapping.
15241 (IT_DISPLAYING_WHITESPACE): New macro.
15242 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
15243 when word-wrapping. Simplify word-wrapping logic. Use correct
15244 pixel positions when saving copies of the iterator.
15245 (display_line): Use proper wrap point if the last character on a
15246 line was preceded by whitespace.
15247
152482008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
15249
15250 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
15251
152522008-07-04 Kenichi Handa <handa@m17n.org>
15253
15254 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
15255
15256 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
15257
152582008-07-02 Jason Rumney <jasonr@gnu.org>
15259
15260 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 15261 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
15262
15263 * xdisp.c (next_element_from_display_vector): Move assignment out
15264 of if statement.
15265
152662008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
15267
15268 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
15269
15270 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
15271 (syms_of_fileio): Initialize and export them.
15272 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
15273
15274 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
15275 (Fsystem_move_file_to_trash): New function.
15276 (syms_of_w32fns): Export it to lisp.
15277
152782008-07-01 Jason Rumney <jasonr@gnu.org>
15279
15280 * w32font.c (w32font_text_extents): Don't count overhang as part
15281 of width.
15282
152832008-06-30 Miles Bader <miles@gnu.org>
15284
15285 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15286 Add `avoid_cursor_p' field.
15287
15288 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15289 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15290 (append_glyph, append_composite_glyph, produce_image_glyph)
15291 (append_stretch_glyph): Initialize avoid_cursor_p.
15292 (get_it_property): Rename from `get_line_height_property'.
15293 (x_produce_glyphs): Use get_it_property.
15294 (handle_line_prefix, push_display_prop): New functions.
15295 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15296 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15297 New variables.
15298 (syms_of_xdisp): Initialize them.
15299
153002008-06-30 Kenichi Handa <handa@m17n.org>
15301
15302 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15303 XftDefaultSubstitute (they are called in XftFontMatch).
15304 (xftfont_open): Fix args to ftfont_font_format.
15305
15306 * ftfont.c (fc_charset_table): New member lang.
15307 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 15308 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
15309 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15310 (ftfont_open): Fix args to ftfont_font_format.
15311 (ftfont_font_format): New arg filename.
15312
153132008-06-30 Chong Yidong <cyd@stupidchicken.com>
15314
15315 * xfaces.c (Finternal_merge_in_global_face): If default face was
15316 modified, realize it again. Update the font face attribute.
15317
153182008-06-29 Jason Rumney <jasonr@gnu.org>
15319
15320 * w32term.c (x_set_frame_alpha): Fix logic.
15321
153222008-06-29 Kenichi Handa <handa@m17n.org>
15323
15324 * fontset.c (Finternal_char_font): Return font-object instead of
15325 font-name.
15326
15327 * composite.c (get_composition_id): Fix the width calculation for TAB.
15328
153292008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15330
15331 * indent.c (Fvertical_motion): Properly handle float column arg.
15332
153332008-06-28 Jason Rumney <jasonr@gnu.org>
15334
15335 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15336 (pfnSetLayeredWindowAttributes): New function pointer.
15337 (w32_initialize): Initialize it when supported.
15338 (x_set_frame_alpha): New function.
15339
15340 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15341 (w32_frame_parm_handlers): Set alpha handler.
15342
15343 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15344
153452008-06-27 Jason Rumney <jasonr@gnu.org>
15346
15347 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15348 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15349 (w32_to_x_charset, x_to_w32_charset)
15350 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15351 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15352 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15353 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15354 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15355 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15356 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15357 (Qw32_charset_unicode): Remove.
15358 (syms_of_w32fns): Update for above changes.
15359
15360 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15361 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15362 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15363 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15364 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15365 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15366 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15367 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15368 (syms_of_w32font): Update for above changes.
15369
153702008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15371
15372 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15373 removed #if.
15374 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15375
153762008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 15377 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
15378
15379 * makefile.w32-in (LOCAL_FLAGS):
15380 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15381
15382 * sysdep.c (_spawnlp, _getpid):
15383 Declare with explicit _cdecl instead of _CRTAPI1.
15384
15385 * editfns.c (Fget_internal_run_time):
15386 Check for WINDOWSNT with #ifdef, not #if.
15387
153882008-06-26 Jason Rumney <jasonr@gnu.org>
15389
15390 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15391
15392 * w32term.c (x_draw_glyph_string_foreground)
15393 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15394 Use FONT_HANDLE macro.
15395 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15396
15397 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15398 (uniscribe_encode_char): Use FONT_HANDLE macro.
15399
15400 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15401 (w32font_text_extents): Use precast w32_font.
15402 (w32font_close): Free cached metrics.
15403 (w32font_open_internal): Allocate space for name on stack.
15404
154052008-06-26 Chong Yidong <cyd@stupidchicken.com>
15406
15407 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15408
154092008-06-26 Jason Rumney <jasonr@gnu.org>
15410
15411 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15412 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15413
154142008-06-26 Juanma Barranquero <lekktu@gmail.com>
15415
15416 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15417
154182008-06-26 Jason Rumney <jasonr@gnu.org>
15419
15420 * w32bdf.c, w32bdf.h: Remove obsolete files.
15421
15422 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15423
15424 * w32gui.h: Don't include w32bdf.h.
15425 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15426 Remove obsolete font support.
15427
15428 * w32font.h (struct w32font_info): Remove compat_w32_font.
15429 Add hfont member.
15430 (FONT_COMPAT): Remove obsolete macro.
15431
15432 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15433 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15434 (w32font_open_internal): Remove compat code. Set new hfont member.
15435 (Fx_select_font): Use new hfont member.
15436
15437 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15438 (uniscribe_encode_char): Use new hfont member.
15439
15440 * w32term.c (x_draw_glyph_string_foreground)
15441 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15442 (x_draw_glyph_string): Use metrics in w32font_info.
15443
154442008-06-26 Kenichi Handa <handa@m17n.org>
15445
15446 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15447
154482008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15449
15450 * unexnext.c:
15451 * m/ews4800.h:
15452 * m/hp9000s300.h:
15453 * m/ibm370aix.h:
15454 * m/mips-siemens.h:
15455 * m/ncr386.h:
15456 * m/next.h:
15457 * m/pmax.h:
15458 * m/powerpcle.h:
15459 * m/tandem-s2.h:
15460 * s/386bsd.h:
15461 * s/bsd386.h:
15462 * s/bsd4-1.h:
15463 * s/bsd4-2.h:
15464 * s/bsdos2-1.h:
15465 * s/bsdos2.h:
15466 * s/bsdos3.h:
15467 * s/bsdos4.h:
15468 * s/nextstep.h:
15469 * s/ultrix4-3.h:
15470 * s/usg5-0.h:
15471 * s/usg5-2-2.h:
15472 * s/usg5-2.h:
15473 * s/usg5-4-3.h:
15474 * s/ux4800.h:
15475 * s/uxpds.h:
15476 * s/uxpv.h: Remove support for obsolete systems.
15477 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 15478 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
15479 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15480 Remove, insert contents in s/aix4-2.h.
15481 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15482 * s/bsd4-3.h: Rename to ...
15483 * s/bsd-common.h: ... this.
15484 * data.c:
15485 * doc.c:
15486 * ecrt0.c:
15487 * emacs.c:
15488 * fileio.c:
15489 * floatfns.c:
15490 * keyboard.c:
15491 * mem-limits.h:
15492 * print.c:
15493 * process.c:
15494 * sysdep.c:
15495 * syssignal.h:
15496 * systty.h:
15497 * syswait.h:
15498 * term.c:
15499 * unexec.c:
15500 * unexelf.c:
15501 * unexhp9k800.c:
15502 * m/hp800.h:
15503 * m/ibmrs6000.h:
15504 * m/mips.h:
15505 * m/vax.h:
15506 * s/darwin.h:
15507 * s/freebsd.h:
15508 * s/gnu.h:
15509 * s/ms-w32.h:
15510 * s/msdos.h:
15511 * s/netbsd.h:
15512 * s/template.h: Remove references to obsolete variables.
15513
15514 * Makefile.in: Add dependencies for all unexec files.
15515 (admindir): Remove unused variable.
15516 (UNEXEC_SRC): Remove references.
15517
155182008-06-25 Chong Yidong <cyd@stupidchicken.com>
15519
15520 * xfns.c (x_default_font_parameter): If Xft is available, first
15521 try Monospace-12 for the default font.
15522
155232008-06-25 Jason Rumney <jasonr@gnu.org>
15524
15525 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15526
155272008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15528
15529 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15530
15531 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15532
155332008-06-25 Juanma Barranquero <lekktu@gmail.com>
15534
15535 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15536 <scroll-conservatively>: Fix typo in docstring.
15537
15538 * xselect.c (Fx_send_client_event): Doc fix.
15539
155402008-06-25 Kenichi Handa <handa@m17n.org>
15541
15542 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15543
15544 * font.c (font_parse_fcname): Remove unused variables.
15545 (font_sort_entites): Delete the arg SPEC. Caller changed.
15546 Fix for the case of ! best_only.
15547 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15548
15549 * lisp.h (Fstring_to_unibyte): EXFUN it.
15550
15551 * character.h (str_to_unibyte): Extern it.
15552
15553 * character.c (str_to_unibyte): New function.
15554
15555 * fns.c (Fstring_to_unibyte): New function.
15556 (syms_of_fns): Defsubr it.
15557
155582008-06-24 Kenichi Handa <handa@m17n.org>
15559
15560 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15561 DPI too.
15562 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15563
155642008-06-24 Andreas Schwab <schwab@suse.de>
15565
15566 * Makefile.in (${lispsource}loaddefs.el): Rename from
15567 ../lisp/loaddefs.el.
15568 (bootstrap-clean): Do what distclean does but don't remove
15569 Makefile.
15570 (distclean): Depend on bootstrap-clean and remove Makefile.
15571
155722008-06-24 Chong Yidong <cyd@stupidchicken.com>
15573
15574 * buffer.h (struct buffer): New member word_wrap.
15575
15576 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15577 word-wrap.
15578 (init_buffer_once): Initialize them.
15579
15580 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15581 line_wrap enum possessing three possible values.
15582
15583 * termopts.h: Replace truncate_partial_width_windows with
15584 Vtruncate_partial_width_windows.
15585
15586 * dispnew.c (direct_output_for_insert): Avoid direct output when
15587 inserting a space with word wrap on.
15588
15589 * indent.c (compute_motion): Obey integer values of
15590 truncate-partial-width-windows.
15591
15592 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15593 replacing truncate_partial_width_windows.
15594 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15595 truncate only if the window width is below that integer.
15596 (start_display, resize_mini_window, produce_stretch_glyph)
15597 (display_string, move_it_in_display_line_to): Use line_wrap.
15598 (back_to_previous_visible_line_start, reseat_1): Reset
15599 string_from_display_prop_p.
15600 (display_line): Extend default face to end of line when wrapping.
15601
156022008-06-24 Kim F. Storm <storm@cua.dk>
15603
15604 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15605 to wrap continued lines at word boundaries.
15606
156072008-06-24 Jason Rumney <jasonr@gnu.org>
15608
15609 * font.c (Ffont_face_attributes): Multiply pixel size before point
15610 conversion to avoid multiplying rounding error.
15611
156122008-06-23 Jason Rumney <jasonr@gnu.org>
15613
15614 * w32term.c (x_draw_glyph_string_background)
15615 (x_draw_glyph_string): Remove old bdf font code.
15616
15617 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15618
156192008-06-22 Kenichi Handa <handa@m17n.org>
15620
15621 * font.c (font_find_for_lface): Try the adstyle specified in
15622 the property of LFACE_FONT of LFACE (if any).
15623
156242008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15625 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15626
15627 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15628
156292008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15630
15631 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15632 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15633 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15634 (witness-emacs): Remove.
15635 (lisp, shortlisp): Move loaddefs.el earlier.
15636 (mostlyclean): Forget about witness-emacs.
15637
156382008-06-22 Glenn Morris <rgm@gnu.org>
15639
15640 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15641 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15642
156432008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15644
15645 * Makefile.in (PRECOMP): Remove.
15646 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15647 (witness-emacs): Run `compile-first'.
15648 (.el.elc): Use the new compile-onefile target.
15649
156502008-06-21 Kenichi Handa <handa@m17n.org>
15651
15652 * xftfont.c (xftfont_open): Handle QCembolden only when
15653 FC_EMBOLDEN is defined.
15654
156552008-06-21 Andreas Schwab <schwab@suse.de>
15656
15657 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15658 (.el.elc): Likewise.
15659
156602008-06-21 Miles Bader <miles@gnu.org>
15661
15662 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15663 build dir, not the lisp source dir.
15664
156652008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15666
15667 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15668 (bootstrapclean): Remove.
15669 (.el.elc): New rule.
15670 (PRECOMP): New var.
15671 (../lisp/subdirs.el): Remove.
15672 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15673 (witness-emacs): New target.
15674 (mostlyclean): Remove witness-emacs as well.
15675 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15676 Add witness-emacs dependency.
15677
156782008-06-20 Chong Yidong <cyd@stupidchicken.com>
15679
15680 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15681 defined by the font.
15682
156832008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15684
15685 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15686 (bootstrap-clean): New target that keeps TAGS around.
15687 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15688 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15689
156902008-06-20 Jason Rumney <jasonr@gnu.org>
15691
15692 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15693 Remove obsolete font code.
15694
15695 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15696 to determine language support.
15697
156982008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15699
15700 * sysdep.c (cfsetspeed): New fun extracted from the code.
15701 (cfmakeraw): Move before first use.
15702
157032008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15704
15705 * sysdep.c (cfmakeraw): Provide fallback implementation.
15706 (serial_configure): Provide fallback implementation of cfsetspeed.
15707
157082008-06-20 Kenichi Handa <handa@m17n.org>
15709
15710 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15711 the pattern.
15712
15713 * fontset.c (fontset_from_font): Copy font_spec before changing
15714 the elements.
15715
15716 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15717
157182008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15719
15720 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15721 for explicit `font' parameters.
15722
15723 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15724
157252008-06-19 Kenichi Handa <handa@m17n.org>
15726
15727 * frame.c: Include <ctype.h>.
15728 (x_set_font_backend): Allow spacing characters in the X resource
15729 for FontBackend.
15730
157312008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15732
15733 * w32fns.c, xfns.c (Qfont_param): New var.
15734 (syms_of_w32fns): Initialize it.
15735 (x_default_font_parameter): Record explicit `font' into
15736 `font-parameter'.
15737
157382008-06-18 Kenichi Handa <handa@m17n.org>
15739
15740 * font.c (font_parse_xlfd): Fix previous change.
15741 (font_parse_fcname): Don't use :fc-unknown-spec.
15742 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15743 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15744 (font_add_log): Prepend the driver name to the resulting fonts.
15745
15746 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15747 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15748 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15749
15750 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15751 (QCembolden): New variables.
15752 (syms_of_xftfont): DEFSYM them.
15753 (xftfont_open): Call XftFontMatch. Don't trust the result of
15754 XftTextExtents8 if the pixel_size is less than 5.
15755
157562008-06-18 Andreas Schwab <schwab@suse.de>
15757
15758 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15759 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15760
157612008-06-18 Jason Rumney <jasonr@gnu.org>
15762
15763 * w32font.c (w32font_list, w32font_match): Add logging.
15764
15765 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15766
157672008-06-17 Chong Yidong <cyd@stupidchicken.com>
15768
15769 * font.c (font_parse_fcname): Store divider characters for
15770 unknown-spec list. For known key symbols, intern using correct
15771 symbol name.
15772
157732008-06-17 Kenichi Handa <handa@m17n.org>
15774
15775 * xfaces.c (realize_default_face): If the frame is not on window
15776 system, set the fontset of face to nil.
15777
157782008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15779
15780 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15781
157822008-06-16 Juanma Barranquero <lekktu@gmail.com>
15783
15784 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15785 (build_font_name_from_vector): Delete externs.
15786
15787 * xfaces.c (struct font_name): Don't declare.
15788
157892008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15790
15791 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15792
157932008-06-16 Chong Yidong <cyd@stupidchicken.com>
15794
15795 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15796
157972008-06-16 Juanma Barranquero <lekktu@gmail.com>
15798
15799 * font.c (Ffont_spec): Fix usage in docstring.
15800 (Ffont_face_attributes): Doc fix.
15801
158022008-06-16 Andreas Schwab <schwab@suse.de>
15803
15804 * font.c (Ffont_face_attributes): Fix definition.
15805
158062008-06-16 Jason Rumney <jasonr@gnu.org>
15807
15808 * font.h (font_style_symbolic_from_value): Remove.
15809
15810 * font.c (font_style_symbolic_from_value): Remove.
15811 (font_style_symbolic): Revert to pre 2008-06-13 version.
15812
15813 * w32font.c (w32_to_fc_weight): New function.
15814 (w32font_full_name, logfont_to_fcname): Use it.
15815
158162008-06-16 Kenichi Handa <handa@m17n.org>
15817
15818 * font.c (font_check_object): Delete it.
15819 (font_clear_cache): Check if a font-object is alive.
15820 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15821 font-object to nil.
15822 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15823 (font_at): Don't call font_check_object.
15824 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15825
158262008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15827
15828 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15829
158302008-06-16 Chong Yidong <cyd@stupidchicken.com>
15831
15832 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15833
158342008-06-15 Chong Yidong <cyd@stupidchicken.com>
15835
15836 * font.c (font_parse_fcname): Only one decimal point.
15837 (font_unparse_fcname): Handle data in family and foundry indices
15838 as symbols, not strings.
15839 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15840
15841 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15842
15843 * font.h (font_unparse_gtkname): Add prototype.
15844
158452008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15846
15847 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15848
158492008-06-15 Andreas Schwab <schwab@suse.de>
15850
15851 * font.c (font_update_drivers): Fix crash when no drivers match.
15852
158532008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15854
15855 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15856 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15857
158582008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15859
15860 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15861
158622008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15863
15864 * process.c (Fserial_process_configure, Fprocess_send_eof):
15865 Use EQ to compare Lisp_Objects.
15866
158672008-06-13 Jason Rumney <jasonr@gnu.org>
15868
15869 * w32fns.c (Fw32_select_font): Remove old font API function.
15870
15871 * w32font.c (logfont_to_fcname): New function.
15872 (Fx_select_font): New font dialog function compatible with
15873 GTK/fontconfig version.
15874
15875 * font.c (font_style_symbolic_from_value): New function.
15876 (font_style_symbolic): Use it.
15877
15878 * font.h (font_style_symbolic_from_value): Declare new function.
15879
158802008-06-13 Juanma Barranquero <lekktu@gmail.com>
15881
15882 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15883 <font-width-table>: Fix typos in docstrings.
15884
158852008-06-13 Daniel Engeler <engeler@gmail.com>
15886
15887 These changes add serial port access.
15888 * process.c: Add HAVE_SERIAL.
15889 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15890 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15891 (list_processes_1, select_wrapper, Fstop_process)
15892 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15893 (status_notify): Modify to handle serial processes.
15894 [HAVE_SERIAL] (Fserial_process_configure)
15895 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15896 New functions.
15897 * process.h (struct Lisp_Process): Add `type'.
15898 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15899 New functions.
15900 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15901 serial ports.
b71ac3dd 15902 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15903 * w32.h: Add FILE_SERIAL.
15904 (struct _child_process): Add ovl_read, ovl_write.
15905
159062008-06-13 Kenichi Handa <handa@m17n.org>
15907
15908 * dispextern.h (enum lface_attribute_index): New member
15909 LFACE_FOUNDRY_INDEX.
15910
15911 * font.c (font_score): Delete arg alternate_families. Check only
15912 weight, slant, width, and size. Ignore the difference of alias
15913 style symbols.
15914 (font_sort_entites): Adjust for the above change. Reflect the
15915 order of font-driver to scores.
15916 (font_list_entities): Don't check alternate_familes here.
15917 (font_clear_prop): Handle foundry.
15918 (font_update_lface): Don't parse "foundry-family" form here.
15919 Handle FONT_FOUNDRY_INDEX.
15920 (font_find_for_lface): Likewise. Handle alternate families here.
15921 If registry is nil, try iso8859-1 and ascii-0.
15922 (font_open_for_lface): Pay attention to size in ENTITY.
15923 (font_open_by_name): Simplify by calling font_load_for_lface.
15924 (free_font_driver_list): Delete it.
15925 (font_update_drivers): Preserve the order of backends.
15926 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15927 of font_score and font_sort_entites.
15928 (font_update_sort_order): Likewise.
15929
15930 * xfaces.c (LFACE_FOUNDRY): New macro.
15931 (check_lface_attrs): Check foundry.
15932 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15933 (merge_face_vectors): Check foundry.
15934 (merge_face_ref): Likewise.
15935 (Finternal_set_lisp_face_attribute): Likewise.
15936 (x_update_menu_appearance): Likewise.
15937 (Finternal_get_lisp_face_attribute): Likewise.
15938 (lface_hash): Likewise.
15939 (lface_same_font_attributes_p): Likewise.
15940 (x_supports_face_attributes_p): Likewise.
15941 (tty_supports_face_attributes_p): Likewise.
15942 (Finternal_set_alternative_font_family_alist): Intern strings.
15943 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15944 (realize_default_face): Set LFACE_FOUNDRY (lface).
15945
15946 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15947 font-driver at first.
15948
15949 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15950
159512008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15952
15953 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15954
159552008-06-12 Jim Meyering <meyering@redhat.com>
15956
15957 Make unexec_free handle NULL the same way free does.
15958 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15959
159602008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15961
15962 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15963 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15964 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15965 (WEAK_ALIAS): Simplify.
15966 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15967 when searching a unibyte buffer.
15968
159692008-06-12 Chong Yidong <cyd@stupidchicken.com>
15970
15971 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15972
159732008-06-12 Juanma Barranquero <lekktu@gmail.com>
15974
15975 * w32font.c: Include ctype.h.
15976
159772008-06-11 Jason Rumney <jasonr@gnu.org>
15978
15979 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15980 misreported as space.
15981 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15982 as aliases for registry iso10646-1.
15983
159842008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15985
15986 * buffer.c (clone_per_buffer_values): Skip `name'.
15987
159882008-06-11 Chong Yidong <cyd@stupidchicken.com>
15989
15990 * font.c (font_parse_fcname): Fix last change; accept decimal
15991 points in font size.
15992
159932008-06-10 Jason Rumney <jasonr@gnu.org>
15994
15995 * w32uniscribe.c (add_opentype_font_name_to_list):
15996 Skip non unicode fonts.
15997
159982008-06-10 Chong Yidong <cyd@stupidchicken.com>
15999
16000 * xfns.c (Fx_font_dialog): New function.
16001
16002 * gtkutil.c (xg_dialog_response_cb): Rename from
16003 xg_file_response_callback.
16004 (pop_down_dialog): Rename from pop_down_file_dialog.
16005 (xg_get_file_name): Callers changed.
16006 (xg_get_font_name): New function.
16007
16008 * gtkutil.h (xg_get_font_name): Insert prototype.
16009
160102008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16011
16012 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
16013 x_underline_minimum_display_offset.
16014 (syms_of_xdisp): Declare it here rather than in xterm.c.
16015 * dispextern.h (underline_minimum_offset): Declare it.
16016 * w32term.c (x_draw_glyph_string): Use it.
16017 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
16018 (syms_of_xterm): Don't declare it any more.
16019 (x_draw_glyph_string): Adjust to the new name.
16020
8719abec 160212008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
16022
16023 * xterm.c (x_underline_minimum_display_offset): New var.
16024 (x_draw_glyph_string): Use it.
16025 (syms_of_xterm): Declare it.
16026
160272008-06-10 Chong Yidong <cyd@stupidchicken.com>
16028
16029 * font.c (font_parse_fcname): Accept GTK-style font names too.
16030
160312008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16032
16033 * dired.c (file_name_completion): Don't return t if the match is exact
16034 but with different capitalization.
16035 * minibuf.c (Ftry_completion): Simplify.
16036
16037 * window.c (Vwindow_point_insertion_type): New var.
16038 (set_window_buffer): Use it.
16039 (syms_of_window): Init and export it to Lisp.
16040
160412008-06-10 Kenichi Handa <handa@m17n.org>
16042
16043 * font.h (font_intern_prop): Prototype adjusted.
16044
16045 * font.c (font_intern_prop): New arg force_symbol.
16046 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
16047 Adjust for the change of font_intern_prop.
16048
16049 * ftfont.c (ftfont_pattern_entity):
16050 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
16051 (w32_registry):
16052 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
16053 the change of font_intern_prop.
16054
160552008-06-09 Juanma Barranquero <lekktu@gmail.com>
16056
16057 * w32menu.c (digest_single_submenu): Declare extern.
16058
160592008-06-09 Jason Rumney <jasonr@gnu.org>
16060
16061 * w32term.c (x_make_frame_visible): Use alternate restore flags.
16062
16063 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
16064 (parse_single_submenu): Remove.
16065 (digest_single_submenu): Remove.
16066 (syms_of_w32menu): Don't initialise variables that have moved
16067 to menu.c.
16068 (set_frame_menubar): Sync with version in xmenu.c.
16069 (w32_menu_show): Sync with xmenu_show in xmenu.c.
16070
16071 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
16072 Make static again.
16073
160742008-06-09 Jason Rumney <jasonr@gnu.org>
16075
16076 Changes to w32 files related to the move of common menu code
16077 to menu.c on 2008-06-08 by Chong Yidong.
16078
16079 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
16080 defs to w32gui.h.
16081 (single_keymap_panes, push_menu_item, push_menu_pane):
16082 Make globally visible.
16083
16084 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
16085 (local_free, malloc_widget_value, free_widget_value)
16086 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
16087 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
16088 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
16089 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
16090 (menu_items, menu_items_allocated, menu_items_used)
16091 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
16092 (init_menu_items, finish_menu_items, discard_menu_items)
16093 (grow_menu_items, push_submenu_start, push_submenu_end)
16094 (push_left_right_boundary, push_menu_pane, push_menu_item)
16095 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
16096 (free_menubar_widget_tree_value, parse_single_submenu)
16097 (update_submenu_strings): Remove functions.
16098 (xmalloc_widget_value): Remove and declare extern.
16099
16100 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
16101 (OBJ1): Build it.
16102
16103 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
16104 (local_heap, local_alloc, local_free, malloc_widget_value)
16105 (free_widget_value): Define here.
16106
161072008-06-09 Kenichi Handa <handa@m17n.org>
16108
16109 * font.h (Qascii_0): Extern it.
16110
16111 * font.c (Qascii_0): New variable.
16112 (syms_of_font): DEFSYM it.
16113 (font_open_by_name): If the registry "iso8859-1" fails, try also
16114 "ascii-0".
16115
16116 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
16117
161182008-06-08 Kenichi Handa <handa@m17n.org>
16119
16120 * .gdbinit (xfont): New command.
16121
161222008-06-08 Andreas Schwab <schwab@suse.de>
16123
16124 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
16125 * Makefile.in (menu.o): Update dependencies.
16126
16127 * Makefile.in (obj): Always add menu.o.
16128 * emacs.c (main): Always call syms_of_menu.
16129 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
16130
161312008-06-08 Chong Yidong <cyd@stupidchicken.com>
16132
16133 * Makefile.in: Compile menu.c.
16134
16135 * lisp.h: Declare syms_of_menu.
16136
16137 * emacs.c (main): Call syms_of_menu.
16138
16139 * keyboard.h: Relocate platform-independent menu definitions from
16140 xmenu.c.
16141
16142 * menu.c: New file. Relocate platform-independent menu
16143 definitions from xmenu.c. Suggested by Adrian Robert.
16144
16145 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 16146 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
16147 (menu_items_used, menu_items_n_panes)
16148 (menu_items_submenu_depth): Move to keyboard.h.
16149 (init_menu_items, finish_menu_items, unuse_menu_items)
16150 (discard_menu_items, restore_menu_items, save_menu_items)
16151 (grow_menu_items, push_submenu_start, push_submenu_end)
16152 (push_left_right_boundary, push_menu_pane, push_menu_item)
16153 (keymap_panes, single_keymap_panes, single_menu_item)
16154 (list_of_panes, list_of_items, find_and_call_menu_selection)
16155 (xmalloc_widget_value, free_menubar_widget_value_tree)
16156 (parse_single_submenu, digest_single_submenu)
16157 (update_submenu_strings): Move to menu.c.
16158
161592008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
16160
16161 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
16162
161632008-06-06 Miles Bader <miles@gnu.org>
16164
16165 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
16166 face, not frame default.
16167
161682008-06-05 Martin Rudalics <rudalics@gmx.at>
16169
16170 * window.c (pop_up_windows, pop_up_frames)
16171 (display_buffer_reuse_frames, Vpop_up_frame_function)
16172 (Vdisplay_buffer_function, Veven_window_heights)
16173 (Vspecial_display_buffer_names, Vspecial_display_regexps)
16174 (Vspecial_display_function, Vsame_window_buffer_names)
16175 (Vsame_window_regexps, split_height_threshold)
16176 (Vsplit_window_preferred_function): Move those vars to window.el.
16177 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
16178 (Fdisplay_buffer): Move those functions to window.el.
16179 (syms_of_window): Remove corresponding declarations.
16180 (display_buffer): New function.
16181 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
16182 * dispnew.c (Flast_nonminibuf_frame): New function.
16183 * buffer.c (Fpop_to_buffer): Move to window.el.
16184
161852008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16186
16187 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
16188
161892008-06-05 Kenichi Handa <handa@m17n.org>
16190
16191 * coding.c (detect_coding): Fix previous change.
16192 (detect_coding_system): Likewise.
16193
161942008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16195
16196 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
16197
16198 * keymap.c (Vminibuffer_local_filename_must_match_map):
16199 Rename from Vminibuffer_local_must_match_filename_map.
16200 (syms_of_keymap):
16201 * minibuf.c (Fcompleting_read): Adjust accordingly.
16202 * commands.h: Rename declaration as well.
16203
162042008-06-05 Kenichi Handa <handa@m17n.org>
16205
16206 * font.c (Ffont_spec): Don't use font_parse_family_registry for
16207 family name.
16208 (Ffont_put): Likewise.
16209
16210 * fontset.c (fontset_find_font): Call font_open_for_lface with the
16211 current font-spec.
16212
16213 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
16214 is unspecified.
16215
16216 * xfaces.c (realize_x_face): If the font-related face attributes
16217 are the same as those of default face, realize a new fontset from
16218 default->fontset.
16219 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
16220
162212008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16222
16223 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
16224 (move_it_in_display_line): New wrapper.
16225
16226 * window.c (window_scroll_pixel_based_preserve_x)
16227 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
16228 (window_scroll_pixel_based, window_scroll_line_based):
16229 Use them to preserve column positions.
16230 (syms_of_window): Initialize them.
16231
16232 * indent.c (Fvertical_motion): Extend first arg to allow passing an
16233 (HPOS . VPOS) pair.
16234
16235 * dispextern.h (move_it_in_display_line): Declare.
16236
162372008-06-05 Juanma Barranquero <lekktu@gmail.com>
16238
16239 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
16240 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
16241 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
16242
162432008-06-04 Juanma Barranquero <lekktu@gmail.com>
16244
16245 * window.c (Fset_window_parameter): Doc fix.
16246 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
16247
162482008-06-04 Joakim Verona <joakim@verona.se>
16249
16250 * window.h (struct window): Add new member window_parameters.
16251
16252 * window.c (Fwindow_parameters, Fwindow_parameter)
16253 (Fset_window_parameter): New defuns.
16254 (syms_of_window): Defsubr the new defuns.
16255 (make_window): Initialize window_parameters to nil.
16256
162572008-06-04 John Paul Wallington <jpw@pobox.com>
16258
16259 * eval.c (Fdefmacro): Doc fix.
16260
162612008-06-04 Kenichi Handa <handa@m17n.org>
16262
16263 * coding.c (detect_coding): Fix handling of coding->head_ascii.
16264 Be sure to call setup_coding_system when we find a proper coding system.
16265 (detect_coding_system): Fix handling of coding->head_ascii.
16266
162672008-06-03 Andreas Schwab <schwab@suse.de>
16268
16269 * font.c (font_prop_validate_spacing): Fix last change.
16270
162712008-06-03 Kenichi Handa <handa@m17n.org>
16272
16273 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
16274 (font_parse_fcname): Fix handling of unknown key.
16275
16276 * xfont.c (xfont_list): Try an alias.
16277
16278 * charset.c (char_charset): Return NULL if the arg charset_list is
16279 specified and C doesn't belong to any of them.
16280
162812008-06-02 Chip Coldwell <coldwell@redhat.com>
16282
16283 * font.c (font_pixel_size): Don't take cdr of an integer.
16284
162852008-06-02 Jim Meyering <meyering@redhat.com>
16286
16287 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16288 * alloc.c (xfree): Return right away for a NULL arg.
16289 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16290 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16291 * mac.c (create_apple_event_from_event_ref): Likewise.
16292 (create_apple_event_from_drag_ref, cfstring_create_normalized):
16293 Likewise.
16294 * doprnt.c (doprnt1): Likewise.
16295 * frame.c (frame): Likewise.
16296 * keyboard.c (wipe_kboard): Likewise.
16297 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16298 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16299 * term.c (tty_default_color_capabilities, maybe_fatal)
16300 (delete_tty): Likewise.
16301 * w16select.c (string): Likewise.
16302 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16303 * w32bdf.c (w32_free_bdf_font): Likewise.
16304 * w32fns.c (w32_unload_font): Likewise.
16305 * w32font.c (w32font_close): Likewise.
16306 * window.c (size_window): Likewise.
16307 * xselect.c (receive_incremental_selection): Likewise.
16308 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16309 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16310 * w32.c (stat): Likewise.
16311
16312 Remove useless if-before-free tests.
16313 * editfns.c (Fset_time_zone_rule): Likewise.
16314 * lread.c (nosuffix): Likewise.
16315 * ralloc.c (get_bloc): Likewise.
16316 * regex.c (reg_free): Likewise.
16317 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16318 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16319 * xsmfns.c (smc_save_yourself_CB): Likewise.
16320
163212008-06-02 Kenichi Handa <handa@m17n.org>
16322
16323 * font.c (font_find_for_lface): Handle float font size.
16324 (font_open_for_lface): Likewise.
16325
16326 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16327 comparing the properties.
16328
163292008-06-01 Jason Rumney <jasonr@gnu.org>
16330
16331 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16332 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16333 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16334 Don't add empty script list.
16335 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16336
163372008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16338
16339 * Makefile.in (dot, dotdot): Remove, update users.
16340 ".." has been used elsewhere in the file for a long time.
16341 (LIBXT_STATIC): Remove conditional based on unused variable.
16342
163432008-06-01 Miles Bader <miles@gnu.org>
16344
16345 * xfaces.c (Vface_remapping_alist): New variable.
16346 (syms_of_xfaces): Initialize it.
16347 (enum named_merge_point_kind): New type.
16348 (struct named_merge_point): Add `named_merge_point_kind' field.
16349 (push_named_merge_point): Make cycle detection respect different
16350 named-merge-point kinds.
16351 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16352 Remove face-name alias resolution.
16353 (lface_from_face_name): New definition using
16354 `lface_from_face_name_no_resolve'.
16355 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16356 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16357 (get_lface_attributes): New definition that layers face-remapping on
16358 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16359 (lookup_basic_face): New function.
16360 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16361 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16362 `get_lface_attributes'.
16363 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16364 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16365 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16366
16367 * xdisp.c (init_iterator): Pass base_face_id through
16368 `lookup_basic_face' when we actually use it as a face-id.
16369 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16370 DEFAULT_FACE_ID.
16371
16372 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16373 lookup the initial face-id.
16374
16375 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16376
163772008-06-01 Juanma Barranquero <lekktu@gmail.com>
16378
16379 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16380 (Fremove_text_properties): Fix typos in docstrings.
16381
163822008-05-31 Kenichi Handa <handa@m17n.org>
16383
16384 * font.c (font_list_entities): Fix the car part of data to be
16385 stored in the cache.
16386
16387 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16388
163892008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16390
16391 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16392 Add a `test' argument so another predicate than `equal' can be used.
16393 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16394 (map_char_table): Remove unused vars `c' and `i'.
16395 * lisp.h (Foptimize_char_table): Adjust declaration.
16396 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16397
163982008-05-30 Kenichi Handa <handa@m17n.org>
16399
16400 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16401 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16402 defined.
16403
164042008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16405
16406 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16407 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16408 frame-local settings for the same variable.
16409
164102008-05-30 Kenichi Handa <handa@m17n.org>
16411
16412 * fontset.c (Ffont_info): Move to font.c.
16413 (syms_of_fontset): Delete defsubr of Sfont_info.
16414
16415 * font.c (font_style_to_value, font_score): Delete casting of the
16416 args to xstcasecmp.
16417 (register_font_driver): Increment num_font_drivers only when
16418 registering the driver globally.
16419 (Ffont_info): Move from fontset.c. Handle a font object too.
16420 (syms_of_font): Defsubr Sfont_info.
16421
164222008-05-29 Kenichi Handa <handa@m17n.org>
16423
16424 * coding.h (enum define_coding_utf8_arg_index): New enum.
16425 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16426 coding_attr_utf_bom.
16427 (enum utf_bom_type): Rename from utf_16_bom_type.
16428 (struct utf_16_spec): Adjust for the above change.
16429 (struct coding_system): Add utf_8_bom in `spec' union.
16430
16431 * coding.c (CODING_UTF_8_BOM): New macro.
16432 (enum coding_category): Delete coding_category_utf_8, add
16433 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16434 coding_category_utf_8_sig.
16435 (CATEGORY_MASK_UTF_8): Delete it.
16436 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16437 (CATEGORY_MASK_UTF_8_SIG): New macros.
16438 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16439 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16440 CATEGORY_MASK_UTF_8_SIG.
16441 (CATEGORY_MASK_UTF_8): New macro.
16442 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16443 (detect_coding_utf_8): Check BOM.
16444 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16445 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16446 (encode_coding_utf_16): Likewise.
16447 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16448 (detect_coding, detect_coding_system): Handle utf-8-auto.
16449 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16450 (syms_of_coding): Fix setting up of Vcoding_category_table.
16451
164522008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16453
16454 * process.c (Faccept_process_output): If `millisec' is non-nil,
16455 `seconds' default to 0.
16456 (wait_reading_process_output): Also return non-nil if we read output
16457 from a non-running process.
16458
164592008-05-29 Jason Rumney <jasonr@gnu.org>
16460
16461 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16462 `raster' specified.
16463 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16464 in the uniscribe backend, but disallow any font that has no
16465 unicode subrange support.
16466
164672008-05-29 Juanma Barranquero <lekktu@gmail.com>
16468
16469 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16470 Fix typos in docstrings.
16471
164722008-05-29 Kenichi Handa <handa@m17n.org>
16473
16474 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16475 (Fx_family_fonts): Set frame correctly.
16476
164772008-05-28 Jason Rumney <jasonr@gnu.org>
16478
16479 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16480
164812008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16482
16483 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16484 calling build_annotations.
16485
164862008-05-28 Juanma Barranquero <lekktu@gmail.com>
16487
16488 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16489 (Fencode_coding_string):
16490 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16491 <latin-extra-code-table>: Fix typos in docstrings.
16492 (syms_of_coding) <coding-system-alist>: Doc fix.
16493 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16494
164952008-05-28 Kenichi Handa <handa@m17n.org>
16496
16497 * fontset.c (Ffont_info): Don't call font_close_object.
16498
16499 * font.c (font_parse_family_registry): Use Ffont_put to validate
16500 foundry and family.
16501 (font_delete_unmatched): Don't check spacing.
16502 (font_list_entities): Add spacing to the spec to list fonts.
16503
16504 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16505 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16506
16507 * coding.c (encode_coding_raw_text): Fix previous change.
16508 (encode_coding_object): When the dst_object is a buffer and is
16509 different from src_object, move gap to PT.
16510
165112008-05-27 Chong Yidong <cyd@stupidchicken.com>
16512
16513 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16514
165152008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16516
16517 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16518 all branches. Compute it differently.
16519
16520 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16521
165222008-05-27 Juanma Barranquero <lekktu@gmail.com>
16523
16524 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16525 into "else if () ... else ...".
16526
165272008-05-27 Jason Rumney <jasonr@gnu.org>
16528
16529 * w32font.c (w32font_open_internal): Determine if glyph indices
16530 are likely to work here.
16531
165322008-05-27 Chong Yidong <cyd@stupidchicken.com>
16533
16534 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16535 draw overlap glyphs with appropriate highlighting.
16536
165372008-05-27 Kenichi Handa <handa@m17n.org>
16538
16539 * xfont.c (xfont_open): Fix calculation of font->average_width.
16540
165412008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16542
16543 * casefiddle.c (casify_object): Try to guess better whether the
16544 argument is a byte or a char.
16545
165462008-05-26 Andreas Schwab <schwab@suse.de>
16547
16548 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16549 Always send multiples of format size.
16550
16551 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16552
165532008-05-26 Jason Rumney <jasonr@gnu.org>
16554
16555 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16556 (compute_metrics): Don't set failure if we just cleared the cache.
16557 (w32_weight_table): Remove unused variable.
16558 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16559 backwards compatibility.
16560
165612008-05-25 Kenichi Handa <handa@m17n.org>
16562
16563 * w32term.c (x_draw_glyph_string):
16564 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16565
16566 * xfaces.c: Delete unused function prototypes.
16567 (xstrlwr, font_frame): Delete them.
16568 (clear_face_cache): Delete unused variable.
16569
16570 * xftfont.c (xftfont_open): Delete unused variable.
16571 If underline_thickness is not 1, adjust underline_position.
16572
16573 * ftxfont.c (ftxfont_open): Delete unused variable.
16574
16575 * fontset.c (face_for_char): Optimize for the case of no charset
16576 property.
16577
16578 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16579 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16580 (otf_open, font_otf_capability, generate_otf_features)
16581 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16582 Comment out by surrounding "#if 0" and "#endif" for the moment.
16583 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16584 (syms_of_font): Codes for accessing above commented out.
16585
165862008-05-24 Eli Zaretskii <eliz@gnu.org>
16587
16588 * w32proc.c: Include dispextern.h.
16589
16590 * w32.c: Include dispextern.h.
16591
165922008-05-23 Juanma Barranquero <lekktu@gmail.com>
16593
16594 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16595 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16596 Fix typos in docstrings.
16597
165982008-05-23 Jason Rumney <jasonr@gnu.org>
16599
16600 * xsmfns.c: Remove includes that are already included by config.h.
16601
166022008-05-23 Kenichi Handa <handa@m17n.org>
16603
16604 * charset.c (Qemacs, charset_emacs): New variables.
16605 (char_charset): Fix for non-Unicode characters.
16606 (syms_of_charset): Define charset_emacs.
16607
16608 * w32term.c (x_draw_glyph_string): Be sure to update
16609 s->underline_thickness and s->underline_position. Be sure to draw
16610 underline within the current line area.
16611
16612 * xterm.c (x_draw_glyph_string): Be sure to update
16613 s->underline_thickness and s->underline_position. Be sure to draw
16614 underline within the current line area.
16615
16616 * fontset.c: Delete unused variables and add casting for char *
16617 throughout the file.
16618 (fontset_font): Try the fallback fonts of the current fontset
16619 before consulting the default fontset.
16620
16621 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16622
16623 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16624
166252008-05-22 Jason Rumney <jasonr@gnu.org>
16626
16627 * font.c: Don't include strings.h.
16628
16629 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16630
16631 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16632 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16633 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16634 to call xstrcasecmp.
16635
16636 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16637
16638 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16639
16640 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16641
16642 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16643
166442008-05-22 Kenichi Handa <handa@m17n.org>
16645
16646 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16647
16648 * font.c (font_prop_validate_style): Adjust for the format
16649 change of font_style_table.
16650
16651 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16652 two args.
16653
16654 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16655 two args.
16656
166572008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16658
16659 * minibuf.c (keys_of_minibuf): Delete.
16660 * lisp.h (keys_of_minibuf): Delete.
16661 * emacs.c (main): Don't call keys_of_minibuf.
16662
166632008-05-22 Kenichi Handa <handa@m17n.org>
16664
16665 * ftfont.c (ftfont_resolve_generic_family): Rename from
16666 ftfont_list_generic_family. Return a single family for each
16667 generic family.
16668 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16669 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16670 Call font_add_log.
16671 (ftfont_match): Call font_add_log.
16672
16673 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16674 (FONT_DEBUG): Define it.
16675 (font_add_log): Extern it.
16676 (font_assert): Rename from xassert.
16677
16678 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16679 (xfont_list_family): Call font_add_log.
16680 (xfont_match): Likewise.
16681 (memq_no_quit): Delete.
16682
16683 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16684 call of Ffont_xlfd_name.
16685
16686 * xfaces.c (struct table_entry, slant_table, weight_table)
16687 (swidth_table): Move to font.c.
16688
16689 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16690 xassert are changed to font_assert. Delete many unused variables.
16691 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16692 New variables.
16693 (struct table_entry): Move from xfaces.c and modified.
16694 (weight_table, slant_table, width_table): Move from xfaces.c and
16695 contents adjusted for the change of struct table_entry.
16696 (font_style_to_value, font_style_symbolic): Adjust for the
16697 format change of font_style_table.
16698 (font_parse_family_registry): Don't overwrite existing foundry and
16699 family of font_spec.
16700 (font_score): Fix calculation of diff for sizes.
16701 (font_sort_entites): Call font_add_log.
16702 (font_delete_unmatched): Return a newly created list.
16703 (font_list_entities): Fix previous change. Call font_add_log.
16704 (font_matching_entity, font_open_entity, font_close_entity):
16705 Call font_add_log.
16706 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16707 (Finternal_set_font_style_table): Delete.
16708 (BUILD_STYLE_TABLE): New macro.
16709 (build_style_table): New function.
16710 (Vfont_log, font_log_env_checked): New variables.
16711 (font_add_log): New function.
16712 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16713 Declare Lisp variables "font-weight-table", "font-slant-table",
16714 "font-width-table", and "font-log". Initialize font_style_table.
16715
167162008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16717
16718 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16719
167202008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16721 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16722
16723 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16724 (Vframe_alpha_lower_limit): New variable.
16725 (x_set_alpha): New function.
16726
16727 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16728
16729 * xfns.c (x-create-frame, Qalpha):
16730 Initialize the frame parameter `alpha'.
16731 * xterm.c (OPAQUE, OPACITY): New.
16732 (x_set_frame_alpha): New function.
16733 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16734
16735 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16736 * w32fns.c (w32_frame_parm_handlers): Likewise.
16737
167382008-05-20 Jason Rumney <jasonr@gnu.org>
16739
16740 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16741 truetype fonts to opentype list.
16742
167432008-05-20 Juanma Barranquero <lekktu@gmail.com>
16744
16745 * fontset.c (Ffontset_info): Doc fix.
16746 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16747 <ignore-relative-composition>: Fix typos in docstrings.
16748
16749 * font.c (syms-of-font) <font-encoding-alist>:
16750 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16751 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16752 (Ffont_otf_alternates): Doc fixes.
16753
167542008-05-20 Kenichi Handa <handa@m17n.org>
16755
16756 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16757 font.h through out the file.
16758 (FONT_DRIVERS): Rename from FONTOBJ.
16759 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16760 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16761
16762 * emacs.c (main): Call syms_of_font unconditionally.
16763
16764 * font.h (find_font_encoding): Extern it.
16765
16766 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16767 fontset.c.
194d44e7 16768 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
16769 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16770 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16771 only when HAVE_WINDOW_SYSTEM is defined.
16772 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16773 when HAVE_WINDOW_SYSTEM is defined.
16774
16775 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16776 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16777
16778 * xfaces.c: Include font.h unconditionally.
16779 (merge_face_ref, merge_face_vectors)
16780 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16781
167822008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16783
16784 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16785 indirect_variable.
16786 * eval.c (lisp_indirect_variable): New fun.
16787 (Fuser_variable_p): Use it.
16788
167892008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16790
16791 * lisp.h (indirect_variable):
16792 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16793 Use Lisp_Symbol pointers rather than Lisp_Object.
16794 Adjust callers.
16795 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16796 To this end, change calling-convention.
16797
16798 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16799 if some non-hidden buffers are selected by string&pred.
16800
168012008-05-19 Chong Yidong <cyd@stupidchicken.com>
16802
16803 * process.c (wait_reading_process_output): Always check status
16804 when in batch mode.
16805
168062008-05-19 Kenichi Handa <handa@m17n.org>
16807
16808 * font.c (font_list_entities): Fix handling of cache.
16809 (font_matching_entity): Likewise.
16810
16811 * ftfont.c (cs_iso8859_1): Delete.
16812 (ft_face_cache): New variable.
16813 (struct ftfont_info): New member fc_charset_idx.
16814 (ftfont_build_basic_charsets): Delete.
16815 (fc_charset_table): New variable.
16816 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16817 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16818 Callers changed.
16819 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16820 (ftfont_spec_pattern): New argument fc_charset_idx.
16821 Check registry more rigidly. Change callers.
16822 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16823 change of :font-entity property of the font.
16824
16825 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16826 property of the font.
16827
168282008-05-18 Juanma Barranquero <lekktu@gmail.com>
16829
16830 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16831 (Funencodable_char_position, Fcheck_coding_systems_region)
16832 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16833 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16834 (Ffind_operation_coding_system, Fset_coding_system_priority)
16835 (Fcoding_system_eol_type): Doc fixes.
16836
168372008-05-17 Glenn Morris <rgm@gnu.org>
16838
16839 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16840
168412008-05-16 Eli Zaretskii <eliz@gnu.org>
16842
16843 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16844 and st_gid.
16845
16846 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16847 HAVE_WINDOW_SYSTEM is not defined.
16848
16849 * xfaces.c (merge_face_ref, merge_face_vectors)
16850 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16851 HAVE_WINDOW_SYSTEM is defined.
16852 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16853
168542008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16855
16856 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16857
168582008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16859
16860 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16861
168622008-05-15 Kenichi Handa <handa@m17n.org>
16863
16864 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16865 preference.
16866
168672008-05-15 Glenn Morris <rgm@gnu.org>
16868
16869 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16870
168712008-05-15 Chong Yidong <cyd@stupidchicken.com>
16872
16873 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16874 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16875
16876 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16877
168782008-05-15 Kenichi Handa <handa@m17n.org>
16879
16880 * ftfont.c (ftfont_list): Downcase family name to check generic
16881 families.
16882
16883 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16884 font-spec for QCfont value.
16885
16886 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16887 buffer. Check the return value of it.
16888
168892008-05-14 Jason Rumney <jasonr@gnu.org>
16890
16891 * w32term.c (w32_get_glyph_overhangs): Remove.
16892 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16893
168942008-05-14 Kenichi Handa <handa@m17n.org>
16895
16896 * font.c (font_prop_validate): Make nil a valid value.
16897 (font_clear_cache): Check if the cached vector of entities is nil
16898 or not.
16899
169002008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16901
16902 * emacs.c (main_thread): Conditionalize on
16903 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16904 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16905
16906 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16907 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16908 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16909
169102008-05-14 Kenichi Handa <handa@m17n.org>
16911
16912 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16913 has no corresponding coding system.
16914
169152008-05-14 Jason Rumney <jasonr@gnu.org>
16916
16917 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16918
16919 * w32font.h (w32font_open_internal): Update declaration.
16920
16921 * w32font.c (w32font_open_internal): Change last argument from
16922 w32font_info struct to font object. Fill in font object from
16923 font_entity. Get Outline metrics if possible. Use them to
16924 calculate underline position and thickness. Use xlfd name as name
16925 property. Don't set codepage.
16926 (w32font_open): Pass font_object to w32font_open_internal. Don't
16927 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16928 (w32font_draw): Use s->font.
16929 (clear_cached_metrics): Don't clear non-existent blocks.
16930
16931 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16932 font was not found.
16933 (x_draw_glyph_string): Use underline position and thickness from font.
16934
16935 * w32uniscribe.c (uniscribe_open): Pass font_object to
16936 w32font_open_internal.
16937
169382008-05-14 Kenichi Handa <handa@m17n.org>
16939
16940 These changes are to delete all legacy font-handling codes, and
16941 make Emacs use only font-backends.
16942
16943 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16944 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16945
16946 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16947
16948 * charset.h (Vcharset_non_preferred_head)
16949 (Vcurrent_iso639_language): Extern them.
16950
16951 * charset.c (Vcharset_non_preferred_head): New variable.
16952 (Vcurrent_iso639_language): New variable.
16953 (syms_of_charset): Declare it as a Lisp variable.
16954 (char_charset): Don't check non preferred charsets. As a last
16955 resort, return charset_unicode.
16956 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16957
16958 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16959 conditionals. Don't check enable_font_backend. Delete all codes
16960 used only when USE_FONT_BACKEND is not defined.
16961
16962 * dispextern.h (struct glyph_string): Change type of `font' to
16963 `struct font *'.
16964 (struct glyph_string): New member underline_position and
16965 underline_thickness.
16966 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16967 (struct face): Change type of `font' to `struct font *'. Remove
16968 members `font_name', `font_info_id'.
16969 (per_char_metric, encode_char): Delete externs.
16970 (calc_pixel_width_or_height): Adjust the prototype.
16971
16972 * emacs.c (enable_font_backend): Delete extern.
16973 (main): Don't set enable_font_backend. Don't check the command
16974 line argument "-disable-font-backend".
16975
16976 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16977 (enum font_property_index): New members FONT_DPI_INDEX,
16978 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16979 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16980 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16981 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16982 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16983 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16984 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16985 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16986 (struct font_spec, struct font_entity): New structs.
16987 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16988 (struct font): Many members from old "struct font_info" moved to
16989 here. Members font and entity deleted.
16990 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16991 the new font-related objects.
16992 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16993 (CHECK_FONT_GET_OBJECT): Likewise.
16994 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16995 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16996 (struct font_driver): New members case_sensitive anc check. Type
16997 of the member list and open changed.
16998 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16999 (font_symbolic_width, font_find_object, font_get_spec)
17000 (font_set_lface_from_name): Delete extern.
17001 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
17002
17003 * font.c: Include <strings.h>.
17004 (enable_font_backend): Delete it.
17005 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
17006 (CHECK_VALIDATE_FONT_SPEC): Delete it.
17007 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
17008 (null_string): Delete it.
17009 (null_vector): Make it static.
17010 (font_family_alist): Delete it.
17011 (Qnormal): Extern it.
17012 (QCextra, QClanguage): Delete it.
17013 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
17014 (font_make_spec, font_make_entity, font_make_object)
17015 (font_intern_prop): Renamed from intern_downcase. Don't downcase
17016 the string. Callers changed.
17017 (font_pixel_size): Adjusted for the format change of font-related
17018 objects.
17019 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
17020 (font_style_to_value, font_style_symbolic): New function.
17021 (build_font_family_alist): Delete it.
17022 (font_registry_charsets): Use Fassoc_string instead of
17023 assq_no_quit.
17024 (font_prop_validate_symbol): Don't return null_string.
17025 (font_prop_validate_style): Adjusted for the change of
17026 style-related values in a font vector.
17027 (font_property_table): Delete entries for QClanguage and
17028 QCantialias, add entries for QCavgwidth.
17029 (get_font_prop_index): Delete the 2nd argument FROM.
17030 (font_prop_validate): Arguments changed.
17031 (font_put_extra): Adjusted for the change of font-related objects.
17032 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
17033 (font_parse_fcname, font_unparse_fcname)
17034 (font_prepare_composition): Likewise.
17035 (font_parse_family_registry): Renamed from font_merge_old_spec.
17036 (otf_open): Delete the 1st arg entity.
17037 (font_otf_capability): Adjusted for the above change.
17038 (font_score): New arg alternate_families. Adjusted for the change
17039 of font-related objects.
17040 (font_sort_entites): New arg best_only.
17041 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
17042 Delete them.
17043 (font_match_p): Check alternate families.
17044 (font_find_object): Delete it.
17045 (font_check_object): New function.
17046 (font_clear_cache): Adjusted for the change of font-related objects.
17047 (font_delete_unmatched): New arg.
17048 (font_list_entities): Call font_driver->list with a spec that
17049 doesn't specify style-related properties.
17050 (font_matching_entity): Arguments changed. Caller changed.
17051 (font_open_entity): Adjusted for the change of font-related objects.
17052 (font_close_object, font_has_char, font_encode_char)
17053 (font_get_name, font_get_spec): Likewise.
17054 (font_spec_from_name, font_clear_prop, font_update_lface):
17055 New functions.
17056 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
17057 (font_prepare_for_face, font_done_for_face, font_open_by_name)
17058 (font_at): Adjusted for the change of font-related objects.
17059 (font_range): New function.
17060 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
17061 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
17062 (Fcopy_font_spec, Fmerge_font_spec): New function.
17063 (Ffont_family_list): Renamed from list-families.
17064 (Finternal_set_font_style_table): Arguments changed.
17065 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
17066 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
17067 change of font-related objects.
17068 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
17069
17070 * fontset.h (struct font_info): Delete it. Most members go to
17071 struct font.
17072 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
17073 (enum FONT_SPEC_INDEX): Delete it.
17074 (font_info, list_fonts_func, load_font_func, query_font_func)
17075 (set_frame_fontset_func, find_ccl_program_func)
17076 (get_font_repertory_func, new_fontset_from_font_name): Delete
17077 externs.
17078 (fontset_from_font_name): Extern it.
17079 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
17080 (FONT_INFO_FROM_FACE): Deleted.
17081 (face_for_font): Adjust prototype.
17082
17083 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
17084 conditionals. Don't check enable_font_backend. Delete all codes
17085 used only when USE_FONT_BACKEND is not defined.
17086 (get_font_info_func, list_font_func, load_font_func)
17087 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
17088 (get_font_repertory_func): Delete them.
17089 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
17090 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
17091 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
17092 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
17093 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
17094 (fontset_compare_rfontdef): New function.
17095 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
17096 rfont-defs by qsort. Adjusted for the change of font-group vector.
17097 (load_font_get_repertory): Deleted.
17098 (fontset_find_font): Use new macros to ref/set elements of
17099 font-def and rfont-def.
17100 (fontset_font): Fix the timing of remembering that no font for C.
17101 (free_face_fontset): Do nothing if the face has no fontset.
17102 (face_suitable_for_char_p): Use new macros to ref/set elements of
17103 rfont-def.
17104 (face_for_char): Likewise. Call face_for_char with font_object.
17105 (fs_load_font): Delete. Delete #pragma surrounding it.
17106 (fs_query_fontset): Use strcasecmp instead of strcmp.
17107 (generate_ascii_font_name): Adjusted for the format change of
17108 font-spec.
17109 (Fset_fontset_font): Likewise. Use new macros to set elements of
17110 font-def.
17111 (Fnew_fontset): Use font_unparse_xlfd to generate
17112 FONTSET_ASCII (fontset).
17113 (new_fontset_from_font_name): Deleted.
17114 (fontset_from_font): Renamed from new_fontset_from_font. Check if
17115 a fontset is already created for the font. FIx updating of
17116 Vfontset_alias_alist.
17117 (fontset_ascii_font): Deleted.
17118 (Ffont_info): Adjusted for the format change of font-spec.
17119 (Finternal_char_font): Likewise.
17120 (Ffontset_info): Likewise.
17121 (syms_of_fontset): Don't check load_font_func.
17122
17123 * fns.c (internal_equal): Handle PREV_FONT.
17124
17125 * frame.h: Delete USE_FONT_BACKEND conditional.
17126
17127 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
17128 conditionals. Don't check enable_font_backend. Delete all codes
17129 used only when USE_FONT_BACKEND is not defined.
17130 (x_set_font): Call x_new_font, not x_new_fontset2.
17131 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
17132 already set for the frame.
17133
17134 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
17135 a font-entity by font_make_entity. Use font_intern_prop instead
17136 of intern_downcase. Use FONT_SET_STYLE to set a style-related
17137 font property. If a font is scalable, set avgwidth property to 0.
17138 Set font-entity property by font_put_extra.
17139 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
17140 (ffont_driver): Adjusted for the change of struct font_driver.
17141 (ftfont_spec_pattern): New function.
17142 (ftfont_list): Return a list, not vector.
17143 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
17144 (ftfont_list_family): Don't downcase names.
17145 (ftfont_free_entity): Deleted.
17146 (ftfont_open): Return a font-object. Adjusted for the change of
17147 struct font. Get underline_thickness and underline_position from
17148 font property. Don't update dpyinfo->smallest_font_height and
17149 dpyinfo->smallest_char_width.
17150 (ftfont_close): Don't free `struct font'.
17151 (ftfont_has_char): Adjusted for the format change of font-entity.
17152 (ftfont_encode_char, ftfont_text_extents): Likewise.
17153
17154 * ftxfont.c (ftxfont_list): Return a list, not vector.
17155 (ftxfont_open): Return a font-object. Adjusted for the change of
17156 struct font. Get underline_thickness and underline_position from
17157 font property. Don't update dpyinfo->smallest_font_height and
17158 dpyinfo->smallest_char_width.
17159 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
17160 (ftxfont_draw): Adjusted for the change of struct font.
17161
17162 * image.c (image_ascent): Don't include "charset.h". Include
17163 "character.h" and "font.h".
17164
17165 * lisp.h (enum pvec_type): New member PREV_FONT.
17166 (Fassoc_string): EXFUN it.
17167
17168 * print.c: Include font.h.
17169 (print_object): Handle font-related objects.
17170
17171 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
17172 conditionals. Don't check enable_font_backend. Delete all codes
17173 used only when USE_FONT_BACKEND is not defined.
17174 (handle_auto_composed_prop): Do nothing if it->f is not on a
17175 window system. Check how many following characters can be
17176 displayed by the same font.
17177 (calc_pixel_width_or_height): Type of the 4th arg is changed to
17178 'struct font *'.
17179 (get_char_face_and_encoding): Assign the whole encoding task to
17180 the `encode-char' method of a font driver.
17181 (fill_composite_glyph_string): Adjusted for the change of `struct
17182 face' and `struct glyph_string'.
17183 (fill_glyph_string): Likewise.
17184 (get_per_char_metric): Arguments changed.
17185 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
17186 and `struct glyph_string'.
17187 (produce_stretch_glyph, calc_line_height_property)
17188 (x_produce_glyphs): Likewise.
17189
17190 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
17191 conditionals. Don't check enable_font_backend. Delete all codes
17192 used only when USE_FONT_BACKEND is not defined. Use
17193 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
17194 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
17195 (Qp): Extern them.
17196 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
17197 Deleted.
17198 (struct font_name): Deleted.
17199 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
17200 (compare_fonts_by_sort_order): New function.
17201 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
17202 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
17203 Deleted.
17204 (Fx_family_fonts): Use font_list_entities, and sort fonts by
17205 compare_fonts_by_sort_order.
17206 (Fx_font_family_list): Call Ffont_family_list.
17207 (face_numeric_value, face_numeric_weight, face_numeric_slant)
17208 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
17209 (face_symbolic_slant, face_symbolic_swidth)
17210 (split_font_name_into_vector, build_font_name_from_vector)
17211 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
17212 (font_rescale_ratio, split_font_name, build_font_name)
17213 (free_font_names, sort_fonts, x_face_list_fonts)
17214 (face_font_available_p, sorted_font_list, cmp_font_names)
17215 (font_list_1, concat_font_list, font_list, remove_duplicates):
17216 Deleted.
17217 (Fx_list_fonts): Use Ffont_list.
17218 (LFACE_AVGWIDTH): Deleted.
17219 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
17220 by FONTP.
17221 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
17222 (set_lface_from_font_name): Delete it.
17223 (set_lface_from_font): Renamed from
17224 set_lface_from_font_and_fontset. Caller changed. Don't set
17225 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
17226 for face.
17227 (merge_face_vectors): Copy font-spec if necessary.
17228 Clear properties of the font-spec if necessary.
17229 (merge_face_ref): Clear properties of the font-spec if necessary.
17230 (Finternal_set_lisp_face_attribute): Likewise.
17231 (set_font_frame_param): Use font_load_for_lface to load a
17232 font-object, and call Fmodify_frame_parameters with it.
17233 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
17234 font name by Ffont_xlfd_name.
17235 (Finternal_lisp_face_attribute_values): Don't check QCweight,
17236 QCslant, and QCwidth.
17237 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
17238 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
17239 Compare fonts by EQ.
17240 (lookup_non_ascii_face): Deleted.
17241 (face_for_font): The 2nd argument changed.
17242 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
17243 Check atomic font properties by case insensitive.
17244 (realize_non_ascii_face): Set face->overstrike correctly.
17245 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
17246 (dump_realized_face): Get font name from
17247 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
17248
17249 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
17250 conditionals. Don't check enable_font_backend. Delete all codes
17251 used only when USE_FONT_BACKEND is not defined.
17252 (xic_create_xfontset): Original code deleted and renamed from
17253 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
17254 (x_make_gc): Don't set GCFont in GCs.
17255 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
17256 opened by "fixed".
17257 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
17258 find_ccl_program_func, query_font_func, set_frame_fontset_func,
17259 get_font_repertory_func.
17260
17261 * xfont.c: Include <stdlib.h> and "ccl.h".
17262 (struct xfont_info): New structure.
17263 (xfont_query_font): Deleted.
17264 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17265 moved from xterm.c.
17266 (xfont_driver): Adjusted for the change of struct font_driver.
17267 (compare_font_names): New function.
17268 (xfont_list_pattern): Sort font names case insensitively. Make
17269 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
17270 (xfont_list): Return a list, not vector.
17271 (xfont_match): If the font doesn't have QCname property, generate
17272 a name from the other font properties.
17273 (xfont_open): Return a font-object. Adjusted for the change of
17274 struct font. Get underline_thickness and underline_position from
17275 font property. Don't update dpyinfo->smallest_font_height and
17276 dpyinfo->smallest_char_width.
17277 (xfont_close): Don't free struct font.
17278 (xfont_prepare_face): Adjusted for the change of struct font.
17279 (xfont_done_face): Deleted.
17280 (xfont_has_char): Adjusted for the change of struct font.
17281 (xfont_encode_char, xfont_draw): Likewise.
17282 (xfont_check): New function.
17283
17284 * xftfont.c (xftfont_list): Adjusted for the change of `list'
17285 callback function.
17286 (xftfont_match): Adjusted for the format change of font-entity.
17287 (xftfont_open): Adjusted for the format change of font-entity and
17288 font-object. Adjusted for the change of struct font. Return a
17289 font-object. Don't update dpyinfo->smallest_font_height and
17290 dpyinfo->smallest_char_width.
17291 (xftfont_close): Block input while calling XftFontClose.
17292 (xftfont_prepare_face): Don't block input while calling
17293 xftfont_get_colors. Adjusted for the change of struct font.
17294 (xftfont_shape): Return value of error case fixed.
17295
17296 * xrdb.c (x_load_resources): Don't setup a fontset resource.
17297
17298 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17299 conditionals.
17300 (FONT_WIDTH): Return (f)->max_width.
17301 (struct x_display_info): Delete member `font'.
17302 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17303 (x_find_ccl_program, x_get_font_repertory): Delete externs.
17304 (struct x_output): Change type of `font' to `struct font *'.
17305
17306 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
17307 conditionals. Don't check enable_font_backend. Delete all codes
17308 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
17309 (x_per_char_metric, x_encode_char): Deleted.
17310 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17311 (x_compute_glyph_string_overhangs): Adjusted for the change of
17312 `struct face'.
17313 (x_draw_glyph_string_foreground)
17314 (x_draw_composite_glyph_string_foreground): Likewise.
17315 (x_draw_glyph_string): Likewise. Use font->underline_position and
17316 font->underline_thickness.
17317 (x_new_font): Renamed from x_new_fontset2.
17318 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17319 (x_check_font): Call `check' method of a font driver.
17320 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17321 (x_query_font, x_get_font_repertory): Deleted.
17322 (x_find_ccl_program): Renamed and moved to xfont.c.
17323 (x_redisplay_interface): Adjusted for the change of `struct
17324 redisplay_interface'.
17325
17326 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17327 conditionals. Don't check enable_font_backend. Delete all codes
17328 used only when USE_FONT_BACKEND is not defined. Surround non-used
17329 code by "#ifdef OLD_FONT" and "endif".
17330 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17331
17332 * w32font.h (struct w32font_info): New member.
17333 (FONT_COMPAT): New macro.
17334 (w32font_open_internal): Prototype adjusted.
17335
17336 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17337 OLD_FONT" and "endif".
17338
17339 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17340 conditionals. Don't check enable_font_backend. Delete all codes
17341 used only when USE_FONT_BACKEND is not defined.
17342 (w32font_open): Return a font-object. Make a font-object by
17343 font_make_object. Adjusted for the change of struct w32font_info.
17344 (w32font_close): Don't free struct font. Adjusted for the change
17345 of struct w32font_info.
17346 (w32font_encode_char, w32font_text_extents, w32font_draw):
17347 Adjusted for the change of struct w32font_info.
17348 (w32font_draw): Likewise.
17349 (w32font_list_internal): Return a list, not vector.
17350 (w32font_open_internal): Change the 4th arg to font-object.
17351 Adjusted for the change of struct w32font_info and font-object format.
17352 (add_font_name_to_list): Don't downcase names.
17353 (w32_enumfont_pattern_entity): Make a font-entity by
17354 font_make_entity. Adjusted for the format change of font-entity.
17355 Use FONT_SET_STYLE to set a style-related font property. If a
17356 font is scalable, set avgwidth property to 0. Set font-entity
17357 property by font_put_extra.
17358 (font_matches_spec): Adjusted for the format change of font-entity.
17359 (w32_weight_table, w32_decode_weight): New variables.
17360 (w32_encode_weight): New function.
17361 (fill_in_logfont): Adjusted for the format change of font-spec.
17362 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17363 weight value.
17364 (w32font_driver): Adjusted for the change of struct font_driver.
17365
17366 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17367 conditionals. Don't check enable_font_backend. Surround non-used
17368 code by "#ifdef OLD_FONT" and "endif".
17369 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17370 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17371
17372 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17373 conditionals. Don't check enable_font_backend. Delete all codes
17374 used only when USE_FONT_BACKEND is not defined. Surround non-used
17375 code by "#ifdef OLD_FONT" and "endif".
17376
17377 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17378 (uniscribe_open): Return value changed to font-object.
17379 Adjusted for the format change of font-object.
17380 (uniscribe_otf_capability): Adjusted for the change of struct font.
17381 (add_opentype_font_name_to_list): Don't downcase names.
17382 (uniscribe_font_driver): Adjusted for the change of struct
17383 font_driver.
17384
173852008-05-13 Chong Yidong <cyd@stupidchicken.com>
17386
17387 * dispnew.c (update_frame_1): Check if tty output is still valid
17388 before flushing it.
17389
173902008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17391
17392 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17393 to Gtk+ menus.
17394
173952008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17396
17397 * dired.c (file_name_completion): Tweak the code so as to always do it
17398 in a single pass. Tighten the scope of some variables.
17399
17400 * dired.c (Qdefault_directory): New var.
17401 (file_name_completion): Use it instead of Fexpand_file_name.
17402 (syms_of_dired): Initialize it.
17403
174042008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17405
17406 * fileio.c (double_dollars): Remove dead code.
17407
174082008-05-10 Eli Zaretskii <eliz@gnu.org>
17409
17410 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17411 Mention w32-get-true-file-attributes in doc string.
17412
17413 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17414
174152008-05-09 Glenn Morris <rgm@gnu.org>
17416
17417 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17418 2008-04-23.
17419
174202008-05-09 Eli Zaretskii <eliz@gnu.org>
17421
17422 Support for reporting owner and group of each file on MS-Windows:
17423 * dired.c (stat_uname, stat_gname): New functions, with special
17424 implementation for w32.
17425 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17426
17427 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17428 (dflt_group_name): New static variable.
17429 (dflt_group): Rename from the_group.
17430 (init_user_info): Init dflt_group fields. Get user's group name
17431 from LookupAccountSid.
17432 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17433 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17434 New initialization states.
17435 (globals_of_w32): Initialize them to zero. Initialize the default
17436 group name to "None".
17437 (GetFileSecurity_Name): New global var, the name of the function
17438 to call for GetFileSecurity.
17439 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17440 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17441 (get_file_security, get_security_descriptor_owner)
17442 (get_security_descriptor_group, is_valid_sid)
17443 (get_file_security_desc, get_rid, get_name_and_id)
17444 (get_file_owner_and_group): New functions.
17445 (stat): Use get_file_security_desc and get_file_owner_and_group to
17446 report the owner and primary group of each file. Don't ignore the
17447 high 32 bits of file's size, now that st_size is 64-bit wide.
17448 Fix test when to get true file attributes.
17449 (init_user_info): Use get_rid instead of equivalent inline code.
17450 (fstat): Don't ignore the high 32 bits of file's size.
17451
174522008-05-09 Chong Yidong <cyd@stupidchicken.com>
17453
17454 * image.c (png_load): Use correct bit-depth for setting background
17455 color.
17456
174572008-05-08 Eli Zaretskii <eliz@gnu.org>
17458
17459 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17460 epa-hook.elc.
17461
174622008-05-08 Juanma Barranquero <lekktu@gmail.com>
17463
17464 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17465
174662008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17467
17468 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17469 because the original parameters are in pure storage now.
17470 (mac_window): Remove unused params. Update callers.
17471
174722008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17473
17474 * lread.c (substitute_object_recurse): Use lower-level primitives.
17475 Don't signal errors when traversing sub-char-tables.
17476 Don't loop over all the possible characters when traversing char-tables.
17477
17478 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17479 just like we do in print.c.
17480
174812008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17482
17483 * minibuf.c (Ftry_completion): Remove code left over from when we used
17484 scmp instead of Fcompare_strings.
17485
174862008-05-04 Juanma Barranquero <lekktu@gmail.com>
17487
17488 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17489
174902008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17491
17492 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17493 Create bitmap context in native byte order.
17494
17495 * macterm.c (XDrawLine)
17496 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17497 context in native byte order.
17498
174992008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17500
17501 * config.in: Regenerate.
17502
17503 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17504 New definitions for Image I/O support.
17505 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17506 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17507 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17508 (mac_data_provider_release_data, image_load_image_io)
17509 [USE_MAC_IMAGE_IO]: New functions.
17510 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17511 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17512 (init_image_func_pointer) [MAC_OSX]: Remove function.
17513 (image_load_quartz2d) [MAC_OSX]: Check availability of
17514 CGImageCreateWithPNGDataProvider at compile time.
17515 Use lowercase `false' for boolean constant.
17516 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17517 Use image_load_image_io.
17518 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17519 Don't check MyCGImageCreateWithPNGDataProvider.
17520 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17521 Don't call init_image_func_pointer.
17522
17523 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17524
17525 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17526 Make variable non-static.
17527 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17528 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17529
17530 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17531 (RED_FROM_ULONG): Mask off higher bits.
17532 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17533
17534 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17535 Include AvailabilityMacros.h.
17536 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17537 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17538
175392008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17540
17541 * chartab.c (Fset_char_table_range): If range is t, really set all
17542 chars to that value.
17543
175442008-05-03 Eli Zaretskii <eliz@gnu.org>
17545
17546 * dired.c (Ffile_attributes): Don't allow the device number become
17547 negative.
17548
175492008-05-02 Daiki Ueno <ueno@unixuser.org>
17550
17551 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17552
175532008-05-02 Juri Linkov <juri@jurta.org>
17554
17555 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17556 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17557 DEFAULT argument as a list of default values in docstrings.
17558
175592008-05-01 Chong Yidong <cyd@stupidchicken.com>
17560
17561 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17562
175632008-05-01 Martin Rudalics <rudalics@gmx.at>
17564
17565 * dispnew.c (change_frame_size_1): Preserve small windows when
17566 shrinking frames by calling set_window_height|width with third
17567 arg 2.
17568
17569 * window.h (struct window): Replace field too_small_ok by field
17570 resize_proportionally.
17571
17572 * window.c (make_window): Initialize resize_proportionally.
17573 (enlarge_window): Temporarily set resize_proportionally to make
17574 sure that shrink_windows does scale the window proportionally.
17575 (shrink_windows): When window has resize_proportionally set try
17576 to shrink it proportionally by stealing from other windows.
17577 (struct saved_window, Fset_window_configuration)
17578 (compare_window_configurations): Handle resize_proportionally.
17579 (WINDOW_TOTAL_SIZE): New macro.
17580 (window_min_size, shrink_windows, size_window): Use it.
17581 (check_min_window_sizes): Remove. Invalid values of
17582 window-min-height|width are handled by window_min_size_2 now.
17583 (size_window, Fsplit_window, enlarge_window)
17584 (adjust_window_trailing_edge, grow_mini_window): Don't call
17585 check_min_window_sizes.
17586 (window_min_size_2, window_min_size_1, window_min_size):
17587 New argument safe_p for retrieving "safe" minimum sizes.
17588 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17589 (adjust_window_trailing_edge, grow_mini_window):
17590 Adjust arguments of window_min_size... functions.
17591 (shrink_windows): Argument min_size removed. New argument
17592 safe_p allows shrinking windows to their safe minimum sizes.
17593 Calculate minimum size and decide whether a window shall be
17594 deleted for each window individually.
17595 (size_window): When nodelete_p equals 2, tell shrink_windows to
17596 delete windows only if their new minimum size is no more safe.
17597 (shrink_window_lowest_first): Call window_min_size_1 to make
17598 sure to preserve modeline of bottom-most window when resizing
17599 the minibuffer.
17600 (Fset_window_configuration, Fcurrent_window_configuration)
17601 (compare_window_configurations): Do not handle
17602 window-min-height|width any more.
17603 (syms_of_window): Clarify window-min-height|width doc-strings.
17604
176052008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17606
17607 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17608 some more. Copy some of the code from Ftry_completions.
17609 Remove special case code that dates back to initial revision when the
17610 slash was only added when necessary and that can't trigger nowadays.
17611
176122008-04-27 Kenichi Handa <handa@m17n.org>
17613
17614 * font.c (font_prop_validate): Signal `error' instead of `font'.
17615
176162008-04-29 Jason Rumney <jasonr@gnu.org>
17617
17618 * w32fns.c (Fw32_battery_status): New defun.
17619 (syms_of_w32fns): Defsubr it.
17620
176212008-04-28 Andreas Schwab <schwab@suse.de>
17622
17623 * dired.c (file_name_completion): Fix another mixing of encoded
17624 and decoded names.
17625
176262008-04-28 Juanma Barranquero <lekktu@gmail.com>
17627
17628 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17629
176302008-04-27 Juanma Barranquero <lekktu@gmail.com>
17631
17632 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17633
176342008-04-27 Andreas Schwab <schwab@suse.de>
17635
17636 * dired.c (file_name_completion): Fix inappropriate mixing of
17637 encoded and decoded names.
17638
17639 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17640
17641 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17642
176432008-04-26 Eli Zaretskii <eliz@gnu.org>
17644
17645 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17646 2008-03-31, it's not needed anymore with `struct stat' definition
17647 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17648 for the same reasons.
17649
176502008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17651
17652 * m/sparc.h: Additional redefinitions for GNU/Linux.
17653
176542008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17655
17656 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17657 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17658 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17659 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17660 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17661 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17662 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17663 Likewise.
17664
17665 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17666 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17667 (mac_ax_number_of_characters): Add externs.
17668 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17669 [USE_MAC_TSM]: Likewise.
17670 (mac_handle_text_input_event) [MAC_OSX]:
17671 Handle kEventTextInputOffsetToPos for no active input area case.
17672 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17673 (mac_handle_document_access_event)
17674 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17675 (install_application_handler) [MAC_OSX]: Register handlers for
17676 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17677 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17678 Register mac_handle_document_access_event.
17679
17680 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17681 Make functions non-static.
17682
176832008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17684
17685 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17686 (read_file_name_completion_ignore_case, insert_default_directory)
17687 (Qdefault_directory): Move to minibuffer.el.
17688 (Fread_file_name): Call the new `read-file-name' instead.
17689
176902008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17691
17692 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17693 Make function non-static.
17694 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17695 Remove function.
17696 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17697 Move to mactoolbox.c.
17698 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17699
17700 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17701 (mac_rect_make): New macro.
17702
17703 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17704 instead of float.
17705 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17706 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17707 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17708 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17709 CGRectMake.
17710 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17711 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17712 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17713 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17714 instead of WindowRef in argument type.
17715 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17716 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17717 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17718 instead of DISPLAY. All uses changed.
17719 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17720 (x_calc_absolute_position): Simplify so as not to use
17721 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17722
17723 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17724 instead of WindowRef in argument type.
17725 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17726 [TARGET_API_MAC_CARBON]: Remove externs.
17727 (create_apple_event, mac_event_parameters_to_lisp)
17728 [TARGET_API_MAC_CARBON]: Add externs.
17729
17730 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17731 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17732 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17733 is clicked.
17734 (x_activate_menubar): Remove extern for saved_menu_event_location.
17735 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17736 Move from mac.c.
17737
177382008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17739
17740 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17741 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17742
177432008-04-23 Jason Rumney <jasonr@gnu.org>
17744
17745 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17746 attributes only for local files.
17747
17748 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17749 default to Qlocal.
17750
177512008-04-22 Juri Linkov <juri@jurta.org>
17752
17753 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17754 read-buffer-to-switch instead of using the letter "B".
17755
177562008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17757
17758 * fileio.c (Qdefault_directory): New variable.
17759 (Fread_file_name): Use it to pass `dir' to the completion functions.
17760
177612008-04-20 Chong Yidong <cyd@stupidchicken.com>
17762
17763 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17764
177652008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17766
17767 * keyboard.c (Vpre_help_message): Remove.
17768 (show_help_echo): Remove default C code.
17769
17770 * dired.c (directory_files_internal, file_name_completion):
17771 Only call ENCODE_FILE if the string is indeed decoded.
17772
177732008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17774
17775 * Makefile.in (TOOLKIT_DEFINES): Remove.
17776 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17777
177782008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17779
17780 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17781 (mactoolbox.o): New target.
17782
17783 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17784 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17785
17786 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17787 Use mac_set_frame_window_background instead of XSetWindowBackground.
17788 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17789 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17790 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17791 instead of SetWindowTitleWithCFString.
17792 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17793 Move function to mactoolbox.c.
17794 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17795 Use mac_set_window_modified instead of SetWindowModified.
17796 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17797 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17798 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17799 FrontNonFloatingWindow. Use mac_activate_window instead of
17800 ActivateWindow. Use mac_active_non_floating_window instead of
17801 ActiveNonFloatingWindow.
17802 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17803 Use mac_show_hourglass and mac_hide_hourglass.
17804 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17805 instead of GetGlobalMouse.
17806 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17807 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17808 Use mac_bring_window_to_front instead of BringToFront.
17809 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17810 mactoolbox.c.
17811 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17812 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17813 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17814 mactoolbox.c.
17815
17816 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17817 (XtPointer): Move typedef from macmenu.c.
17818 (enum button_type): Move enum from macmenu.c.
17819 (widget_value): Move typedef from macmenu.c.
17820 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17821 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17822 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17823 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17824 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17825 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17826 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17827 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17828 (Selection): Move typedef from macselect.c.
17829 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17830 macterm.c.
17831 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17832 (mac_is_window_collapsed, mac_bring_window_to_front)
17833 (mac_send_window_behind, mac_hide_window, mac_show_window)
17834 (mac_collapse_window, mac_front_non_floating_window)
17835 (mac_active_non_floating_window, mac_activate_window)
17836 (mac_move_window_structure, mac_move_window, mac_size_window)
17837 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17838
17839 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17840 (enum mac_menu_kind): Move enum to mactoolbox.c.
17841 (min_menu_id): Move variable to mactoolbox.c.
17842 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17843 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17844 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17845 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17846 [TARGET_API_MAC_CARBON]: Likewise.
17847 (XtPointer): Move typedef to macgui.h.
17848 (enum button_type): Move enum to macgui.h.
17849 (widget_value): Move typedef to macgui.h.
17850 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17851 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17852 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17853 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17854 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17855 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17856 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17857 (popup_activated_flag): Make variable non-static.
17858 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17859 (add_menu_item, fill_menu, dispose_menus):
17860 Move functions to mactoolbox.c.
17861 (restore_show_help_function, menu_target_item_handler)
17862 (install_menu_target_item_handler, mac_handle_dialog_event)
17863 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17864 [TARGET_API_MAC_CARBON]: Likewise.
17865 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17866 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17867 (find_and_call_menu_selection, name_is_separator): Make function
17868 non-static.
17869 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17870 to mactoolbox.c.
17871 (set_frame_menubar): Don't call install_menu_quit_handler.
17872 (menu_item_selection): New variable.
17873 (mac_menu_show): Use create_and_show_popup_menu.
17874 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17875 selection but set variable menu_item_selection. All uses changed.
17876 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17877 Call install_menu_quit_handler. Move to mactoolbox.c.
17878
17879 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17880 (Selection): Move typedef to macgui.h.
17881 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17882 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17883 Make variables non-static.
17884 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17885 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17886 Make functions non-static.
17887 (Vmac_service_selection) [MAC_OSX]: Likewise.
17888 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17889 (mac_valid_selection_target_p, mac_clear_selection)
17890 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17891 (mac_put_selection_value, mac_selection_has_target_p)
17892 (mac_get_selection_value, mac_get_selection_target_list)
17893 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17894 Move functions to mactoolbox.c.
17895 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17896 Likewise.
17897 (copy_scrap_flavor_data, mac_handle_service_event)
17898 (install_service_handler) [MAC_OSX]: Likewise.
17899 (syms_of_macselect) <Vmac_dnd_known_types>:
17900 Use mac_dnd_default_known_types.
17901
17902 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17903 Move to mactoolbox.c.
17904 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17905 (Fx_selection_owner_p): Add EXFUN.
17906 (install_window_handler, remove_window_handler, XSetWindowBackground):
17907 Remove externs.
17908 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17909 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17910 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17911 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17912 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17913 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17914 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17915 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17916 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17917 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17918 (mac_valid_selection_target_p, mac_clear_selection)
17919 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17920 (mac_put_selection_value, mac_selection_has_target_p)
17921 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17922 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17923 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17924 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17925 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17926 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17927 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17928 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17929 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17930
17931 * mactoolbox.c: New file.
17932
179332008-04-18 Jason Rumney <jasonr@gnu.org>
17934
17935 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17936
179372008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17938
17939 * character.c (Fmultibyte_char_to_unibyte):
17940 Return latin1 chars unchanged.
17941
17942 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17943 relocated if it points to `name'.
17944
179452008-04-17 Kenichi Handa <handa@m17n.org>
17946
17947 * data.c (Faset): Allow setting a multibyte character in an
17948 ASCII-only unibyte string.
17949
17950 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17951
179522008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17953
17954 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17955 done in config.h.
17956
179572008-04-16 Juanma Barranquero <lekktu@gmail.com>
17958
17959 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17960 (Fchar_direction): Add usage in the docstring.
17961
179622008-04-15 Chong Yidong <cyd@stupidchicken.com>
17963
17964 * keyboard.c (read_key_sequence): Remove always-true checks.
17965
179662008-04-14 Jason Rumney <jasonr@gnu.org>
17967
17968 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17969 compatibility struct, for better underline positioning.
17970
179712008-04-13 David Hansen <david.hansen@gmx.net>
17972
17973 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17974 string.
17975
179762008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17977
17978 * m/hp800.h (XUINT, XSET): Remove.
17979
179802008-04-12 Juanma Barranquero <lekktu@gmail.com>
17981
17982 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17983 previous change.
17984
179852008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17986
17987 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17988 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17989
179902008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17991
17992 * keymap.h (map_keymap_canonical): Declare.
17993 * xmenu.c (single_keymap_panes): Use it.
17994
179952008-04-11 Glenn Morris <rgm@gnu.org>
17996
17997 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17998 set the target's value to that of the alias.
17999
180002008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18001
18002 * term.c (set_tty_color_mode): Left over typo.
18003
180042008-04-10 Michael Albinus <michael.albinus@gmx.de>
18005
18006 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
18007 only after check for file name handler functions. Signal, when
18008 native functionality is not supported.
18009 (syms_of_fileio): Declare it unconditionally.
18010
180112008-04-10 Jason Rumney <jasonr@gnu.org>
18012
18013 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
18014 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
18015
18016 * w32.c (logon_network_drive): Also logon to remote drives that
18017 are mapped to drive letters.
18018
180192008-04-10 Glenn Morris <rgm@gnu.org>
18020
18021 * xdisp.c (truncate-partial-width-windows): Doc fix.
18022
180232008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
18024
18025 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
18026 Move functions to minibuffer.el.
18027 (syms_of_fileio): Don't declare them.
18028
180292008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18030
18031 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
18032 (syms_of_minibuf): Remove its initialization.
18033
18034 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
18035
180362008-04-09 Juanma Barranquero <lekktu@gmail.com>
18037
18038 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
18039
180402008-04-09 Jason Rumney <jasonr@gnu.org>
18041
18042 * makefile.w32-in (distclean): Delete makefile too.
18043 (maintainer-clean): New target.
18044
18045 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
18046
18047 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
18048 for new font backend and composite cases.
18049
180502008-04-09 Jan Djärv <jan.h.d@swipnet.se>
18051
18052 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
18053 Most of the code moved to run_timers.
18054 (do_pending_atimers): Call run_timers.
18055 (run_timers): New function.
18056
18057 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
18058 run atimers.
18059
18060 * process.c (wait_reading_process_output): The same as above.
18061
180622008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18063
18064 * minibuf.c (last_exact_completion): Remove variable.
18065 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
18066 (complete_and_exit_1, complete_and_exit_2)
18067 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
18068 (Fdisplay_completion_list, display_completion_list_1)
18069 (Fminibuffer_completion_help, Fself_insert_and_exit)
18070 (Fexit_minibuffer, Fminibuffer_message): Move functions to
18071 minibuffer.el.
18072 (syms_of_minibuf): Remove corresponding initializations.
18073
18074 * keyboard.c (Qdeactivate_mark): New var.
18075 (command_loop_1): Use it to call `deactivate-mark'.
18076 (syms_of_keyboard): Initialize it.
18077
18078 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
18079 to another frame.
18080 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
18081 Don't call set_tty_color_mode.
18082 (store_frame_param): Reset previous_frame rather than call
18083 set_tty_color_mode.
18084 * term.c (set_tty_color_mode): Rewrite.
18085 * dispextern.h (set_tty_color_mode): New type.
18086 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
18087
180882008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
18089
18090 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
18091 for generic chars, which do not exist any more in emacs-unicode.
18092
180932008-04-08 Michael Albinus <michael.albinus@gmx.de>
18094
18095 * coding.c (detect_coding_emacs_mule)
18096 (Ffind_operation_coding_system): Fix typo.
18097
180982008-04-08 Jason Rumney <jasonr@gnu.org>
18099
18100 * w32uniscribe.c (SNAME): Extract only symbol name.
18101
18102 * w32font.h (struct w32_metric_cache): New struct.
18103 (w32font_info): Use it.
18104 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
18105 (CACHE_BLOCKSIZE): New constants.
18106
18107 * w32font.c (Qja, Qko, Qzh): New symbols.
18108 (syms_of_w32font): Initialise them.
18109 (font_matches_spec): Use them to filter by language.
18110 (recompute_cached_metrics): Remove function.
18111 (compute_metrics, clear_cached_metrics): New functions.
18112 (w32font_encode_char): Use them to manage metric cache.
18113 (w32font_text_extents): Cache metrics for all glyphs on demand.
18114 Delay converting glyph indices to WORD until needed.
18115 (w32font_open_internal): Initialize metric cache to empty.
18116 (registry_to_w32_charset): Charset should always be a symbol.
18117 (fill_in_logfont, list_all_matching_fonts): Family should
18118 always be a symbol.
18119
181202008-04-06 Jason Rumney <jasonr@gnu.org>
18121
18122 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
18123 Give up if glyph indices not supported. Use uniscribe obtained
18124 ABC widths for individual metrics. Map glyph clusters back to
18125 characters using fClusterStart flag. Return number of glyphs
18126 produced, not chars processed.
18127 (uniscribe_shape): Map char at FROM to current glyph.
18128
181292008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18130
18131 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
18132 Use SetMenuItemHierarchicalMenu.
18133
181342008-04-05 Jason Rumney <jasonr@gnu.org>
18135
18136 * image.c (pbm_load): Allow color values up to 65535.
18137 Throw an error if max_color_idx is outside the supported range.
18138 Report an error when image size is invalid.
18139 Read two bytes at a time when raw images have max_color_idx above 255.
18140
aac0c6e3
MR
181412008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
18142
18143 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
18144 append "CCL: Quitted" when the CCL program is quitted.
18145 (setup_ccl_program): Initialize ccl->quit_silently to zero.
18146
18147 * ccl.h (struct ccl_program): New member quit_silently.
18148
181492008-04-05 Chong Yidong <cyd@stupidchicken.com>
18150
18151 * search.c (compile_pattern_1): Treat non-nil and non-string of
18152 search-spaces-regexp as nil.
18153
18154 * minibuf.c (Fassoc_string): Tweak docstring.
18155
181562008-04-05 Eli Zaretskii <eliz@gnu.org>
18157
18158 * dired.c (Ffile_attributes): Support inode numbers wider than 32
18159 bits. Remove ugly WINDOWSNT-specific kludge introduced on
18160 2008-03-14 to force inode be positive.
18161
18162 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
18163 _S_* ones, since we now use our own sys/stat.h.
18164 (stat, fstat): Don't mangle the inode number.
18165 (init_user_info): Don't restrict UID and GID to 0-60000 range.
18166
181672008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
18168
18169 * frame.h (struct frame): Give one more bit to `visible' since we use
18170 values larger than 1 to indicate obscured frames on ttys.
18171
18172 * keymap.c (Qkeymap_canonicalize): New var.
18173 (Fmap_keymap_internal): New fun.
18174 (describe_map): Use keymap-canonicalize.
18175
18176 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
18177 (Fundo_boundary): Set them.
18178 (syms_of_undo): Initialize them.
18179 (record_point): Use them instead of last_point_position*.
18180 (last_undo_buffer): Change type.
18181
181822008-04-04 Jason Rumney <jasonr@gnu.org>
18183
18184 * w32font.c (w32font_text_extents): Use font's ascent and descent.
18185 (recompute_cached_metrics): Don't set ascent and descent per char.
18186
18187 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
18188 (uniscribe_check_otf): Add GC protection before consing.
18189 Rearrange loop for counting features.
18190
181912008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
18192
18193 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
18194 buffer with byte-size of source buffer.
18195
181962008-04-03 Chong Yidong <cyd@stupidchicken.com>
18197
18198 * callint.c (Fcall_interactively): Handle temporary region even
18199 when shift-select-mode is off.
18200
182012008-04-03 Jason Rumney <jasonr@gnu.org>
18202
18203 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
18204
182052008-04-03 Kenichi Handa <handa@m17n.org>
18206
18207 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
18208 (CATEGORY_MASK_UTF_16): Likewise.
18209 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
18210 binary file.
18211 (detect_coding): Add null-byte detection for a binary file.
18212 (detect_coding_system): Likewise.
18213
182142008-04-03 Jason Rumney <jasonr@gnu.org>
18215
18216 * w32uniscribe.c: New file.
18217
18218 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
18219
18220 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
18221
18222 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
18223 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
18224 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
18225 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
18226 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
18227 (Qphonetic): New symbols.
18228 (syms_of_w32font): Initialize them.
18229 (font_supported_scripts): Use them.
18230 (w32font_list_family): List all charsets.
18231 (w32font_text_extents, recompute_cached_metrics): Fix metric
18232 calculations.
18233 (w32_enumfont_pattern_entity): Make full_type a DWORD.
18234 Give opentype fonts their own format.
18235 (font_matches_spec): New arguments backend and logfont.
18236 Handle :otf spec for uniscribe backend.
18237 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
18238 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
18239
18240 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
18241 font backend.
18242 (globals_of_w32fns): Initialize uniscribe font backend.
18243
18244 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
18245 dependencies.
18246 (w32uniscribe.$(O)): New file to build.
18247 (FONT_OBJ): Include w32uniscribe.$(O).
18248 (LIBS): Add uniscribe libraries.
18249
18250 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
18251
182522008-04-02 Chong Yidong <cyd@stupidchicken.com>
18253
18254 * callint.c (Vshift_select_mode): New var.
18255 (Finteractive): Document new ^ spec.
18256 (Fcall_interactively): Call handle-shift-selection if the ^ spec
18257 is present.
18258
18259 * keyboard.c (Vthis_command_keys_shift_translated): New var.
18260 (command_loop_1): Avoid running the direct display versions of
18261 forward-char and backward-char if shift-selection may occur.
18262 (read_key_sequence): Set Vthis_command_keys_shift_translated if
18263 shift-translation takes place.
18264
18265 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
18266 avoid clobbering by define-minor-mode.
18267
18268 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
18269 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
18270
18271 * syntax.c (Fforward_word): Add ^ interactive spec.
18272
18273 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
18274 (Fscroll_right): Add ^ interactive spec.
18275
182762008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
18277
18278 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
18279
18280 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
18281
18282 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
18283
182842008-03-31 Juri Linkov <juri@jurta.org>
18285
18286 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18287
182882008-03-30 Jan Djärv <jan.h.d@swipnet.se>
18289
18290 * gtkutil.c (xg_set_geometry): Fix indentation.
18291 (xg_resize_outer_widget): Remove.
18292 (x_wm_size_hint_off): Fix indentation.
18293 (xg_frame_set_char_size): Call flush_and_sync after
18294 gtk_window_resize.
18295 (x_wm_set_size_hint): Pass NULL as geometry window to
18296 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18297 Add menu bar and tool bar height to base height.
18298 (xg_update_frame_menubar, free_frame_menubar)
18299 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18300 (update_frame_tool_bar, free_frame_tool_bar):
18301 Change xg_resize_outer_widget to xg_frame_set_char_size.
18302
183032008-03-30 Michael Albinus <michael.albinus@gmx.de>
18304
18305 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18306 (Fdbus_call_method): New parameter TIMEOUT.
18307 (dbus-send-signal): Optimize UNGCPRO call.
18308
183092008-03-29 Juri Linkov <juri@jurta.org>
18310
18311 * window.c (Fdisplay_buffer): Move call to
18312 Vsplit_window_preferred_function out of conditions that check
18313 if window is eligible for vertical splitting.
18314 When Vsplit_window_preferred_function is non-nil, call it and use
18315 its non-nil return value as window. Otherwise, continue doing
18316 vertical splitting using Fsplit_window with arg horflag=nil.
18317 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18318 default value from `split-window' to nil.
18319
183202008-03-29 Juri Linkov <juri@jurta.org>
18321
18322 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18323 for interactive code letters 'b' and 'B'.
18324
183252008-03-29 Eli Zaretskii <eliz@gnu.org>
18326
18327 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18328 multibyte string.
18329
183302008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18331
18332 * keyboard.c (pending_funcalls): New var.
18333 (timer_check): Run it.
18334 (syms_of_keyboard): Initialize it.
18335 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18336 (Vdelete_terminal_functions): New vars.
18337 (syms_of_terminal): Initialize them.
18338 (Fdelete_terminal): Run delete-terminal-functions.
18339 * xdisp.c (safe_eval): Rewrite.
18340 (safe_call2): New fun.
18341 * frame.c (Qdelete_frame_functions): New var.
18342 (syms_of_frame): Initialize it.
18343 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18344 * lisp.h (safe_call2, pending_funcalls): Declare.
18345
183462008-03-28 Andreas Schwab <schwab@suse.de>
18347
18348 * indent.c (Fmove_to_column): Move declaration before statements.
18349
183502008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18351
18352 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18353 (struct frame): Use bit fields for boolean vars.
18354
18355 * process.c (server_accept_connection): Simplify naming.
18356 (emacs_get_tty_pgrp): Use SDATA.
18357
18358 * coding.c (decode_coding_object): Fix last change.
18359
183602008-03-27 Jason Rumney <jasonr@gnu.org>
18361
18362 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18363
183642008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18365
18366 * charset.c (Fdefine_charset_internal): Change the way of
18367 registering charsets in Vcharset_order_list.
18368 (syms_of_charset): Make the charset `eight-bit' supplementary.
18369
183702008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18371
18372 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18373 operations, to avoid having the difference between pointers
18374 overflow.
18375
183762008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18377
18378 * indent.c (check_display_width): New fun.
18379 (scan_for_column): Use it.
18380
18381 * data.c (syms_of_data): Mark most-positive-fixnum and
18382 most-negative-fixnum as constants.
18383
18384 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18385
18386 * indent.c (scan_for_column): Extract from current_column_1.
18387 Merge with the same code from Fmove_to_column.
18388 (current_column_1, Fmove_to_column): Use it.
18389
183902008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18391
18392 * keymap.c (map_keymap_internal): New fun.
18393 (map_keymap): Use it.
18394 (Fmap_keymap_internal): New fun.
18395 (Fmap_keymap): Remove left-out test from before make_save_value.
18396
18397 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18398
18399 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18400 Use XCAR/XCDR.
18401
18402 * process.h (struct Lisp_Process): Remove filter_multibyte.
18403 * process.c (QCfilter_multibyte): Remove.
18404 (setup_process_coding_systems): Don't use filter_multibyte.
18405 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18406 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18407 (Fset_process_filter_multibyte): Change the coding-system to
18408 approximate the previous behavior.
18409 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18410 coding-system.
18411
18412 * coding.c (decode_coding_object): When not decoding into a buffer,
18413 obey the coding system's preference of (uni|multi)byte.
18414
184152008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18416
18417 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18418 every char is changed and has a different byte-length.
18419 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18420 Fix int -> EMACS_INT.
18421
184222008-03-23 David Hansen <david.hansen@gmx.net>
18423
18424 * dbusbind.c (xd_read_message): Remove extra copying of message
18425 strings. Check for NULL `interface' or `member'.
18426
184272008-03-22 Eli Zaretskii <eliz@gnu.org>
18428
18429 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18430 cFileName a file name that includes `?' characters, use the 8+3
18431 alias in cAlternateFileName instead.
18432
184332008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18434
18435 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18436
184372008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18438
18439 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18440 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18441 work on current_buffer only instead (that was already the case
18442 for some of the code anyway).
18443 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18444 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18445 (SET_PT, SET_PT_BOTH): Adjust.
18446 * intervals.h (set_point, temp_set_point, set_point_both)
18447 (temp_set_point_both): Remove redundant declarations.
18448
184492008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18450
18451 * fileio.c (Finsert_file_contents):
18452 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18453 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18454 when buffer != current_buffer anyway.
18455
184562008-03-20 Andreas Schwab <schwab@suse.de>
18457
18458 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18459 as default.
18460
184612008-03-19 Jason Rumney <jasonr@gnu.org>
18462
18463 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18464 (syms_of_w32fns): Initialize them.
18465 (HOURGLASS_ID): New constant.
18466 (x_window_to_frame): Don't check hourglass_window.
18467 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18468 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18469 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18470 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18471 Only change the cursor if hourglass is not active.
18472 (Fx_create_frame): Initialize frame's current_cursor.
18473 (hourglass_atimer): Remove.
18474 (hourglass_started): New function.
18475 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18476 (show_hourglass): Adapt to w32, changing argument to frame.
18477
18478 * w32term.h (struct w32_output): Remove hourglass_window.
18479 Add current_cursor.
18480
18481 * eval.c (call_debugger, Fsignal):
18482 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18483 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18484 (Fexecute_extended_command, cancel_hourglass_unwind):
18485 * minibuf.c (read_minibuf):
18486 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18487
184882008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18489
18490 * window.c (run_funs): New fun.
18491 (run_window_configuration_change_hook): Use it to run the buffer-local
18492 and the global part of the hook.
18493
18494 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18495 (unwind_format_mode_line): Restore selected window.
18496 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18497
184982008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18499
18500 * editfns.c (Fchar_equal): Check they are valid characters.
18501
18502 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18503
185042008-03-17 Andreas Schwab <schwab@suse.de>
18505
18506 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18507 against a charset.
18508
18509 * lisp.h (Fbuffer_list): Declare.
18510
185112008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 18512
aac0c6e3
MR
18513 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18514 handlebox_widget is != 0.
18515
185162008-03-16 Juri Linkov <juri@jurta.org>
18517
18518 * callint.c (Fcall_interactively): For interactive code letters
18519 'b' and 'B' put the buffer list into the list of default "future"
18520 values of the minibuffer.
18521
185222008-03-16 Andreas Schwab <schwab@suse.de>
18523
18524 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18525 modifiers.
18526
18527 * regex.c (re_match_2_internal): Correct matching of a charset
18528 against latin-1 characters.
18529
185302008-03-16 Kenichi Handa <handa@m17n.org>
18531
18532 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18533 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18534 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18535 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18536 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18537 CHAR_STRING_ADVANCE.
18538 (produce_chars): Fix for the case that the source and the
18539 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18540 instead of CHAR_STRING_ADVANCE.
18541 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18542 STRING_CHAR_ADVANCE.
18543
185442008-03-15 Andreas Schwab <schwab@suse.de>
18545
18546 * regex.c (re_match_2_internal): Correct matching of eight bit
18547 characters in unibyte strings.
18548
185492008-03-15 Martin Rudalics <rudalics@gmx.at>
18550
18551 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18552 at end of range when it coincides with the end of the buffer.
18553
185542008-03-14 Eli Zaretskii <eliz@gnu.org>
18555
18556 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18557
18558 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18559
185602008-03-14 Jason Rumney <jasonr@gnu.org>
18561
18562 * editfns.c (initial_tz): New variable.
18563 (syms_of_editfns): Initialize it.
18564 (Fset_time_zone_rule): Set it when first called.
18565 Use it when TZSTRING is nil.
18566
18567 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18568 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18569 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18570 (globals_of_w32fns): Initialize them.
18571 (compute_tip_xy): Use them to position tooltips.
18572
185732008-03-14 Glenn Morris <rgm@gnu.org>
18574
18575 * emacs.c (main): Revert previous change.
18576 (standard_args): Revert -internal-script back to -scriptload,
18577 and remove the long-option form.
18578
185792008-03-13 Glenn Morris <rgm@gnu.org>
18580
18581 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18582 Remove option -enable-font-backend.
18583
185842008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18585
18586 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18587
185882008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18589
18590 * xterm.c (x_connection_closed): For GTK: If this is the last
18591 terminal just exit without closing the display.
18592
185932008-03-11 Jason Rumney <jasonr@gnu.org>
18594
18595 * w32font.c (w32font_full_name): Use floor to round.
18596
f0131492 185972008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
18598
18599 * sound.c (alsa_configure): Declare vol at beginning of block.
18600
18601 * fontset.c (Ffontset_info): Remove extra semicolon.
18602
186032008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18604
18605 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18606 size of resulting string.
18607
186082008-03-10 Jason Rumney <jasonr@gnu.org>
18609
18610 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18611
186122008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18613
18614 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18615 Don't pretend as if characters with display property haven't been
18616 consumed for string-replacing-string case.
18617
186182008-03-08 Kim F. Storm <storm@cua.dk>
18619
18620 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18621 (get_next_display_element, next_element_from_string)
18622 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18623
186242008-03-08 Andreas Schwab <schwab@suse.de>
18625
18626 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18627
186282008-03-06 Jason Rumney <jasonr@gnu.org>
18629
18630 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18631 when charset not specified. Only translate ANSI to unicode when
18632 font_type is truetype.
18633 (w32font_coverage_ok): New function.
18634 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18635
186362008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18637
18638 * lread.c (Fread_char): Resolve modifiers.
18639 (Fread_char_exclusive): Likewise.
18640
18641 * character.c (char_resolve_modifier_mask): New function.
18642 (char_string): Use char_resolve_modifier_mask.
18643 (Fchar_resolve_modifiers): New function.
18644 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18645 function.
18646
186472008-03-04 Jason Rumney <jasonr@gnu.org>
18648
18649 * makefile.w32-in: Always include w32font.c in the build.
18650 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18651
186522008-03-04 Andreas Schwab <schwab@suse.de>
18653
18654 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18655 (versionclean): Likewise.
18656
186572008-03-04 Juanma Barranquero <lekktu@gmail.com>
18658
18659 * .cvsignore: Add oo.
18660
186612008-03-03 Andreas Schwab <schwab@suse.de>
18662
18663 * coding.c (decode_coding_object): Inhibit gap shrinking while
18664 decoding in place.
18665
186662008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18667
18668 * w32term.c: Remove unused include "gnu.h".
18669 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18670
18671 * gnu.h: Rename to ...
18672 * emacs-icon.h: ... this.
18673 * xterm.c: Use emacs-icon.h instead of gnu.h.
18674 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18675
186762008-03-03 Juanma Barranquero <lekktu@gmail.com>
18677
18678 * w32font.c: Include math.h.
18679
186802008-03-03 Jason Rumney <jasonr@gnu.org>
18681
18682 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18683 Compute options separately.
18684 (w32font_open_internal): Set glyph_idx before caching metrics.
18685
18686 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18687 Define if system headers don't.
18688 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18689 (w32font_encode_char): Don't declare here.
18690
18691 * w32font.c (Quniscribe, QCformat): New symbols.
18692 (syms_of_w32font): Define them.
18693 (w32font_has_char): Indicate uncertainty.
18694 (w32font_encode_char): Encode as glyph point. Make static.
18695 (recompute_cached_metrics): New function.
18696 (w32font_open_internal): Use it. Set font to use glyph points
18697 initially. Set format based on type of font.
18698 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18699 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18700 on it. Set format based on information available here.
18701 (add_font_entity_to_list): Identify backend based on opentype_only.
18702
187032008-03-02 Andreas Schwab <schwab@suse.de>
18704
18705 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18706
18707 * coding.c (decode_coding_big5, produce_chars):
18708 Fix typos in last change.
18709
187102008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18711
18712 * gnu.h: New icon.
18713
187142008-03-02 Kenichi Handa <handa@m17n.org>
18715
18716 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18717 `dos', don't decode '\r' if that is the last in the source.
18718 (decode_coding_utf_16, decode_coding_emacs_mule)
18719 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18720 (decode_coding_raw_text, decode_coding_charset): Likewise.
18721 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18722
187232008-03-01 Jason Rumney <jasonr@gnu.org>
18724
18725 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18726
187272008-03-01 Kim F. Storm <storm@cua.dk>
18728
18729 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18730
187312008-03-01 Jason Rumney <jasonr@gnu.org>
18732
18733 * w32font.c (w32font_full_name): New function.
18734 (w32font_open_internal): Use it.
18735
187362008-03-01 Kim F. Storm <storm@cua.dk>
18737
18738 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18739
187402008-03-01 Jason Rumney <jasonr@gnu.org>
18741
18742 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18743
187442008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18745
18746 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18747 xg_frame_resized when the event is for the edit widget.
18748
18749 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18750
18751 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18752 set_char_size.
18753 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18754 operations on widgets here. Just set frame size if needed.
18755 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18756 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18757 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18758 the whole frame.
18759 (xg_create_tool_bar): Move attachment of the tool bar to
18760 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18761 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18762
187632008-03-01 Jason Rumney <jasonr@gnu.org>
18764
18765 * w32fns.c (w32_msg_pump): Disable debug code.
18766
187672008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18768
18769 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18770
187712008-02-29 Chong Yidong <cyd@stupidchicken.com>
18772
18773 * xdisp.c (next_overlay_string): Don't set
18774 overlay_strings_at_end_processed_p if we're currently reading from
18775 a display string.
18776
187772008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18778
18779 * xdisp.c (get_overlay_strings_1): Fix typo.
18780
187812008-02-29 Chong Yidong <cyd@stupidchicken.com>
18782
18783 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18784
187852008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18786
18787 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18788
18789 * xdisp.c (display_mode_element): Cancel the previous change.
18790 (decode_mode_spec): Likewise.
18791 (handle_auto_composed_prop): Don't make composition if it->string
18792 is a string.
18793
187942008-02-27 Kim F. Storm <storm@cua.dk>
18795
18796 * lisp.h (GLYPH): Change type from int to struct with separate char
18797 and face_id members.
18798 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18799 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18800 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18801 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18802 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18803 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18804 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18805 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18806 handle new Lisp glyph code encoding, either an integer or a cons.
18807
18808 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18809 (GLYPH_ALIAS): Delete.
18810 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18811 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18812 (GLYPH_FROM_CHAR): Replace macro by ...
18813 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18814
18815 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18816 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18817 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18818 (GLYPH_INVALID_P): New macro.
18819 (spec_glyph_lookup_face): Update prototype.
18820
18821 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18822 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18823 new glyph code encoding.
18824 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18825 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18826
18827 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18828 Adapt to new glyph type and new glyph code encoding.
18829
18830 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18831
18832 * indent.c (current_column, current_column_1, Fmove_to_column)
18833 (compute_motion): Adapt to new glyph code encoding.
18834
18835 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18836
188372008-02-27 Chong Yidong <cyd@stupidchicken.com>
18838
18839 * process.c (wait_reading_process_output): Check for window
18840 changes caused by timers.
18841 Suggested by Johan Bockgård.
18842
188432008-02-27 Glenn Morris <rgm@gnu.org>
18844
18845 * emacs.c (USAGE1): Add `--disable-font-backend'.
18846
188472008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18848
18849 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18850 is made to the buffer.
18851
188522008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18853
18854 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18855 (face_at_string_position):
18856 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18857 (face_at_string_position):
18858 * xdisp.c (display_string, next_overlay_change):
18859 * buffer.h (overlays_at):
18860 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18861 Update callers.
18862
188632008-02-26 Chong Yidong <cyd@stupidchicken.com>
18864
18865 * editfns.c (Fformat): Doc fix.
18866
188672008-02-26 Juanma Barranquero <lekktu@gmail.com>
18868
18869 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18870 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18871 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18872
188732008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18874
18875 * buffer.c (Fbuffer_swap_text): New function.
18876 (syms_of_buffer): Defsubr it.
18877
188782008-02-25 Chong Yidong <cyd@stupidchicken.com>
18879
18880 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18881
188822008-02-25 Jason Rumney <jasonr@gnu.org>
18883
18884 * w32font.c (w32font_draw): Draw one character at a time when padding.
18885
188862008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18887
18888 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18889 Handle a nil arg. Use run_window_configuration_change_hook.
18890 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18891 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18892 Use run_window_configuration_change_hook.
18893
188942008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18895
18896 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18897 1-pixel width.
18898
188992008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18900
18901 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18902 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18903 if the glyph in the font is zero pixel with.
18904
18905 * dispextern.h (struct glyph_string): New member padding_p.
18906
18907 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18908
18909 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18910
18911 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18912
18913 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18914
18915 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18916
189172008-02-25 Jason Rumney <jasonr@gnu.org>
18918
18919 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18920
189212008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18922
18923 Allow fine-grained image-cache flushing.
18924 * dispextern.h (struct image): Add `dependencies' field.
18925 (clear_image_caches): Change arg to Lisp_Object.
18926 * image.c (make_image): Initialize `dependencies' field.
18927 (clear_image_cache): Change arg to allow fine-grained flushing.
18928 Perform the flush even if image-cache-eviction-delay is nil.
18929 (clear_image_caches): Change arg to Lisp_Object.
18930 (Fclear_image_cache): Expand meaning of the argument.
18931 (mark_image): Mark `dependencies' field.
18932 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18933 (lface_hash): Use XHASH rather than XFASTINT.
18934 (face_at_buffer_position): Fix int -> EMACS_INT position.
18935 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18936 (select_frame_for_redisplay): Remove code duplication.
18937 (redisplay_internal): Adapt arg to call to clear_image_caches.
18938
189392008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18940
18941 * s/vms4-0.h:
18942 * s/vms4-2.h:
18943 * s/vms4-4.h:
18944 * s/vms5-5.h: Remove, unused.
18945
18946 * s/irix5-2.h:
18947 * s/irix6-0.h:
18948 * s/riscos5.h:
18949 * s/mach-bsd4-3.h:
18950 * m/mips4.h: Remove files for obsolete systems.
18951
18952 * Makefile.in:
18953 * filelock.c:
18954 * unexmips.c:
18955 * m/hp9000s300.h:
18956 * m/iris4d.h:
18957 * s/aix3-1.h:
18958 * s/hpux.h:
18959 * s/msdos.h:
18960 * s/usg5-0.h:
18961 * s/usg5-2-2.h:
18962 * s/usg5-2.h:
18963 * s/usg5-3.h: Remove references to obsolete variables.
18964
18965 * s/irix5-0.h: Remove, move all the contents ...
18966 * s/irix6-5.h: ... here. Simplify.
18967 * config.in: Regenerate.
18968
189692008-02-24 Jason Rumney <jasonr@gnu.org>
18970
18971 * w32term.c (x_draw_glyph_string_background): Clear the background
18972 manually when cleartype is in use.
18973 (x_draw_glyph_string_foreground): Draw text transparently when
18974 cleartype is in use.
18975
18976 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18977 a font into it unless we have to.
18978
189792008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18980
18981 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18982 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18983
aac0c6e3
MR
189842008-02-18 Jason Rumney <jasonr@gnu.org>
18985
18986 * w32fns.c (Fw32_shell_execute): Encode parameters.
18987
189882008-02-09 Eli Zaretskii <eliz@gnu.org>
18989
18990 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18991
189922008-02-05 Juanma Barranquero <lekktu@gmail.com>
18993
18994 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18995
189962008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18997
18998 * xterm.c (x_set_offset): Don't change the gravity if
18999 CHANGE_GRAVITY is -1.
19000
190012008-02-23 Chong Yidong <cyd@stupidchicken.com>
19002
19003 * fileio.c (auto_save_error_occurred): New var.
19004 (auto_save_error): Set it.
19005 (Fdo_auto_save): Don't overwrite the error message if an auto-save
19006 error occurred.
19007
190082008-02-23 Eli Zaretskii <eliz@gnu.org>
19009
19010 * w32.c (globals_of_w32): Add initializations for
19011 g_b_init_get_sid_sub_authority and
19012 g_b_init_get_sid_sub_authority_count.
19013
190142008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
19015
19016 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
19017 (font_parse_xlfd): Use them for sanity check.
19018 (Finternal_set_font_style_table): Make sure the table is bijective.
19019
19020 Consolidate the image_cache to the terminal struct.
19021 * termhooks.h (P_): Remove redundant def.
19022 (struct terminal): New field `image_cache'.
19023 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
19024 of FRAME_X_IMAGE_CACHE.
19025 * xterm.h (struct x_display_info): Remove image_cache field.
19026 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19027 * w32term.h (struct w32_display_info): Remove image_cache field.
19028 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19029 * macterm.h (struct mac_display_info): Remove image_cache field.
19030 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19031 * xterm.c (x_term_init):
19032 * w32term.c (w32_term_init):
19033 * macterm.c (mac_term_init): Set the image_cache in the terminal.
19034 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
19035 Remove declarations.
19036 (clear_image_caches, mark_image_cache): New declarations.
19037 * xfaces.c (clear_face_cache):
19038 * xdisp.c (redisplay_internal): Use clear_image_caches.
19039 * image.c (clear_image_cache): Don't check that a frame is on
19040 a window-system before checking if it shares the same cache.
19041 (clear_image_caches): New function.
19042 (Fclear_image_cache): Use it.
19043 (mark_image): Move from allo.c.
19044 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
19045 * alloc.c (mark_image, mark_image_cache): Move to image.c.
19046 (mark_object): Don't call mark_image_cache for frames.
19047 (mark_terminals): Call mark_image_cache.
19048
19049 * lisp.h (Fdelete_terminal): Declare.
19050
19051 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
19052 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
19053 wrong_type_argument.
19054
190552008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
19056
19057 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
19058 malayalam.el, and tamil.el. Add sinhala.el.
19059
190602008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
19061
19062 * xterm.c (x_connection_closed): Consolidate identical tests.
19063 (x_delete_terminal): Don't crash if called via x_connection_closed.
19064
190652008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
19066
19067 * xdisp.c (decode_mode_spec): New arg string.
19068 (display_mode_element): Adjust for the above change.
19069
190702008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19071
19072 * callint.c (Fcall_interactively): Use AREF.
19073
190742008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
19075
19076 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
19077
190782008-02-18 Jan Djärv <jan.h.d@swipnet.se>
19079
19080 * xfns.c (Fx_show_tip): Set string to " " if empty.
19081
190822008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
19083
19084 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
19085 with Qt.
19086
190872008-02-17 Kenichi Handa <handa@m17n.org>
19088
19089 * ftfont.c (ftfont_shape): Return Lispy number.
19090
19091 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
19092 for GCs.
19093 (Finternal_set_font_selection_order): Call font_update_sort_order
19094 only when enable_font_backend is set.
19095 (realize_x_face): Set face->font_info to that of default face only
19096 when enable_font_backend is set.
19097
19098 * xdisp.c (handle_composition_prop): Set it->c to the fist
19099 character of the composed region.
19100 (fill_composite_glyph_string): Set base_face->font_info to
19101 s->font_info. Get a face for ascii from base_face->ascii_face.
19102 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
19103 with a face already decided.
19104 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
19105 non-negative.
19106 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
19107 call font_prepare_composition unconditionally.
19108
19109 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
19110
19111 * xterm.h (struct x_display_info): New member font.
19112
19113 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
19114 (x_set_mouse_face_gc, x_new_font): Likewise.
19115 (x_term_init): Setup display_info->font.
19116 (x_delete_terminal): Free display_info->font.
19117
19118 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
19119
19120 * ftxfont.c (ftxfont_default_fid): Delete it.
19121 (ftxfont_open): Set xfont->fid to 0.
19122 (ftxfont_end_for_frame): Clear data specific to the frame and the
19123 font-driver.
19124
19125 * xftfont.c (xftfont_default_fid): Delete it.
19126 (xftfont_open): Set xfont->fid to 0.
19127
19128 * fontset.c (FONTSET_OBJLIST): New macro.
19129 (fontset_find_font): Update font-object list of the fontset.
19130 (free_realized_fontset): New function.
19131 (free_face_fontset): Call free_realized_fontset.
19132 (Ffont_info): Call font_close_object only when enable_font_backend
19133 is set.
19134
19135 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
19136 [HAVE_NTGUI]: Include w32term.h.
19137 [MAC_OS]: Include macterm.ch.
19138 (font_otf_ValueRecord): Use make_number.
19139 (font_finish_cache): Fix handling of reference count.
19140 (font_clear_cache): Update num_fonts.
19141 (font_open_entity): Update smallest_char_width and
19142 smallest_font_height of the frame.
19143 (font_close_object): Update num_fonts.
19144 (Fclear_font_cache): Fix finding the target cache data.
19145
191462008-02-16 Glenn Morris <rgm@gnu.org>
19147
19148 * fontset.c (Finternal_char_font): Fix compilation warning.
19149
191502008-02-16 Eli Zaretskii <eliz@gnu.org>
19151
19152 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
19153 instead of char arrays. Enlarge the size of array passed to
19154 get_token_information.
19155
19156 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
19157 warnings.
19158
191592008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
19160
19161 * .gdbinit: Don't set `args', it breaks gdb --args.
19162
191632008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
19164
19165 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
19166 within a narrowed buffer.
19167
191682008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
19169
19170 * coding.c (decode_coding_object, encode_coding_object):
19171 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
19172
191732008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
19174
19175 * coding.c (coding_set_destination): Use BEG_BYTE rather than
19176 hardcoding 1.
19177 (detect_coding_system):
19178 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
19179 (string_char_to_byte, string_byte_to_char, insert_from_gap):
19180 * insdel.c (insert_from_gap):
19181 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
19182 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
19183 (string_to_multibyte):
19184 * character.c (chars_in_text, multibyte_chars_in_text):
19185 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
19186
19187 * character.h (FETCH_STRING_CHAR_ADVANCE)
19188 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
19189 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
19190 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
19191
19192 * casefiddle.c (casify_region): Only call after-change and composition
19193 functions on the part of the region that was changed.
19194
19195 * keyboard.c (read_avail_input):
19196 * frame.c (Fdelete_frame): Call Fdelete_terminal.
19197
191982008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19199
19200 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
19201 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
19202
192032008-02-11 Juanma Barranquero <lekktu@gmail.com>
19204
19205 * w32menu.c (push_submenu_start, push_submenu_end)
19206 (push_left_right_boundary, push_menu_pane, push_menu_item):
19207 * keyboard.c (read_key_sequence): Don't pass args with side effects
19208 to AREF, it fails when compiling with -DENABLE_CHECKING.
19209
192102008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
19211
19212 * Makefile.in (${lispsource}international/charprop.el):
19213 Delete this target.
19214
19215 * search.c (boyer_moore): Fix incorrect synching of the trunk and
19216 emacs-unicode-2.
19217
192182008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19219
19220 * terminal.c (Fdelete_terminal): Clean up the `force' path.
19221
192222008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19223
19224 * frame.c (Qnoelisp): New symbol.
19225 (syms_of_frame): Initialize it.
19226 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
19227 harmless Elisp code, from a strong `force' from x_connection_closed.
19228 * frame.h (Qnoelisp): Declare.
19229 * xterm.c (x_connection_closed): Pass `noelisp'.
19230
19231 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
19232 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
19233 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
19234 rather than `int' for the type of `type'.
19235
192362008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
19237
19238 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
19239
19240 * Makefile.in (GNUC): Remove support for gcc-1.x.
19241
192422008-02-10 Richard Stallman <rms@gnu.org>
19243
19244 * lisp.h (ASET): Use AREF, not ASLOT.
19245
192462008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19247
19248 * lisp.h (ASET): Check bounds.
19249
192502008-02-10 Glenn Morris <rgm@gnu.org>
19251
19252 * buffer.c (mode-name): Doc fix.
19253
192542008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19255
19256 * Makefile.in:
19257 * emacs.c:
19258 * gmalloc.c:
19259 * keyboard.c:
19260 * lisp.h:
19261 * m/ibm370aix.h:
19262 * process.c:
19263 * regex.c:
19264 * s/hpux.h:
19265 * sysdep.c:
19266 * sysselect.h:
19267 * systty.h:
19268 * unexec.c:
19269 * w32term.c:
19270 * xsmfns.c:
19271 * xterm.c: Remove code that deals with obsolete variables.
19272
19273 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
19274
19275 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
19276 nothing else needs it anymore.
19277
192782008-02-09 Eli Zaretskii <eliz@gnu.org>
19279
19280 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
19281 instead of unibyte_char_to_multibyte.
19282
192832008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19284
19285 * s/gnu-linux.h: Remove commented out code.
19286
19287 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19288
19289 * Makefile.in: Update what RMS says about using autoconf.
19290 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19291 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19292 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19293 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19294
192952008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
19296
19297 * keymap.c (Fkey_description): Move side effect outside of macro call.
19298
19299 * xfaces.c (Finternal_make_lisp_face):
19300 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19301
19302 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19303 (syms_of_fontset): Use ASET.
19304
19305 * fns.c (concat): Move side effect outside of macro call.
19306 (hash_clear): Use ASET.
19307
193082008-02-08 Richard Stallman <rms@gnu.org>
19309
19310 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19311 If FORCE, and frame has a surrogate minibuffer for another frame,
19312 delete the other frame first.
19313
193142008-02-07 Timo Savola <timo.savola@iki.fi>
19315
19316 * xterm.c (x_detect_focus_change): Handle embed client message.
19317 (handle_one_xevent): Ditto.
19318 (handle_one_xevent): If embedded and we get a button press/release,
19319 request focus.
19320 (xembed_set_info, xembed_send_message): New functions.
19321 (x_make_frame_visible): Call xembed_set_info if embedded.
19322 (x_make_frame_invisible): Call xembed_set_info if embedded.
19323 (x_term_init): Initialize Xatom_XEMBED.
19324 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19325 (x_iconify_frame): Ditto.
19326
19327 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19328 (enum xembed_info, enum xembed_message, enum xembed_focus)
19329 (enum xembed_modifier, enum xembed_accelerator): New.
19330 (xembed_set_info, xembed_send_message): Declare.
19331 (FRAME_X_EMBEDDED_P): New.
19332
19333 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19334 gtk_plug_new.
19335
19336 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19337 window ID of a frame.
19338 (x_window): Reparent frame if embedded.
19339 (Fx_create_frame): Don't set border width if embedded.
19340
19341 * emacs.c (USAGE3): Add --parent-id.
19342 (standard_args): Ditto.
19343
193442008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19345
19346 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19347
193482008-02-07 Jim Meyering <meyering@redhat.com>
19349
19350 Use "do...while (0)", not "if (1)...else" in macro definitions.
19351 The latter provokes a warning from gcc about the empty else, when
19352 followed by ";". Also, without that trailing semicolon, it would
19353 silently swallow up any following statement.
19354 * syntax.h (SETUP_SYNTAX_TABLE)
19355 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19356 * buffer.h (DECODE_POSITION): Likewise.
19357 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19358 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19359 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19360 (FETCH_CHAR_ADVANCE): Likewise.
19361 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19362
193632008-02-07 Jim Meyering <meyering@redhat.com>
19364
19365 * lread.c [lint]: Don't include <sys/inode.h>.
19366
193672008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19368
19369 * xselect.c (x_handle_dnd_message):
19370 * xmenu.c (digest_single_submenu, xmenu_show):
19371 * xdisp.c (with_echo_area_buffer_unwind_data)
19372 (format_mode_line_unwind_data, unwind_format_mode_line)
19373 (display_menu_bar):
19374 * eval.c (Ffetch_bytecode):
19375 * doc.c (store_function_docstring):
19376 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19377 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19378 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19379
193802008-02-07 Kenichi Handa <handa@m17n.org>
19381
19382 * ftxfont.c (ftxfont_open): Don't set
19383 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19384
19385 * ftfont.c (ftfont_open): Fix previous change.
19386
193872008-02-06 Jason Rumney <jasonr@gnu.org>
19388
19389 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19390 Use cached metrics for ASCII characters.
19391 (w32font_open_internal): Don't set font's owning_frame.
19392 Cache metrics for ASCII characters.
19393
19394 * w32font.h (struct w32font_info): Add ascii_metrics.
19395 Remove owning_frame.
19396
193972008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19398
19399 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19400 to negative value.
19401
19402 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19403
19404 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19405
19406 * charset.c (syms_of_charset): Set QCtest and Qeq.
19407
194082008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19409
19410 * process.c (Fstart_process):
19411 * callproc.c (Fcall_process): Handle the case where
19412 Funhandled_file_name_directory returns nil.
19413
19414 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19415 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19416 * font.c (check_gstring): Use them and AREF to access the vector before
19417 we know it's really a gstring.
19418 (Ffont_shape_text): Fix typo.
46e722a9 19419 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
19420
19421 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19422 Declare.
19423
19424 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19425
194262008-02-05 Jason Rumney <jasonr@gnu.org>
19427
19428 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19429 Set smallest_font_height and smallest_char_width in display info.
19430
194312008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19432
19433 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19434
194352008-02-05 Miles Bader <miles@gnu.org>
19436
19437 * xfaces.c (get_lface_attributes, merge_named_face)
19438 (lookup_named_face, lookup_derived_face, realize_named_face):
19439 Revert 2008-02-01 change by cyd@stupidchicken.com.
19440
194412008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19442
19443 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19444 fallback fonts.
19445 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19446
194472008-02-04 Jason Rumney <jasonr@gnu.org>
19448
19449 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19450 set full_name.
19451 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19452
194532008-02-03 Jason Rumney <jasonr@gnu.org>
19454
19455 * makefile.w32-in (OBJ1): Include font.o here.
19456 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19457
194582008-02-02 Jason Rumney <jasonr@gnu.org>
19459
19460 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19461
194622008-02-01 Jason Rumney <jasonr@gnu.org>
19463
19464 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19465
19466 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19467
194682008-02-01 Andreas Schwab <schwab@suse.de>
19469
19470 * Makefile.in (shortlisp, lisp): Update for rename of
19471 ../lisp/language/myanmar.el.
19472
194732008-02-01 Chong Yidong <cyd@stupidchicken.com>
19474
19475 * xfaces.c (get_lface_attributes): Delete function.
19476 (merge_named_face, lookup_named_face, lookup_derived_face)
19477 (realize_named_face): Call lface_from_face_name directly, and use
19478 the fact that merge_face_vectors does not alter its FROM argument.
19479
194802008-02-01 Jason Rumney <jasonr@gnu.org>
19481
19482 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19483 input in the default locale. Handle non-Unicode multibyte input.
19484
194852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19486
19487 * fontset.c (reorder_font_vector): Exclude nil elements from the
19488 font group. Don't try multiple fonts.
19489 (fontset_font): Adjust for the above change.
19490 (Finternal_char_font): Return nil if the found font doesn't
19491 contain the character ch.
19492
19493 * Makefile.in (lisp, shortlisp): Add cham.el.
19494
194952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19496
19497 * font.h (FONTP): Make it return 1 also for a font-object.
19498
19499 * .gdbinit (xfontset): New function.
19500
19501 * font.c (font_find_for_lface): Check if the character C is
19502 supported or not only for the first font.
19503
19504 * fontset.c (reorder_font_vector): Fix typo.
19505 (fontset_find_font): Don't add a font-spec specifying a script.
19506 Use 0 (not Qt) for the indication of empty font-group. Change the
19507 format of RFONT-DEF. Return Qt if no font in the font-group
19508 support the character.
19509 (fontset_font): Adjust for the above change. If no font was
19510 found the character, remember that.
19511 (face_for_char): Adjust for the change of RFONT-DEF.
19512 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19513 no font for the target.
19514 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19515
195162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19517
19518 * font.c (font_load_for_face): Handle the case that the font in
19519 face->lface is a string.
19520
195212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19522
19523 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19524
195252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19526
19527 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19528 Fix previous change. If the frame is not on a window system,
19529 signal an error.
19530
195312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19532
19533 * coding.c (decode_coding_object, encode_coding_object): Adjust
19534 marker positions after conversion.
19535
19536 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19537
195382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19539
19540 * font.c (font_find_for_lface): Fix the handling of the return
19541 value of font_has_char.
19542 (Ffont_shape_text): Fix previous change.
19543
19544 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19545 (fontset_ref_and_range): Delete it.
19546 (fontset_find_font): Call char_table_ref_and_range instead of
19547 FONTSET_REF_AND_RANGE.
19548 (make_fontset): Don't setup font groups of Latin here.
19549 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19550 (new_fontset_from_font): Make the specified font the default for
19551 all Latin characters.
19552
195532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19554
19555 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19556 is on a window system before accessing the fontset of the frame.
19557
195582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19559
19560 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19561
19562 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19563 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19564
19565 * font.c (Ffont_shape_text): If the font driver doesn't have a
19566 shaper function, make zero-width glyphs to have at least one-pixel
19567 width. Fix setting of `to' field of glyphs.
19568
195692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19570
19571 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19572 glyphs.
19573
19574 * font.h (struct font_driver): Improve docstring of member `shape'.
19575
195762008-02-01 Kenichi Handa <handa@m17n.org>
19577
19578 * composite.c (syms_of_composite): Fix docstring of
19579 auto-composition-function.
19580
19581 * font.h (LGLYPH_SIZE): New macro.
19582
19583 * font.c (Ffont_fill_gstring): Stop filling when a character not
19584 supported by the font is found.
19585 (Ffont_shape_text): When a shape callback function returns nil,
19586 try at most two more times with larger gstring.
19587 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19588
19589 * xdisp.c (handle_auto_composed_prop): Change the argument to
19590 auto-composition-function.
19591
19592 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19593 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19594 Lispy glyph and store it in the lgstring.
19595
19596 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19597
19598 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19599
196002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19601
19602 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19603
19604 * fontset.c (Vfont_encoding_charset_alist): New variable.
19605 (syms_of_fontset): DEFVAR it.
19606 (reorder_font_vector, fontset_find_font): Optimize for the case of
19607 no need of reordering.
19608 (face_for_char): Map the charset property by
19609 Vfont_encoding_charset_alist.
19610
196112008-02-01 Jason Rumney <jasonr@gnu.org>
19612
19613 * w32font.c (logfonts_match): Don't check adstyle here.
19614 (font_matches_spec): Check here against physical font instead.
19615 (add_font_entity_to_list): Avoid some substitutions.
19616
19617 * font.c (font_parse_fcname): Default weight and slant to normal.
19618 (font_score): Prefer normal fonts if weight or slant unspecified.
19619 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19620 match freetype scores.
19621
196222008-02-01 Jason Rumney <jasonr@gnu.org>
19623
19624 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19625 font, as it may have been deleted.
19626 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19627 most common hyphenless variation.
19628 (logfonts_match): Check generic family.
19629 (font_matches_spec): Don't check generic family here.
19630 (fill_in_logfont): Set generic family based on adstyle.
19631
19632 * w32font.h (w32font_get_cache): Update declaration.
19633
196342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19635
19636 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19637
19638 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19639 If none of the new drivers are available, call font_update_drivers
19640 with the old drivers.
19641
19642 * w32font.c (w32font_get_cache): Adjust the argument type.
19643
19644 * xfont.c (xfont_get_cache): Adjust the argument type.
19645
19646 * font.h (struct font_driver): Change argument type of get_cache.
19647
19648 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19649
19650 * font.c (Ffont_get): Fix arguments to Fassoc.
19651 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19652 (font_clear_cache): New function.
19653 (font_list_entities, font_matching_entity): Use font_get_cache.
19654 (font_update_drivers): Call font_clear_cache when finishing a driver.
19655
19656 * fontset.c (fontset_find_font): Fix previous change.
19657
196582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19659
19660 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19661 dpyinfo->font_table.
19662 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19663 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19664
19665 * font.c (font_at): Handle the case that the arg C is negative.
19666 Handle the unibyte case.
19667 (Ffont_at): Call font_at with the arg C -1.
19668
19669 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19670 the position here, and call font_at with the arg C -1.
19671 Don't check the range of the existing composition at the point.
19672
196732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19674
19675 * fontset.c (fontset_add): New args charset_id and family.
19676 Change caller.
19677 (load_font_get_repertory, fontset_find_font): Assume that
19678 font_spec is always a font-spec object.
19679 (Fset_fontset_font): Always store a font-spec object in a fontset.
19680
19681 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19682 instead of get_property_and_range.
19683
196842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19685
19686 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19687 (xftfont_open): Don't keep locking face.
19688 (xftfont_close): Don't unlock face.
19689 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19690
19691 * fontset.c (fontset_find_font): Don't prefer a font of
19692 supplementary charset.
19693
196942008-02-01 Kenichi Handa <handa@m17n.org>
19695
19696 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19697 script, langsys_tag to langsys, new member script.
19698 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 19699 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
19700 listing to the script specified in that property. Fix arg to
19701 OTF_check_features.
19702
197032008-02-01 Jason Rumney <jasonr@gnu.org>
19704
19705 * w32font.h: New file.
19706
19707 * w32font.c: Include it.
19708 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19709 (w32font_open): Set owning_frame.
19710 (w32font_text_extents): Use owning_frame.
19711 (struct font_callback_data): Add opentype_only field.
19712 (add_font_entity_to_list): Use it to filter fonts.
19713 Don't check against full name.
19714 (w32font_list_internal): New function.
19715 (w32font_list): Use it.
19716 (w32font_match_internal): New function.
19717 (w32font_match): Use it.
19718 (w32font_open_internal): New function.
19719 (w32font_open): Use it.
19720 (w32font_get_cache, w32font_close, w32font_has_char)
19721 (w32font_encode_char, w32font_text_extents, w32font_draw):
19722 Make non-static.
19723
19724 * makefile.w32-in (w32font.o): Depend on w32font.h.
19725
197262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19727
19728 * charset.c (Fdefine_charset_internal): Record a supplementary
19729 charset at the tail of Vcharset_order_list.
19730
19731 * font.c (Ffont_shape_text): Fix the return value.
19732
19733 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19734
19735 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19736
197372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19738
19739 * ftfont.c (struct OpenTypeSpec): New struct.
19740 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19741 (ftfont_get_open_type_spec): New function.
19742 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19743
19744 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19745
197462008-02-01 Jason Rumney <jasonr@gnu.org>
19747
19748 * w32font.c (add_font_entity_to_list): Compare only the beginning
19749 of full name.
19750
197512008-02-01 Kenichi Handa <handa@m17n.org>
19752
19753 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19754 Never return HANDLED_RECOMPUTE_PROPS.
19755
197562008-02-01 Kenichi Handa <handa@m17n.org>
19757
19758 * font.c (font_gstring_produce): Delete it.
19759
19760 * composite.h (COMPOSITION_METHOD):
19761 Handle COMPOSITION_WITH_GLYPH_STRING.
19762
197632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19764
19765 * xfont.c (Qx): Delete.
19766 (syms_of_xfont): Don't initialize Qx.
19767
19768 * composite.h (enum composition_method):
19769 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19770
197712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19772
19773 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19774 (choose_face_font): Accept new form of font-spec.
19775
19776 * frame.h (font_driver_list): Declare it unconditionally.
19777 (struct frame): Define members font_driver_list and font_data_list
19778 unconditionally.
19779
19780 * fontset.c: Include "font.h" unconditionally.
19781 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19782 (Fset_fontset_font): Accept a font-spec object.
19783
19784 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19785 PIXEL_SIZE part a wild card.
19786
19787 * dispextern.h (struct glyph_string): Define members clip and
19788 num_clips unconditionally.
19789 (struct face): Define members font_info and extra unconditionally.
19790
19791 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19792 ftfont_info only when HAVE_LIBOTF is defined.
19793
197942008-02-01 Andreas Schwab <schwab@suse.de>
19795
19796 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19797 and end.
19798
197992008-02-01 Jason Rumney <jasonr@gnu.org>
19800
19801 * w32font.c (w32font_driver): Add new fields.
19802
198032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19804
19805 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19806 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19807 (LIBES): Add @M17N_FLT_CFLAGS@.
19808
19809 * composite.c (compose_text): Don't treat the new style
19810 composition specially.
19811
19812 * emacs.c (main): Call syms_of_font unconditionally.
19813
19814 * font.h (FONT_ENTITY_NOT_LOADABLE)
19815 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19816 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19817 (struct font_driver): New member shape.
19818 (font_registry_charsets): Extern it.
19819 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19820 (font_otf_capability, font_drive_otf): Delete their externs.
19821
19822 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19823 (font_charset_alist, font_registry_charsets): Move from xfont.c
19824 and rename.
19825 (font_prop_validate_otf): New function.
19826 (font_property_table): Register it for QCotf.
19827 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19828 (font_drive_otf): Delete.
19829 (font_prepare_composition): New arg F. Adjust for the change of
19830 lispy gstring.
19831 (font_find_for_lface): New arg C.
19832 (font_load_for_face): Adjust for the change of font_find_for_lface.
19833 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19834 lispy gstring.
19835 (Ffont_shape_text): New function.
19836 (Fopen_font): If the font size is not given, use 12-pixel.
19837 (Ffont_at): New arg STRING.
40b1a3a9 19838 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
19839 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19840 conditionally.
19841
19842 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19843 fonts of the same font-spec. Change the format of RFONT-DEF.
19844 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19845 Adjust for the change of RFONT-DEF.
19846 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19847
19848 * ftfont.h: New file.
19849
19850 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19851 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19852 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19853 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19854 font_otf_capability and font_drive_otf, set ftfont_shape.
19855 (ftfont_list): Adjust for the change of :otf property value.
19856 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19857 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19858 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19859 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19860 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19861 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19862
19863 * w32term.c (x_draw_composite_glyph_string_foreground):
19864 Adjust for the change of lispy gstring.
19865
19866 * xdisp.c (handle_composition_prop): Adjust for the change of
19867 lispy gstring. Call a function for auto-composition with the
19868 third arg it->window.
19869 (fill_composite_glyph_string): Adjust for the change of lispy string.
19870 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19871
19872 * xfaces.c (set_font_frame_param): Adjust for the change of
19873 font_find_for_lface.
19874
19875 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19876 (xfont_registry_charsets): Likewise. Change caller.
19877 (syms_of_xfont): Don't handle x_font_charset_alist.
19878
19879 * xftfont.c: Include "ftfont.h".
19880 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19881 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19882 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19883 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19884 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19885 Set xftfont_driver.shape to xftfont_shape.
19886
19887 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19888 the change of lispy gstring.
19889
198902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19891
19892 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19893
198942008-02-01 Jason Rumney <jasonr@gnu.org>
19895
19896 * w32font.c (w32font_draw): Fill background manually.
19897
198982008-02-01 Jason Rumney <jasonr@gnu.org>
19899
19900 * font.c (Qfontp): Remove unused symbol.
19901 (QCantialias): New symbol.
19902 (syms_of_font): Define it.
19903 (font_property_table): Set a validator for QCantialias.
19904
19905 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19906 Define if not already.
19907 (QCfamily): Share with xfaces.c.
19908 (Qstandard, Qsubpixel, Qnatural): New symbols.
19909 (syms_of_w32font): Define them. Don't define QCfamily here.
19910 (w32_antialias_type, lispy_antialias_type): New functions.
19911 (w32_enumfont_pattern_entity): New arg requested_font.
19912 Set antialias parameter if non-default was requested.
19913 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19914
199152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19916
19917 * lread.c (read1): Undo the previous change.
19918
199192008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19920
19921 * frame.c (Fdelete_frame): Call font_update_drivers only when
19922 USE_FONT_BACKEND is defined.
19923
199242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19925
19926 * font.h (struct font_bitmap): New member bits_per_pixel.
19927 (struct font_driver): New members start_for_frame and end_for_frame.
19928 (struct font_data_list): New struct.
19929 (font_put_frame_data, font_get_frame_data): Extern them.
19930
19931 * frame.h (struct frame): New member font_data_list.
19932
19933 * font.c (font_update_drivers): Call driver->start_for_frame and
19934 driver->end_for_frame at proper timings.
19935 (font_put_frame_data, font_get_frame_data): New functions.
19936 (Ffont_spec): Add usage in the docstring.
19937
19938 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19939 (Fdelete_frame): Call font_update_drivers.
19940
19941 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19942 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19943 (xftfont_get_xft_draw): New function.
19944 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19945 (xftfont_end_for_frame): New function.
19946 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19947
19948 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19949 Change argument. Cache GCs in the per-frame data.
19950 (struct ftxfont_frame_data): New struct.
19951 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19952 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19953 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19954 (ftxfont_end_for_frame): New function.
19955 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19956
19957 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19958
199592008-02-01 Kenichi Handa <handa@m17n.org>
19960
19961 * xselect.c (Vselection_coding_system)
19962 (Vnext_selection_coding_system): Delete them.
19963 (syms_of_xselect): Don't declare selection-coding-system and
19964 next-selection-coding-system. They are declared in select.el.
19965
199662008-02-01 Jason Rumney <jasonr@gnu.org>
19967
19968 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19969
19970 * w32fns.c: Include imm.h.
19971 (get_composition_string_fn, get_ime_context_fn): New optional
19972 system functions.
19973 (globals_of_w32fns): Load them from imm32.dll.
19974 (ignore_ime_char): New flag.
19975 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19976 WM_IME_ENDCOMPOSITION messages.
19977
19978 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19979 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19980
199812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19982
19983 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19984 (READCHAR_REPORT_MULTIBYTE): New macro.
19985 (readchar): New 2nd arg MULTIBYTE.
19986 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19987 Make symbol's name multibyte according to the multibyteness of the
19988 source.
19989
199902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19991
19992 * xfaces.c (face_for_overlay_string): Call lookup_face with
19993 correct arguments (fix of synching with the trunk).
19994
199952008-02-01 Kenichi Handa <handa@m17n.org>
19996
19997 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19998 (font_prop_validate_non_neg, font_prop_validate_spacing):
19999 Delete argument prop_index.
20000 (font_property_table): Change arguments to validater. Change Callers.
20001 (font_lispy_object): Delete.
20002 (font_at): Use font_find_object instead fo font_lispy_object.
20003
200042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20005
20006 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
20007 and file names.
20008
200092008-02-01 Jason Rumney <jasonr@gnu.org>
20010
20011 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
20012 (font_matches_spec): Remove debug output.
20013 (add_font_entity_to_list): Avoid using substituted fonts.
20014
200152008-02-01 Jason Rumney <jasonr@gnu.org>
20016
20017 * doc.c (Fsnarf_documentation):
20018 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
20019
200202008-02-01 Miles Bader <miles@gnu.org>
20021
20022 * dispextern.h (struct glyph_row): Only define "clip" field if
20023 HAVE_WINDOW_SYSTEM is defined.
20024
200252008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20026
20027 Fix up multi-tty merge.
20028
20029 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
20030 and indentation.
20031
20032 * xfaces.c (free_realized_face, clear_face_gcs):
20033 Include font_done_for_face in the input_blocked section, just in case.
20034
20035 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
20036 (get_char_face_and_encoding): Undo last change and remove the *other*
20037 duplicate definition (i.e. keep the one that's better scoped and that
20038 includes code for the font-backend).
20039
20040 * terminal.c (create_terminal): Default keyboard_coding to
20041 `no-conversion' and terminal_coding to `undecided'.
20042
20043 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
20044
20045 * fontset.c (free_realized_fontsets): Check that the table entry does
20046 contain a fontset before trying to compare it to `base'.
20047
20048 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
20049 syms_of_charset, and syms_of_coding earlier because init_window_once
20050 now needs Vcoding_system_hash_table to be setup.
20051
20052 * coding.h (default_buffer_file_coding): Remove.
20053
20054 * coding.c (default_buffer_file_coding): Remove.
20055 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
20056 than ->symbol, and use the terminal-local coding system.
20057 (syms_of_coding): Don't setup the coding-systems that are not
20058 terminal-local.
20059 (Fdefine_coding_system_internal): Use XCAR/XCDR.
20060
20061 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
20062 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
20063
20064 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
20065 in chartab.c and were re-added here by mistake.
20066 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
20067
20068 * doc.c (Fsnarf_documentation):
20069 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
20070 src to etc.
20071
20072 * ChangeLog.10: Add mistakenly removed entry.
20073
200742008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
20075
20076 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
20077
200782008-02-01 Miles Bader <miles@gnu.org>
20079
20080 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
20081 Add extra args to FACE_FOR_CHAR.
20082
200832008-02-01 Kenichi Handa <handa@m17n.org>
20084
20085 * keymap.c (where_is_internal_1): If key is a cons, store the copy
20086 in sequence.
20087
20088 * chartab.c (map_sub_char_table, map_char_table): If the range
20089 contains just one character, call the function with that character
20090 even if the depth is not 3.
20091
200922008-02-01 Jason Rumney <jasonr@gnu.org>
20093
20094 * w32font.c (w32font_text_extents): Calculate metrics for the
20095 whole string.
20096
200972008-02-01 Jason Rumney <jasonr@gnu.org>
20098
20099 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
20100
201012008-02-01 Jason Rumney <jasonr@gnu.org>
20102
20103 * w32term.c (x_set_glyph_string_clipping): Use
20104 get_glyph_string_clip_rects.
20105 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20106 Adjust for the change of struct glyph_string.
20107
20108 * w32font.c (w32font_draw): Do clipping here.
20109
201102008-02-01 Kenichi Handa <handa@m17n.org>
20111
20112 * xftfont.c (xftfont_draw): Adjust for the change of struct
20113 glyph_string.
20114
20115 * xterm.c (x_set_glyph_string_clipping): Use
20116 get_glyph_string_clip_rects.
20117 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20118 Adjust for the change of struct glyph_string.
20119
20120 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
20121 the resulting clip(s}.
20122 (expose_overlaps): Add arg r. Change callers. Set it to
20123 row->clip temporarily.
20124 (expose_window): Redraw rows overlapping the exposed area.
20125
20126 * dispextern.h (struct glyph_row): New member clip.
20127 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
20128 clip_height, new member clip, and num_clips.
20129
201302008-02-01 Kenichi Handa <handa@m17n.org>
20131
20132 * data.c (Fchar_or_string_p): Fix docstring.
20133
201342008-02-01 Kenichi Handa <handa@m17n.org>
20135
20136 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
20137 create a temporary XftDraw object.
20138
201392008-02-01 Kenichi Handa <handa@m17n.org>
20140
20141 * font.c (Ffontp): Fix docstring.
20142
20143 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
20144 strong evidence of ISO-2022.
20145
201462008-02-01 Kenichi Handa <handa@m17n.org>
20147
20148 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
20149 SYNTAX_ENTRY_FOLLOW_PARENT.
20150
201512008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20152
20153 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
20154 its type.
20155 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20156 Update to the new type of weak_hash_tables and next_weak.
20157
20158 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
20159 a plain C pointer to Lisp_Hash_Table.
20160
20161 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
20162 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
20163 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
20164 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
20165 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
20166 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
20167 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
20168 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
20169 (GC_EQ): Remove since they've been identical to their non-GC_
20170 alter-egos ever since the markbit was eradicated.
20171
20172 * alloc.c:
20173 * buffer.c:
20174 * buffer.h:
20175 * data.c:
20176 * fileio.c:
20177 * filelock.c:
20178 * fns.c:
20179 * frame.h:
20180 * lisp.h:
20181 * macterm.c:
20182 * print.c:
20183 * process.c:
20184 * w32fns.c:
20185 * w32menu.c:
20186 * w32term.c:
20187 * xfns.c:
20188 * xmenu.c:
20189 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
20190
201912008-02-01 Kenichi Handa <handa@m17n.org>
20192
20193 * chartab.c (map_sub_char_table): Make it work for the top-level
20194 char-table. Fix handling of parent char-table.
20195 (map_char_table): Adjust for the above change.
20196
201972008-02-01 Jason Rumney <jasonr@gnu.org>
20198
20199 * w32font.c (Qgdi): Rename from Qw32.
20200
202012008-02-01 Jason Rumney <jasonr@gnu.org>
20202
20203 * w32bdf.c (get_quoted_string): Make function static.
20204
202052008-02-01 Kenichi Handa <handa@m17n.org>
20206
20207 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
20208 bigger ascent and descent than those of the font, use them as
20209 font's ascent and descent.
20210
202112008-02-01 Kenichi Handa <handa@m17n.org>
20212
20213 * Makefile.in (${lispsource}international/charprop.el): Move this
20214 target within "#ifdef HAVE_UNIDATA" and "#endif".
20215
202162008-02-01 Kenichi Handa <handa@m17n.org>
20217
20218 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
20219 (shortlisp): Add ../lisp/language/tai-viet.el.
20220
202212008-02-01 Ulrich Mueller <ulm@gentoo.org>
20222
20223 * Makefile.in (${lispsource}international/charprop.el): Depend on
20224 temacs${EXEEXT}.
20225
202262008-02-01 Jason Rumney <jasonr@gnu.org>
20227
20228 * w32font.c (w32font_close): Delete the GDI font object.
20229
20230 * w32menu.c: Include character.h.
20231
20232 * w32proc.c: Likewise.
20233
20234 * w32select.c: Likewise.
20235
20236 * makefile.w32-in (w32proc.o): Depend on character.h.
20237
202382008-02-01 Jason Rumney <jasonr@gnu.org>
20239
20240 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
20241
20242 * w32menu.c (syms_of_w32menu): Likewise.
20243
20244 * w32proc.c (syms_of_ntproc): Likewise.
20245
20246 * w32select.c (syms_of_w32select): Likewise.
20247
20248 * w32term.c (syms_of_w32term): Likewise.
20249
202502008-02-01 Jason Rumney <jasonr@gnu.org>
20251
20252 * w32font.c (w32font_draw): Delete brush after using it.
20253
202542008-02-01 Jason Rumney <jasonr@gnu.org>
20255
20256 * w32font.c (w32font_open): Don't set font_idx.
20257 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
20258 to font settings.
20259 (w32font_draw): Fill background explicitly.
20260
202612008-02-01 Jason Rumney <jasonr@gnu.org>
20262
20263 * w32term.c (w32_initialize): Don't call w32font_initialize.
20264
20265 * w32font.c (w32font_info): Remove subranges.
20266 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
20267 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
20268 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
20269 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
20270 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
20271 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
20272 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
20273 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
20274 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
20275 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
20276 New symbols.
20277 (font_callback_data): New struct.
20278 (w32font_list, w32font_match): Use it.
20279 (w32font_open): Don't populate subranges.
20280 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
20281 (w32font_encode_char): Always return unicode code-point as-is.
20282 (w32font_text_extents): Supply a transformation matrix to
20283 GetGlyphOutline. Never look up by glyph index. Avoid looping
20284 twice. Use unicode version of GetTexExtentPoint32 instead of
20285 glyph index version.
20286 (set_fonts_frame): Remove.
20287 (w32_enumfont_pattern_entity): Add frame parameter, use it to
20288 set frame parameter. Use backward compatible fake foundries.
20289 Save generic family in extra slot under QCfamily. Make width slot
20290 constant. Save QCspacing value. Save list of scripts instead of
20291 binary subranges.
20292 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20293 (add_font_entity_to_list): Use font_callback_data struct. Filter
20294 unwanted fonts.
20295 (add_one_font_entity_to_list): Use font_callback_data struct.
20296 (w32_registry): Default to iso10646_1.
20297 (fill_in_logfont): Use dpi from extra slot. Don't bother with
20298 string font registries. Don't fill in font name if it is a generic
20299 family name, fill family instead. Use spacing, family and script
20300 extra info to fill pitch, family and charset fields.
20301 (list_all_matching_fonts): Use font_callback_data struct.
20302 (unicode_range_for_char): Remove.
20303 (font_supported_scripts): New function.
20304 (w32font_initialize): Remove.
20305 (syms_of_w32font): Update which symbols are defined.
20306
203072008-02-01 Jason Rumney <jasonr@gnu.org>
20308
20309 * font.c (font_pixel_size): Reverse assq_no_quit args.
20310
20311 * w32term.h (FONT_WIDTH): Report max width, not average.
20312 (FONT_MAX_WIDTH): Remove.
20313 (FONT_AVG_WIDTH): New macro.
20314
20315 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20316 redefinition of FONT_WIDTH.
20317
20318 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20319 (w32_cache_char_metrics): Use FONT_WIDTH.
20320
20321 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20322
203232008-02-01 Jason Rumney <jasonr@gnu.org>
20324
20325 * w32font.c (w32font_open): Make lfHeight negative.
20326
20327 * w32fns.c (x_default_font_parameter): Use new style font name.
20328 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20329
203302008-02-01 Jason Rumney <jasonr@gnu.org>
20331
20332 * w32font.c (QCsubranges): New symbol.
20333 (w32font_open, w32font_has_char): Get subranges from subproperty
20334 of extra.
20335 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20336 (syms_of_w32font): Define :subranges symbol.
20337
20338 * font.c (font_put_extra): Expose externally.
20339
20340 * font.h (font_put_extra): Move declaration from font.c.
20341
20342 * font.c (Ffont_get): Use font driver to determine otf capability.
20343 (adjust_anchor): Check if driver defines anchor_point before using.
20344
20345 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20346 (w32font_draw): Use options.
20347 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20348 Fix detection of truetype fonts.
20349 (registry_to_w32_charset): Handle charsets other than iso8859-1
20350 expressed as lisp symbols.
20351 (w32_registry): Express charset as lisp symbol.
20352 (fill_in_logfont): Reverse pixel and point height logic.
20353 Don't set width here. Set quality to default.
20354
20355 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20356 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20357
20358 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20359 Remove redundant loop and allocation.
20360
20361 * makefile.w32-in (font.o, w32font.o): New objects.
20362 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20363 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20364
20365 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20366 STORE_XCHARB a valid l-value.
20367
20368 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20369 calculations for non-Truetype fonts.
20370 (x_draw_glyph_string): Sync with xterm.c.
20371 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20372 Remove redundant code.
20373 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20374
20375 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20376 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20377
20378 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20379 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20380
20381 * w32font.c: New file for w32 font backend.
20382
203832008-02-01 Kenichi Handa <handa@m17n.org>
20384
20385 * term.c: Don't include "buffer.h" twice.
20386
203872008-02-01 Kenichi Handa <handa@m17n.org>
20388
20389 * character.c (Funibyte_string): New function.
20390 (syms_of_character): Defsubr it.
20391
203922008-02-01 Jason Rumney <jasonr@gnu.org>
20393
20394 * w32term.c [USE_FONT_BACKEND]:
20395 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20396 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20397 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20398 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20399 (x_free_frame_resources): Sync with xterm.c.
20400
204012008-02-01 Andreas Schwab <schwab@suse.de>
20402
20403 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20404 char-table size.
20405
204062008-02-01 Kenichi Handa <handa@m17n.org>
20407
20408 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20409
204102008-02-01 Kenichi Handa <handa@m17n.org>
20411
20412 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20413 font_otf_gpos, add font_drive_otf.
20414
20415 * fontset.c (fontset_find_font): Pay attention to font size
20416 specified for a font.
20417 (reorder_font_vector): Check contents of font_def.
20418
20419 * font.c (struct otf_list): Delete it.
20420 (otf_list): Make it a lisp variable.
20421 (otf_open): Use lispy otf_list.
20422 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20423 (check_otf_features): New function.
20424 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20425 New functions.
20426 (font_drive_otf): New function merging font_otf_gsub and
20427 font_otf_gpos.
20428 (font_open_for_lface): New arg spec. Change argument order.
20429 (font_load_for_face): Adjust for the change of font_open_for_lface.
20430 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20431 Ffont_otf_gpos.
20432 (syms_of_font): Staticpro otf_list. Delete defsubr of
20433 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20434
20435 * xfaces.c (set_font_frame_param): Adjust for the change of
20436 font_open_for_lface.
20437
20438 * font.h (font_open_for_lface): Adjust prototype.
20439 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20440 member otf_drive.
20441 (font_otf_gsub, font_otf_gpos): Delete externs.
20442 (font_drive_otf): Extern it.
20443
204442008-02-01 Kenichi Handa <handa@m17n.org>
20445
20446 * font.c (font_at): If the window W is not on a window system,
20447 return Qnil.
20448
20449 * coding.c (produce_chars, encode_coding): Don't call
20450 insert_from_gap if no characters to produce.
20451
204522008-02-01 Kenichi Handa <handa@m17n.org>
20453
20454 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20455 Fclear_face_cache.
20456
20457 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20458
204592008-02-01 Miles Bader <miles@gnu.org>
20460
20461 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20462 Parse "--disable-font-backend" option.
20463 (standard_args): Add "--disable-font-backend" option.
20464
204652008-02-01 Kenichi Handa <handa@m17n.org>
20466
20467 * fontset.c (fontset_find_font): New function.
20468 (fontset_font): Use fontset_find_font.
20469 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20470 Register the specified font for all Latin characters.
20471 (new_fontset_from_font): Register the specified font for all Latin
20472 characters.
20473 (dump_fontset): For a realized fontset, include the base fontset
20474 name in the returned vector.
20475
204762008-02-01 Kenichi Handa <handa@m17n.org>
20477
20478 * character.h (CHAR_STRING): Cast C to unsigned on calling
20479 char_string.
20480
20481 * character.c (char_string): Type of arg C changed to unsigned.
20482 Signal an error if C is an invalid character code.
20483
20484 * editfns.c (general_insert_function, Fchar_to_string):
20485 Use CHARACTERP, not INTEGERP.
20486
204872008-02-01 Kenichi Handa <handa@m17n.org>
20488
20489 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20490 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20491
20492 * regex.c (analyse_first): Fix for multibyte characters in "case
20493 charset:" and "case categoryspec:".
20494
204952008-02-01 Andreas Schwab <schwab@suse.de>
20496
20497 * Makefile.in (LIBES): Move standard libraries to the end.
20498
204992008-02-01 Kenichi Handa <handa@m17n.org>
20500
20501 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20502 nonzero, don't shrink the buffer nextb.
20503
20504 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20505
20506 * coding.c (coding_alloc_by_making_gap): New arg offset.
20507 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20508 offset.
20509 (decode_coding_iso_2022): Update coding->safe_charsets.
20510 (decode_coding_gap): Temporarily set
20511 current_buffer->text->inhibit_shrinking to 1.
20512
205132008-02-01 Kenichi Handa <handa@m17n.org>
20514
20515 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20516 indexing into elements of s->cmp and s->char2b.
20517
205182008-02-01 Juanma Barranquero <lekktu@gmail.com>
20519
20520 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20521
205222008-02-01 Kenichi Handa <handa@m17n.org>
20523
20524 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20525 target_multibyte instead of multibyte.
20526 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20527 (bcmp_translate): Change the argument name from multibyte to
20528 target_multibyte.
20529
205302008-02-01 Kenichi Handa <handa@m17n.org>
20531
20532 These changes are to compile a regexp into a pattern that can be
20533 used both for multibyte and unibyte targets.
20534
20535 * Makefile.in (search.o): Depend on charset.h.
20536
20537 * character.c (multibyte_char_to_unibyte_safe): New function.
20538
20539 * search.c: Include "charset.h".
20540 (compile_pattern_1): Delete argument multibyte. Don't set
20541 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20542 (compile_pattern): Don't compare cp->buf.target_multibyte.
20543 Compare cp->buf.charset_unibyte.
20544 (compile_pattern): Set cp->buf.target_multibyte.
20545
20546 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20547
20548 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20549
20550 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20551 multibyte. Change callers.
20552 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20553 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20554 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20555 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20556 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20557 (regex_compile): Make the compiled pattern usable both for
20558 multibyte and unibyte targets.
20559 (analyse_first): Make the fastmap usable both for multibyte and
20560 unibyte targets.
20561 (TRANSLATE_VIA_MULTIBYTE): Delete.
20562 (re_match_2_internal): Pay attention to the case that the
20563 multibyteness of bufp and target may be different.
20564
205652008-02-01 Kenichi Handa <handa@m17n.org>
20566
20567 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20568 empty box occupy at least one column width.
20569
205702008-02-01 Miles Bader <miles@gnu.org>
20571
20572 * Makefile.in: Remove redundant HAVE_XFT clause.
20573
205742008-02-01 Kenichi Handa <handa@m17n.org>
20575
20576 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20577
205782008-02-01 Kenichi Handa <handa@m17n.org>
20579
20580 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20581 being nil.
20582
205832008-02-01 Kenichi Handa <handa@m17n.org>
20584
20585 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20586
205872008-02-01 Kenichi Handa <handa@m17n.org>
20588
20589 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20590
205912008-02-01 Kenichi Handa <handa@m17n.org>
20592
20593 * search.c (simple_search): Fix previous change.
20594
205952008-02-01 Kenichi Handa <handa@m17n.org>
20596
20597 * xftfont.c (ftfont_font_format): Extern declaration.
20598
20599 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20600
20601 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20602 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20603
20604 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20605 (ftfont_font_format): Fix previous change.
20606
20607 * font.h (Ffont_xlfd_name): EXFUN it.
20608
20609 * font.c (font_parse_xlfd): Fix the array size of `f'.
20610 (register_font_driver): Use EQ to compare driver->type.
20611
20612 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20613 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20614 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20615
206162008-02-01 Kenichi Handa <handa@m17n.org>
20617
20618 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20619 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20620
206212008-02-01 Kenichi Handa <handa@m17n.org>
20622
20623 * xfont.c (xfont_open): Set font->format.
20624
20625 * xftfont.c (xftfont_open): Set font->format.
20626
20627 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20628 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20629 (ftfont_open): Set font->format.
20630 (ftfont_font_format): New function.
20631
20632 * font.h (struct font): New member format.
20633
20634 * font.c (Qopentype): New variable.
20635 (syms_of_font): Defsym it.
20636 (Fquery_font): Change the format of the last element of the return
20637 value.
20638
206392008-02-01 Kenichi Handa <handa@m17n.org>
20640
20641 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20642 last resort.
20643
206442008-02-01 Kenichi Handa <handa@m17n.org>
20645
20646 * coding.c (detect_coding_charset): Fix detection of multi-byte
20647 charset.
20648
206492008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20650
20651 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20652
206532008-02-01 Kenichi Handa <handa@m17n.org>
20654
20655 * xdisp.c (get_next_display_element): Set it->face_id for the
20656 first component of a composition.
20657 (x_produce_glyphs): Check if the font is changed or not for composition.
20658
206592008-02-01 Kenichi Handa <handa@m17n.org>
20660
20661 * fontset.c (Qlatin): New variable.
20662 (syms_of_fontset): Define it as a lisp symbol.
20663 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20664
206652008-02-01 Kenichi Handa <handa@m17n.org>
20666
20667 * font.c (font_unparse_fcname): Pay attention to the case that
20668 some of font property is a null string.
20669
206702008-02-01 Kenichi Handa <handa@m17n.org>
20671
20672 * term.c: Include "composite.h".
20673 (encode_terminal_code): Output all components of composition.
20674 Check the size of encode_terminal_src.
20675 (produce_glyphs): For composition, call produce_composite_glyph.
20676 (append_composite_glyph, produce_composite_glyph): New functions.
20677
20678 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20679 is not found, get font_info from the current ascii face.
20680
206812008-02-01 Kenichi Handa <handa@m17n.org>
20682
20683 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20684 buffer-file-name to Qnil before calling insert_from_buffer.
20685
20686 * font.c (font_unparse_fcname): Pay attention to the case that
20687 foundry is a null string.
20688
206892008-02-01 Kenichi Handa <handa@m17n.org>
20690
20691 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20692
20693 * font.c (Qunicode_sip): New variable.
20694 (syms_of_font): Declare it as a Lisp symbol.
20695
20696 * font.h (Qunicode_sip): Extern it.
20697
206982008-02-01 Kenichi Handa <handa@m17n.org>
20699
20700 * composite.c (get_composition_id): Pay attention to TAB component.
20701
20702 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20703 TAB. Adjust for the change of s->char2b which always points to
20704 the first element of allocated memory.
20705
20706 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20707
20708 * xdisp.c (handle_composition_prop): Set it->c to the first
20709 non-TAB component.
20710 (fill_composite_glyph_string): Change argument.
20711 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20712 (x_produce_glyphs): Fix handling of left/right padding.
20713
207142008-02-01 Kenichi Handa <handa@m17n.org>
20715
20716 * coding.c (detect_coding_system): Fix for handling off
20717 inhibit_iso_escape_detection. Fix for the case that no coding
20718 system is defined for a specific coding category.
20719
207202008-02-01 Kenichi Handa <handa@m17n.org>
20721
20722 * font.c (font_matching_entity): Delete unused local var.
20723
20724 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20725 opening a font.
20726
20727 * fileio.c (Finsert_file_contents): On recovering a file, assume
20728 Unix-like eol.
20729 (choose_write_coding_system): On auto-saving a file, force
20730 Unix-like eol.
20731
20732 * coding.c (setup_coding_system): Fix setting of
20733 coding->common_flags based on eol_type.
20734 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20735 inherit from it.
20736
207372008-02-01 Kenichi Handa <handa@m17n.org>
20738
20739 * alloc.c (NSTATICS): Increas to 0x600.
20740
207412008-02-01 Kenichi Handa <handa@m17n.org>
20742
20743 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20744 (ftfont_list): Don't check :name property.
20745 (ftfont_match): New function.
20746 (ftfont_pattern_entity): If the pattern doesn't contain
20747 FC_SPACING, don't assume FC_MONO.
20748
20749 * font.h (struct font_driver): New member `match'.
20750 (font_update_drivers): Adjust prototype.
20751
20752 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20753 property of FONT.
20754 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20755 them unconditionally.
20756 (font_matching_entity): New function.
20757 (font_open_by_name): Try font_matching_entity if exact match is
20758 not found.
20759 (font_update_drivers): Delete the arg FONT. Return a list of
20760 actually used backends. Don't free faces, font caches here.
20761 Don't store data in frame parameters. Don't call x_set_font.
20762 (Ffont_spec): Store :name property as is.
20763 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20764 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20765 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20766 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20767 Call font->driver->otf_gsub instead of font_otf_gsub.
20768
20769 * frame.c (x_set_font_backend): Do more works that were done in
20770 font_update_drivers before.
20771
20772 * xfont.c (xfont_match): New function.
20773 (xfont_driver): Set xfont_driver.match to xfont_match.
20774 (xfont_draw): Set font in GC if necessary.
20775
20776 * ftxfont.c (ftxfont_match): New function.
20777 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20778
20779 * xftfont.c (xftfont_match): New function.
20780 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20781
207822008-02-01 Kenichi Handa <handa@m17n.org>
20783
20784 * font.h (struct font): New member scalable.
20785 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20786 (font_otf_gsub): Adjust prototype.
20787
20788 * font.c (font_otf_capability): Fix handling of the default langsys.
20789 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20790 Check the contents of SPEC.
20791 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20792 (check_gstring): New function.
20793 (REPLACEMENT_CHARACTER): New macro.
20794 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20795 glyph codes of GSTRING.
20796 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20797 (font_prepare_composition): Set cmp->glyph_len.
20798 (font_open_entity): Set font->scalable.
20799 (Ffont_get): Handle :otf property.
20800 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20801 functions.
20802 (Fquery_font): Use font->font.full_name.
20803 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20804 Sfont_otf_alternates.
20805
20806 * ftfont.c (ftfont_open): Set font->font.full_name and
20807 font->font.name properly. Fix calculation of font->font.height
20808 and font->min_width.
20809
20810 * ftxfont.c (ftxfont_create_gcs): New function.
20811 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20812 (ftxfont_draw_backgrond): Fix filling region.
20813 (ftxfont_default_fid): New function.
20814 (ftxfont_open): Set xfont->fid to the return value of
20815 ftxfont_default_fid.
20816 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20817 (ftxfont_done_face): Free only GCs that are created by
20818 ftxfont_create_gcs.
20819 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20820
20821 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20822 Clip to src->width, etc (not src->clip_XXX).
20823
20824 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20825 FontBackend frame parameter.
20826
208272008-02-01 Kenichi Handa <handa@m17n.org>
20828
20829 * font.h (struct font_driver_list): New member `on'.
20830 (Fclear_font_cache): EXFUN it.
20831 (font_update_drivers): Extern it.
20832
20833 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20834 (font_list_entities): Check driver_list->on.
40b1a3a9 20835 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
20836 (font_update_drivers): New function.
20837 (Fclear_font_cache): Check driver_list->on.
20838
20839 * frame.h (Qfont_backend): Extern it.
20840 (x_set_font_backend): Extern it.
20841
20842 * frame.c (Qfont_backend): New variable.
20843 (frame_parms): New element for font-backend.
20844 (x_set_font_backend): New function.
20845
20846 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20847 FontBackend frame parameter.
20848 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20849 x_set_font_backend.
20850
20851 * xfont.c (xfont_list): Don't try listing by :name property if the
20852 name is not for XLFD.
20853
208542008-02-01 Kenichi Handa <handa@m17n.org>
20855
20856 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20857 (LGLYPH_SET_TO): New macros.
20858 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20859 element of G is vector or not.
20860 (font_at): Extern it.
20861
20862 * font.c: Include window.h.
20863 (font_lispy_object): New function.
20864 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20865 end of valid glyph.
20866 (font_close_object): Fix getting (struct font *).
20867 (font_at): New function.
20868 (Ffont_get): If FONT is a font-object, get entity from it.
20869 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20870 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20871 range check.
20872 (Ffont_at): New function.
20873 (syms_of_font): Defsubr Sfont_at.
20874
20875 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20876 before the entry for Qcomposition.
20877 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20878 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20879 the font in gstring.
20880 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20881 LGLYPH_FORM (g) to detect the end of valid glyph.
20882 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20883 we are composing with gstring.
20884
20885 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20886 Check if adjustment is vector or not.
20887
20888 * Makefile.in (font.o): Make it depends on window.h.
20889
208902008-02-01 Kenichi Handa <handa@m17n.org>
20891
20892 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20893 adjustment is vector or not.
20894
208952008-02-01 Miles Bader <miles@gnu.org>
20896
20897 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20898
208992008-02-01 Kenichi Handa <handa@m17n.org>
20900
20901 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20902 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20903 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20904
20905 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20906 (DEVICE_DELTA): Fix typo.
20907 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20908 LGLYPH format.
20909
20910 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20911 the change of LGLYPH format.
20912
209132008-02-01 Kenichi Handa <handa@m17n.org>
20914
20915 * ftfont.c (ftfont_list): Fix typo.
20916 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20917
209182008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20919
20920 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20921
20922 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20923 xftface_info is non-NULL.
20924
209252008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20926
20927 * ftfont.c (ftfont_list): Move misplaced #endif.
20928
209292008-02-01 Kenichi Handa <handa@m17n.org>
20930
20931 * ftfont.c (ftfont_list): Pay attention to the case that
20932 FC_CAPABILITY is not defined.
20933
209342008-02-01 Kenichi Handa <handa@m17n.org>
20935
20936 * xftfont.c (xftfont_open): Set charset related members to -1.
20937
20938 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20939 QCname.
20940 (ftfont_open): Set charset related members to -1.
20941
20942 * fontset.c (Votf_script_alist): New variable.
20943 (syms_of_fontset): Initialize it.
20944 (fontset_font): Delete unused variable.
20945
20946 * fontset.h (Votf_script_alist): Extern it.
20947
20948 * font.c (font_find_for_lface): Optimize code.
20949
20950 * font.h (font_close_object, font_merge_old_spec): Extern them.
20951
209522008-02-01 Kenichi Handa <handa@m17n.org>
20953
20954 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20955 (syms_of_font): Initialize them.
20956 (font_pixel_size): Allow float value in dpi.
20957 (font_prop_validate_type): Delete.
20958 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20959 Change caller.
20960 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20961 (font_prop_validate_extra): Delete.
20962 (font_prop_validate_spacing): New function.
20963 (font_property_table): Add elements for all known properties.
20964 (get_font_prop_index): Rename from check_font_prop_name. New
20965 argument FROM. Change caller.
20966 (font_prop_validate): Validate all known properties.
20967 (font_put_extra): Delete argument force. Change caller.
20968 (font_expand_wildcards): Make it static. Fix the way of shrinking
20969 the possible range.
20970 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20971 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20972 Change caller.
20973 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20974 (font_parse_fcname): Delete argument merge. Fix parsing of point
20975 size. Don't validate properties values here. Change caller.
20976 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20977 (font_open_by_name): Delete unused variable.
20978 (Ffont_spec): Likewise. Validate property values.
20979 (Ffont_match_p): New function.
20980
20981 * font.h (QCscalable): Extern it.
20982 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20983
20984 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20985
20986 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20987 (xfont_list_pattern): New function.
20988 (xfont_list): Use xfont_list_pattern.
20989
209902008-02-01 Kenichi Handa <handa@m17n.org>
20991
20992 * font.h (Flist_fonts): EXFUN it.
20993
209942008-02-01 Jason Rumney <jasonr@gnu.org>
20995
20996 * w32term.c (w32_initialize): Add back smoothing_type and
20997 smoothing_enabled definitions.
20998
209992008-02-01 Kenichi Handa <handa@m17n.org>
21000
21001 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
21002 s->face->font on determining underline position.
21003
210042008-02-01 Kenichi Handa <handa@m17n.org>
21005
21006 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
21007 (font_has_char): Accept font-object too.
21008 (font_find_for_lface): Try at first with a size specified in face.
21009
210102008-02-01 Kenichi Handa <handa@m17n.org>
21011
21012 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
21013 font_open_by_name.
21014
210152008-02-01 Kenichi Handa <handa@m17n.org>
21016
21017 * font.h (QCspacing, QCdpi): Extern them.
21018 (enum font_spacing): New enum.
21019 (FONT_PIXEL_SIZE_QUANTUM): New macro.
21020
21021 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
21022 (QCspacing, QCdpi): New variables.
21023 (syms_of_font): Initialize them.
21024 (font_pixel_size): New function.
21025 (font_put_extra): New function.
21026 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
21027 in FONT_EXTRA.
21028 (font_parse_fcname): Handle enumerated values (e.g. bold).
21029 Fix handling font size. Add QCname property that contains only
21030 unknown properties.
21031 (font_score): Change argument. Change caller. Pay attention to
21032 FONT_PIXEL_SIZE_QUANTUM.
21033 (font_sort_entites, font_list_entities, font_find_for_lface)
21034 (font_open_for_lface, font_open_by_name): Fix handling of font size.
21035 (Ffont_spec): Add QCname property that contains only unknown properties.
21036
21037 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
21038 include weight in listing pattern, instead check weight of each
21039 listed font. Don't include scalable in pattern. Pay attention to
21040 FONT_PIXEL_SIZE_QUANTUM.
21041
210422008-02-01 Kenichi Handa <handa@m17n.org>
21043
21044 * font.c (font_parse_fcname): Fix parsing of point-size.
21045 (font_unparse_fcname): Produce symbolic names for style properties.
21046 (font_list_entities): Handle float size correctly.
21047 (font_open_by_name): Prefer `normal' property values if the name
21048 doesn't specify them.
21049
21050 * fontset.c (Finternal_char_font): Use font_get_name, not
21051 Ffont_xlfd_name.
21052
21053 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
21054 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
21055 pattern. Don't force scalable.
21056
21057 * xftfont.c (xftfont_open): For generating a name, start from
21058 96-byte buffer.
21059
210602008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21061
21062 * frame.h (x_new_fontset2): Fix prototype.
21063
210642008-02-01 Kenichi Handa <handa@m17n.org>
21065
21066 * font.h (struct font_driver): Delete member parse_name.
21067 (font_match_p, font_get_spec, font_parse_fcname)
21068 (font_unparse_fcname): Extern them.
21069 (font_get_name): Adjust prototype.
21070
21071 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
21072 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
21073 (font_expand_wildcards): Fix handling ENCODING field. Avoid
21074 unnecessary checks for weight, slant, and swidth.
21075 (font_parse_fcname): New function.
21076 (font_unparse_fcname): New function.
21077 (font_parse_name): New function.
21078 (font_match_p): New function.
21079 (font_get_name): Change return value to Lisp string.
21080 (font_get_spec): New function.
21081 (Qunspecified, Qignore_defface): Don't extern them.
21082 (font_find_for_lface): Assume that LFACE is fully specified.
21083 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
21084 object, use it for FACE.
21085 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
21086 driver->parse_name.
21087 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
21088
21089 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
21090 prototype.
21091
21092 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
21093 argument F. Don't call Fnew_fontset. Instead, directly call
21094 make_fontset.
21095
21096 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
21097
21098 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
21099 of x_new_fontset2.
21100
21101 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
21102 (Qsans__serif): New variables.
21103 (ftfont_generic_family_list): New variable.
21104 (syms_of_ftfont): Initialize the above variables.
21105 (ftfont_pattern_entity): Delete argument NAME.
21106 (ftfont_list_generic_family): New function.
21107 (ftfont_parse_name): Delete this function.
21108 (ftfont_list): Try generic family only when FcFontList found no font.
21109 (ftfont_list_family): Fix args to FcObjectSetBuild.
21110
21111 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
21112 object in attrs[LFACE_FONT_INDEX].
21113 (set_lface_from_font_name): Cancel all changes for font-backend.
21114 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
21115 function.
21116 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
21117 font object in QCfont attribute.
21118 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
21119 (realize_default_face) [USE_FONT_BACKEND]: Call
21120 set_lface_from_font_and_fontset.
21121
21122 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
21123 "fixed", and signal error here if no suitable font was found.
21124
21125 * xfont.c (xfont_parse_name): Delete this function.
21126
21127 * xftfont.c (xftfont_open): Change coding style of error
21128 handling. Generate fontconfig's fontname pattern.
21129
21130 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
21131 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
21132
21133 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
21134 Both args FONTSET and FONT_OBJECT must be existing ones.
21135
211362008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21137
21138 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
21139
211402008-02-01 Kenichi Handa <handa@m17n.org>
21141
21142 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
21143
21144 * font.h (struct font): Fix typo.
21145
21146 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
21147 XLFD_XXX_INDEX.
21148 (enum xlfd_field_mask): New enum.
21149 (intern_font_field): Changed argument. Change caller. If digits
21150 are followed by non-digits, return a symbol.
21151 (font_expand_wildcards): New function.
21152 (font_parse_xlfd): Fix wildcard handling.
21153 (Ffont_spec): If :name is specified, reflect the info in the other
21154 properties.
21155
21156 * ftfont.c (ftfont_pattern_entity): Fix typo.
21157 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
21158 locale.
21159
211602008-02-01 Kenichi Handa <handa@m17n.org>
21161
21162 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
21163
21164 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
21165 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
21166 registry doesn't specify encoding part.
21167 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
21168 (font_open_by_name): At first try parsing the name.
21169 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
21170 as Lisp symbols.
21171
21172 * fontset.c (reorder_font_vector): Pay attention to the case that
21173 the 3rd element of font_def is nil.
21174 (fontset_font): For the default fontset, append one more fontset
21175 elements for a script-based font specification. Don't add script
21176 attribute on finding a font.
21177 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
21178 font name.
21179 (fontset_ascii_font): If a font can't be opened, return nil.
21180
21181 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
21182 (ftfont_pattern_entity): New function.
21183 (ftfont_get_cache): Assume that freetype_font_cache is already
21184 initialized.
21185 (ftfont_list): Handle the case that a file is specified in font
21186 name. Use ftfont_pattern_entity to generate entities.
21187 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
21188 (syms_of_ftfont): Initialize freetype_font_cache.
21189
21190 * xftfont.c (xftfont_open): Make the font name fontconfig's
21191 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
21192 (xftfont_close): Free font->font.name if not NULL.
21193
21194 * xfont.c (xfont_list): If script is specified for a font, return
21195 null_vector.
21196 (xfont_list_family): Declare argument type.
21197
21198 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
21199 name, set LFACE_FONT (lface) to nil.
21200
21201 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
21202 return Qnil.
21203
212042008-02-01 Kenichi Handa <handa@m17n.org>
21205
21206 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
21207 (standard_args): Add "-enable-font-backend".
21208
212092008-02-01 Kenichi Handa <handa@m17n.org>
21210
21211 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
21212 (struct xftdraw_list, xftdraw_list): Delete them.
21213 (register_xftdraw, check_xftdraw): Delete them.
21214 (xftfont_prepare_face): Don't call register_xftdraw.
21215 (xftfont_done_face): Don't call check_xftdraw.
21216 (xftfont_draw): Get background color only when with_background is
21217 nonzero.
21218
21219 * xfont.c (xfont_encode_char): Fix calculation of char2b.
21220
212212008-02-01 Kenichi Handa <handa@m17n.org>
21222
21223 These changes are for the new font handling codes.
21224
21225 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
21226 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
21227 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
21228 (FONTSRC, FONTOBJ): New variables.
21229 (obj): Add $(FONTOBJ).
21230 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
21231 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
21232 @LIBOTF_LIBS@.
21233 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
21234 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
21235
21236 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
21237
21238 * character.h (Vscript_representative_chars): Extern it.
21239
21240 * character.c (Vscript_representative_chars): New variable.
21241 (syms_of_character): Declare it as a Lisp variable.
21242
21243 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
21244 enable_font_backend is nonzero, accept the composition method
21245 COMPOSITION_WITH_GLYPH_STRING.
21246
21247 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
21248 enumeration COMPOSITION_WITH_GLYPH_STRING.
21249
21250 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
21251 members clip_x, clip_y, clip_width, and clip_height.
21252 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
21253
21254 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
21255 --enable-font-backend. Call syms_of_font.
21256
21257 * fns.c (assoc_no_quit): New function.
21258
21259 * fontset.h (FONT_INFO_FROM_FACE): New macro.
21260 (face_for_font, new_fontset_from_font)
21261 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
21262
21263 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
21264 (fontset_font, fontset_ascii, face_for_char)
21265 (make_fontset_for_ascii_face, Ffont_info)
21266 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
21267 is nonzero, use font-backend mechanism.
21268 (find_font_encoding): Make it non-static.
21269 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
21270 New functions.
21271
21272 * frame.h (struct frame): New members resx and resy.
21273 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
21274 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
21275
21276 * frame.c [USE_FONT_BACKEND]: Include "font.h".
21277 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
21278
21279 * lisp.h (assoc_no_quit): Extern it.
21280
21281 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
21282 Through out the file, use FONT_INFO_FROM_FACE instead of
21283 FONT_INFO_FROM_ID, use get_per_char_metric instead of
21284 rif->per_char_metric.
21285 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21286 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21287 (get_glyph_face_and_encoding, fill_composite_glyph_string)
21288 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21289 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21290 nonzero, use font-backend mechanism.
21291 (get_per_char_metric): New function.
21292
21293 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21294 (set_lface_from_font_name)
21295 (set_font_frame_param, free_realized_face)
21296 (prepare_face_for_display, clear_face_gcs)
21297 (Finternal_set_font_selection_order, realize_x_face)
21298 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21299 font-backend mechanism.
21300 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21301 (load_face_font) [USE_FONT_BACKEND]: Abort.
21302 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21303 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21304
21305 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21306 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21307 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21308 nonzero, register all available font drivers. Call
21309 x_default_font_parameter for deciding a font.
21310 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21311
21312 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21313 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21314 (x_set_glyph_string_clipping_exactly)
21315 (x_compute_glyph_string_overhangs)
21316 (x_draw_glyph_string_foreground)
21317 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21318 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21319 enable_font_backend is nonzero, use font-backend mechanism.
21320 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21321
213222008-02-01 Kenichi Handa <handa@m17n.org>
21323
21324 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21325 system_eol_type.
21326 (syms_of_coding): Initialize system_eol_type.
21327
21328 * process.c (Fset_process_coding_system): Inherit system's eol
21329 format if necessary.
21330
213312008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21332
21333 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21334
213352008-02-01 Kenichi Handa <handa@m17n.org>
21336
21337 * coding.c (decode_eol): Pay attention to buffer relocation in
21338 del_range_2.
21339 (decode_coding): Call decode_eol before restoring undo_list.
21340
213412008-02-01 Kenichi Handa <handa@m17n.org>
21342
21343 * charset.c (Fdefine_charset_internal): Fix setting of
21344 emacs_mule_bytes.
21345
213462008-02-01 Kenichi Handa <handa@m17n.org>
21347
21348 * keyboard.c (read_char): Check if C is a character or not before
21349 looking up Vkeyboard_translate_table.
21350
213512008-02-01 Kenichi Handa <handa@m17n.org>
21352
21353 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21354 condition to terminate the loop.
21355
213562008-02-01 Kenichi Handa <handa@m17n.org>
21357
21358 * coding.c (produce_composition): Compare charbuf[i] instead of
21359 args[i] against 0.
21360 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21361
213622008-02-01 Kenichi Handa <handa@m17n.org>
21363
21364 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21365 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21366 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21367 detect_coding.
21368 (emacs_mule_char): Handle old style (Emacs 20) component character
21369 of a composition.
21370 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21371 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21372 composition rule.
21373 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21374
213752008-02-01 Kenichi Handa <handa@m17n.org>
21376
21377 * coding.c (encode_coding_ccl): Allocate destination dynamically
21378 when necessary.
21379
213802008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21383 the loop. When quitted, show a proper error message.
21384
213852008-02-01 Kenichi Handa <handa@m17n.org>
21386
21387 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21388 src->clip_head and src->clip_tail temporarily instead of src->hl.
21389
21390 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21391 character sequence.
21392 (Fccl_execute_on_string): Use ASET, not XSET.
21393
213942008-02-01 Kenichi Handa <handa@m17n.org>
21395
21396 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21397
213982008-02-01 Kenichi Handa <handa@m17n.org>
21399
21400 * coding.c (decode_coding): Fix the condition of terminating the
21401 decoding loop.
21402
214032008-02-01 Kenichi Handa <handa@m17n.org>
21404
21405 * data.c (Faset): On setting a character bigger than 255 in a
21406 unibyte string, signal an error instead of make the string multibyte.
21407
214082008-02-01 Kenichi Handa <handa@m17n.org>
21409
21410 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21411 made by a mapping table.
21412
214132008-02-01 Kenichi Handa <handa@m17n.org>
21414
21415 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21416 not.
21417 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21418 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21419
21420 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21421 s->face is NULL or not.
21422
214232008-02-01 Kenichi Handa <handa@m17n.org>
21424
21425 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21426 (x_draw_glyph_string): Fix drawing of right_overhang and
21427 left_overhang around/on cursor.
21428
21429 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21430
214312008-02-01 Kenichi Handa <handa@m17n.org>
21432
21433 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21434
214352008-02-01 Kenichi Handa <handa@m17n.org>
21436
21437 * coding.c (Fdefine_coding_system_internal)
21438 (Fdefine_coding_system_alias): Avoid a duplicated element in
21439 Vcoding_system_alist.
21440
214412008-02-01 Kenichi Handa <handa@m17n.org>
21442
21443 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21444
21445 * coding.c (Qcoding_system_define_form): New variable.
21446 (syms_of_coding): Intern and staticpro it.
21447 (Fcoding_system_p): Check Qcoding_system_define_form.
21448 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21449
21450 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21451 Fcoding_system_p.
21452 (CHECK_CODING_SYSTEM): If ID is not available, call
21453 Fcheck_coding_system.
21454 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21455 Try also Fcheck_coding_system.
21456
214572008-02-01 Kenichi Handa <handa@m17n.org>
21458
21459 * coding.c (code_conversion_restore): GCPRO arg.
21460
214612008-02-01 Kenichi Handa <handa@m17n.org>
21462
21463 * character.c (lisp_string_width): Check multibyteness of STRING.
21464
214652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21466
21467 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21468 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21469 (decode_mac_font_name): Use decode_coding_c_string instead of
21470 decode_coding.
21471 (x_load_font): Initialize fontp->fontset to -1. Set
21472 fontp->encoding_type.
21473
214742008-02-01 Kenichi Handa <handa@m17n.org>
21475
21476 * search.c (search_buffer): Give up BM search on case-fold-search
21477 if one of a target character has a case-equivalence of different
3b59c351 21478 byte length even if that target character is an ASCII.
aac0c6e3
MR
21479 (simple_search): Fix calculation of byte length of matched text.
21480 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21481
214822008-02-01 Kenichi Handa <handa@m17n.org>
21483
21484 * coding.c (decode_coding): Fix handling of invalid bytes.
21485
214862008-02-01 Kenichi Handa <handa@m17n.org>
21487
21488 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21489 Unicode characters.
21490
214912008-02-01 Kenichi Handa <handa@m17n.org>
21492
21493 * coding.c (encode_coding_object): If a pre-write-conversion
21494 function makes a new buffer, kill it.
21495
214962008-02-01 Kenichi Handa <handa@m17n.org>
21497
21498 * coding.c (QCascii_compatible_p): New variable.
21499 (syms_of_coding): Initialize it.
21500 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21501 calling string_char.
21502 (record_conversion_result): Add `default:' case.
21503 (coding_charset_list): Delete unused variable `coding_type'.
21504 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21505 property in the plist of the coding system.
21506 (Fcoding_system_put): Check QCascii_compatible_p.
21507
215082008-02-01 Miles Bader <miles@gnu.org>
21509
21510 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21511 removed calculation of frame `f', as it's now used.
21512
215132008-02-01 Kenichi Handa <handa@m17n.org>
21514
21515 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21516 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21517 (UNIDATA): New variable.
21518 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21519 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21520 $(RUN_TEMACS) unconditionally.
21521
215222008-02-01 Kenichi Handa <handa@m17n.org>
21523
21524 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21525 (admindir): New variable.
21526 ($(lispsource)international/charprop.el): New target.
21527
215282008-02-01 Miles Bader <miles@gnu.org>
21529
21530 * character.c (chars-in-region): Remove obsolete function.
21531 (syms_of_character): Remove its initialization.
21532
215332008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21534
21535 * w32select.c (validate_coding_system)
21536 (setup_windows_coding_system): New functions.
21537 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21538 setup_windows_coding_system.
21539 (setup_config, Fw32_get_clipboard_data): Use
21540 validate_coding_system.
21541 (Fx_selection_exists): Move call to setup_config to a place
21542 where signals are allowed.
21543
21544 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21545 (Fcheck_coding_system): Add declarations.
21546
215472008-02-01 Kenichi Handa <handa@m17n.org>
21548
21549 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21550
215512008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21552
21553 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21554 string as the second argument for x_new_fontset.
21555
215562008-02-01 Kenichi Handa <handa@m17n.org>
21557
21558 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21559 (encode_coding_object): Use safe_call instead of call2.
21560
215612008-02-01 Kenichi Handa <handa@m17n.org>
21562
21563 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21564
21565 * Makefile.in (lisp): Include charprop.el.
21566
215672008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21568
21569 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21570 Not sure if it's unnecessary.
21571
215722008-02-01 Steven Tamm <steventamm@mac.com>
21573
21574 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21575 some possibly unnecessary fontset checking code that crashed
21576 when creating a new frame.
21577
215782008-02-01 Kenichi Handa <handa@m17n.org>
21579
21580 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21581 lookup_face.
21582
21583 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21584
21585 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21586
215872008-02-01 Kenichi Handa <handa@m17n.org>
21588
21589 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21590 (coding_charset_list): New function.
21591
21592 * coding.h (coding_charset_list): Extern it.
21593
215942008-02-01 Kenichi Handa <handa@m17n.org>
21595
21596 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21597 concatenation of family and registry.
21598
215992008-02-01 Kenichi Handa <handa@m17n.org>
21600
21601 * character.h (BYTE8_STRING): Fix typo.
21602
21603 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21604 string to multibyte (sync to HEAD).
21605
21606 * casefiddle.c (casify_region): Handle changes in byte-length
21607 using replace_range_2 (sync to HEAD).
21608
216092008-02-01 Andreas Schwab <schwab@suse.de>
21610
21611 * chartab.c (map_char_table): GCPRO table and arg.
21612
216132008-02-01 Kenichi Handa <handa@m17n.org>
21614
21615 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21616 already at limit.
21617
216182008-02-01 Kenichi Handa <handa@m17n.org>
21619
21620 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21621 instead of fast_c_string_match_ignore_case.
21622 (find_font_encoding): Change argument to Lisp_Object. Use
21623 fast_string_match_ignore_case instead of
21624 fast_c_string_match_ignore_case. Change caller.
21625
216262008-02-01 Kenichi Handa <handa@m17n.org>
21627
21628 * xdisp.c (get_next_display_element): In unibyte case, decide to
21629 display in octal form by checking a character by
21630 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21631
21632 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21633
21634 * character.c (unibyte_has_multibyte_table): New variable.
21635
21636 * character.h (unibyte_has_multibyte_table): Extern it.
21637 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21638
216392008-02-01 Kenichi Handa <handa@m17n.org>
21640
21641 * coding.c (encode_coding_iso_2022): Fix handling of charset
21642 annotation.
21643
216442008-02-01 Kenichi Handa <handa@m17n.org>
21645
21646 * coding.c (setup_coding_system): If coding_system is nil, use
21647 Qundecided.
21648 (Fterminal_coding_system): Return nil if terminal coding system is
21649 `undecided'.
21650 (syms_of_coding): Define coding-system `undecided' here. Setup
21651 terminal_coding as `undecided'.
21652
216532008-02-01 Kenichi Handa <handa@m17n.org>
21654
21655 * xdisp.c (message_dolog, set_message_1): Call
21656 unibyte_char_to_multibyte with arg type int.
21657
21658 * lread.c (read1): Fix reading of a char-table.
21659
21660 * print.c (print_object): Include sub char-table in circularities
21661 detection.
21662
216632008-02-01 Kenichi Handa <handa@m17n.org>
21664
21665 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21666 Append the found sequences in car of ARGS instead of prepending.
21667
216682008-02-01 Kenichi Handa <handa@m17n.org>
21669
21670 * fileio.c (report_file_error): Make a unibyte string from
21671 strerror (errorno).
21672 (Fsubstitute_in_file_name): Fix the arg to
21673 unibyte_char_to_multibyte. It is evaluated twice.
21674
216752008-02-01 Kenichi Handa <handa@m17n.org>
21676
21677 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21678
216792008-02-01 Kenichi Handa <handa@m17n.org>
21680
21681 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21682 BOM is not found.
21683 (detect_coding, detect_coding_system): Optimization for ISO-2022
21684 when no 8-bit data is found.
21685
216862008-02-01 Jason Rumney <jasonr@gnu.org>
21687
21688 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21689
216902008-02-01 Kenichi Handa <handa@m17n.org>
21691
21692 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21693 CHARS.
21694
216952008-02-01 Steven Tamm <steventamm@mac.com>
21696
21697 * macterm.c (mac_encode_char): Add charset argument and update
21698 to use encoding_type.
21699 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21700 switch to pure fontset.
21701 (decode_mac_font_name): Temporarily remove decoding.
21702 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21703 (x_load_font): Temporarily remove encoding.
21704
217052008-02-01 Kenichi Handa <handa@m17n.org>
21706
21707 * xfaces.c (Fface_font): If frame is not on a window system,
21708 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21709 refer to face->font.
21710 (split_font_name_into_vector, build_font_name_from_vector)
21711 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21712 when HAVE_WINDOW_SYSTEM is defined.
21713
217142008-02-01 Kenichi Handa <handa@m17n.org>
21715
21716 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21717 (x_produce_glyphs): Fix setting of members of cmp in case
21718 cmp->glyph_len is zero.
21719
21720 * fontset.c (Fset_fontset_font): Fix docstring.
21721 (Ffontset_info): Make it backward compatible. New arg ALL.
21722
217232008-02-01 Kim F. Storm <storm@cua.dk>
21724
21725 * process.c (read_process_output): Grow decoding_buf when needed;
21726 this could cause a crash in allocate_string and compact_small_strings.
21727
217282008-02-01 Kenichi Handa <handa@m17n.org>
21729
21730 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21731
217322008-02-01 Kenichi Handa <handa@m17n.org>
21733
21734 * coding.c (setup_coding_system): Set coding->common_flags
21735 correctly for raw-text.
21736 (consume_chars): On encoding unibyte text by raw-text, don't check
21737 multibyte form.
21738 (encode_coding): On encoding by raw-text, never use translation tables.
21739
21740 * fileio.c (e_write): Short cut for the case of no encoding.
21741
217422008-02-01 Kenichi Handa <handa@m17n.org>
21743
21744 * coding.c (detect_coding, detect_coding_system): Delete unused
21745 variables.
21746
217472008-02-01 Kenichi Handa <handa@m17n.org>
21748
21749 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21750 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21751
217522008-02-01 Kenichi Handa <handa@m17n.org>
21753
21754 * coding.c (Ffind_coding_systems_region_internal): Include
21755 raw-text and no-conversion in the result.
21756
217572008-02-01 Kenichi Handa <handa@m17n.org>
21758
21759 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21760 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21761 FONT_DEF.
21762 (font_def_arg, add_arg, from_arg, to_arg): New args.
21763 (set_fontset_font): Change argument.
21764 (Fset_fontset_font): Fix for the case that TARGET is a script
21765 name and charset name.
21766 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21767
217682008-02-01 Kenichi Handa <handa@m17n.org>
21769
21770 * fontset.c (fontset_font): Rename from fontset_face. Change return
21771 value.
21772 (face_suitable_for_char_p, face_for_char): Adjust for the change
21773 of fontset_font.
21774 (make_fontset_for_ascii_face): Fix setting of the fontset element
21775 for ASCII.
21776 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21777 to get a font name.
21778 (Ffontset_info): Adjust for the change of fontset_font.
21779
21780 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21781
21782 * character.h (LEADING_CODE_LATIN_1_MIN)
21783 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21784
217852008-02-01 Kenichi Handa <handa@m17n.org>
21786
21787 * editfns.c (check_translation): New function.
21788 (Ftranslate_region_internal): Handle M:N mapping.
21789
217902008-02-01 Kenichi Handa <handa@m17n.org>
21791
21792 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21793
217942008-02-01 Kenichi Handa <handa@m17n.org>
21795
21796 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21797 goto invalid_code.
21798 (decode_coding_iso_2022): Fix handling of invalid designation.
21799
21800 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21801 after calling code_conversion_save.
21802
218032008-02-01 Kenichi Handa <handa@m17n.org>
21804
21805 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21806
21807 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21808
21809 * fontset.c: Include "intervals.h".
21810 (fontset_face): Fix comparing of Lisp_Objects.
21811 (free_face_fontset, new_fontset_from_font_name): Fix
21812 Lisp_Object/int mixup.
21813
21814 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21815
21816 * coding.c: Add many prototypes for static functions.
21817 (get_translation_table): Allow max_lookup to be NULL.
21818 (decode_coding, Ffind_coding_systems_region_internal)
21819 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21820 get_translation_table with max_lookup NULL.
21821
218222008-02-01 Kenichi Handa <handa@m17n.org>
21823
21824 * coding.c (get_translation_table): Declare it as Lisp_Object.
21825 (LOOKUP_TRANSLATION_TABLE): New macro.
21826 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21827 instead of CHAR_TABLE_REF.
21828
218292008-02-01 Kenichi Handa <handa@m17n.org>
21830
21831 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21832 annotation data format.
21833 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21834 Change arguments FROM and TO to single argument NCHARS. Change caller.
21835 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21836 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21837 (decode_coding_ccl, decode_coding_charset): Pay attention to
21838 coding->charbuf_used.
21839 (get_translation): New function.
21840 (produce_chars): New arguments translation_table and last_block.
21841 Translate characters here. Return number of carryover chars.
21842 Change caller.
21843 (produce_composition): New argument pos. Change caller.
21844 Adjust for the change of annotation data format.
21845 (produce_charset, produce_annotation): Likewise.
21846 (decode_coding, encode_coding): Don't call translate_chars.
21847 (consume_chars): New arg translation_table. Change caller.
21848 (translate_chars): Delete.
21849 (syms_of_coding): Make translation-table's number of extra slots 2.
21850
218512008-02-01 Kenichi Handa <handa@m17n.org>
21852
21853 * search.c (simple_search): Fix setting this_pos_byte in backward
21854 search.
21855
21856 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21857 byte sequence.
21858 (detect_coding_ccl): Fix setting of the variable valids.
21859
218602008-02-01 Kenichi Handa <handa@m17n.org>
21861
21862 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21863
21864 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21865
21866 * editfns.c (Ftranslate_region_internal): Rename from
21867 Ftranslate_region. Accept a char-table in TABLE.
21868 (syms_of_editfns): Defsubr Stranslate_region_internal.
21869
21870 * xfaces.c (set_lface_from_font_name): If a font is specified for
21871 a frame, generate a fontset from the font.
21872 (build_scalable_font_name): If the scalable font is requested for
21873 a specific size, don't change that size.
21874 (try_font_list): Try a scalable font also in the case that a
21875 pattern string is specified.
21876
218772008-02-01 Kenichi Handa <handa@m17n.org>
21878
21879 * xfaces.c (Fface_font): New optional arg CHARACTER.
21880
218812008-02-01 Kenichi Handa <handa@m17n.org>
21882
21883 * charset.h (CHARSET_OFFSET): New macro.
21884
218852008-02-01 Kenichi Handa <handa@m17n.org>
21886
21887 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21888
21889 * fontset.c (fontset_face): Handle the case that repertory is a
21890 char-table.
21891 (find_font_encoding): Return nil for unknown encoding.
21892 (Fset_fontset_font): Ignore a font of unknown encoding.
21893
218942008-02-01 Kenichi Handa <handa@m17n.org>
21895
21896 * keymap.c (describe_vector): Handle default value of a char table.
21897
21898 * fontset.c (fontset_face): Handle fallback fonts correctly.
21899 (Ffontset_info): Return infomation about fallback fonts.
21900
219012008-02-01 Kenichi Handa <handa@m17n.org>
21902
21903 * fontset.c (FONTSET_DEFAULT): New macro.
21904 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21905 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21906 the case that it is nil.
21907 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21908 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21909
21910 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21911 subset or superset.
21912
219132008-02-01 Kenichi Handa <handa@m17n.org>
21914
21915 * emacs.c (main): Call init_charset after syms_of_XXX.
21916
21917 * charset.c (Vcharset_map_directory): Delete.
21918 (Vcharset_map_path): New variable.
21919 (load_charset_map_from_file): Use Vcharset_map_path instead.
21920 (init_charset): Initialize Vcharset_map_path.
21921 (syms_of_charset): Delete declaration of "charset-map-directory",
21922 add declaration of "charset-map-path".
21923
219242008-02-01 Kenichi Handa <handa@m17n.org>
21925
21926 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21927 ASCII only string.
21928
21929 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21930
21931 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21932 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21933
219342008-02-01 Kenichi Handa <handa@m17n.org>
21935
21936 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21937
21938 * coding.c (QCmnemonic, QCdefalut_char)
21939 (QCdecode_translation_table, QCencode_translation_table)
21940 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21941 (get_translation_table): Return a list of translation tables if
21942 necessary.
21943 (decode_coding): Call get_translation_table with ENCODEP 0.
21944 (char_encodable_p): If translation_table is non-nil, always call
21945 translate_char.
21946 (Fdefine_coding_system_internal): Accept list of translation
21947 tables as :encode-translation-table and :decode-translation-table.
21948 (Fcoding_system_put): New function.
21949 (syms_of_coding): Declare new symbols. Defsubr
21950 Scoding_system_put.
21951 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21952 typically JISX0212.
21953
21954 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21955 when the charset is superset type.
21956
21957 * character.c (translate_char): Accept list of translation tables.
21958
219592008-02-01 Kenichi Handa <handa@m17n.org>
21960
21961 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21962 (CODING_ATTR_TRANS_TBL): New macro.
21963
21964 * coding.c (get_translation_table): New function.
21965 (translate_chars): Fix the bug of skipping annotation data.
21966 (decode_coding, encode_coding): Utilize get_translation_table.
21967 (char_encodable_p, Funencodable_char_position): Translate char if
21968 necessary.
21969 (Ffind_coding_systems_region_internal)
21970 (Fcheck_coding_systems_region): Setup translation table for encode
21971 in a coding system attribute vector in advance.
21972 (Fdefine_coding_system_internal): Allow a symbol as translation
21973 table. For shift-jis type coding system, allow 4th charset.
21974
219752008-02-01 Kenichi Handa <handa@m17n.org>
21976
21977 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21978
21979 * xdisp.c (get_next_display_element): Pass -1 as POS to
21980 FACE_FOR_CHAR if displaying a C-string.
21981
219822008-02-01 Kenichi Handa <handa@m17n.org>
21983
21984 * composite.c (get_composition_id): Handle xoff and yoff in a
21985 composition rule.
21986
21987 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21988 (struct composition): New member lbearing and rbearing.
21989
21990 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21991 (x_get_glyph_overhangs): Handle a composition glyph.
21992 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21993
21994 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21995 composition glyph.
21996
219972008-02-01 Kenichi Handa <handa@m17n.org>
21998
21999 * print.c: Include charset.h.
22000 (Vprint_charset_text_property): New variable.
22001 (Qdefault): Extern it.
22002 (PRINT_STRING_NON_CHARSET_FOUND)
22003 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
22004 (print_check_string_result): New variable.
22005 (print_check_string_charset_prop): New function.
22006 (print_prune_charset_plist): New variable.
22007 (print_prune_string_charset): New function.
22008 (print_object): Call print_prune_string_charset if
22009 Vprint_charset_text_property is not t.
22010 (print_interval): Print nothing if interval->plist is nil.
22011 (syms_of_print): Declare Vprint_charset_text_property as a lisp
22012 variable. Init and staticpro print_prune_charset_plist.
22013
220142008-02-01 Kenichi Handa <handa@m17n.org>
22015
22016 * fontset.c (new_fontset_from_font_name): Use the specified font
22017 for all characters in the new fontset.
22018
22019 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22020 OBJECT args.
22021
22022 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
22023 OBJECT args for composition too.
22024
22025 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22026 OBJECT args.
22027
220282008-02-01 Kenichi Handa <handa@m17n.org>
22029
22030 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
22031
22032 * fontset.c (reorder_font_vector): Adjust for the change of
22033 FONT_DEF format.
22034 (fontset_face): New arg id. Change caller.
22035 (face_for_char): New args pos and object.
22036 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
22037 (fs_query_fontset): Check NAME by Fassoc too.
22038 (Fset_fontset_font): Allow non-XLFD font name.
22039 (Ffontset_info): Adjust for the change of FONT_DEF format.
22040
22041 * fontset.h (face_for_char): Adjust prototype.
22042
22043 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
22044 (append_space, extend_face_to_end_of_line)
22045 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22046 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
22047
22048 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
22049 POS and OBJECT args.
22050
22051 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
22052 POS and OBJECT args.
22053
220542008-02-01 Jason Rumney <jasonr@gnu.org>
22055
22056 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
22057 of GlobalAlloc'ed memory.
22058
220592008-02-01 Kenichi Handa <handa@m17n.org>
22060
22061 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
22062
22063 * charset.h (charset_table_used): Delete extern.
22064
22065 * charset.c (charset_table_used): Make it static.
22066 (map_charset_chars): Fix args to c_function with.
22067
22068 * chartab.c (map_sub_char_table_for_charset): Fix args to
22069 c_function with.
22070
22071 * coding.h (enum coding_result_code): Delete
22072 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
22073
22074 * coding.c (Qinsufficient_source, Qinconsistent_eol)
22075 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
22076 (Vlast_code_conversion_error): New variables.
22077 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
22078 (ONE_MORE_BYTE): Record error if any instead of signaling an
22079 error. If non-ASCII multibyte char is found, return the negative
22080 value of the code. All callers changed to check it.
22081 (ONE_MORE_BYTE_NO_CHECK): Likewise.
22082 (record_conversion_result): New function. Change all codes setting
22083 coding->result to call this function.
22084 (detect_coding_utf_8, decode_coding_utf_8)
22085 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
22086 Don't use the local variable incomplete.
22087 (emacs_mule_char): Change the second arg to `const'.
22088 (decode_coding): Fix of flushing out unprocessed data.
22089 (make_conversion_work_buffer): Fix making of a work buffer.
22090 (decode_coding_object): Return coding->dst_object.
22091
22092 * fontset.c (set_fontset_font): Fix args.
22093
22094 * lisp.h (CHARACTERBITS): Define as 22.
22095
22096 * process.c (send_process): Be sure to set coding->src_multibyte.
22097
22098 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
22099
221002008-02-01 Kenichi Handa <handa@m17n.org>
22101
22102 * xdisp.c (handle_auto_composed_prop): Give limit to
22103 Fnext_single_char_property_change.
22104
221052008-02-01 Kenichi Handa <handa@m17n.org>
22106
22107 * composite.c (syms_of_composite): Don't make the composition hash
22108 table weak.
22109
22110 * fontset.c (Fset_fontset_font): Fix docstring.
22111
22112 * lisp.h (detect_coding_system): Adjust prototype.
22113
22114 * fileio.c (kill_workbuf_unwind): Delete this function.
22115 (Finsert_file_contents): Adjust the call of detect_coding_system.
22116 Get conversion_buffer by code_conversion_save. Use the macro
22117 CODING_MAY_REQUIRE_DECODING. After decoding, update
22118 coding_system.
22119
22120 * coding.h (make_conversion_work_buffer): Delete extern.
22121 (code_conversion_save): Extern it.
22122
22123 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
22124 (CODING_GET_INFO): Delete argument eol_type. Change callers.
22125 (decode_coding_utf_8): Don't do eol converion.
22126 (detect_coding_utf_16): Check coding->src_chars, not
22127 coding->src_bytes. Add heuristics for those that have no signature.
22128 (decode_coding_emacs_mule, decode_coding_iso_2022)
22129 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22130 Don't do eol converion.
22131 (adjust_coding_eol_type): Return a new coding system.
22132 (detect_coding): Don't detect eol. Fix for utf-16 detection.
22133 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
22134 each change.
22135 (decode_coding): Pay attention to undo_list. Do eol conversion for
22136 all types of coding-systems (if necessary).
22137 (Vcode_conversion_work_buf_list): Delete it.
22138 (Vcode_conversion_reused_workbuf): Rename from
22139 Vcode_conversion_reused_work_buf.
22140 (Vcode_conversion_workbuf_name): New variable.
22141 (reused_workbuf_in_use): New variable.
22142 (make_conversion_work_buffer): Delete the arg DEPTH.
22143 (code_conversion_restore): Change argument to cons.
22144 (code_conversion_save): Delete the argument BUFFER. Change callers.
22145 (detect_coding_system): New argument src_chars. Change callers.
22146 Fix for utf-16 detection.
22147 (init_coding_once): Don't use ISO_carriage_return.
22148 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
22149 reused_workbuf_in_use.
22150
221512008-02-01 Kenichi Handa <handa@m17n.org>
22152
22153 * keymap.c (store_in_keymap): Pay attention to the case that idx
22154 is a cons specifying a character range.
22155
221562008-02-01 Kenichi Handa <handa@m17n.org>
22157
22158 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
22159 HANDLED_RECOMPUTE_PROPS.
22160
22161 * coding.c (Fdefine_coding_system_internal): Fix checking of
22162 ascii compatibility.
22163
221642008-02-01 Kenichi Handa <handa@m17n.org>
22165
22166 * charset.c (find_charsets_in_text): Delete unused locale variable.
22167 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
22168
22169 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
22170 Resync charset_list to Vemacs_mule_charset_list.
22171
22172 * keymap.c (store_in_keymap): Pay attention to the case that idx
22173 is a cons specifying a character range.
22174
221752008-02-01 Kenichi Handa <handa@m17n.org>
22176
22177 * composite.c (update_compositions): Bind inhibit-read-only, etc
22178 to t before calling remove-list-of-text-properties.
22179
22180 * print.c (print_object): Always print ASCII chars as is.
22181
221822008-02-01 Kenichi Handa <handa@m17n.org>
22183
22184 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
22185
22186 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
22187 is a char table.
22188
221892008-02-01 Kenichi Handa <handa@m17n.org>
22190
22191 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
22192
221932008-02-01 Kenichi Handa <handa@m17n.org>
22194
22195 * xfaces.c (set_lface_from_font_name): Fix for the case that
22196 FONTNAME is not fontset name.
22197
221982008-02-01 Kenichi Handa <handa@m17n.org>
22199
22200 * fns.c (base64_encode_1): Fix previous change.
22201
222022008-02-01 Kenichi Handa <handa@m17n.org>
22203
22204 * fontset.c (set_fontset_font): New function.
22205 (Fset_fontset_font): If a font is specified for a charset, use
22206 map_charset_chars to store the font spec in a fontset.
22207
222082008-02-01 Kenichi Handa <handa@m17n.org>
22209
22210 * fontset.c (fontset_face): Create a fallback fontset on demand.
22211 (make_fontset): Don't create a fallback fontset here.
22212 (free_face_fontset): Free a fallback fontset (if any) too.
22213 (n_auto_fontsets): Delete this variable.
22214 (auto_fontset_alist): New variable.
22215 (new_fontset_from_font_name): Check auto_fontset_alist.
22216 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
22217 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
22218 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
22219 Defsubr Sfontset_list_all.
22220
222212008-02-01 Kenichi Handa <handa@m17n.org>
22222
22223 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
22224
222252008-02-01 Kenichi Handa <handa@m17n.org>
22226
22227 * fontset.c (Fnew_fontset): Check NAME more rigidly.
22228
222292008-02-01 Kenichi Handa <handa@m17n.org>
22230
22231 * editfns.c (Fgoto_char): Fix docstring.
22232
222332008-02-01 Kenichi Handa <handa@m17n.org>
22234
22235 * insdel.c (insert_from_gap): Adjust intervals correctly.
22236
222372008-02-01 Jason Rumney <jasonr@gnu.org>
22238
22239 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
22240 (pfnGetFontUnicodeRanges): New dynamically loaded function.
22241 (w32_initialize): Try to load it.
22242 (x_get_font_repertory): Use it if available.
22243 (w32_encode_char): Add shortcut for unicode output.
22244
22245 * w32fns.c (w32_load_system_font): Default charset to -1.
22246 (x_to_w32_charset): Match all fonts for unicode.
22247 (w32_to_x_charset): New parameter matching. Don't return partial
22248 or wildcard charsets.
22249 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
22250 (w32_codepage_for_font): Return CP_UNICODE for unicode.
22251 (w32_to_x_font): Match charset to real charset.
22252 (enum_font_cb2): Always list unicode versions.
22253
22254 * makefile.w32-in (temacs): Increase EMHEAP.
22255
222562008-02-01 Jason Rumney <jasonr@gnu.org>
22257
22258 * w32term.c (w32_encode_char): New charset parameter.
22259 font_info.encoding becomes encoding_type.
22260 (x_get_font_repertory): New function. Warning: stub only!
22261 (x_new_font): Return quickly if font already set.
22262 (x_new_fontset): fontsetname parameter is Lisp_Object.
22263 Use new fs_query_fontset. Try new_fontset_from_font_name.
22264 Use fontset_name for return value.
22265
22266 * w32term.h: Declare x_get_font_repertory.
22267
22268 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
22269 place of find_charset_in_text. Use encode_coding_object in place
22270 of encode_coding.
22271 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
22272 decode_coding.
22273
22274 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
22275 of x_new_fontset.
22276 (w32_load_system_font): Initialize charset as unicode.
22277 font_info.encoding becomes encoding_type.
22278 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
22279 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
22280 (syms_of_w32fns): Set get_font_repertory_func.
22281
22282 * w32console.c: Include character.h. Use terminal_encode_buffer
22283 from term.c.
22284 (write_glyphs): Use new version of encode_terminal_code. Use
22285 encode_coding_object in place of encode_coding.
22286
22287 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22288 encoding becomes encoding_type.
22289
22290 * term.c (terminal_encode_buffer): Make externally visible.
22291
22292 * makefile.w32-in: Add character.h dependancies.
22293 (character.o, chartab.o): New targets.
22294
222952008-02-01 Kenichi Handa <handa@m17n.org>
22296
22297 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22298 CODING_ID_EOL_TYPE.
22299
223002008-02-01 Andreas Schwab <schwab@suse.de>
22301
22302 * coding.c (produce_chars): Revert last change.
22303
223042008-02-01 Kenichi Handa <handa@m17n.org>
22305
22306 * charset.h (charset_unicode): Extern it.
22307
22308 * charset.c (string_xstring_p): Check by (C >= 0x100).
22309 (find_charsets_in_text): Change format of the arc CHARSETS. New
22310 arg MULTIBYTE.
22311 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22312 change of find_charsets_in_text.
22313 (Fsplit_char): Fix doc. Never return unknown.
22314
22315 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22316
22317 * coding.c (Fdefine_coding_system_alias): Update
22318 Vcoding_system_list.
22319
22320 * fontset.c (load_font_get_repertory): Pay attention to the case
22321 that ENCODING of a font is specified by a char-table.
22322
22323 * xterm.c (x_get_font_repertory): Handle the case that the
22324 encoding of font is other than Unicode.
22325
223262008-02-01 Kenichi Handa <handa@m17n.org>
22327
22328 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22329 if a character is encodable by the terminal coding system. If
22330 not, produces proper number of `?'s. Update
22331 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22332 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22333
223342008-02-01 Kenichi Handa <handa@m17n.org>
22335
22336 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22337 variables.
22338 (encode_terminal_code): Change argument. Encode multiple
22339 characters at once. Store the result of encoding in
22340 terminal_encode_buffer.
22341 (write_glyphs, insert_glyphs): Adjust for the change of
22342 encode_terminal_code.
22343 (term_init): Initialize terminal_encode_buffer and
22344 terminal_encode_buf_size.
22345
22346 * coding.c (consume_chars): If coding->src_object is nil, don't
22347 check annotation.
22348
223492008-02-01 Kenichi Handa <handa@m17n.org>
22350
22351 * character.c (char_string): Use ASCII_CHAR_P instead of
22352 SINGLE_BYTE_CHAR_P.
22353
223542008-02-01 Kenichi Handa <handa@m17n.org>
22355
22356 * xdisp.c (handle_auto_composed_prop): Check if the last
22357 characters of auto-composed region is newly composed with the
22358 following characters.
22359 (handle_composition_prop): Fix checking of point being inside
22360 composition.
22361
223622008-02-01 Kenichi Handa <handa@m17n.org>
22363
22364 * fns.c (concat): Don't change multibyteness of the result by
22365 concatenating an 8-bit character.
22366
22367 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22368 multibyteness of the result when newelt is an 8-bit character.
22369
223702008-02-01 Dave Love <fx@gnu.org>
22371
22372 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22373 EMACS_INT.
22374
22375 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22376
22377 * xfaces.c (face_numeric_value): Declare dim size_t.
22378 (Finternal_lisp_face_equal_p): Remove unused f.
22379
22380 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22381 (MATRIX_ROW): Remove unused vars.
22382 (draw_glyphs, x_insert_glyphs, fast_find_position)
22383 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22384 byte/char counts.
22385
22386 * regex.c (regex_compile): Remove unused var.
22387
22388 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22389
22390 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22391 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22392
22393 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22394
22395 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22396
22397 * fileio.c (Fwrite_region): Remove unused var.
22398
22399 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22400 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22401
22402 * composite.c (Fremove_list_of_text_properties): Declare.
22403
22404 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22405 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22406 (coding_inherit_eol_type): Remove unused attrs.
22407 (detect_coding): Cast arg of detect_eol.
22408
22409 * charset.c (syms_of_charset): Remove unused var p.
22410 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22411 byte/char counts.
22412
22413 * casetab.c (set_case_table): Remove unused var.
22414
22415 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22416 unused vars.
22417
224182008-02-01 Dave Love <fx@gnu.org>
22419
22420 * xterm.c (x_bitmap_mask): Declare.
22421
224222008-02-01 Dave Love <fx@gnu.org>
22423
22424 * xterm.c (x_term_init): Fix type error.
22425
22426 * lisp.h: Add Funibyte_char_to_multibyte.
22427
22428 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22429 (Fset_coding_system_priority): Doc fix.
22430
22431 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22432
22433 * indent.c (check_composition): Make start and end EMACS_INT.
22434
22435 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22436
22437 * xdisp.c (handle_composition_prop, check_point_in_composition):
22438 Make buffer positions EMACS_INT.
22439
22440 * composite.c (find_composition, run_composition_function)
22441 (update_compositions, Ffind_composition_internal): Make buffer
22442 positions EMACS_INT.
22443
22444 * composite.h (find_composition, update_compositions): Make
22445 position args EMACS_INT.
22446
22447 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22448
22449 * intervals.c (get_property_and_range):
22450 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22451
22452 * unexalpha.c: Don't include varargs.h.
22453
224542008-02-01 Dave Love <fx@gnu.org>
22455
22456 * coding.h (ENCODE_UTF_8): New.
22457
22458 * Makefile.in (gtkutil.o): Depend on coding.h.
22459
22460 * coding.c (Fset_coding_system_priority): Doc fix.
22461
224622008-02-01 Kenichi Handa <handa@m17n.org>
22463
22464 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22465 the case of auto saving.
22466
224672008-02-01 Andreas Schwab <schwab@suse.de>
22468
22469 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22470 `range' from GC.
22471
224722008-02-01 Kenichi Handa <handa@m17n.org>
22473
22474 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22475
224762008-02-01 Kenichi Handa <handa@m17n.org>
22477
22478 * fileio.c (choose_write_coding_system): Return a decided coding system.
22479 (Fwrite_region): Set Vlast_coding_system_used to the return value
22480 of choose_write_coding_system.
22481
224822008-02-01 Kenichi Handa <handa@m17n.org>
22483
22484 * charset.c (Fset_charset_priority): Pay attention to duplicated
22485 arguments.
22486
22487 * coding.c (QCcategory): New variable.
22488 (syms_of_coding): Defsym it. Set all elements of
22489 Vcoding_category_table and their symbol values.
22490 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22491 coding-category-XXX, and coding-category-list.
22492 (Fdefine_coding_system_internal): Add category in the plist.
22493
224942008-02-01 Kenichi Handa <handa@m17n.org>
22495
22496 * callproc.c (Fcall_process): Handle carryover correctly.
22497
22498 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22499 (raw_text_coding_system): Check NILP (coding_system).
22500 (coding_inherit_eol_type): Check NILP (coding_system) and
22501 NILP (parent).
22502 (consume_chars): Fix for the case of raw-text.
22503
22504 * process.c (read_process_output): Handle carryover correctly.
22505
225062008-02-01 Dave Love <fx@gnu.org>
22507
22508 * regex.c (re_search_2): Fix last change.
22509
225102008-02-01 Kenichi Handa <handa@m17n.org>
22511
22512 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22513 target_multibyte. Even in a unibyte case, return a converted
22514 multibyte char.
22515 (GET_CHAR_AFTER): New macro.
22516 (PATFETCH): Translate via multibyte char.
22517 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22518 (SETUP_MULTIBYTE_RANGE): New macro.
22519 (regex_compile): Setup compiled code so that its multibyteness
22520 matches that of a target. Fix the handling of "[X-YZ]" using
22521 SETUP_MULTIBYTE_RANGE.
22522 (analyse_first) <charset>: For filling fastmap for all multibyte
22523 characters, don't check by BASE_LEADING_CODE_P.
22524 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22525 the same as RE_MULTIBYTE_P (bufp) now.
22526 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22527 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22528 (TRANSLATE_VIA_MULTIBYTE): New macro.
22529 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22530 It is the same as RE_MULTIBYTE_P (bufp) now.
22531 <exactn>: Translate via multibyte.
22532 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22533 translate it.
22534 <charset, charset_not>: Fetch a character by
22535 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22536 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22537 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22538 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22539 by GET_CHAR_AFTER.
22540 (bcmp_translate): Likewise.
22541
22542 * search.c (compile_pattern): Check the member target_multibyte,
22543 not the member multibyte of buf.
22544
22545 * lread.c (read1): While reading a string, set force_singlebyte
22546 and force_multibyte correctly.
22547
22548 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22549 up of unibyte_to_multibyte_table.
22550
225512008-02-01 Kenichi Handa <handa@m17n.org>
22552
22553 * coding.c (setup_coding_system): If coding has
22554 post-read-conversion or pre-write-conversion, set
22555 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22556 respectively.
22557 (decode_coding_gap): Run post-read-conversion if any.
22558
22559 * fileio.c (Finsert_file_contents): Even if we read into a
22560 unibyte buffer, check if we must decode the result or not.
22561
225622008-02-01 Kenichi Handa <handa@m17n.org>
22563
22564 * coding.c (make_conversion_work_buffer): Change the work buffer
22565 name to the same one as that of Emacs 21.
22566
225672008-02-01 Kenichi Handa <handa@m17n.org>
22568
22569 * coding.h (make_conversion_work_buffer): Adjust prototype.
22570 (code_conversion_restore): Don't extern it.
22571
22572 * coding.c (detected_mask): Delete unused variable.
22573 (decode_coding_iso_2022): Pay attention to the byte sequence of
22574 CTEXT extended segment, and retain those bytes as is.
22575 (decode_coding_ccl): Delete unused variable `valids'.
22576 (setup_coding_system): Delete unused variable `category'.
22577 (consume_chars): Delete unused variable `category'. Make it work
22578 for non-multibyte case.
22579 (make_conversion_work_buffer): Change argument.
22580 (saved_coding): Delete unused variable.
22581 (code_conversion_restore): Don't check saved_coding->destination.
22582 (code_conversion_save): New function.
22583 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22584 instead of record_unwind_protect.
22585 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22586 (detect_coding_system): Delete unused variable `mask'.
22587 (Fdefine_coding_system_internal): Delete unused variable id.
22588
22589 * fileio.c (kill_workbuf_unwind): New function.
22590 (Finsert_file_contents): On replacing, call
22591 make_conversion_work_buffer with correct args, and call
22592 record_unwind_protect with the first arg kill_workbuf_unwind.
22593
22594 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22595
225962008-02-01 Kenichi Handa <handa@m17n.org>
22597
22598 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22599 (fontset_add): Fix for the case that TO is less than TO1.
22600 (Ffontset_info): Don't use fallback fontset on checking the
22601 default fontset.
22602 (dump_fontset): New function for debugging.
22603
22604 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22605 coding_type is Qcharset.
22606
226072008-02-01 Kenichi Handa <handa@m17n.org>
22608
22609 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22610 (map_char_table): Don't inherit the value from the parent on
22611 initializing VAL. Adjust for the above change.
22612
226132008-02-01 Kenichi Handa <handa@m17n.org>
22614
22615 * coding.c (Qsignature, Qendian): Delete these variables.
22616 (syms_of_coding): Don't initialize them.
22617 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22618 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22619 detect_info->found.
22620 (decode_coding_utf_16): Don't detect BOM here.
22621 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22622 is NOT utf_16_without_bom.
22623 (setup_coding_system): For a coding system of type utf-16, check
22624 if the attribute :endian is Qbig or not (not nil or not), and set
22625 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22626 (detect_coding): If coding type is utf-16 and BOM detection is
22627 required, detect it.
22628 (Fdefine_coding_system_internal): For a coding system of type
22629 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22630
226312008-02-01 Kenichi Handa <handa@m17n.org>
22632
22633 * coding.c (coding_set_source): Fix for the case that the current
22634 buffer is different from coding->src_object.
22635 (decode_coding_object): Don't use the conversion work buffer if
22636 DST_OBJECT is a buffer.
22637
226382008-02-01 Dave Love <fx@gnu.org>
22639
22640 * lread.c (read_emacs_mule_char) [len==2]: Index
22641 emacs_mule_charset correctly.
22642
226432008-02-01 Dave Love <fx@gnu.org>
22644
22645 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22646 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22647 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22648 treated specially.)
22649 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22650 (detected_mask): Remove Big5 bits.
22651
226522008-02-01 Kenichi Handa <handa@m17n.org>
22653
22654 The following changes are to make the font rescaling facility
22655 compatible with Emacs 21.
22656
22657 * xfaces.c (Vface_font_rescale_alist): Rename from
22658 Vface_resizing_fonts.
22659 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22660 (font_rescale_ratio): Rename from font_resizing_ratio.
22661 (split_font_name): Set font->rescale_ratio.
22662 (better_font_p): Pay attention to font->rescale_ratio.
22663 (build_scalable_font_name): Likewise. Change RESX, and RESY
22664 fields.
22665 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22666
226672008-02-01 Kenichi Handa <handa@m17n.org>
22668
22669 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22670 (Qutf_16_le): Remove these variables.
22671 (syms_of_coding): Don't DEFSYM them.
22672 (decode_coding_utf_16): Fix handling of BOM.
22673 (encode_coding_utf_16): Fix handling of BOM.
22674
226752008-02-01 Kenichi Handa <handa@m17n.org>
22676
22677 * fileio.c (Finsert_file_contents): On replacing, before decoding
22678 the file into the work buffer, set point of the work buffer to the end.
22679
226802008-02-01 Dave Love <fx@gnu.org>
22681
22682 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22683
226842008-02-01 Dave Love <fx@gnu.org>
22685
22686 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22687 and fix C types.
22688
226892008-02-01 Kenichi Handa <handa@m17n.org>
22690
22691 * xdisp.c (SKIP_GLYPHS): New macro.
22692 (set_cursor_from_row): Pay attention to string display properties.
22693
22694 * category.c (copy_category_entry): Fix for the case that RANGE
22695 is an integer.
22696
22697 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22698
22699 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22700
227012008-02-01 Kenichi Handa <handa@m17n.org>
22702
22703 * charset.c (Fcharset_id_internal): New function.
22704 (syms_of_charset): Defsubr it.
22705
22706 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22707 with the last arg charset_list acquired from coding.
22708 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22709 the attribute coding_attr_ccl_valids.
22710
22711 * coding.h (enum define_coding_ccl_arg_index): Set the first
22712 member coding_arg_ccl_decoder to coding_arg_max.
22713
22714 * ccl.h (ccl_driver): Adjust prototype.
22715
22716 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22717 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 22718 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
22719 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22720 last arg Qnil.
22721
227222008-02-01 Kenichi Handa <handa@m17n.org>
22723
22724 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22725 call encode_char.
22726
22727 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22728
227292008-02-01 Dave Love <fx@gnu.org>
22730
22731 * composite.c (syms_of_composite): Make composition_hash_table weak.
22732
227332008-02-01 Kenichi Handa <handa@m17n.org>
22734
22735 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22736 (font_name_registry): Don't extern them.
22737 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22738
22739 * fontset.h (Qfontset): Don't extern it.
22740 (new_fontset_from_font_name): Extern it.
22741
22742 * fontset.c: Give 8 extra slots to fontset objects.
22743 (Qfontset_info): New variable.
22744 (syms_of_fontset): Defsym it.
22745 (FONTSET_FALLBACK): New macro.
22746 (fontset_face): Try also the default fontset.
22747 (make_fontset): Realize a fallback fontset from the default fontset.
22748 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22749 using split_font_name_into_vector and build_font_name_from_vector.
22750 (Fset_fontset_font): Access the elements of font_spec by enum
22751 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22752 name by using split_font_name_into_vector.
22753 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22754 generate a proper font name from the fontset name. Update
22755 Vfontset_alias_alist.
22756 (n_auto_fontsets): New variable.
22757 (new_fontset_from_font_name): New function.
22758 (Ffont_info): Store the information about fonts generated from the
22759 default fontset in the first extra slot of the returned char-table.
22760
22761 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22762 (font_name_registry): Delete function.
22763 (split_font_name_into_vector): New function.
22764 (build_font_name_from_vector): New function.
22765 (font_list): The argument REGISTRY is now a list of registry names.
22766 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22767 specifies an explicit font name, return the name as is. Make a
22768 list of registy names.
22769
22770 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22771 of x_new_fontset.
22772 (Fx_create_frame): Don't call x_new_fontset here. Just use
22773 x_list_fonts to check the existence of fonts.
22774
22775 * xterm.h (x_new_fontset): Adjust prototype.
22776
22777 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22778 string. Use new_fontset_from_font_name to create a fontset from a
22779 font name.
22780
227812008-02-01 Kenichi Handa <handa@m17n.org>
22782
22783 * syntax.c (Vfind_word_boundary_function_table): New name for
22784 Vnext_word_boundary_function_table.
22785 (find-word-boundary-function-table): New name for
22786 next-word-boundary-function-table.
22787
227882008-02-01 Dave Love <fx@gnu.org>
22789
22790 * Makefile.in: Fix some dependencies.
22791
22792 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22793 set it to nil before returning.
22794
22795 * composite.c (update_compositions): Fix type error.
22796
22797 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22798
227992008-02-01 Kenichi Handa <handa@m17n.org>
22800
22801 * xterm.c (x_new_font): Optimize for the case that the font is
22802 already set for the frame.
22803
228042008-02-01 Kenichi Handa <handa@m17n.org>
22805
22806 * chartab.c (char_table_ascii): Check if the char table contents
22807 is sub-char-table or not.
22808 (char_table_set, char_table_set_range): Fix argument to
22809 char_table_ascii.
22810
22811 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22812 (detect_coding_utf_8, detect_coding_utf_16)
22813 (detect_coding_emacs_mule, detect_coding_iso_2022)
22814 (detect_coding_sjis, detect_coding_big5)
22815 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22816 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22817 sequence is valid in this coding system. Change callers.
22818 (MAX_ANNOTATION_LENGTH): New macro.
22819 (ADD_ANNOTATION_DATA): New macro.
22820 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22821 ADD_ANNOTATION_DATA. Change the format of annotation data.
22822 (ADD_CHARSET_DATA): New macro.
22823 (emacs_mule_char): New argument ID. Change callers.
22824 (decode_coding_emacs_mule, decode_coding_iso_2022)
22825 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22826 Produce charset annotation data in coding->charbuf.
22827 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22828 to charset annotation data in coding->charbuf.
22829 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22830 coding->common_flags if the coding system is iso-2022 based and
22831 uses designation.
22832 (produce_composition): Adjust for the new annotation data format.
22833 (produce_charset): New function.
22834 (produce_annotation): Handle charset annotation.
22835 (handle_composition_annotation, handle_charset_annotation): New
22836 functions.
22837 (consume_chars): Handle charset annotation. Utilize the above two
22838 functions.
22839 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22840 buffer, get the deleted text as a string and set
22841 coding->src_object to that string.
22842 (detect_coding, detect_coding_system): Use the new struct
22843 coding_detection_info.
22844
22845 * coding.h (struct coding_detection_info): New structure.
22846 (struct coding_system): Adjust prototype of the member `detector'.
22847 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22848
228492008-02-01 Kenichi Handa <handa@m17n.org>
22850
22851 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22852
228532008-02-01 Dave Love <fx@gnu.org>
22854
22855 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22856 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22857 to new local and nullify apropos_accumulate before returning.
22858 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22859
228602008-02-01 Kenichi Handa <handa@m17n.org>
22861
22862 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22863 correctly.
e3eea1fc 22864
aac0c6e3
MR
228652008-02-01 Dave Love <fx@gnu.org>
22866
22867 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22868
228692008-02-01 Kenichi Handa <handa@m17n.org>
22870
22871 The following changes are to make character composition happen
22872 automatically on displaying.
22873
22874 * Makefile.in (lisp, shortlisp): Add composite.elc.
22875
22876 * composite.h (Qauto_composed, Vauto_composition_function)
22877 (Qauto_composition_function): Extern them.
22878
22879 * composite.c (Vcomposition_function_table)
22880 (Qcomposition_function_table): Delete variables.
22881 (Qauto_composed, Vauto_composition_function)
22882 (Qauto_composition_function): New variables.
22883 (run_composition_function): Don't call
22884 compose-chars-after-function.
22885 (update_compositions): Clear `auto-composed' text property.
22886 (compose_chars_in_text): Delete this function.
22887 (syms_of_composite): Staticpro Qauto_composed and
22888 Qauto_composition_function. Declare Vauto_composition_function as
22889 a Lisp variable.
22890
22891 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22892
22893 * xdisp.c (it_props): Add an entry for Qauto_composed.
22894 (handle_auto_composed_prop): New function.
22895
22896 * xselect.c (selection_data_to_lisp_data): Don't call
22897 compose_chars_in_text.
22898
228992008-02-01 Dave Love <fx@gnu.org>
22900
22901 * keyboard.c (read_char): Modify checking around use of
22902 Vkeyboard_translate_table.
22903
22904 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22905 and fix C types.
22906
229072008-02-01 Kenichi Handa <handa@m17n.org>
22908
22909 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22910 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22911 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22912 the case that the last byte is '\r' correctly.
22913 (decode_coding): Flush out the unprocessed data correctly.
22914 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22915
229162008-02-01 Dave Love <fx@gnu.org>
22917
22918 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22919 Add XK_ISO... case.
22920 (xaw_scroll_callback): Revert last change.
22921
229222008-02-01 Kenichi Handa <handa@m17n.org>
22923
22924 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22925
229262008-02-01 Kenichi Handa <handa@m17n.org>
22927
22928 * xfaces.c (Vface_resizing_fonts): New variable.
22929 (struct font_name): New member `resizing_ratio'.
22930 (font_resizing_ratio): New function.
22931 (split_font_name): Set font->resizing_ratio.
22932 (better_font_p): Pay attention to font->resizing_ratio.
22933 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22934 RESX, and RESY fields.
22935 (try_alternative_families): Try scalable fonts if
22936 Vscalable_fonts_allowed is not Qt.
22937 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22938
229392008-02-01 Dave Love <fx@gnu.org>
22940
22941 * xterm.c (xaw_scroll_callback): Cast correctly.
22942
229432008-02-01 Dave Love <fx@gnu.org>
22944
22945 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22946 (lispy_kana_keys): Comment out.
22947 (make_lispy_event) [XK_kana_A]: Comment out.
22948
22949 * xterm.c (xaw_scroll_callback): Cast call_data.
22950 (XTread_socket): Deal with ASCII keysyms.
22951 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22952
229532008-02-01 Dave Love <fx@gnu.org>
22954
22955 * xterm.c (Vx_keysym_table): New.
22956 (syms_of_xterm): Initialize it.
22957 (XTread_socket): Use it.
22958 From head: Eliminate incorrect optimization that tried to avoid
22959 decoding the output of X*LookupString.
22960 (x_get_font_repertory): Delete charset declaration.
22961
229622008-02-01 Kenichi Handa <handa@m17n.org>
22963
22964 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22965 return 0.
22966 (Fdefine_coding_system_internal): Setup
22967 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22968
229692008-02-01 Dave Love <fx@gnu.org>
22970
22971 * coding.c (Fcheck_coding_system): Doc fix.
22972
22973 * editfns.c (Finsert_byte): Return a proper value.
22974
229752008-02-01 Kenichi Handa <handa@m17n.org>
22976
22977 * coding.c (decode_coding): Fix args to translate_chars. Pay
22978 attention to Vstandard_translation_table_for_decode.
22979 (encode_coding): Fix args to translate_chars. Pay attention to
22980 Vstandard_translation_table_for_encode.
22981
22982 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22983 SINGLE_BYTE_CHAR_P.
22984
22985 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22986 not by SINGLE_BYTE_CHAR_P.
22987
22988 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22989 SINGLE_BYTE_CHAR_P.
22990
22991 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22992 SINGLE_BYTE_CHAR_P.
22993
22994 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22995 by SINGLE_BYTE_CHAR_P.
22996
22997 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22998 SINGLE_BYTE_CHAR_P.
22999
230002008-02-01 Dave Love <fx@gnu.org>
23001
23002 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
23003
230042008-02-01 Dave Love <fx@gnu.org>
23005
23006 * fns.c (Flanginfo): Fix typo.
23007
23008 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
23009
230102008-02-01 Kenichi Handa <handa@m17n.org>
23011
23012 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
23013 (detect_coding_emacs_mule, detect_coding_iso_2022)
23014 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
23015 incomplete byte sequence. Don't update *mask when correctly detected.
23016 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
23017 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
23018 (detect_coding, detect_coding_system): Adjust for the changes above.
23019
230202008-02-01 Kenichi Handa <handa@m17n.org>
23021
23022 * character.c (char_string): Rename from
23023 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
23024 (string_char): Rename from string_char.
23025
23026 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
23027 if C is greater than MAX_3_BYTE_CHAR.
23028 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
23029 string_char instead of string_char_with_unification.
23030
230312008-02-01 Dave Love <fx@gnu.org>
23032
23033 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
23034
230352008-02-01 Kenichi Handa <handa@m17n.org>
23036
23037 * keymap.c (push_key_description): Pay attention to force_multibyte.
23038
23039 * regex.c (re_search_2): Fix for the case of unibyte buffer.
23040
230412008-02-01 Dave Love <fx@gnu.org>
23042
23043 * charset.c (define_charset_internal): Rename `supprementary'.
23044
23045 * Makefile.in (lisp, shortlisp): Remove latin-N.
23046
230472008-02-01 Dave Love <fx@gnu.org>
23048
23049 * xfns.c (x_window, x_window): Use use_xim.
23050
23051 * xterm.c (use_xim): Initialize.
23052 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
23053 (x_term_init): Maybe set use_xim.
23054
23055 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
23056
230572008-02-01 Kenichi Handa <handa@m17n.org>
23058
23059 * search.c (search_buffer): Fix case-fold-search of multibyte
23060 characters.
23061 (boyer_moore): Rename the last argument to char_high_bits.
23062
230632008-02-01 Kenichi Handa <handa@m17n.org>
23064
23065 * xdisp.c (display_string): Fix for the case of zero width glyph.
23066
23067 * xfns.c (x_set_font): Change the error message of the case that
23068 x_new_fontset returns Qt.
23069
23070 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
23071 (Finternal_set_lisp_face_attribute): Use signal_error for the
23072 error of invalid fontset.
23073
23074 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
23075 fontset, return Qt.
23076
230772008-02-01 Dave Love <fx@gnu.org>
23078
23079 * unexelf.c (unexec): Make .got handling not SGI-specific.
23080
23081 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
23082
23083 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
23084
23085 * keyboard.c (read_key_sequence): Fix type error.
23086
23087 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
23088 type error.
23089
23090 * fontset.c (fontset_add): Return Lisp_Object.
23091
230922008-02-01 Dave Love <fx@gnu.org>
23093
23094 * charset.h (charset_ordered_list_tick): Declare extern.
23095
230962008-02-01 Kenichi Handa <handa@m17n.org>
23097
23098 The following changes (and some of 2008-02-01 changes of mine) are
23099 for handling syntax, category, and case conversion for unibyte
23100 characters by converting them to multibyte on the fly. With these
23101 changes, we don't have to setup syntax and case tables for unibyte
23102 characters in each language environment.
23103
23104 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
23105 multibyte if necessary.
23106
23107 * bytecode.c (Fbyte_code): Likewise.
23108
23109 * character.h (LEADING_CODE_LATIN_1_MIN)
23110 (LEADING_CODE_LATIN_1_MAX): New macros.
23111 (unibyte_to_multibyte_table): Extern it.
23112 (unibyte_char_to_multibyte): New macro.
23113 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
23114 (CHAR_LEADING_CODE): New macro.
23115 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
23116
23117 * character.c (unibyte_to_multibyte_table): New variable.
23118 (unibyte_char_to_multibyte): Move to character.h and define as macro.
23119 (multibyte_char_to_unibyte): If C is an eight-bit character,
23120 convert it to the corresponding byte value.
23121
23122 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
23123 not 1, signals an error. Update the elements of
23124 unibyte_to_multibyte_table.
23125 (init_charset_once): Initialize unibyte_to_multibyte_table.
23126 (syms_of_charset): Define the charset `iso-8859-1'.
23127
23128 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
23129 as is without converting it to unibyte. In a unibyte buffer,
23130 convert C to multibyte before checking the syntax.
23131
23132 * lisp.h (unibyte_char_to_multibyte): Delete extern.
23133
23134 * minibuf.c (Fminibuffer_complete_word): Use the macro
23135 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
23136
23137 * regex.h (struct re_pattern_buffer): New member target_multibyte.
23138
23139 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
23140 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
23141 that is zero, convert an eight-bit char to multibyte.
23142 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
23143 non-emacs case.
23144 (PATFETCH): Convert an eight-bit char to multibyte.
23145 (HANDLE_UNIBYTE_RANGE): New macro.
23146 (regex_compile): Setup the compiled pattern for multibyte chars
23147 even if the given regex string is unibyte. Use PATFETCH_RAW
23148 instead of PATFETCH in many places. To handle `charset'
23149 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
23150 only for ASCII chars.
23151 (analyse_first) <exactn>: Simplify because the compiled pattern
23152 is multibyte.
23153 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
23154 <charset>: Use CHAR_LEADING_CODE to get leading codes.
23155 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
23156 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
23157 multibyte always 1.
23158 (re_search_2): In emacs, set the locale variable multibyte to 1,
23159 otherwise to 0. New local variable target_multibyte. Check it
23160 to decide the multibyteness of STR1 and STR2. If
23161 target_multibyte is zero, convert unibyte chars to multibyte
23162 before translating and checking fastmap.
23163 (TARGET_CHAR_AND_LENGTH): New macro.
23164 (re_match_2_internal): In emacs, set the locale variable multibyte
23165 to 1, otherwise to 0. New local variable target_multibyte. Check
23166 it to decide the multibyteness of STR1 and STR2. Use
23167 TARGET_CHAR_AND_LENGTH to fetch a character from D.
23168 <charset, charset_not>: If multibyte is nonzero, check fastmap
23169 only for ASCII chars. Call bcmp_translate with
23170 target_multibyte, not with multibyte.
23171 <begline>: Declare the local variable C as `unsigned'.
23172 (bcmp_translate): Change the last arg name to target_multibyte.
23173
23174 * search.c (compile_pattern_1): Don't adjust the multibyteness of
23175 the regexp pattern and the matching target. Set cp->buf.multibyte
23176 to the multibyteness of the regexp pattern. Set
23177 cp->but.target_multibyte to the multibyteness of the matching target.
23178 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
23179 FETCH_STRING_CHAR_ADVANCE.
23180 (Freplace_match): Convert unibyte chars to multibyte.
23181
23182 * syntax.c (char_quoted, back_comment, scan_words)
23183 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
23184 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
23185 unibyte chars to multibyte.
23186 (skip_chars): Delete the arg syntaxp, and move the code for
23187 handling syntaxes to skip_syntaxes. Change callers.
23188 Fix the case that the multibyteness of STRING and the current
23189 buffer doesn't match.
23190 (skip_syntaxes): New function.
23191 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
23192 SINGLE_BYTE_CHAR_P.
23193
231942008-02-01 Kenichi Handa <handa@m17n.org>
23195
23196 * xfaces.c (QCfontset): New variable.
23197 (LFACE_FONTSET): New macro.
23198 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
23199 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
23200 (Finternal_set_lisp_face_attribute)
23201 (Finternal_get_lisp_face_attribute): Handle QCfontset.
23202 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
23203 check also LFACE_FONTSET_INDEX.
23204 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
23205 attrs[LFACE_FONT_INDEX].
23206 (syms_of_xfaces): Intern and staticpro QCfontset.
23207
23208 * dispextern.h (enum lface_attribute_index): New member
23209 LFACE_FONTSET_INDEX.
23210
23211 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
23212
232132008-02-01 Kenichi Handa <handa@m17n.org>
23214
23215 * coding.c (coding_set_destination): Fix coding->destination for
23216 the case converting a region.
23217 (encode_coding_utf_8): Encode eight-bit chars as single byte.
23218 (encode_coding_object): Fix coding->dst_pos and
23219 coding->dst_pos_byte for the case converting a region.
23220
23221 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
23222
23223 * character.h (BYTE8_STRING): New macro.
23224
23225 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
23226
232272008-02-01 Kenichi Handa <handa@m17n.org>
23228
23229 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
23230 characters by octal form.
23231
23232 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23233
23234 * buffer.h (_fetch_multibyte_char_len): Delete extern.
23235 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
23236 _fetch_multibyte_char_len.
23237 (FETCH_CHAR_AS_MULTIBYTE): New macro.
23238
23239 * casetab.c (set_canon, set_identity, shuffle): Simplify.
23240
23241 * casefiddle.c (casify_object): Simplify. Handle the case that
23242 the case conversion change the byte length.
23243 (casify_region): Likewise.
23244
23245 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
23246
23247 * character.c (_fetch_multibyte_char_len): Delete this variable.
23248 (syms_of_character): Setup Vprintable_chars.
23249
23250 * editfns.c (Fchar_equal): Fix for the unibyte case.
23251 (Finsert_byte): New function.
23252 (syms_of_editfns): Defsubr it.
23253
23254 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
23255 of direct code 0x3ffff.
23256
23257 * search.c (Freplace_match): Fix for the unibyte case.
23258
232592008-02-01 Kenichi Handa <handa@m17n.org>
23260
23261 * lread.c (safe_to_load_p): Fix the logic.
23262
23263 * syntax.c (scan_words): Don't treat characters belonging to
23264 different scripts as constituting a word.
23265
23266 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23267
23268 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
23269
23270 * emacs.c (main): In the case of --unibyte, instead of aborting on
23271 finding non-empty buffer, make it unibyte.
23272
232732008-02-01 Kenichi Handa <handa@m17n.org>
23274
23275 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
23276 to create a fontset.
23277
232782008-02-01 Dave Love <fx@gnu.org>
23279
23280 * character.c (Funibyte_char_to_multibyte): Doc fix.
23281
23282 * xfns.c [HAVE_STDLIB_H]: Fix last change.
23283
232842008-02-01 Kenichi Handa <handa@m17n.org>
23285
23286 * fontset.c (fontset_add): Make the type `int'.
23287 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23288
23289 * character.c (unibyte_char_to_multibyte)
23290 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23291 charset_unibyte, not charset_primary.
23292
23293 * charset.h (charset_unibyte): Extern it instead of charset_primary.
23294
23295 * charset.c (charset_unibyte): Rename from charset_primary.
23296 (Funibyte_charset): Rename from Fprimary_charset.
23297 (Fset_unibyte_charset): Rename from Fset_primary_charset.
23298 (syms_of_charset): Adjust for the above changes.
23299
23300 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23301 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23302 it->multibyte_p is zero.
23303
23304 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23305 Delete extern.
23306
233072008-02-01 Kenichi Handa <handa@m17n.org>
23308
23309 * coding.c (Fdefine_coding_system_internal): Fix category setting
23310 for a coding system of type iso-2022.
23311
233122008-02-01 Kenichi Handa <handa@m17n.org>
23313
23314 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23315
233162008-02-01 Kenichi Handa <handa@m17n.org>
23317
23318 * syntax.c (Vnext_word_boundary_function_table): New variable.
23319 (next-word-boundary-function-table): Declare it as a Lisp variable
23320 in syms_of_syntax.
23321 (scan_words): Call functions in Vnext_word_boundary_function_table
23322 if any.
23323
23324 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23325
23326 * fontset.c (fs_load_font): If fontp->charset is not negative,
23327 return fontp without setting its members.
23328
233292008-02-01 Dave Love <fx@gnu.org>
23330
23331 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23332
23333 * m/sparc.h (HAVE_ALLOCA): Delete.
23334
23335 * s/irix6-5.h: Don't include strings.h.
23336 (bcopy, bzero, bcmp): Don't undef.
23337
23338 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23339
23340 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23341 (TIOCSIGSEND): Don't test IRIX6.
23342 (bcopy, bzero, bcmp): Define conditionally.
23343
233442008-02-01 Kenichi Handa <handa@m17n.org>
23345
23346 * buffer.c (Qas, Qmake, Qto): New variables.
23347 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23348 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23349
23350 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23351 we are inserting a process output into a multibyte buffer.
23352
23353 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23354 multibyte_char_to_unibyte.
23355
23356 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23357 by the primary charset, make it eight-bit char.
23358 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23359
23360 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23361 (charset_8_bit__control, charset_8_bit_graphic)
23362 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23363 (define_charset_internal): New function.
23364 (syms_of_charset): Call define_charset_internal for pre-defined
23365 charsets.
23366
23367 * charset.h (charset_8_bit): Extern it.
23368
23369 * coding.c (make_conversion_work_buffer): Adjust for the change
23370 of Fset_buffer_multibyte.
23371 (encode_coding_raw_text): Increment p0 in the loop.
23372
23373 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23374
23375 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23376 for the change of Fset_buffer_multibyte.
23377
23378 * fns.c (Fstring_to_multibyte): New function.
23379 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23380
233812008-02-01 Dave Love <fx@gnu.org>
23382
23383 * xfns.c (x_put_x_image): Declare args.
23384
23385 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23386 (try_font_list): Declare an arg.
23387
23388 * xdisp.c (message2_nolog, set_message): Declare an arg.
23389
23390 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23391
23392 * syntax.c (scan_sexps_forward): Declare an arg.
23393
23394 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23395 Declare an arg.
23396
23397 * lisp.h (Fnew_fontset): Declare.
23398
23399 * keymap.c (push_key_description): Call CHARACTERP correctly.
23400
23401 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23402 (face_for_char): Delete unused vars.
23403 (Fset_fontset_font): Doc fix. Delete unused vars.
23404
23405 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23406
23407 * composite.c (update_compositions): Declare arg.
23408
23409 * cm.c (calccost, cmgoto): Declare args.
23410
23411 * charset.c: Remove `emacs' conditional. Doc fixes.
23412 (map_char_table_for_charset): Declare.
23413
23414 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23415
23416 * ccl.c: Remove `emacs' conditional.
23417
234182008-02-01 Kenichi Handa <handa@m17n.org>
23419
23420 The following changes are to allow specifying multiple font
23421 patterns for a character range (specified by script or charset).
23422
23423 * Makefile.in (abbrev.o): Depend on syntax.h.
23424 (xfaces.o): Depend on charset.h.
23425
23426 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23427 SINGLE_BYTE_CHAR_P.
23428
23429 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23430
23431 * character.h (Vchar_script_table): Extern it.
23432
23433 * character.c (Vscript_alist): Delete.
23434 (Vchar_script_table, Qchar_script_table): New variable.
23435 (syms_of_character): Declare Vchar_script_table as a lisp variable
23436 and initialize it.
23437
23438 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23439 have property char-table-extra-slots, make no extra slot.
23440
23441 * dispextern.h (struct face): Delete member `charset'.
23442 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23443 SINGLE_BYTE_CHAR_P.
23444 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23445 Add prototypes.
23446 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23447 (generate_ascii_font_name): Rename from generate_ascii_font.
23448
23449 * fontset.h (get_font_repertory_func): New prototype.
23450 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23451 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23452
23453 * fontset.c (Qprepend, Qappend): New variables.
23454 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23455 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23456 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23457 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23458 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23459 (load_font_get_repertory): New functions.
23460 (fontset_set): Delete.
23461 (fontset_face): New arg FACE. Return face ID, not face.
23462 Complete re-write to handle new fontset structure. Change caller.
23463 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23464 (face_for_char): Don't call lookup_face.
23465 (make_fontset_for_ascii_face): New arg FACE.
23466 (fs_load_font): New arg CHARSET_ID. Don't check
23467 Vfont_encoding_alist here.
23468 (find_font_encoding): New function.
23469 (list_fontsets): Use STRINGP, not ! NILP.
23470 (accumulate_script_ranges): New function.
23471 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23472 re-written to handle new fontset structure.
23473 (Ffontset_font): Return a copy of element.
23474 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23475 docstring of font-encoding-alist.
23476
23477 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23478 (Fset_fotset_font): Fix arguments to 5.
23479
23480 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23481
23482 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23483 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23484 (highlight_trailing_whitespace): Adjust for the change of
23485 lookup_named_face.
23486
23487 * xfaces.c: Include charset.h.
23488 (load_face_font): Delete argument C. Change caller.
23489 (generate_ascii_font_name): Rename from generate_ascii_font.
23490 (font_name_registry): New function.
23491 (cache_face): Store ascii faces before non-ascii faces in buckets.
23492 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23493 Lookup only ascii faces.
23494 (lookup_non_ascii_face): New function.
23495 (lookup_named_face): Delete argument C. Change caller.
23496 (lookup_derived_face): Delete argument C. Change caller.
23497 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23498 a string, just call font_list with it.
23499 (choose_face_font): Delete arguments FACE and C. New arg
23500 FONT_SPEC. Change caller.
23501 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23502 Change caller.
23503 (realize_non_ascii_face): New function.
23504 (realize_x_face): Call load_face_font here.
23505 (realize_tty_face): Delete argument C. Change caller.
23506 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23507 get a face ID.
23508 (dump_realized_face): Don't print charset of FACE.
23509
23510 * xfns.c (x_set_font): Always call x_new_fontset and
23511 store_frame_parameter.
23512 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23513 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23514
23515 * xterm.h (x_get_font_repertory): Extern it.
23516
23517 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23518 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23519 it->multibyte_p is zero.
23520 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23521 (x_new_fontset): If FONTSETNAME doesn't match any existing
23522 fontsets, create a new one.
23523 (x_get_font_repertory): New function.
23524
235252008-02-01 Kenichi Handa <handa@m17n.org>
23526
23527 * coding.c (Ffind_coding_systems_region_internal): Detect an
23528 ASCII only string correctly.
23529
23530 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23531 version is 0.
23532
235332008-02-01 Kenichi Handa <handa@m17n.org>
23534
23535 * lread.c: Include "coding.h".
23536 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23537 (load_each_byte, unread_char): New variables.
23538 (readchar_backlog): Delete.
23539 (readchar): Return a character unless load_each_byte is nonzero.
23540 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23541 cons. If unread_char is not -1, simply return it.
23542 (unreadchar): Handle the case that readcharfun is
23543 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23544 (read_multibyte): Delete.
23545 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23546 (read_emacs_mule_char): New functions.
23547 (Fload): Even if the file doesn't have the extension ".elc", if
23548 safe_to_load_p returns a positive version number, assume that the
23549 file contains bytecompiled code. If the version is less than 22,
23550 load the file while decoding multibyte sequences by emacs-mule.
23551 (readevalloop): Don't use readchar_backlog.
23552 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23553 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23554 (read_escape): Delete the arg BYTEREP.
23555 (read1): Set load_each_byte to 1 temporarily while handling
23556 #@NUMBER. Don't call read_multibyte.
23557 (read_vector): Call Fread with a cons. If readcharfun is
23558 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23559 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23560 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23561 and Qload_force_doc_strings.
23562
235632008-02-01 Kenichi Handa <handa@m17n.org>
23564
23565 * xdisp.c (face_before_or_after_it_pos): Call
23566 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23567
235682008-02-01 Kenichi Handa <handa@m17n.org>
23569
23570 * character.h (TRAILING_CODE_P): New macro.
23571 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23572 (string_char_with_unification): Fix prototype.
23573 (Vscript_alist): Extern it.
23574
23575 * character.c (Vscript_alist): New variable.
23576 (string_char_with_unification, str_as_unibyte)
23577 (string_escape_byte8): Add `const' to local variables.
23578 (syms_of_character): Declare script-alist as a Lisp variable.
23579
23580 * charset.h (Vcharset_ordered_list): Extern it.
23581 (charset_ordered_list_tick): Extern it.
23582 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23583 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23584 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23585 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23586 (Funify_charset): Adjust for the change of Funify_charset.
23587
23588 * charset.c (charset_ordered_list_tick): New variable.
23589 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23590 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 23591 deunify instead of unify a charset.
aac0c6e3
MR
23592 (string_xstring_p): Add `const' to local variables.
23593 (find_charsets_in_text): Add `const' to arguments and local variables.
23594 (encode_char): Adjust for the change of Funify_charset. Fix
23595 detecting of invalid code.
23596 (Fset_charset_priority): Increment charset_ordered_list_tick.
23597 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23598 and TO_CODE.
23599
23600 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23601 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23602 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23603 (decode_coding_ccl, consume_chars)
23604 (Ffind_coding_systems_region_internal)
23605 (Fcheck_coding_systems_region): Add `const' to local variables.
23606
23607 * print.c (print_object): Use octal form for printing the
23608 contents of a bool vector.
23609
236102008-02-01 Dave Love <fx@gnu.org>
23611
23612 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23613 <version == 20>: Refuse to load.
23614
236152008-02-01 Dave Love <fx@gnu.org>
23616
23617 * fns.c: Move coding.h.
23618 (Qcodeset, Qdays, Qmonths): New.
23619 (concat): Use CHARACTERP instead of INTEGERP.
23620 (Flocale_codeset): Delete.
23621 (Flanginfo): New function.
23622 (syms_of_fns): Change accordingly.
23623
23624 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23625
236262008-02-01 Dave Love <fx@gnu.org>
23627
23628 * casetab.c (init_casetab_once, init_casetab_once): Fix
23629 CHAR_TABLE_SET call.
23630
23631 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23632
23633 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23634
23635 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23636 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23637 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23638
23639 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23640
23641 * coding.c (ENCODE_DESIGNATION, decode_eol)
23642 (make_conversion_work_buffer, code_conversion_restore)
23643 (Fdefine_coding_system_internal): Convert Lisp types.
23644 (code_conversion_restore): Use EQ, not ==.
23645 (Fencode_coding_string): Fix code_convert_string call.
23646
23647 * coding.h (code_convert_region): Fix prototype.
23648
23649 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23650
23651 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23652 (Ffontset_info): Convert Lisp types.
23653
23654 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23655
23656 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23657
23658 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23659
23660 * chartab.c: Include "...h", not <...h> in some cases.
23661
23662 * callproc.c (Fcall_process): Remove unused variables.
23663
236642008-02-01 Dave Love <fx@gnu.org>
23665
23666 * coding.c (Fset_coding_system_priority): Allow null arg list.
23667
236682008-02-01 Dave Love <fx@gnu.org>
23669
23670 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23671 (Fself_insert_and_exit): Use CHARACTERP.
23672
23673 * callproc.c (Fcall_process): Remove unused vars.
23674
23675 * xterm.c (XTread_socket): Add extra dead keysyms.
23676
23677 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23678
23679 * dispextern.h: Remove prototypes for redraw_frame,
23680 redraw_garbaged_frames.
23681
23682 * cmds.c (Fself_insert_command): Use CHARACTERP.
23683
23684 * chartab.c (make_sub_char_table): Remove unused var.
23685 (Fset_char_table_default, Fmap_char_table): Doc fix.
23686
23687 * keymap.c (access_keymap): Remove generic char code.
23688 (push_key_description): Use CHARACTERP.
23689
236902008-02-01 Dave Love <fx@gnu.org>
23691
23692 * charset.c: Doc fixes.
23693 (Funify_charset): Extra checking.
23694
236952008-02-01 Dave Love <fx@gnu.org>
23696
23697 * lread.c: Remove some unused variables.
23698 (safe_to_load_p): If safe, return the magic number version byte.
23699 (Fload): Maybe use load-with-code-conversion.
23700
237012008-02-01 Kenichi Handa <handa@m17n.org>
23702
23703 * category.c (Fmodify_category_entry): Don't modify the contents
23704 of category_set for characters out of the range. Avoid
23705 unnecessary modification.
23706
23707 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23708 Vchar_unify_table. The default value of the table is now nil.
23709
23710 * character.c (syms_of_character): Setup Vchar_width_table for
23711 eight-bit-control and raw-byte chars.
23712
23713 * charset.h (enum define_charset_arg_index): Delete
23714 charset_arg_parents and add charset_arg_subset and
23715 charset_arg_superset.
23716 (enum charset_attr_index): Delete charset_parents and add
23717 charset_subset and charset_superset.
23718 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23719 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23720 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23721 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23722 (CHARSET_SUPERSET): New macros.
23723 (charset_work): Extern it.
23724 (ENCODE_CHAR): Use charset_work.
23725 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23726 (map_charset_chars): Extern it.
23727
23728 * charset.c (load_charset_map): Set the default value of encoder
23729 and deunifier char-tables to nil.
23730 (map_charset_chars): Change argument. Change callers. Use
23731 map_char_table_for_charset instead of map_char_table.
23732 (Fmap_charset_chars): New optional args from_code and to_code.
23733 (Fdefine_charset_internal): Adjust for the change of
23734 `define-charset' (:parents -> :subset or :superset).
23735 (charset_work): New variable.
23736 (encode_char, syms_of_charset): Adjust for the change of
23737 Fdefine_charset_internal.
23738 (Ffind_charset_string): Setup the vector `charsets' correctly.
23739
23740 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23741 the previous change.
23742 (char_table_ref_and_range): Adjust for the above change.
23743 (map_sub_char_table_for_charset): New function.
23744 (map_char_table_for_charset): New function.
23745
23746 * keymap.c (describe_vector): Handle a char-table directly here.
23747 (describe_char_table): Delete.
23748
23749 * lisp.h (map_charset_chars): Delete.
23750
237512008-02-01 Dave Love <fx@gnu.org>
23752
23753 * fns.c (count_combining): Comment out (unused).
23754 (Flocale_codeset): New.
23755 (syms_of_fns): Defsubr it.
23756
23757 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23758 (size_t): Remove.
23759
237602008-02-01 Dave Love <fx@gnu.org>
23761
23762 * Makefile.in (chartab.o): Depend on charset.h.
23763
237642008-02-01 Kenichi Handa <handa@m17n.org>
23765
23766 * character.c (syms_of_character): Set the default value of
23767 Vprintable_chars to Qnil.
23768
237692008-02-01 Dave Love <fx@gnu.org>
23770
23771 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23772
237732008-02-01 Kenichi Handa <handa@m17n.org>
23774
23775 * charset.c (load_charset_map): Handle the case that from < to
23776 correctly.
23777
23778 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23779 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23780 Pay attention to raw-8-bit chars.
23781
237822008-02-01 Kenichi Handa <handa@m17n.org>
23783
23784 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23785 It is not bytecompiled now.
23786
23787 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23788 (charset_jisx0208): New variables.
23789 (Fdefine_charset_internal): Setup them if appropriate.
23790 (init_charset_once): Initialize them to -1.
23791
23792 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23793 (charset_jisx0208): Extern them.
23794
23795 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23796 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23797 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23798 (setup_iso_safe_charsets): Fix arguments to Fassq.
23799 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23800 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23801 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23802 (encode_coding_iso_2022): Change the 1st arg to
23803 ENCODE_ISO_CHARACTER to a variable.
23804
238052008-02-01 Kenichi Handa <handa@m17n.org>
23806
23807 * charset.h (enum define_charset_arg_index): New enums
23808 charset_arg_min_code and charset_arg_max_code.
23809 (struct charset): New member char_index_offset.
23810
23811 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23812 Take charset->char_index_offset into account.
23813 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23814 args[charset_arg_max_code]. Setup charset.char_index_offset.
23815 (syms_of_charset): Fix args to Fdefine_charset_internal.
23816
238172008-02-01 Dave Love <fx@gnu.org>
23818
23819 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23820
238212008-02-01 Dave Love <fx@gnu.org>
23822
23823 * coding.c: Doc fixes.
23824 (Fcoding_system_aliases): Fix return value.
23825 (Qmac): Remove (duplicated) definition.
23826
238272008-02-01 Dave Love <fx@gnu.org>
23828
362654a6
JB
23829 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23830 New functions.
aac0c6e3
MR
23831
23832 * character.c (Fstring): Doc fix.
23833
23834 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23835
362654a6 23836 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23837 (font-encoding-alist): Doc fix.
23838
238392008-02-01 Dave Love <fx@gnu.org>
23840
23841 * term.c (costs_set): Declare static, non-initialized for pcc.
23842 (encode_terminal_code): Remove unused var.
23843
23844 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23845 for K&R.
23846
23847 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23848
23849 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23850 (suffixes): Move out of make_subsidiaries for K&R.
23851
23852 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23853
23854 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23855
238562008-02-01 Dave Love <fx@gnu.org>
23857
23858 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23859
23860 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23861
238622008-02-01 Yong Lu <lyongu@asia-infonet.com>
23863
23864 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23865
23866 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23867
238682008-02-01 Kenichi Handa <handa@m17n.org>
23869
23870 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23871 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23872
238732008-02-01 Kenichi Handa <handa@m17n.org>
23874
23875 * coding.c (decode_coding_charset): Adjust for the change of
23876 Fdefine_coding_system_internal.
23877 (Fdefine_coding_system_internal): For a coding system of
23878 `charset' type, store a list of charset IDs in
23879 `charset_attr_charset_valids' element of coding attributes.
23880
238812008-02-01 Kenichi Handa <handa@m17n.org>
23882
23883 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23884 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23885 caller. Handle 2-byte and 3-byte charsets correctly.
23886 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23887 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23888 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23889 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23890 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23891 sequence.
23892 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23893 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23894 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23895 and alt&rule composition.
23896 (decode_coding_iso_2022): Handle composition correctly.
23897 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23898
23899 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23900 re-defining a charset. If the charset has :emacs-mule-id, setup
23901 emacs_mule_bytes.
23902 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23903
239042008-02-01 Kenichi Handa <handa@m17n.org>
23905
23906 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23907 (encode_coding_big5, encode_coding_charset): If coding requires safe
23908 encoding, produce a character specified by
23909 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23910
239112008-02-01 Dave Love <fx@gnu.org>
23912
23913 * xterm.c (XSetIMValues): Declare.
23914
23915 * process.c: Conditionally include sys/wait.h, pty.h.
23916
23917 * print.c (print_object): Fix print format for 64-bit systems.
23918
23919 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23920
23921 * buffer.c (emacs_strerror): Declare.
23922
23923 * fontset.c (Fclear_face_cache): Declare.
23924 (accumulate_font_info): Comment-out (unused).
23925 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23926 variables.
23927
23928 * character.h (string_escape_byte8): Declare.
23929
23930 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23931 unused vars.
23932 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23933 (Fmap_charset_chars): Doc fix.
23934
23935 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23936 (Fset_coding_system_priority, Fset_coding_system_priority)
23937 (Fdefine_coding_system_internal): Doc fix.
23938
239392008-02-01 Dave Love <fx@gnu.org>
23940
23941 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23942
239432008-02-01 Kenichi Handa <handa@m17n.org>
23944
23945 * character.c (string_escape_byte8): Make multibyte string with
23946 correct size.
23947
23948 * charset.c (Fmake_char): Delete unnecessary code.
23949
239502008-02-01 Kenichi Handa <handa@m17n.org>
23951
23952 * xfns.c (x_encode_text): Allocate coding.destination here, and
23953 call encode_coding_object with dst_object Qnil.
23954
23955 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23956 multibyte form correctly.
23957
23958 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23959 against Vfont_encoding_alist.
23960
23961 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23962 handling of charset list.
23963 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23964 (decode_coding_object): Move point to coding->dst_pos before
23965 calling post-read-conversion function.
23966 (encode_coding_object): Give correct arguments to
23967 pre-write-conversion. Ignore the return value of
23968 pre-write-conversion function. Pay attention to the case that
23969 pre-write-conversion changes the current buffer. If dst_object is
23970 Qt, even if coding->src_bytes is zero, allocate at least one byte
23971 to coding->destination.
23972
23973 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23974
23975 * charset.c (Fmake_char): Make it more backward compatible.
23976 (Fmap_charset_chars): Fix docstring.
23977
239782008-02-01 Dave Love <fx@gnu.org>
23979
23980 * coding.c: Doc fixes.
23981 (Fdefine_coding_system_alias): Use names, not symbols, in
23982 coding-system-alist.
23983
239842008-02-01 Kenichi Handa <handa@m17n.org>
23985
23986 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23987 of calling free_realized_face.
23988
239892008-02-01 Yong Lu <lyongu@asia-infonet.com>
23990
23991 * charset.c (read_hex): Don't treat SPC as a comment starter.
23992 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23993 (Fdecode_char): Fix typo.
23994
239952008-02-01 Kenichi Handa <handa@m17n.org>
23996
23997 * charset.h (struct charset): New member `code_space_mask'.
23998
23999 * coding.c (coding_set_source): Delete the local variable beg_byte.
24000 (encode_coding_charset, Fdefine_coding_system_internal):
24001 Delete the local variable charset.
24002 (Fdefine_coding_system_internal): Setup
24003 attrs[coding_attr_charset_valids] correctly.
24004
24005 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
24006 member to check if CODE is valid or not.
24007 (Fdefine_charset_internal): Initialize `code_space_mask' member.
24008 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
24009 is within the range of charset->min_code and carset->max_code.
24010
240112008-02-01 Dave Love <fx@gnu.org>
24012
24013 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
24014
24015 * dispextern.h (generate_ascii_font): Fix return type.
24016
24017 * xfaces.c (generate_ascii_font): Fix arg declaration.
24018
24019 * coding.c (coding_inherit_eol_type)
24020 (Fset_terminal_coding_system_internal)
24021 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
24022
240232008-02-01 Kenichi Handa <handa@m17n.org>
24024
24025 * coding.c (decode_coding_charset, encode_coding_charset): Handle
24026 multiple charsets correctly.
24027
240282008-02-01 Kenichi Handa <handa@m17n.org>
24029
24030 * search.c (boyer_moore): Fix handling of multibyte character
24031 translation.
24032
24033 * xdisp.c (display_mode_element): When the variable `elt' is
24034 changed, update `this' and `lisp_string'.
24035
240362008-02-01 Kenichi Handa <handa@m17n.org>
24037
24038 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
24039
24040 * callproc.c (Fcall_process): Be sure to give the current buffer
24041 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
24042
24043 * charset.c (struct charset_map_entries): New struct.
24044 (load_charset_map): Rename from parse_charset_map. New args
24045 entries and n_entries. Change caller.
24046 (load_charset_map_from_file): Rename from load_charset_map.
24047 Change caller. New arg control_flag. Call load_charset_map at
24048 the tail.
24049 (load_charset_map_from_vector): New function.
24050 (Fdefine_charset_internal): Setup charset.compact_codes_p.
24051 (encode_char): If the charset is compact, change a character index
24052 to a code point.
24053
24054 * coding.c (coding_alloc_by_making_gap): Check the case that the
24055 source and destination are the same correctly.
24056 (decode_coding_raw_text): Set coding->consumed_char and
24057 coding->consumed to 0.
24058 (produce_chars): If coding->chars_at_source is nonzero, update
24059 coding->consumed_char and coding->consumed before calling
24060 alloc_destination.
24061 (Fdefine_coding_system_alias): Register ALIAS in
24062 Vcoding_system_alist.
24063 (syms_of_coding): Define `no-conversion' coding system at the tail.
24064
24065 * fileio.c (Finsert_file_contents): Set coding_system instead of
24066 val. If the current buffer is multibyte, always call
24067 decode_coding_gap.
24068
24069 * xfaces.c (try_font_list): Give higher priority to fontset's
24070 family than face's family.
24071
240722008-02-01 Kenichi Handa <handa@m17n.org>
24073
24074 * callproc.c (Fcall_process): Be sure to give the current buffer
24075 to decode_coding_c_string.
24076
24077 * xfaces.c (try_font_list): Give a family specified in a fontset
24078 higher priority than a family specified in a face.
24079
240802008-02-01 Kenichi Handa <handa@m17n.org>
24081
24082 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
24083 Fix arguments to insert_from_buffer.
24084
24085 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
24086
240872008-02-01 Kenichi Handa <handa@m17n.org>
24088
24089 * coding.c (produce_chars): Set the variable `multibytep' correctly.
24090 (decode_coding_gap): Set coding->dst_multibyte correctly.
24091
240922008-02-01 Kenichi Handa <handa@m17n.org>
24093
24094 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
24095 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
24096 (encode_coding_utf_16): Substitute coding->default_char for
24097 non-Unicode characters.
24098 (decode_coding): Don't call record_insert here.
24099 (setup_coding_system): Initialize `surrogate' of
24100 coding->spec.utf_16 to 0.
24101 (EMIT_ONE_BYTE): Fix for multibyte case.
24102
24103 * insdel.c (insert_from_gap): Call record_insert.
24104
241052008-02-01 Kenichi Handa <handa@m17n.org>
24106
24107 * casefiddle.c (casify_region): Fix multibyte case.
24108
24109 * character.c (c_string_width): Add return type `int'.
24110 (char_string_with_unification): Delete arg ADVANCED.
24111
24112 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
24113 (CHAR_STRING): Adjust for the change of char_string_with_unification.
24114 (CHAR_STRING_ADVANCE): Make it do-while statement.
24115
24116 * chartab.c (sub_char_table_set_range): Optimize for the case
24117 DEPTH == 3. Add workaround code for a GCC optimization bug.
24118
24119 * charset.c (parse_charset_map): Remove an unused variable.
24120
24121 * coding.c: Delete unused variables.
24122
24123 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
24124 earlier. If inserted is zero and the coding system doesn't
24125 require flushing, don't call decode_coding_gap.
24126
24127 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
24128
241292008-02-01 Kenichi Handa <handa@m17n.org>
24130
24131 The following changes are for using Unicode as an internal
24132 character model, and use UTF-8 format for buffer/string
24133 representation.
24134
24135 * .gdbinit (xchartable): Adjust for the change of char table structure.
24136 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
24137
24138 * Makefile.in (obj): Add character.o and chartab.o.
24139 (lisp, shortlisp): Remove utf-8.elc.
24140 (*.o): For many files, change dependency on charset.h to
24141 character.h, and add dependency on character.h.
24142 (character.o, chartab.o): New targets.
24143
24144 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
24145 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
24146 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
24147 of "charset.h".
24148
24149 * dired.c, filelock.c: Include "character.h".
24150
24151 * alloc.c: Include "character.h" instead of "charset.h".
24152 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
24153 (syms_of_alloc): Remove defsubr for Smake_char_table.
24154
24155 * buffer.c: Include "character.h" instead of "charset.h", don't
24156 include "coding.h".
24157 (Fset_buffer_multibyte): Adjust for UTF-8.
24158
24159 * buffer.h: EXFUN Fbuffer_live_p.
24160
24161 * callproc.c: Include "character.h" instead of "charset.h".
24162 (Fcall_process): Big change for the new code-conversion APIs.
24163
24164 * casetab.c: Include "character.h" instead of "charset.h".
24165 (set_canon, set_identity, shuffle): Adjust for the new
24166 map_char_table spec.
24167 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
24168 accessing the char table structure.
24169
24170 * chartab.c: New file that implements char table.
24171
24172 * category.c: Include "character.h".
24173 (copy_category_entry): New function.
24174 (copy_category_table): Call map_char_table and copy_category_entry.
24175 (Fmake_category_table): Initialize all top-level slots.
24176 (char_category_set): New function.
24177 (modify_lower_category_set): Delete.
24178 (Fmodify_category_entry): Call char_table_ref_and_range.
24179
24180 * category.h (CATEGORY_SET): Just call char_category_set.
24181
24182 * ccl.c: Include "character.h".
24183 (Qccl, Qcclp): New variables.
24184 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
24185 it's less than 256.
24186 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
24187 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
24188 and DST type.
24189 (ccl_driver): Change types of argument, adjust code accordingly.
24190 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
24191 ccl_driver.
24192 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
24193
24194 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
24195 New members src_multibyte, dst_multibyte, consumed, and produced.
24196 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
24197 (CODING_SPEC_CCL_PROGRAM): New macro.
24198 (ccl_driver): Update prototype.
24199 (Qccl, Qcclp, Fccl_program_p): Extern them.
24200 (CHECK_CCL_PROGRAM): New macro.
24201
24202 * character.c, character.h, chartab.c: New files.
24203
24204 * charset.c: Mostly re-written. Move character and multibyte sequence
24205 handling codes to character.c.
24206
24207 * charset.h: Mostly re-written. Move character and multibyte sequence
24208 handling codes to character.h.
24209
24210 * coding.c, coding.h: Mostly re-written.
24211
24212 * composite.c: Include "character.h" instead of "charset.h".
24213 (CHAR_WIDTH): Move to character.h.
24214 (HASH_KEY, HASH_VALUE): Delete.
24215
24216 * composite.h (enum composition_method): Change order of enumeration
24217 symbols.
24218
24219 * data.c: Include "character.h" instead of "charset.h".
24220 (Faref): Call CHAR_TABLE_REF for a char table.
24221 (Faset): Call CHAR_TABLE_SET for a char table.
24222
24223 * dispextern.h (free_realized_face, check_face_attribytes)
24224 (generate_ascii_font): Extern them.
24225 (free_realized_multibyte_face): Delete extern.
24226
24227 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
24228 table structure.
24229
24230 * editfns.c: Include "character.h" instead of "charset.h".
24231 (Fchar_to_string): Always call CHAR_STRING.
24232
24233 * emacs.c (main): Call init_charset_once, init_charset,
24234 syms_of_chartab, and syms_of_character.
24235
24236 * fileio.c: Include "character.h" instead of "charset.h".
24237 (Finsert_file_contents): Big change for the new code-conversion API.
24238 (choose_write_coding_system, Fwrite_region): Likewise.
24239 (build_annotations_2): Delete.
24240 (e_write): Big change for the new code-conversion API.
24241
24242 * fns.c: Include "character.h" instead of "charset.h".
24243 (copy_sub_char_table): Move to chartab.c.
24244 (Fcopy_sequence): Call copy_char_table for a char table.
24245 (concat): Delete codes calling count_multibyte.
24246 (string_char_to_byte, string_byte_to_char): Adjust for the new
24247 multibyte form.
24248 (internal_equal): Adjust for the change of char table structure.
24249 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
24250 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
24251 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
24252 (char_table_translate, optimize_sub_char_table)
24253 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
24254 chartab.c.
24255 (char_table_ref_and_index): Delete.
24256 (HASH_KEY, HASH_VALUE): Move to lisp.h.
24257 (Fmd5): Call preferred_coding_system instead of accessing
24258 Vcoding_category_list. Adjust for the new code-conversion API.
24259 (syms_of_fns): Move defsubr for char table related functions to
24260 chartab.c.
24261
24262 * fontset.c: Mostly re-written.
24263
24264 * fontset.h (struct font_info): Change type of the member encoding_type.
24265 (enum FONT_SPEC_INDEX): New enum.
24266 (fontset_font_pattern, fs_load_font): Update prototype.
24267 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
24268
24269 * indent.c: Include "character.h" instead of "charset.h".
24270 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
24271
24272 * insdel.c: Include "character.h" instead of "charset.h".
24273 (copy_text): Don't refer to Vnonascii_translation_table.
24274 (insert_from_gap): New function.
24275
24276 * keyboard.c: Include "character.h" instead of "charset.h".
24277 (command_loop_1): Never call direct_output_forward_char before
24278 a non-ASCII character.
24279 (read_char): If Vkeyboard_translate_table is a char table, always
24280 translate a character.
24281
24282 * keymap.c: Include "character.h".
24283 (store_in_keymap): Handle the case that IDX is a cons.
24284 (Fdefine_key): Handle the case that KEY is a cons and the car part
24285 is also a cons (range).
24286 (push_key_description): Adjust for the new character code.
24287 (describe_vector): Call describe_char_table for a char table.
24288 (describe_char_table): New function.
24289
24290 * keymap.h (describe_char_table): Extern it.
24291
24292 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24293 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24294 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24295 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24296 Delete.
24297 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24298 structure.
24299 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24300 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24301 (CHARTAB_SIZE_BITS_3): New macros.
24302 (chartab_size): Extern it.
24303 (struct Lisp_Char_Table): Re-design.
24304 (struct Lisp_Sub_Char_Table): New structure.
24305 (HASH_KEY, HASH_VALUE): Move from fns.c.
24306 (CHARACTERBITS): Define as 22.
24307 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24308 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24309 (GC_SUB_CHAR_TABLE_P): New macro.
24310 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24311 (code_convert_string_norecord): Deleted extern.
24312 (init_character_once, syms_of_character, init_charset)
24313 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24314
24315 * lread.c: Include "character.h".
24316 (read_multibyte): New arg NBYTES.
24317 (read_escape): Change the meaning of returned *BYTEREP.
24318 (to_multibyte): Delete.
24319 (read1): Adjust the handling of char table and string.
24320
24321 * print.c: Include "character.h" instead of "charset.h".
24322 (print_string): Convert 8-bit raw bytes to octal form by
24323 string_escape_byte8.
24324 (print_object): Adjust for the new multibyte form. Print 8-bit
24325 raw bytes always in octal form. Handle sub char table correctly.
24326
24327 * process.c: Include "character.h" instead of "charset.h".
24328 (read_process_output, send_process): Adjust for the new
24329 code-conversion API.
24330
24331 * puresize.h (BASE_PURESIZE): Increase.
24332
24333 * regex.c: Include "character.h" instead of "charset.h".
24334 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24335 (regex_compile): Accept a range whose starting and ending
24336 character have different leading bytes.
24337 (analyse_first): Adjust for the above change.
24338
24339 * search.c: Include "character.h" instead of "charset.h".
24340 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24341 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24342
24343 * syntax.c: Include "character.h" instead of "charset.h".
24344 (syntax_parent_lookup): Delete.
24345 (Fmodify_syntax_entry): Accept a cons as CHAR.
24346 (skip_chars): Adjust for the new multibyte form.
24347 (init_syntax_once): Call char_table_set_range instead of directly
24348 accessing the structure of a char table.
24349
24350 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24351 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24352 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24353 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24354
24355 * term.c: Include "buffer.h" and "character.h".
24356 (encode_terminal_code, write_glyphs): Adjust for the new
24357 code-conversion API.
24358 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24359
24360 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24361
24362 * xdisp.c: Include "character.h".
24363 (get_next_display_element): Adjust for the new multibyte form.
24364 (disp_char_vector): Adjust for the new char table structure.
24365 (decode_mode_spec_coding): Adjust for the new structure of
24366 coding system.
24367 (decode_mode_spec): Adjust for the new code-conversion API.
24368
24369 * xfaces.c: Include "character.h" instead of "charset.h".
24370 (load_face_font): Adjust for the change of choose_face_font and
24371 FS_LOAD_FONT.
24372 (generate_ascii_font): New function.
24373 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24374 (set_font_frame_param): Adjust for the change of choose_face_font.
24375 (free_realized_face): Make it public.
24376 (free_realized_faces_for_fontset): Rename from
24377 free_realized_multibyte_face. Free also faces realized for ASCII.
24378 (choose_face_font): Change arguments. Adjust for the change of
24379 fontset_font_pattern and FS_LOAD_FONT.
24380
24381 * xfns.c: Include "character.h".
24382 (x_encode_text): Adjust for the new code-conversion API.
24383
24384 * xselect.c: Don't include "charset.h".
24385 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24386
24387 * xterm.c: Include "character.h".
24388 (x_encode_char): New argument CHARSET. Change caller.
24389 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24390 Call ENCODE_CHAR instead of SPLIT_CHAR.
24391 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24392 CHAR_WIDTH instead of CHARSET_WIDTH.
24393 (XTread_socket): Adjust for the new code-conversion API.
24394 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24395 (x_load_font): Adjust for the change of struct font.
24396
243972008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24398
24399 * xfaces.c (face_at_buffer_position): Remove unused vars.
24400
244012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24402
24403 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24404 Fix overflow checking.
24405
244062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24407
24408 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24409 Cancel previous change.
24410
244112008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24412
24413 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24414 ccl->eight_bit_control. Fix check for buffer overflow.
24415 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24416 (ccl_driver): Initialize extra_bytes to 0.
24417
244182008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24419
24420 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24421 return it ORed with ctrl_modifier.
24422
244232008-01-29 Miles Bader <miles@gnu.org>
24424
24425 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24426
244272008-01-28 Jason Rumney <jasonr@gnu.org>
24428
24429 * w32.c (stat): Don't double check for networked drive.
24430
244312008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24432
24433 * window.c (run_window_configuration_change_hook): New function.
24434 Code extracted from set_window_buffer. Set the selected frame.
24435 (set_window_buffer): Use it.
24436 * window.h (run_window_configuration_change_hook): Declare.
24437 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24438
24439 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24440
244412008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24442
24443 * Makefile.in: Remove references to unused macros.
24444
244452008-01-26 Eli Zaretskii <eliz@gnu.org>
24446
24447 * w32.c (g_b_init_get_sid_sub_authority)
24448 (g_b_init_get_sid_sub_authority_count): New static variables.
24449 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24450 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24451 (init_user_info): Use them to retrieve uid and gid.
24452 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24453 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24454 st_uid and st_gid of the file.
24455
244562008-01-26 Jason Rumney <jasonr@gnu.org>
24457
24458 * w32.c (logon_network_drive): New function.
24459 (stat): Use it.
24460
244612008-01-26 Chong Yidong <cyd@stupidchicken.com>
24462
24463 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24464 invisible text covered with an ellipsis.
24465
244662008-01-25 Richard Stallman <rms@gnu.org>
24467
24468 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24469 jump back to beginning. Move some other initializations after that.
24470 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24471 New variables.
24472 (syms_of_xdisp): Init them.
24473
24474 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24475
24476 * buffer.c (reset_buffer_local_variables):
24477 Implement `permanent-local-hook'.
24478 (Qpermanent_local_hook): New variable.
24479 (syms_of_buffer): Init and staticpro it.
24480
244812008-01-25 Michael Albinus <michael.albinus@gmx.de>
24482
24483 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24484
244852008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24486
24487 * fns.c (Fclrhash): Return TABLE.
24488
244892008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24490
24491 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24492 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24493 is set even without positional changes.
24494 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24495
24496 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24497
244982008-01-23 Jason Rumney <jasonr@gnu.org>
24499
24500 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24501
24502 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24503 the unicode range available in MULE by locale-coding-system.
24504 Improve dbcs lead byte detection. Set event timestamp and modifiers
24505 earlier.
24506
245072008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24508
24509 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24510 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24511 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24512 when used on child processes.
24513
245142008-01-21 Michael Albinus <michael.albinus@gmx.de>
24515
24516 * dbusbind.c (Fdbus_method_return_internal): Rename from
24517 Fdbus_method_return.
24518 (Fdbus_unregister_object): Move to dbus.el.
24519 (Fdbus_call_method, Fdbus_method_return_internal)
24520 (Fdbus_send_signal): Improve debug messages.
24521
245222008-01-20 Martin Rudalics <rudalics@gmx.at>
24523
24524 * undo.c (undo_inhibit_record_point): New variable.
24525 (syms_of_undo): Initialize it.
24526 (record_point): Don't record point when undo_inhibit_record_point
24527 is set.
24528
245292008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24530
24531 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24532
24533 * xdisp.c (Qauto_hscroll_mode): New var.
24534 (syms_of_xdisp): Initialize it.
24535 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24536 window's buffer.
24537 (hscroll_windows): Don't check automatic_hscrolling_p here.
24538
24539 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24540 vscroll if we're setting window-buffer to the value it already has.
24541
245422008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24543
24544 * m/intel386.h: Remove references to XENIX.
24545
245462008-01-17 Andreas Schwab <schwab@suse.de>
24547
24548 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24549 instead of HAVE_X86_64_LIB64_DIR.
24550 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24551
245522008-01-17 Glenn Morris <rgm@gnu.org>
24553
24554 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24555 to HAVE_X86_64_LIB64_DIR.
24556
245572008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24558
24559 * s/irix3-3.h:
24560 * s/irix4-0.h:
24561 * s/386-ix.h:
24562 * s/domain.h:
24563 * s/hpux9-x11r4.h:
24564 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24565
24566 * sysdep.c: Remove code containing references to symbols defined
24567 by unsupported systems.
24568
245692008-01-16 Glenn Morris <rgm@gnu.org>
24570
24571 * coding.c (select-safe-coding-system-function): Doc fix.
24572
245732008-01-15 Glenn Morris <rgm@gnu.org>
24574
24575 * config.in: Revert 2008-01-13 change: this is a generated file.
24576
245772008-01-13 Tom Tromey <tromey@redhat.com>
24578
24579 * lisp.h: Fix typo.
24580
245812008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24582
24583 * m/sequent-ptx.h:
24584 * m/sequent.h:
24585 * s/ptx.h:
24586 * s/ptx4-2.h:
24587 * s/ptx4.h: Remove files for systems no longer supported.
24588
24589 * callproc.c (Fcall_process): Fix previous change.
24590
245912008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24592
24593 * unexsunos4.c: Remove file, system not supported anymore.
24594
24595 * m/mips.h:
24596 * m/intel386.h:
24597 * callproc.c:
24598 * config.in:
24599 * ecrt0.c:
24600 * emacs.c:
24601 * fileio.c:
24602 * frame.c:
24603 * getpagesize.h:
24604 * keyboard.c:
24605 * lread.c:
24606 * process.c:
24607 * puresize.h:
24608 * sysdep.c:
24609 * systty.h:
24610 * syswait.h:
24611 * unexec.c:
24612 * xdisp.c:
24613 * alloc.c: Remove code containing references to symbols defined by
24614 unsupported systems.
24615
246162008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24617
24618 * coding.c (detect_coding_mask): Fix previous change.
24619
246202008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24621
24622 * coding.c (detect_coding_iso2022): New arg
24623 latin_extra_code_state. Allow Latin extra codes only
24624 when *latin_extra_code_state is nonzero.
24625 (detect_coding_mask): If there is a NULL byte, detect the encoding
24626 as UTF-16 or binary. If Latin extra codes exist, detect the
24627 encoding as ISO-2022 only when there's no other proper encoding is
24628 found.
24629
246302008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24631
24632 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24633 #ifdef MAC_OS.
24634
246352008-01-08 Richard Stallman <rms@gnu.org>
24636
24637 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24638
246392008-01-06 Nick Roberts <nickrob@snap.net.nz>
24640
24641 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24642 menu bar in parentheses.
24643
246442008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24645
24646 * m/7300.h:
24647 * m/acorn.h:
24648 * m/alliant-2800.h:
24649 * m/alliant.h:
24650 * m/alliant1.h:
24651 * m/alliant4.h:
24652 * m/altos.h:
24653 * m/amdahl.h:
24654 * m/apollo.h:
24655 * m/att3b.h:
24656 * m/aviion-intel.h:
24657 * m/aviion.h:
24658 * m/celerity.h:
24659 * m/clipper.h:
24660 * m/cnvrgnt.h:
24661 * m/convex.h:
24662 * m/cydra5.h:
24663 * m/delta88k.h:
24664 * m/dpx2.h:
24665 * m/dual.h:
24666 * m/elxsi.h:
24667 * m/f301.h:
24668 * m/gould-np1.h:
24669 * m/gould.h:
24670 * m/i860.h:
24671 * m/ibmps2-aix.h:
24672 * m/ibmrt-aix.h:
24673 * m/ibmrt.h:
24674 * m/irist.h:
24675 * m/is386.h:
24676 * m/isi-ov.h:
24677 * m/mega68.h:
24678 * m/mg1.h:
24679 * m/news-r6.h:
24680 * m/news-risc.h:
24681 * m/news.h:
24682 * m/nh3000.h:
24683 * m/nh4000.h:
24684 * m/ns16000.h:
24685 * m/ns32000.h:
24686 * m/nu.h:
24687 * m/orion.h:
24688 * m/orion105.h:
24689 * m/paragon.h:
24690 * m/pfa50.h:
24691 * m/plexus.h:
24692 * m/pyramid.h:
24693 * m/pyrmips.h:
24694 * m/sh3el.h:
24695 * m/sps7.h:
24696 * m/sr2k.h:
24697 * m/stride.h:
24698 * m/sun1.h:
24699 * m/sun2.h:
24700 * m/sun3-68881.h:
24701 * m/sun3-fpa.h:
24702 * m/sun3-soft.h:
24703 * m/sun3.h:
24704 * m/sun386.h:
24705 * m/symmetry.h:
24706 * m/tad68k.h:
24707 * m/tahoe.h:
24708 * m/targon31.h:
24709 * m/tek4300.h:
24710 * m/tekxd88.h:
24711 * m/tower32.h:
24712 * m/tower32v3.h:
24713 * m/ustation.h:
24714 * m/wicat.h:
24715 * m/xps100.h:
24716 * s/cxux.h:
24717 * s/cxux7.h:
24718 * s/dgux.h:
24719 * s/dgux4.h:
24720 * s/dgux5-4-3.h:
24721 * s/dgux5-4r2.h:
24722 * s/esix.h:
24723 * s/esix5r4.h:
24724 * s/hiuxmpp.h:
24725 * s/hiuxwe2.h:
24726 * s/iris3-5.h:
24727 * s/iris3-6.h:
24728 * s/isc2-2.h:
24729 * s/isc3-0.h:
24730 * s/isc4-0.h:
24731 * s/isc4-1.h:
24732 * s/newsos5.h:
24733 * s/newsos6.h:
24734 * s/osf1.h:
24735 * s/osf5-0.h:
24736 * s/riscix1-1.h:
24737 * s/riscix12.h:
24738 * s/sco4.h:
24739 * s/sco5.h:
24740 * s/sunos4-0.h:
24741 * s/sunos4-1.h:
24742 * s/sunos413.h:
24743 * s/sunos4shr.h:
24744 * s/umax.h:
24745 * s/unipl5-2.h:
24746 * s/xenix.h:
24747 * cxux-crt0.s:
24748 * unexapollo.c:
24749 * unexconvex.c:
24750 * unexenix.c:
24751 * unexsni.c: Remove files for systems no longer supported.
24752
24753 * m/intel386.h: Remove references to unsupported systems.
24754
24755 * w32.c (get_emacs_configuration): Remove reference to i860.
24756
24757 * sysdep.c: Remove dead code.
24758
247592008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24760
24761 * s/rtu.h:
24762 * m/masscomp.h: Remove files. Platform is obsolete.
24763
247642008-01-04 Michael Albinus <michael.albinus@gmx.de>
24765
24766 * dbusbind.c (Fdbus_method_return): New function.
24767 (xd_read_message): Add the serial number to the event.
24768 (Fdbus_register_method): Activate the function.
24769
247702008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24771
24772 * keyboard.c (read_key_sequence): Fix typo.
24773
247742008-01-03 Michael Albinus <michael.albinus@gmx.de>
24775
24776 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24777 (xd_signature, xd_append_arg): Handle element type detection for
24778 empty arrays.
24779 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24780 SDATA () calls; this must be solved more general.
24781 (Fdbus_register_signal): Use SBYTES instead of strlen.
24782
247832008-01-03 Magnus Henoch <magnus@zemdatav>
24784
24785 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24786 unsigned int for byte values (necessary for big-endian platform).
24787 (Fdbus_call_method): Handle the case of no returned arguments.
24788
247892007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24790
24791 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24792
247932007-12-31 Magnus Henoch <mange@freemail.hu>
24794
24795 * dbusbind.c (xd_signature): Signature of variant is just "v".
24796
247972007-12-30 Michael Albinus <michael.albinus@gmx.de>
24798
24799 * dbusbind.c: Fix several errors and compiler warnings.
24800 Reported by Tom Tromey <tromey@redhat.com>.
24801 (XD_ERROR, XD_DEBUG_MESSAGE)
24802 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24803 (xd_append_arg): Part for basic D-Bus types rewritten.
24804 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24805 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24806 appropriate.
24807 (xd_read_message): Return Qnil. Don't signal an error; it is not
24808 useful during event reading.
24809 (Fdbus_register_signal): Signal an error if the check for
24810 FUNCTIONP fails.
24811 (Fdbus_register_method): New function. The implementation is not
24812 complete, the call of the function signals an error therefore.
24813 (Fdbus_unregister_object): New function, renamed from
24814 Fdbus_unregister_signal. The initial check signals an error, if
24815 the object is not well formed.
24816
248172007-12-30 Richard Stallman <rms@gnu.org>
24818
24819 * textprop.c (get_char_property_and_overlay):
24820 Signal error if POSITION is out of range in a buffer.
24821
248222007-12-29 Martin Rudalics <rudalics@gmx.at>
24823
24824 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24825 because the original parameters are in pure storage now.
24826
248272007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24828
24829 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24830
248312007-12-22 Eli Zaretskii <eliz@gnu.org>
24832
24833 * callint.c (syms_of_callint) <command-history>: Add reference to
24834 history-length in the doc string.
24835
248362007-12-17 Jason Rumney <jasonr@gnu.org>
24837
24838 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24839 before passing as wParam.
24840
248412007-12-22 Michael Albinus <michael.albinus@gmx.de>
24842
24843 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24844 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24845 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24846 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24847 as number.
24848 (Fdbus_call_method): Fix docstring.
24849
248502007-12-21 Michael Albinus <michael.albinus@gmx.de>
24851
24852 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24853 New macros.
24854 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24855 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24856 Simplify.
24857 (xd_signature): New function.
24858 (xd_append_arg): Compute also signatures. Major rewrite.
24859 (xd_retrieve_arg): Make debug messages friendly.
24860 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24861 Check for signatures of arguments.
24862
248632007-12-19 Michael Albinus <michael.albinus@gmx.de>
24864
24865 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24866 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24867 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24868 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24869 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24870 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24871 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24872 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24873 (xd_retrieve_value): Remove. Functionality included in ...
24874 (xd_append_arg): New function.
24875 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24876
248772007-12-16 Michael Albinus <michael.albinus@gmx.de>
24878
24879 * dbusbind.c (top): Include <stdio.h>.
24880 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24881 dbus_message_new_method_call and dbus_message_new_signal.
24882 (Fdbus_register_signal): Rename unique_name to uname.
24883 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24884 non-existing unique name. Fix typos in matching rule. Return an
24885 object which is useful in Fdbus_unregister_signal.
24886 (Fdbus_unregister_signal): Reimplementation, in order to remove
24887 only the corresponding entry.
24888 (Vdbus_registered_functions_table): Change the order of entries.
24889 Apply these changes in xd_read_message and Fdbus_register_signal.
24890
248912007-12-16 Andreas Schwab <schwab@suse.de>
24892
24893 * fileio.c (Finsert_file_contents): Fix overflow check to not
24894 depend on undefined integer overflow.
24895
248962007-12-14 Jason Rumney <jasonr@gnu.org>
24897
24898 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24899 for characters above 127.
24900
249012007-12-13 Jason Rumney <jasonr@gnu.org>
24902
24903 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24904 before dereferencing array.
24905 (lookup_vk_code): Remove zero comparison.
24906
249072007-12-14 Michael Albinus <michael.albinus@gmx.de>
24908
24909 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24910 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24911 Use `unsigned int' instead of `uint'.
24912 (xd_read_message, Fdbus_register_signal): Split expressions into
24913 multiple lines before operators "&&" and "||", according to the
24914 GNU Coding Standards.
24915
249162007-12-14 Eli Zaretskii <eliz@gnu.org>
24917
24918 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24919
249202007-12-12 Juri Linkov <juri@jurta.org>
24921
24922 * buffer.c (Frename_buffer): In interactive spec replace
24923 `read-buffer' with `read-string' that uses `buffer-name-history'
24924 as history, and the current buffer's name as default.
24925
249262007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24927
24928 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24929 manipulating the backtrace manually.
24930 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24931 (struct backtrace, backtrace_list): Remove.
24932 (command_loop_1): Remove dead var `no_direct'.
24933
24934 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24935 preserve non-built-in buffer-local variables.
24936 (Fkill_all_local_variables): Don't re-create&re-set permanent
24937 buffer-local variables.
24938
249392007-12-09 Juri Linkov <juri@jurta.org>
24940
24941 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24942 Lisp code that uses `read-buffer' with current buffer as default.
24943
249442007-12-08 Michael Albinus <michael.albinus@gmx.de>
24945
24946 * dbusbind.c (xd_read_message): Generate an event for every
24947 registered handler. There might be several handlers registered
24948 for the same signal.
24949 (Fdbus_register_signal): Don't overwrite a registration for the
24950 same signal. Add a new registration if handlers are different.
24951 (Vdbus_registered_functions_table): Rework doc string.
24952
249532007-12-07 Michael Albinus <michael.albinus@gmx.de>
24954
24955 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24956 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24957 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24958 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24959 Unify argument lists.
24960 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24961 arguments and hash table keys. Use unique name for service.
24962 (Fdbus_unregister_signal): Remove checks.
24963 (Vdbus_registered_functions_table): Fix doc string.
24964
249652007-12-05 Magnus Henoch <mange@freemail.hu>
24966
24967 * process.c (make_process): Initialize pty_flag to 0.
24968
249692007-12-05 Jason Rumney <jasonr@gnu.org>
24970
24971 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24972 specified XBMs.
24973
249742007-12-05 Richard Stallman <rms@gnu.org>
24975
24976 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24977
249782007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24979
24980 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24981 New variable.
24982 (mac_try_close_socket) [MAC_OSX]: New function.
24983 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24984 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24985
24986 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24987 Use mac_try_close_socket.
24988
249892007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24990
24991 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24992 reloc_base.
24993 (copy_dysymtab): Compute relocation base here.
24994 (rebase_reloc_address) [__ppc64__]: New function.
24995 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24996 changed.
24997
249982007-12-05 Jason Rumney <jasonr@gnu.org>
24999
25000 * w32proc.c (sys_spawnve): Quote args with wildcards.
25001
250022007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25003
25004 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
25005 __objc_* sections.
25006 (unrelocate) [_LP64]: Set relocation base to address of data segment.
25007
250082007-12-05 Michael Albinus <michael.albinus@gmx.de>
25009
25010 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
25011 Move check for Vdbus_registered_functions_table to
25012 xd_read_queued_messages.
25013 (xd_read_queued_messages): Protect xd_read_message calls by
25014 internal_condition_case_1.
25015
250162007-12-04 Michael Albinus <michael.albinus@gmx.de>
25017
25018 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
25019 Qdbus_system_bus and Qdbus_session_bus, respectively.
25020 (Vdbus_intern_symbols): Remove.
25021 (Vdbus_registered_functions_table): New hash table.
25022 (XD_SYMBOL_INTERN_SYMBOL): Remove.
25023 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
25024 Rewrite in order to manage registered functions by hash table
25025 Vdbus_registered_functions_table.
25026
250272007-12-03 Jan Djärv <jan.h.d@swipnet.se>
25028
25029 * xterm.c: Update URL to Window Manager Specification in comment.
25030
250312007-12-02 Michael Albinus <michael.albinus@gmx.de>
25032
25033 * config.in (HAVE_DBUS): Add.
25034
25035 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
25036 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
25037 (obj): Add $(DBUS_OBJ).
25038 (LIBES): Add $(DBUS_LIBS).
25039 (dbusbind.o): New target.
25040
25041 * dbusbind.c: New file.
25042
25043 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
25044
25045 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
25046 (Qdbus_event): New Lisp symbol.
25047 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
25048 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 25049 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
25050
25051 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
25052
250532007-12-01 Richard Stallman <rms@gnu.org>
25054
25055 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
25056
250572007-11-30 Jason Rumney <jasonr@gnu.org>
25058
25059 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
25060 (w32con_reset_terminal_modes): Clear screen buffer.
25061 (w32_face_attributes): Don't use color indexes that are out of range.
25062 Only reverse the default colors.
25063
25064 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
25065 WINDOWSNT.
25066
25067 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
25068
250692007-11-29 Jason Rumney <jasonr@gnu.org>
25070
25071 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
25072 (w32_face_attributes): Use Vtty_defined_color_alist to determine
25073 if the terminal colors are initialized.
25074 (unspecified_fg, unspecified_bg): Remove unused declarations.
25075
250762007-11-29 Andreas Schwab <schwab@suse.de>
25077
25078 * keyboard.c (apply_modifiers): Fix typo.
25079
250802007-11-29 Richard Stallman <rms@gnu.org>
25081
25082 * keymap.c (Fcurrent_local_map): Doc fix.
25083
250842007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
25085
25086 * s/gnu-kfreebsd.h: New file.
25087
250882007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
25089
25090 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
25091 Don't cast redundantly.
25092
25093 * keyboard.c (KEY_TO_CHAR): New macro.
25094 (parse_modifiers, apply_modifiers): Accept integer arguments.
25095 (read_key_sequence): Use them to unify the "shift->unshift" mapping
25096 for chars and symbol keys.
25097 After doing such remapping, apply function-key-map again.
25098
250992007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
25100
25101 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
25102 compiled anymore.
25103
251042007-11-26 Andreas Schwab <schwab@suse.de>
25105
25106 * process.c (list_processes_1): Fix indentation level of the
25107 command column.
25108
251092007-11-23 Andreas Schwab <schwab@suse.de>
25110
25111 * editfns.c (Fformat): Handle %c specially since it requires the
25112 argument to be of type int.
25113
251142007-11-23 Markus Triska <markus.triska@gmx.at>
25115
25116 * emacs.c (main): Call init_editfns before init_process, since
25117 init_process sets Vprocess_connection_type depending on OS release.
25118
251192007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
25120
25121 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
25122 (find_symbol_value): Use do_symval_forwarding.
25123
25124 * data.c (set_internal): Set the value in the `cons-cell' (for
25125 Buffer_Local_values) not only for frame-local variables.
25126
251272007-11-22 Andreas Schwab <schwab@suse.de>
25128
25129 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
25130 values to sprintf.
25131 * keymap.c (Fsingle_key_description): Likewise.
25132 * print.c (print_object): Likewise.
25133
251342007-11-22 Jan Djärv <jan.h.d@swipnet.se>
25135
25136 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
25137 file for image is nil.
25138
251392007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
25140
25141 * term.c: Include stdarg.h.
25142 (fatal): Implement using varargs.
25143 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
25144
251452007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25146
25147 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
25148 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
25149 Update call to buffer_slot_type_mismatch.
25150 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
25151 (buffer_slot_type_mismatch): Update.
25152 * buffer.c (buffer_local_types): Remove.
25153 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
25154 (defvar_per_buffer): Set the type in the buffer_objfwd.
25155
251562007-11-21 Jason Rumney <jasonr@gnu.org>
25157
25158 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
25159 CreateFileMapping returns NULL on failure.
25160
251612007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25162
25163 * search.c (Fset_match_data): Remove the `evaporate' feature.
25164 (unwind_set_match_data): Don't use the `evaporate' feature.
25165
251662007-11-21 Jason Rumney <jasonr@gnu.org>
25167
25168 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
25169
25170 * w32console.c (w32con_write_glyphs): Remove unused variables.
25171
251722007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
25173
25174 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
25175
25176 * s/darwin.h (MULTI_KBOARD): Remove.
25177
25178 * macfns.c (x_create_tip_frame, Fx_create_frame)
25179 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
25180
251812007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
25182
25183 * buffer.c (Fbuffer_local_value): Remove redundant test.
25184 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
25185 than in `current-buffer' to match the comment.
25186 Do the swap using swap_in_global_binding.
25187
25188 * data.c (store_symval_forwarding, set_internal):
25189 * eval.c (specbind): Remove dead code.
25190
25191 * coding.c (detect_coding, Fupdate_coding_systems_internal):
25192 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
25193 Since we do not want to see internal Lisp_*fwd objects here.
25194
251952007-11-18 Jan Djärv <jan.h.d@swipnet.se>
25196
25197 * sysdep.c (init_system_name): Use getaddrinfo if available.
25198
25199 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
25200 (x_scroll_bar_note_movement): start, end, with, height in struct
25201 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
25202
252032007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
25204
25205 * puresize.h (BASE_PURESIZE): Increase to 1190000.
25206
252072007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
25208
25209 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
25210 This undoes Richard's change of 14-Oct-2002.
25211
25212 * alloc.c (allocate_other_vector):
25213 * lisp.h (allocate_other_vector): Remove.
25214
25215 * window.c (struct save_window_data): Move non-lisp data to the end
25216 and make it `int' rather than Lisp_Object.
25217 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
25218 Done wrap/unwrap integer values.
25219 (Fset_window_configuration, compare_window_configurations):
25220 Update use of fields to their new types.
25221
25222 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
25223 Turn integer fields into `int'. Merge x_window_low and x_window_high.
25224 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
25225 (SET_SCROLL_BAR_X_WINDOW): Remove.
25226 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
25227 Access the new x_window field directly.
25228 * xterm.c (x_scroll_bar_create): Use a pseudovector.
25229 Don't wrap/unwrap integers into Lisp_Objects.
25230 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
25231 (x_scroll_bar_report_motion):
25232 Don't wrap/unwrap integers into Lisp_Objects.
25233 (x_term_init): Use SDATA.
25234 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
25235 (x_scroll_bar_set_handle, x_scroll_bar_remove)
25236 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
25237 (x_scroll_bar_report_motion, x_scroll_bar_clear):
25238 * xfns.c (x_set_background_color):
25239 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
25240 Access the new x_window field directly.
25241
25242 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
25243 (allocate_pseudovector): Make non-static.
25244
25245 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
25246 (allocate_pseudovector): Declare.
25247 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
25248
252492007-11-15 Andreas Schwab <schwab@suse.de>
25250
25251 * editfns.c (Fformat): Correctly format EMACS_INT values.
25252 Also take precision into account when formatting an integer.
25253
25254 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
25255
252562007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
25257
25258 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
25259 (syms_of_keyboard): Defsubr it.
25260
25261 * data.c (swap_in_global_binding): Fix longstanding bug where
25262 store_symval_forwarding was not called with the right second argument,
25263 thus causing objfwd-ing from being dropped.
25264
252652007-11-14 Juanma Barranquero <lekktu@gmail.com>
25266
25267 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
25268 (Fx_display_pixel_height, Fx_display_planes)
25269 (Fx_display_color_cells, Fx_server_max_request_size)
25270 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25271 (Fx_display_visual_class, Fx_display_save_under):
25272 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
25273 (Fx_display_pixel_height, Fx_display_planes)
25274 (Fx_display_color_cells, Fx_server_max_request_size)
25275 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25276 (Fx_display_mm_height, Fx_display_mm_width)
25277 (Fx_display_backing_store, Fx_display_visual_class)
25278 (Fw32_select_font, Fx_display_save_under):
25279 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
25280 (Fx_display_pixel_height, Fx_display_planes)
25281 (Fx_display_color_cells, Fx_server_max_request_size)
25282 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25283 (Fx_display_save_under): Fix typos in docstrings.
25284
252852007-11-14 Juanma Barranquero <lekktu@gmail.com>
25286
25287 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25288 corresponding to deleted entries; they are an implementation detail.
25289 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25290 Remove variables.
25291 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25292 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25293 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25294 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25295 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25296 (Fw32_define_rgb_color, Fw32_load_color_file)
25297 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25298 Fix typos in docstrings.
25299 (Fx_server_version): Reflow docstring.
25300 (Fw32_shell_execute): Doc fixes.
25301
253022007-11-13 Juanma Barranquero <lekktu@gmail.com>
25303
25304 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25305 if w32_parse_hot_key returned nil.
25306
253072007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
25308
25309 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25310
253112007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 25312
aac0c6e3
MR
25313 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25314
25315 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25316
25317 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25318 Remove W32_SCROLL_BAR_CLICK_EVENT.
25319
25320 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25321 Add MULTIMEDIA_KEY_EVENT.
25322
25323 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25324 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25325 (make_lispy_event) [WINDOWSNT]: Use it to translate
25326 MULTIMEDIA_KEY_EVENT.
25327
25328 * w32term.h (WM_APPCOMMAND): Define if not already.
25329 (GET_APPCOMMAND_LPARAM): Likewise.
25330
25331 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25332 WM_APPCOMMAND.
25333
25334 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25335 (syms_of_w32fns): Export and initialize it.
25336 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25337
253382007-11-09 Chong Yidong <cyd@stupidchicken.com>
25339
25340 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25341 twice.
25342
25343 * xdisp.c (handle_face_prop): Fix last change.
25344
253452007-11-09 Richard Stallman <rms@gnu.org>
25346
25347 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25348 not just for after-strings and before-strings.
25349 Call face_for_overlay_string and pass the overlay to it.
25350 (handle_display_prop): Determine whether property came from an overlay.
25351 Pass OVERLAY arg to handle_single_display_spec.
25352 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25353 (load_overlay_strings): Fill in it->string_overlays.
25354 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25355
25356 * xfaces.c (face_for_overlay_string): Function renamed from
25357 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25358
25359 * dispextern.h (struct it): New elt string_overlays.
25360 New elt from_overlay, also in stack.
25361 Rearrange a few elements.
25362 (face_for_overlay_string): Decl renamed from
25363 face_at_buffer_position_no_overlays, and add argument.
25364
253652007-11-09 Richard Stallman <rms@gnu.org>
25366
25367 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25368 to get the base face for an overlay string.
25369
25370 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25371
25372 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25373
25374 * xdisp.c (handle_stop): Move some code out of loop.
25375
253762007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25377
25378 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25379 Fix conversion from Lisp object to ATSUFontID.
25380
253812007-11-09 Jason Rumney <jasonr@gnu.org>
25382
25383 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25384
253852007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25386
25387 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25388 Don't assume regions are aligned to page boundary.
25389 (print_load_command_name): Add LC_UUID if defined.
25390
253912007-11-09 Richard Stallman <rms@gnu.org>
25392
25393 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25394
253952007-11-07 Jason Rumney <jasonr@gnu.org>
25396
25397 * s/windows95.h: Remove.
25398
253992007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25400
25401 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25402 abort with a message on unhandled store_type values.
25403
254042007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25405
25406 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25407 Remove HAVE_X11R5 and HAVE_X11R4.
25408
254092007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25410
25411 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25412
254132007-11-01 Johan Bockgård <bojohan@gnu.org>
25414
25415 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25416 Don't set s->stippled_p here, since it has already been set by
25417 x_set_glyph_string_gc from x_draw_glyph_string.
25418
254192007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25420
25421 * sunfns.c: Remove file.
25422
25423 * m/sun386.h:
25424 * m/sun2.h:
25425 * m/sparc.h: Remove Sun windows code.
25426
254272007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25428
25429 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25430 (init_keyboard): Set current_kboard's window-system to nil.
25431 (tty_read_avail_input): Typo.
25432 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25433
254342007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25435
25436 * s/usg5-4.h:
25437 * s/usg5-3.h:
25438 * s/ptx.h:
25439 * m/is386.h:
25440 * m/ibmps2-aix.h:
25441 * Makefile.in: Remove all mentions of X10.
25442
25443 * dispnew.c (syms_of_display): Don't mention version 10.
25444
254452007-10-28 Juanma Barranquero <lekktu@gmail.com>
25446
25447 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25448 ($(BLD)/abbrev.$(O)): Remove.
25449
254502007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25451
25452 Rewrite abbrev.c in Elisp.
25453 * image.c (Qcount): Don't declare as extern.
25454 (syms_of_image): Initialize and staticpro `Qcount'.
25455 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25456 * emacs.c (main): Don't call syms_of_abbrev.
25457 * Makefile.in (obj): Remove abbrev.o.
25458 (abbrev.o): Remove.
25459 * abbrev.c: Remove.
25460
254612007-10-26 Martin Rudalics <rudalics@gmx.at>
25462
25463 * window.c (window_min_size_2): Don't count header-line.
25464
254652007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25466
25467 * frame.h (struct frame): Move all bit fields after the first bit
25468 field to take advantage of the available space. Group all the
25469 chars together to reduce wasted space due to padding.
25470
254712007-10-26 Juanma Barranquero <lekktu@gmail.com>
25472
25473 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25474
25475 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25476 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25477 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25478 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25479 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25480 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25481 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25482 (last_marked, mark_object_loop_halt): Make static.
25483
25484 * frame.c (syms_of_frame) <delete-frame-functions>:
25485 Fix typo in docstring.
25486
254872007-10-25 Juanma Barranquero <lekktu@gmail.com>
25488
25489 * w32.c (init_environment): Fix tiny memory leak.
25490 (w32_get_resource): Remove unused variable `ok'.
25491
254922007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25493
25494 Make `window-system' into a keyboard-local variable (rather than
25495 frame-local as done originally by multi-tty).
25496
25497 * keyboard.h (struct kboard): Add Vwindow_system.
25498 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25499 (mark_kboards): Mark Vwindow_system.
25500
25501 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25502 (init_display): Don't set the obsolete `window-system' frame-param.
25503
25504 * xterm.c (x_term_init):
25505 * w32term.c (w32_create_terminal):
25506 * term.c (init_tty): Set Vwindow_system.
25507 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25508 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25509
25510 * xfns.c (Fx_create_frame, x_create_tip_frame):
25511 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25512 * macfns.c (Fx_create_frame):
25513 Don't set the obsolete `window-system' frame-param.
25514
25515 * frame.h (Qwindow_system): Remove.
25516 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25517 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25518
255192007-10-24 Richard Stallman <rms@gnu.org>
25520
25521 * frame.c (x_figure_window_size): For fullscreen case,
25522 set USPosition | PPosition without clobbering rest of window_prompting.
25523
25524 * keyboard.c (Fcurrent_idle_time): Doc fix.
25525
25526 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25527
255282007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25529
25530 * process.c (unwind_request_sigio): Only define if __ultrix__.
25531
25532 * callproc.c (child_setup): Remove spurious *.
25533
25534 * lisp.h (Fget_text_property): Declare.
25535 (have_menus_p): Declare it here rather than in sys-dep header files.
25536 * macterm.h (have_menus_p):
25537 * msdos.h (have_menus_p):
25538 * xterm.h (have_menus_p): Remove.
25539
25540 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25541 (Fmake_variable_frame_local): Just check the variable's const-ness
25542 rather than checking nil or t.
25543
255442007-10-22 Jason Rumney <jasonr@gnu.org>
25545
25546 * w32fns.c: Include math.h.
25547 (w32_abort): Declaration moved to nt/config.nt.
25548
25549 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25550 (abort): Redefinition moved to nt/config.nt.
25551
25552 * m/windowsnt.h: Remove.
25553
255542007-10-22 Juanma Barranquero <lekktu@gmail.com>
25555
25556 * emacs.c (Fdump_emacs): Fix typo in message.
25557 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25558 <installation-directory>: Reflow docstring.
25559
255602007-10-22 Juri Linkov <juri@jurta.org>
25561
25562 * minibuf.c: Allow minibuffer default to be a list of default values.
25563 With empty input use the first element of this list as returned default.
25564 (string_to_object)
25565 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25566 (read_minibuf): If defalt is cons, set histstring to its car.
25567 (Fread_string): If default_value is cons, set val to its car.
25568 (Fread_buffer): If def is cons, use its car.
25569 (Fcompleting_read): If defalt is cons, set val to its car.
25570
255712007-10-21 Michael Albinus <michael.albinus@gmx.de>
25572
25573 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25574
255752007-10-20 Juanma Barranquero <lekktu@gmail.com>
25576
25577 * doc.c (Fdocumentation): Check for advice in all cases.
25578
255792007-10-19 Chong Yidong <cyd@stupidchicken.com>
25580
25581 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25582
255832007-10-19 Richard Stallman <rms@gnu.org>
25584
25585 * doc.c (Fdocumentation): Check for and handle an advised function.
25586
255872007-10-19 Juanma Barranquero <lekktu@gmail.com>
25588
25589 * process.c (Fset_process_filter): Doc fix.
25590
255912007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25592
25593 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25594 which caused key-translation-map to applied repeatedly (thus breaking
25595 double-mode).
25596
255972007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25598
25599 * xselect.c (x_own_selection, x_handle_selection_clear)
25600 (x_clear_frame_selections):
25601 * w32menu.c (list_of_panes, list_of_items):
25602 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25603 * textprop.c (validate_plist, interval_has_all_properties)
25604 (interval_has_some_properties, interval_has_some_properties_list)
25605 (add_properties, text_property_list):
25606 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25607 * minibuf.c (Fassoc_string):
25608 * macselect.c (x_own_selection, x_clear_frame_selections)
25609 (Fx_disown_selection_internal):
25610 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25611 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25612
256132007-10-17 Chong Yidong <cyd@stupidchicken.com>
25614
25615 * process.c: Link to libs for calling res_init() if available.
25616 (Fmake_network_process): Call res_init() before getaddrinfo or
25617 gethostbyname, if possible.
25618
256192007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25620
25621 * lread.c (read1): Set pvectype for char_tables.
25622
25623 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25624 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25625 Add type checks.
25626 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25627
25628 * alloc.c (free_misc): Use XMISCTYPE.
25629 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25630
256312007-10-17 Glenn Morris <rgm@gnu.org>
25632
25633 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25634 (syms_of_minibuf): Add Qcompletion_ignore_case.
25635 * dired.c (Qcompletion_ignore_case): Change to external.
25636 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25637 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25638 (Fread_file_name): Use it rather than intern'ing.
25639
25640 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25641 (Fread_coding_system): Ignore case of user input.
25642
256432007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25644
25645 * xdisp.c (handle_display_prop): Ignore display specs after
25646 replacing one when string text is being replaced.
25647 (handle_single_display_spec): Pretend as if characters with display
25648 property haven't been consumed only when buffer text is being replaced.
25649
256502007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25651
25652 * xfns.c (Fx_create_frame, Fx_display_list):
25653 * window.c (window_fixed_size_p, enlarge_window)
25654 (shrink_window_lowest_first):
25655 * macterm.c (init_font_name_table):
25656 * macfns.c (Fx_create_frame, Fx_display_list):
25657 * lread.c (close_load_descs):
25658 * keyboard.c (read_char_x_menu_prompt):
25659 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25660 * coding.c (code_convert_region_unwind): Test the type of an object
25661 rather than just !NILP before extracting data from it.
25662
25663 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25664
25665 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25666 (XMISCANY): New macro.
25667 (XMISCTYPE): Use it.
25668 (struct Lisp_Misc_Any): New type.
25669 (union Lisp_Misc): Use it.
25670 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25671 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25672 (find_symbol_value, set_internal, default_value, Fset_default)
25673 (Fmake_variable_buffer_local, Fmake_local_variable)
25674 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25675 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25676 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25677 * alloc.c (allocate_buffer): Set the size and tag.
25678 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25679 Use XMISCANY.
25680 (die): Follow the GNU convention for error messages.
25681 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25682 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25683 tag any more.
25684 (set_buffer_internal_1):
25685 * frame.c (store_frame_param):
25686 * eval.c (specbind):
25687 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25688
25689 * doc.c (Fsnarf_documentation): Simplify.
25690
256912007-10-14 Juanma Barranquero <lekktu@gmail.com>
25692
25693 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25694 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25695
256962007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25697
25698 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25699
257002007-10-14 Juanma Barranquero <lekktu@gmail.com>
25701
25702 * eval.c (do_autoload): Don't save autoloads.
25703
25704 * data.c (Ffset): Save autoload of the function being set.
25705
257062007-10-07 John Paul Wallington <jpw@pobox.com>
25707
25708 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25709 parameter before setting up faces.
25710
257112007-10-13 Eli Zaretskii <eliz@gnu.org>
25712
25713 * ccl.c (Fregister_code_conversion_map):
25714 * keyboard.c (append_tool_bar_item): Reformat last change.
25715
25716 * lisp.h (eabs): Rename from `abs'. All callers changed.
25717
257182007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25719
25720 * buffer.c (add_overlay_mod_hooklist):
25721 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25722 * fontset.c (make_fontset):
25723 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25724 (append_tool_bar_item):
25725 * macmenu.c (grow_menu_items):
25726 * w32menu.c (grow_menu_items):
25727 * xmenu.c (grow_menu_items): Use larger_vector.
25728
257292007-10-13 Eli Zaretskii <eliz@gnu.org>
25730
25731 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25732 selected frame'' on MSDOS).
25733
257342007-10-12 Martin Rudalics <rudalics@gmx.at>
25735
25736 * frame.c (Qexplicit_name): New variable.
25737 (x_report_frame_params): Report it in parameter alist.
25738 (syms_of_frame): Intern and staticpro it.
25739
257402007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25741
25742 * macfns.c (x_create_tip_frame): Set terminal for frame.
25743
257442007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25745
25746 * frame.c (Qenvironment): Remove.
25747 (syms_of_frame) <Qenvironment>: Don't initialize.
25748 (Fdelete_frame): Don't treat the `environment' param specially.
25749 * frame.h (Qenvironment): Don't declare.
25750 * callproc.c (set_initial_environment): Don't set unused frame param.
25751
25752 * frame.c (Fframe_with_environment): Remove.
25753 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25754
25755 * lisp.h (Fframe_with_environment): Don't declare.
25756
257572007-10-10 Juanma Barranquero <lekktu@gmail.com>
25758
25759 * indent.c (indent_tabs_mode, last_known_column)
25760 (last_known_column_modified): Make static.
25761 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25762
257632007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25764
25765 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25766
257672007-10-09 Jason Rumney <jasonr@gnu.org>
25768
25769 * w32term.c (x_set_window_size): Disable code that attempts to tell
25770 Lisp code about a size change before it actually happens.
25771
257722007-10-09 Richard Stallman <rms@gnu.org>
25773
25774 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25775 return HANDLED_RETURN.
25776
257772007-10-08 Martin Rudalics <rudalics@gmx.at>
25778
25779 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25780 when there's an unread command event.
25781
25782 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25783 window autoselection act appropriately when leaving selected frame.
25784 (syms_of_frame): Initialize focus_follows_mouse.
25785 * frame.h (focus_follows_mouse): Extern it.
25786 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25787 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25788 * msdos.c (dos_rawgetc): Likewise.
25789 * w32term.c (w32_read_socket): Likewise.
25790 * xterm.c (handle_one_xevent): Likewise.
25791 * xdisp.c (syms_of_xdisp): In doc-string of
25792 mouse-autoselect-window mention focus-follows-mouse.
25793
257942007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25795
25796 * macterm.c (mac_load_query_font): Fix missing return value.
25797 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25798 Add BLOCK_INPUT.
25799
258002007-10-08 Richard Stallman <rms@gnu.org>
25801
25802 * xdisp.c (get_window_cursor_type): Implement documented behavior
25803 for cursor-in-non-selected-windows = t.
25804
258052007-10-08 Jason Rumney <jasonr@gnu.org>
25806
25807 * w32.c (w32_get_resource): Always close registry keys.
25808
258092007-10-08 Jason Rumney <jasonr@gnu.org>
25810
25811 * makefile.w32-in (LIBS): Add COMCTL32.
25812
25813 * w32fns.c (globals_of_w32fns): Init common controls.
25814
258152007-10-08 Richard Stallman <rms@gnu.org>
25816
25817 * image.c (our_memory_buffer): Rename from omfib_buffer.
25818
258192007-10-08 Richard Stallman <rms@gnu.org>
25820
25821 * buffer.c (Foverlays_at): Doc fix.
25822
258232007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25824
25825 * fns.c (Fplist_put): Preserve uneven tail data.
25826
258272007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25828
25829 * termhooks.h (enum event_kind): Remove trailing comma.
25830
25831 * frame.h (enum): Remove trailing comma.
25832
258332007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25834
25835 * w32proc.c (delete_child): Don't terminate threads of zombies.
25836
258372007-10-08 Martin Rudalics <rudalics@gmx.at>
25838
25839 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25840
25841 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25842 last-repeatable-command.
25843 (init_kboard): Initialize Vlast_repeatable_command.
25844 (command_loop_1): Set it to real_this_command unless that was
25845 bound to an input event.
25846 (mark_kboards): Mark it.
25847
258482007-10-08 Richard Stallman <rms@gnu.org>
25849
25850 * eval.c (condition-case): Doc fix.
25851
258522007-10-08 Masatake YAMATO <jet@gyve.org>
25853
25854 * xfaces.c (tty_supports_face_attributes_p): Fix code
25855 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25856 was copied and not edited.
25857
258582007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25859
25860 Add new `input-decode-map' keymap and use it for terminal
25861 escape sequences.
25862 * keyboard.h (struct kboard): Add Vinput_decode_map.
25863 Remove Vlocal_key_translation_map.
25864 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25865 (init_kboard): Init input-decode-map.
25866 Replace local-key-translation-map back with key-translation-map.
25867 (syms_of_keyboard): Declare input-decode-map.
25868 Remove local-key-translation-map. Update docstrings.
25869 (mark_kboards): Mark Vinput_decode_map.
25870 Don't mark Vlocal_key_translation_map.
25871 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25872 Replace local-key-translation-map back with key-translation-map.
25873 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25874 Bind in input-decode-map rather than function-key-map.
25875
25876 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25877 This was made redundant by the previous introduction of XSETPVECTYPE.
25878
258792007-10-09 Richard Stallman <rms@gnu.org>
25880
25881 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25882
258832007-09-29 Richard Stallman <rms@gnu.org>
25884
25885 * eval.c (internal_condition_case_2, internal_condition_case_1)
25886 (internal_condition_case): Reenable abort if x_catching_errors ()
25887 to see if that really happens and why.
25888
258892007-10-06 Andreas Schwab <schwab@suse.de>
25890
25891 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25892
258932007-10-04 Juanma Barranquero <lekktu@gmail.com>
25894
25895 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25896
258972007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25898
25899 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25900
259012007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25902
25903 * window.h (struct window):
25904 * window.c (struct save_window_data, struct saved_window):
25905 * termhooks.h (struct terminal):
25906 * process.h (struct Lisp_Process):
25907 * frame.h (struct frame):
25908 * buffer.h (struct buffer):
25909 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25910 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25911 The size field of (pseudo)vectors is now unsigned.
25912 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25913
25914 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25915 Turn `count' into an integer.
25916
25917 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25918 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25919 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25920 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25921 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25922
25923 * alloc.c (allocate_pseudovector): New fun.
25924 (ALLOCATE_PSEUDOVECTOR): New macro.
25925 (allocate_window, allocate_terminal, allocate_frame)
25926 (allocate_process): Use it.
25927 (mark_vectorlike): New function.
25928 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25929 (mark_terminals): Use it.
25930 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25931 (Fmake_byte_code): Use XSETPVECTYPE.
25932
25933 * frame.c (Fframe_parameters): Minor simplification.
25934
25935 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25936
25937 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25938
25939 * buffer.c (Fget_buffer_create, init_buffer_once):
25940 * lread.c (defsubr):
25941 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25942
25943 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25944 defined differently in the m/*.h files.
25945 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25946 (XSETPVECTYPE): New macro.
25947 (XSETPSEUDOVECTOR): Use it.
25948
25949 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25950 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25951
25952 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25953 * lread.c (defvar_per_buffer):
25954 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25955
25956 * window.c (candidate_window_p): Only consider as visible frames that
25957 are on the same terminal.
25958
25959 * m/ibms390x.h (MARKBIT): Remove unused macro.
25960
259612007-10-01 Juanma Barranquero <lekktu@gmail.com>
25962
25963 * lread.c (Fload): Fix typo in docstring.
25964
259652007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25966
25967 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25968 of a non-zero value can't yield zero.
25969
259702007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25971
25972 * term.c (term_clear_mouse_face, term_mouse_highlight)
25973 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25974
25975 * print.c (safe_debug_print): Use XHASH.
25976
25977 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25978 Lisp elements such as tags.
25979 (XHASH): New macro.
25980 (EQ): Use it.
25981 (SREF, SSET, STRING_COPYIN): Use SDATA.
25982 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25983
25984 * alloc.c (mark_terminal): Remove left-over declaration.
25985 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25986 (allocate_vectorlike): Remove type argument. Adjust callers.
25987 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25988 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25989
25990 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25991 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25992 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25993 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25994 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25995 Use them.
25996
25997 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25998 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25999 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
26000
260012007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
26002
26003 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
26004 loaded by default.
26005
260062007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
26007
26008 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
26009 on this tty.
26010 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
26011
26012 * term.c (mouse_face_window): Rename from Qmouse_face_window.
26013 Update all users.
26014 (handle_one_term_event): Use Gpm_DrawPointer.
26015 (Fgpm_mouse_start): Rename from Fterm_open_connection.
26016 Signal errors instead of returning nil. Always return nil.
26017 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
26018 Make it a noop if gpm-mouse was not activated.
26019 (syms_of_term): Update names.
26020
260212007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
26022
26023 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
26024 (init_sys_modes): Check that gpm_tty is the current tty.
26025
26026 * alloc.c (allocate_terminal): Set the vector size to only count the
26027 lisp fields. Initialize those to nil.
26028 (mark_object): Don't treat terminals specially.
26029 (mark_terminal): Remove.
26030 (mark_terminals): Use mark_object instead.
26031
26032 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
26033 the GC to the beginning.
26034
26035 * indent.h:
26036 * indent.c: Use EMACS_INT for ints coming from Elisp data.
26037
26038 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
26039
260402007-09-25 Jason Rumney <jasonr@gnu.org>
26041
26042 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
26043
26044 * w32console.c (create_w32cons_output): Remove.
26045
26046 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
26047
26048 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
26049 (reset_sys_modes): Use reset_terminal_modes_hook.
26050
260512007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
26052
26053 * eval.c (do_autoload): Don't output any message.
26054
260552007-09-24 Juri Linkov <juri@jurta.org>
26056
26057 * emacs.c (standard_args): Change priority of "--no-splash"
26058 from 40 to 3. Add "--no-desktop" with the same priority.
26059
260602007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
26061
26062 * alloc.c (gc_sweep): Check cons cell mark bits word by word
26063 and optimize the case where they are all 1.
26064
260652007-09-23 Johannes Weiner <hannes@saeurebad.de>
26066
26067 * lisp.h (abs): Define if not defined.
26068 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
26069 Don't define `abs', since it's defined in lisp.h.
26070
260712007-09-22 Eli Zaretskii <eliz@gnu.org>
26072
26073 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
26074 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
26075 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
26076 (init_tty): Use DEV_TTY instead of "/dev/tty".
26077 [WINDOWSNT]: No need to protect from NAME arg being null.
26078
260792007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
26080
26081 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
26082 up the tty state.
26083
260842007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26085
26086 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
26087 (gpm_tty): Change its type.
26088 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
26089 (gpm_tty): Change its type and initialize it.
26090 (Fterm_open_connection): Check the frame is indeed a tty.
26091 Use the new gpm_tty.
26092 (Fterm_close_connection): Use the new gpm_tty.
26093 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
26094 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
26095
260962007-09-21 Juanma Barranquero <lekktu@gmail.com>
26097
26098 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
26099 underline_color, to draw strike-through.
26100
261012007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26102
26103 * lisp.h (allocate_terminal): Declare.
26104
26105 * window.c (candidate_window_p): Consider frames that are being placed
26106 by the user as somewhere between visible and iconified.
26107 (window_loop): Prefer windows on the current frame.
26108 (Fselect_window): Move the use of select-frame to the beginning so we
26109 can just delegate all the work (it'll call us back anyway).
26110
26111 * frame.c (Qdisplay_environment_variable):
26112 * frame.h (Qdisplay_environment_variable): Delete.
26113
26114 * .gdbinit (xbacktrace): Print the arg's address rather than the value
26115 of the first arg, since that value may be a union.
26116
26117 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
26118 parameter rather than Qdisplay_environment_variable. If all else
26119 fails, look for DISPLAY in initial-environment.
26120
261212007-09-21 Glenn Morris <rgm@gnu.org>
26122
26123 * Makefile.in (emacstool): Remove target.
26124 (lisp, shortlisp): Remove termdev.elc.
26125
261262007-09-21 Markus Triska <markus.triska@gmx.at>
26127
26128 * xterm.c (x_delete_display): Compile session management conditionally.
26129
261302007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
26131
26132 * callproc.c (getenv_internal_1): New function.
26133 (getenv_internal): Use it.
26134 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
26135
26136 * terminal.c (get_terminal): Don't accept ints to represent terminals.
26137 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
26138 (Fset_terminal_parameter): Work with dead terminals as well.
26139 (Fmodify_terminal_parameters): Remove.
26140
26141 * terminal.c (get_terminal): Handle terminals.
26142 Make sure the terminal returned is live.
26143 (create_terminal): Use allocate_terminal.
26144 (mark_terminals): Move to alloc.c.
26145 (delete_terminal): Use terminal->name as liveness status.
26146 NULL out fields after freeing their contents.
26147 Don't deallocate the object.
26148 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
26149 rather than an int.
26150 (Fterminal_live_p): Accept non-integer arguments.
26151 (Fterminal_list): Return terminal objects rather than an ints.
26152
26153 * alloc.c (enum mem_type): New member for `terminal' objects.
26154 (allocate_terminal): New function.
26155 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
26156 Handle terminals.
26157 (mark_terminal): New fun.
26158 (mark_terminals): Move from terminal.c.
26159
26160 * term.c (get_tty_terminal): Don't treat output_initial specially.
26161 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
26162 (delete_tty): Use terminal->name as liveness status.
26163
26164 * termhooks.h (struct terminal): Make it into a pseudovector.
26165 Remove `deleted' replaced by checking `name's nullness.
26166
26167 * print.c (print_object): Handle terminals.
26168
26169 * lisp.h (enum pvec_type): New `terminal' pseudovector.
26170 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
26171
26172 * frame.c (make_terminal_frame):
26173 * keyboard.c (tty_read_avail_input):
26174 * w32term.c (x_delete_terminal):
26175 * xfns.c (Fx_create_frame, x_create_tip_frame):
26176 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
26177
261782007-09-20 Glenn Morris <rgm@gnu.org>
26179
26180 * process.c (Fmake_network_process): Doc fix.
26181
261822007-09-19 Jason Rumney <jasonr@gnu.org>
26183
26184 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
26185
261862007-09-19 Michaël Cadilhac <michael@cadilhac.name>
26187
26188 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
26189 Fix a C warning regarding variable constness.
26190
26191 * xterm.c (handle_one_xevent): Fix a C warning.
26192
261932007-09-18 Jason Rumney <jasonr@gnu.org>
26194
26195 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
26196
261972007-09-17 Jan Djärv <jan.h.d@swipnet.se>
26198
26199 * gtkutil.c (gdpy_def): New variable.
26200 (xg_initialize): Initialize gdpy_def.
26201 (xg_display_close): If no other display exists, set gdpy_def to a
26202 new connection.
26203
262042007-09-16 Jan Djärv <jan.h.d@swipnet.se>
26205
26206 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
26207 when we have no file name for the icon.
26208 (xg_tool_bar_expose_callback): Remove.
26209 (xg_create_tool_bar): Don't connect expose signal to
26210 xg_tool_bar_expose_callback.
26211 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
26212
262132007-09-16 Andreas Schwab <schwab@suse.de>
26214
26215 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
26216 values instead of zapping them.
26217
262182007-09-14 Glenn Morris <rgm@gnu.org>
26219
26220 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
26221 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
26222 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
26223 scope and rename to omfib_buffer for clarity.
26224 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
26225
262262007-09-14 Kenichi Handa <handa@m17n.org>
26227
26228 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
26229
262302007-09-13 Jason Rumney <jasonr@gnu.org>
26231
26232 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
26233
26234 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
26235
26236 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
26237 (mac_term_init): Call here instead, passing rif.
26238
262392007-09-13 Glenn Morris <rgm@gnu.org>
26240
26241 * s/hpux.h: No longer define `static' as nothing.
26242
262432007-09-13 Johan Bockgård <bojohan@gnu.org>
26244
26245 * callint.c (Fcall_interactively): Remove unused var `fun'.
26246
262472007-09-12 Romain Francoise <romain@orebokech.com>
26248
26249 * window.c (prefer_window_split_horizontally, display_buffer):
26250 Revert 2007-09-08 change.
26251
262522007-09-12 Glenn Morris <rgm@gnu.org>
26253
26254 * alloca.c: Remove file.
26255 * Makefile.in (alloca): Do not undef.
26256 (allocaobj, alloca.o): Remove.
26257 (otherobj): Remove allocaobj.
26258 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
26259 * regex.c (C_ALLOCA): Remove all references and code that was only
26260 used when this was defined.
26261 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
26262 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
26263 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
26264
26265 * Makefile.in (SOURCES, unlock, relock): Delete.
26266
26267 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
26268 (menu_grab_callback): All uses changed.
26269
26270 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
26271 (x_reply_selection_request): All uses changed.
26272
262732007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
26274
26275 * lread.c (load_warn_old_style_backquotes): Change message to look
26276 better when it appears in the middle of byte-compiler messages.
26277
262782007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
26279
26280 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
26281
26282 * xterm.c (x_create_terminal): Add comment.
26283
26284 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26285
262862007-09-10 Richard Stallman <rms@gnu.org>
26287
26288 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26289
262902007-09-10 Michaël Cadilhac <michael@cadilhac.name>
26291
26292 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26293 (DEFUN): Document `intspec', use it instead of `prompt'.
26294
26295 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26296
26297 * data.c (Finteractive_form): If the interactive specification starts
26298 with a `(', use it as a Lisp form.
26299
26300 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26301 name and file modes.
26302
26303 * callint.c (Fcall_interactively): Comment fixes.
26304
263052007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
26306
26307 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26308 and compiled functions.
26309
263102007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
26311
26312 * window.c (prefer_window_split_horizontally): New variable.
26313 (display_buffer): Consider splitting window horizontally depending
26314 on prefer_window_split_horizontally.
26315
263162007-09-08 Eli Zaretskii <eliz@gnu.org>
26317
26318 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26319
263202007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26321
26322 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26323
26324 * frame.c (x_set_frame_parameters): Check number is positive before
26325 using XFASTINT.
26326
26327 * window.c (freeze_window_start): Don't presume selected_window holds
26328 a window object.
26329 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26330
263312007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26332
26333 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26334
263352007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26336
26337 * window.c (Vsplit_window_preferred_function): New var.
26338 (Fdisplay_buffer): Use it.
26339 (syms_of_window): Export, and initialize it.
26340
263412007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26342
26343 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26344
263452007-09-06 Glenn Morris <rgm@gnu.org>
26346
26347 * gtkutil.c (menu_grab_callback) <cnt>:
26348 * xselect.c (x_reply_selection_request) <cnt>: Move static
26349 variable to file scope.
26350
263512007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26352
26353 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26354 consistent values of selected_frame and selected_window.
26355
263562007-09-04 Jason Rumney <jasonr@gnu.org>
26357
26358 * w32console.c (initialize_w32_display): Zero unused hooks.
26359
263602007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26361
26362 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26363 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26364
263652007-09-04 Jason Rumney <jasonr@gnu.org>
26366
26367 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26368 in w32console.c. Set up input. Remove XXX comments that have been
26369 confirmed as correct.
26370
26371 * s/ms-w32.h (MULTI_KBOARD): Define.
26372
26373 * w32console.c (one_and_only_w32cons): Remove.
26374 (initialize_w32_display): Take terminal argument.
26375
26376 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26377 initialize_w32_display.
26378 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26379
26380 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26381
26382 * keyboard.c (discard_mouse_events): Discard it.
26383 (make_lispy_event): Translate it to a lisp event.
26384 (lispy_wheel_names): Add wheel-left and right events.
26385 (syms_of_keyboard): Enlarge wheel_syms.
26386
26387 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26388 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26389
26390 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26391
26392 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26393 from WM_MOUSEHWHEEL.
26394 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26395
26396 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26397 terminal.
26398
26399 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26400 keyboard for the terminal.
26401
264022007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26403
26404 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26405 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26406 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26407 and resume-tty-function to resume-tty-hook.
26408 (Fsuspend_tty, Fresume_tty): Use new names.
26409
264102007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26411
26412 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26413 if it starts with "n:".
26414
264152007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26416
26417 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26418
264192007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26420
26421 * frame.h:
26422 * frame.c (Qterm_environment_variable): Remove.
26423 (syms_of_frame): Don't init and staticpro it.
26424
26425 * callproc.c (getenv_internal): Remove special case for $TERM.
26426
26427 * callproc.c (Vinitial_environment): New variable.
26428 (set_initial_environment): Initialize it.
26429 (syms_of_callproc): Declare it.
26430 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26431 TERM under which a process runs is never related to the TERM in which
26432 Emacs is running.
26433
264342007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26435
26436 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26437 * s/darwin.h: ... do it here.
26438
264392007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26440
26441 * lisp.h (set_initial_environment): Rename from set_global_environment.
26442
26443 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26444 removed by mistake on the multi-tty branch.
26445
26446 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26447 (Fmodify_frame_parameters): Return a value.
26448
26449 * image.c (png_load): Comment-out var only used in commented-out code.
26450
26451 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26452 before passing it to mark_object.
26453
26454 * xfaces.c (internal_resolve_face_name): Return a value.
26455 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26456
26457 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26458 (x_icon): Comment-out var only used in commented-out code.
26459
264602007-08-29 Romain Francoise <romain@orebokech.com>
26461
26462 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26463 QUIT hasn't been provided.
26464
264652007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26466
26467 * callproc.c (child_setup, getenv_internal): Use the
26468 display-environment-variable and term-environment-variable frame params.
26469 (set_initial_environment): Initialise Vprocess_environment.
26470
26471 * config.in: Disable multi-keyboard support on a mac.
26472
26473 * frame.c (Qterm_environment_variable)
26474 (Qdisplay_environment_variable): New variables.
26475 (syms_of_frame): Intern and staticpro them.
26476 (Fmake_terminal_frame): Disable output method test.
26477
26478 * frame.h: Declare them here.
26479
26480 * macfns.c (x_set_mouse_color): Get rif from the frame.
26481 (x_set_tool_bar_lines): Don't use updating_frame.
26482 (mac_window): Add 2 new parameters for consistency with other systems.
26483 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26484 frame parameters following what is done in X11 and w32. Don't use
26485 FRAME_MAC_DISPLAY_INFO.
26486 (Fx_open_connection, start_hourglass): Remove window-system check.
26487 (x_create_tip_frame): Get the keyboard from the terminal.
26488
26489 * macmenu.c: Reorder includes.
26490 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26491
26492 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26493 terminal parameter.
26494 (x_clear_frame): Add a frame parameter.
26495 (note_mouse_movement): Get rif from the frame.
26496 (mac_term_init): Initialize the terminal.
26497 (mac_initialize): Make static and move terminal initialization ...
26498 (mac_create_terminal): ... to this new function.
26499
26500 * macterm.h (struct mac_display_info): Add terminal.
26501 (mac_initialize): Delete declaration.
26502
26503 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26504
26505 * sysdep.c: Comment out text after #endif.
26506
26507 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26508 is defined. Better initialize ttys in windows. Use terminal
26509 specific mouse_position_hook.
26510
26511 * termhooks.h (union display_info): Add mac_display_info.
26512
26513 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26514 Set the default minibuffer frame, window_system and the rest of the
26515 frame parameters following what is done in X11.
26516
26517 * w32term.c (w32_initialize): Make static.
26518
26519 * xselect.c (x_handle_selection_clear): Only access
26520 terminal->kboard when MULTI_KBOARD is defined.
26521
26522 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26523 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26524
265252007-08-29 Jason Rumney <jasonr@gnu.org>
26526
26527 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26528 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26529
26530 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26531 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26532
26533 * keyboard.c (restore_kboard_configuration): Only define when
26534 MULTI_KBOARD defined.
26535
26536 * makefile.w32-in: Update dependancies from Makefile.in.
26537 (OBJ1): Add terminal.$(O)
26538
26539 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26540 Don't define function body.
26541 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26542
26543 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26544
26545 * w32.c (request_sigio, unrequest_sigio): Remove.
26546
26547 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26548 (w32con_clear_frame, w32con_clear_end_of_line)
26549 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26550 (w32con_delete_glyphs, w32con_set_terminal_window)
26551 (scroll_line, w32_sys_ring_bell): Add frame arg.
26552 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26553 Add terminal arg.
26554 (PICK_FRAME): Remove.
26555 (w32con_write_glyphs): Use frame specific terminal coding.
26556 (one_and_only_w32cons): New global variable.
26557 (initialize_w32_display): Use it for storing hooks.
26558 (create_w32cons_output): New function.
26559
26560 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26561 arg a frame.
26562
26563 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26564 Set window_system.
26565 (x_set_tool_bar_lines): Don't use updating_frame.
26566 (Fx_create_frame): Set terminal and ref count.
26567 (Fx_open_connection): Remove window-system check.
26568
26569 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26570
26571 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26572 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26573 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26574 Add frame arg.
26575 (x_delete_terminal, w32_create_terminal): New functions.
26576 (w32_term_init): Create a terminal.
26577 (w32_initialize): Move terminal specific initialization to
26578 w32_create_terminal.
26579
26580 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26581 (w32_clear_rect, w32_clear_area): Use background from frame.
26582 (w32_display_info): Add terminal.
26583 (w32_sys_ring_bell, x_delete_display): Declare here.
26584
26585 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26586
26587 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26588
265892007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26590
26591 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26592 Fix get_named_tty calls for the controlling tty.
26593
265942007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26595
194d44e7 26596 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
26597
265982007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26599
26600 * term.c (tty_insert_glyphs): Add missing first parameter.
26601
266022007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26603
26604 * buffer.c (Fbuffer_list, Fbury_buffer):
26605 Take frame->buried_buffer_list into account.
26606
26607 * cm.c (current_tty): New variable, for cmputc().
26608 (cmputc): Use it.
26609 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26610 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26611 (cmgoto): Add tty parameter. Pass it on to calccost().
26612 Use emacs_tputs() instead of tputs().
26613
26614 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26615 tputs().
26616 (current_tty): New variable, for cmputc().
26617 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26618
26619 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26620 (internal_condition_case, internal_condition_case_1)
26621 (internal_condition_case_2): Don't abort when x_catching_errors.
26622
26623 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26624 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26625 prevent crashes caused by bogus longjmps in read_char.
26626
26627 * keymap.h (Fset_keymap_parent): Add EXFUN.
26628
26629 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26630 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26631 Remove redundant definition.
26632
26633 * macfns.c (x_set_mouse_color, x_make_gc):
26634 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26635
26636 * w32term.c (x_free_frame_resources):
26637 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26638 (w32_initialize): Use the accessor macros for terminal characteristics.
26639
26640 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26641 Use the accessor macros for terminal characteristics.
26642 * msdos.c (internal_terminal_init): Use the accessor macros for
26643 terminal characteristics.
26644 (ScreenVisualBell, internal_terminal_init):
26645 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26646
26647 * termopts.h (no_redraw_on_reenter): Declare.
26648
26649 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26650 (mark_terminals, mark_ttys): Declare.
26651 (Fgarbage_collect): Call them.
26652 (mark_object): Mark buried_buffer_list.
26653
26654 * prefix-args.c: Include stdlib.h for exit.
26655
26656 * syssignal.h: Add comment.
26657
26658 * indent.c: Include stdio.h.
26659
26660 * window.h (Vinitial_window_system): Declare.
26661 (Vwindow_system): Delete declaration.
26662
26663 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26664
26665 * image.c (lookup_image): Don't initialize `c' until the xasserts
26666 have been run.
26667
26668 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26669 FRAME_FOREGROUND_PIXEL.
26670
26671 * print.c (print_preprocess): Don't lose print_depth levels while
26672 iterating.
26673
26674 * widget.c (update_from_various_frame_slots):
26675 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26676
26677 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26678 frames.
26679 (window_internal_height): Remove bogus make_number call.
26680 (init_window_once): Call make_terminal_frame with two zero parameters.
26681
26682 * fileio.c (Fread_file_name): Update comment.
26683
26684 * callint.c (Fcall_interactively):
26685 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26686 Make sure it is correctly unwound.
26687
26688 * xsmfns.c (x_session_close): New function.
26689
26690 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26691 Delete declarations.
26692
26693 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26694 (x_output): Remove background_pixel and foreground_pixel fields.
26695 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26696 (x_delete_device, x_session_close): Declare.
26697
26698 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26699 (read_filtered_event): Call `read_char' with a local
26700 `wrong_kboard_jmpbuf'.
26701
26702 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26703 Don't call single_kboard_state. Use FRAME_RIF.
26704
26705 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26706 systems.
26707
26708 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26709 (Fframe_with_environment, Fset_input_meta_mode)
26710 (Fset_quit_char): EXFUN.
26711 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26712 (init_sys_modes, reset_sys_modes): Update prototypes.
26713 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26714
26715 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26716 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26717 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26718 Delete declarations.
26719 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26720 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26721 New declarations.
26722
26723 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26724 already does that during init_display(). Call syms_of_keymap
26725 before syms_of_keyboard. Call `syms_of_terminal'.
26726 Call set_initial_environment, not set_process_environment.
26727 (shut_down_emacs): Call reset_all_sys_modes() instead of
26728 reset_sys_modes().
26729
26730 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26731 (internal_resolve_face_name, resolve_face_name_error): New functions.
26732 (resolve_face_name): Protect against loops and errors thrown by Fget.
26733 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26734 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26735
26736 * scroll.c: Replace CURTTY() with local variables throughout the
26737 file (where applicable).
26738 (calculate_scrolling, calculate_direct_scrolling)
26739 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26740 characteristics.
26741
26742 * keymap.c (Vfunction_key_map): Remove.
26743 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26744 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26745 (Vkey_translation_map): Remove.
26746 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26747 (Fdescribe_buffer_bindings)
26748 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26749 Update for terminal-local key-translation-map.
26750
26751 * Makefile.in (callproc.o): Update dependencies.
26752 (lisp, shortlisp): Add termdev.elc.
26753 (obj): Add terminal.o.
26754 (terminal.o): Add dependencies.
26755 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26756 (data.o, fns.o): Add termhooks.h dependency.
26757 (SOME_MACHINE_LISP): Add dnd.elc.
26758 (minibuf.o): Fix typo.
26759 Update dependencies.
26760
26761 * data.c (do_symval_forwarding, store_symval_forwarding)
26762 (find_symbol_value): Use the selected frame's keyboard, not
26763 current_kboard.
26764
26765 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26766 Vwindow_system.
26767
26768 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26769 Fmenu_bar_open.
26770 (syms_of_xmenu): Update defsubr.
26771 (mouse_position_for_popup, Fx_popup_menu)
26772 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26773 (set_frame_menubar, free_frame_menubar)
b97439ce 26774 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
26775 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26776 an X frame.
26777
26778 * xselect.c (x_own_selection): Abort if not an X frame.
26779 (some_frame_on_display): Check if it is an X frame.
26780 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26781
26782 * coding.c: Include frame.h and termhooks.h.
26783 (terminal_coding, keyboard_coding): Delete.
26784 (Fset_terminal_coding_system_internal)
26785 (Fset_keyboard_coding_system_internal)
26786 (Fkeyboard_coding_system)
26787 (Fterminal_coding_system): Add a terminal parameter.
26788 Get terminal_coding from the terminal.
26789 (init_coding_once): Don't call setup_coding_system here.
26790
26791 * dispextern.h (set_scroll_region, turn_off_insert)
26792 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26793 (tty_clear_end_of_line, tty_setup_colors)
26794 (delete_tty, updating_frame)
26795 (produce_special_glyphs, produce_glyphs, write_glyphs)
26796 (insert_glyphs): Remove.
26797 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26798 (tty_turn_off_highlight, get_tty_size): Add declaration.
26799 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26800
26801 * frame.h (enum output_method): Add output_initial.
26802 (struct x_output): Delete.
26803 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26804 Access foreground_pixel and background_pixel directly from the frame.
26805 (tty_display): Delete.
26806 (struct frame): Add buried_buffer_list, foreground_pixel,
26807 background_pixel and terminal. Delete kboard.
26808 (union output_data): Add tty.
26809 (FRAME_KBOARD): Get the kboard from the terminal.
26810 (FRAME_INITIAL_P): New macro.
26811 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26812 (Qterm_environment_variable, Qdisplay_environment_variable)
26813 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26814 New declarations.
26815
26816 * termchar.h (tty_output, tty_display_info): New structures.
26817 (tty_list): Declare.
26818 (FRAME_TTY, CURTTY): New macros.
26819 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26820 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26821 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26822 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26823
26824 * callproc.c: Include frame.h and termhooks.h, for terminal
26825 parameters.
26826 (add_env): New function.
26827 (child_setup): Use it.
26828 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26829 (getenv_internal): Fix get_terminal_param call.
26830 (Fgetenv_internal, egetenv): Update doc.
26831 (syms_of_callproc): Initialize Vprocess_environment to nil.
26832 Register and initialize them. Remove obsolete defvars. Update doc
26833 strings.
26834 (child_setup): Handle Vlocal_environment_variables.
26835 (getenv_internal): Add terminal parameter.
26836 Handle Vlocal_environment_variables.
26837 (Fgetenv_internal): Add terminal parameter.
26838 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26839 environment in a frame (not terminal) parameter. Update doc strings.
26840 (set_initial_environment): Rename from set_global_environment.
26841 Store Emacs environment in initial frame parameter.
26842
26843 * xdisp.c (redisplay_internal): Update references to
26844 `previous_terminal_frame'.
26845 (display_mode_line, Fformat_mode_line): Replace calls to
26846 `push_frame_kboard' with `push_kboard'.
26847 (get_glyph_string_clip_rects): Add extra parentheses and
26848 braces to prevent compiler warnings.
26849 (calc_pixel_width_or_height): Add xassert to check that the
26850 frame is alive. Don't call `lookup_image' on a termcap frame.
26851 (message2_nolog, message3_nolog, redisplay_internal)
26852 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26853 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26854 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26855 (Fx_display_pixel_width, Fx_display_pixel_height)
26856 (Fx_display_planes, Fx_display_color_cells)
26857 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26858 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26859 (Fx_display_backing_store, Fx_display_visual_class)
26860 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26861 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26862
26863 * xfns.c (x_set_foreground_color x_set_background_color)
26864 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26865 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26866 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26867 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26868 terminal that is being deleted.
26869 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26870 frame parameter, and make sure it overrides any user-supplied setting.
26871 (Fx_close_connection, Fx_synchronize): Unify argument names with
26872 the rest of the DEFUNs.
26873
26874 * dispnew.c (Fsend_string_to_terminal): Update call to
26875 `get_tty_terminal'.
26876 (Fredraw_frame, Fsend_string_to_terminal)
26877 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26878 FRAME_TERMCAP_P and FRAME_TTY.
26879 (window_change_signal): Don't believe width/height values that are
26880 impossibly small.
26881 (Vinitial_window_system): Rename from Vwindow_system.
26882 (termscript, Wcm, rif): Delete.
26883
26884 * termhooks.h (struct terminal): New struct containing the
26885 previously global text display hooks and new members NAME,
26886 DELETED and PARAM_ALIST.
26887 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26888 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26889 (FRAME_RIF): New macros.
26890 (get_terminal_param, get_device): New declarations.
26891 (termscript): Delete declaration.
26892
26893 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26894 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26895 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26896 FRAME_FOREGROUND_PIXEL.
26897 (x_fully_uncatch_errors): Disable definition.
26898 (x_scroll_bar_expose): Fix reference to foreground pixel.
26899 (XTread_socket): Disable loop on all X displays.
26900 (x_delete_terminal): Don't set terminal->deleted and let
26901 delete_terminal delete the frames on the terminal.
26902 (x_delete_display): Doc update to reflect changes in
26903 delete_terminal.
26904 (x_display_info) <terminal>: Move member earlier in the struct.
26905 (deleting_tty): Remove old variable.
26906 (Fsuspend_tty): Call clear_tty_hooks.
26907 (Fresume_tty, init_tty): Call set_tty_hooks.
26908 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26909 errors on X frames.
26910 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26911 (handle_one_xevent): Initialize `f' to NULL.
26912 (x_delete_terminal, x_create_terminal): New functions.
26913 (XTset_terminal_modes, XTreset_terminal_modes)
26914 (XTread_socket, x_connection_closed, x_term_init)
26915 (x_term_init, x_delete_display): Add terminal parameter.
26916 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26917 X connections.
26918
26919 * frame.c: Include termchar.h.
26920 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26921 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26922 (Qdisplay_environment_variable): New vars.
26923 (Fframep): Deal with output_initial.
26924 (Fframe-live-p): Doc fix.
26925 (Fwindow-system): New function.
26926 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26927 (make_terminal_frame): Don't create frames on a terminal that is
26928 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26929 (store_frame_param): Check for found_for_frame before calling XFRAME.
26930 (Fmake_terminal_frame): Handle NULL tty names correctly.
26931 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26932 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26933 frames to refer to a deleted frame in their 'environment parameter.
26934 (Fframe_with_environment): New function.
26935 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26936 (get_future_frame_param): New function.
26937 (Fmake_terminal_frame): Use it.
26938 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26939
26940 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26941 * sysdep.c (reset_sys_modes): Update for renames.
26942
26943 * keyboard.c (tty_read_avail_input): New function.
26944 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26945 (syms_of_keyboard): Defsubr them.
26946 (Fset_input_meta_mode, Fset_quit_char): New functions.
26947 (Fset_input_mode): Split to above functions.
26948 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26949 parameter. Use it in call to `read_char'.
26950 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26951 Set wrong_kboard_jmpbuf correctly in recursive calls.
26952 Use current_kboard to access Vkeyboard_translate_table.
26953 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26954 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26955 Update longjmp invocations. Remember the original current_kboard,
26956 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26957 changes it. Comment out unnecessary calls to
26958 `record_single_kboard_state' and `any_kboard_state'.
26959 Update recursive calls.
26960 (wrong_kboard_jmpbuf): Remove global variable.
26961 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26962 Handle deleted interrupted_kboards correctly; that is a legal
26963 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26964 and read_char calls. Abort if interrupted_kboard died in read_char.
26965 (any_kboard_state, single_kboard_state)
26966 (push_frame_kboard): Remove function.
26967 (pop_kboard): Switch out of single_kboard mode if the kboard has
26968 been deleted. Remove unused variable. Help debugging by not
26969 changing current_kboard unnecessarily. Set current_kboard to the
26970 kboard of the selected frame when the stored kboard object has
26971 been deleted before pop_kboard.
26972 (temporarily_switch_to_single_kboard): Change first parameter to a
26973 frame pointer. Throw an error when caller wants to change kboards
26974 while in single_kboard mode. Don't push_kboard if we weren't in
26975 single kboard state. Don't pop_kboard if we popped into any
26976 kboard state.
26977 (restore_kboard_configuration): Abort if pop_kboard changed the
26978 kboard in single_kboard mode. Call pop_kboard only after setting
26979 up single_kboard mode.
26980 (Frecursive_edit): Switch to single_kboard mode only in nested
26981 command loops.
26982 (cmd_error, command_loop, command_loop_1, timer_check):
26983 Comment out unnecessary call to `any_kboard_state' and
26984 `record_single_kboard_state'.
26985 (delete_kboard): Exit single_kboard mode if we have just deleted
26986 that kboard. Use FRAME_KBOARD.
26987 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26988 `fatal_error_signal'.
26989 (record_single_kboard_state): Don't push_kboard if we weren't in
26990 single kboard state. Don't pop_kboard if we popped into any
26991 kboard state.
26992 (push_frame_kboard): Rename to push_kboard.
26993 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26994 (read_avail_input): Read input from all terminals.
26995 (mark_kboards): Also mark Vkeyboard_translate_table.
26996 (kbd_buffer_store_event_hold): Simplify condition.
26997 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26998 (Vkeyboard_translate_table): Move to struct kboard.
26999 (init_kboard): Initialize Vkeyboard_translate_table.
27000 (syms_of_keyboard): Use DEFVAR_KBOARD to define
27001 Vkeyboard_translate_table. Update doc strings. Update docs of
27002 local-function-key-map and function-key-map.
27003
27004 * terminal.c: New file.
27005
27006 * term.c: Include errno.h.
27007 (Vring_bell_function, device_list, initial_device)
27008 (next_device_id, ring_bell, update_begin, update_end)
27009 (set_terminal_window, cursor_to, raw_cursor_to)
27010 (clear_to_end, clear_frame, clear_end_of_line)
27011 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
27012 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
27013 (syms_of_term): Move their initialization to terminal.c.
27014 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
27015 (Ftty_display_color_cells)
27016 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
27017 (clear_tty_hooks, set_tty_hooks)
27018 (init_tty, maybe_fatal): New functions.
27019 (Ftty_type): Return nil if terminal is not on a tty instead of
27020 throwing an error. Doc update.
27021 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
27022 Doc update. Initialize new subrs and variables.
27023 (delete_tty): Use terminal->deleted.
27024 (tty_set_terminal_modes): Rename from set_terminal_modes.
27025 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
27026 (set_scroll_region): Rename to `tty_set_scroll_region'.
27027 (turn_on_insert): Rename to `tty_turn_on_insert'.
27028 (turn_off_insert): Rename to `tty_turn_off_insert'.
27029 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
27030 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
27031 (toggle_highligh): Rename to `tty_toggle_highlight'.
27032 (background_highlight): Rename to `tty_background_highlight'.
27033 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
27034 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
27035 (tty_set_scroll_region, tty_background_highlight)
27036 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
27037 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
27038 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
27039 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
27040 Add static modifier.
27041 (tty_reset_terminal_modes, tty_set_terminal_window)
27042 (tty_set_scroll_region, tty_background_highlight)
27043 (tty_highlight_if_desired, tty_cursor_to)
27044 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
27045 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
27046 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
27047 renames.
27048
270492007-08-28 Jan Djärv <jan.h.d@swipnet.se>
27050
27051 * keyboard.c: Qrtl is new.
27052 (parse_tool_bar_item): Handle :rtl keyword.
27053 (syms_of_keyboard): Intern :rtl keyword.
27054
27055 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
27056
27057 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
27058 so no Lisp code is executed.
27059 (file_for_image, find_rtl_image): New functions.
27060 (xg_get_image_for_pixmap): Use file_for_image.
27061 (update_frame_tool_bar): If direction is RTL, use RTL image if
27062 defined. Use Gtk stock images if defined.
27063
270642007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27065
27066 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
27067 for nonexistent or zero-width glyph in composition glyph.
27068
270692007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
27070
27071 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
27072
27073 * xdisp.c (Finvisible_p): New function.
27074 (syms_of_xdisp): defsubr it.
27075
270762007-08-24 Juanma Barranquero <lekktu@gmail.com>
27077
27078 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
27079 Doc fixes.
27080
270812007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27082
27083 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
27084
270852007-08-24 Martin Rudalics <rudalics@gmx.at>
27086
27087 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
27088 whether decoding has modified buffer contents.
27089
270902007-08-24 Jason Rumney <jasonr@gnu.org>
27091
27092 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
27093 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
27094 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
27095 (init_svg_functions) [HAVE_NTGUI]: New function.
27096 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
27097 (svg_load_image): Use them.
27098 (svg_load_image) [HAVE_NTGUI]: Implement background.
27099
271002007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27101
27102 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
27103 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
27104 (LIBX): Remove @RSVG_LIBS@.
27105 (LIBES): Add $(RSVG_LIBS).
27106
27107 * image.c (svg_load_image): Blend with specified background if exists.
27108 Use IMAGE_BACKGROUND. Add Mac OS Support.
27109
27110 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
27111 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
27112 Remove macros.
27113 [MAC_OSX] (socket_callback): Do nothing.
27114 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
27115 ReceiveNextEvent.
27116 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
27117 socket_callback.
27118 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
27119
271202007-08-22 Glenn Morris <rgm@gnu.org>
27121
27122 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
27123
271242007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
27125
27126 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
27127
27128 * image.c: Add support for SVG images. Some additional comments
27129 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
27130 (svg_image_p): New function to test for SVG image.
27131 (svg_load): New function to load SVG image.
27132 (svg_load_image): New function, helper for svg_load.
27133 (Qsvg): New Lisp_object.
27134 (svg_keyword_index): New enum.
27135 (svg_format): New static `image_keyword' struct.
27136 (svg_type): New static `image_type' struct.
27137 (librsvg/rsvg.h): Include it.
27138
271392007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
27140
27141 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
27142
271432007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
27144
27145 * lread.c (Qold_style_backquotes): New var.
27146 (syms_of_lread): Init and staticpro it.
27147 (load_warn_old_style_backquotes): New fun.
27148 (Fload): Use them to warn about old style backquotes.
27149 (end_of_file_error, Fload): Remove unused vars.
27150
27151 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
27152
27153 * lread.c (Vold_style_backquotes): New var.
27154 (syms_of_lread): Init and export it to Elisp.
27155 (read1): Set it when we find an old-style (back)quote.
27156
271572007-08-22 Jason Rumney <jasonr@gnu.org>
27158
27159 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
27160
271612007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
27162
27163 * puresize.h (BASE_PURESIZE): Increase to 1140000.
27164
271652007-08-19 Richard Stallman <rms@gnu.org>
27166
27167 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
27168
271692007-08-19 Andreas Schwab <schwab@suse.de>
27170
27171 * alloc.c (pure): Round PURESIZE up.
27172
271732007-08-17 Jan Djärv <jan.h.d@swipnet.se>
27174
27175 * xterm.c (handle_one_xevent): Remove check that mouse click is in
27176 active frame.
27177
271782007-08-16 Richard Stallman <rms@gnu.org>
27179
27180 * eval.c (Fcommandp): Add parens to clarify.
27181
27182 * minibuf.c (Fall_completions): Use enum for type of table.
27183
27184 * emacs.c (USAGE2): Improve text.
27185
271862007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
27187
27188 * term.c (tty_default_color_capabilities): Declare static
27189 variables in file scope, to avoid HPUX compiler problem.
27190
271912007-08-13 Jan Djärv <jan.h.d@swipnet.se>
27192
27193 * gtkutil.c (update_frame_tool_bar): Use -1 as index
27194 to gtk_toolbar_insert.
27195
271962007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
27197
27198 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
27199
27200 * insdel.c (reset_var_on_error): New fun.
27201 (signal_before_change, signal_after_change):
27202 Use it to reset (after|before)-change-functions to nil in case of error.
27203 Bind inhibit-modification-hooks to t.
27204 Don't bind (after|before)-change-functions to nil while they run.
27205
272062007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27207
27208 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
27209 filling pixmap with stippled background.
27210
272112007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27212
27213 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
27214 Don't use invisible frame as parent window for repositioning.
27215
272162007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
27217
27218 * print.c (new_backquote_output): Rename from old_backquote_output.
27219 (print): Inverse its logic (according to its name) so as to match the
27220 behavior of new_backquote_flag in lread.c.
27221
272222007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27223
27224 * gmalloc.c (posix_memalign): New function.
27225
27226 * macterm.c (frame_highlight, frame_unhighlight): Don't call
27227 ActivateControl/DeactivateControl here.
27228 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
27229 frame-notice-user-settings is non-nil.
27230 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
27231 for kEventParamFMFontStyle.
27232 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
27233 mac_pass_command_to_system and mac_pass_control_to_system here.
27234 (XTread_socket): Call ActivateControl/DeactivateControl here.
27235 (XTread_socket) [TARGET_API_MAC_CARBON]:
27236 Check mac_pass_command_to_system and mac_pass_control_to_system here.
27237 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
27238 for window repositioning.
27239
272402007-08-08 Glenn Morris <rgm@gnu.org>
27241
27242 * Replace `iff' in doc-strings and comments.
27243
272442007-08-07 Chong Yidong <cyd@stupidchicken.com>
27245
27246 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
27247
272482007-08-07 Martin Rudalics <rudalics@gmx.at>
27249
27250 * fileio.c (Finsert_file_contents): Run format-decode and
27251 after_insert_file_functions on entire buffer when REPLACE is
27252 non-nil and inhibit modification_hooks and point_motion_hooks.
27253 For consistency, run after_insert_file_functions iff something
27254 got inserted. Move signal_after_change and update_compositions
27255 after code running after_insert_file_functions. Make sure that
27256 undo_list doesn't record intermediate steps of the decoding process.
27257
272582007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27259
27260 * emacs.c (main)
27261 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
27262 Call malloc_enable_thread on interactive startup.
27263
27264 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
27265 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
27266 [USE_PTHREAD]: Conditionalize with it.
27267 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
27268 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
27269 New functions.
27270
272712007-08-06 Chong Yidong <cyd@stupidchicken.com>
27272
27273 * xdisp.c (redisplay_window): When restoring original buffer
27274 position, make sure it is still valid.
27275
27276 * image.c (png_load): Ignore png-supplied background color.
27277
272782007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27279
27280 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
27281 Use kCFAbsoluteTimeIntervalSince1970.
27282
27283 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27284 New variable.
27285 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27286 event loop should be quit.
27287 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27288 Quit dialog event loop if quit_dialog_event_loop is set.
27289
27290 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27291 (Selection): New typedef. Use instead of ScrapRef.
27292 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27293 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27294 (mac_clear_selection): Rename from clear_scrap.
27295 (get_flavor_type_from_symbol): New argument SEL and subsume function of
27296 scrap_has_target_type. All uses changed.
27297 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27298 (mac_selection_has_target_p): New functions.
27299 (mac_put_selection_value): Rename from put_scrap_string.
27300 (mac_get_selection_value): Rename from get_scrap_string.
27301 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27302 (put_scrap_private_timestamp, scrap_has_target_type)
27303 (get_scrap_private_timestamp): Remove functions.
27304 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27305 (x_own_selection, x_get_local_selection):
27306 Use mac_valid_selection_value_p.
27307 (x_own_selection): Don't use put_scrap_private_timestamp.
27308 Record OWNERSHIP-INFO into Vselection_alist instead.
27309 (x_get_local_selection): Don't check type if request is local.
27310 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27311 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27312
273132007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27314
27315 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27316 add comment explaining why.
27317
273182007-08-03 Richard Stallman <rms@gnu.org>
27319
27320 * fileio.c (Fvisited_file_modtime): Use make_time.
27321
273222007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27323
27324 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27325 build.
27326
273272007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27328
27329 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27330
273312007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27332
27333 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27334
273352007-07-30 Richard Stallman <rms@gnu.org>
27336
27337 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27338
273392007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27340
27341 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27342
273432007-07-28 Nick Roberts <nickrob@snap.net.nz>
27344
27345 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27346 remote default-directory.
27347
27348 * buffer.c (mode-line-format): Update doc string.
27349
273502007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27351
27352 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27353 scroll bar gap.
27354 (x_scroll_bar_create): Set bar->fringe_extended_p.
27355 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27356 on frame edge. Check fringe background extension. Don't clear
27357 extended fringe background area.
27358
27359 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27360 (w32_fill_area): Enclose multiple statements with do ... while (0).
27361
27362 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27363 Extend fringe background to scroll bar gap.
27364 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27365 Set bar->fringe_extended_p.
27366 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27367 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27368 background extension. Don't clear extended fringe background area.
27369
27370 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27371 New member fringe_extended_p.
27372
273732007-07-25 Glenn Morris <rgm@gnu.org>
27374
27375 * Relicense all FSF files to GPLv3 or later.
27376
27377 * COPYING: Switch to GPLv3.
27378
273792007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27380
27381 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27382
27383 * data.c (Finteractive_form): Check for the presence of an
27384 `interactive-form' symbol property more thoroughly.
27385
27386 * data.c (Finteractive_form): Use an `interactive-form' property if
27387 present, analogous to the function-documentation property.
27388
273892007-07-24 Jason Rumney <jasonr@gnu.org>
27390
27391 * w32fns.c (x_real_positions): Get real position from OS instead of
27392 calculating it.
27393
273942007-07-23 Jason Rumney <jasonr@gnu.org>
27395
27396 * filelock.c (current_lock_owner): Allow for @ sign in username.
27397
273982007-07-22 Nick Roberts <nickrob@snap.net.nz>
27399
27400 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27401 remote default-directory.
27402
27403 * buffer.c (mode-line-format): Describe above case in doc string.
27404
274052007-07-20 Eli Zaretskii <eliz@gnu.org>
27406
27407 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27408 Define if not defined.
27409
274102007-07-18 Jason Rumney <jasonr@gnu.org>
27411
27412 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27413
274142007-07-18 Richard Stallman <rms@gnu.org>
27415
27416 * data.c (Fsetq_default): Doc fix.
27417
27418 * eval.c (Fsetq): Doc fix.
27419
274202007-07-18 Juanma Barranquero <lekktu@gmail.com>
27421
27422 * coding.c (Ffind_operation_coding_system):
27423 * eval.c (For, Fand): Doc fixes.
27424 Reported by Johan Bockgård.
27425
274262007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27427
27428 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27429
27430 * xterm.h: Declare x_ewmh_activate_frame.
27431
27432 * xterm.c (x_ewmh_activate_frame): New function.
27433 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27434
274352007-07-17 Martin Rudalics <rudalics@gmx.at>
27436
27437 * window.c (Fdisplay_buffer): If largest or LRU window is the
27438 only window, split it even if it is not eligible for splitting.
27439 This restores the original behavior broken by the 2007-07-15
27440 change.
27441
274422007-07-17 Glenn Morris <rgm@gnu.org>
27443
27444 * abbrev.c (abbrev_check_chars): New function.
27445 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27446 Call abbrev_check_chars to check abbrev characters are word
27447 constituents. Doc fix.
27448
274492007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27450
27451 * process.c (Fstart_process, Fmake_network_process)
27452 (read_process_output): Fix up last changes.
27453
274542007-07-16 Eli Zaretskii <eliz@gnu.org>
27455
27456 * makefile.w32-in (clean): Don't delete *~.
27457
274582007-07-16 Andreas Schwab <schwab@suse.de>
27459
27460 * window.c (Fdisplay_buffer): Use NILP.
27461 (Fset_window_scroll_bars): Likewise.
27462
274632007-07-15 Martin Rudalics <rudalics@gmx.at>
27464
27465 * window.c (window_min_size_2): New function.
27466 (window_min_size_1, size_window, Fdisplay_buffer)
27467 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27468 windows without mode- or header-lines when window-min-height is
27469 too small.
27470 (size_window): Reset nodelete_p after testing it, following an
27471 earlier note by Kim F. Storm.
27472 (display_buffer): Do not set split_height_threshold to twice the
27473 value of window_min_height to avoid changing the value of a
27474 customizable variable. Rather explicitly check whether the
27475 height of the window that shall be splitted is at least as large
27476 as split_height_threshold.
27477 (Fwindow_full_width_p): New defun.
27478 (syms_of_window): Defsubr it.
27479
27480 * window.h: Add EXFUN for Fwindow_full_width_p.
27481
274822007-07-14 Jason Rumney <jasonr@gnu.org>
27483
27484 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27485
274862007-07-14 Richard Stallman <rms@gnu.org>
27487
27488 * eval.c (maybe_call_debugger): New function.
27489 (find_handler_clause): Use maybe_call_debugger.
27490 Call it when the handler says `debug'.
27491 Eliminate DEBUGGER_VALUE_PTR.
27492 (Fsignal): Eliminate debugger_value.
27493 (Qdebug): New variable.
27494 (syms_of_eval): Initialize it.
27495
274962007-07-14 Juanma Barranquero <lekktu@gmail.com>
27497
27498 * eval.c (Fprogn):
27499 * keyboard.c (Ftrack_mouse):
27500 * print.c (Fwith_output_to_temp_buffer):
27501 * window.c (Fsave_window_excursion): Doc fix.
27502
275032007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27504
27505 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27506
275072007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27508
27509 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27510 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27511 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27512 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27513 Remove unused encoding_carryover.
27514 * process.c: Adjust all functions accordingly.
27515
275162007-07-12 Richard Stallman <rms@gnu.org>
27517
27518 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27519
275202007-07-11 Jason Rumney <jasonr@gnu.org>
27521
27522 * makefile.w32-in (LIBS): Include OLE32.
27523
27524 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27525 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27526
275272007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27528
27529 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27530 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27531 from a Lisp_Object into a bare pointer.
27532 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27533 Adjust the code correspondingly.
27534
27535 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27536
27537 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27538 (term_show_mouse_face): Remove unused var `j'.
27539 (handle_one_term_event): Remove unused vars `i' and `j'.
27540 Don't cast return value of ttyname since it's not necessary.
27541
275422007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27543
27544 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27545 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27546
27547 * fns.c (map_char_table): Use an array of int for `indices' rather than
27548 an array of Lisp_Objects (which are only ever integers anyway).
27549 (Fmap_char_table): Update caller.
27550 * lisp.h: Update prototype.
27551 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27552 * fontset.c (Ffontset_info):
27553 * casetab.c (set_case_table): Update callers.
27554
27555 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27556
27557 * keymap.c (struct accessible_keymaps_data)
27558 (struct where_is_internal_data): New structures.
27559 (accessible_keymaps_1, where_is_internal_1): Use them to change
27560 interface to adhere to the one used by map_keymap.
27561 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27562 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27563
27564 * keymap.h (map_keymap_function_t): More informative prototype.
27565
275662007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27567
27568 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27569 (looking_at_1): Don't change search_regs and last_thing_searched
27570 if `inhibit-changing-match-data' is non-nil.
27571 (string_match_1, search_buffer, set_search_regs): Likewise.
27572 (syms_of_search): Add Lisp level definition for
27573 `inhibit-changing-match-data' and set it to nil.
27574 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27575 start and end of the match, instead of using values in search_regs.
27576
275772007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27578
27579 * minibuf.c (Fcompleting_read): New value `confirm-only'
27580 for `require-match'.
27581
275822007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27583
27584 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27585 part of the 2007-06-27 change to syms_of_fileio.
27586
275872007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27588
27589 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27590 Check WINDOWP before using XWINDOW. Consolidate return statements.
27591
275922007-06-27 Richard Stallman <rms@gnu.org>
27593
27594 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27595
275962007-06-27 Juanma Barranquero <lekktu@gmail.com>
27597
27598 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27599
276002007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27601
27602 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27603 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27604 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27605 (_free_internal, memalign): Use them.
27606 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27607 Initialize to PTHREAD_MUTEX_INITIALIZER.
27608 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27609 (morecore_nolock): Rename from morecore. All uses changed.
27610 Use only nolock versions of internal allocation functions.
27611 (_malloc_internal_nolock, _realloc_internal_nolock)
27612 (_free_internal_nolock): New functions created from
27613 _malloc_internal, _realloc_internal, and _free_internal.
27614 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27615 Copy hook value to automatic variable before its use.
27616 (memalign): Copy hook value to automatic variable before its use.
27617
276182007-06-26 Kenichi Handa <handa@m17n.org>
27619
27620 * coding.c (Ffind_operation_coding_system): Docstring improved.
27621 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27622
276232007-06-25 David Kastrup <dak@gnu.org>
27624
27625 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27626 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27627 cater for additional parameter.
27628
27629 * keymap.h: Adjust number of parameters to `current-active-maps'.
27630
27631 * doc.c (Fsubstitute_command_keys): Adjust call of
27632 `current-active-maps'.
27633
276342007-06-25 David Kastrup <dak@gnu.org>
27635
27636 * callint.c (Fcall_interactively): Make the parsing of interactive
27637 specs somewhat more readable.
27638
276392007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27640
27641 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27642 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27643 if extended background has already been filled.
27644
276452007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27646
27647 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27648 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27649
27650 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27651 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27652 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27653 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27654 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27655 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27656 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27657 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27658 Run timers during dialog popup.
27659 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27660
276612007-06-21 Jason Rumney <jasonr@gnu.org>
27662
27663 * image.c (convert_mono_to_color_image): Swap fore and background.
27664
276652007-06-20 Jason Rumney <jasonr@gnu.org>
27666
27667 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27668 (w32_free_bdf_font): Unmap memory not handle.
27669
276702007-06-20 Sam Steingold <sds@gnu.org>
27671
27672 * gmalloc.c (__morecore): Fix the declaration to comply with the
27673 definition.
27674
276752007-06-20 Juanma Barranquero <lekktu@gmail.com>
27676
27677 * w32term.c (w32_delete_display): Remove leftover declaration.
27678 (w32_define_cursor, w32_initialize): Make static.
27679
27680 * w32.c (_wsa_errlist): Fix typo in error message.
27681 (init_environment): Ignore any environment variable from the
27682 registry having a null value.
27683
276842007-06-20 Glenn Morris <rgm@gnu.org>
27685
27686 * Makefile.in (LIBGIF): Default to -lgif.
27687
276882007-06-17 Jason Rumney <jasonr@gnu.org>
27689
27690 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27691 unicode strings.
27692
276932007-06-16 Juanma Barranquero <lekktu@gmail.com>
27694
27695 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27696 Fix typo in docstring.
27697
276982007-06-16 Eli Zaretskii <eliz@gnu.org>
27699
27700 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27701 and their keybindings.
27702
277032007-06-15 Chong Yidong <cyd@stupidchicken.com>
27704
27705 * composite.c (update_compositions): Fix last fix.
27706
277072007-06-14 Jason Rumney <jasonr@gnu.org>
27708
27709 * w32.c (get_process_times_fn): New function pointer.
27710 (globals_of_w32): Intialize it if present in kernel32.dll.
27711 (w32_get_internal_run_time): New function.
27712
27713 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27714
277152007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27716
27717 * composite.c (update_compositions): Check the validness of
27718 compositions.
27719
277202007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27721
27722 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27723 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27724
27725 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27726 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27727
27728 * macgui.h (USE_MAC_TOOLBAR): New define.
27729
27730 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27731 Return immediately unless popup is activated.
27732
27733 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27734 background to scroll bar gap.
27735 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27736 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27737 scroll bars on frame edge. Check fringe background extension.
27738 Don't clear extended fringe background area.
27739 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27740 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27741 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27742 [USE_MAC_TOOLBAR]: New macros.
27743 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27744 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27745 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27746 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27747 [USE_MAC_TOOLBAR]: New functions.
27748 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27749 manually if previous repositioning has failed.
27750 (mac_handle_keyboard_event): Use precomputed event kind.
27751 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27752 as tool bar item click. Handle mouse movement over tool bar items.
27753
27754 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27755 toolbar_win_gravity.
27756 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27757 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27758 Add externs.
27759
27760 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27761 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27762
277632007-06-14 Chong Yidong <cyd@stupidchicken.com>
27764
27765 * image.c (search_image_cache): Remove unused variable.
27766
277672007-06-13 Chong Yidong <cyd@stupidchicken.com>
27768
27769 * xfns.c, xmenu.c: Link to xaw3d if available.
27770
277712007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27772
27773 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27774 frame_foreground and frame_background.
27775
27776 * image.c (lookup_image): Save frame foreground and background colors.
27777 (search_image_cache): Check if saved and current frame colors match.
27778
277792007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27780
27781 * regex.c (regex_compile): Remove the `regnum' counter.
27782 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27783
277842007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27785
27786 * term.c: Include intervals.h to declare Fget_text_property.
27787
277882007-06-10 Jason Rumney <jasonr@gnu.org>
27789
27790 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27791
277922007-06-08 Juanma Barranquero <lekktu@gmail.com>
27793
27794 * callint.c (Fcall_interactively):
27795 * editfns.c (Fdelete_and_extract_region):
27796 * fileio.c (Fread_file_name):
27797 * fns.c (Fmapconcat):
27798 * keyboard.c (cmd_error_internal):
27799 * keymap.c (Fkey_description):
27800 * lread.c (openp):
27801 * minibuf.c (read_minibuf):
27802 * search.c (wordify):
27803 * sunfns.c (sel_read):
27804 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27805 * xfns.c (x_default_scroll_bar_color_parameter):
27806 * xmenu.c (menu_help_callback):
27807 * xselect.c (Fx_get_atom_name):
27808 * xterm.c (x_term_init): Use empty_unibyte_string.
27809
278102007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27811
27812 * alloc.c (init_strings): Initialize canonical empty strings.
27813 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27814 canonical empty string when the requested size is 0.
27815
27816 * emacs.c (empty_unibyte_string): Rename from empty_string.
27817 (empty_multibyte_string): New canonical empty string.
27818 (syms_of_emacs): Don't initialize empty_string.
27819
27820 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27821 string, if appropriate.
27822 (empty_unibyte_string, empty_multibyte_string): New externs.
27823 (empty_string): Remove extern.
27824
27825 * lread.c (syms_of_lread): Use empty_unibyte_string.
27826
278272007-06-07 Jason Rumney <jasonr@gnu.org>
27828
27829 * s/ms-w32.h: Don't define HAVE_TZNAME.
27830
27831 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27832
278332007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27834
27835 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27836
27837 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27838 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27839
27840 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27841 Don't call next handler.
27842 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27843 Remove argument. Install handler to application.
27844 (set_frame_menubar): Don't change deep_p.
27845 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27846 FRAME_OUTER_TO_INNER_DIFF_Y.
27847 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27848 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27849 [HAVE_DIALOGS]: New macros.
27850 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27851 Use them.
27852 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27853
27854 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27855 init_service_handler. All callers changed. Return OSStatus value.
27856
27857 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27858 All callers changed so as not to call SetPortWindowPort.
27859 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27860 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27861 mac_draw_string_common.
27862 (mac_draw_image_string_qd): Likewise.
27863 (mac_draw_string_common): Use them. Add INLINE.
27864 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27865 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27866 GetGlobalMouse.
27867 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27868 and FRAME_OUTER_TO_INNER_DIFF_Y.
27869 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27870 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27871 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27872 repositioning window to mac_handle_window_event.
27873 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27874 saving window location to mac_handle_window_event
27875 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27876 (install_menu_target_item_handler): Remove argument in extern.
27877 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27878 Also accept command events.
27879 (do_keystroke): New function created from XTread_socket.
27880 (init_command_handler): Remove functions.
27881 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27882 and save window location by kEventWindowShowing and kEventWindowHiding
27883 handlers here. Don't call next handler for window state change and
27884 focus events.
27885 (mac_handle_application_event, mac_handle_keyboard_event)
27886 [TARGET_API_MAC_CARBON]: New functions.
27887 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27888 kEventWindowShowing and kEventWindowHiding events. Move installation
27889 of mouse, font, text input and menu target item handlers to
27890 install_application_handler.
27891 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27892 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27893 New function.
27894 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27895 Register it.
27896 (XTread_socket) [TARGET_API_MAC_CARBON]:
27897 Consolidate SendEventToEventTarget calls.
27898 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27899 Move application activation handler to mac_handle_application_event.
27900 Move keyboard handler to mac_handle_keyboard_event.
27901 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27902 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27903 init_command_handler. Call install_application_handler.
27904
27905 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27906 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27907
279082007-06-07 Glenn Morris <rgm@gnu.org>
27909
27910 * emacs.c (main): Use `emacs-copyright' in --version output.
27911
279122007-06-06 Chong Yidong <cyd@stupidchicken.com>
27913
27914 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27915
279162007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27917
27918 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27919
27920 * macgui.h: Replace WindowPtr with WindowRef.
27921
27922 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27923 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27924 Replace ControlHandle with ControlRef.
27925 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27926
27927 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27928 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27929 Replace ControlHandle with ControlRef.
27930 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27931 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27932
27933 * macterm.h (struct scroll_bar): Rename member control_handle_low
27934 and control_handle_high to control_ref_low and control_ref_high.
27935 All uses changed.
27936 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27937 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27938 respectively. All uses changed.
27939 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27940 (install_window_handler, remove_window_handler): Replace WindowPtr
27941 with WindowRef in externs.
27942
279432007-06-05 Juanma Barranquero <lekktu@gmail.com>
27944
27945 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27946
279472007-06-03 Nick Roberts <nickrob@snap.net.nz>
27948
27949 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27950
27951 * frame.c (Fmouse_position, Fmouse_pixel_position):
27952 Condition on HAVE_GPM too.
27953
27954 * term.c (term_mouse_highlight): Remove unused variables.
27955 (Fterm_open_connection): Set gpm_zerobased to 1.
27956 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27957 Use zero based co-ordinates.
27958 (handle_one_term_event): Report a drag as mouse movement too.
27959
27960 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27961
279622007-06-03 Chong Yidong <cyd@stupidchicken.com>
27963
27964 * image.c (search_image_cache): New function. Require background
27965 color match if background color is unspecified in the image spec.
27966 (uncache_image, lookup_image): Use it.
27967
279682007-06-01 Juanma Barranquero <lekktu@gmail.com>
27969
27970 * window.c (Fshrink_window): Reflow docstring.
27971
279722007-06-02 Chong Yidong <cyd@stupidchicken.com>
27973
27974 * Version 22.1 released.
27975
279762007-06-01 Richard Stallman <rms@gnu.org>
27977
27978 * xfns.c (x_encode_text): Add GCPRO.
27979
279802007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27981
27982 * xfns.c (x_set_name_internal): Save encoded name before
27983 x_encode_text in case string data is relocated.
27984
279852007-05-31 Richard Stallman <rms@gnu.org>
27986
27987 * buffer.c (syms_of_buffer): Doc fix.
27988
279892007-05-30 Nick Roberts <nickrob@snap.net.nz>
27990
27991 * sysdep.c (init_sys_modes): Add rather than replace with
27992 O_NONBLOCK.
27993
27994 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27995 term_mouse_moveto.
27996
27997 * termhooks.h (term_mouse_moveto): New extern.
27998
27999 * term.c (mouse_face_window): Rename...
28000 (Qmouse_face_window): ...to this.
28001 (term_show_mouse_face, term_clear_mouse_face)
28002 (term_mouse_highlight): Use Qmouse_face_window.
28003 (term_mouse_moveto): New function.
28004 (term_mouse_position): Make it work.
28005 (syms_of_term): Uncomment assignment to mouse_position_hook.
28006 Staticpro Qmouse_face_window.
28007
280082007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28009
28010 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
28011 around current_column call.
28012
280132007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
28014
28015 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
28016 * xdisp.c (next_element_from_buffer):
28017 * window.c (delete_window):
28018 * term.c (term_mouse_highlight):
28019 * msdos.c (getdefdir):
28020 * macterm.c (mac_create_bitmap_from_bitmap_data)
28021 (init_font_name_table):
28022 * fns.c (Fsxhash):
28023 * data.c (Fmake_local_variable):
28024 * ccl.c (ccl_driver): Likewise.
28025
280262007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28027
28028 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
28029 Call mac_wakeup_from_rne on window size change.
28030
280312007-05-25 Chong Yidong <cyd@stupidchicken.com>
28032
28033 * image.c (uncache_image): Fix typo.
28034
280352007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
28036
28037 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
28038
280392007-05-22 Richard Stallman <rms@gnu.org>
28040
28041 * xterm.c (x_connection_closed): Remove NO_RETURN.
28042
280432007-05-22 Martin Rudalics <rudalics@gmx.at>
28044
28045 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
28046
280472007-05-21 Chong Yidong <cyd@stupidchicken.com>
28048
28049 * image.c (uncache_image): New function.
28050 (Fimage_refresh): New function.
28051
280522007-05-20 Jan Djärv <jan.h.d@swipnet.se>
28053
28054 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
28055
280562007-05-20 Nick Roberts <nickrob@snap.net.nz>
28057
28058 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
28059 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
28060
280612007-05-20 Nick Roberts <nickrob@snap.net.nz>
28062
28063 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
28064 conditional on [HAVE_GPM_H].
28065
280662007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
28067
28068 * syntax.c (skip_chars): Update syntax-table only after we checked that
28069 the new location is valid.
28070
280712007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28072
28073 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
28074 mac_get_window_bounds.
28075
280762007-05-20 Nick Roberts <nickrob@snap.net.nz>
28077
28078 * Makefile.in (LIBGPM): Allow it to be set from configure.
28079 If set then link Emacs with it.
28080
28081 * config.in: Regenerate.
28082
28083 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
28084 New externs.
28085
28086 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
28087 Include gpm.h.
28088 (handle_one_term_event, term_gpm): New externs.
28089
28090 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
28091 and allow it to be interrupted by SIGIO.
28092
28093 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
28094 (wait_reading_process_output): Wait on gpm_fd too.
28095 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
28096 (add_gpm_wait_descriptor_called_flag): New variable.
28097 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
28098
28099 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
28100 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
28101 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
28102 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
28103 (make_lispy_event): Add case GPM_CLICK_EVENT.
28104 (read_avail_input): Handle mouse input.
28105
28106 * term.c (write_glyphs_with_face): New function.
28107 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
28108 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
28109 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
28110 (mouse_face_face_id, term_gpm, pos_x, pos_y)
28111 (last_mouse_x, last_mouse_y): New variables.
28112 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
28113 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
28114 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
28115 (Fterm_close_connection): New functions.
28116 (term_init): Initialise mouse_face_window.
28117
281182007-05-19 Chong Yidong <cyd@stupidchicken.com>
28119
28120 * xdisp.c (redisplay_window): If first window line is a
28121 continuation line, recompute the new window start instead of
28122 recentering.
28123
281242007-05-18 Glenn Morris <rgm@gnu.org>
28125
28126 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
28127 Suggested by Alfred M. Szmidt <ams@gnu.org>.
28128
281292007-05-17 Glenn Morris <rgm@gnu.org>
28130
28131 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
28132
281332007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28134
28135 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
28136 dead key repeat and up events.
28137
281382007-05-14 Chong Yidong <cyd@stupidchicken.com>
28139
28140 * image.c (pbm_load): Check image size for monochrome pbm.
28141
281422007-05-13 Chong Yidong <cyd@stupidchicken.com>
28143
28144 * xterm.c (XTread_socket): Revert last change.
28145
281462007-05-12 Chong Yidong <cyd@stupidchicken.com>
28147
28148 * image.c (pbm_load): Correctly check image size for greyscale pbm.
28149
28150 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
28151
281522007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28153
28154 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
28155 mixup (YAILOM).
28156
281572007-05-07 Andreas Schwab <schwab@suse.de>
28158
28159 * keymap.c (Flookup_key): Fix typo in last change.
28160
281612007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28162
28163 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
28164 mapping for unibyte strings.
28165
281662007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28167
28168 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
28169 (Fx_popup_dialog) [MAC_OSX]: Likewise.
28170
281712007-04-29 Richard Stallman <rms@gnu.org>
28172
28173 * insdel.c (replace_range): For undo, record insertion first.
28174
281752007-04-29 Andreas Schwab <schwab@suse.de>
28176
28177 * lisp.h (VECSIZE): Use OFFSETOF.
28178
281792007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28180
28181 * xdisp.c (try_window_reusing_current_matrix): Fix number of
28182 disabled lines.
28183
281842007-04-28 Richard Stallman <rms@gnu.org>
28185
28186 * lread.c (read_escape): In a string, \s is always space.
28187
281882007-04-27 Jan Djärv <jan.h.d@swipnet.se>
28189
28190 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
28191
28192 * gtkutil.c (xg_update_menubar, create_menus): Create empty
28193 submenu for menu bar items.
28194
28195See ChangeLog.10 for earlier changes.
28196
28197;; Local Variables:
28198;; coding: utf-8
28199;; add-log-time-zone-rule: t
aac0c6e3
MR
28200;; End:
28201
e3eb1dae 28202 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
28203
28204 This file is part of GNU Emacs.
28205
28206 GNU Emacs is free software: you can redistribute it and/or modify
28207 it under the terms of the GNU General Public License as published by
28208 the Free Software Foundation, either version 3 of the License, or
28209 (at your option) any later version.
28210
28211 GNU Emacs is distributed in the hope that it will be useful,
28212 but WITHOUT ANY WARRANTY; without even the implied warranty of
28213 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28214 GNU General Public License for more details.
28215
28216 You should have received a copy of the GNU General Public License
28217 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28218
28219;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40