Make globals.h a generated header
[bpt/emacs.git] / src / ChangeLog
CommitLineData
00b3c7ac
TT
12011-02-08 Tom Tromey <tromey@redhat.com>
2
3 * Makefile.in (NS_OBJC_OBJ): New variable.
4 (base_obj): Rename from 'obj'.
5 (obj): New variable.
6 (globals.h, gl-stamp, $(obj)): New targets.
7 (GLOBAL_SOURCES): New variable.
8 * globals.h: Remove.
9 * nsselect.m (Vselection_alist): Define. Reverts part of
10 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
11 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
12 variable.
13 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
14
8f3b2e12
KH
152011-02-08 Kenichi Handa <handa@m17n.org>
16
17 * font.c (Ffont_get): Do not cache :otf value.
18
4f043d0f
PE
192011-02-07 Paul Eggert <eggert@cs.ucla.edu>
20
21 conform to C89 pointer rules
22
23 * dired.c (scmp, file_name_completion):
24 Change types between char * and unsigned char *, to satisfy C89
25 rules about pointer type compatibility.
47ce90e4 26 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 27 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
28 * alloc.c (make_string, make_specified_string, make_pure_string):
29 Likewise.
57ace6d0 30 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
31 * print.c (float_to_string, PRINTFINISH, printchar, strout):
32 (print_object): Likewise.
e7f8264d
PE
33 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
34 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
35 (Fformat): Likewise.
a2db9982 36 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
37 * fns.c (string_make_multibyte, string_to_multibyte):
38 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
39 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
40 Likewise.
4a25e32a 41 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
42 * process.c (read_process_output, send_process, Fprocess_send_region):
43 Likewise.
0ca76b1e 44 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
45 * doprnt.c (doprnt): Likewise.
46 * indent.c (compute_motion): Likewise.
efe0234f 47 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 48 * ralloc.c (resize_bloc): Likewise.
b19beacc 49 * image.c (tiff_load): Likewise.
c45e5276 50 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
51 * character.c (strwidth): Make its argument const char *, not const
52 unsigned char *, since more callers prefer it that way. All callers
53 changed.
4f043d0f 54
9eee99eb
PE
552011-02-06 Paul Eggert <eggert@cs.ucla.edu>
56
4c83cffc
PE
57 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
58 Emacs assumes two's complement elsewhere, but the assumption is
59 easy to remove here, and this suppresses a warning with Sun C 5.8.
60
82470039
PE
61 conform to C89 pointer rules
62
63 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
64 (same_x_server, x_term_init):
9eee99eb
PE
65 Change types between char * and unsigned char *, to satisfy C89
66 rules about pointer type compatibility.
82470039
PE
67 * doc.c (get_doc_string, Fsnarf_documentation):
68 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
69 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
70 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 71 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
72 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
73 Likewise.
01c9aa3a 74 * keymap.c (Ftext_char_description): Likewise.
637de37e 75 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
76 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
77 (DRIVE_LETTER) [defined DOS_NT]:
78 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
79 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
80 (search_embedded_absfilename, Fsubstitute_in_file_name):
81 (barf_or_query_if_file_exists, Fmake_directory_internal):
82 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
83 (Finsert_file_contents, Fwrite_region):
84 Likewise.
b68864e5
PE
85 * insdel.c (insert, insert_and_inherit, insert_before_markers):
86 (insert_before_markers_and_inherit, insert_1, insert_1_both):
87 Likewise. This changes these functions' signatures, which is
88 more convenient since most callers use char *. All remaining
89 callers changed.
90 * editfns.c (general_insert_function): Change signature to
91 match changes to insert functions' signatures.
01c9aa3a
PE
92 * keymap.c (map_keymap_char_table_item, map_keymap_internal): Use
93 explicit cast when converting between void * and function pointer
94 types, as C89 requires this.
9eee99eb 95
32299e33
PE
962011-02-05 Paul Eggert <eggert@cs.ucla.edu>
97
98 don't ignore chdir failure
99 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
100 failure and exit.
101 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
102 remaining unchecked chdir calls in this function; some DOS/NT
103 expert needs to fix them.
104 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
105 in this function; some NextStep expert needs to fix them.
106
233ba4d9 1072011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
108
109 * xfaces.c (Finternal_set_lisp_face_attribute):
110 Try to clarify some error messages. (Bug#2659)
111
233ba4d9 1122011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
113
114 * editfns.c (save_restriction_restore): Don't forget to invalidate the
115 current_column cache (bug#7946).
116
233ba4d9 1172011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
118
119 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
120
121 * xftfont.c (xftfont_open): Likewise.
122
233ba4d9 1232011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
124
125 * window.c (Fselect_window): Add missing return value.
126
d67985d3
PE
1272011-02-05 Paul Eggert <eggert@cs.ucla.edu>
128
25a48bd0
PE
129 xstrcasecmp: conform to C89 pointer rules
130 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
131 to const char *, since they're usually low-level C strings, and
132 this stays compatible with C89 pointer rules. All callers changed.
133
dfb6afda
PE
134 * charset.c: conform to C89 pointer rules
135 (define_charset_internal): Switch between char * and unsigned char *.
136
cc618f4e
PE
137 * xmenu.c: conform to C89 const rules
138 (xmenu_show, xdialog_show): Declare local var as char *, not
139 const char *, to stay compatible with C89 const rules.
140
9bcaafce
PE
141 * xdisp.c: conform to C89 pointer rules
142 (store_mode_line_noprop, display_string, reseat_to_string):
143 (c_string_pos, number_of_chars, message_dolog):
144 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
145 (display_mode_element, display_string):
146 Switch between char * and unsigned char * to stay compatible wth
147 C89 pointer rules.
148
5b0534c8
PE
149 * regex.c: conform to C89 pointer rules
150 (re_wctype): Add cast, as C89 does not allow assigning between
151 char * and unsigned char *.
152 (regex_compile): Likewise.
153
d67985d3
PE
154 sync from gnulib to remove HAVE_STDBOOL_H
155 * config.in: Regenerate.
156
a5d733f5
EZ
1572011-02-04 Eli Zaretskii <eliz@gnu.org>
158
f90e08f5
EZ
159 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
160 Replace all uses of lisp.h with $(LISP_H), and all uses of
161 process.h with $(PROCESS_H).
162 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
163 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
164
be50df37
EZ
165 * deps.mk: Update for recent changes: gnutls support, gnulib
166 imports, addition of globals.h.
167
f90e08f5
EZ
168 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
169 ../lib/ignore-value.h.
a5d733f5 170
67342916
PE
1712011-02-03 Paul Eggert <eggert@cs.ucla.edu>
172
173 allow C code to suppress warnings about ignored return values
174
175 We need to go through the code and for each such warning, either
176 fix the code to pay attention to the returned value, or tell GCC
177 that we really do want to ignore the returned value. Here is one
178 example of how to do the latter.
179 * sysdep.c: Include <ignore-value.h>.
180 (sys_subshell): Suppress an undesirable warning about not checking
181 the returned value of 'write', as there's nothing useful one can
182 do with that returned value.
183
36941b32
JD
1842011-02-03 Jan Djärv <jan.h.d@swipnet.se>
185
186 * xterm.c (x_connection_closed): Remove all calls that calls
187 XSync (Bug#7949).
188
3082f617
EZ
1892011-02-01 Eli Zaretskii <eliz@gnu.org>
190
191 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
192 TIFFClientOpen.
193
4df0af9b
JD
1942011-02-01 Jan Djärv <jan.h.d@swipnet.se>
195
196 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
197 (x_session_check_input): Change args and return type so it can be used
198 as argument to add_read_fd. Make static. Remove call to select.
199 Call kbd_buffer_store_event for emacs_event.
200 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
201 (ice_conn_watch_CB): Call add_read_fd.
202
203 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
204 x_session_check_input.
205 (x_session_initialized): Remove definition.
206 (x_initialize): Remove setting of x_session_initialized.
207
208 * xterm.h (x_session_check_input): Remove declaration.
209
a4180391
PE
2102011-02-01 Paul Eggert <eggert@cs.ucla.edu>
211
212 format-time-string now supports subsecond time stamp resolution
213 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
214 for consistency with its new argument and with gnulib nstrftime.
215 All callers changed. New argument NS.
216 (Fformat_time_string): Check that the time argument's microseconds
217 component, if any, is in range; this avoids integer overflow and
218 also nstrftime needs this. Document %N.
219
14beddf4 2202011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
221
222 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
223 of int. All uses adjusted.
224 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
225 (svg_load_image): Remove casts.
226
14beddf4 2272011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
228
229 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
230 function definitions for compiling with libpng-1.5.
231 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
232 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
233 (Bug#7908).
234
70b0d280
EZ
2352011-01-31 Eli Zaretskii <eliz@gnu.org>
236
8b3c625b
EZ
237 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
238
70b0d280
EZ
239 * makefile.w32-in (OBJ2): Remove strftime.$(O).
240 ($(BLD)/strftime.$(O)): Remove prerequisites.
241
16fab143
PE
2422011-01-31 Paul Eggert <eggert@cs.ucla.edu>
243
244 src/emacs.c now gets version number from configure.in
245 * emacs.c (emacs_version): Set to VERSION so that it
246 is determined automatically from ../configure.in.
247
546961a9
JM
2482011-01-31 Jim Meyering <meyering@redhat.com>
249
250 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
251 Use xmalloc rather than malloc.
252
42a5b22f
PE
2532011-01-30 Paul Eggert <eggert@cs.ucla.edu>
254
16c3e636
PE
255 strftime: import from gnulib
256 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
257 * deps.mk (strftime.o): Remove.
258 * editfns.c: Include <strftime.h>, supplied by gnulib.
259 (emacs_strftimeu): Remove decl.
260 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
261 emacs_strftimeu.
262 * config.in: Regenerate.
263 * strftime.c: Remove; we now use strftime from gnulib.
264
42a5b22f
PE
265 Use SSDATA when the context wants char *.
266 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
267 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
268 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
269 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
270 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
271 Use SSDATA (not SDATA) when the context of the expression wants
272 char * (not unsigned char *).
273
2787bba3
JD
2742011-01-30 Jan Djärv <jan.h.d@swipnet.se>
275
276 * .gdbinit: Read global lisp variables as globals.f_V*.
277
4ec88040
AS
2782011-01-30 Andreas Schwab <schwab@linux-m68k.org>
279
280 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
281 All uses changed.
282 (PROP_SAVE): Likewise.
283
b6bcd048
CY
2842011-01-29 Chong Yidong <cyd@stupidchicken.com>
285
286 * keyboard.c (make_lispy_position): Fix typo in last change
287 (Bug#7935).
288
f915f0f7
EZ
2892011-01-29 Eli Zaretskii <eliz@gnu.org>
290
291 * s/ms-w32.h (HAVE_MKTIME): Remove.
292
293 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
294 (GNULIB): New variable.
295 (LIBS): Add $(GNULIB).
296 $(TEMACS): Depend on $(GNULIB).
297 <top-level>: Fix font-lock disrupted by a lone `"'.
298
497a1925
JD
2992011-01-29 Jan Djärv <jan.h.d@swipnet.se>
300
301 * nsselect.m (ns_string_from_pasteboard): Get length of string
302 and use make_string instead of build_string (Bug#7934).
303 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
304 instead of stringWithUTF8String (Bug#7934).
305
481ae085
JD
3062011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
307
308 * nsfont.m (nsfont_open): Ensure that fonts with inexact
309 descenders would not become one pixel too tall (Bug#7887).
310
6b918613
CY
3112011-01-28 Chong Yidong <cyd@stupidchicken.com>
312
313 * keyboard.c (make_lispy_position): For clicks on right fringe or
314 margin, compute text position using the X coordinate relative to
315 the left of the text area (Bug#7839).
316
9e269017
KH
3172011-01-28 Kenichi Handa <handa@m17n.org>
318
319 * ftfont.c (ftfont_spec_pattern): Check each extra property
320 value.
321
17dd1fc8
SM
3222011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
323
324 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
325
372fb76b
CY
3262011-01-27 Chong Yidong <cyd@stupidchicken.com>
327
328 * font.c (font_parse_fcname): Undefine a temporary macro.
329
e7f7fbaa
SM
3302011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
331
332 Let the debugger continue to the normal handler (bug#7825).
333 * eval.c (maybe_call_debugger): Declare before new use.
334 (find_handler_clause): Don't call debugger any more.
335 Ignore Vstack_trace_on_error.
336 Use XCAR/XCDR.
337 (syms_of_eval): Remove Vstack_trace_on_error.
338 (Fsignal): Only modify handlerlist when we know we need to do it.
339 Call the debugger when necessary.
340 * globals.h (Vstack_trace_on_error): Remove.
341
6608a7d8
CY
3422011-01-26 Chong Yidong <cyd@stupidchicken.com>
343
344 * font.c (font_parse_fcname): Rewrite GTK font name parser.
345
06d8ace5 3462011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
347
348 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
349 the buffer's point-max (bug#7876).
350
06d8ace5 3512011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
352
353 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 354 Remove unused case (Bug#6811).
19634648 355
8ab70320
JD
3562011-01-23 Jan Djärv <jan.h.d@swipnet.se>
357
358 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
359 setFrameTopLeftPoint is constrained.
360
51b59d79
PE
3612011-01-23 Paul Eggert <eggert@cs.ucla.edu>
362
9055082e
PE
363 Check return values of some library calls.
364 * emacs.c (main): Check dup result.
365 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
366 (frame_name_fnn_p): Check strtol result.
367
5c7d01a5 368 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
369 when calling XpmCreatePixmapFromData.
370
51b59d79
PE
371 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
372 * lisp.h (SSDATA): New macro.
373 All uses of (char *) SDATA (x) replaced with SSDATA (x),
374 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
375 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
376 * xsmfns.c (SSDATA): Likewise.
377
e6b84b30
MR
3782011-01-22 Martin Rudalics <rudalics@gmx.at>
379
380 * window.c (select_window): New function.
381 (Fselect_window): Call it.
382 (inhibit_point_swap): Variable deleted.
383 (Fset_window_configuration): Call select_window directly.
384
3fb69558
JD
3852011-01-22 Jan Djärv <jan.h.d@swipnet.se>
386
387 * nsterm.m (constrainFrameRect): Only constrain the first time called.
388
449ab399
JD
3892011-01-21 Jan Djärv <jan.h.d@swipnet.se>
390
e2f79c8d
JD
391 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
392 screen, not the window screen.
393 (x_set_window_size): Remove constraints.
394 Calculate origin.y only if zooming is 0 and without referring to a
395 screen.
396 (windowWillResize): Don't modify frameSize.
397 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
398 (initFrameFromEmacs): Initialize ns_userRect.
399 (windowShouldZoom): Set zooming to one. Remove all other code.
400 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
401 Zero it after restore.
402 (constrainFrameRect): New method for EmacsWindow.
403 (mouseDragged): Always post NSWindowDidResizeNotification after call to
404 windowWillResize.
405
406 * nsterm.h (ns_output): Add dont_constrain and zooming.
407 (EmacsView): Add ns_userRect.
408
449ab399
JD
409 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
410 if ns_alternate_modifier is none.
411
e885315d
JD
4122011-01-20 Jan Djärv <jan.h.d@swipnet.se>
413
414 * unexmacosx.c: Add comment about include order.
415
bb1c6663
GM
4162011-01-20 Glenn Morris <rgm@gnu.org>
417
c11136ec
GM
418 * minibuf.c (syms_of_minibuf) <read-expression-history>:
419 Give it a doc string.
420 * globals.h: Add Vread_expression_history.
421
bb1c6663
GM
422 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
423 Give it a doc string.
424 * globals.h: Add Vkbd_macro_termination_hook.
425
9aea757b
CY
4262011-01-20 Chong Yidong <cyd@stupidchicken.com>
427
428 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
429
e1ef0dac
PE
4302011-01-19 Paul Eggert <eggert@cs.ucla.edu>
431
432 Fix X11 compilation failure.
433 * globals.h (struct emacs_globals): Document f_Vselection_alist.
434 * xselect.c (Vselection_alist): Remove declaration, moving its
435 documentation to globals.h. This fixes a compilation failure
436 induced by the earlier change to globals.h today.
437
fb9d0f5a
JD
4382011-01-19 Jan Djärv <jan.h.d@swipnet.se>
439
8beb828a
JD
440 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
441
fb9d0f5a
JD
442 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
443 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
444 (ns_input_spi_name, ns_input_spi_arg)
445 (ns_alternate_modifier, ns_right_alternate_modifier)
446 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
447 (ns_right_control_modifier, ns_function_modifier)
448 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
449 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
450 (x_underline_at_descent_line): Remove declaration.
451 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
452
453 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
454 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
455 (syms_of_nsselect): Remove & from DEFVAR_LISP.
456
457 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
458 Remove declaration.
459
460 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
461 globals.h.
462 (syms_of_nsfont): Remove & from DEFVAR_LISP.
463
464 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
465 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
466 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
467
468 * globals.h (struct emacs_globals): Add f_ns_input_file,
469 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
470 f_ns_input_color, f_ns_input_text, f_ns_working_text,
471 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
472 f_ns_right_alternate_modifier, f_ns_command_modifier,
473 f_ns_right_command_modifier, f_ns_control_modifier,
474 f_ns_right_control_modifier, f_ns_function_modifier,
475 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
476 f_Vns_version_string, f_Vns_sent_selection_hooks,
477 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
478 and corresponding defines.
479
480
4e55715e
SS
4812011-01-19 Sam Steingold <sds@gnu.org>
482
483 * w32.c (check_windows_init_file): Remove declarations of
484 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 485 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 486
ef79d2fa
TT
4872011-01-19 Tom Tromey <tromey@redhat.com>
488
489 * window.c: Fix error introduced by previous patch.
490
29208e82
TT
4912011-01-18 Tom Tromey <tromey@parfait>
492
493 * globals.h: New file.
494 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
495 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
496 (Vwindow_system_version): Remove declaration.
497 * w32term.h (Vw32_enable_palette)
498 (Vx_pixel_size_width_font_regexp): Remove declaration.
499 * w32menu.c (Voverriding_local_map)
500 (Voverriding_local_map_menu_flag): Remove declaration.
501 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
502 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
503 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
504 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
505 (Vw32_phantom_key_code, Vw32_recognize_altgr)
506 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
507 (w32_use_full_screen_buffer): Remove declaration.
508 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
509 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
510 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
511 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
512 (no_redraw_on_reenter, visible_bell): Remove declaration.
513 * sysdep.c (Vsystem_name): Remove declaration.
514 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
515 * menu.h (Vmenu_updating_frame): Remove declaration.
516 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
517 Remove declaration.
518 * lisp.h (Vafter_init_time, Vafter_load_alist)
519 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
520 (Vcompletion_regexp_list, Vcurrent_load_list)
521 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
522 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
523 (Vexec_directory, Vexec_path, Vexec_suffixes)
524 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
525 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
526 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
527 (Vinstallation_directory, Vinvocation_directory)
528 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
529 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
530 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
531 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
532 (Vscalable_fonts_allowed, Vselect_active_regions)
533 (Vshell_file_name, Vstandard_input, Vstandard_output)
534 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
535 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
536 (Vuser_login_name, Vwindow_scroll_functions)
537 (Vwindow_system_version, Vx_no_window_manager)
538 (Vx_resource_class, Vx_resource_name, baud_rate)
539 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
540 (history_delete_duplicates, inhibit_x_resources)
541 (last_nonmenu_event, load_in_progress, max_specpdl_size)
542 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
543 (use_dialog_box, use_file_dialog): Remove declaration. Include
544 globals.h.
545 * keymap.h (Voverriding_local_map)
546 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
547 declaration.
548 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
549 (Vinput_method_function, Vkey_translation_map)
550 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
551 (do_mouse_tracking, extra_keyboard_modifiers)
552 (num_nonmacro_input_events): Remove declaration.
553 * intervals.h (Vchar_property_alias_alist)
554 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
555 (Vtext_property_default_nonsticky): Remove declaration.
556 * gtkutil.h (x_gtk_file_dialog_help_text)
557 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
558 (x_gtk_whole_detached_tool_bar): Remove declaration.
559 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
560 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
561 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
562 (focus_follows_mouse): Remove declaration.
563 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
564 (Vignore_relative_composition, Votf_script_alist)
565 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
566 declaration.
567 * font.h (Vfont_log): Remove declaration.
568 * dosfns.h (Vdos_display_scancodes, Vdos_version)
569 (Vdos_windows_version, dos_codepage, dos_country_code)
570 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
571 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
572 declaration.
573 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
574 declaration.
575 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
576 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
577 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
578 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
579 (inverse_video, mode_line_in_non_selected_windows)
580 (tool_bar_button_relief, tool_bar_max_label_size)
581 (underline_minimum_offset)
582 (unibyte_display_via_language_environment, x_stretch_cursor_p):
583 Remove declaration.
584 * composite.h (Vauto_composition_function)
585 (Vcomposition_function_table): Remove declaration.
586 * commands.h (Vexecuting_kbd_macro)
587 (Vminibuffer_local_completion_map)
588 (Vminibuffer_local_filename_completion_map)
589 (Vminibuffer_local_filename_must_match_map)
590 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
591 (Vminibuffer_local_ns_map, Vthis_command)
592 (Vunread_command_events, cursor_in_echo_area)
593 (last_command_event, last_nonmenu_event, unread_command_char):
594 Remove declaration.
595 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
596 (Vdefault_file_name_coding_system)
597 (Vdefault_process_coding_system, Vfile_name_coding_system)
598 (Vlast_coding_system_used, Vlocale_coding_system)
599 (Vselect_safe_coding_system_function)
600 (Vtranslation_table_for_input, coding_system_require_warning)
601 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
602 (eol_mnemonic_unix, inherit_process_coding_system): Remove
603 declaration.
604 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
605 declaration.
606 * character.h (Vauto_fill_chars, Vchar_direction_table)
607 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
608 (Vscript_representative_chars, Vtranslation_table_vector)
609 (Vunicode_category_table): Remove declaration.
610 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
611 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
612 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
613 (inhibit_modification_hooks): Remove declaration.
614 * xterm.c (syms_of_xterm): Update.
615 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
616 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
617 (x_mouse_click_focus_ignore_position)
618 (x_underline_at_descent_line)
619 (x_use_underline_position_properties): Remove.
620 * xsmfns.c (syms_of_xsmfns): Update.
621 (Vx_session_id, Vx_session_previous_id): Remove.
622 * xsettings.c (syms_of_xsettings): Update.
623 (Vxft_settings, use_system_font): Remove.
624 * xselect.c (syms_of_xselect): Update.
625 (Vselection_converter_alist, Vx_lost_selection_functions)
626 (Vx_sent_selection_functions, x_selection_timeout): Remove.
627 * xfns.c (syms_of_xfns): Update.
628 (Vgtk_version_string, Vmotif_version_string)
629 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
630 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
631 (Vx_no_window_manager, Vx_nontext_pointer_shape)
632 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
633 (Vx_sensitive_text_pointer_shape)
634 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
635 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
636 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
637 Remove.
638 * xfaces.c (syms_of_xfaces): Update.
639 (Vface_default_stipple, Vface_font_rescale_alist)
640 (Vface_ignored_fonts, Vface_new_frame_defaults)
641 (Vface_remapping_alist, Vfont_list_limit)
642 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
643 * xdisp.c (syms_of_xdisp): Update.
644 (Vauto_resize_tool_bars, Vblink_cursor_alist)
645 (Vdisplay_pixels_per_inch, Vfontification_functions)
646 (Vframe_title_format, Vglobal_mode_string)
647 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
648 (Vicon_title_format, Vinhibit_redisplay)
649 (Vline_number_display_limit, Vline_prefix)
650 (Vmax_mini_window_height, Vmenu_bar_update_hook)
651 (Vmenu_updating_frame, Vmessage_log_max)
652 (Vmouse_autoselect_window, Vnobreak_char_display)
653 (Voverlay_arrow_position, Voverlay_arrow_string)
654 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
655 (Vresize_mini_windows, Vshow_trailing_whitespace)
656 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
657 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
658 (Vwindow_scroll_functions, Vwindow_size_change_functions)
659 (Vwindow_text_change_functions, Vwrap_prefix)
660 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
661 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
662 (highlight_nonselected_windows, hscroll_margin)
663 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
664 (inhibit_menubar_update, inhibit_try_cursor_movement)
665 (inhibit_try_window_id, inhibit_try_window_reusing)
666 (line_number_display_limit_width)
667 (make_cursor_line_fully_visible_p, message_truncate_lines)
668 (mode_line_inverse_video, multiple_frames, overline_margin)
669 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
670 (tool_bar_max_label_size, underline_minimum_offset)
671 (unibyte_display_via_language_environment, x_stretch_cursor_p):
672 Remove.
673 * window.c (syms_of_window): Update.
674 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
675 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
676 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
677 (Vwindow_point_insertion_type, auto_window_vscroll_p)
678 (mode_line_in_non_selected_windows, next_screen_context_lines)
679 (window_min_height, window_min_width): Remove.
680 (scroll_margin): Remove declaration.
681 * w32term.c (syms_of_w32term): Update.
682 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
683 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
684 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
685 (w32_use_visible_system_caret, x_underline_at_descent_line)
686 (x_use_underline_position_properties): Remove.
687 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
688 Remove declaration.
689 * w32select.c (syms_of_w32select): Update.
690 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
691 * w32proc.c (syms_of_ntproc): Update.
692 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
693 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
694 (Vw32_start_process_inherit_error_mode)
695 (Vw32_start_process_share_console)
696 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
697 (Vsystem_name): Remove declaration.
698 * w32font.c (syms_of_w32font): Update.
699 (Vw32_charset_info_alist): Remove.
700 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
701 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
702 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
703 (Vw32_enable_palette, Vw32_lwindow_modifier)
704 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
705 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
706 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
707 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
708 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
709 (Vx_no_window_manager, Vx_nontext_pointer_shape)
710 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
711 (Vx_sensitive_text_pointer_shape)
712 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
713 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
714 (w32_mouse_move_interval)
715 (w32_pass_extra_mouse_buttons_to_system)
716 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
717 (w32_strict_fontnames, w32_strict_painting): Remove.
718 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
719 (Vw32_recognize_altgr, Vwindow_system_version)
720 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
721 declaration.
722 * w32console.c (syms_of_ntterm): Update.
723 (w32_use_full_screen_buffer): Remove.
724 (Vtty_defined_color_alist): Remove declaration.
725 * w16select.c (syms_of_win16select): Update.
726 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
727 * undo.c (syms_of_undo): Update.
728 (Vundo_outer_limit, Vundo_outer_limit_function)
729 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
730 Remove.
731 * textprop.c (syms_of_textprop): Update.
732 (Vchar_property_alias_alist, Vdefault_text_properties)
733 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
734 Remove.
735 * terminal.c (syms_of_terminal): Update.
736 (Vdelete_terminal_functions, Vring_bell_function): Remove.
737 * term.c (syms_of_term): Update.
738 (Vresume_tty_functions, Vsuspend_tty_functions)
739 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
740 Remove.
741 * syntax.c (syms_of_syntax): Update.
742 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
743 (open_paren_in_column_0_is_defun_start)
744 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
745 (words_include_escapes): Remove.
746 * search.c (syms_of_search): Update.
747 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
748 * process.c (syms_of_process): Update.
749 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
750 (delete_exited_processes): Remove.
751 * print.c (syms_of_print): Update.
752 (Vfloat_output_format, Vprint_charset_text_property)
753 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
754 (Vprint_length, Vprint_level, Vprint_number_table)
755 (Vstandard_output, print_escape_multibyte)
756 (print_escape_newlines, print_escape_nonascii, print_quoted):
757 Remove.
758 * msdos.c (syms_of_msdos): Update.
759 (Vdos_unsupported_char_glyph): Remove.
760 (unibyte_display_via_language_environment): Remove declaration.
761 * minibuf.c (syms_of_minibuf): Update.
762 (Vcompletion_regexp_list, Vhistory_add_new_input)
763 (Vhistory_length, Vminibuffer_completing_file_name)
764 (Vminibuffer_completion_confirm)
765 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
766 (Vminibuffer_exit_hook, Vminibuffer_help_form)
767 (Vminibuffer_history_position, Vminibuffer_history_variable)
768 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
769 (Vread_buffer_function, Vread_expression_map)
770 (completion_ignore_case, enable_recursive_minibuffers)
771 (history_delete_duplicates, minibuffer_allow_text_properties)
772 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
773 Remove.
774 * marker.c (syms_of_marker): Update.
775 (byte_debug_flag): Remove.
776 * macros.c (syms_of_macros): Update.
777 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
778 * lread.c (syms_of_lread): Update.
779 (Vafter_load_alist, Vbyte_boolean_vars)
780 (Vbytecomp_version_regexp, Vcurrent_load_list)
781 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
782 (Vload_history, Vload_path, Vload_read_function)
783 (Vload_source_file_function, Vload_suffixes, Vobarray)
784 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
785 (Vread_symbol_positions_list, Vread_with_symbol_positions)
786 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
787 (force_load_messages, load_convert_to_unibyte)
788 (load_dangerous_libraries, load_force_doc_strings)
789 (load_in_progress): Remove.
790 * keymap.c (syms_of_keymap): Update.
791 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
792 (Vminibuffer_local_completion_map)
793 (Vminibuffer_local_filename_completion_map)
794 (Vminibuffer_local_filename_must_match_map)
795 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
796 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
797 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
798 Remove.
799 * keyboard.c (syms_of_keyboard): Update.
800 (Vauto_save_timeout, Vcommand_error_function)
801 (Vcommand_hook_internal, Vdeactivate_mark)
802 (Vdeferred_action_function, Vdeferred_action_list)
803 (Vdisable_point_adjustment, Vdouble_click_time)
804 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
805 (Vfunction_key_map, Vglobal_disable_point_adjustment)
806 (Vhelp_char, Vhelp_event_list, Vhelp_form)
807 (Vinput_method_function, Vinput_method_previous_message)
808 (Vkey_translation_map, Vlast_event_frame)
809 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
810 (Vminibuffer_message_timeout, Voverriding_local_map)
811 (Voverriding_local_map_menu_flag, Vpost_command_hook)
812 (Vpre_command_hook, Vprefix_help_command)
813 (Vsaved_region_selection, Vselect_active_regions)
814 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
815 (Vthis_command, Vthis_command_keys_shift_translated)
816 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
817 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
818 (Vtty_erase_char, Vunread_command_events)
819 (Vunread_input_method_events, Vunread_post_input_method_events)
820 (auto_save_interval, cannot_suspend, do_mouse_tracking)
821 (double_click_fuzz, extra_keyboard_modifiers)
822 (inhibit_local_menu_bar_menus, last_command_event)
823 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
824 (menu_prompting, meta_prefix_char, num_input_keys)
825 (num_nonmacro_input_events, polling_period, unread_command_char):
826 Remove.
827 * insdel.c (syms_of_insdel): Update.
828 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
829 * indent.c (syms_of_indent): Update.
830 (indent_tabs_mode): Remove.
831 * image.c (syms_of_image): Update.
832 (Vimage_cache_eviction_delay, Vimage_types)
833 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
834 (cross_disabled_images): Remove.
835 * fringe.c (syms_of_fringe): Update.
836 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
837 * frame.c (syms_of_frame): Update.
838 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
839 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
840 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
841 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
842 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
843 Remove.
844 * fontset.c (syms_of_fontset): Update.
845 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
846 (Vfontset_alias_alist, Vignore_relative_composition)
847 (Votf_script_alist, Vuse_default_ascent)
848 (Vvertical_centering_font_regexp): Remove.
849 * font.c (syms_of_font): Update.
850 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
851 (Vfont_weight_table, Vfont_width_table): Remove.
852 * fns.c (syms_of_fns): Update.
853 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
854 * filelock.c (syms_of_filelock): Update.
855 (Vtemporary_file_directory): Remove.
856 * fileio.c (syms_of_fileio): Update.
857 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
858 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
859 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
860 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
861 (Vinhibit_file_name_operation, Vset_auto_coding_function)
862 (Vwrite_region_annotate_functions)
863 (Vwrite_region_annotations_so_far)
864 (Vwrite_region_post_annotation_function)
865 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
866 (Vw32_get_true_file_attributes): Remove declaration.
867 * eval.c (syms_of_eval): Update.
868 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
869 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
870 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
871 (debug_on_next_call, debug_on_quit, debugger_may_continue)
872 (max_lisp_eval_depth, max_specpdl_size): Remove.
873 * emacs.c (syms_of_emacs): Update.
874 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
875 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
876 (Vinstallation_directory, Vinvocation_directory)
877 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
878 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
879 (Vsystem_configuration, Vsystem_configuration_options)
880 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
881 (inhibit_x_resources, noninteractive1): Remove.
882 * editfns.c (syms_of_editfns): Update.
883 (Vbuffer_access_fontified_property)
884 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
885 (Voperating_system_release, Vsystem_name, Vuser_full_name)
886 (Vuser_login_name, Vuser_real_login_name): Remove.
887 * dosfns.c (syms_of_dosfns): Update.
888 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
889 (dos_codepage, dos_country_code, dos_decimal_point)
890 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
891 (dos_super_key, dos_timezone_offset): Remove.
892 * doc.c (syms_of_doc): Update.
893 (Vbuild_files, Vdoc_file_name): Remove.
894 * dispnew.c (syms_of_display): Update.
895 (Vglyph_table, Vinitial_window_system)
896 (Vredisplay_preemption_period, Vstandard_display_table)
897 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
898 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
899 * dired.c (syms_of_dired): Update.
900 (Vcompletion_ignored_extensions): Remove.
901 (Vw32_get_true_file_attributes): Remove declaration.
902 * dbusbind.c (syms_of_dbusbind): Update.
903 (Vdbus_debug, Vdbus_registered_buses)
904 (Vdbus_registered_objects_table): Remove.
905 * data.c (syms_of_data): Update.
906 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
907 * composite.c (syms_of_composite): Update.
908 (Vauto_composition_function, Vauto_composition_mode)
909 (Vcompose_chars_after_function, Vcomposition_function_table):
910 Remove.
911 * coding.c (syms_of_coding): Update.
912 (Vcharset_revision_table, Vcoding_category_list)
913 (Vcoding_system_alist, Vcoding_system_for_read)
914 (Vcoding_system_for_write, Vcoding_system_list)
915 (Vdefault_process_coding_system, Venable_character_translation)
916 (Vfile_coding_system_alist, Vlast_code_conversion_error)
917 (Vlast_coding_system_used, Vlatin_extra_code_table)
918 (Vlocale_coding_system, Vnetwork_coding_system_alist)
919 (Vprocess_coding_system_alist)
920 (Vselect_safe_coding_system_function)
921 (Vstandard_translation_table_for_decode)
922 (Vstandard_translation_table_for_encode)
923 (Vtranslation_table_for_input, coding_system_require_warning)
924 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
925 (eol_mnemonic_unix, inherit_process_coding_system)
926 (inhibit_eol_conversion, inhibit_iso_escape_detection)
927 (inhibit_null_byte_detection): Remove.
928 * cmds.c (syms_of_cmds): Update.
929 (Vpost_self_insert_hook): Remove.
930 * charset.c (syms_of_charset): Update.
931 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
932 (inhibit_load_charset_map): Remove.
933 * character.c (syms_of_character): Update.
934 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
935 (Vchar_width_table, Vprintable_chars)
936 (Vscript_representative_chars, Vtranslation_table_vector)
937 (Vunicode_category_table): Remove.
938 * ccl.c (syms_of_ccl): Update.
939 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
940 (Vtranslation_hash_table_vector): Remove.
941 * category.c (syms_of_category): Update.
942 (Vword_combining_categories, Vword_separating_categories): Remove.
943 * callproc.c (syms_of_callproc): Update.
944 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
945 (Vexec_directory, Vexec_path, Vexec_suffixes)
946 (Vinitial_environment, Vprocess_environment)
947 (Vshared_game_score_directory, Vshell_file_name): Remove.
948 * callint.c (syms_of_callint): Update.
949 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
950 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
951 * bytecode.c (syms_of_bytecode): Update.
952 (Vbyte_code_meter, byte_metering_on): Remove.
953 * buffer.c (syms_of_buffer): Update.
954 (Vafter_change_functions, Vbefore_change_functions)
955 (Vchange_major_mode_hook, Vfirst_change_hook)
956 (Vinhibit_read_only, Vkill_buffer_query_functions)
957 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
958 * alloc.c (syms_of_alloc): Update.
959 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
960 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
961 (cons_cells_consed, floats_consed, garbage_collection_messages)
962 (gc_cons_threshold, gcs_done, intervals_consed)
963 (misc_objects_consed, pure_bytes_used, string_chars_consed)
964 (strings_consed, symbols_consed, vector_cells_consed): Remove.
965
966 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
967 (DEFVAR_INT): Assume global is in `globals'.
968 * alloc.c (globals): Define.
969
448c0820
TT
9702011-01-18 Tom Tromey <tromey@redhat.com>
971
972 * image.c (Vimagemagick_render_type): Remove redundant
973 definition.
974
8442d95d
TT
9752011-01-18 Tom Tromey <tromey@redhat.com>
976
977 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
978 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
979 (redisplay_window): Update.
980 (syms_of_xdisp): Update.
981
cab0ba98
TT
9822011-01-18 Tom Tromey <tromey@redhat.com>
983
984 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
985 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
986 Declare.
987 * gtkutil.c (xg_uses_old_file_dialog):
988 (xg_get_file_with_chooser):
989 (xg_tool_bar_detach_callback): Don't redeclare globals.
990
422745d0
TT
9912011-01-18 Tom Tromey <tromey@redhat.com>
992
993 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
994 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
995
7cae64b4
PE
9962011-01-18 Paul Eggert <eggert@cs.ucla.edu>
997
998 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
999 defined __GNUC__. ../configure now checks for this GCC feature,
1000 which is now also supported by IBM and Oracle compilers.
1001 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
1002 since Solaris malloc returns mult-of-8.
1003
a9faac5c 10042011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
1005
1006 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
1007
a3e44e79 10082011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 1009
6e8e6bf2
PE
1010 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
1011 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
1012 * data.c (Fnumber_to_string): Use it.
1013 * print.c (float_to_string, print_object): Likewise.
1014
4004364e
PE
1015 Include <unistd.h> unilaterally.
1016 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
1017 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
1018 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
1019 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
1020 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
1021 * xterm.c:
1022 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1023 unistd.h is always present now, possibly supplied by gnulib.
1024
e84aba69
PE
1025 * mktime.c: Remove; moving to ../lib.
1026
1e11dbe3
PE
1027 Use gnulib's mktime module.
1028 * deps.mk (mktime.o): Remove rule.
1029
fa2c4f56
PE
1030 Use gnulib's ftoastr module.
1031 * print.c: Include ftoastr.h.
1032 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
1033 Remove; no longer needed.
1034 (float_to_string): Use dtoastr rather than rolling our own code,
1035 which had an off-by-one bug on non-IEEE hosts.
1036
9a514d4a
PE
1037 Automate syncing from gnulib.
1038 * Makefile.in (lib): New macro.
1039 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
1040 ($(lib)/libgnu.a): New rule.
1041 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1042
717c30e0
PE
1043 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1044 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1045 so change the type of 'ign' to unsigned int from int.
1046
8865d794
PE
1047 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1048
4ef36a7b
PE
1049 * xterm.h (struct x_display_info): Remove stray semicolon.
1050 The extra semicolon didn't conform to the C standard.
1051 Problem reported by Sun cc.
1052
6df4097e
PE
1053 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1054 These changes make compilation easier to follow with Sun cc.
1055 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1056 EMACS_INT values without provoking overflow diagnostics.
1057 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1058 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1059 diagnostic with signed left shift.
9fba3563 1060
410ed5c3
PE
1061 * fileio.c (make_temp_name): Remove unreachable code.
1062
97be3ce3
PE
1063 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1064 Previously it was marked by preceding it with "return;", but
1065 Sun cc complains about this.
1066
9fba3563
PE
1067 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1068 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1069 which fixed Bug#2370. Caught by Sun cc.
1070
6dc1d2d3
MR
10712011-01-15 Martin Rudalics <rudalics@gmx.at>
1072
1073 * window.c (inhibit_point_swap): New variable.
1074 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1075 point this time.
1076 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1077 of setting selected_window to nil (Bug#7728).
1078
f853f599
TH
10792011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1080
8dabbfd6
SM
1081 * image.c (imagemagick_load_image, Finit_image_library):
1082 Free intermediate image after creating a MagickWand from it.
1083 Terminate MagickWand environment after image loading.
f853f599 1084
2bc92a93
MA
10852011-01-10 Michael Albinus <michael.albinus@gmx.de>
1086
1087 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1088 unexpected return values.
1089 (Fdbus_register_method): Remove connection initialization.
1090
10912011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
1092
1093 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1094 used by Fdbus_register_service.
1095 (QCdbus_request_name_replace_existing): Likewise.
1096 (QCdbus_request_name_do_not_queue): Likewise.
1097 (QCdbus_request_name_reply_primary_owner): Likewise.
1098 (QCdbus_request_name_reply_in_queue): Likewise.
1099 (QCdbus_request_name_reply_exists): Likewise.
1100 (QCdbus_request_name_reply_already_owner): Likewise.
1101 (Fdbus_register_service): New function.
1102 (Fdbus_register_method): Use Fdbus_register_service to do the name
1103 registration.
1104 (syms_of_dbusbind): Add symbols dbus-register-service,
1105 :allow-replacement, :replace-existing, :do-not-queue,
1106 :primary-owner, :existing, :in-queue and :already-owner.
1107
21a76236
CY
11082011-01-09 Chong Yidong <cyd@stupidchicken.com>
1109
1110 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1111 when removing extra buttons.
1112
3d91e302
CY
11132011-01-08 Chong Yidong <cyd@stupidchicken.com>
1114
1115 * fns.c (Fyes_or_no_p): Doc fix.
1116
0d23ffb5
AS
11172011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1118
1119 * fns.c (Fyes_or_no_p): Add usage.
1120
9dc3366b
GM
11212011-01-08 Glenn Morris <rgm@gnu.org>
1122
d0981f82
GM
1123 * makefile.w32-in ($(EMACS)):
1124 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1125
9dc3366b
GM
1126 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1127 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1128
466cbae9
AS
11292011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1130
1131 * image.c (imagemagick_load_image): Fix some resource leaks and
1132 error handling.
1133
8c51d2a2
CY
11342011-01-07 Chong Yidong <cyd@stupidchicken.com>
1135
1136 * fns.c (Fyes_or_no_p): Accept format string args.
1137
66b7b0fe
GM
11382011-01-07 Glenn Morris <rgm@gnu.org>
1139
1140 * emacs.c (no_site_lisp): New int.
1141 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1142 (main): Set no_site_lisp.
1143 (standard_args): Add --no-site-lisp.
1144 * lisp.h (no_site_lisp): New int.
1145 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1146 directories to Vload_path.
1147
2018939f
AS
11482011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1149
1150 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1151
6ed843e5
MA
11522011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1153
8dabbfd6 1154 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
1155 dont_register_service. Updated docstring accordingly.
1156
3f9b7090
GM
11572011-01-04 Glenn Morris <rgm@gnu.org>
1158
1159 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1160
d82bce4a
EZ
11612011-01-03 Eli Zaretskii <eliz@gnu.org>
1162
1163 * image.c (png_jmpbuf): Remove definition.
1164 (my_png_error, png_load): Don't use png_jmpbuf.
1165
7c420169
CY
11662011-01-02 Eli Zaretskii <eliz@gnu.org>
1167
1168 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1169
11702011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
1171
1172 * image.c <Qlibpng_version>: New variable.
1173 (syms_of_image): Intern and staticpro it. Set its value to the
1174 version of PNG library we were compiled with.
1175 (my_png_error, png_load): Avoid GCC warnings about direct access
1176 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
1177 (png_jmpbuf): New macro.
1178 (my_png_error, png_load): Use it instead of #ifdef'ing according
1179 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 1180
7c420169 11812011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
1182
1183 * .gdbinit (xgetptr): Fix the union+lsb case.
1184 (xbacktrace): Fix the union case.
1185
7c420169 11862011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
1187
1188 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1189 different from selected-window's.
1190
7c420169 11912011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 1192
71fe378d
EZ
1193 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1194 equivalent of a menu item when the key sequence is given by the
1195 `:keys' attribute. (Bug#7662)
1196
2e4ab211
EZ
1197 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1198 the basic faces are supported.
1199
7c420169 12002011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
1201
1202 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1203
7c420169 12042011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
1205
1206 * xdisp.c (Fformat_mode_line): Fix last change.
1207
7c420169 12082011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
1209
1210 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1211 faces (Bug#7587).
1212
7c420169 12132011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
1214
1215 * fileio.c (Fexpand_file_name): One more doc fix.
1216
3afff00e
CY
12172011-01-01 Chong Yidong <cyd@stupidchicken.com>
1218
1219 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1220 image or label in the container.
1221 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1222 (xg_show_toolbar_item): Function deleted.
1223 (xg_tool_item_stale_p): New function.
1224 (update_frame_tool_bar): Calculate tool-bar style once per call.
1225 Instead of hiding text labels, omit them. Don't use
1226 xg_show_toolbar_item; create new GtkToolItems from scratch if
1227 necessary, instead of trying to re-use them. This avoids an
1228 annoying animation when changing tool-bars.
1229
aeb7e951
JD
12302010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1231
1232 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1233 title and buffer filename only for RepresentedFilename.
1234 Handle bad UTF-8 in buffer name (Bug#7517).
1235
5bbb4727
JD
12362010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1237
1238 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1239
1240 * nsfns.m (ns_set_name_iconic): Remove.
1241 (ns_set_name_internal): New function (Bug#7517).
1242 (Vicon_title_format): Extern declare.
1243 (ns_set_name): Call ns_set_name_internal.
1244 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1245 (x_implicitly_set_name): Ditto.
1246 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1247 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1248
f1aab3ff
ŠN
12492010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1250
1251 * window.c (syms_of_window): Add missing defsubr for
1252 window-use-time.
1253
365525b3
AS
12542010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1255
1256 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1257 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1258
59fc5cf9
AS
12592010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1260
2f7c71a1
AS
1261 * buffer.c: Remove unused declarations.
1262 * buffer.h: Likewise.
1263 * charset.h: Likewise.
1264 * composite.h: Likewise.
1265 * dispextern.h: Likewise.
1266 * dispnew.c: Likewise.
1267 * font.h: Likewise.
1268 * fontset.c: Likewise.
1269 * fontset.h: Likewise.
1270 * intervals.h: Likewise.
1271 * keymap.h: Likewise.
1272 * lisp.h: Likewise.
1273 * syntax.c: Likewise.
1274 * syntax.h: Likewise.
1275 * termhooks.h: Likewise.
1276 * window.h: Likewise.
1277 * xsettings.h: Likewise.
1278 * xterm.c: Likewise.
1279 * xterm.h: Likewise.
1280
1281 * chartab.c (sub_char_table_ref): Make static.
1282 * dispnew.c (line_hash_code, required_matrix_height)
1283 (required_matrix_width): Likewise.
1284 * eval.c (interactive_p, apply_lambda): Likewise.
1285 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1286 Likewise.
1287 * font.c (QCadstyle, QCregistry, font_make_spec)
1288 (font_parse_fcname, font_encode_char, font_at): Likewise.
1289 * frame.c (x_frame_get_arg): Likewise.
1290 * keymap.c (get_keyelt): Likewise.
1291 * lread.c (read_filtered_event): Likewise.
1292 * print.c (write_string_1): Likewise.
1293 * window.c (delete_window, window_height, window_width)
1294 (foreach_window): Likewise.
1295 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1296 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1297 (xembed_send_message): Likewise.
1298
1299 * eval.c (run_hook_list_with_args): Delete.
1300 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1301 * terminal.c (get_terminal_param): Likewise.
1302 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1303
c4b607ed
AS
1304 * scroll.c: Fix comment.
1305
59fc5cf9
AS
1306 * dispnew.c (add_window_display_history)
1307 (add_frame_display_history, glyph_row_slice_p)
1308 (find_glyph_row_slice, flush_stdout)
1309 (check_matrix_pointer_lossage, matrix_row)
1310 (check_matrix_invariants, check_window_matrix_pointers)
1311 (check_matrix_pointers, window_to_frame_vpos)
1312 (window_to_frame_hpos): Prototize.
1313 * textprop.c (erase_properties): Likewise.
1314
a65b85b5
SM
13152010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1316
17870c01
SM
1317 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1318 (print_preprocess): Fix handling of uninterned symbols in last change.
1319
a65b85b5
SM
1320 * print.c (print, print_preprocess, print_object): Use a hash table
1321 rather than a linear table for Vprint_number_table.
1322
f13183cf
CY
13232010-12-20 Chong Yidong <cyd@stupidchicken.com>
1324
1325 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1326
94975270
CY
13272010-12-20 Chong Yidong <cyd@stupidchicken.com>
1328
1329 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1330 (parse_tool_bar_item): Use it to obtain image separators for
1331 displays not using native tool-bar separators.
1332
1333 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1334 specially, since this is now done in parse_tool_bar_item.
1335
ef1b0ba7
SM
13362010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1337
1338 Minor clean up to silence some gcc warnings.
1339 * window.c (Fset_window_buffer):
1340 * xterm.c (x_set_frame_alpha): Restructure code to silence
1341 compiler warning.
1342 (handle_one_xevent): Remove unused var `p'.
1343 (do_ewmh_fullscreen): Remove unused var `lval'.
1344 (xembed_set_info): Remove unused var `atom'.
1345 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1346 compiler warning.
1347 * fontset.c (fontset_id_valid_p, dump_fontset):
1348 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1349 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1350 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1351 label only when it's used.
1352 * image.c (x_create_bitmap_from_xpm_data):
1353 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1354 its callers.
1355 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1356 `consumed_chars'.
1357 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1358 (decode_coding_emacs_mule): Remove unused label `retry'.
1359 (detect_eol): Add parens to silence compiler warning.
1360 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1361 it's used to silence the compiler.
1362 (make_number): Modernize k&r declaration.
1363 (mark_char_table): Add parens to silence compiler warning.
1364
4039c786
CY
13652010-12-17 Chong Yidong <cyd@stupidchicken.com>
1366
1367 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1368 tool-bar maps.
1369 (menu_separator_name_p): New function, from gtkutil.c.
1370 (separator_names): Move from gtkutil.c.
1371
1372 * keyboard.h (menu_separator_name_p): Add prototype.
1373
1374 * gtkutil.c (XG_BIN_CHILD): New macro.
1375 (xg_get_menu_item_label, xg_update_menubar)
1376 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1377 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1378 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
1379 (create_menus, xg_update_submenu, update_frame_tool_bar):
1380 Use menu_separator_name_p.
4039c786
CY
1381
1382 * nsmenu.m (name_is_separator): Function deleted.
1383 (addItemWithWidgetValue): Use menu_separator_name_p.
1384
1385 * w32menu.c (name_is_separator): Function deleted.
1386 (add_menu_item): Use menu_separator_name_p.
1387
aa936e8e
JD
13882010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1389
1390 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1391 same as the background, use the face forground as cursor.
1392
f49d1f52 13932010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
1394
1395 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1396
f49d1f52 13972010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 1398
f0559026
EZ
1399 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1400 (face_before_or_after_it_pos, next_element_from_string)
1401 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1402 calculations of maximum string length before calling
1403 string_char_and_length and STRING_CHAR_AND_LENGTH.
1404 (string_char_and_length): Update commentary: MAXLEN is no longer
1405 needed.
1406
f49d1f52 14072010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
1408
1409 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1410 as (Qsave_session arg).
1411
1412 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1413 (smc_die_CB): Make an event with arg Qt.
1414 (Fhandle_save_session): If event has Qt as argument,
1415 call Fkill_emacs (Bug#7552).
1416
f49d1f52
SM
14172010-12-13 Chong Yidong <cyd@stupidchicken.com>
1418
1419 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1420
14212010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
1422
1423 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1424
f49d1f52 14252010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
1426
1427 * dispextern.h (struct it): New member overlay_strings_charpos.
1428
1429 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1430 charpos where we computed n_overlay_strings.
1431 (next_overlay_string): Load overlay strings at recorded position,
1432 which may not be the same as the iterator's charpos (Bug#7016).
1433
f49d1f52 14342010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
1435
1436 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1437 obscured due to a vscroll (Bug#7537).
1438
f49d1f52 14392010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
1440
1441 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1442
1443 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1444 Use FRAME_TOOLBAR_HEIGHT.
1445 (x_set_offset): Handle XNegative and YNegative in
1446 f->size_hint_flags (Bug#7510).
1447
39321b94
EZ
14482010-12-11 Eli Zaretskii <eliz@gnu.org>
1449
1450 * w32fns.c (Fx_show_tip): Call try_window with last argument
1451 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1452 solved. Round up the tip height to an integral multiple of the
1453 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1454 (Bug#7398)
1455
ec1b9b17
GM
14562010-12-08 Glenn Morris <rgm@gnu.org>
1457
1458 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1459
3c2317e8
LMI
14602010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1461
1462 * xml.c (parse_region): Ignore blank HTML nodes.
1463 (make_dom): Return CDATA sections (like <style>foo</style>) as
1464 text nodes.
1465
bba3e508
SM
14662010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1467
1468 * lread.c (read1): Allow newstyle unquote outside of backquote.
1469 Disallow old-style backquotes inside new-style backquotes.
1470 Don't count unquotes to figure out when we're "syntactically inside
1471 but semantically outside of a backquote" any more.
1472 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1473 to all contexts.
1474
d23d8608
CY
14752010-12-05 Chong Yidong <cyd@stupidchicken.com>
1476
1477 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1478
d6a003a8
AS
14792010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1480
1481 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1482 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1483 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1484
201ef780
AS
14852010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1486
1487 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1488 bit-field.
1489 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1490 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1491 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1492 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1493 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1494 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1495 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1496 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1497 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1498 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1499 * m/hp800.h: Remove file.
1500 * m/mips.h: Remove file.
1501
146490c3
JD
15022010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1503
1504 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1505 with cursor color and draw a rectangle around the image (Bug#7412).
1506
babc8f0d
AS
15072010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1508
1509 * frame.c (x_set_font): Remove unused variable.
1510
9583e9a0
JD
15112010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1512
dd723bbd
JD
1513 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1514
9583e9a0
JD
1515 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1516 drawing text under filled box cursor (Bug#7479).
1517
07976ae3 15182010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
1519
1520 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1521 i.e. integer.
bba3e508 1522 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
1523 (init_charset_once): Likewise.
1524
bba3e508
SM
1525 * charset.h (emacs_mule_charset): Adjust the prototype.
1526 Delete duplicated extern.
b84ae584
KH
1527
1528 * coding.c (emacs_mule_char): Adjust for the change of
1529 emacs_mule_charset.
1530
1531 * lread.c (read_emacs_mule_char): Adjust for the change of
1532 emacs_mule_charset.
1533
07976ae3 15342010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
1535
1536 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1537 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1538
07976ae3 15392010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
1540
1541 * alloc.c (mark_terminals): Ensure that the image cache is marked
1542 even if the terminal object was marked earlier (Bug#6301).
1543
35f1de62
CY
15442010-11-21 Chong Yidong <cyd@stupidchicken.com>
1545
1546 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1547
07976ae3 15482010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
1549
1550 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1551 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1552 Use 23 as menubar height if 0. (Bug#7425).
1553
8547874a
EZ
15542010-11-26 Eli Zaretskii <eliz@gnu.org>
1555
228482b2
EZ
1556 * xdisp.c (set_message_1): Force paragraph direction in echo area
1557 be left-to-right.
1558
8547874a
EZ
1559 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1560 when the click is on the header or mode line.
1561
1e2dddbe
EZ
15622010-11-25 Eli Zaretskii <eliz@gnu.org>
1563
1564 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1565 `cursor' property of the first character in overlay strings.
12365240 1566 (Bug#7474) (Bug#7481)
1e2dddbe 1567
50795d1f
JD
15682010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1569
1570 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1571 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
1572 (keyDown): Parse left and right keys separately (Bug#7458).
1573 Compare Left key masks exactly (Bug#7458).
50795d1f 1574
f8ab8c1f
EZ
15752010-11-23 Eli Zaretskii <eliz@gnu.org>
1576
1577 * intervals.c (temp_set_point_both): Define before calling, to
1578 avoid GCC warnings.
1579
2e8a4797
DN
15802010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1581
b29116ef
DN
1582 * nsmenu.m: Use #include <config.h> instead of "config.h".
1583
b932f8b1
DN
1584 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1585 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1586 Move declarations ...
1587 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1588 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1589 ... here.
1590
42c8bc9b
DN
1591 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1592 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1593 (gdb_pvec_type):
1594 * print.c (print_output_debug_flag):
1595 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1596 (safe_debug_print): New declaration.
1597
2e8a4797
DN
1598 * xterm.c:
1599 * systty.h:
1600 * sound.c: Include <sys/ioctl.h> unconditionally.
1601
b609f591
YM
16022010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1603
1604 * alloc.c (mark_maybe_object): Return early if given a Lisp
1605 integer (Bug#6301).
1606
731e263a
KB
16072010-11-21 Ken Brown <kbrown@cornell.edu>
1608
1609 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1610
b7d1e144
JD
16112010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1612
1613 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1614 Define (Bug#7458).
1615 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1616 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1617 NSRightControlKeyMask also (Bug#7458).
1618 (keyDown): Ditto (Bug#7458).
1619 (syms_of_nsterm): Defvar ns-right-command-modifier and
1620 ns-right-control-modifier (Bug#7458).
1621
b7982059
DN
16222010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1623
bee3419f
DN
1624 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1625 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1626
b7982059
DN
1627 * intervals.h (temp_set_point, temp_set_point_both):
1628 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1629
01664ed1
KB
16302010-11-20 Ken Brown <kbrown@cornell.edu>
1631
1632 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1633
7c2d713b
EZ
16342010-11-20 Eli Zaretskii <eliz@gnu.org>
1635
1636 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1637 \xNNNNNN for hex-code display of glyphless characters.
1638
d2bd5189
JD
16392010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1640
1641 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1642 Set important to ! vert_only.
1643 (xg_show_toolbar_item): Don't show label horizontally if
1644 tool item isn't important.
1645 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1646 xg_make_tool_item, or update important on existing tool item.
1647
1648 * keyboard.c (QCvert_only): New variable.
1649 (parse_tool_bar_item): Check for QCvert_only.
1650 (syms_of_keyboard): Initialize QCvert_only.
1651
1652 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1653
d9a95e67
EZ
16542010-11-20 Eli Zaretskii <eliz@gnu.org>
1655
1656 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1657 same in-line.
1658
b6557553
AS
16592010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1660
1661 * xfaces.c (lookup_face): Make static.
1662 * dispnew.c (copy_row_except_pointers): Likewise.
1663 * syntax.c (dec_bytepos): Likewise.
1664 (inc_bytepos): Remove.
1665 * dispextern.h (lookup_face): Remove declaration.
1666
f48fe1f0
EZ
16672010-11-19 Eli Zaretskii <eliz@gnu.org>
1668
1669 * xdisp.c (set_cursor_from_row): Display cursor after all the
1670 glyphs that come from an overlay. Don't overstep the last glyph
1671 when skipping glyphs from an overlay. (Bug#6687)
1672
654ef137
DN
16732010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1674
84dfc8a7
DN
1675 * alloc.c (refill_memory_reserve): Move declaration ...
1676 * lisp.h (refill_memory_reserve): ... here.
1677
94fa3833
DN
1678 * strftime.c (_strftime_copytm): Add declaration.
1679
dde990a0
DN
1680 * callproc.c (syms_of_callproc): Use intern_c_string.
1681
50c77428
DN
1682 Move declarations from .c files to .h files.
1683 * process.c (timers_run):
1684 * minibuf.c (quit_char):
1685 * lread.c (read_emacs_mule_char):
1686 * keyboard.c (minibuf_level, message_enable_multibyte)
1687 (pending_malloc_warning):
1688 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1689 (Qonly): Remove declarations.
1690 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1691 (Vselect_active_regions):
1692 * keyboard.h (timers_run): Add declarations.
1693
654ef137
DN
1694 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1695 (tm_diff): Convert definitions to standard C.
1696 (extra_args_spec_iso): Remove, unused.
1697
4a47c275 16982010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
1699
1700 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1701
1702 * config.in (HAVE_G_TYPE_INIT): New symbol.
1703
4a47c275 17042010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
1705
1706 * lread.c (Fload): Mention `load-in-progress' and
1707 `load-file-name'. (Bug#7346)
1708
86520d8c
EZ
1709 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1710 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1711 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1712 subprocesses. Use buffer_free only ifdef subprocesses.
1713
1714 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1715 the subprocesses version, not in the non-subprocesses one.
1716
794a4b6d
EZ
1717 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1718
146d267b
EZ
17192010-11-17 Eli Zaretskii <eliz@gnu.org>
1720
1721 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1722 lines on text-mode terminals. (bug#7417)
1723
fad0d565
SM
17242010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1725
1726 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1727 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1728
6b4bb703
KH
17292010-11-17 Kenichi Handa <handa@m17n.org>
1730
1731 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1732 change (set charset-ID list instead of charset-symbol list).
1733
9173a8fb
CY
17342010-11-16 Chong Yidong <cyd@stupidchicken.com>
1735
1736 * keyboard.c (make_lispy_position): For text area clicks, record Y
1737 pixel position relative to the text area, excluding header line.
1738 Also change X and Y to Lisp_Objects, not pointers; don't return
1739 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1740 buffer_posn_from_coords counting from the start of the text area.
1741 (Fposn_at_x_y, make_lispy_event): Callers changed.
1742
1743 * window.c (coordinates_in_window): Change X and Y to ints rather
1744 than pointers; don't return coordinates via pointers.
1745 (struct check_window_data): Change X and Y from pointers to ints.
1746 (window_from_coordinates): Remove args WX and WY; don't return
1747 coordinates via pointers.
1748 (Fcoordinates_in_window_p, window_from_coordinates):
1749 (check_window_containing, Fwindow_at): Callers changed.
1750 (window_relative_x_coord): New function.
1751
1752 * window.h (window_from_coordinates, window_relative_x_coord):
1753 Update prototypes.
1754
1755 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1756 the start of the text area.
1757
1758 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1759 call. Use window_relative_x_coord.
1760 (note_mouse_highlight): Change window_from_coordinates call.
1761
1762 * w32term.c (w32_read_socket):
1763 * msdos.c (dos_rawgetc):
1764 * xterm.c (handle_one_xevent): Likewise.
1765
d2762c86
DN
17662010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1767
1768 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1769 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1770 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1771 Convert definitions to standard C.
1772 * regex.c: Do not include <stdlib.h>, config.h does it.
1773 Include unistd.h.
1774 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1775 (regerror, regfree): Convert definitions to standard C.
1776 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1777 (__mktime_internal): Convert definitions to standard C.
1778
c2f0866a
DN
17792010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1780
42a7e7f1
DN
1781 * w32proc.c:
1782 * w32inevt.c:
1783 * w32heap.c:
1784 * w32.c: Remove config.h include guards.
1785
67802943
DN
1786 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1787 No code changes.
1788
f0e1af46
DN
1789 * process.c: Include <sys/ioctl.h> unconditionally,
1790 keyboard.c already does it.
1791
c2f0866a
DN
1792 * keyboard.c (pending_malloc_warning): Add const to match
1793 definition in alloc.c.
1794 (Fset_input_interrupt_mode): Simplify #ifdefs.
1795
92d3ab7e
DN
17962010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1797
12e610e8
DN
1798 Clean up systty.h macros.
1799 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1800 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1801 definition in all uses.
1802 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1803 * sysdep.c (discard_tty_input, child_setup_tty)
1804 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1805 * emacs.c (shut_down_emacs):
1806 * callproc.c (child_setup):
1807 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1808
92d3ab7e
DN
1809 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1810
a3e6bad4
CY
18112010-11-14 Chong Yidong <cyd@stupidchicken.com>
1812
1813 * w32fns.c (Fx_create_frame):
1814 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1815 resource here; it's now done at startup.
1816
5a232ffb
J
18172010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1818
1819 * xterm.c (set_wm_state): Add Qnil to final cons.
1820
1821 * xselect.c (x_send_client_event): Remove unused variables cons and
1822 size.
1823
24021b38
YM
18242010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1825
1826 * keyboard.c (modify_event_symbol) : Add const to array elements of
1827 arg NAME_TABLE.
1828 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1829 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1830 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1831 Add const to array elements.
1832 (scroll_bar_parts): Make static. Fix position of const.
1833
1834 * w32fns.c (lispy_function_keys): Add const to extern.
1835
1836 * w32inevt.c (lispy_function_keys): Likewise.
1837
afa42fe3
CY
18382010-11-14 Chong Yidong <cyd@stupidchicken.com>
1839
1840 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1841 resource here; it's now done at startup.
1842
53260a94
DN
18432010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1844
c865c575 1845 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 1846
c865c575 1847 Fix compilation on Solaris.
ff2e8052
DN
1848 * sysdep.c: Do not #include <term.h>.
1849 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1850
53260a94
DN
1851 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1852
933e29ff
J
18532010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1854
1855 * xterm.c (set_wm_state): Don't put Atom in cons, call
1856 make_fixnum_or_float on them first.
1857 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1858 Xatom_net_supported correctly.
1859
1860 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1861 (Fx_send_client_event): to here.
1862
a048073e
MR
18632010-11-13 Martin Rudalics <rudalics@gmx.at>
1864
1865 * window.c (Fwindow_use_time): New function.
1866
0eb025fb
EZ
18672010-11-13 Eli Zaretskii <eliz@gnu.org>
1868
1869 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1870 zero-width characters.
1871
1872 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1873
1874 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1875 box before drawing the glyphs inside it.
1876
1877 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1878
bba3e508
SM
1879 * dispextern.h (enum glyphless_display_method):
1880 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1881 All users changed.
0eb025fb 1882
bba3e508
SM
1883 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1884 Fix comments.
0eb025fb
EZ
1885 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1886 whitespace in "[]", to simulate a box. Don't use uninitialized
1887 variable `width'.
1888
c869cc37
JD
18892010-11-11 Julien Danjou <julien@danjou.info>
1890
2d9074ba
JD
1891 * xsettings.c (init_xsettings): Use already fetch atoms.
1892
1893 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1894 from dpyinfo.
1895
1896 * xselect.c (Fx_send_client_event): Split and create
1897 x_send_client_event.
1898
1899 * lisp.h: Do not EXFUN Fx_send_client_event.
1900
1901 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1902 from dpyinfo.
1903 (wm_supports): Use atoms from dpyinfo.
1904 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1905 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1906 (xembed_set_info): Use atoms from dpyinfo.
1907 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1908 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1909 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1910 Get all atoms in one round-trip.
1911 (set_wm_state): Use x_send_client_event rather than
1912 Fx_send_client_event, using Atom directly.
1913 (x_ewmh_activate_frame): Ditto.
1914 (x_set_sticky): Pass atoms to set_wm_state.
1915 (do_ewmh_fullscreen): Ditto.
1916
1917
1918 * xterm.h (x_display_info): Add Xatom_net_supported,
1919 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1920 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1921
c869cc37
JD
1922 * xfns.c (Fx_show_tip): Fix typo in docstring.
1923
1a4236ea
SM
19242010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1925
1926 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1927 it's not negative.
1928
3106121c
YM
19292010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1930
1931 * font.c (font_filter_properties): Add const to array elements of
1932 properties args.
1933
1934 * font.h (font_filter_properties): Likewise.
1935
1936 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1937 elements.
1938
1939 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1940
da1fec2b
MA
19412010-11-10 Michael Albinus <michael.albinus@gmx.de>
1942
1943 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1944 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1945 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1946 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1947 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1948
bd6bc222
GM
19492010-11-10 Glenn Morris <rgm@gnu.org>
1950
1951 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1952
c0098065
EZ
19532010-11-09 Eli Zaretskii <eliz@gnu.org>
1954
bd6bc222 1955 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 1956
d607b96b 19572010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
1958
1959 * image.c (free_image): Don't garbage the frame here, since this
1960 function can be called while redisplaying (Bug#7210).
1961 (uncache_image): Garbage the frame here (Bug#6426).
1962
d607b96b 19632010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 1964
d607b96b
SM
1965 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1966 parent is the root window. Check this after traversing window tree.
184765cc 1967
d607b96b 1968 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 1969
d607b96b 1970 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 1971
d607b96b
SM
1972 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1973 before traversing window tree (Bug#5721).
c2e124a9 1974
27f92be7
J
19752010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1976
66b16767
J
1977 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
1978
25f38310
SM
1979 * xdisp.c (note_mode_line_or_margin_highlight):
1980 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 1981
a971c0a7
EZ
19822010-11-06 Eli Zaretskii <eliz@gnu.org>
1983
1984 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
1985 adjust width of tool-tip frame to the width of text, excluding the
1986 stretch glyph at the beginning of R2L glyph rows.
1987
1988 * w32fns.c (Fx_show_tip): Likewise.
1989
80417b95
JD
19902010-11-06 Jan Djärv <jan.h.d@swipnet.se>
1991
1992 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 1993 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 1994
28118eb6
EZ
19952010-11-05 Eli Zaretskii <eliz@gnu.org>
1996
c1fc2d3a 1997 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
1998
1999 * term.c: Remove static mouse_face_* variables. All users
2000 changed.
2001 (term_show_mouse_face, term_clear_mouse_face)
2002 (fast_find_position, term_mouse_highlight): Functions deleted.
2003 (tty_draw_row_with_mouse_face): New function.
2004 (term_mouse_movement): Call note_mouse_highlight instead of
2005 term_mouse_highlight.
2006
bbf534ce
EZ
2007 * nsterm.m (ns_update_window_begin, ns_update_window_end)
2008 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
2009 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
2010 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
2011 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
2012 Replace Display_Info with Mouse_HLInfo everywhere where
2013 mouse_face_* members were accessed for mouse highlight purposes.
2014
2015 * xterm.c (x_update_window_begin, x_update_window_end)
2016 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
2017 (handle_one_xevent, x_free_frame_resources, x_term_init):
2018 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
2019 members were accessed for mouse highlight purposes.
2020
2021 * w32term.c (x_update_window_begin, x_update_window_end)
2022 (x_update_end, w32_read_socket, x_free_frame_resources)
2023 (w32_initialize_display_info): Replace Display_Info with
2024 Mouse_HLInfo everywhere where mouse_face_* members were accessed
2025 for mouse highlight purposes.
2026
2027 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
2028 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
2029 unless the frame is on a window-system.
c1fc2d3a 2030 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
2031 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
2032 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2033 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2034 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
2035 Replace Display_Info with Mouse_HLInfo everywhere where
2036 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 2037 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
2038 HAVE_WINDOW_SYSTEM conditional.
2039 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
2040 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
2041 (try_window_id) [HAVE_GPM || MSDOS]:
2042 Call x_clear_window_mouse_face.
d009ae66 2043 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
2044 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2045 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2046 calling draw_glyphs directly.
d009ae66
EZ
2047 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2048 (cursor_in_mouse_face_p, rows_from_pos_range)
2049 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2050 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2051 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2052 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2053 fragments.
2054 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2055 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2056 integer.
2057 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
2058 (x_consider_frame_title, tool_bar_lines_needed):
2059 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
2060 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2061 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2062 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2063 part.
d009ae66
EZ
2064
2065 * dispnew.c (mirror_make_current): Set Y coordinate of the
2066 mode-line and header-line rows.
c1fc2d3a
EZ
2067 (init_display): Setup initial frame's output_data for text
2068 terminal frames.
d009ae66 2069
c1fc2d3a
EZ
2070 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2071 its own definition on msdos.c.
d009ae66
EZ
2072
2073 * msdos.c (show_mouse_face, clear_mouse_face)
2074 (fast_find_position, IT_note_mode_line_highlight)
2075 (IT_note_mouse_highlight): Functions deleted.
2076 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2077 instead of IT_note_mouse_highlight.
2078 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
2079 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2080 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2081 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2082 where mouse_face_* members were accessed for mouse highlight
2083 purposes.
2084
2085 * msdos.h (initialize_msdos_display): Add prototype.
2086
2087 * frame.h (MOUSE_HL_INFO): New macro.
2088
2089 * lisp.h (Mouse_HLInfo): New data type.
2090
2091 * xterm.h (struct x_display_info):
2092 * w32term.h (struct w32_display_info):
2093 * nsterm.h (struct ns_display_info):
2094 * termchar.h (struct tty_display_info): Use it instead of
2095 mouse_face_* members.
2096
2097 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2098 1st argument.
2099 (frame_to_window_pixel_xy, note_mouse_highlight)
2100 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2101 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2102 HAVE_WINDOW_SYSTEM conditional.
2103 (draw_row_with_mouse_face): Declare prototype.
2104 (tty_draw_row_with_mouse_face): Declare prototype.
2105
6e8d7c47
EZ
21062010-11-05 Eli Zaretskii <eliz@gnu.org>
2107
bba3e508
SM
2108 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2109 Remove unused variables.
6e8d7c47 2110
f31ba3f0
AR
21112010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2112
2113 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2114 logic pointed out by Eli Zaretskii.
2115
448e17d6
LMI
21162010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2117
0c3a9a9f
GM
2118 * coding.c (coding-category-list): Refer to set-coding-system-priority
2119 instead of the obsolete set-coding-priority in the doc string.
448e17d6 2120
f31ba3f0 2121
3fdebbf9 21222010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
2123
2124 * nsfont.m (nsfont_draw): Correct previous patch to return
2125 correct value.
2126 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2127 don't change the method signature, change the return.
2128
21292010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
2130
2131 * nsfont.m (nsfont_draw)
2132 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 2133 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 2134
17c0c952
JD
21352010-11-03 Julien Danjou <julien@danjou.info>
2136
2137 * image.c (gif_load): Add support for transparency and specified
2138 :background.
2139
b18fad6d
KH
21402010-11-01 Kenichi Handa <handa@m17n.org>
2141
2142 * dispextern.h (lookup_glyphless_char_display): Extern it.
2143
2144 * termhooks.h (struct terminal): New member charset_list.
2145
2146 * coding.c (Fset_terminal_coding_system_internal): Set the
2147 `charset_list' member of struct terminal.
2148
a8039db1 2149 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
2150 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2151
2152 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2153 (lookup_glyphless_char_display): Set it->what at the end.
2154 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2155 (last_glyphless_glyph_merged_face_id): Make them non-static.
2156
a8039db1
JB
2157 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2158 Fix the arg with_background for font->driver->draw.
65b6b59a 2159
a8039db1 21602010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 2161
a8039db1
JB
2162 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2163 Surround chp by parentheses.
0269bd90 2164
a8039db1 21652010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
2166
2167 Implement various display methods for glyphless characters.
2168
2169 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2170 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2171 (Qzero_width): New variables.
2172 (THIN_SPACE_WIDTH): New macro.
2173 (lookup_glyphless_char_display): New funciton.
2174 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2175 (last_glyphless_glyph_merged_face_id): New variables.
2176 (get_next_display_element): Check glyphless characters.
2177 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2178 last_glyphless_glyph_face_id.
2179 (fill_glyphless_glyph_string): New function.
2180 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2181 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2182 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2183 (x_produce_glyphs): If a suitable font is not found, produce a
2184 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2185 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2186 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2187 Qzero_width.
2188 (Vglyphless_char_display): Declare it as a Lisp variable.
2189
2190 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
2191 (struct glyph): Change the size of the member "type" to 3.
2192 Add glyphless to the union slice and u.
b2cca856
KH
2193 (enum display_element_type): Add IT_GLYPHLESS.
2194 (enum glyphless_display_method): New enum.
2195 (struct it): New member glyphless_method.
2196 (Vglyphless_char_display): Extern it.
2197
2198 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2199 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2200
a8039db1 2201 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
2202 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2203
2204 * nsterm.m (ns_draw_glyph_string): Handle the case
2205 GLYPHLESS_GLYPH (the detail is not yet implemented).
2206
c8c59954
GM
22072010-10-31 Glenn Morris <rgm@gnu.org>
2208
80696982
GM
2209 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2210
c8c59954
GM
2211 * frame.c (syms_of_frame) <tool-bar-mode>:
2212 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2213
46eadc7a
CY
22142010-10-31 Chong Yidong <cyd@stupidchicken.com>
2215
2216 * xterm.c (x_connection_closed): Print informative error message
2217 when aborting on GTK. This requires using shut_down_emacs
2218 directly instead of Fkill_emacs.
2219
ffe75e6b
EZ
22202010-10-29 Eli Zaretskii <eliz@gnu.org>
2221
2222 * emacs.c (main): Call syms_of_filelock unconditionally.
2223
2224 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2225 clause, but keep part of it conditioned on CLASH_DETECTION.
2226
9d794026
GM
22272010-10-29 Glenn Morris <rgm@gnu.org>
2228
4f4f2973
GM
2229 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2230 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2231 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2232 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2233 Sync docs between X, W32, NS.
2234
9d794026
GM
2235 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2236 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2237
d46f6bbb
JB
22382010-10-26 Juanma Barranquero <lekktu@gmail.com>
2239
2240 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2241 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2242
2e35f1a2
EZ
22432010-10-26 Eli Zaretskii <eliz@gnu.org>
2244
2245 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 2246 zero or negative. (Bug#7281)
2e35f1a2 2247
8daaeda6
J
22482010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2249
2250 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2251
6a5c2175
GM
22522010-10-25 Glenn Morris <rgm@gnu.org>
2253
2254 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2255
7c051dd8
GM
22562010-10-24 Glenn Morris <rgm@gnu.org>
2257
2258 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2259 (Fx_window_property, Fx_file_dialog):
2260 * xfns.c (Fx_synchronize, Fx_change_window_property)
2261 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2262
23c261f5
CY
22632010-10-24 Chong Yidong <cyd@stupidchicken.com>
2264
2265 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2266
d414c713 22672010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
2268
2269 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2270
2271 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2272 Deprecate use as a boolean flag.
2273
947f5e01
JM
22742010-10-24 Jim Meyering <jim@meyering.net>
2275
2276 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2277
65807d73
GM
22782010-10-24 Glenn Morris <rgm@gnu.org>
2279
f5f25615
GM
2280 * w16select.c (syms_of_win16select) <selection-coding-system>:
2281 <next-selection-coding-system>:
2282 * w32select.c (syms_of_w32select) <selection-coding-system>:
2283 <next-selection-coding-system>:
3646b86d
GM
2284 Sync docs with select.el.
2285
46710489
GM
2286 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2287 Lisp version.
2288
ea883883
GM
2289 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2290 Sync doc with the xterm.c version.
2291
65807d73
GM
2292 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2293 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2294
f3d87560
GM
22952010-10-23 Glenn Morris <rgm@gnu.org>
2296
66c6abf0 2297 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 2298 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 2299 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 2300 <hourglass-delay>: Sync docs with Lisp.
f3d87560 2301
7b7e2c18
EZ
23022010-10-23 Eli Zaretskii <eliz@gnu.org>
2303
d1d6801e 2304 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
2305
2306 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2307 (mouse_face_from_string_pos): New function, replaces
2308 fast_find_string_pos.
2309 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
2310 (note_mode_line_or_margin_highlight): Support bidi-reordered
2311 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
2312 (note_mouse_highlight): When bidi reordering is turned on in a
2313 buffer, call next-single-property-change and
ef1b0ba7
SM
2314 previous-single-property-change with last argument nil.
2315 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 2316 glyph that stands for no text beyond the line end.
1f382a02
EZ
2317 (row_containing_pos): Don't return too early when CHARPOS is in a
2318 bidi-reordered continued line. Return immediately when the first
2319 hit is found in a line that is not continued, or when an exact
2320 match for CHARPOS is found.
d1d6801e
EZ
2321 (rows_from_pos_range): New function.
2322 (mouse_face_from_buffer_pos): Use it instead of calling
2323 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2324 function to support mouse highlight in bidi-reordered lines and
2325 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2326 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2327 that the former is always above the latter or identical to it.
1554d88e 2328 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
2329 (coords_in_mouse_face_p): New function, bidi-aware.
2330 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2331 Call it instead of comparing with mouse-face members of dpyinfo.
2332 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2333 usage of hpos and vpos.
544bbc31 2334
dee186b6
J
23352010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2336
2337 * xrdb.c: Include keyboard.h for MOTIF.
2338
2339 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2340 MOTIF (Bug#7263).
2341
2342 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
2343 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2344 Make ANSI prototypes.
dee186b6 2345
5fb59edb
GM
23462010-10-22 Glenn Morris <rgm@gnu.org>
2347
2348 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2349 Remove ccl and duplicate mouse.
2350
8b78d5e3
CY
23512010-10-21 Chong Yidong <cyd@stupidchicken.com>
2352
2353 * insdel.c (prepare_to_modify_buffer): Don't set
2354 saved-region-selection if modification hooks are disabled.
2355
b8a47412
CY
23562010-10-19 Chong Yidong <cyd@stupidchicken.com>
2357
2358 * cmds.c (Fdelete_char): Doc fix.
2359
ca3fa302 23602010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
2361
2362 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2363
ca3fa302 23642010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
2365
2366 Fix incorrect font metrics when the same font is opened with
2367 different pixelsizes.
2368
2369 * xftfont.c: Include composite.h.
2370 (xftfont_shape): New function.
2371 (syms_of_xftfont): Set xftfont_driver.shape.
2372
c978536f
JD
23732010-10-18 Julien Danjou <julien@danjou.info>
2374
2375 * frame.c (Fframe_pointer_visible_p):
2376 Add `frame-pointer-visible-p' to get the pointer visibility.
2377
4b2d9ec2
LMI
23782010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2379
2380 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2381 non-"EAGAIN"-like error to signal to Emacs that the socket should
2382 be closed.
2383
9cf66cf2
EZ
23842010-10-15 Eli Zaretskii <eliz@gnu.org>
2385
c3911ead
EZ
2386 * unexcoff.c (make_hdr): Fix prototype according to changes in
2387 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2388
9cf66cf2
EZ
2389 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2390
be98da05
TH
23912010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2392
2393 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2394 made building the X menu fail.
cc98b256 2395 (really-oldXMenu): Fix my previous fix.
be98da05 2396
220d91b8 23972010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
2398
2399 Fix handling of font properties on Windows (bug#6303).
2400 * font.c (font_filter_properties): New function, refactored from
2401 ftfont_filter_properties.
2402 * font.h (font_filter_properties): Declare.
2403 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2404 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2405 (w32font_filter_properties): New function.
2406 (w32font_driver): Add w32font_filter_properties.
2407
220d91b8 24082010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 2409
c0943d3d 2410 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
2411 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2412
24f981c9
JB
24132010-10-14 Juanma Barranquero <lekktu@gmail.com>
2414
2415 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2416 * w32font.c (w32_generic_family):
2417 * w32inevt.c (key_event):
2418 * w32menu.c (fill_in_menu):
2419 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2420 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2421 * w32term.c (w32_read_socket): Make static.
2422
850690cc
JB
24232010-10-13 Juanma Barranquero <lekktu@gmail.com>
2424
2425 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2426 prototypes; all callers changed.
2427
5e371708
JB
24282010-10-13 Juanma Barranquero <lekktu@gmail.com>
2429
2430 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2431 (OBJ2): New macro.
2432 (WIN32OBJ, FONTOBJ): Remove.
2433 (OBJ1): Redistribute object files with OBJ2.
2434 (LIBS, $(TEMACS)): Use TLIB2.
2435 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2436 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2437
2e288d54
JB
24382010-10-13 Juanma Barranquero <lekktu@gmail.com>
2439
2440 * emacs.c (Vdynamic_library_alist)
2441 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2442 Doc fix.
2443
2444 * lisp.h (Vdynamic_library_alist): Declare extern.
2445
2446 * image.c (Vimage_library_alist)
2447 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2448 (lookup_image_type): Use Vdynamic_library_alist.
2449 (Finit_image_library): Doc fix.
2450
aba1381b
DN
24512010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2452
2453 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2454 (lispdir): Remove trailing /, update all uses.
2455
4c14013d 24562010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
2457
2458 * nsterm.m (Qleft): Declare.
2459 (ns_right_alternate_modifier): New variable
2460 (NSRightAlternateKeyMask): New define.
2461 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2462 ns_right_alternate_modifier isn't Qleft.
2463 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2464 as emacs modifier for NSRightAlternateKeyMask.
2465 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2466
355cdaf3
LMI
24672010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2468
2469 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2470 gnutls is ready, return EAGAIN as the errno.
2471
4c620157
DN
24722010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2473
edfd76ce
DN
2474 * vm-limit.c:
2475 * unexhp9k800.c:
2476 * unexelf.c:
2477 * unexaix.c:
2478 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2479
a4daeecf
DN
2480 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2481 (PROFILING_LDFLAGS): Remove, not needed anymore.
2482
2cb72a75 2483 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
2484 (CRT_DIR): Move near potential user.
2485 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 2486
4c620157
DN
2487 * sysdep.c (LPASS8): Remove, unused.
2488 (emacs_ospeed): Change from being a global to a local in the only
2489 user: init_baud_rate.
2490
b845653d
LMI
24912010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2492
2493 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 2494 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 2495 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 2496 gnutls_read. This allows us to actually read lots of data from
b845653d 2497 the GnuTLS stream.
2e6c74c5
LMI
2498 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2499 According to the documentation, this is correct, and it seems to
2500 make things work.
b845653d 2501
3625b3e2
CY
25022010-10-09 Chong Yidong <cyd@stupidchicken.com>
2503
2504 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2505
8b1c619f
MA
25062010-10-08 Michael Albinus <michael.albinus@gmx.de>
2507
2508 * keyboard.c: Revert last change; it was not intended to be
2509 synchronized with the trunk.
2510
93d50df8
KH
25112010-10-08 Kenichi Handa <handa@m17n.org>
2512
2b7c9342 2513 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 2514
4628bef1 25152010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
2516
2517 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2518 (Fdbus_init_bus): ... here. (Bug#7113)
2519
4628bef1 25202010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
2521
2522 * buffer.c (before-change-functions, after-change-functions):
2523 Three-year overdue doc fix following 2007-08-13 change.
2524
4628bef1 25252010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
2526
2527 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2528 eol-format, inherit from the system's default.
2529 (complement_process_encoding_system): Make a new coding system
2530 inherit the original eol-format.
2531
4628bef1 25322010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
2533
2534 * coding.c (complement_process_encoding_system): New function.
2535
2536 * coding.h (complement_process_encoding_system): Extern it.
2537
2538 * callproc.c (Fcall_process): Complement the coding system for
2539 encoding arguments.
2540 (Fcall_process_region): Complement the coding system for encoding
2541 the input to the process.
2542
2543 * process.c (Fstart_process): Complement the coding system for
2544 encoding arguments.
2545 (send_process): Complement the coding system for encoding what
2546 sent to the process.
2547
4628bef1 25482010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
2549
2550 * xfont.c (xfont_open): Fix setting of font->average_width from
2551 :avgwidth property (Bug#7123).
2552
4628bef1 25532010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
2554
2555 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2556 is more portable.
2557
2558 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2559 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2560 has not defined SIGIO.
2561
389454fb
CY
25622010-10-08 Chong Yidong <cyd@stupidchicken.com>
2563
2564 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2565 draw the outermost line using the black relief, for legibility.
2566 Omit drawing the four corner pixels.
2567
51b403bd
CY
25682010-10-04 Chong Yidong <cyd@stupidchicken.com>
2569
2570 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2571 (read_key_sequence): Inline echo_prompt.
2572 (echo_dash): Add a dash only if key is continued (Bug#7137).
2573
3e6ae1a4
DN
25742010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2575
2576 Remove O_RDONLY, O_WRONLY definitions, not needed.
2577 * unexcoff.c:
2578 * lread.c:
2579 * fileio.c:
2580 * doc.c:
2581 * callproc.c:
2582 * alloc.c:
2583 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2584
c1ae068b
LMI
25852010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2586
2587 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2588
2589 * gnutls.c: Add property list symbol holders.
2590 (emacs_gnutls_handshake): Clarify how sockets are passed to
2591 GnuTLS.
2592 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2593 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2594 and keyfiles to be a list of file names. Default to "NORMAL" for
2595 the priority string. Improve logging.
2596
e2afe435
GM
25972010-10-03 Glenn Morris <rgm@gnu.org>
2598
2599 * fileio.c (Vdirectory_sep_char): Remove.
2600
dd5ecd6b
DN
26012010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2602
b5437a05
DN
2603 * termhooks.h: Remove #ifdef CONSP.
2604
4777478a
DN
2605 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2606
a3d5088d
DN
2607 Include <fcntl.h> unconditionally.
2608 * termcap.c:
2609 * sysdep.c:
2610 * lread.c:
2611 * keyboard.c:
2612 * filelock.c:
2613 * fileio.c:
2614 * doc.c:
2615 * callproc.c:
2616 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2617 does it.
2618
82719735
DN
2619 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2620
9de940b5
DN
2621 * sysdep.c (flush_pending_output): Remove code, does not do
2622 anything on any platform.
2623
57507bf8 2624 Remove unused code.
bba3e508
SM
2625 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2626 Remove select emulation, all systems support select.
57507bf8
DN
2627 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2628 * process.c (create_process): Remove #if 0 code.
2629
dd5ecd6b
DN
2630 Remove unused arguments for unexec.
2631 The third one is never used, and the last two are always passed as zero.
2632 * emacs.c (unexec): Add declaration.
2633 (Fdump_emacs): Only pass the first two arguments to unexec.
2634 Simplify #ifdef.
2635 * unexw32.c (unexec):
2636 * unexsol.c (unexec):
2637 * unexhp9k800.c (unexec):
2638 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2639 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2640 (find_section): Use const.
2641 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2642 (unexec_error): Declare it NO_RETURN.
2643 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2644 it as an argument, remove data_start and entry_address arguments, unused.
2645 (unexec): Remove bss_start, data_start and
2646 entry_address arguments.
2647 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2648 it as an argument, remove data_start and entry_address arguments, unused.
2649 (unexec): Remove bss_start, data_start and
2650 entry_address arguments.
2651
74f1829d
JB
26522010-10-03 Juanma Barranquero <lekktu@gmail.com>
2653
7f467e14
JB
2654 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2655
74f1829d
JB
2656 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2657 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2658 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2659 Fix typos in docstrings.
2660 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2661 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2662
6926550f
CY
26632010-10-03 Chong Yidong <cyd@stupidchicken.com>
2664
2665 * keyboard.c (command_loop_1): Make sure the mark is really alive
2666 before using it (Bug#7044).
2667
54b65f7b
JB
26682010-10-02 Juanma Barranquero <lekktu@gmail.com>
2669
2670 * makefile.w32-in (tags): Rename target to full-tags.
2671
383ebd15
EZ
26722010-10-02 Eli Zaretskii <eliz@gnu.org>
2673
2674 * emacs.c (main): Remove !WINDOWSNT conditional.
2675 (Fkill_emacs): Don't mention exemption on MS-Windows.
2676
9c524fcb
GM
26772010-10-02 Glenn Morris <rgm@gnu.org>
2678
3226d6ca
GM
2679 * character.c (Fchar_bytes): Remove obsolete function.
2680 (syms_of_character): Remove Schar_bytes.
2681
9c524fcb
GM
2682 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2683 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2684 in batch-mode.
2685 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2686 (kill-emacs-hook): Doc fix.
2687
1b217849
LMI
26882010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2689
2690 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 2691 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
2692 renamed to reflect that these are the libxml functions.
2693
54cc6a83
EZ
26942010-10-01 Eli Zaretskii <eliz@gnu.org>
2695
0ebf79de
EZ
2696 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2697 screen dimensions in tty->Wcm.
2698
54cc6a83
EZ
2699 * xdisp.c (set_cursor_from_row): When the row is truncated and
2700 point is outside the range of displayed characters, position the
2701 cursor inside the scroll margin. (Bug#6349)
2702
321401d1
DN
27032010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2704
4cacd822
DN
2705 Do not include stdlib.h and string.h, config.h does it.
2706 * xfont.c:
2707 * w32term.c:
2708 * w32reg.c:
2709 * w32inevt.c:
2710 * w32heap.c:
2711 * w32console.c:
2712 * w16select.c:
2713 * unexsol.c:
2714 * term.c:
2715 * sound.c:
2716 * scroll.c (m):
2717 * gtkutil.c:
2718 * font.c:
2719 * filelock.c:
2720 * fileio.c:
2721 * dosfns.c:
2722 * dbusbind.c:
2723 * bidi.c:
2724 * callproc.c:
2725 * process.c:
2726 * msdos.c:
2727 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2728
bba3e508
SM
2729 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2730 defines it.
0781e7ab 2731
9bf58201
DN
2732 * process.c: Move #include <pty.h> earlier.
2733 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2734 (pty_name): Move definition later.
2735
088dcc3e
DN
2736 * nsselect.m (syms_of_nsselect):
2737 * nsmenu.m (syms_of_nsmenu):
2738 * nsfns.m (syms_of_nsfns):
2739 * msdos.c (syms_of_msdos):
4cacd822 2740
088dcc3e
DN
2741 * image.c (syms_of_image):
2742 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2743
321401d1
DN
2744 * point.h: Remove, unused.
2745
73077a9a
EZ
27462010-10-01 Eli Zaretskii <eliz@gnu.org>
2747
2748 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2749 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2750 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2751
55e572ef
DN
27522010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2753
2754 * xml.c (parse_string): Use const.
2755
d4b6d95d
LMI
27562010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2757
ef1b0ba7
SM
2758 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2759 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
2760 the level to 8 to produce more useful backtraces for bug reports.
2761
e4b6db12
DN
27622010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2763
2764 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2765
1becef93
JB
27662010-09-30 Juanma Barranquero <lekktu@gmail.com>
2767
2768 * w32console.c (vga_stdcolor_name): Remove unused function;
2769 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2770
df7fcaff
LMI
27712010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2772
bac5cef8
LMI
2773 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2774 (Fgnutls_boot): Start the handshake.
2775 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
2776 (Fgnutls_boot): Remove some debugging messages.
2777 Change indentation throughout to use the Emacs style.
2778 (emacs_gnutls_handshake): Cast the fds to something that's
2779 possibly the expected length.
2780 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 2781
df7fcaff
LMI
2782 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2783
2784 * process.c (make_process): Set the gnutls_p field to zero by
2785 default.
2786 (read_process_output): Always call the gnutls_read function if the
2787 stream is a gnutls stream.
2788 (send_process): Ditto for writes.
2789
2790 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2791 or write anything until the state is GNUTLS_STAGE_READY.
2792 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2793
d585695f
EZ
27942010-09-29 Eli Zaretskii <eliz@gnu.org>
2795
af7ef32d
EZ
2796 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2797 NEUTRAL_DIR.
2798 (handle_invisible_prop, iterate_out_of_display_property)
2799 (next_element_from_buffer): If bidi_it.first_elt is set, call
2800 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2801 (Bug#7128)
2802
d585695f
EZ
2803 * print.c (print_object): Fix format string and argument types for
2804 printing a Lisp_Misc_Marker.
2805
2806 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2807 (load_overlay_strings, get_overlay_strings_1)
2808 (get_overlay_strings, forward_to_next_line_start)
2809 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2810 (get_next_display_element, next_element_from_string)
2811 (next_element_from_c_string, next_element_from_buffer)
2812 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2813 (message_dolog, message_log_check_duplicate, message2_nolog)
2814 (message3, message3_nolog, vmessage, set_message, set_message_1)
2815 (hscroll_window_tree, text_outside_line_unchanged_p)
2816 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2817 (find_last_unchanged_at_beg_row)
2818 (find_first_unchanged_at_end_row, row_containing_pos)
2819 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
2820 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2821 Use EMACS_INT for buffer and string positions.
d585695f
EZ
2822
2823 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2824 (row_containing_pos): Adjust prototype.
2825
2826 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2827 (message2_nolog, set_message): Adjust prototypes.
2828
a6f3211f
SM
28292010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2830
2831 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2832 (Fgnutls_boot): Use SDATA.
2833 (Fgnutls_handshake): Remove unused var `max_log_level'.
2834
e0720500
MA
28352010-09-27 Michael Albinus <michael.albinus@gmx.de>
2836
11a5af7c 2837 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
2838 (Bug#7113)
2839
d8a4b27a
J
28402010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2841
42d3022b
J
2842 * xgselect.c (xg_select): Clear file descriptors not set from
2843 rfds and wfds.
2844
d8a4b27a
J
2845 * process.c (wait_reading_process_output): Add missing FD_CLR
2846 for write_mask (must mirror connect_wait_mask).
2847
8ed70bf3
LMI
28482010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2849
2850 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2851 prefix.
2852 (Fgnutls_boot): Use changed process members. Use log level with a
2853 function parameter to set it. Bring back Emacs-level debugging
2854 messages at log level 1 and 2.
2855
2856 * process.c (make_process): Initialize gnutls_log_level.
2857
2858 * process.h: Add gnutls_log_level and rename x509_cred and
2859 anon_cred to have the gnutls_ prefix for consistency.
2860
2861 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2862
bedf4aab
JB
28632010-09-27 Juanma Barranquero <lekktu@gmail.com>
2864
2865 * w32.c (g_b_init_get_sid_identifier_authority)
2866 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2867 Remove, not used.
2868 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2869 (init_winsock): Remove useless assignment.
2870 (open_process_token, get_token_information, lookup_account_sid)
2871 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2872 (get_security_descriptor_owner, get_security_descriptor_group)
2873 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2874 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2875 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2876 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2877 (unc_volume_file_attributes, convert_from_time_t)
2878 (create_toolhelp32_snapshot, process32_first, process32_next)
2879 (open_thread_token, impersonate_self, revert_to_self)
2880 (get_process_memory_info, get_process_working_set_size)
2881 (global_memory_status, global_memory_status_ex, socket_to_fd)
2882 (shutdown_handler): Make static.
2883
08609ffd
MA
28842010-09-27 Michael Albinus <michael.albinus@gmx.de>
2885
2886 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2887 (xd_pending_messages): Functions removed.
2888 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2889 order to be compatible with add_read_fd. Determine bus from data,
2890 and call xd_read_message just for this bus.
2891 (xd_add_watch): Use xd_read_queued_messages as callback function.
2892 Add data.
2893
2894 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2895
d2e9d0bb
LMI
28962010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2897
ef1b0ba7 2898 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 2899 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 2900
4be9765d
KH
29012010-09-27 Kenichi Handa <handa@m17n.org>
2902
2903 These changes are to remove restriction on the number of glyphs in
2904 one composition.
2905
2906 * dispextern.h (struct glyph): Change the member "slice" to union.
2907 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 2908 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
2909
2910 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2911 instead of glyph->slice.
2912 (marginal_area_string): Likewise.
2913
2914 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2915 glyph->u.cmp.
2916 (append_composite_glyph): Likewise.
2917
2918 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2919 glyph->u.cmp.
2920 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2921 (append_composite_glyph): Likewise.
2922 (fill_image_glyph_string): Use glyph->slice.img instead of
2923 glyph->slice.
2924 (append_glyph, produce_image_glyph, append_stretch_glyph)
2925 (note_mouse_highlight): Likewise.
2926
3fad2ad2
J
29272010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2928
bf05eed6
J
2929 * process.c (add_keyboard_wait_descriptor)
2930 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
2931 (wait_reading_process_output): Don't pass write_mask to select
2932 if SELECT_CANT_DO_WRITE_MASK is defined.
2933 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 2934
3fad2ad2
J
2935 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2936 (delete_write_fd): Declare.
2937
2938 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2939 (write_mask): New variable.
ef1b0ba7 2940 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 2941 (fd_callback_info): New variable.
70e31436
JB
2942 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2943 New functions.
3fad2ad2
J
2944 (Fmake_network_process): FD_SET write_mask.
2945 (deactivate_process): FD_CLR write_mask.
2946 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
2947 check_connect removed. check_write is new. Remove references to gpm.
2948 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
2949 NON_BLOCKING_CONNECT) instead of Connecting.
2950 Loop over file descriptors and call callbacks in fd_callback_info
2951 if file descriptor is ready for I/O.
2952 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2953 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2954 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
2955 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2956 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
2957 (init_process): Initialize write_mask and fd_callback_info.
2958
2959 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2960
2961 * dbusbind.c: Include process.h.
2962 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2963 (xd_read_message_1): New functions.
70e31436
JB
2964 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2965 Handle watch for both read and write.
3fad2ad2
J
2966 (Fdbus_init_bus): Also register xd_toggle_watch.
2967 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2968 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2969 to dbus_connection_flush.
70e31436 2970 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
2971 Call xd_read_message_1 until status is COMPLETE.
2972
dce4c2ac
DN
29732010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2974
2975 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
2976 (init_tty): Reorder code to reduce the number of #ifdefs.
2977 No code changes.
dce4c2ac 2978
8af55556
TZ
29792010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
2980
2981 * process.h: Set up GnuTLS support.
2982
2983 * process.c (make_process, Fstart_process)
2984 (read_process_output, send_process): Set up GnuTLS support for
2985 process input/output file descriptors.
2986
2987 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
2988
2989 * gnutls.c: The source code for GnuTLS support in Emacs.
2990
2991 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
2992
2993 * config.in: Set up GnuTLS support.
2994
2995 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
2996 (obj, LIBES): Set up GnuTLS support.
2997
83e245c4
JB
29982010-09-26 Juanma Barranquero <lekktu@gmail.com>
2999
3000 * w32.c (get_emacs_configuration_options): Fix previous change.
3001
d24ec09a
CY
30022010-09-25 Chong Yidong <cyd@stupidchicken.com>
3003
3004 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
3005 alive before using it (Bug#6977).
3006
b7bdc47c
LMI
30072010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
3008
a952d5f3
LMI
3009 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
3010
3011 * dispextern.h: EMACS_INT/int fixup.
3012
3013 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
3014 fixup.
3015
b7bdc47c
LMI
3016 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
3017
41118bd3
EZ
30182010-09-25 Eli Zaretskii <eliz@gnu.org>
3019
2452438f
EZ
3020 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
3021 (Fselect_window, window_scroll_pixel_based)
3022 (window_scroll_line_based, Frecenter, Fset_window_configuration):
3023 Use EMACS_INT for buffer positions.
3024
3025 * textprop.c (validate_interval_range, interval_of)
3026 (property_change_between_p, Fadd_text_properties)
3027 (set_text_properties_1, Fremove_text_properties)
3028 (Fremove_list_of_text_properties, Ftext_property_any)
3029 (Ftext_property_not_all, copy_text_properties)
3030 (text_property_list, extend_property_ranges)
3031 (verify_interval_modification): Use EMACS_INT for buffer
3032 positions.
3033
f877c546
EZ
3034 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
3035 for buffer positions.
3036
3037 * process.c (read_process_output, send_process)
3038 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
3039 and string positions and size.
3040
da43f021
EZ
3041 * print.c (print_object, print_string, strout): Use EMACS_INT for
3042 string indices.
3043
3044 * minibuf.c (string_to_object): Use EMACS_INT for string position
3045 and size.
3046
3047 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3048
3049 * lread.c <read_from_string_index, read_from_string_index_byte>
3050 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3051 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3052 buffer positions and string length.
3053
41118bd3
EZ
3054 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3055 EMACS_INT.
3056 (echo_truncate, adjust_point_for_property, read_char)
3057 (gen_help_event, make_lispy_event, modify_event_symbol)
3058 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3059 for buffer positions and string length.
3060
3061 * keyboard.h (gen_help_event): Adjust prototype.
3062
3063 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3064
3065 * commands.h <last_point_position>: Declare EMACS_INT.
3066
3067 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3068 (truncate_echo_area): Accept EMACS_INT argument.
3069
3070 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3071
3072 * lisp.h (truncate_echo_area): Adjust prototype.
3073
3074 * composite.c (composition_adjust_point): Return EMACS_INT.
3075
3076 * composite.h (composition_adjust_point): Adjust prototype.
3077
ba3033ee
JB
30782010-09-25 Juanma Barranquero <lekktu@gmail.com>
3079
3080 * process.c (Fmake_network_process): When arg :host is 'local,
3081 use address 127.0.0.1, not name "localhost". (Bug#6781)
3082
4f3a2f8d
EZ
30832010-09-24 Eli Zaretskii <eliz@gnu.org>
3084
5816888b
EZ
3085 * indent.c (Fcurrent_indentation, indented_beyond_p)
3086 (compute_motion): Use EMACS_INT for buffer position variables.
3087
3088 * lisp.h (indented_beyond_p): Adjust prototype.
3089
3090 * buffer.c (overlay_strings): Return EMACS_INT.
3091
3092 * buffer.h (overlay_strings): Adjust prototype.
3093
3094 * region-cache.c (pp_cache): Adjust format to arguments.
3095
3096 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3097 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3098 (verror): Use EMACS_INT for size of allocated buffer.
3099
ace1712c
EZ
3100 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3101 positions.
3102
3103 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
3104 (set_cursor_from_row, find_first_unchanged_at_end_row):
3105 Use EMACS_INT for buffer positions.
ace1712c 3106
f5276b75 3107 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
3108
3109 * dispnew.c (increment_matrix_positions)
3110 (increment_row_positions, copy_glyph_row_contents)
3111 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3112 positions.
3113
3114 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
3115 (increment_matrix_positions, increment_row_positions):
3116 Adjust prototypes.
ace1712c
EZ
3117
3118 * data.c (Faref, Faset): Use EMACS_INT for string length and
3119 positions.
3120
3121 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3122 characters to insert.
3123
3124 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3125 position and size.
3126
4f3a2f8d
EZ
3127 * syntax.c (scan_words, update_syntax_table)
3128 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
3129 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3130 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
3131
3132 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3133
3134 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3135 positions.
3136
db063399
LMI
31372010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3138
f0812d35
LMI
3139 * scroll.c (calculate_scrolling, line_ins_del)
3140 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3141 conversion.
3142
f5c7fc27
LMI
3143 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3144 (region_cache_backward, region_cache_forward)
3145 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3146 conversion.
3147
db063399
LMI
3148 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3149
3150 * eval.c (verror): Fix EMACS_INT/int conversion.
3151
07914cd0 3152 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
3153 (print_preprocess, print_check_string_charset_prop)
3154 (print_object): Fix EMACS_INT/int conversion.
3155
3156 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3157
e6d4aefa
EZ
31582010-09-24 Eli Zaretskii <eliz@gnu.org>
3159
69481da7
EZ
3160 * callproc.c (Fcall_process): Use EMACS_INT for count of
3161 characters read from the subprocess.
3162
61bfec98
EZ
3163 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3164 positions.
3165 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3166 positions.
3167
145582a0
EZ
3168 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3169 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3170 length.
3171 (advance_to_char_boundary, Fset_buffer_multibyte)
3172 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3173 (overlay_touches_p, record_overlay_string, overlay_strings)
3174 (recenter_overlay_lists, fix_start_end_in_overlays)
3175 (modify_overlay, Fmove_overlay, report_overlay_modification)
3176 (evaporate_overlays): Use EMACS_INT for buffer positions.
3177
bba3e508
SM
3178 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3179 Adjust prototypes.
145582a0 3180
446470a9
EZ
3181 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3182 positions.
3183
e6d4aefa
EZ
3184 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3185 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3186 (Fsubstring_no_properties, substring_both, Ffillarray)
3187 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3188 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3189 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3190 (Fmd5): Use EMACS_INT for buffer and string positions and length
3191 variables and arguments.
3192
3193 * lisp.h (substring_both): Adjust prototype.
3194
eb652396
JB
31952010-09-24 Juanma Barranquero <lekktu@gmail.com>
3196
3197 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3198 * w32fns.c (clipboard_sequence_fn): Don't declare.
3199 (globals_of_w32fns): Don't initialize it.
3200
266a86bd 32012010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
3202
3203 * syntax.c (back_comment): Detect the case where a 1-char comment
3204 starter is also the 2nd char of a 2-char comment ender.
3205
266a86bd 32062010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
3207
3208 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3209
40283062
LMI
32102010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3211
db063399
LMI
3212 * eval.c (verror): EMACS_INT/int cleanup.
3213
faf8b5bc
LMI
3214 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3215 unwind_protect more than 2GB worth of functions.
3216
3217 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3218
40283062
LMI
3219 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3220 string and avoid compiler warnings.
3221 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3222 all users.
3223
3224 * lread.c (oblookup): EMACS_INT/int cleanup.
3225
3226 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3227
fe3537c3
EZ
32282010-09-23 Eli Zaretskii <eliz@gnu.org>
3229
3230 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3231
3232 * lisp.h (clip_to_bounds): Adjust prototype.
3233
3234 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3235
0350982f
LMI
32362010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3237
84c9ce05
LMI
3238 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3239
3240 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3241
3242 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3243 cleanup.
3244
0350982f
LMI
3245 * lisp.h: Change the definition of all marker.c functions that
3246 take and return buffer stuff to be EMACS_INT instead of int.
3247
3248 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3249 (buf_charpos_to_bytepos, bytepos_to_charpos)
3250 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3251 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3252 for all buffer positions.
3253
c50bd0d2
CY
32542010-09-23 Chong Yidong <cyd@stupidchicken.com>
3255
3256 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3257 (split_interval_right, find_interval, next_interval)
3258 (delete_node, delete_interval, interval_deletion_adjustment)
3259 (adjust_intervals_for_deletion, merge_interval_right)
3260 (merge_interval_left, graft_intervals_into_buffer)
3261 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3262
3263 * intervals.h (traverse_intervals): Update prototype.
3264
14162469
EZ
32652010-09-23 Eli Zaretskii <eliz@gnu.org>
3266
c098fdb8
EZ
3267 * indent.c (compute_motion): Use EMACS_INT for arguments to
3268 region_cache_forward.
3269
bba3e508
SM
3270 * region-cache.c (struct boundary, struct region_cache):
3271 Use EMACS_INT for positions.
c098fdb8
EZ
3272 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3273 (delete_cache_boundaries, set_cache_region)
3274 (invalidate_region_cache, know_region_cache)
bba3e508
SM
3275 (region_cache_forward, region_cache_backward, pp_cache):
3276 Use EMACS_INT for buffer positions.
c098fdb8
EZ
3277
3278 * region-cache.h (know_region_cache, invalidate_region_cache)
3279 (region_cache_forward, region_cache_backward): Adjust prototypes.
3280
3281 * search.c (string_match_1, fast_c_string_match_ignore_case)
3282 (looking_at_1, scan_buffer, scan_newline)
3283 (find_next_newline_no_quit, find_before_next_newline)
3284 (search_command, trivial_regexp_p, search_buffer, simple_search)
3285 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3286 and string positions and length.
3287
caefdbe7
EZ
3288 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3289 (find_before_next_newline): Adjust prototypes.
c098fdb8 3290
29cdc13e
EZ
3291 * editfns.c (transpose_markers, update_buffer_properties)
3292 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3293 (get_pos_property, Fconstrain_to_field)
3294 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3295 (Fchar_after, Fchar_before, Finsert_char)
3296 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
3297 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3298 Use EMACS_INT for buffer and string position variables.
c098fdb8 3299 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
3300
3301 * lisp.h (clip_to_bounds): Adjust prototype.
3302
e79123aa
EZ
3303 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3304 (balance_an_interval, split_interval_right, split_interval_left)
3305 (find_interval, next_interval, update_interval)
3306 (adjust_intervals_for_insertion, delete_node, delete_interval)
3307 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3308 (offset_intervals, merge_interval_right, merge_interval_left)
3309 (graft_intervals_into_buffer, adjust_for_invis_intang)
3310 (move_if_not_intangible, get_local_map, copy_intervals)
3311 (copy_intervals_to_string, compare_string_intervals)
3312 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 3313 and for interval tree size.
e79123aa
EZ
3314
3315 * intervals.h (traverse_intervals, split_interval_right)
3316 (split_interval_left, find_interval, offset_intervals)
3317 (graft_intervals_into_buffer, copy_intervals)
3318 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3319 (update_interval): Adjust prototypes.
3320
579c18d0
EZ
3321 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3322 Use EMACS_INT for buffer position variables and arguments.
3323
3324 * composite.c (get_composition_id, find_composition)
3325 (run_composition_function, compose_text)
3326 (composition_gstring_width, autocmp_chars)
3327 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3328 for buffer positions and string length variables and arguments.
3329
3330 * composite.h (get_composition_id, find_composition, compose_text)
3331 (composition_gstring_width): Adjust prototypes.
3332
3333 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3334
bba3e508
SM
3335 * xdisp.c (store_mode_line_noprop, display_mode_element):
3336 Use EMACS_INT for string positions.
579c18d0
EZ
3337
3338 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3339 position arguments.
3340
3341 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
3342
3343 * character.c (parse_str_as_multibyte, str_as_multibyte)
3344 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 3345 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
3346 (strwidth, lisp_string_width, multibyte_chars_in_text):
3347 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3348
3349 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 3350 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
3351 (c_string_width, strwidth, lisp_string_width):
3352 Adjust prototypes.
14162469 3353
579c18d0
EZ
3354 * font.c (font_intern_prop): Use EMACS_INT for string length
3355 variables.
3356
3357 * font.c (font_intern_prop): Use EMACS_INT for string length
3358 variables.
3359
14162469
EZ
3360 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3361 variables.
3362
3363 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3364 (Fmake_string): Protect against too large strings.
3365 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3366 (live_misc_p): Use ptrdiff_t instead of int for pointer
3367 differences.
3368 (string_bytes, check_sblock, check_string_free_list)
3369 (allocate_string_data, compact_small_strings, Fmake_string)
3370 (Fmake_bool_vector, make_string, make_unibyte_string)
3371 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
3372 (make_specified_string_string, Fmake_list, Fmake_vector):
3373 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3374 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3375 (Fpurecopy): Use EMACS_INT for string size.
3376 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3377 for vector size.
3378
3379 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3380 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
3381 (make_pure_string, string_bytes, check_point_in_composition):
3382 Adjust prototypes.
14162469 3383
c8a66ab8
EZ
33842010-09-22 Eli Zaretskii <eliz@gnu.org>
3385
3386 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3387 (check_translation): Use EMACS_INT for buffer positions and
3388 length.
3389
3390 * undo.c (record_marker_adjustment, record_delete)
3391 (record_change, record_point, record_insert)
3392 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3393 buffer positions.
3394
3395 * lisp.h (record_marker_adjustment, record_delete)
3396 (record_change, record_point, record_insert)
3397 (record_property_change, Fprimitive_undo): Adjust prototypes.
3398
38c54d9d
JB
33992010-09-22 Juanma Barranquero <lekktu@gmail.com>
3400 Eli Zaretskii <eliz@gnu.org>
3401
3402 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3403
413d18e7
EZ
34042010-09-22 Eli Zaretskii <eliz@gnu.org>
3405
3406 * minibuf.c (Fminibuffer_contents)
3407 (Fminibuffer_contents_no_properties)
3408 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3409 positions.
3410
3411 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3412 mark.
3413
3414 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3415 (allocate_string_data): Accept EMACS_INT for string length.
3416
3417 * editfns.c (Ffield_string, Ffield_string_no_properties)
3418 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3419 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3420 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3421 (Ffield_end): Use EMACS_INT for buffer positions.
3422
3423 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3424 point with mark.
3425
3426 * lisp.h (allocate_string_data, make_uninit_string)
3427 (make_uninit_multibyte_string, make_buffer_string)
3428 (make_buffer_string_both): Adjust prototypes.
3429
4b9832a6
CY
34302010-09-22 Chong Yidong <cyd@stupidchicken.com>
3431
3432 * xml.c: Switch to GNU indentation.
3433 (make_dom): Change parse tree format to match xml.el.
3434 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3435 (Fxml_parse_string_internal): Rename from xml-parse-string.
3436
86282aab
KH
34372010-09-22 Kenichi Handa <handa@m17n.org>
3438
3439 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3440 only if we are not at a composition.
3441 (set_iterator_to_next): Give it->end_charpos to
3442 composition_compute_stop_pos.
3443 (set_iterator_to_next, next_element_from_buffer): Likewise.
3444
3445 * dispnew.c (buffer_posn_from_coords): Fix position when the
3446 current display element is a grapheme cluster in bidi-reordered
3447 region.
3448
840b985a
AR
34492010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3450
3451 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3452 the regions may overlap.
3453
5bc88f4b
JB
34542010-09-21 Juanma Barranquero <lekktu@gmail.com>
3455
3456 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3457
92bc9a36
DN
34582010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3459
d19e096e
DN
3460 * emacs.c: Do not include sys/ioctl.h, not needed.
3461
92bc9a36
DN
3462 * doprnt.c: Do not include stdlib.h, config.h does it.
3463 Move #include before macro definition.
3464
15f844ac
DN
34652010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3466
48e24408
DN
3467 * Makefile.in (temacs): Link using $(CC) not $(LD).
3468 (LD_FIRSTFLAG): Define using autoconf.
3469 (LD): Remove.
3470
65539506
DN
3471 Remove HAVE_TERMIOS definitions.
3472 * s/usg5-4-common.h (HAVE_TERMIOS):
3473 * s/template.h (HAVE_TERMIOS):
3474 * s/gnu-linux.h (HAVE_TERMIOS):
3475 * s/darwin.h (HAVE_TERMIOS):
3476 * s/cygwin.h (HAVE_TERMIOS):
3477 * s/bsd-common.h (HAVE_TERMIOS):
3478 * s/aix4-2.h (HAVE_TERMIOS):
3479 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3480 defined on all non-MS platforms.
3481 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3482
15f844ac
DN
3483 * xterm.c (xt_action_hook): Use const.
3484
7d701334
JB
34852010-09-20 Juanma Barranquero <lekktu@gmail.com>
3486
3487 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3488 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3489 (gethostname) [!HAVE_SOCKETS]: Remove.
3490 (SOCK_REPLACE_HANDLE): Remove macro.
3491 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3492 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3493 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3494 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3495
f3ec267a
EZ
34962010-09-18 Eli Zaretskii <eliz@gnu.org>
3497
3498 * deps.mk (xml.o): Add dependencies.
3499
93acd23d
JB
3500 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3501 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
3502
3503 * bidi.c (bidi_paragraph_init): Accept an additional argument
3504 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3505 search back until a paragraph with a strong directional character
3506 is found, and use that to determine paragraph's base direction.
3507
3508 * dispextern.h (bidi_paragraph_init): Update prototype.
3509
69e847be
EZ
35102010-09-17 Eli Zaretskii <eliz@gnu.org>
3511
3512 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3513 of w32api >= 3.15. (Bug#6989)
3514
283357a7
LMI
35152010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3516
3517 * process.c (wait_reading_process_output): Don't message about
3518 accept-process-output unless the time limit really is zero.
3519
4ddb20d6
SM
35202010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3521
3522 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3523 int/Lisp_Object mixup).
3524
e24ad6dd
J
35252010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3526
3527 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3528 not HELP.
3529
fb0cf781
J
35302010-09-17 Stephen Berman <stephen.berman@gmx.net>
3531
3532 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3533 bar's pixel width to Lisp (Bug#7048).
3534
4ddb20d6
SM
35352010-09-14 Juanma Barranquero <lekktu@gmail.com>
3536
3537 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 3538
318a04c6
J
35392010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3540
3541 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3542 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3543
78a21772
KH
35442010-09-17 Kenichi Handa <handa@m17n.org>
3545
3546 * ftfont.c (ftfont_check_otf): Fix previous change.
3547
fa3f6039
KH
35482010-09-14 Kenichi Handa <handa@m17n.org>
3549
3550 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3551 existence of GSUB or GPOS.
3552
2b5491fa
JB
35532010-09-14 Juanma Barranquero <lekktu@gmail.com>
3554
3555 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3556
c97c655f
LMI
35572010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3558
ef1b0ba7 3559 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
3560 what it does.
3561 (parse_string): Return nil when the document can't be parsed.
3562
6664fc59 35632010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
3564
3565 * xterm.c (get_current_vm_state): New function.
3566 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3567 want_fullscreen so set_wm_state calls are few (Bug#7013).
3568 (x_handle_net_wm_state): Move code to get_current_vm_state and
3569 call that function.
3570
6664fc59 35712010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
3572
3573 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3574
6664fc59 35752010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
3576
3577 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3578 we may use designation or locking-shift.
3579
6664fc59 35802010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
3581
3582 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3583 sequence when the source is multibyte.
3584
1da70e99
AS
35852010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3586
6664fc59
JB
3587 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3588 Don't make first argument optional. Doc fix.
1da70e99 3589
26632d8d
LMI
35902010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3591
3592 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3593 parameters for the doc string.
3594
21fa8e37
LMI
35952010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3596
3597 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3598
5616cc54
SM
35992010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3600
3601 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3602 (syms_of_fns): Don't defsubr Sy_or_n_p.
3603 * lisp.h: Don't declare Fy_or_n_p.
3604 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3605
381408e2
LMI
36062010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3607
3608 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3609
36102010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3611
3612 * xml.c: New file.
3613 (Fhtml_parse_buffer): New function to interface to the libxml2
3614 html parsing function.
3615
733946e7
JB
36162010-09-05 Juanma Barranquero <lekktu@gmail.com>
3617
3618 * biditype.h: Regenerate.
3619
7574650a
AS
36202010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3621
3622 * nsimage.m (ns_load_image): Check argument types.
3623
3624 * image.c: Remove all uses of gcpro.
3625 (xpm_load): Check all lisp types.
3626 (pbm_load): Likewise.
3627 (png_load): Likewise.
3628 (jpeg_load): Likewise.
3629 (tiff_load): Likewise.
3630 (gif_load): Likewise.
3631 (imagemagick_load_image): Likewise.
3632 (imagemagick_load): Likewise.
3633 (svg_load): Likewise.
3634 (gs_load): Likewise.
3635
6e6b8e25
EZ
36362010-09-04 Eli Zaretskii <eliz@gnu.org>
3637
bba3e508
SM
3638 * w32uniscribe.c (uniscribe_shape): Update commentary.
3639 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
3640 hold them in the logical order.
3641 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3642 return glyph codes in the logical order.
3643
dbfe4532
AS
36442010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3645
3646 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 3647 (imagemagick_load_image): Fix type mismatch.
5e5992c2 3648 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 3649
6d7cc563
JD
36502010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3651
3652 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3653
3654 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3655
3656 * xselect.c: Remove declaration of cut-buffer objects and functions.
3657 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3658 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3659 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3660 (Fx_rotate_cut_buffers_internal): Remove.
3661 (syms_of_xselect): Remove defsubr of above.
3662 Remove intern of QCUT_BUFFERn.
3663
8f4e9110
SM
36642010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3665
3666 * cmds.c (Vblink_paren_function): Remove.
3667 (internal_self_insert): Make it insert N chars at a time.
3668 Don't call blink-paren-function.
3669 (Fself_insert_command): Adjust accordingly.
3670 (syms_of_cmds): Don't declare blink-paren-function.
3671
d419e1d9
KH
36722010-08-31 Kenichi Handa <handa@m17n.org>
3673
3674 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3675 characters.
3676
3677 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
3678 (produce_glyphs): Don't set it->char_to_display here.
3679 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
3680 (produce_special_glyphs): Set temp_it.char_to_display before
3681 calling produce_glyphs.
3682
3683 * xdisp.c (get_next_display_element): Set it->char_to_display
3684 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3685 characters.
3686 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3687 calling PRODUCE_GLYPHS.
3688 (append_space_for_newline): Save and store it->char_to_display.
3689 Set it->char_to_display before calling PRODUCE_GLYPHS.
3690 (extend_face_to_end_of_line): Set it->char_to_display before
3691 calling PRODUCE_GLYPHS.
3692 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3693 character to its byte value.
3694 (get_char_glyph_code): New function.
3695 (produce_stretch_glyph): Set it2.char_to_display too before
3696 calling x_produce_glyphs.
3697 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
3698 non-ASCII characters. Don't set it->char_to_display here.
3699 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 3700 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 3701
b819f760
SM
37022010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3703
3704 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3705
07fa68a7
CY
37062010-08-31 Chong Yidong <cyd@stupidchicken.com>
3707
3708 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3709
cd196f12
SM
37102010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3711
3712 * marker.c (Fcopy_marker): Make the first arg optional.
3713
49a752bb
KH
37142010-08-30 Kenichi Handa <handa@m17n.org>
3715
3716 * composite.c (composition_update_it): Fix computing of
3717 cmp_it->width.
3718
769ae9e1
KH
37192010-08-29 Kenichi Handa <handa@m17n.org>
3720
9e69cb05 3721 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 3722 corresponding bytes.
9e69cb05 3723
4520b858
J
37242010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3725
3726 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3727
fe50eb41
KH
37282010-08-26 Kenichi Handa <handa@m17n.org>
3729
3730 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3731 on calling composition_compute_stop_pos.
3732
f6aa6ec6
KH
37332010-08-25 Kenichi Handa <handa@m17n.org>
3734
9dfdbc0a
KH
3735 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3736 :otf.
3737
f6aa6ec6
KH
3738 * composite.c (composition_compute_stop_pos): Don't break
3739 composition at PT.
3740 (composition_reseat_it): Likewise. Fix calculation of character
3741 position starting a composition.
3742 (Fcomposition_get_gstring): Don't limit the number of components
3743 for automatic composition.
3744
ff94e32c
KH
37452010-08-25 Kenichi Handa <handa@m17n.org>
3746
3747 * composite.c (composition_compute_stop_pos): In forward search,
3748 pay attention to the possibility that some character after ENDPOS
3749 will be composed with charactrs before ENDPOS.
3750
1c409d0b
CY
37512010-08-24 Chong Yidong <cyd@stupidchicken.com>
3752
3753 * keyboard.c (command_loop_1): Don't clobber primary selection
3754 during handle-switch-frame (Bug#6872).
3755
0c372655
MA
37562010-08-23 Michael Albinus <michael.albinus@gmx.de>
3757
3758 * dbusbind.c: Accept UNIX domain sockets as bus address.
3759 (Fdbus_close_bus): New function.
3760 (Vdbus_registered_buses): New variable.
3761 (xd_initialize): Implement string as bus address.
3762 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3763 (Fdbus_get_unique_name, Fdbus_call_method)
3764 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3765 (Fdbus_method_error_internal, Fdbus_send_signal)
3766 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3767 check. This is done in xd_initialize_bus. Adapt doc string, if
3768 necessary.
3769 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3770 Vdbus_registered_buses.
3771 (Vdbus_registered_objects_table): Create hash.
3772
7133b7ee
JL
37732010-08-22 Juri Linkov <juri@jurta.org>
3774
3775 * keyboard.c (Fexecute_extended_command): Move reading a command name
3776 with `completing-read' to a new Elisp function `read-extended-command'.
3777 Call it to read a command to `function' (bug#5364, bug#5214).
3778
198a7a97
CY
37792010-08-22 Chong Yidong <cyd@stupidchicken.com>
3780
3781 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3782
b0126eac 37832010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
3784
3785 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3786 instead of SAFE_ALLOCA.
3787
b0126eac 37882010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
3789
3790 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3791 (Bug#6214).
3792
b0126eac 37932010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
3794
3795 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3796
b0126eac
CY
37972010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3798
3799 * doc.c (Fsnarf_documentation): Initialize skip_file before
3800 build-files test.
3801
692f3ddc 38022010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 3803
692f3ddc
JB
3804 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3805 New definitions.
b0126eac
CY
3806 (HAVE_TERMIO): Remove.
3807
5f2f0bc1
EZ
38082010-08-22 Eli Zaretskii <eliz@gnu.org>
3809
b613941b
EZ
3810 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3811
a583bbef
EZ
3812 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3813 for w32.
3814
3815 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3816 it's done in nt/config.nt.
3817
3818 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3819
5f2f0bc1
EZ
3820 * unexcoff.c (report_error, make_hdr, write_segment)
3821 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3822 Convert argument lists and prototypes to ANSI C.
3823 (make_hdr, write_segment): Remove unused variables.
3824 (unexec): Remove commented-out line. Initialize `new' to shut up
3825 compiler warnings.
3826
a7ebc409
DN
38272010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3828
3829 Simplify termio code.
3830 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3831 HAVE_TERMIO code is obsolete.
3832 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3833 * systty.h: Do not define HAVE_TCATTR.
3834 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3835 Do not define EMACS_HAVE_TTY_PGRP. Only define
3836 EMACS_GET_TTY_PGRP for !DOS_NT.
3837 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
3838 sys/ioctl.h and termios.h, systty.h does it.
3839 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
3840 (init_baud_rate): Remove HAVE_TERMIO code.
3841 (child_setup_tty): Remove HAVE_TERMIO code.
3842 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3843 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3844 (new_ltchars, new_tchars): Remove, unused.
3845 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
3846 code. Remove special casing for __mips__, it was a no-op.
3847 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
3848 (init_sys_modes): Remove HPUX special case.
3849 * process.c: Include stdlib.h unconditionally. Do not include
3850 fcntl.h, systty.h does it. Remove conditional code for
3851 HAVE_SERIAL, it is always true.
3852 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3853 always true when SIGNALS_VIA_CHARACTERS is true.
3854 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3855 !WINDOWSNT means HAVE_TERMIOS.
3856 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3857 conditional, which is true for all HAVE_TERMIOS systems.
3858 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3859 instead of HAVE_TERMIOS.
3860 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3861 EMACS_HAVE_TTY_PGRP.
3862 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3863 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3864 anyway.
3865
914f049b 38662010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
3867
3868 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3869 mirroring pixel positions.
3870
d931da8c
DN
38712010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3872
b5c76d0c
DN
3873 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3874 write only.
3875 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3876 malloc_sbrk_used, nothing uses them.
3877
74815588
DN
3878 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3879 defined, unconditionally defined in lisp.h.
3880
f5817d1c
DN
3881 * term.c: Do not include <termios.h>, systty.h does it.
3882
d931da8c
DN
3883 * s/unixware.h (HAVE_TCATTR):
3884 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3885 systty.h defines it when HAVE_TERMIOS is defined.
3886
ff2de6d2 38872010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 3888
b43c883c 3889 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 3890 terminals: add one-character offset for R2L lines.
b43c883c 3891
491a1546
EZ
3892 * emacs.c <emacs_version>: Add a comment regarding
3893 msdos/mainmake.v2's dependency on the syntax of this declaration.
3894
2396cbba
EZ
38952010-08-20 Eli Zaretskii <eliz@gnu.org>
3896
3897 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3898 position for R2L lines by mirroring the pixel position wrt the
3899 text are box. Improve commentary.
3900
7df6150a
AS
39012010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3902
3903 * image.c (imagemagick_clear_image): Remove debugging output.
3904
a2e5caf7
SM
39052010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3906
3907 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3908 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3909 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3910 self-insert-face.
3911 (syms_of_cmds): Initialize the new vars.
3912
20d60baf
JR
39132010-08-19 Jason Rumney <jasonr@gnu.org>
3914
cc477da7
JR
3915 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3916
20d60baf
JR
3917 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3918
2c0ac867
J
39192010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3920
3921 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3922
93352106
EZ
39232010-08-18 Eli Zaretskii <eliz@gnu.org>
3924
3925 * xterm.c (x_draw_bar_cursor):
3926 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3927 R2L, draw the bar cursor on its right rather than on its left.
3928
c785836d
SM
39292010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3930
0193499f
SM
3931 * eval.c (Fdefmacro): Only obey one declaration.
3932
c785836d
SM
3933 * casefiddle.c (casify_region): Setup gl_state.
3934
9cb728a5
J
39352010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3936
3937 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3938
e1e18511
J
39392010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3940
1d77b63e 3941 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 3942
64cb6c78
J
39432010-08-18 David De La Harpe Golden <david@harpegolden.net>
3944
3945 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3946 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3947 QPRIMARY => NXPrimaryPboard.
3948 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3949 NXPrimaryPboard => QPRIMARY.
3950 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3951 NXSecondaryPboard = SecondarySelection.
3952 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3953
0c9b8993
GM
39542010-08-18 Joakim Verona <joakim@verona.se>
3955
3956 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3957 defined:
3958 (imagemagick_image_p): New function to test for ImageMagic image.
3959 (imagemagick_load): New function to load ImageMagick image.
3960 (imagemagick_load_image): New function, helper for imagemagick_load.
3961 (imagemagick-types): New function.
3962 (Qimagemagick): New Lisp_object.
3963 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 3964
c3554f68
SM
39652010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3966
3967 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3968 is a string.
3969
1ff2e434
J
39702010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3971
3972 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3973 x_set_tool_bar_position handler.
3974
0cc56427
EZ
39752010-08-17 Eli Zaretskii <eliz@gnu.org>
3976
3977 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
3978 x_set_tool_bar_position handler, needed to support changes from
3979 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
3980
e45a249b
JD
39812010-08-16 Jan Djärv <jan.h.d@swipnet.se>
3982
921242c6
J
3983 * nsselect.m: include keyboard.h for QPRIMARY, remove its
3984 declaration (Bug#6863).
573d150b 3985 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 3986
e45a249b
JD
3987 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
3988
3989 * keyboard.h (QPRIMARY): Declare (Bug#6864).
3990
7c23dd44
CY
39912010-08-16 Chong Yidong <cyd@stupidchicken.com>
3992
3993 * keyboard.c (command_loop_1): Avoid setting selection twice,
3994 since it's done in deactivate-mark as well.
3995 (Vselect_active_regions): Change default to t. Replace `lazy'
3996 with non-default value `only', meaning only set PRIMARY for
3997 temporarily active regions.
3998
3999 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
4000 select-active-regions.
4001
0005830c
J
40022010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4003
4004 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
4005 isn't a string.
4006
603dfc72
AS
40072010-08-15 Andreas Schwab <schwab@linux-m68k.org>
4008
4009 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
4010
c25ce9d0
J
40112010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4012
c3554f68
SM
4013 * keyboard.c (parse_tool_bar_item): malloc buf.
4014 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
4015 new_lbl (Bug#6855).
c25ce9d0 4016
5872c762
EZ
40172010-08-14 Eli Zaretskii <eliz@gnu.org>
4018
b236615c
EZ
4019 * xterm.c (x_draw_stretch_glyph_string):
4020 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
4021 the cursor on the right edge of the stretch glyph.
4022
c3554f68
SM
4023 * xdisp.c (window_box_right_offset, window_box_right):
4024 Fix commentary.
b236615c 4025
5872c762
EZ
4026 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
4027 direction when point is inside a run of whitespace characters.
4028
4029 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
4030
e66f9a1b
JR
40312010-08-14 Jason Rumney <jasonr@gnu.org>
4032
4033 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
4034
79d6f59e
CY
40352010-08-14 Chong Yidong <cyd@stupidchicken.com>
4036
4037 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
4038
1c9b4129
JR
40392010-08-13 Jason Rumney <jasonr@gnu.org>
4040
4041 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4042 (MessageBoxW_Proc): New function typedef.
4043 (unicode-message-box): New function pointer.
4044 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
4045
2b4e6277
J
40462010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4047
4048 * frame.h (Qtool_bar_position): Declare.
4049
4050 * xfns.c (Fx_create_frame): Call x_default_parameter for
4051 Qtool_bar_position.
4052
94c97d85
EZ
40532010-08-13 Eli Zaretskii <eliz@gnu.org>
4054
8ee81892
EZ
4055 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4056 (report_error, report_error_1): Ditto.
4057 (write_segment): Remove "#if 0" unused code.
4058 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4059 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4060 (start_of_text): Remove unused function (was used only if NO_REMAP
4061 was NOT defined).
4062
891ef8f7
EZ
4063 * msdos.c (IT_set_face): Fix format string to match argument
4064 types.
4065 (IT_write_glyphs, IT_note_mode_line_highlight)
4066 (IT_set_frame_parameters): Remove unused variables.
4067 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4068 (IT_set_terminal_modes): Disambiguate expression in if clause.
4069 (Fmsdos_remember_default_colors): Return Qnil.
4070 (IT_set_frame_parameters): Add parens to disambiguate boolean
4071 expression for logging the cursor type to termscript.
4072 (keyboard_layout_list, keypad_translate_map)
4073 (grey_key_translate_map): Add braces in inner initializers.
4074 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4075 (dos_rawgetc): Remove unused label.
4076 (XMenuActivate): Add braces to remove ambiguous `else'.
4077 (dos_ttraw): Always return a value.
4078 (spawnve): Declare.
4079 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4080
4081 * dosfns.h (x_set_title): Declare.
4082
4083 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4084 Remove unused variables.
4085
4086 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4087 variables.
4088 (init_dosfns): Declare get_lim_data.
4089 (system_process_attributes): Declare Fget_internal_run_time.
4090
38e41e0e
EZ
4091 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4092 list to be consistent with menu.h.
4093
94c97d85
EZ
4094 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4095 warnings due to mixing of "char *" and "const char *".
4096
c5683ceb
SM
40972010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4098
4099 Introduce a new comment style "c" flag.
4100 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4101 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4102 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4103 (syntax_prefix_flag_p): New function.
4104 (Fstring_to_syntax): Understand new "c" flag.
4105 (Finternal_describe_syntax_value): Recognize new flag; use the
4106 SYNTAX_FLAGS_* macros.
4107 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4108 comment style to accomodate the new styles.
4109 (back_comment, forw_comment, Fforward_comment, scan_lists)
4110 (scan_sexps_forward): Update code to obey the new comment style flag.
4111
4112 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4113
4114 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4115
7aee76f4
J
41162010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4117
3a46642b
J
4118 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4119 first.
94dff98f 4120 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
4121
4122 * gtkutil.h (xg_check_special_colors): Declare.
4123
4124 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4125 (xg_create_frame_widgets): Connect theme name changes to
4126 style_changed_cb.
4127
42ca4633
J
4128 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4129 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4130 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 4131 string literal. file is const char*.
42ca4633
J
4132
4133 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4134 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4135 props. Free them at the end.
4136
4137 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4138
c5683ceb
SM
4139 * xrdb.c (get_system_app): Make path const and use char *p for
4140 non-const char.
42ca4633
J
4141
4142 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 4143 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
4144 char *.
4145 (button_names): Is const char *.
4146 (xdialog_show): error_name and pane_string is const.
4147
4148 * process.h (synch_process_death): Is const char*.
4149
4150 * w32menu.c (w32_menu_show):
4151 * nsmenu.m (ns_menu_show): error parameter is const char **.
4152
4153 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4154 is const char **.
4155
4156 * menu.c (Fx_popup_menu): error_name is const.
4157
4158 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4159 with unsigned char and XtPointer with void *.
4160
4161 * gtkutil.h: Replace widget_value with struct _widget_value.
4162 (enum button_type, struct _widget_value): Remove and use the one from
4163 keyboard.h.
4164
4165 * gtkutil.c (get_utf8_string): Always return an allocated string.
4166 Parameter is const.
4167 (create_dialog, xg_create_one_menuitem, create_menus)
4168 (xg_item_label_same_p, xg_update_menu_item): Free result from
4169 get_utf8_string.
4170 (xg_separator_p, xg_item_label_same_p): label is const.
4171
4172 * font.h (font_open_by_name): Make name const.
4173
4174 * font.c (font_open_by_name): Make name const.
4175
4176 * floatfns.c (matherr): Use a const char* variable for x->name.
4177
4178 * emacs.c (main): Pass char[] to putenv instead of literal.
4179
4180 * callproc.c (synch_process_death): Make const.
4181 (Fcall_process): Make signame const.
4182
9c5bd55a
J
4183 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4184 (addDisplayItemWithImage): Use const char*.
4185
4186 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4187 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4188
4189 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4190
4191 * keyboard.h (_widget_value): name, value and key are const char*.
4192
7aee76f4
J
4193 * unexmacosx.c (unexec_error): Use const char *.
4194
09d93395
DN
41952010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4196
4197 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4198 (font_parse_name, font_open_by_name):
09d93395 4199 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4200 (font_parse_name, font_open_by_name): Remove const.
09d93395 4201
671d409f
AS
42022010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4203
4204 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4205 definition.
4206
4207 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4208 * m/amdx86-64.h: Likewise.
4209 * m/arm.h: Likewise.
4210 * m/hp800.h: Likewise.
4211 * m/ia64.h: Likewise.
4212 * m/ibmrs6000.h: Likewise.
4213 * m/ibms390.h: Likewise.
4214 * m/intel386.h: Likewise.
4215 * m/iris4d.h: Likewise.
4216 * m/m68k.h: Likewise.
4217 * m/macppc.h: Likewise.
4218 * m/mips.h: Likewise.
4219 * m/sh3.h: Likewise.
4220 * m/sparc.h: Likewise.
4221 * m/template.h: Likewise.
4222 * m/vax.h: Likewise.
4223 * m/xtensa.h: Likewise.
4224 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4225 WORDS_BIG_ENDIAN.
4226 * lisp.h: Likewise.
4227 * md5.c: Likewise.
4228 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4229
8ea90aa3
DN
42302010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4231
4232 Use const char* instead of char*.
4233 Reduce the number of warnings with -Wwrite-strings.
4234 * xrdb.c (get_environ_db, get_system_name):
4235 * unexelf.c (find_section):
4236 * term.c (string_cost, string_cost_one_line, per_line_cost)
4237 (get_named_tty, init_tty):
4238 * sysdep.c (sys_subshell):
4239 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4240 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4241 * search.c (Freplace_match):
4242 * process.c (Fmake_network_process, send_process, init_process):
4243 * lread.c (Fload, init_lread):
4244 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4245 * keyboard.c (parse_tool_bar_item, struct event_head):
4246 * gtkutil.h (xg_get_font_name):
4247 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4248 (make_widget_for_menu_item, make_menu_item, create_menus)
4249 (xg_make_tool_item):
4250 * font.c (parse_matrix, font_parse_name):
4251 * floatfns.c (rounding_driver, float_error_fn_name):
4252 * filelock.c (get_boot_time_1, lock_file_1):
4253 * fileio.c (barf_or_query_if_file_exists, check_writable):
4254 * editfns.c (get_system_name, get_operating_system_release)
4255 (Fencode_time, Fset_time_zone_rule):
4256 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4257 * buffer.c (defvar_per_buffer): Use const.
4258
7815fe19 42592010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 4260
692f3ddc 4261 * charset.c: Include <stdlib.h>.
7a84eee5
KH
4262 (struct charset_sort_data): New struct.
4263 (charset_compare): New function.
692f3ddc 4264 (Fsort_charsets): New function.
7a84eee5
KH
4265 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4266
4267 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4268 number in CTEXT extended segment.
4269
7815fe19 42702010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
4271
4272 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4273 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4274
7815fe19 42752010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
4276
4277 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4278 (Fhash_table_size): Fix typos in docstrings.
4279 (Fmake_hash_table): Doc fix.
4280
7815fe19 42812010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
4282
4283 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4284 Doc fix (bug#5625).
4285
7815fe19 42862010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
4287
4288 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4289 the MSDOS definition.
4290
1b6d8cf0
DN
42912010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4292
675e2c69
DN
4293 Use const char* instead of char*.
4294 * xterm.c (x_create_toolkit_scroll_bar):
4295 * xfont.c (xfont_list_pattern):
4296 * xfns.c (x_default_scroll_bar_color_parameter)
4297 (xic_create_fontsetname, x_default_font_parameter)
4298 (x_screen_planes):
4299 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4300 (store_mode_line_string, decode_mode_spec, display_string):
4301 * menu.c (digest_single_submenu):
4302 * keymap.h (initial_define_key, initial_define_lispy_key):
4303 * keymap.c (initial_define_key, initial_define_lispy_key):
4304 * image.c (image_error, image_keyword):
4305 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4306 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4307 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4308 (ftfont_list, ftfont_match):
4309 * frame.c (frame_parm_table):
4310 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4311 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4312 (font_add_log, font_deferred_log):
4313 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4314 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4315 (font_add_log, font_deferred_log):
4316 * emacs.c (argmatch):
4317 * dispextern.h (struct it):
4318 * coding.c (ENCODE_DESIGNATION):
4319 * charset.c (define_charset_internal): Use const.
4320
25717ca1
DN
4321 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4322
c5683ceb
SM
4323 * xrdb.c: Remove include guard.
4324 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
4325 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4326 realloc->xrealloc instead of using #defines.
4327
efb41e21
EZ
43282010-08-08 Eli Zaretskii <eliz@gnu.org>
4329
cd21226d 4330 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
4331 * editfns.c (Fline_beginning_position, Fline_end_position):
4332 State in the doc strings that start and end of line are in the
4333 logical order.
cd21226d 4334
efb41e21
EZ
4335 * xdisp.c (display_line): Move the handling of overlay arrow after
4336 the call to find_row_edges. (Bug#6699)
4337
746812d9
CY
43382010-08-07 Chong Yidong <cyd@stupidchicken.com>
4339
4340 * keyboard.c (command_loop_1):
4341 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4342
9852377f
CY
43432010-08-07 Chong Yidong <cyd@stupidchicken.com>
4344
4345 * insdel.c (prepare_to_modify_buffer): Save active region text to
4346 Vsaved_region_selection.
4347
4348 * xselect.c (QPRIMARY): Move to keyboard.c.
4349
4350 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
4351 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4352 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 4353
0e9c8657
JB
43542010-08-07 Juanma Barranquero <lekktu@gmail.com>
4355
4356 * alloc.c (lisp_malloc):
4357 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4358 * charset.h (emacs_mule_charset):
4359 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4360 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4361 (bitch_at_user):
4362 * lisp.h (Fcheck_coding_system, Fget_text_property)
4363 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4364 Remove duplicate declarations.
4365
648801d1
DN
43662010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4367
32bc6709
DN
4368 * process.c: Simplify include logic.
4369
3ef1d108
DN
4370 * keyboard.h (quit_char): Add declaration.
4371 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
4372 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4373 Add declarations.
3ef1d108
DN
4374 * sysdep.c:
4375 * w32.c: Remove the above declarations.
4376
97ec208f
DN
4377 Remove extern declarations in .c files, .h files have them.
4378 * xterm.c:
4379 * xdisp.c:
97ec208f
DN
4380 * msdos.c:
4381 * image.c:
4382 * gtkutil.c:
4383 * fileio.c:
4384 * eval.c: Remove declarations.
4385
94eed851
DN
4386 * frame.c (frame_params): Make const.
4387
36e053eb
DN
4388 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4389
0e843971
DN
4390 * emacs.c (emacs_copyright, emacs_version): Make static.
4391 (Vinitial_window_system, Vauto_save_list_file_name)
4392 (Vinhibit_redisplay): Remove declarations.
4393 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4394 for AIX.
4395
648801d1
DN
4396 Use const for some arrays and functions.
4397 * xterm.h (xg_set_icon_from_xpm_data):
4398 * xfns.c (xg_set_icon_from_xpm_data):
4399 * term.c (fkeys):
4400 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4401 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4402 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4403 (frame.c frame_parms):
4404 * emacs-icon.h (gnu_xpm_bits):
4405 * callint.c (callint_argfuns): Use const.
4406
8646d999
J
44072010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4408
4409 * sysdep.c: Move include term.h last of includes (Bug#6812).
4410
cb4545ad
EZ
44112010-08-06 Eli Zaretskii <eliz@gnu.org>
4412
4413 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4414
4415 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4416
4417 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4418
da7e2be6
JB
44192010-08-06 Juanma Barranquero <lekktu@gmail.com>
4420
4421 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4422
3d608a86
J
44232010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4424
7908fb60
J
4425 * xterm.h (x_get_focus_frame): Declare.
4426
4427 * keyboard.h (poll_for_input_1): Unconditionally declare.
4428
4094bf36
J
4429 * nsterm.h (x_set_menu_bar_lines): Declare.
4430
4431 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4432
3d608a86
J
4433 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4434
4435 * window.c: Include menu.h.
4436
4437 * unexmacosx.c (print_region_list, print_regions)
4438 (build_region_list, find_emacs_zone_regions)
4439 (unexec_regions_merge, read_load_commands, dump_it)
4440 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4441
4442 * term.c: Check HAVE_SYS_IOCTL_H.
4443
686b968e 4444 * sysdep.c: Check HAVE_TERM_H.
3d608a86 4445
686b968e 4446 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
4447
4448 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4449 (ns_ring_bell, ns_defined_color, hide_hourglass)
4450 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4451 Convert to ANSI C prototypes.
4452 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4453 before code.
4454
4455 * nsterm.h : Include sysselect.h.
4456 (x_sync, x_get_focus_frame, x_set_mouse_position)
4457 (x_set_mouse_pixel_position, x_make_frame_visible)
4458 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4459 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4460 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4461 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 4462 Declare.
3d608a86
J
4463
4464 * nsmenu.m (popup_activated, name_is_separator)
4465 (syms_of_nsmenu): Convert to ANSI C prototypes.
4466 (runMenuAt): Prototypes and move declarations before code.
4467
4468 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4469
4470 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4471 prototypes.
4472
4473 * nsfns.m (have_menus_p, ns_display_info_for_name)
4474 (x_set_cursor_type, ns_appkit_version_str)
4475 (ns_appkit_version_int, ns_do_applescript)
4476 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4477 (syms_of_nsfns): Convert to ANSI C prototypes.
4478
4479 * menu.h (x_set_menu_bar_line): Declare.
4480 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4481
4482 * lisp.h (fmod_float): Declare.
4483
4484 * image.c (xpm_scan, xpm_make_color_table_v)
4485 (xpm_put_color_table_v, xpm_get_color_table_v)
4486 (xpm_make_color_table_h, xpm_put_color_table_h)
4487 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4488 (xpm_load): Convert to ANSI C prototypes.
4489
4490 * emacs.c: Include nsterm.h if HAVE_NS.
4491
4492 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4493
fce70521
DN
44942010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4495
4496 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4497 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4498 (socket_options): Use const char* for name.
4499
a11889ab
JB
45002010-08-06 Juanma Barranquero <lekktu@gmail.com>
4501
4502 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4503
4504 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4505 Don't declare xmalloc_widget_value and digest_single_submenu.
4506
4507 * w32font.c (Qlatin): Remove declaration.
4508
4509 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4510
c95b508f 4511 * dired.c (compile_pattern): Restore declaration.
a11889ab 4512
6254cdda
DN
45132010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4514
04bab72c
DN
4515 Remove extern declarations in .c files, .h files have them.
4516 * data.c:
4517 * dired.c:
4518 * editfns.c:
4519 * filelock.c:
4520 * fns.c:
4521 * font.c:
4522 * fontset.c:
4523 * frame.c:
4524 * fringe.c:
4525 * ftfont.c:
4526 * gtkutil.c:
4527 * indent.c:
4528 * keyboard.c:
4529 * keymap.c:
4530 * lread.c:
4531 * menu.c:
4532 * print.c:
4533 * search.c:
4534 * sound.c:
4535 * window.c:
4536 * xdisp.c:
4537 * xfaces.c:
4538 * xfns.c:
4539 * xfont.c:
4540 * xftfont.c:
4541 * xmenu.c:
4542 * xterm.c: Remove declarations.
4543
dff94ed5
DN
4544 Cleanup syssignal.h.
4545 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4546 (main_thread): Move down to remove #ifdef.
4547 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4548 Remove conditional definition following unconditional ones.
4549
99f3388e
DN
4550 * lisp.h: Remove HAVE_SHM code, unused.
4551 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4552 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4553 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4554 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4555 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4556 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4557 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4558 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4559 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4560 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4561 (Qwindow_scroll_functions, Vafter_load_alist)
4562 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4563 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4564 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4565 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4566 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4567 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4568 (initial_argv, last_nonmenu_event, load_in_progress)
4569 (noninteractive_need_newline, scroll_margin): Add declarations.
4570
bba3e508
SM
4571 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4572 Remove declarations, menu.h has them.
99f3388e
DN
4573 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4574 (Vinput_method_function, Qinput_method_function)
4575 (Qevent_symbol_element_mask, last_event_timestamp):
4576 * dispextern.h (Voverflow_newline_into_fringe):
4577 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4578 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4579 (syms_of_w32font, syms_of_nsfont):
4580 * fontset.h (find_font_encoding, Qlatin):
4581 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4582 (Vtool_bar_mode, set_frame_menubar):
4583 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4584 * xterm.h (Qx_gtk_map_stock):
4585 * keymap.h (meta_prefix_char): Add declarations.
4586
9f5dd6f2
DN
4587 * term.c: Remove dead code.
4588
6254cdda
DN
4589 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4590 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4591 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4592 which is what was there before BSD_PGRPS was removed.
4593
29cf3e20
EZ
45942010-08-05 Eli Zaretskii <eliz@gnu.org>
4595
4596 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4597
4598 * unexcoff.c: Renamed from unexec.c.
4599
aaa0a19a
SM
46002010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4601
4602 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4603
8d1d9587
JB
46042010-08-03 Johan Bockgård <bojohan@gnu.org>
4605
4606 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 4607 (Bug#6744)
8d1d9587 4608
9a747ba6
JD
46092010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4610
4d464ae4
JD
4611 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4612 to TRUE if depth of screen is < 16.
4613
ac01763e
JD
4614 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4615 USE_GTK_TOOLTIP.
e0d62a9b
JB
4616 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4617 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 4618 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
4619 USE_GTK_TOOLTIP.
4620 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4621
4622 * xterm.h (USE_GTK_TOOLTIP): New define.
4623 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4624
9a747ba6
JD
4625 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4626 to Control-D (Bug#6771).
4627
7b0815ba
JB
46282010-08-02 Juanma Barranquero <lekktu@gmail.com>
4629
4630 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4631 Wording by Drew Adams <drew.adams@oracle.com>.
4632
aa1859f5
J
46332010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4634
4635 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4636 ttip_lbl.
4637
4638 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4639 calling gtk_widget_queue_draw.
4640 (x_free_frame_resources): Call xg_free_frame_widgets.
4641
4642 * xfns.c (x_gtk_use_system_tooltips): New variable.
4643 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4644 new gtkutil tooltip functions to show the tooltip.
4645 (Fx_hide_tip): Call xg_hide_tooltip.
4646 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4647
4648 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4649 (xg_show_tooltip, xg_hide_tooltip): Declare.
4650
4651 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
4652 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4653 New functions.
aa1859f5
J
4654 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4655 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4656 Remove code that is commented out.
4657
76417ef4
SM
46582010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4659
4660 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4661
16041401
CY
46622010-07-31 Chong Yidong <cyd@stupidchicken.com>
4663
4664 * xselect.c (x_own_selection): Use list4.
4665
2c09a58f
DN
46662010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4667
4668 * buffer.c (Qwindow): Do not define, already defined in data.c.
4669 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4670
59df9fdd 46712010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 4672
59df9fdd
JB
4673 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4674 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4675 * config.in: Undef HAVE_DIRENT_H.
1c97e857 4676 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 4677 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 4678
1b231651
DN
46792010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4680
4681 Rename s/usg5-4.h -> s/usg5-4-common.h.
4682 * s/usg5-4.h: Rename file to ...
4683 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4684 * s/unixware.h:
4685 * s/sol2-6.h:
4686 * s/irix6-5.h: Update includes accordingly.
4687
bfeabdc3
JD
46882010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4689
2ebf1083
J
4690 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4691
bfeabdc3 4692 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
4693 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4694 Remove toolbar_height.
4695 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
4696 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4697 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4698 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4699
4700 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4701
4702 * xfns.c (x_set_tool_bar_position): New function.
4703 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4704 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 4705 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
4706
4707 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4708 and FRAME_TOOLBAR_LEFT_WIDTH.
4709
4710 * gtkutil.h (xg_change_toolbar_position): Declare.
4711
4712 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4713 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4714 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4715 (xg_create_frame_widgets): Create a hobox for placing widgets
4716 vertically. Use gtk_box_pack_start.
ef1b0ba7 4717 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
4718 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4719 (xg_update_frame_menubar, free_frame_menubar): Change to
4720 xg_height_or_width_changed.
4721 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4722 size correctly. Remove hardcoded 4, instead use handlebox size -
4723 toolbar size.
4724 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 4725 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
4726 (xg_pack_tool_bar): POS is a new parameter.
4727 Set orientation of tool bar based on pos.
4728 Only make handlebox_widget if NULL.
4729 Check if tool bar goes to vbox or hbox depending on pos.
4730 (xg_update_tool_bar_sizes): New function.
686b968e 4731 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
4732 height, call xg_update_tool_bar_sizes instead.
4733 (free_frame_tool_bar): Remove from hbox or vbox depending on
4734 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4735 (xg_change_toolbar_position): New function.
4736
4737 * frame.h (struct frame): Add tool_bar_position.
4738 (Qbottom): Declare.
4739
4740 * frame.c (Qtool_bar_position): New variable.
4741 (make_frame): Set tool_bar_position to Qtop.
4742 (frame_parms): Add tool-bar-position.
4743 (x_report_frame_params): Store tool_bar_position.
4744 (x_set_fringe_width): Reset wm size hint after fringe changes.
4745
26469a38
DN
47462010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4747
4748 Make lisp_time_argument declaration work on all systems.
4749 * lisp.h (lisp_time_argument): Move declaration ...
4750 * systime.h (lisp_time_argument): ... here
4751 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4752
8848b728
JD
47532010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4754
4755 * vm-limit.c (POINTER): Add typedef for it.
4756 (start_of_data): Change return type from POINTER to char *.
4757
4758 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4759 HAVE_WINDOW_SYSTEM.
4760
76fd1ee9
DN
47612010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4762
0441987e
DN
4763 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4764 Remove reference to __osf__, unused.
4765
56a000c7
DN
4766 * mem-limits.h: Remove duplicated includes.
4767 (NULL): Remove definition, unused.
4768 (POINTER): Remove definition.
4769 (start_of_data): Use char* in prototype, as the function
4770 definition does.
4771
e6cba650
DN
4772 Remove extern declarations from .c files, and them to .h files.
4773 * keyboard.h (Qhelp_echo, waiting_for_input)
4774 (input_available_clear_time, ignore_mouse_drag_p)
4775 (Vdouble_click_time, real_this_command, Vthis_original_command):
4776 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4777 (Voverriding_local_map_menu_flag):
4778 * lisp.h (Qinteractive_form, use_file_dialog)
4779 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4780 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4781 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4782 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4783 (Qfunction, debug_on_next_call, Qfield)
4784 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4785 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4786 (Qfile_directory_p, Qinsert_file_contents)
4787 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4788 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4789 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4790 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4791 (Qminibuffer_prompt)
4792 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4793 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4794 (gray_bitmap_bits, xic_create_fontsetname):
4795 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4796
4797 * xsmfns.c (Vuser_login_name):
4798 * xrdb.c (Vdouble_click_time):
4799 * xfaces.c (xic_create_fontsetname):
4800 * w32select.c (waiting_for_input):
4801 * print.c (minibuffer_auto_raise):
4802 * msdos.c (Qhelp_echo):
4803 * macros.c (real_this_command):
4804 * keymap.c (Voverriding_local_map):
4805 * xterm.c (poll_for_input_1, gray_bitmap_width)
4806 (gray_bitmap_height, gray_bitmap_bits;
4807 * xmenu.c ( Voverriding_local_map)
4808 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4809 (use_file_dialog, Xt_app_con):
4810 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4811 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4812 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4813 (Qtool_bar_lines, ignore_mouse_drag_p):
4814 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4815 (Qrear_nonsticky, nconc2):
4816 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4817 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4818 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4819 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4820 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4821 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4822 (gc_in_progress):
4823 * doc.c (Voverriding_local_map, Qremap):
4824 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4825 (Vcompletion_regexp_list):
4826 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4827 (Qcompletion_ignore_case):
4828 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4829 (Vhistory_length, Vthis_original_command, real_this_command)
4830 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4831 * image.c (Qrisky_local_variable):
4832 * fontset.c (QCname):
4833 * fns.c (minibuffer_auto_raise, QCname):
4834 * dispnew.c (char_ins_del_cost):
4835 * composite.c (font_fill_lglyph_metrics):
4836 * cmds.c (Qface, Vtranslation_table_for_input):
4837 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4838 * ccl.c (charset_unicode):
4839 * callproc.c (Vtemporary_file_directory):
4840 * buffer.c (emacs_strerror): Remove extern declarations.
4841
4842 * data.c (Qwindow): Make non-static, used from other files too.
4843 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4844
76fd1ee9
DN
4845 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4846 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4847 * s/usg5-4.h (COFF):
4848 * s/template.h:
4849 * s/msdos.h (COFF, NO_REMAP):
4850 * s/ms-w32.h (NO_REMAP):
4851 * s/hpux10-20.h (NO_REMAP):
4852 * m/sparc.h (SEGMENT_MASK):
4853 * m/m68k.h (NO_REMAP):
4854 * m/intel386.h (SEGMENT_MASK):
4855 * m/arm.h (NO_REMAP):
4856 * m/alpha.h (COFF):
4857 * m/template.h: Remove references to unused defines.
4858
8a52f00a
JD
48592010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4860
4861 * xsettings.c (Ftool_bar_get_system_style): Also check for
4862 Qtext_image_horiz.
4863
4864 * xdisp.c (Qtext_image_horiz): Define.
4865 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 4866 to documentation of tool-bar-style.
8a52f00a
JD
4867
4868 * lisp.h (Qtext_image_horiz): Declare.
4869
4870 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4871 style text_image_horiz.
4872
89dc303e
DN
48732010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4874
60799703
DN
4875 * emacs.c (Fkill_emacs): Remove return statement.
4876
37254dc1
DN
4877 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4878 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
4879 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4880 Remove local extern declarations.
37254dc1 4881
71c7345a
DN
4882 * xmenu.c: Do not included lwlib.h, not needed.
4883
6ba577cb
DN
4884 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4885
fdb183d6
DN
4886 * process.c: Move definitions earlier to minimize #ifdefs.
4887
4888 * xterm.h (x_get_customization_string, x_load_resources)
4889 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4890 (x_check_errors, x_property_data_to_lisp, defined_color)
4891 (xic_set_xfontset, x_defined_color): Use const.
4892
4893 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4894 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4895
4896 * xselect.c (selection_data_to_lisp_data)
4897 (x_property_data_to_lisp):
4898 * xrdb.c (x_get_string_resource, file_p)
4899 (x_get_customization_string, magic_file_p, search_magic_path)
4900 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4901 (x_get_string_resource): Use const.
4902
4903 * xfns.c: Include xlwmenu.h when USE_LUCID.
4904 (x_defined_color, xic_set_xfontset): Use const.
4905 (Fx_hide_tip): Remove local extern declaration.
4906
4907 * xfaces.c (Qmouse_face): Remove declaration.
4908 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 4909 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
4910
4911 * xdisp.c (do_mouse_tracking): Remove declaration.
4912 (add_to_log): Use const.
4913
4914 * minibuf.c (Qmouse_face): Remove declaration.
4915
4916 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4917
4918 * keyboard.h (do_mouse_tracking): Add declaration.
4919
4920 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4921 (QCdata, QCtype, Qcenter): Remove declarations.
4922
4923 * frame.c (x_get_resource_string, x_get_string_resource)
4924 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4925 (x_default_parameter): Use const.
4926
4927 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4928 (QCheight, QCsize, QCname): Remove declarations.
4929
4930 * emacs.c (main): Remove local extern declaration.
4931
4932 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4933 declarations.
4934
4935 * dispnew.c: Remove duplicate #include <unistd.h>.
4936 (update_window, update_frame_1, init_display): Remove local extern
4937 declarations.
4938
4939 * dispextern.h (add_to_log): Remove declaration.
4940 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4941 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4942
4943 * dired.c (scmp): Add const.
4944 (directory_files_internal): Remove local extern declaration.
4945
4946 * data.c (Finteractive_form): Use const.
4947
4948 * composite.c (syms_of_composite): Remove local extern declarations.
4949
4950 * charset.c (add_to_log): Remove declaration.
4951
4952 * character.c (strwidth, parse_str_to_multibyte): Add const.
4953
4954 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4955
4956 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4957
89dc303e 4958 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
4959 (Lisp_Subr): Make doc and intspec constant.
4960 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4961 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4962 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4963 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4964 (display_arg): Add declarations.
89dc303e 4965
0ed082fe 49662010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
4967
4968 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4969
0ed082fe
JB
4970 * window.c (Fwindow_height): Doc fix (bug#6518).
4971
49722010-07-27 Juanma Barranquero <lekktu@gmail.com>
4973
4974 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4975
ccaf0336
DN
49762010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
4977
977105dc
DN
4978 * keyboard.c (Ftop_level, Fexit_recursive_edit)
4979 (Fabort_recursive_edit): Remove return statements in NO_RETURN
4980 functions.
4981
f5ada890
DN
4982 * frame.h (Qtty_color_mode): Add declaration.
4983
ccaf0336
DN
4984 * lisp.h (Ftop_level, Fexit_recursive_edit)
4985 (Fabort_recursive_edit): Mark as NO_RETURN.
4986
dfe3c90f
KH
49872010-07-26 Kenichi Handa <handa@m17n.org>
4988
4989 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 4990 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 4991
7d383292
JB
49922010-07-26 Juanma Barranquero <lekktu@gmail.com>
4993
4994 * lread.c (unreadpure, mapatoms_1): Make static.
4995
da31e629
JB
49962010-07-25 Juanma Barranquero <lekktu@gmail.com>
4997
4998 * terminfo.c (tparam): Fix prototype of tparm.
4999
7bfa6d77
AS
50002010-07-25 Andreas Schwab <schwab@linux-m68k.org>
5001
dcc19aac
AS
5002 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
5003 find start of text segment.
5004 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
5005 is defined.
5006
7bfa6d77
AS
5007 * callproc.c (set_initial_environment): Avoid unbalanced braces.
5008
63f9a672
KB
50092010-07-25 Ken Brown <kbrown@cornell.edu>
5010
5011 * vm-limit.c (check_memory_limits): Fix previous change;
5012 accidentally reverted an earlier change.
5013
24933075
KB
50142010-07-25 Ken Brown <kbrown@cornell.edu>
5015
5016 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
5017 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
5018
361358ea
JB
50192010-07-25 Juanma Barranquero <lekktu@gmail.com>
5020
5021 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
5022 * dired.c (opendir, readdir): Fix prototypes.
5023 * editfns.c (w32_get_internal_run_time): Fix prototypes.
5024 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
5025 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
5026 (telldir): Remove declaration.
5027 * ralloc.c (real_morecore, __morecore): Fix prototypes.
5028 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
5029 * syssignal.h (strsignal): Fix prototype.
5030 * term.c (tparam): Fix prototype.
5031 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
5032 (term_get_fkeys): Set inside "#ifndef DOS_NT".
5033 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
5034 and __morecore.
5035 * w32gui.h (XParseGeometry): Fix prototype.
5036 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
5037 * w32term.c (my_set_focus): Declare inside #if 0.
5038 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
5039 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
5040 (drain_message_queue, get_next_msg, post_msg, parse_button)
5041 (ClipboardSequence_Proc): Fix prototypes.
5042 (wait_for_sync): Remove declaration.
5043
630b9592
JB
50442010-07-24 Juanma Barranquero <lekktu@gmail.com>
5045
5046 * w32fns.c (w32_to_x_color): Remove, unused.
5047
6a0d6611
AS
50482010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5049
5050 * lisp.h: Remove leftover P_.
5051
4e8608ff
DN
50522010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5053
5054 * ecrt0.c, unexalpha.c: Remove files, unused.
5055
c8197983
AS
50562010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5057
5058 * cmds.c (internal_self_insert): Make static.
5059 * lisp.h (internal_self_insert): Remove declaration.
5060
97b372d7
JB
50612010-07-23 Juanma Barranquero <lekktu@gmail.com>
5062
33ac0414
JB
5063 * alloc.c (free_float):
5064 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5065 * frame.c (delete_frame_handler):
5066 * ralloc.c (reorder_bloc):
5067 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5068 Remove unused static functions.
5069
94da8397
JB
5070 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5071 it is called only from NS code.
5072
2e6c8532
JB
5073 * w32term.c (my_set_focus): #ifdef away; it is called only from
5074 "#ifdef 0" code.
5075
97b372d7
JB
5076 * w32fns.c (x_edge_detection):
5077 * xfaces.c (may_use_scalable_font_p):
5078 Remove obsolete static declarations.
5079
7c3320d8
JB
50802010-07-20 Juanma Barranquero <lekktu@gmail.com>
5081
5082 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5083 (emacs_blocked_realloc, uninterrupt_malloc):
5084 * fringe.c (w32_reset_fringes):
5085 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5086 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5087 * sound.c (be2hs, do_play_sound):
5088 * vm-limit.c (get_lim_data, ret_lim_data):
5089 * w32term.c (x_free_frame_resources):
5090 * xfaces.c (x_create_gc, x_free_gc):
5091 Convert definitions to standard C.
5092
d5273788
SM
50932010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5094
5095 * eval.c (Feval, Ffuncall): Use the new names.
5096
5097 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5098 (DEFUN): Add braces around the union initialisation and use ## to
5099 specify the right union alternative and avoid a cast.
5100
8d16a259
JB
51012010-07-18 Juanma Barranquero <lekktu@gmail.com>
5102
5103 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5104
3b8eff32
CY
51052010-07-17 Chong Yidong <cyd@stupidchicken.com>
5106
5107 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5108
499322ce
J
51092010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5110
5111 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5112 is related to the menu bar (Bug#6499).
a628ad9d 5113 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 5114
f6003da5 51152010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
5116
5117 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5118
5119 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5120
5121 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5122 i.e. don't put back ButtonRelease (Bug#6608).
5123
5124 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5125 instead of Window. Call xg_event_is_for_menubar when
5126 USE_GTK (Bug#6499).
5127
5128 * gtkutil.h (xg_event_is_for_menubar): Declare.
5129
5130 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5131
f6003da5 51322010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
5133
5134 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5135 when it's the same as the old foreground. (Bug#6609)
5136
23243f29
J
51372010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5138
5139 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5140 widget is non-null (Bug#6645).
5141
2b23d2a6
AS
51422010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5143
01b564ff
AS
5144 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5145 Convert old-style definition.
5146
2b23d2a6
AS
5147 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5148 timestamp argument.
5149
c4affd2c
EZ
51502010-07-15 Eli Zaretskii <eliz@gnu.org>
5151
5152 * fringe.c (update_window_fringes): Restore mistakenly reverted
5153 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5154
cf28cebc
J
51552010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5156
5157 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5158 (SET_SAVED_KEY_EVENT): Remove (not used).
5159 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5160 remove size parameter.
5161 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5162 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5163 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5164 ButtonRelease.
6b2c4bd9
J
5165 (x_set_window_size_1): scroll_bar_actual_width is always
5166 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
5167
5168 * xdisp.c (pending_menu_activation): Remove extern declaration.
5169 (prepare_menu_bars): Remove setting of pending_menu_activation.
5170
5171 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
5172 (x_activate_menubar): Set popup_activated_flag for Xt also.
5173 Remove setting of pending_menu_activation.
cf28cebc
J
5174 (set_frame_menubar): Remove check of pending_menu_activation.
5175 Declare menubar_size before code. Correct spelling in comment.
5176
f6c1c771
KH
51772010-07-14 Kenichi Handa <handa@m17n.org>
5178
5179 * font.c (font_open_entity): Cancel previous change.
5180 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5181
20477505
EZ
51822010-07-13 Eli Zaretskii <eliz@gnu.org>
5183
77defa9a
EZ
5184 Remove subprocesses #ifdefs.
5185 * process.c <inhibit_sentinels>: Move to the common part.
5186 (Fwaiting_for_user_input_p): Move to the common part; return nil
5187 if async subprocesses aren't supported.
5188 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5189 MS-DOS. Remove "#ifdef subprocesses".
5190 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5191 (gettimeofday): Remove "#ifdef subprocesses".
5192 (wait_without_blocking): Remove function.
5193 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5194 Remove "#ifdef subprocesses".
5195 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5196 compiled on MS-DOS.
5197 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5198 wait_for_termination on MS-DOS.
5199 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5200 initialization of inhibit_sentinels.
5201 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5202 subprocesses" conditional.
5203 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5204 wait_for_termination, since `buffer' cannot be an integer when
5205 async subprocesses are not supported
5206 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5207 for ifdefing away the call to Fprocess_status.
5208
20477505
EZ
5209 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5210 away the entire body of the function.
5211
b3ffc17c
DN
52122010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5213
01faa934
DN
5214 Remove subprocesses #ifdefs from term.c.
5215 * process.c (add_keyboard_wait_descriptor)
5216 (delete_keyboard_wait_descriptor): Move to common section, do
5217 nothing when subprocesses is not defined.
a628ad9d
JB
5218 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5219 Remove subprocesses #ifdefs.
01faa934 5220
b3ffc17c
DN
5221 Convert maybe_fatal to standard C.
5222 * lisp.h (verror): Declare.
5223 * eval.c (verror): New function containing the code from ...
5224 (error): ... this. Call verror.
5225 * term.c (vfatal): New function containing the code from ...
5226 (fatal): ... this. Call vfatal.
5227 (maybe_fatal): Convert to standard C, use variable number of
5228 arguments. Declare as non-return.
5229 (init_tty): Fix maybe_fatal call.
5230
0521f580
DN
52312010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5232
5233 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5234 (_scroll_bar_note_movement): Convert definitions to standard C.
5235 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5236 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5237
ebd15611
DN
52382010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5239
5240 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5241 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5242 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5243 (xaw_jump_callback, xaw_scroll_callback)
5244 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
5245 (x_wm_set_size_hint, x_activate_timeout_atimer):
5246 Convert definitions to standard C.
ebd15611
DN
5247 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5248 (popup_activate_callback, popup_deactivate_callback)
5249 (menu_highlight_callback, menubar_selection_callback)
5250 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5251 (free_frame_menubar, popup_selection_callback, as)
5252 (create_and_show_popup_menu, dialog_selection_callback)
5253 (create_and_show_dialog):
5254 * xfns.c (hack_wm_protocols, x_window):
5255 * xfaces.c (x_update_menu_appearance):
5256 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5257 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5258 (set_frame_size, update_wm_hints, setup_frame_gcs)
5259 (update_various_frame_slots, update_from_various_frame_slots)
5260 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5261 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5262 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5263
de06a2dd
AS
52642010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5265
a628ad9d 5266 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 5267
fc549af9
EZ
52682010-07-12 Eli Zaretskii <eliz@gnu.org>
5269
5270 * process.c (setup_process_coding_systems): Move to the part
5271 shared by non-subprocesses systems, and make its body empty when
5272 subprocesses is not defined.
5273 (close_process_descs): Move to the part shared by non-subprocesses
5274 systems.
1408902e
EZ
5275 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5276 ANSI C.
fc549af9 5277
d5a3eaaf
AS
52782010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5279
5280 * editfns.c (transpose_markers): Convert old-style definition.
5281 * emacs.c (abort, shut_down_emacs, fixup_locale)
5282 (synchronize_system_time_locale)
5283 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5284 * floatfns.c (extract_float, matherr, init_floatfns)
5285 (syms_of_floatfns): Likewise.
5286 * fns.c (make_hash_table): Likewise.
5287 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5288 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5289 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5290 (ftfont_variation_glyphs): Likewise.
5291 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5292 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5293 * lread.c (read_filtered_event): Likewise.
5294 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5295 * process.c (wait_reading_process_output): Likewise.
5296 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5297 * search.c (search_buffer, boyer_moore): Likewise.
5298 * syntax.c (scan_sexps_forward): Likewise.
5299 * xdisp.c (try_scrolling): Likewise.
5300 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5301 (face_at_string_position): Likewise.
5302 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5303 * xselect.c (x_get_window_property, receive_incremental_selection)
5304 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5305 Likewise.
5306 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5307
6f704c76
DN
53082010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5309
ded80a25
DN
5310 * callproc.c (child_setup): Remove subprocesses conditional.
5311 Remove code dealing with SET_EMACS_PRIORITY, unused.
5312
49d937f4 5313 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
5314 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5315
5316 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5317 (__do_global_dtors, __main): Use void in definition.
5318 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5319 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5320 the only users from ...
5321 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5322 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5323 (HAVE_VOLATILE): Remove, unused.
5324
6f704c76
DN
5325 Convert more function definitions to standard C.
5326 * xdisp.c (window_box_edges, handle_single_display_spec)
5327 (display_string): Convert definition to standard C.
5328 * scroll.c (do_direct_scrolling, scrolling_1):
5329 * dispnew.c (allocate_matrices_for_frame_redisplay)
5330 (mirrored_line_dance):
5331 * coding.c (code_convert_string):
5332 * charset.c (map_charset_chars):
5333 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5334 (Fregister_ccl_program, Fregister_code_conversion_map):
5335 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5336 (head_table): Make static and const.
5337
e6cfa7c3
AS
53382010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5339
5340 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5341 (PROFILING_LDFLAGS): Set from substitution.
5342 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5343 CFLAGS last.
5344
892dd565
KH
53452010-07-12 Kenichi Handa <handa@m17n.org>
5346
6f2cdcd1
KH
5347 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5348 (shortlisp): Likewise.
5349
892dd565
KH
5350 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5351
5352 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5353 of FONT_ENTITY_INDEX.
5354 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5355 property, get the property value dynamically.
5356 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 5357 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 5358 return value changed.
bba3e508 5359 (syms_of_font): Adjust for the above change.
892dd565 5360
ae96d47a
AS
53612010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5362
c8fc18ee
AS
5363 * blockinput.h: Remove obsolete comment.
5364
89887d67
AS
5365 * lisp.h: Include <stddef.h>.
5366 (OFFSETOF): Don't define.
5367 (VECSIZE): Use offsetof instead of OFFSETOF.
5368 (PSEUDOVECSIZE): Likewise.
5369 * process.c (conv_sockaddr_to_lisp): Likewise.
5370 * alloc.c: Don't include <stddef.h>.
5371 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5372
ae96d47a
AS
5373 * process.c: Remove obsolete comment.
5374
635c0aa1
CY
53752010-07-11 Chong Yidong <cyd@stupidchicken.com>
5376
5377 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5378
a64df650
AS
53792010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5380
8966b757
AS
5381 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5382 index, rindex.
5383 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5384 * editfns.c (Fuser_full_name, Fformat): Likewise.
5385 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5386 * fileio.c (Ffile_symlink_p): Likewise.
5387 * filelock.c (current_lock_owner): Likewise.
5388 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5389 * fontset.c (fontset_pattern_regexp): Likewise.
5390 * lread.c (read1): Likewise.
5391 * sysdep.c (init_system_name): Likewise.
5392 * xfns.c (select_visual): Likewise.
5393 * s/hpux10-20.h (index, rindex): Don't define.
5394 * s/ms-w32.h (index): Likewise.
5395 * s/usg5-4.h: Likewise.
5396
cf237e27
AS
5397 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5398
a8fe7202
AS
5399 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5400 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5401 (egetenv): Likewise.
5402 * doprnt.c (doprnt): Likewise.
5403 * editfns.c (set_time_zone_rule, format2): Likewise.
5404 * emacs.c (decode_env_path): Likewise.
5405 * eval.c (signal_error, error): Likewise.
5406 * insdel.c (replace_range_2): Likewise.
5407 * keyboard.c (cmd_error_internal): Likewise.
5408 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5409 * print.c (write_string, write_string_1, print_error_message):
5410 Likewise.
5411 * vm-limit.c (warn_function, memory_warnings): Likewise.
5412 * xdisp.c (message1, message1_nolog, message_with_string)
5413 (vmessage, message, message_nolog): Likewise.
5414 * emacs.c: Remove duplicate declaration.
5415 * keyboard.h: Likewise.
5416 * lisp.h: Update prototypes.
5417
bb8e180f
AS
5418 * eval.c: Fix indentation problem.
5419
83380e65
AS
5420 * keyboard.c: Include "process.h"
5421
a64df650
AS
5422 * eval.c: Remove obsolete noinline declaration.
5423 * fns.c: Likewise.
5424
6a8033e1
KR
54252010-07-11 Ken Raeburn <raeburn@raeburn.org>
5426
5427 * doprnt.c (doprnt): Take a va_list argument instead of count and
5428 pointer.
5429 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 5430 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
5431 changed to take a va_list argument.
5432 (message): New variadic wrapper.
5433 (message_nolog): Now a variadic function, calling vmessage.
5434 * lisp.h: Include stdarg.h for va_list.
5435 (doprnt, error, message, message_nolog): Decls updated.
5436
462aa963
EZ
54372010-07-11 Eli Zaretskii <eliz@gnu.org>
5438
5439 * process.c (syms_of_process) <delete-exited-processes>: Define
5440 even if !subprocesses.
5441 (delete_exited_processes): Ditto.
5442
5443 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5444 (delete_exited_processes): Don't define.
5445
48104462
CY
54462010-07-10 Chong Yidong <cyd@stupidchicken.com>
5447
5448 * frame.c (make_frame): Initialize menu_bar_lines and
5449 tool_bar_lines members.
bba3e508
SM
5450 (make_initial_frame, make_terminal_frame):
5451 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
5452
5453 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5454
f388c88a
EZ
54552010-07-10 Eli Zaretskii <eliz@gnu.org>
5456
5457 * process.c: Reshuffle #include's. Condition some of the global
5458 and static variables on `subprocesses'.
5459 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5460 Leave only one implementation.
5461 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5462 (kill_buffer_processes, Flist_system_processes)
5463 (Fprocess_attributes, init_process, syms_of_process): Unify the
5464 implementations for with subprocesses and without them.
5465
723f5a07
J
54662010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5467
5468 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5469 correct size for Motif.
5470 (free_frame_menubar): Call x_set_window_size to update frame size.
5471
5472 * xfns.c (x_window): Set borderWidth to 0 for pane and
5473 EmacsFrame. Frame size calculation is wrong otherwise.
5474
2536a4b7
MA
54752010-07-09 Michael Albinus <michael.albinus@gmx.de>
5476
5477 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5478 allows to suppress errors when polling in Emacs' main loop.
5479 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5480 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5481 (Fdbus_method_error_internal, Fdbus_send_signal)
5482 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5483 (Fdbus_register_method): Use it. (Bug#6579)
5484
5842a27b
DN
54852010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5486
5487 * alloc.c: Convert DEFUNs to standard C.
5488 * buffer.c:
5489 * bytecode.c:
5490 * callint.c:
5491 * callproc.c:
5492 * casefiddle.c:
5493 * casetab.c:
5494 * category.c:
5495 * character.c:
5496 * charset.c:
5497 * chartab.c:
5498 * cmds.c:
5499 * coding.c:
5500 * composite.c:
5501 * data.c:
5502 * dbusbind.c:
5503 * dired.c:
5504 * dispnew.c:
5505 * doc.c:
5506 * dosfns.c:
5507 * editfns.c:
5508 * emacs.c:
5509 * eval.c:
5510 * fileio.c:
5511 * filelock.c:
5512 * floatfns.c:
5513 * fns.c:
5514 * font.c:
5515 * fontset.c:
5516 * frame.c:
5517 * fringe.c:
5518 * image.c:
5519 * indent.c:
5520 * insdel.c:
5521 * keyboard.c:
5522 * keymap.c:
5523 * lread.c:
5524 * macros.c:
5525 * marker.c:
5526 * menu.c:
5527 * minibuf.c:
5528 * msdos.c:
5529 * nsfns.m:
5530 * nsmenu.m:
5531 * nsselect.m:
5532 * print.c:
5533 * process.c:
5534 * search.c:
5535 * sound.c:
5536 * syntax.c:
5537 * term.c:
5538 * terminal.c:
5539 * textprop.c:
5540 * undo.c:
5541 * w16select.c:
5542 * w32console.c:
5543 * w32fns.c:
5544 * w32font.c:
5545 * w32menu.c:
5546 * w32proc.c:
5547 * w32select.c:
5548 * window.c:
5549 * xdisp.c:
5550 * xfaces.c:
5551 * xfns.c:
5552 * xmenu.c:
5553 * xselect.c:
5554 * xsettings.c:
5555 * xsmfns.c: Likewise.
5556
d568829b
EZ
55572010-07-08 Eli Zaretskii <eliz@gnu.org>
5558
5559 * process.c (kbd_is_on_hold, hold_keyboard_input)
5560 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5561
52214050
J
55622010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5563
5564 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5565 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5566 unless USE_LUCID.
5567
313d9eb2
DN
55682010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5569
a628ad9d
JB
5570 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5571 declaration.
d8825aa3 5572
295d0d8f
DN
5573 Clean up include guards.
5574 * tparam.c: Remove include guards for config.h, string.h and code
5575 that assumes #ifndef emacs.
5576 * termcap.c:
5577 * unexalpha.c:
5578 * sysdep.c:
5579 * filemode.c:
5580 * filelock.c:
5581 * bidi.c: Likewise.
5582
49d9e6b0
DN
5583 Remove prefix-args.c
5584 * prefix-args.c: Remove file.
5585 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5586 * Makefile.in (temacs${EXEEXT}): Remove references to
5587 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5588 (mostlyclean): Remove reference to prefix-args.
5589 (prefix-args): Remove.
5590
313d9eb2
DN
5591 Simplify cstart_of_data, start_of_code and related code.
5592 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5593 (start_of_data): Merge into start_of_data function.
5594 * sysdep.c (start_of_text): Remove. Move simplified versions of
5595 it in the only users: unexaix.c and unexec.c.
5596 (read_input_waiting): Remove local declaration of quit_char.
5597 (start, etext): Remove declarations.
5598 (start_of_data): Merge with the version in mem-limits.h and move
5599 to vm-limits.c.
5600 * vm-limit.c (start_of_data): Merged and simplified version of the
5601 code formerly in mem-limits.h and sysdep.c.
5602 * unexec.c (start): New declaration, moved from sysdep.c.
5603 (start_of_text): Simplified version of the code formerly in sysdep.c.
5604 * unexaix.c (start_of_text): Simplified version of the code
5605 formerly in sysdep.c.
5606 * m/alpha.h (HAVE_TEXT_START): Remove.
5607 (TEXT_START): Move ...
5608 * unexalpha.c (TEXT_START): ... here.
5609 * s/hpux10-20.h (TEXT_START): Remove.
5610 * s/darwin.h (TEXT_START):
5611 * m/mips.h (TEXT_START):
5612 * m/macppc.h (HAVE_TEXT_START):
5613 * m/m68k.h (TEXT_START):
5614 * m/iris4d.h (TEXT_START):
5615 * m/intel386.h (TEXT_START):
5616 * m/ibmrs6000.h (TEXT_START):
5617 * m/ia64.h (HAVE_TEXT_START):
5618 * s/msdos.h (TEXT_START): Likewise.
5619
72af86bd
AS
56202010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5621
5622 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5623 (overrun_check_free, xstrdup, allocate_string)
5624 (allocate_string_data, compact_small_strings, Fmake_string)
5625 (make_unibyte_string, make_multibyte_string)
5626 (make_string_from_bytes, make_specified_string, make_float)
5627 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5628 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5629 memcpy, memmove, memset, memcmp.
5630 * atimer.c (start_atimer, set_alarm): Likewise.
5631 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5632 (mmap_realloc, init_buffer_once): Likewise.
5633 * callint.c (Fcall_interactively): Likewise.
5634 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5635 (getenv_internal_1): Likewise.
5636 * casefiddle.c (casify_object): Likewise.
5637 * ccl.c (ccl_driver): Likewise.
5638 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5639 * charset.c (load_charset_map_from_file)
5640 (load_charset_map_from_file, load_charset_map_from_vector)
5641 (Fdefine_charset_internal): Likewise.
5642 * cm.c (Wcm_clear): Likewise.
5643 * coding.c (decode_eol, decode_coding_object)
5644 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5645 * data.c (Faset): Likewise.
5646 * dired.c (directory_files_internal, file_name_completion_stat):
5647 Likewise.
5648 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5649 (clear_glyph_row, copy_row_except_pointers)
5650 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5651 (save_current_matrix, restore_current_matrix)
5652 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5653 (mirror_line_dance, scrolling_window): Likewise.
5654 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5655 Likewise.
5656 * doprnt.c (doprnt): Likewise.
5657 * editfns.c (Fuser_full_name, make_buffer_string_both)
5658 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5659 * emacs.c (sort_args): Likewise.
5660 * eval.c (Fapply, Ffuncall): Likewise.
5661 * fileio.c (Ffile_name_directory, make_temp_name)
5662 (Fexpand_file_name, search_embedded_absfilename)
5663 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5664 (auto_save_error): Likewise.
5665 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5666 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5667 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5668 (Fmake_hash_table): Likewise.
5669 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5670 * ftfont.c (ftfont_text_extents): Likewise.
5671 * getloadavg.c (getloadavg): Likewise.
5672 * image.c (define_image_type, make_image, make_image_cache)
5673 (x_create_x_image_and_pixmap, xbm_image_p)
5674 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5675 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5676 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5677 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5678 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5679 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5680 Likewise.
5681 * indent.c (scan_for_column, compute_motion): Likewise.
5682 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5683 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5684 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5685 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5686 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5687 (store_user_signal_events, menu_bar_items, tool_bar_items)
5688 (process_tool_bar_item, append_tool_bar_item)
5689 (read_char_minibuf_menu_prompt, read_key_sequence)
5690 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5691 Likewise.
5692 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5693 Likewise.
5694 * lisp.h (STRING_COPYIN): Likewise.
5695 * lread.c (Fload, read1, oblookup): Likewise.
5696 * msdos.c (Frecent_doskeys): Likewise.
5697 * nsfns.m (Fx_create_frame): Likewise.
5698 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5699 Likewise.
5700 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5701 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5702 Likewise.
5703 * nsmenu.m (ns_update_menubar): Likewise.
5704 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5705 * print.c (print_unwind, printchar, strout, print_string)
5706 (print_error_message): Likewise.
5707 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5708 (Fmake_network_process, Fnetwork_interface_list)
5709 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5710 (init_process): Likewise.
5711 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5712 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5713 Likewise.
5714 * scroll.c (do_scrolling, do_direct_scrolling)
5715 (scrolling_max_lines_saved): Likewise.
5716 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5717 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5718 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5719 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5720 (emacs_set_tty): Likewise.
5721 * term.c (encode_terminal_code, calculate_costs)
5722 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5723 Likewise.
5724 * termcap.c (tgetst1, gobble_line): Likewise.
5725 * termhooks.h (EVENT_INIT): Likewise.
5726 * tparam.c (tparam1): Likewise.
5727 * unexalpha.c (unexec): Likewise.
5728 * unexec.c (write_segment): Likewise.
5729 * unexmacosx.c (unexec_write_zero): Likewise.
5730 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5731 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5732 * w32font.c (w32font_list_family, w32font_text_extents)
5733 (w32font_list_internal, w32font_match_internal)
5734 (w32font_open_internal, compute_metrics, Fx_select_font):
5735 Likewise.
5736 * w32menu.c (set_frame_menubar, add_menu_item)
5737 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5738 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5739 * w32uniscribe.c (uniscribe_list_family): Likewise.
5740 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5741 * window.c (make_window, replace_window, set_window_buffer)
5742 (Fsplit_window): Likewise.
5743 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5744 (add_to_log, message3, x_consider_frame_title)
5745 (append_space_for_newline, extend_face_to_end_of_line)
5746 (decode_mode_spec_coding, init_glyph_string): Likewise.
5747 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5748 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5749 (face_attr_equal_p, make_realized_face, make_face_cache)
5750 (free_realized_faces, lookup_named_face, smaller_face)
5751 (face_with_height, lookup_derived_face)
5752 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5753 (Finternal_set_font_selection_order, realize_default_face)
5754 (compute_char_face, face_at_buffer_position)
5755 (face_for_overlay_string, face_at_string_position, merge_faces):
5756 Likewise.
5757 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5758 (Fx_window_property, x_create_tip_frame)
5759 (Fx_backspace_delete_keys_p): Likewise.
5760 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5761 (xfont_text_extents): Likewise.
5762 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5763 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5764 * xselect.c (x_queue_event, x_get_window_property)
5765 (receive_incremental_selection): Likewise.
5766 * xsmfns.c (x_session_check_input): Likewise.
5767 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5768 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5769 Likewise.
5770 * character.h (BCOPY_SHORT): Removed.
5771 * config.in: Regenerate.
5772 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5773 * emacs.c (main) [PROFILING]: Don't declare
5774 dump_opcode_frequencies.
5775 * lisp.h (safe_bcopy): Remove declaration.
5776 (memset) [!HAVE_MEMSET]: Declare.
5777 (memcpy) [!HAVE_MEMCPY]: Likewise.
5778 (memmove) [!HAVE_MEMMOVE]: Likewise.
5779 (memcmp) [!HAVE_MEMCMP]: Likewise.
5780 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5781 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5782 Don't define.
5783 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5784 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5785 (BCOPY_DOWNWARD_SAFE): Don't define.
5786 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5787 (memcpy) [!HAVE_MEMCPY]: Define.
5788 (memmove) [!HAVE_MEMMOVE]: Define.
5789 (memcmp) [!HAVE_MEMCMP]: Define.
5790
cb768704
J
57912010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5792
5793 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
5794 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5795 New functions.
cb768704
J
5796 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5797 select on empty input mask.
5798 (init_process): Initialize kbd_is_on_hold to 0.
5799
5800 * process.h (hold_keyboard_input, unhold_keyboard_input)
5801 (kbd_on_hold_p): Declare.
5802
5803 * keyboard.c (input_available_signal): Declare.
5804 (kbd_buffer_nr_stored): New function.
5805 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5806 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5807 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5808 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5809 (tty_read_avail_input): If input is on hold, return.
5810 Don't read more that free slots in kbd_buffer (Bug#6571).
5811
3a8ce822
EZ
58122010-07-07 Eli Zaretskii <eliz@gnu.org>
5813
5814 * msdos.h:
5815 * msdos.c:
5816 * dosfns.c:
5817 * w16select.c: Convert function definitions to ANSI C.
5818
a628ad9d
JB
5819 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5820 Remove unused prototypes.
3a8ce822 5821
cf84bb53
JB
58222010-07-07 Juanma Barranquero <lekktu@gmail.com>
5823
5824 * coding.c, sysdep.c: Convert some more functions to standard C.
5825
1a4990fb
JB
58262010-07-07 Juanma Barranquero <lekktu@gmail.com>
5827
5828 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5829 (encode_coding_object): Use SPECPDL_INDEX.
5830 (syms_of_coding): Use DOS_NT.
5831
c0f2f16b
DN
58322010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5833
48fb6855
DN
5834 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5835
c0f2f16b
DN
5836 Make the function member of Lisp_Subr use standard C prototypes.
5837 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5838 (DECL_ALIGN): Add a cast for the function.
5839 * eval.c (Feval, Ffuncall): Use the proper type for each type
5840 function call.
5841
67aecef9
CY
58422010-07-06 Chong Yidong <cyd@stupidchicken.com>
5843
5844 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5845 fringe face id, so face-remapping-alist works (Bug#6091).
5846
b56ceb92
JB
58472010-07-06 Juanma Barranquero <lekktu@gmail.com>
5848
5849 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5850 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5851 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5852
7af07b96
AS
58532010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5854
5855 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5856 * lisp.h: Declare x_get_keysym_name.
5857 * keyboard.c (modify_event_symbol): Don't declare
5858 x_get_keysym_name here.
5859
69e24e34
DN
58602010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5861
5862 * ecrt0.c: Revert conversion to standard C.
5863
d3da34e0 58642010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
5865
5866 * vm-limit.c (memory_warnings):
5867 * keyboard.c (modify_event_symbol):
5868 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5869 (round2, emacs_rint):
5870 * process.c (send_process, old_sigpipe): Convert function
5871 definitions and declarations to standard C.
5872
58732010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
5874
5875 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5876 * xdisp.c: Convert function definitions to standard C.
5877
5878 * cm.c (cmputc): Arg C is now int, not char.
5879 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5880
00be444c
J
58812010-07-05 James Cloos <cloos@jhcloos.com>
5882
5883 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5884
5885 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5886 _NET_WM_ICON_NAME atoms.
5887
5888 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5889 and _NET_WM_ICON_NAME properties, too, matching what is
5890 done in the Gtk+ case.
5891
e4c8d29a
J
58922010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5893
ff919460
J
5894 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5895
e4c8d29a
J
5896 * xsmfns.c (SSDATA): New macro.
5897 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5898 passed to strlen/strcpy/strcat.
bba3e508
SM
5899 (create_client_leader_window): Surround with #ifndef USE_GTK.
5900 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
5901
5902 * xsettings.c (something_changedCB, parse_settings)
5903 (apply_xft_settings): Reformat prototype.
5904 (something_changedCB, init_gconf): Remove unused variable i.
5905 (read_settings): Remove unused variable long_len.
5906
5907 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5908 (xg_get_image_for_pixmap, create_dialog)
5909 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5910 (menuitem_highlight_callback, make_menu_item)
5911 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5912 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5913 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5914 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5915 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5916 (xg_tool_bar_item_expose_callback): Reformat prototype.
5917 (xg_update_menubar): GList *group => GSList *group.
5918 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5919 before use.
5920 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5921 to GTK_IMAGE (wimage).
5922
dd4c5104
DN
59232010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5924
898b4c5c
DN
5925 * atimer.c: Use "" instead of <> for local includes for
5926 consistency with the rest of the code.
5927
dd4c5104
DN
5928 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5929 * xrdb.c (get_system_name):
5930 * window.c (shrink_windows):
5931 * syntax.c (forw_comment):
5932 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5933 (ins_del_costs):
5934 * mem-limits.h (start_of_data):
5935 * lread.c (readevalloop):
5936 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5937 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5938 * frame.c (x_get_focus_frame):
5939 * floatfns.c (fmod_float):
5940 * fileio.c (choose_write_coding_system):
5941 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5942 (malloc_initialize_hook, sort_args, synchronize_locale):
5943 * doprnt.c (doprnt):
5944 * dired.c (compile_pattern):
5945 * data.c (fmod_float):
5946 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5947 (map_char_table_for_charset):
5948 * charset.c (define_charset_internal):
5949 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5950 to standard C.
5951
9a39b306 59522010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 5953 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
5954
5955 * lread.c (read1): Fix up last change to not mess up `c'.
5956
e6cb2cbb
JB
59572010-07-04 Juanma Barranquero <lekktu@gmail.com>
5958
5959 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5960
438105ed
JB
59612010-07-04 Juanma Barranquero <lekktu@gmail.com>
5962
5963 Fix prototypes.
5964
e5447b22 5965 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 5966 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
5967 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5968 arg, as required by internal_condition_case_1.
dcc7404b 5969 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
5970 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5971 (analyse_first): Fix "const const".
e5447b22 5972 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 5973 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 5974 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 5975
971de7fb
DN
59762010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
5977
5978 * alloc.c: Convert function definitions to standard C.
5979 * atimer.c:
5980 * bidi.c:
5981 * bytecode.c:
5982 * callint.c:
5983 * callproc.c:
5984 * casefiddle.c:
5985 * casetab.c:
5986 * category.c:
5987 * ccl.c:
5988 * character.c:
5989 * charset.c:
5990 * chartab.c:
5991 * cmds.c:
5992 * coding.c:
5993 * composite.c:
5994 * data.c:
5995 * dbusbind.c:
5996 * dired.c:
5997 * dispnew.c:
5998 * doc.c:
5999 * doprnt.c:
6000 * ecrt0.c:
6001 * editfns.c:
6002 * fileio.c:
6003 * filelock.c:
6004 * filemode.c:
6005 * fns.c:
6006 * font.c:
6007 * fontset.c:
6008 * frame.c:
6009 * fringe.c:
6010 * ftfont.c:
6011 * ftxfont.c:
6012 * gtkutil.c:
6013 * indent.c:
6014 * insdel.c:
6015 * intervals.c:
6016 * keymap.c:
6017 * lread.c:
6018 * macros.c:
6019 * marker.c:
6020 * md5.c:
6021 * menu.c:
6022 * minibuf.c:
6023 * prefix-args.c:
6024 * print.c:
6025 * ralloc.c:
6026 * regex.c:
6027 * region-cache.c:
6028 * scroll.c:
6029 * search.c:
6030 * sound.c:
6031 * strftime.c:
6032 * syntax.c:
6033 * sysdep.c:
6034 * termcap.c:
6035 * terminal.c:
6036 * terminfo.c:
6037 * textprop.c:
6038 * tparam.c:
6039 * undo.c:
6040 * unexelf.c:
6041 * window.c:
6042 * xfaces.c:
6043 * xfns.c:
6044 * xfont.c:
6045 * xftfont.c:
6046 * xgselect.c:
6047 * xmenu.c:
6048 * xrdb.c:
6049 * xselect.c:
6050 * xsettings.c:
6051 * xsmfns.c:
6052 * xterm.c: Likewise.
6053
ae492bec
EZ
60542010-07-03 Eli Zaretskii <eliz@gnu.org>
6055
76ea4cc9
EZ
6056 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6057 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
6058 `reverse' is specified in the frame parameters.
6059 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
6060 internal-set-lisp-face-attribute. Initialize screen colors from
6061 initial_screen_colors[] when f->default_face_done_p is zero,
6062 instead of depending on being called with default-frame-alist as
6063 the alist argument.
6064
6065 * xfaces.c (update_face_from_frame_parameter): Move out of
6066 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6067 with HAVE_WINDOW_SYSTEM.
6068
1e6255ae
EZ
6069 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6070 to menu-bar-mode, if not set in the frame parameters or in
6071 default-frame-alist.
6072
ae492bec
EZ
6073 * w32console.c (sys_tputs): Adjust argument list to prototype in
6074 term.c.
6075
3a35a84c
JB
60762010-07-03 Juanma Barranquero <lekktu@gmail.com>
6077
6078 * lisp.h (memory_warnings): Fix prototype.
6079
6080 * cm.h (evalcost): Fix prototype.
6081
6082 * cm.c (evalcost): Fix arg type.
6083
c532d349
DN
60842010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6085
6086 * term.c (term_clear_mouse_face, Fidentity):
6087 * syssignal.h (signal_handler_t):
6088 * lisp.h (memory_warnings):
6089 * coding.h (preferred_coding_system):
6090 * cm.h (evalcost):
6091 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6092
c0b36d46
EZ
60932010-07-02 Eli Zaretskii <eliz@gnu.org>
6094
6095 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6096 from prototypes.
6097
6098 * msdos.h (load_pixmap): Don't define away.
6099
383e0970
J
61002010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6101
f57e2426
J
6102 * lisp.h:
6103 * atimer.h: Remove define for P_.
6104
6105 * alloc.c: Remove __P and P_ from .c and .m files.
6106 * atimer.c:
6107 * buffer.c:
6108 * callint.c:
6109 * category.c:
6110 * charset.c:
6111 * chartab.c:
6112 * cm.c:
6113 * coding.c:
6114 * composite.c:
6115 * data.c:
6116 * dired.c:
6117 * dispnew.c:
6118 * doc.c:
6119 * editfns.c:
6120 * emacs.c:
6121 * eval.c:
6122 * fileio.c:
6123 * filelock.c:
6124 * fns.c:
6125 * font.c:
6126 * fontset.c:
6127 * frame.c:
6128 * ftfont.c:
6129 * ftxfont.c:
6130 * gmalloc.c:
6131 * gtkutil.c:
6132 * image.c:
6133 * indent.c:
6134 * intervals.c:
6135 * keyboard.c:
6136 * keymap.c:
6137 * lread.c:
6138 * marker.c:
6139 * menu.c:
6140 * minibuf.c:
6141 * print.c:
6142 * process.c:
6143 * scroll.c:
6144 * search.c:
6145 * sound.c:
6146 * strftime.c:
6147 * syntax.c:
6148 * sysdep.c:
6149 * term.c:
6150 * terminal.c:
6151 * textprop.c:
6152 * unexalpha.c:
6153 * w32console.c:
6154 * w32fns.c:
6155 * w32font.c:
6156 * w32menu.c:
6157 * w32term.c:
6158 * w32uniscribe.c:
6159 * window.c:
6160 * xdisp.c:
6161 * xfaces.c:
6162 * xfns.c:
6163 * xfont.c:
6164 * xftfont.c:
6165 * xmenu.c:
6166 * xselect.c:
6167 * xterm.c: Likewise.
6168
383e0970 6169 Remove P_ and __P macros.
f57e2426
J
6170 * atimer.h: Remove P_ and __P macros.
6171 * buffer.h:
383e0970
J
6172 * category.h:
6173 * ccl.h:
6174 * character.h:
6175 * charset.h:
6176 * cm.h:
6177 * coding.h:
6178 * composite.h:
6179 * dispextern.h:
6180 * disptab.h:
9e892c8d 6181 * dosfns.h:
383e0970
J
6182 * font.h:
6183 * fontset.h:
6184 * frame.h:
6185 * gtkutil.h:
6186 * indent.h:
6187 * intervals.h:
6188 * keyboard.h:
6189 * keymap.h:
6190 * lisp.h:
6191 * macros.h:
6192 * md5.h:
6193 * menu.h:
6194 * msdos.h:
6195 * nsterm.h:
6196 * puresize.h:
6197 * region-cache.h:
6198 * syntax.h:
6199 * syssignal.h:
6200 * systime.h:
6201 * termhooks.h:
9e892c8d 6202 * w32font.h:
383e0970
J
6203 * w32term.h:
6204 * widget.h:
6205 * window.h:
6206 * xgselect.h:
6207 * xsettings.h:
6208 * xterm.h: Likewise.
6209
98601119
DN
62102010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6211
d9170db5
DN
6212 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6213
98601119
DN
6214 Cleanup old code.
6215 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6216 * syssignal.h: Remove code for Lynx, not supported anymore.
6217 * vm-limit.c: Remove unused code the depends on emacs not being
6218 defined and NO_LIM_DATA being defined.
6219 * mem-limits.h: Remove dead code.
6220
1f984e12
J
62212010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6222
c49d071a
J
6223 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6224
9d5405ec
J
6225 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6226 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6227
7a18115b
J
6228 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6229 parameters, they are already absolute.
6230
a628ad9d
JB
6231 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6232 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 6233
a628ad9d 6234 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 6235
a628ad9d
JB
6236 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6237 Update FRAME_TOOLBAR_HEIGHT.
581a8100 6238
a628ad9d
JB
6239 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6240 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 6241
c1ef4455
CY
62422010-06-30 Chong Yidong <cyd@stupidchicken.com>
6243
bba3e508
SM
6244 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6245 Don't check default-frame-alist.
c1ef4455 6246
ce8f5a9a
AS
62472010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6248
6249 * process.c (create_process): Avoid using invalid file descriptors.
6250
6251 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6252
bf935339
J
62532010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6254
6255 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6256 Improve documentation. Return font regardless of use_system_font.
6257 (syms_of_xsettings): Improve documentation for font-use-system-font.
6258
7c33a057
CY
62592010-07-10 Chong Yidong <cyd@stupidchicken.com>
6260
2ec1b5ee
CY
6261 * xfaces.c (realize_face): Garbage the frame if a face is removed
6262 (Bug#6593).
6263
62642010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6265
6266 * keyboard.c: Remove duplicate <setjmp.h>.
6267 (read_key_sequence): Remove volatile qualifiers.
6268
62692010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6270
6271 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6272 (struct glyph_row): New members left_fringe_offset and
6273 right_fringe_offset.
6274
6275 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6276 specially.
6277 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6278 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6279
6280 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 6281 Take account of bitmap offset.
2ec1b5ee
CY
6282 (draw_window_fringes): Take account of window vscroll.
6283 (update_window_fringes): Likewise. Extend top-aligned top indicator
6284 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6285 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6286 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6287
62882010-07-04 Juanma Barranquero <lekktu@gmail.com>
6289
6290 * w32fns.c (Qtooltip): Declare.
6291 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6292
62932010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6294
6295 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6296 grab on just Press (Bug#6499).
6297
62982010-07-02 Chong Yidong <cyd@stupidchicken.com>
6299
6300 * frame.c (Qtooltip): New var.
6301 (delete_frame): Use it. Fix faulty if statement. Don't update
6302 mode line for tooltip frames. Suggested by Martin Rudalics.
6303
6304 * xfns.c (x_create_tip_frame):
6305 * w32fns.c (x_create_tip_frame): Use it.
6306
63072010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
6308
6309 * xftfont.c (xftfont_open): Check font width one by one also when
6310 spacing is dual.
6311
6312 * ftfont.c (ftfont_open): Ditto.
6313
6259c2ec
GM
63142010-06-30 Glenn Morris <rgm@gnu.org>
6315
a46007e9
GM
6316 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6317
6259c2ec
GM
6318 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6319
6320 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6321 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6322 * s/darwin.h (SYSTEM_MALLOC):
6323 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6324
5d1d3d04
J
63252010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6326
6327 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6328 (ns_get_screen): Don't assign integer to f.
6329 (Fx_display_color_cells): Declarations before statements.
6330
e547b051
J
63312010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6332
5fc8e5bc
J
6333 * xfns.c (x_default_font_parameter): Remove got_from_system
6334 (Bug#6526).
6335
e547b051 6336 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
6337 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6338 New defines based on what configure finds.
e547b051
J
6339
6340 * xterm.c (XTflash): Use gtk_widget_get_window.
6341 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6342 gtk_adjustment_get_page_size.
6343 (handle_one_xevent): Use gtk_widget_get_mapped.
6344 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6345 messages.
6346
6347 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6348
6349 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6350 HAVE_GTK_FILE_SELECTION_NEW.
6351
bba3e508
SM
6352 * gtkutil.c (xg_display_open, xg_display_close):
6353 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
6354 (xg_display_open): Return type is void.
6355 (gtk_widget_set_has_window)
6356 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6357 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6358 (gtk_adjustment_set_page_increment)
6359 (gtk_adjustment_get_step_increment): #define these if not found
6360 by configure.
6361 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
6362 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6363 Use gtk_widget_get_window.
e547b051
J
6364 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6365 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6366 (create_dialog): Use gtk_dialog_get_action_area and
6367 gtk_dialog_get_content_area.
6368 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6369 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6370 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
6371 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6372 Use g_object_ref and g_object_unref.
6373 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6374 Use gtk_widget_get_sensitive.
e547b051
J
6375 (xg_update_submenu): Use remove_submenu.
6376 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6377 properties instead to get old x and y position.
6378 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6379 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 6380 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
6381 (xg_get_tool_bar_widgets): New function.
6382 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6383 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6384 (toolbar_set_orientation): New #define based on if configure
6385 finds gtk_orientable_set_orientation.
6386 (xg_create_tool_bar): Call toolbar_set_orientation.
6387 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6388 instead of gtk_box_pack_start_defaults.
6389
b9229673
CY
63902010-06-28 Chong Yidong <cyd@stupidchicken.com>
6391
6392 * cmds.c (Fdelete_backward_char): Move into Lisp.
6393
bbc803b0
DN
63942010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6395
6396 * s/freebsd.h (BSD4_2): Remove redundant definition.
6397 bsd-common.h defines it already.
6398
6431f2e6
CY
63992010-06-27 Chong Yidong <cyd@stupidchicken.com>
6400
6401 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6402 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6403 tool-bar-mode, which are now set using these X resources at
6404 startup, to determine the defaults (Bug#2249).
6405
6406 * w32fns.c (Fx_create_frame):
6407 * nsfns.m (Fx_create_frame): Likewise.
6408
6409 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6410
8c079ebb
JB
64112010-06-24 Juanma Barranquero <lekktu@gmail.com>
6412
6413 * gtkutil.c (xg_update_scrollbar_pos):
6414 Avoid C99 mid-block variable declaration.
6415
e9b7ab96
JD
64162010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6417
bc869eca
JD
6418 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6419
2b7e356a 6420 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
6421
6422 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6423 if height is less than scroll bar min size.
6424 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6425
e9b7ab96
JD
6426 * xfns.c (x_default_font_parameter): Try to open font from system
6427 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6428
a628ad9d 64292010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
6430
6431 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6432
70c4cfbb
EZ
64332010-06-20 Eli Zaretskii <eliz@gnu.org>
6434
6435 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6436 most-positive-fixnum, be extra accurate when scrolling window
6437 start, to avoid missing the cursor line.
6438
ad5a12b5
EZ
64392010-06-19 Eli Zaretskii <eliz@gnu.org>
6440
6441 * xdisp.c (try_scrolling): Compute the limit for searching point
6442 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
6443 of 10 screen lines.
6444 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
6445 and
6446 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6447 for details.
6448
2a64315a 64492010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
6450
6451 * editfns.c (Fbyte_to_string): Pacify compiler.
6452
288cf4e9
SM
64532010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6454
6455 * lread.c (read1): Phase out old-style backquotes a bit more.
6456
6e6e5760
EZ
64572010-06-12 Eli Zaretskii <eliz@gnu.org>
6458
cbc4fd20
EZ
6459 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6460 bidimirror.h.
6461
6462 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6463
317fbf33
EZ
6464 * bidi.c (bidi_initialize): Remove explicit initialization of
6465 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 6466 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 6467 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
6468
6469 * biditype.h: New file.
6470
cbc4fd20
EZ
6471 * bidimirror.h: New file.
6472
6e6e5760
EZ
6473 * window.c (syms_of_window): Doc fix (bug#6409).
6474
4176cba2
RF
64752010-06-12 Romain Francoise <romain@orebokech.com>
6476
6477 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6478 ediff-hook.
6479
cb4bfcb5
GM
64802010-06-10 Glenn Morris <rgm@gnu.org>
6481
64c60c2f
GM
6482 * editfns.c (Fbyte_to_string): Pacify compiler.
6483
cb4bfcb5
GM
6484 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6485
2ec1b5ee
CY
64862010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6487
6488 * alloc.c (Fmake_byte_code): Don't access undefined argument
6489 (Bug#6517).
6490
64912010-06-25 Chong Yidong <cyd@stupidchicken.com>
6492
6493 * xdisp.c (next_element_from_image): Ensure that after-strings are
6494 read the next time we hit handle_stop (Bug#1336).
6495
64962010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6497
6498 * lread.c (read1): Signal error if #s is not followed by paren.
6499
65002010-06-19 Chong Yidong <cyd@stupidchicken.com>
6501
6502 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6503
6504 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6505
65062010-06-15 Glenn Morris <rgm@gnu.org>
6507
6508 * editfns.c (Fbyte_to_string): Pacify compiler.
6509
e454a4a3
SM
65102010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6511
6512 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6513 Check `object's type before accessing its guts.
6514
c1b1acc2
DN
65152010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6516
6517 * s/usg5-4.h: Fix previous change.
6518 Suggested by Lawrence Mitchell <wence@gmx.li>
6519
657d4c0b
AS
65202010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6521
6522 * minibuf.c (Fall_completions): Add more checks.
6523
9b27fd9f
JB
65242010-06-08 Juanma Barranquero <lekktu@gmail.com>
6525
6526 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6527
a99ebb40
DN
65282010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6529
d7c5d87d
DN
6530 * lread.c (X_OK): Remove, unused.
6531
0263a941
DN
6532 * dispnew.c: Remove obsolete comment.
6533
a99ebb40
DN
6534 Remove INCLUDED_FCNTL.
6535 * xterm.c (INCLUDED_FCNTL):
6536 * callproc.c (INCLUDED_FCNTL):
6537 * alloc.c (INCLUDED_FCNTL):
6538 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6539 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6540
13b5221f
MR
65412010-06-07 Martin Rudalics <rudalics@gmx.at>
6542
6543 * window.c (Fselect_window): Move `record_buffer' up to the
6544 beginning of this function, so the buffer gets recorded
6545 even if the selected window does not change.
6546 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6547
5220357f
JB
65482010-06-07 Juanma Barranquero <lekktu@gmail.com>
6549
6550 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6551 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6552
3085237c
DN
65532010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6554
6555 Remove BSTRING related code, all platforms define it.
6556 * s/usg5-4.h (BSTRING): Remove definition.
6557 * s/template.h (BSTRING):
6558 * s/msdos.h (BSTRING):
6559 * s/ms-w32.h (BSTRING):
6560 * s/hpux10-20.h (BSTRING):
6561 * s/gnu-linux.h (BSTRING):
6562 * s/darwin.h (BSTRING):
6563 * s/cygwin.h (BSTRING):
6564 * s/bsd-common.h (BSTRING):
6565 * s/aix4-2.h (BSTRING): Likewise.
6566 * sysdep.c: Remove code depending on BSTRING not being defined.
6567
409f2919
JB
65682010-06-05 Juanma Barranquero <lekktu@gmail.com>
6569
6570 Remove obsolete macro BASE_LEADING_CODE_P.
6571 * character.h (BASE_LEADING_CODE_P): Remove.
6572 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6573 * buffer.c (Fset_buffer_multibyte):
6574 * indent.c (scan_for_column, compute_motion):
6575 * insdel.c (count_combining_before, count_combining_after):
6576 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6577
087fc47a
JB
65782010-06-04 Juanma Barranquero <lekktu@gmail.com>
6579
6580 Turn `directory-sep-char' into a noop.
6581
6582 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6583 (DIRECTORY_SEP): Define unconditionally.
6584
6585 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6586
6587 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6588 call dostounix_filename directly.
6589
6590 * fileio.c (CORRECT_DIR_SEPS): Remove.
6591 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6592 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6593 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6594 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6595
6596 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6597 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6598
0eb7675e
AS
65992010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6600
a628ad9d
JB
6601 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6602 (Bug#6346)
0eb7675e 6603
78edd3b7
JB
66042010-06-03 Juanma Barranquero <lekktu@gmail.com>
6605
6606 * ccl.c (Fccl_program_p): Fix typo in docstring.
6607
eb697db5
DN
66082010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6609
6610 Move UNEXEC definition to autoconf.
6611 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6612 * s/sol2-10.h (UNEXEC):
6613 * s/irix6-5.h (UNEXEC):
6614 * s/hpux10-20.h (UNEXEC):
6615 * s/gnu-linux.h (UNEXEC):
6616 * s/darwin.h (UNEXEC):
6617 * s/cygwin.h (UNEXEC):
6618 * s/bsd-common.h (UNEXEC):
6619 * s/aix4-2.h (UNEXEC):
6620 * m/alpha.h (UNEXEC): Likewise.
6621 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6622
aa3830c4
JB
66232010-06-03 Juanma Barranquero <lekktu@gmail.com>
6624
6625 Remove obsolete pre-unicode2 macros.
6626 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6627 * composite.c (composition_reseat_it):
6628 * data.c (Faset):
6629 * fns.c (Ffillarray):
6630 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6631 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6632
d234d13e
JL
66332010-06-03 Juri Linkov <juri@jurta.org>
6634
6635 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6636 (Fswitch_to_buffer): Remove unused variable `err'.
6637
0d4bcf4d
GM
66382010-06-03 Glenn Morris <rgm@gnu.org>
6639
e23dc1e2
GM
6640 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6641
05b09564
GM
6642 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6643 now that AH_BOTTOM does it.
6644
824e2978
GM
6645 * m/hp800.h (HAVE_ALLOCA):
6646 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6647
0d4bcf4d
GM
6648 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6649 Remove NOT_C_CODE tests, it is always true now.
6650
c55d2abf
DN
66512010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6652
08a494a3
DN
6653 Fix config.h includes.
6654 * xsettings.c:
6655 * xgselect.c:
6656 * nsterm.m:
6657 * nsselect.m:
6658 * nsimage.m:
6659 * nsfont.m:
6660 * nsfns.m:
6661 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6662 other files do.
6663
75934b1d
DN
6664 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6665
9f32a766
DN
6666 * s/sol2-6.h: Remove obsolete comments.
6667
c55d2abf
DN
6668 Remove unnecessary alloca.h includes.
6669 * keymap.c: Do not include alloca.h, config.h does that.
6670 * sysdep.c: Likewise. Do not define fwrite, not used.
6671
06ac62b4
SM
66722010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6673
6674 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6675 the HAVE_TERMIO where it belongs (bug#6149).
6676
1ab8293c
SM
66772010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6678
6679 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6680 of bug#6305).
6681
6dcfd253
EZ
66822010-05-30 Eli Zaretskii <eliz@gnu.org>
6683
6684 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6685 state is always cached (bug#6306).
6686
6d26bbb2
EZ
66872010-05-29 Eli Zaretskii <eliz@gnu.org>
6688
06fa4a23
EZ
6689 Fix cursor motion in bidi-reordered continued lines.
6690 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6691 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
6692 over continuation lines in bidi-reordered buffers.
6693 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
6694 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6695
f5783df3
MA
66962010-05-28 Michael Albinus <michael.albinus@gmx.de>
6697
6698 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6699
7d56b2dd
KH
67002010-05-28 Kenichi Handa <handa@m17n.org>
6701
6702 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6703 Don't sheck SPEC if it is nil.
6704 (font_list_entities): Call font_delete_unmatched if
b925d231 6705 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 6706
e58d4ff7
GM
67072010-05-28 Glenn Morris <rgm@gnu.org>
6708
6709 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6710
f1a5d776
CY
67112010-05-27 Chong Yidong <cyd@stupidchicken.com>
6712
6713 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6714 whether to trash.
6715 (internal_delete_file, Frename_file): Callers changed.
6716 (delete_by_moving_to_trash): Doc fix.
6717 (Fdelete_directory_internal): Don't move to trash.
6718
6719 * callproc.c (delete_temp_file):
6720 * buffer.c (Fkill_buffer): Callers changed.
6721
6722 * lisp.h: Update prototype.
6723
f44a59e6
CY
67242010-05-27 Chong Yidong <cyd@stupidchicken.com>
6725
6726 * xdisp.c (redisplay_window): After redisplay, check if point is
6727 still valid before setting it (Bug#6177).
6728
81ac4f35
GM
67292010-05-27 Glenn Morris <rgm@gnu.org>
6730
6731 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6732 Convert comments to Makefile format.
6733
6734 * Makefile.in (bootstrap-clean): No more Makefile.c.
6735
ccd89fb3
GM
67362010-05-26 Glenn Morris <rgm@gnu.org>
6737
90278cb6
GM
6738 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6739 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6740
ccd89fb3
GM
6741 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6742 Remove.
6743 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6744
b7050583
KH
67452010-05-26 Kenichi Handa <handa@m17n.org>
6746
6747 * composite.c (composition_compute_stop_pos): Fix condition for
6748 backward scanning.
6749
e5458003
GM
67502010-05-25 Glenn Morris <rgm@gnu.org>
6751
c345fe90
GM
6752 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6753 Move before TEMACS_LDFLAGS.
6754 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6755 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6756
2e0689ab
GM
6757 * Makefile.in (NOT_C_CODE): No longer define.
6758 (config.h): No longer include.
6759
8009a5e8
GM
6760 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6761 variables it may reference.
6762
e5458003
GM
6763 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6764 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6765
10f72a37
KH
67662010-05-25 Kenichi Handa <handa@m17n.org>
6767
6768 * dispextern.h (struct composition_it): New members rule_idx and
6769 charpos.
6770
6771 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6772 that the character positions of IT point the last character of the
6773 current grapheme cluster.
6774 (next_element_from_composition): Don't change character positions
6775 of IT.
6776 (append_composite_glyph): Set glyph->charpos to
6777 it->cmp_it.charpos.
6778
6779 * composite.c (autocmp_chars): Change the first argument to RULE,
6780 and try composition with RULE only.
6781 (composition_compute_stop_pos): Record the index number of the
6782 composition rule in CMP_IT->rule_idx.
6783 (composition_reseat_it): Call autocmp_chars repeatedly until the
6784 correct rule of the composition is found.
6785 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6786 is at the last character of the current grapheme cluster when
6787 CMP_IT->reversed_p is nonzero.
6788
171eda53 67892010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 6790
171eda53
SM
6791 * editfns.c (Fbyte_to_string): New function.
6792
66a9f7f4
SM
67932010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6794
6795 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6796 Suggested by Masatake YAMATO <yamato@redhat.com>.
6797
d8c315d1
EZ
67982010-05-23 Eli Zaretskii <eliz@gnu.org>
6799
171eda53 6800 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 6801
f5b416d2 68022010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6803
6804 * s/netbsd.h: If terminfo is found, use it in preference to
6805 termcap. (Bug#6190) [Backport from trunk]
6806
0416466c
EZ
68072010-05-19 Eli Zaretskii <eliz@gnu.org>
6808
11117830 6809 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
6810
6811 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6812 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6813 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6814 and maxpos members instead of start.pos and end.pos, respectively.
6815
6816 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6817 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6818 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
6819 (try_window_reusing_current_matrix, try_window_id):
6820 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
6821 (init_from_display_pos, init_iterator): Use EMACS_INT for
6822 character and byte positions.
66a9f7f4 6823 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
6824 arguments for minimum and maximum buffer positions seen by
6825 display_line for this row. Don't use iterator to find the
6826 position following the maximum one; instead, increment the
11117830
EZ
6827 position found by display_line directly. Fix logic; eol_pos
6828 should be tested before the rest. Handle the case of characters
6829 delivered from display vector (bug#6036). Fix tests related to
6830 it->method. Handle the truncated_on_right_p rows.
6831 (RECORD_MAX_MIN_POS): New macro.
6832 (display_line): Use it to record the minimum and maximum buffer
6833 positions for glyphs in the row being assembled. Record the
6834 position of the newline that terminates the line. If word wrap is
6835 in effect, restore minimum and maximum positions seen up to the
6836 wrap point, when iterator returns to it.
6837 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6838 row and cursor not already at point. Restore original pre-bidi
6839 code for unidirectional buffers.
d36fe237
EZ
6840
6841 * dispnew.c (increment_row_positions, check_matrix_invariants):
6842 Increment and check row->start.pos and row->end.pos, in addition
6843 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6844
11117830
EZ
6845 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6846 Display truncated_on_left_p and truncated_on_right_p flags.
6847 Formatting fixes.
6848 (pmtxrows): Display the ordinal number of each row. Don't display
6849 rows beyond the last one.
6850
6851 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6852 it is not copied by bidi_copy_it.
6853
6e83d800
EZ
68542010-05-22 Eli Zaretskii <eliz@gnu.org>
6855
6856 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6857 (Bug#6237)
6858
110683ad
CY
68592010-05-22 Chong Yidong <cyd@stupidchicken.com>
6860
6861 * image.c (Fimage_flush): Rename from image-refresh.
6862
98fe5161
CY
68632010-05-21 Chong Yidong <cyd@stupidchicken.com>
6864
6865 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6866 just one window.
6867
6868 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6869 (clear_image_cache): If the number of cached images is unusually
6870 large, decrease the cache eviction delay (Bug#6230).
6871
e8752c66
GM
68722010-05-21 Glenn Morris <rgm@gnu.org>
6873
66dbf213
GM
6874 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6875 Move these rules to ns.mk.
6876 * ns.mk: New file.
6877
04384b2d
GM
6878 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6879
e8752c66
GM
6880 * Makefile.in (CANNOT_DUMP): New, set by configure.
6881 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6882
2e2bbddb
JL
68832010-05-20 Juri Linkov <juri@jurta.org>
6884
6885 * fileio.c (Fdelete_file): Change interative spec to use
6886 `read-file-name' like in `find-file-read-args' where the default
6887 value is `default-directory' instead of `buffer-file-name'.
6888 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6889
31c4aaf6
KR
68902010-05-20 Kevin Ryde <user42@zip.com.au>
6891
6892 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6893 (Voverriding_terminal_local_map, Vsystem_key_alist)
6894 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6895
9d5cf9b6
GM
68962010-05-20 Glenn Morris <rgm@gnu.org>
6897
6898 * Makefile.in (DEPDIR): New constant.
6899 (DEPFLAGS): Set with configure, not cpp.
6900 (MKDEPDIR): New, set by configure.
6901 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6902 (clean): Use $DEPDIR.
6903 (deps_frag): Include from configure.
6904 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6905 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6906
bba3e508
SM
6907 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6908 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 6909
7f34aec3
GM
69102010-05-19 Glenn Morris <rgm@gnu.org>
6911
d494e8f2
GM
6912 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6913
c1d0dcfd
GM
6914 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6915 (GNULIB_VAR): Remove.
6916 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6917
6918 * m/ibms390x.h (LINKER):
6919 * m/macppc.h (LINKER) [GNU_LINUX]:
6920 * s/aix4-2.h (ORDINARY_LINK):
6921 * s/cygwin.h (LINKER):
6922 * s/darwin.h (ORDINARY_LINK):
6923 * s/gnu.h (ORDINARY_LINK):
6924 * s/netbsd.h (LINKER):
6925 * s/usg5-4.h (ORDINARY_LINK):
6926 Move to configure.
6927
7f34aec3
GM
6928 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6929
754790b6
CY
69302010-05-18 Chong Yidong <cyd@stupidchicken.com>
6931
6932 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6933 prevent stack overflow if number of arguments is too large
6934 (Bug#6214).
6935
161e44d1
JB
69362010-05-18 Juanma Barranquero <lekktu@gmail.com>
6937
6938 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6939
be4ff9da
GM
69402010-05-18 Glenn Morris <rgm@gnu.org>
6941
9539dc5d
GM
6942 * s/gnu-linux.h: Combine two conditionals.
6943
6944 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
6945 $(POST_ALLOC_OBJ).
6946
40dc6bf4
GM
6947 * Makefile.in (RALLOC_OBJ): New, set by configure.
6948 (rallocobj): Replace with the previous variable.
6949 (otherobj): Use $RALLOC_OBJ.
6950
6951 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6952 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6953
be4ff9da
GM
6954 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6955 (gmallocobj, vmlimitobj): Replace with previous two variables.
6956 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6957
16455a85
GM
69582010-05-17 Glenn Morris <rgm@gnu.org>
6959
6960 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6961 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6962
5fdb7468
GM
69632010-05-16 Glenn Morris <rgm@gnu.org>
6964
7ca1f3f9
GM
6965 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6966
7541dad5
GM
6967 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6968
da53fab9
GM
6969 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6970 trailing "/".
6971
b02a6645
GM
6972 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6973 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6974
8877ca0f
GM
6975 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6976 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6977 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6978 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6979 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6980
5fdb7468
GM
6981 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6982 Remove ${STARTFLAGS}, nothing ever sets it.
6983
95adb4b1
DN
69842010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
6985
6986 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6987
676b6304
GM
69882010-05-16 Glenn Morris <rgm@gnu.org>
6989
9beab9ce
GM
6990 * Makefile.in (LIBX_BASE): Always define.
6991
8a95f0e7
GM
6992 * Makefile.in (LIBX_OTHER): Move out of cpp section.
6993
676b6304
GM
6994 * Makefile.in (LIBXT): Always define.
6995
6e546d18
GM
69962010-05-15 Glenn Morris <rgm@gnu.org>
6997
4235ca47 6998 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 6999
6e546d18
GM
7000 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
7001 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
7002
8c5ff6dd
KR
70032010-05-15 Ken Raeburn <raeburn@raeburn.org>
7004
560bb7ae 7005 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
7006 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
7007
8b4eb796
KR
7008 * emacs.c (main): Initialize initial-environment and
7009 process-environment before generating from env, not after.
7010
8c5ff6dd
KR
7011 Handle --version reasonably in CANNOT_DUMP configuration.
7012 * emacs.c (emacs_version, emacs_copyright): New string variables.
7013 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
7014 (syms_of_emacs): Defvar them, and initialize them from the C
7015 string variables.
7016 (main): If initialization hasn't been done, print initial version
7017 info from the C strings, instead of starting an interactive session.
7018
dbd3f723
EZ
70192010-05-15 Eli Zaretskii <eliz@gnu.org>
7020
d20e1419
EZ
7021 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
7022 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
7023 (bidi_paragraph_init): Remove redundant assertion that we are at
7024 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
7025
7026 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
7027 (syms_of_xdisp): Defsubr it.
7028
d36fe237
EZ
7029 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
7030
dbd3f723
EZ
7031 * Makefile.in: Fix MSDOS-related comments.
7032
02be533b
GM
70332010-05-15 Glenn Morris <rgm@gnu.org>
7034
1a82cca9
GM
7035 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
7036 (really-lwlib, really-oldXMenu): Always define.
7037 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
7038
3df7b338
GM
7039 * Makefile.in: Simplify cpp conditional.
7040
2b5f541b
GM
7041 * Makefile.in (${ns_appdir}): Simplify using umask.
7042
02be533b
GM
7043 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7044
4e2db1fe
SM
70452010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7046
7047 * eval.c (specbind): Remove left-over duplicate test.
7048 Disallow let-binding frame-local vars. Add comment.
7049
4b292a22
EZ
70502010-05-14 Eli Zaretskii <eliz@gnu.org>
7051
2fe72643 7052 Make the cache of bidi iterator states dynamically allocated.
1edbd309 7053 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
7054 (bidi_init_it): Call it.
7055 (bidi_cache_iterator_state): Enlarge the cache if needed.
7056
4e2db1fe 7057 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
7058 bidi_get_next_char_visually. All callers changed.
7059
82ebc97b
KH
70602010-05-14 Kenichi Handa <handa@m17n.org>
7061
7062 * dispextern.h (struct composition_it): New member reversed_p.
7063
7064 * composite.c (composition_compute_stop_pos): Search backward if
7065 ENDPOS < CHARPOS.
7066 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7067 Set CMP_IT->reversed_p.
b4b6e17e 7068 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 7069
4e2db1fe
SM
7070 * xdisp.c (set_iterator_to_next):
7071 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
7072 scanning backward. Call composition_compute_stop_pos if scan
7073 direction is changed.
7074 (next_element_from_buffer): Call composition_compute_stop_pos with
7075 negative ENDPOS if we are scanning backward.
7076 (next_element_from_composition): Pay attention to
7077 IT->cmp_it.reversed_p.
7078
0e5d7800
KH
70792010-05-14 Kenichi Handa <handa@m17n.org>
7080
560bb7ae 7081 * font.c (font_range): Return the range for the font found at first.
0e5d7800 7082
cb027b32
GM
70832010-05-14 Glenn Morris <rgm@gnu.org>
7084
177b0288
GM
7085 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7086
fbc00890
GM
7087 * Makefile.in (mktime, X11, register): Move undefs to configure.
7088
f14d1dfd
GM
7089 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7090 (MSDOS_X_OBJ): New variable.
7091 (MSDOS_SUPPORT_REAL): New constant.
7092 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7093 (obj): Use MSDOS_X_OBJ.
7094 (lisp): Use MSDOS_SUPPORT as a variable.
7095
11842bd8
GM
7096 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7097 (GPM_MOUSE_SUPPORT): Now it's a constant.
7098 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7099 not cpp.
7100
489d31a4 7101 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 7102 (ns_appresdir): Remove, unused.
e20f1f07 7103
489d31a4
GM
7104 * Makefile.in (SHELL): Move outside cpp section.
7105
cb027b32
GM
7106 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7107
5a903aa9
GM
71082010-05-13 Glenn Morris <rgm@gnu.org>
7109
3369c79f
GM
7110 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7111 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7112
d5e982a6
GM
7113 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7114 HAVE_WINDOW_SYSTEM must be too.
7115
6192e163
GM
7116 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7117 (lisp): Remove WINNT_SUPPORT.
7118
472c5d6b
GM
7119 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7120 Let configure set these variables (to empty) in this case as well.
7121
0116466b
GM
7122 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7123 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7124
5a903aa9
GM
7125 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7126 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7127 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7128 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7129 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 7130 the values output by configure.
5a903aa9
GM
7131 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7132
1a0d7c06
GM
71332010-05-12 Glenn Morris <rgm@gnu.org>
7134
b5457f14
GM
7135 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7136 (LINKER_WAS_SPECIFIED): Remove.
7137
1a0d7c06
GM
7138 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7139 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7140 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7141 * s/cygwin.h (LIB_GCC):
7142 * s/freebsd.h (LIB_GCC):
7143 * s/gnu-linux.h (LIB_GCC):
7144 * s/msdos.h (LIB_GCC):
7145 * s/netbsd.h (LIB_GCC):
7146 Move to configure.
7147
d1ddd1d0 71482010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
7149
7150 * ftfont.c: Fix incorrect parentheses of #if condition for
7151 definining M17N_FLT_USE_NEW_FEATURE.
7152
acddf8ae
GM
71532010-05-11 Glenn Morris <rgm@gnu.org>
7154
7155 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7156 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7157
ae5e04fa
EZ
71582010-05-10 Eli Zaretskii <eliz@gnu.org>
7159
7160 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7161 unibyte buffers. See
7162 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7163
7490175b
GM
71642010-05-10 Glenn Morris <rgm@gnu.org>
7165
97efb629
GM
7166 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7167 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7168 (LIBES): Use LIBS_SYSTEM as a variable.
7169 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7170 * s/aix4-2.h (LIBS_SYSTEM):
7171 * s/freebsd.h (LIBS_SYSTEM):
7172 * s/hpux10-20.h (LIBS_SYSTEM):
7173 * s/sol2-6.h (LIBS_SYSTEM):
7174 * s/unixware.h (LIBS_SYSTEM):
7175 Move to configure.
7176
7490175b
GM
7177 * s/aix4-2.h (MAIL_USE_LOCKF):
7178 * s/bsd-common.h (MAIL_USE_FLOCK):
7179 * s/darwin.h (MAIL_USE_FLOCK):
7180 * s/gnu-linux.h (MAIL_USE_FLOCK):
7181 * s/irix6-5.h (MAIL_USE_FLOCK):
7182 * s/template.h (MAIL_USE_FLOCK):
7183 Move to configure.
7184
0235128c 71852010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
7186
7187 * Version 23.2 released.
7188
0235128c 71892010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
7190
7191 * composite.c (autocmp_chars): Save point as marker before calling
7192 auto-composition-function (Bug#5984).
7193
7194 * lisp.h (restore_point_unwind): Add prototype.
7195
7196 * fileio.c (restore_point_unwind): Remove static attribute.
7197
0235128c 71982010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
7199
7200 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7201 new feature of libotf and m17n-flt.
0235128c
SM
7202 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7203 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
7204 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7205 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7206 that OUT is NULL. Use OTF_drive_gsub_with_log and
7207 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7208 OTF_drive_gpos.
7209 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
7210 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7211 Setup mflt_enable_new_feature and mflt_try_otf.
7212
4721152c
J
72132010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7214
7215 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7216
7217 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7218 box and toolbar (Bug #6139).
7219 (xg_create_tool_bar): Remove comment (Bug #6139).
7220 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7221 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7222
ee0a16cf
JB
72232010-05-08 Juanma Barranquero <lekktu@gmail.com>
7224
7225 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7226 Update dependencies.
7227
96d79611
EZ
72282010-05-08 Eli Zaretskii <eliz@gnu.org>
7229
7230 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7231 R2L lines.
7232
40c17879
GM
72332010-05-08 Glenn Morris <rgm@gnu.org>
7234
7b42b29f
GM
7235 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7236
40c17879
GM
7237 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7238 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7239 (termcapobj): Replace with TERMCAP_OBJ.
7240 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7241 (LIBES): Use LIBS_TERMCAP as a variable.
7242
7243 * s/freebsd.h (osreldate.h): No longer include, since this file
7244 does not use __FreeBSD_version any more.
7245
7246 * s/aix4-2.h (TERMINFO):
7247 * s/cygwin.h (TERMINFO):
7248 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7249 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7250 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7251 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7252 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7253 * s/irix6-5.h (TERMINFO):
7254 * s/netbsd.h (LIBS_TERMCAP):
7255 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7256 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7257 * s/usg5-4.h (TERMINFO):
7258 Move to configure.
7259
94b612ad
SM
72602010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7261
7262 * eval.c (unbind_to): Don't unbind a local binding into the global
7263 binding when the local binding disappeared. Inversely, don't unbind
7264 a global binding into a newly created local binding.
7265 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7266 can specify the frame to use, when applicable. Adjust callers.
7267
15e12598 72682010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 7269 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
7270
7271 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7272
f724825e
EZ
72732010-05-07 Eli Zaretskii <eliz@gnu.org>
7274
5cba3209
EZ
7275 * w32fns.c: Include w32.h.
7276 (Fw32_shell_execute): Decode the error message before passing it
7277 to `error'. (Bug#6126)
7278
d16bdfc3
EZ
7279 * msdos.c (dos_set_window_size):
7280 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7281 instead of `XSYMBOL (foo)->value'.
7282
59d93e87
EZ
72832010-05-07 Eli Zaretskii <eliz@gnu.org>
7284
9fdec8bc
EZ
7285 Fix the MS-DOS build, broken by autoconfiscation.
7286
7287 * Makefile.in: Don't use Make-style comments past the "start of
7288 cpp stuff" line.
7289 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7290
7291 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7292 edited directly by msdos/sed1v2.inp).
f724825e 7293
2f86b22b
GM
72942010-05-07 Glenn Morris <rgm@gnu.org>
7295
7296 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7297 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7298 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7299 move out of cpp section.
7300 * s/freebsd.h (LD_SWITCH_SYSTEM):
7301 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7302 * s/netbsd.h (LD_SWITCH_SYSTEM):
7303 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7304
49ebbd65
DN
73052010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7306
7307 Define LIB_STANDARD and START_FILES using autoconf.
7308 * s/usg5-4.h (LIB_STANDARD):
7309 * s/netbsd.h (START_FILES):
7310 * s/irix6-5.h (LIB_STANDARD):
7311 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7312 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7313 * s/freebsd.h (START_FILES):
7314 * s/darwin.h (START_FILES):
7315 * s/cygwin.h (START_FILES):
7316 * s/aix4-2.h (LIB_STANDARD):
7317 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7318 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7319 autoconf, not cpp.
7320
d43c06d6
DN
73212010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7322
28823648
DN
7323 Remove NEED_BSDTTY and NEED_UNISTD_H.
7324 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7325 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7326 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7327 <sys/ptyio.h> and <unistd.h>.
7328
aca00430
DN
7329 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7330
d43c06d6
DN
7331 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7332 * s/gnu.h (START_FILES): Remove empty definition.
7333
3e56b11d
JD
73342010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7335
7336 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7337
e3cf0cde
GM
73382010-05-06 Glenn Morris <rgm@gnu.org>
7339
7340 * Makefile.in (CPP, LN_S): Remove unused variables.
7341
774b9a60
SM
73422010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7343
7344 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7345
4ab92842
LM
73462010-05-05 Lawrence Mitchell <wence@gmx.li>
7347
7348 * m/sparc.h: Fix typo in earlier change.
7349
178f2507
SM
73502010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7351
7352 Misc tweaks.
7353 * eval.c (Fdefvaralias): Remove unintended nested if.
7354 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7355
80f00217 73562010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
7357
7358 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7359
ef03a4e6
DN
73602010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7361
58eb6cf0
DN
7362 Remove BSD_PGRPS.
7363 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7364 * s/gnu-linux.h (BSD_PGRPS): Remove.
7365 * term.c (dissociate_if_controlling_tty):
7366 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7367 (init_sys_modes, reset_sys_modes):
7368 * emacs.c (main):
7369 * callproc.c (Fcall_process, child_setup): Remove code depending
7370 on BSD_PGRPS.
7371
ef03a4e6
DN
7372 Remove POSIX_SIGNALS.
7373 * s/usg5-4.h (POSIX_SIGNALS):
7374 * s/netbsd.h (POSIX_SIGNALS):
7375 * s/msdos.h (POSIX_SIGNALS):
7376 * s/ms-w32.h (POSIX_SIGNALS):
7377 * s/hpux11.h (POSIX_SIGNALS):
7378 * s/gnu.h (POSIX_SIGNALS):
7379 * s/gnu-linux.h (POSIX_SIGNALS):
7380 * s/freebsd.h (POSIX_SIGNALS):
7381 * s/darwin.h (POSIX_SIGNALS):
7382 * s/cygwin.h (POSIX_SIGNALS):
7383 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7384 * s/unixware.h:
7385 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7386 * process.c (create_process):
7387 * syssignal.h:
7388 * sysdep.c (wait_for_termination, init_signals):
7389 * process.c (create_process):
7390 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7391 remove all code that assumes the contrary.
7392
49628785
GM
73932010-05-04 Glenn Morris <rgm@gnu.org>
7394
27a2cdfc
GM
7395 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7396 variable.
7397 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7398 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7399 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7400 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7401 LD_SWITCH_SYSTEM_tmp.
7402 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7403 New variables, set by configure.
7404
eb21eab5
GM
7405 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7406 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7407 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7408 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7409 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7410
49628785
GM
7411 * s/aix4-2.h (C_SWITCH_SYSTEM):
7412 * m/alpha.h (C_SWITCH_MACHINE):
7413 Move to configure.in.
7414 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7415 New variables, set by configure.
7416 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7417 $c_switch_machine and $c_switch_system.
7418
7dff330b
DN
74192010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7420
7421 * s/hpux10-20.h (LIB_STANDARD): New definition.
7422 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7423 on it, not used anymore.
7424
53967e09
CY
74252010-05-03 Chong Yidong <cyd@stupidchicken.com>
7426
7427 * eval.c (internal_condition_case_n): Rename from
7428 internal_condition_case_2.
7429 (internal_condition_case_2): New function.
7430
7431 * xdisp.c (safe_call): Use internal_condition_case_n.
7432
7433 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7434 (internal_delete_file, Frename_file): Callers changed.
7435
7436 * buffer.c (Fkill_buffer):
7437 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7438
7439 * lisp.h: Update prototypes.
7440
3dee6fdb
GM
74412010-05-03 Glenn Morris <rgm@gnu.org>
7442
7443 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7444 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7445 (LIBXT): Set with configure, not cpp.
7446 (LIBX): Remove.
7447 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7448
a101e0fb
DN
74492010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7450
7451 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7452 The FreeBSD is not needed, the default works, Solaris version is
7453 not needed, and the remaining case is not supported by configure.
7454
f63d0028
JD
74552010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7456
7457 * xsmfns.c (CHDIR_OPT): New define.
7458 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7459 restarting emacs.
7460
7461 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7462 shut_down_emacs.
7463
7464 * emacs.c (USAGE1): Mention --chdir.
7465 (main): Handle --chdir.
7466 (standard_args): Add --chdir.
7467 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7468 #5552).
7469
e4814a9f
DN
74702010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7471
cd03c74a
DN
7472 Remove LD_SWITCH_MACHINE.
7473 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7474 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7475
c3a398a1
DN
7476 Clean up IRIX code.
7477 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7478 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7479
87e7285c
DN
7480 Clean up AIX code.
7481 * m/ibmrs6000.inp: Remove file, unused.
7482 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7483 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7484 definition ...
7485 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7486
80f00217
JB
7487 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7488 unused.
e4814a9f 7489
59ca28de
EZ
74902010-05-01 Eli Zaretskii <eliz@gnu.org>
7491
197daef4
EZ
7492 Emulate POSIX_SIGNALS on MS-Windows.
7493
7494 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7495 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
7496
7497 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7498 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7499 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7500
80f00217
JB
7501 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7502 New stubs.
197daef4 7503
af7c7572
EZ
7504 Miscellaneous fixes of bidi display.
7505
59ca28de
EZ
7506 * xdisp.c (find_row_end): New function, refactored from display_line.
7507 (display_line): Use it.
017ea819
EZ
7508 (extend_face_to_end_of_line): In almost-filled rows, extend only
7509 if the row is R2L and not continued.
166e930d 7510 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 7511 Preserve overlay and string info in row->end.
166e930d
EZ
7512 (insert_left_trunc_glyphs): Support addition of left truncation
7513 glyphs to R2L rows.
b47e0dcf 7514 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
7515 glyph between adjacent windows. Fix a crash when a display string
7516 is continued to the next line. Don't return zero if cursor was
7517 found by `cursor' property of a display string.
b47e0dcf
EZ
7518 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7519 test for that explicitly.
59ca28de 7520
7acac9f4
GM
75212010-05-01 Glenn Morris <rgm@gnu.org>
7522
7523 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7524 for clarity.
7525 (OTHER_OBJ): Remove.
7526 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7527 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7528
45841e65
KK
75292010-05-01 Karel Klíč <kklic@redhat.com>
7530
7531 * fileio.c (Ffile_selinux_context): Context functions may return null.
7532
afc61943
DN
75332010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7534
80f00217 7535 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 7536
5a1bb006
GM
75372010-04-30 Glenn Morris <rgm@gnu.org>
7538
7539 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7540 (OTHER_OBJ): Define as a separate variable, for clarity.
7541
210af043
J
75422010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7543
7544 * xsettings.c: include limits.h and update file comment.
7545
0a7df391
GM
75462010-04-30 Glenn Morris <rgm@gnu.org>
7547
d5096f16
GM
7548 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7549 Set with configure, not cpp.
7550 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7551
7eb1ac33
GM
7552 * Makefile.in (mallocobj): Remove.
7553 (otherobj): Simplify using @OTHER_OBJ@.
7554
517d086b
GM
7555 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7556 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7557 Don't bother making nsgui.h dependency platform-specific.
7558
0a7df391
GM
7559 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7560
d6d23852
SM
75612010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7562
d2630aef
SM
7563 * process.c (read_process_output, exec_sentinel): Don't burp if the
7564 sentinel/filter kills the current buffer (bug#6060).
7565
f9dddf52 7566 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
7567 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7568 Remove unused var `args'.
7569 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7570 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7571 * doc.c (store_function_docstring): Use XSETCAR.
7572
f1e3642a
GM
75732010-04-28 Glenn Morris <rgm@gnu.org>
7574
faf535f8
GM
7575 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7576 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7577
c40f9449
GM
7578 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7579
658f86ca
GM
7580 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7581 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7582
bc0b5f61
GM
7583 * Makefile.in (FONT_OBJ): New, set by configure.
7584 (FONT_DRIVERS): Use $FONT_OBJ.
7585
294c50a0
GM
7586 * Makefile.in (LIBXMU): Set with configure, not cpp.
7587 * s/aix4-2.h (LIBXMU):
7588 * s/hpux10-20.h (LIBXMU):
7589 Remove definition, now set in configure.
7590
e6ec4e99
GM
7591 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7592
f1e3642a
GM
7593 * m/amdx86-64.h [i386]: Move this test to configure.in.
7594
c6ea2936
GM
75952010-04-27 Glenn Morris <rgm@gnu.org>
7596
8fdac2c3
GM
7597 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7598 * s/unixware.h (NEED_LIBW): Remove definition.
7599
986fb647
GM
7600 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7601 (TOOLKIT_LIBW): New, set by configure.
7602 (@X_TOOLKIT_TYPE@): No longer define it.
7603
c6ea2936
GM
7604 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7605 (MOTIF_LIBW): Set with configure, not cpp.
7606 * s/aix4-2.h (LIB_MOTIF):
7607 * s/gnu-linux.h (LIB_MOTIF):
7608 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7609
aaa36002
DN
76102010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7611
7612 Reduce CPP usage.
7613 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7614 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
7615 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7616 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 7617 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 7618
b678dd8b
GM
76192010-04-27 Glenn Morris <rgm@gnu.org>
7620
76cda504
GM
7621 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7622 since the defaults (set by the system file) are fine in most cases.
7623 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7624 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7625 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7626 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7627 Remove definitions, since they are set correctly in s/gnu-linux.h.
7628 * s/freebsd.h (START_FILES, LIB_STANDARD):
7629 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7630 * s/hpux10-20.h (START_FILES):
7631 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7632 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7633
b678dd8b
GM
7634 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7635 (MOTIF_LIBW): Use $LIBXP.
7636 (otherobj): Use $WIDGET_OBJ.
7637
9452ded1
DN
76382010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7639
7e10844c
DN
7640 * Makefile.in (LIBS_MACHINE): Remove, unused.
7641
9452ded1
DN
7642 Use autoconf instead of cpp for LIB_MATH.
7643 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7644 * s/cygwin.h (LIB_MATH): Likewise.
7645 * Makefile.in (LIB_MATH): Do not define with cpp.
7646 (LIBES): Use autoconf for LIB_MATH.
7647
fcebfc6a
KH
76482010-04-26 Kenichi Handa <handa@m17n.org>
7649
7650 * composite.c (Ffind_composition_internal): Fix the return value
7651 for an automatic composition.
7652
39e2ad1b
DN
76532010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7654
7655 Remove all NO_ARG_ARRAY uses.
7656 * fns.c (concat2, concat3, nconc2):
7657 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7658 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7659 * m/xtensa.h (NO_ARG_ARRAY):
7660 * m/template.h (NO_ARG_ARRAY):
7661 * m/sparc.h (NO_ARG_ARRAY):
7662 * m/sh3.h (NO_ARG_ARRAY):
7663 * m/mips.h (NO_ARG_ARRAY):
7664 * m/macppc.h (NO_ARG_ARRAY):
7665 * m/iris4d.h (NO_ARG_ARRAY):
7666 * m/intel386.h (NO_ARG_ARRAY):
7667 * m/ibms390x.h (NO_ARG_ARRAY):
7668 * m/ibms390.h (NO_ARG_ARRAY):
7669 * m/ibmrs6000.h (NO_ARG_ARRAY):
7670 * m/ia64.h (NO_ARG_ARRAY):
7671 * m/hp800.h (NO_ARG_ARRAY):
7672 * m/arm.h (NO_ARG_ARRAY):
7673 * m/amdx86-64.h (NO_ARG_ARRAY):
7674 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7675
adf4f59c
EZ
76762010-04-25 Eli Zaretskii <eliz@gnu.org>
7677
6bdf5d65
EZ
7678 * xdisp.c (display_line): Don't assume 2nd call to
7679 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
7680 (iterate_out_of_display_property): New function, body from pop_it.
7681 (pop_it): Use it.
adf4f59c 7682
dfbbda83
GM
76832010-04-24 Glenn Morris <rgm@gnu.org>
7684
7685 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7686 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7687 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7688 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7689
2d4018aa
EZ
76902010-04-24 Eli Zaretskii <eliz@gnu.org>
7691
a49884a6
EZ
7692 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7693 use `get_next_display_element' and `set_iterator_to_next' to
7694 advance to the next character, when looking for the character that
7695 begins the next row.
7696
76db6fcc 7697 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
7698 definition of "struct Lisp_Symbol".
7699
70eab5c1
GM
77002010-04-24 Glenn Morris <rgm@gnu.org>
7701
7702 * Makefile.in (CRT_DIR): New variable, set by configure.
7703 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7704 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7705
1ad4cc3d
DN
77062010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7707
e769f484
DN
7708 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7709
4196ff33
DN
7710 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7711
879b0ee4
DN
7712 Remove redundant flags.
7713 * s/freebsd.h (C_SWITCH_SYSTEM):
7714 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7715 * s/netbsd.h (C_SWITCH_SYSTEM):
7716 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7717 of these.
7718
03cbbcb8
DN
7719 Simplify m/intel386.h.
7720 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7721 user: ecrt0.c.
7722 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7723 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7724 the only user: s/unixware.h.
7725 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7726 from m/intel386.h.
bba3e508
SM
7727 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7728 Definitions moved here from m/intel386.h.
03cbbcb8 7729
1ad4cc3d
DN
7730 * m/mips.h: Remove #if 0 code.
7731
8785b888
EZ
77322010-04-23 Eli Zaretskii <eliz@gnu.org>
7733
728588cc
EZ
7734 Fix display of composed characters from L2R scripts in bidi buffers.
7735 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7736 After advancing IT past the composition, resync the bidi iterator
7737 with IT's position. (Bug#5977)
7738
a63f80b4
DN
77392010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7740
7741 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7742 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7743
ff5dec5c
SM
77442010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7745
7746 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7747
8785b888
EZ
77482010-04-23 Eli Zaretskii <eliz@gnu.org>
7749
58ccf243 7750 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
7751 * xdisp.c (pop_it): When the stack is popped after displaying
7752 from a string, bidi-iterate to exit from the text portion covered
7753 by the `display' property or overlay. (Bug#5988, bug#5920)
7754
feeb1604
DN
77552010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7756
8e324eb6
DN
7757 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7758 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7759
809fcaba
DN
7760 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7761 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7762
ed710380
DN
7763 Simplify STARTFILES definition.
7764 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7765 relying on Makefile.in to define it.
7766 * s/cygwin.h (START_FILES): Likewise.
7767 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7768
feeb1604
DN
7769 Clean up Solaris code.
7770 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7771 (LIB_MOTIF): Remove, configure takes care of this.
7772 (NOT_USING_MOTIF): Remove, unused.
7773 * xrdb.c: Remove #if 0-ed #include.
7774 (SYSV): Remove conditional for old SysV.
7775 * sysdep.c (closedir): Remove conditional code for Solaris,
7776 Solaris has closedir.
7777
a0d0b563
JD
77782010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7779
7780 * xsettings.c (read_and_apply_settings): Check if current_font is
7781 NULL before strcmp (Bug#6001).
7782
56bae7c7
DN
77832010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7784
7785 Clean up HP-UX files.
7786 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7787 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7788 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7789 * s/hpux10-20.h: ... to the only user, here.
7790
372b7a95
EZ
77912010-04-21 Eli Zaretskii <eliz@gnu.org>
7792
7793 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7794 use buffer-local values of paragraph-start and paragraph-separate.
7795 <paragraph_start_re, paragraph_separate_re>: Rename from
7796 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7797 (Bug#5992)
7798
f904c0f9
JD
77992010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7800
7801 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7802 current_tool_bar_style are new.
7803 (store_config_changed_event): Rename from store_font_changed_event.
7804 (XSETTINGS_TOOL_BAR_STYLE): New define.
7805 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7806 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7807 HAVE_XFT.
7808 (something_changedCB): store_font_changed_event is now
c4cc8b9a 7809 store_config_changed_event.
bba3e508
SM
7810 (parse_settings): Rename from parse_xft_settings.
7811 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 7812 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
7813 (apply_xft_settings): Take current settings as parameter. Do not
7814 call read_(xft)_settings.
7815 (read_and_apply_settings): New function.
bba3e508
SM
7816 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7817 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 7818 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
7819 Call read_and_apply_settings unconditionally.
7820 (xsettings_initialize): Call init_xsettings.
7821 (Ftool_bar_get_system_style): New function.
7822 (syms_of_xsettings): Define Qmonospace_font_name and
7823 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 7824 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 7825 dynamic-setting.
31a01b90 7826 Move misplaced HAVE_GCONF
f904c0f9
JD
7827
7828 * xsettings.h (Ftool_bar_get_system_style): Declare.
7829
7830 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7831 Qtext, Qboth, Qboth_horiz are new.
7832 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7833 Vtool_bar_style, tool_bar_max_label_size.
7834
7835 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7836
7837 * keyboard.c: QClabel is new.
7838 (parse_tool_bar_item): Take out QClabel from tool bar items.
7839 Try to construct a label if ther is no QClabel.
7840 (syms_of_keyboard): Intern :label as QClabel.
7841
7842 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7843 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7844 New.
7845
7846 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7847 dynamic-setting.el.
7848
7849 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7850 (xg_make_tool_item, xg_show_toolbar_item): New function.
7851 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7852 Call xg_make_tool_item to make a tool bar item.
7853 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7854
7855 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7856 into account for toolbars.
7857
c632dfda
JD
78582010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7859
7860 * data.c (make_blv): Declarations before code (Bug#5993).
7861
10efe302
GM
78622010-04-21 Glenn Morris <rgm@gnu.org>
7863
7864 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7865 Define using autoconf, not cpp.
7866 (LIBXSM): New variable, set by autoconf.
7867 (LIBXT): Use $LIBXSM.
7868
4285ac5a
DN
78692010-04-21 Dan Nicolaescu <local_user@dannlt>
7870
3ec759e7
DN
7871 Remove NOMULTIPLEJOBS, unused.
7872 * s/template.h (NOMULTIPLEJOBS):
7873 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7874
4285ac5a
DN
7875 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7876 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7877 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7878 detects -znocombreloc and passes it to the linker
7879 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7880
2807228d
GM
78812010-04-21 Glenn Morris <rgm@gnu.org>
7882
7883 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7884
574c05e2
KK
78852010-04-21 Karel Klíč <kklic@redhat.com>
7886
7887 * Makefile.in (LIBSELINUX_LIBS): New.
7888 (LIBES): Add $LIBSELINUX_LIBS.
7889 * eval.c, lisp.h (call7): New function.
7890 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7891 (Ffile_selinux_context, Fset_file_selinux_context):
7892 New functions.
7893 (Fcopy_file): New parameter preserve-selinux-context.
7894 (Frename_file): Preserve selinux context when renaming by copy-file.
7895
91eac4bb 78962010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 7897 Eli Zaretskii <eliz@gnu.org>
91eac4bb 7898
50426a04
JB
7899 Don't depend on cm.c or termcap.c on Windows, use stubs.
7900 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7901 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7902 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7903 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7904 (sys_tputs, sys_tgetstr): New stubs.
7905 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7906 (tputs, tgetstr): New; define to sys_*.
91eac4bb 7907
938efb77
JB
79082010-04-20 Juanma Barranquero <lekktu@gmail.com>
7909
7910 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7911
b4bf28b7
SM
79122010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7913
8b1e1112
SM
7914 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7915 Just signal a warning rather than an error when inside a let.
7916 (Fmake_variable_frame_local): Add the same test.
7917
933ac235
SM
7918 * font.c (syms_of_font): Make the style table vars read-only.
7919
b4bf28b7
SM
7920 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7921 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7922
7923 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7924
93d68d0c
EZ
79252010-04-20 Eli Zaretskii <eliz@gnu.org>
7926
7927 Fix R2L paragraph display on TTY.
7928
7929 * xdisp.c (unproduce_glyphs): New function.
7930 (display_line): Use it when produced glyphs are discarded from R2L
7931 glyph rows.
7932 (append_composite_glyph): In R2L rows, prepend the glyph rather
7933 than appending it.
7934
7935 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7936 rather than append it. Set up the resolved_level and bidi_type
7937 attributes of the appended glyph.
283ccc18
EZ
7938 (produce_special_glyphs): Mirror the backslash continuation
7939 character in R2L lines.
93d68d0c 7940
283ccc18 7941 Implement display of R2L paragraphs in GUI sessions.
26cdf528 7942
283ccc18
EZ
7943 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7944 append_stretch_glyph.
bba3e508
SM
7945 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7946 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
7947 (append_stretch_glyph): In reversed row, prepend the glyph rather
7948 than append it. Set resolved_level and bidi_type of the glyph.
7949 (extend_face_to_end_of_line): If the row is reversed, prepend a
7950 stretch glyph whose width is such that the rightmost glyph will be
7951 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
7952 TTY frames in testing whether a line needs face extension.
7953 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
7954 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7955 region face.
bba3e508
SM
7956 (set_cursor_from_row, display_line):
7957 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 7958 row->continuation_lines_width.
283ccc18
EZ
7959 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7960 are at ZV. Fixes a crash when reseated to ZV by
7961 try_window_reusing_current_matrix.
45903529
EZ
7962 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7963 which happens with R2L glyph rows. Fixes a crash when inserting a
7964 character at end of an R2L line.
283ccc18
EZ
7965 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7966 treat them as having zero-width characters. Improve comments.
7967 Don't reverse pos_before and pos_after for reversed glyph rows.
7968 Set cursor.x to negative value when the cursor might be on the
7969 left fringe.
7970 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7971 left fringe, not the right one.
f951a506
EZ
7972 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7973 (erase_phys_cursor): For reversed cursor_row, support cursor on
7974 the left fringe.
7975
283ccc18
EZ
7976 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7977 of continuation indicators on the fringes.
7978 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7979 left fringe.
7980
f951a506
EZ
7981 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7982 draw cursor on the left fringe.
7983
7984 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7985 cursor on the left fringe.
7986
f951a506
EZ
7987 * dispnew.c (update_text_area): Handle reversed desired rows when
7988 the cursor is on the left fringe.
7989 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
7990 below, not by 0, for when the cursor is on the left fringe.
7991
3bb49aaf
JD
79922010-04-20 Jan Djärv <jan.h.d@swipnet.se>
7993
7994 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
7995 widget is a scrollbar.
7996
c0be27fd
KH
79972010-04-20 Kenichi Handa <handa@m17n.org>
7998
7999 * charset.c (char_charset): Consider Vcharset_non_preferred_head
8000 only when the arg CHARSET_LIST is nil.
8001
ce5b453a
SM
80022010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8003
8004 Make variable forwarding explicit rather the using special values.
8005 Basically, this makes the structure of buffer-local values and object
8006 forwarding explicit in the type of Lisp_Symbols rather than use
8007 special Lisp_Objects for that. This tends to lead to slightly more
8008 verbose code, but is more C-like, simpler, and makes it easier to make
8009 sure we handled all cases, among other things by letting the compiler
8010 help us check it.
8011 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
8012 Removing forwarding objects.
8013 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
8014 (struct Lisp_Symbol): Make the various forms of variable-forwarding
8015 explicit rather than hiding them inside Lisp_Object "values".
8016 (XFWDTYPE): New macro.
8017 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
8018 (XBUFFER_LOCAL_VALUE): Remove.
8019 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
8020 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
8021 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
8022 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
8023 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
8024 Remove the Lisp_Misc_* header.
8025 (struct Lisp_Buffer_Local_Value): Redefine.
8026 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
8027 (struct Lisp_Misc_Any): Add filler to get the right size.
8028 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
8029 Lisp_Intfwd.
8030 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
8031 (DEFVAR_KBOARD): Allocate a forwarding object.
8032 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
8033 (let_shadows_global_binding_p): New function.
8034 (union Lisp_Val_Fwd): New type.
8035 (make_blv): New function.
8036 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
8037 (store_symval_forwarding, swap_in_global_binding, Fboundp)
8038 (swap_in_symval_forwarding, find_symbol_value, Fset)
8039 (let_shadows_buffer_binding_p, set_internal, default_value)
8040 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
8041 (Fkill_local_variable, Fmake_variable_frame_local)
8042 (Flocal_variable_p, Flocal_variable_if_set_p)
8043 (Fvariable_binding_locus):
8044 * xdisp.c (select_frame_for_redisplay):
8045 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8046 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8047 * frame.c (store_frame_param):
8048 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8049 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8050 value structure.
8051 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8052 (clone_per_buffer_values): Only adjust markers into the current buffer.
8053 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8054 (Fbuffer_local_value, set_buffer_internal_1)
8055 (swap_out_buffer_local_variables):
8056 Adapt to the new symbol value structure.
8057 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8058 (defvar_per_buffer): Take a new arg for the fwd object.
8059 (buffer_lisp_local_variables): Return a proper alist (different fix
8060 for bug#4138).
8061 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8062 (Fgarbage_collect): Don't handle buffer_defaults specially.
8063 (mark_object): Handle new symbol value structure rather than the old
8064 special Lisp_Misc_* objects.
8065 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8066 * term.c (set_tty_color_mode):
8067 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8068 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8069 a buffer_local_flags.
8070 * print.c (print_object): Get rid of impossible forwarding objects.
8071
fd3998ff
EZ
80722010-04-19 Eli Zaretskii <eliz@gnu.org>
8073
8074 * bidi.c (bidi_get_type, bidi_get_category)
8075 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
8076 (bidi_type_of_next_char, bidi_level_of_next_char):
8077 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 8078
e42cd1a7
JB
80792010-04-19 Juanma Barranquero <lekktu@gmail.com>
8080
8081 * dired.c (Ffile_attributes): Fix typo in docstring.
8082
6e104790 80832010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
8084
8085 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8086 NSInteger (Bug#5811).
8087
6e104790 80882010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
8089
8090 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8091 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8092
6e104790 80932010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
8094
8095 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8096
6e104790
SM
80972010-04-19 Chong Yidong <cyd@stupidchicken.com>
8098
8099 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8100 terminal frames (Bug#5837).
8101
37dcfea0
EZ
81022010-04-19 Eli Zaretskii <eliz@gnu.org>
8103
d1da276f
EZ
8104 * .gdbinit (xsubchartable): New command.
8105
37dcfea0
EZ
81062010-04-19 Eli Zaretskii <eliz@gnu.org>
8107
8108 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 8109 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
8110 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8111 and
8112 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8113
e9515805
SM
81142010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8115
8116 * alloc.c (Fpurecopy): Hash-cons if requested.
8117 (syms_of_alloc): Update purify-flag docstring.
8118
22aa44a8
JD
81192010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8120
8121 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8122 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8123
ebb5722e
EZ
81242010-04-17 Eli Zaretskii <eliz@gnu.org>
8125
8126 Fix a crash when an NSM character is inserted at BEGV.
8127
8128 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8129 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8130 NEUTRAL_B or UNKNOWN_BT.
8131
0f4442ef
EZ
81322010-04-16 Eli Zaretskii <eliz@gnu.org>
8133
8134 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8135 other rows with cursor unless they are different from this row and
8136 this row is part of a continued line. (Bug#5943)
8137
7d4e45f8
DN
81382010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8139
8140 * s/freebsd.h: Restore osreldate.h include.
8141 Suggested by Naohiro Aota.
8142
5ba5ec85
J
81432010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8144
8145 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8146
20af301d
CY
81472010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8148
8149 * s/cygwin.h: Avoid linking against static libgcc.
8150
a4b000fb
JL
81512010-04-15 Juri Linkov <juri@jurta.org>
8152
8153 * window.c: Add Qscroll_command.
8154 Remove Vscroll_preserve_screen_position_commands.
8155 (window_scroll_pixel_based, window_scroll_line_based): Check the
8156 `scroll-command' property on the last command instead of searching
8157 the last command in Vscroll_preserve_screen_position_commands.
8158 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8159 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8160 (scroll-preserve-screen-position): Doc fix.
8161 (Vscroll_preserve_screen_position_commands): Remove variable.
8162
bc319ba4
DN
81632010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8164
6bb24457
DN
8165 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8166
19d4c244
DN
81672010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8168
8169 Reduce cpp use in Makefile.in.
8170 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8171 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8172 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8173 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8174 (CRT0_COMPILE): Remove, inline it in the only user.
8175
32129746
JL
81762010-04-14 Juri Linkov <juri@jurta.org>
8177
8178 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8179 `scroll-up-command' and `M-v' from `scroll-down' to
8180 `scroll-down-command'.
8181
9013a7f8
JL
81822010-04-14 Juri Linkov <juri@jurta.org>
8183
8184 * window.c (Vscroll_preserve_screen_position_commands): New variable
8185 with the default value as the list of Qscroll_down and Qscroll_up.
8186 (window_scroll_pixel_based, window_scroll_line_based): Search the
8187 last command in the list Vscroll_preserve_screen_position_commands
8188 instead of comparing with Qscroll_up and Qscroll_down.
8189
4bef8d26
JD
81902010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8191
92848133
JD
8192 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8193 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8194 does that.
8195
4bef8d26
JD
8196 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8197 to zero.
8198
58b963f7
SM
81992010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8200
84164a0d
SM
8201 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8202
2b0a91e7
SM
8203 Try to solve the problem of spurious EOF chars in long lines of text
8204 sent to interactive subprocesses.
8205 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8206 (system_process_attributes): Remove unused var `ttotal'.
8207 * process.c (send_process): Don't bother breaking long line with EOF
8208 chars when talking to ttys any more.
8209 (wait_reading_process_output): Output a warning when called in such
8210 a way that it could block without being interruptible.
8211
58b963f7
SM
8212 Try to detect file modification within the same second.
8213 * buffer.h (struct buffer): New field modtime_size.
8214 * buffer.c (reset_buffer): Initialize it.
8215 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8216 (Fverify_visited_file_modtime): Check it.
8217 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8218 (Fset_visited_file_modtime): Set (or clear) it.
8219
01f5787b
SM
82202010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8221
8222 * process.c (status_notify): Remove unused var `ro'.
8223
83725342
JD
82242010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8225
8226 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8227 more than one visual (Bug#5938).
8228
b9465836
DN
82292010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8230
50426a04
JB
8231 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8232 Undefine.
b9465836 8233
8d9c8ece
DN
82342010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8235
b1f52161
DN
8236 Remove C_SWITCH_SYSTEM_TEMACS.
8237 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8238 (malloc, realloc, free): Use emacs, not temacs for conditional
8239 definition.
8240
8241 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8242 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8243
8d9c8ece
DN
8244 Use autoconf, not cpp for some variables.
8245 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8246 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8247 (ALL_CFLAGS): Use them as make variables.
8248 (really-lwlib, really-oldXMenu): Do not pass them.
8249
1ecb2d3f
JD
82502010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8251
8252 * xmenu.c (apply_systemfont_to_dialog): New.
8253 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8254
3a4fa2f2
SM
82552010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8256
97e53006
SM
8257 * process.c (exec_sentinel): Preserve current-buffer.
8258
3a4fa2f2
SM
8259 * process.c (read_process_output): Move the save-current-buffer to
8260 apply to both the filter and the non-filter branches.
8261
88df7221
DN
82622010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8263
8264 * s/msdos.h (UNEXEC): New definition.
8265
5634ff85
YM
82662010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8267
6eff5c3d
YM
8268 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8269 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8270
8271 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8272 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8273 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8274 TRY_WINDOW_CHECK_MARGINS.
8275
8276 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
8277 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8278 width only when it is for padding.
5634ff85 8279
b13aef54
J
82802010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8281
8282 * xfns.c (Fx_show_tip): Call try_window in a loop until
8283 fonts_changed_p is zero (Bug#2423).
8284
21d28484
EZ
82852010-04-08 Eli Zaretskii <eliz@gnu.org>
8286
8287 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8288 the end of TEXT_AREA. (Bug#5856)
8289
0269ef77
JD
82902010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8291
8292 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8293 HAVE_GCONF.
8294
5930fe97
EZ
82952010-04-08 Eli Zaretskii <eliz@gnu.org>
8296
8297 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8298 prev.orig_type, for resolving type of NSM. (Bug#5858)
8299
99852628
JD
83002010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8301
8302 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8303 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8304 in current_font.
8305 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
8306 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8307 New functions.
8308 (syms_of_xsettings): Initialize current_font.
8309 defsubr Sfont_get_system_normal_font.
99852628 8310
686b968e
JB
8311 * xsettings.h (Ffont_get_system_normal_font)
8312 (xsettings_get_system_normal_font): Declare.
99852628
JD
8313
8314 * xfns.c (extern xlwmenu_default_font): Remove.
8315 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8316 to xlwmenu.c.
8317
8318 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8319 menu items in UTF-8.
8320
8321 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8322 (apply_systemfont_to_menu): New function.
bba3e508
SM
8323 (set_frame_menubar, create_and_show_popup_menu):
8324 Call apply_systemfont_to_menu.
99852628 8325
7fc874c4
J
83262010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8327
8328 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8329 FRAME_LINE_TO_PIXEL_Y.
8330
8331 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8332 pixelwidth/height.
8333
863bf481
DN
83342010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8335
5e5a3b92
DN
8336 Simplify code for HP machines.
8337 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8338 for GNU_LINUX, not needed.
8339 (UNEXEC, NEED_BSDTTY): Move definitions...
8340 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8341
863bf481
DN
8342 * m/iris4d.h (UNEXEC): Move definition ...
8343 * s/irix6-5.h (UNEXEC): ... here.
8344
3e6bec3b
JD
83452010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8346
8347 * xfns.c (set_machine_and_pid_properties): New function.
8348 (Fx_create_frame): Call set_machine_and_pid_properties.
8349
2912322b
SM
83502010-04-03 Eli Zaretskii <eliz@gnu.org>
8351
bba3e508
SM
8352 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8353 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
8354 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8355
2912322b
SM
8356 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8357 in this function. (Bug#5703)
8358
83592010-04-03 Chong Yidong <cyd@stupidchicken.com>
8360
8361 * nsterm.h: Fix last change.
8362
c435b432
DN
83632010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8364
a568f507
DN
8365 * m/intel386.h (NO_REMAP): Move definition ...
8366 * s/msdos.h (NO_REMAP): ... here.
8367
4cd9f6c2
DN
8368 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8369
c435b432
DN
8370 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8371 used on those platforms.
8372
42a2c622
DN
83732010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8374
8375 Remove extern errno declarations.
8376 * xterm.c:
8377 * xrdb.c:
8378 * w32term.c:
8379 * unexec.c:
8380 * unexaix.c:
8381 * sysdep.c:
8382 * process.c:
8383 * lread.c:
8384 * keyboard.c:
8385 * floatfns.c:
8386 * filelock.c:
8387 * fileio.c:
8388 * emacs.c (main):
8389 * ecrt0.c:
8390 * dispnew.c:
8391 * callproc.c:
8392 * buffer.c: Remove errno extern declarations.
8393 * s/netbsd.h (NEED_ERRNO): Remove.
8394
8224f93d
DN
83952010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8396
8397 Remove all uses of LIBX11_SYSTEM.
8398 * Makefile.in (LIBX11_SYSTEM): Remove.
8399 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8400 instead.
8401
814062c7
EZ
84022010-04-01 Eli Zaretskii <eliz@gnu.org>
8403
ed68db4d
EZ
8404 Remove support for DJGPP v1.x (bug#5813).
8405
8406 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
8407 * s/msdos.h:
8408 * unexec.c (make_hdr, copy_text_and_data):
8409 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 8410 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
8411 (IT_set_terminal_modes, __write, _rename, gethostname)
8412 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8413 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8414 the value of __DJGPP__.
ed68db4d
EZ
8415 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8416 compatibility code.
8224f93d
DN
8417 * lread.c:
8418 * gmalloc.c (memalign):
8419 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8420 * emacs.c (main):
8421 * dosfns.c (init_dosfns):
ed68db4d
EZ
8422 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8423
52f4d8d5
EZ
84242010-04-01 Eli Zaretskii <eliz@gnu.org>
8425
814062c7
EZ
8426 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8427 string with `cursor' property comes from an `after-string'
8428 overlay. (Bug#5816)
8429
0dc2e11d
GM
84302010-04-01 Glenn Morris <rgm@gnu.org>
8431
8432 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8433 Define as Makefile variables.
8434 (LIBX): Use above variables rather than directly using autoconf.
8435
1d29df59
DN
84362010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8437
8438 Clean up BSD_SYSTEM use.
8439 * xterm.c:
8440 * process.c:
8441 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8442 for including <sys/ioctl.h>.
8443 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8444 code is only used for MSDOS.
8445
1546c559
JL
84462010-03-31 Juri Linkov <juri@jurta.org>
8447
8448 * image.c: Add `Qextension_data'.
8449 (syms_of_image): Initialize and staticpro `Qextension_data'.
8450 (Fimage_metadata): Rename from `Fimage_extension_data'.
8451 (gif_load): Put GIF extension data to the property
8452 `Qextension_data'.
8453
6521c534
CY
84542010-03-31 Chong Yidong <cyd@stupidchicken.com>
8455
8456 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8457 * nsterm.h: Fix prototype.
8458
52c30783
EZ
84592010-03-31 Eli Zaretskii <eliz@gnu.org>
8460
8461 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8462 trailing whitespace in right-to-left rows.
8463
855a0da7
SM
84642010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8465
8466 Get rid of the direct_output optimizations.
8467 * keyboard.c (nonundocount): Remove extern declaration.
8468 (command_loop_1): Remove brittle optimisation for cheap and
8469 common operations.
8470 * xdisp.c (redisplay_internal): Don't bother checking
8471 redisplay_performed_directly_p any more.
8472 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8473 any more.
8474 * dispnew.c (redisplay_performed_directly_p)
8475 (direct_output_for_insert, direct_output_forward_char):
8476 * dispextern.h (redisplay_performed_directly_p)
8477 (direct_output_for_insert, direct_output_forward_char): Remove.
8478 * cmds.c (nonundocount): Make it static.
8479
85738751 84802010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
8481
8482 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8483
85738751 84842010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
8485
8486 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8487 invisible (Bug#5766).
8488
85738751 84892010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 8490
855a0da7
SM
8491 * xdisp.c (x_consider_frame_title, update_window_cursor):
8492 Remove HAVE_NS conditionals.
194d44e7 8493 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
8494
8495 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8496 filename for the title.
8497 (ns_set_doc_edited): Do nothing if the selected window is a
8498 minibuffer window.
8499
8500 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8501 ns_set_doc_edited.
8502
8503 * nsterm.m: Remove unneeded prototype.
8504
85738751 85052010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
8506
8507 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8508 in the DOC file. (Bug#5336)
8509
85738751 85102010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
8511
8512 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8513
75d1428c
SM
85142010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8515
8516 * window.c (keys_of_window): Remove redundant/overridden bindings.
8517
82043cfb
EZ
85182010-03-30 Eli Zaretskii <eliz@gnu.org>
8519
8520 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8521 Restore original behavior when the iterator is not bidi_p.
8522
b5dd0ae7
DN
85232010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8524
8525 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8526
bd924a5d
EZ
85272010-03-30 Eli Zaretskii <eliz@gnu.org>
8528
8529 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8530 are outside the range of cached character positions.
8531
3580374b
JB
85322010-03-30 Juanma Barranquero <lekktu@gmail.com>
8533
8534 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8535
a7b02820
EZ
85362010-03-30 Eli Zaretskii <eliz@gnu.org>
8537
8538 Initial support for bidirectional editing.
8539
8540 * Makefile.in (obj): Include bidi.o.
8541 (bidi.o): New target.
8542
8543 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8544 ($(BLD)/bidi.$(O)): New target.
8545
8546 * bidi.c: New file.
8547
8548 * buffer.h (struct buffer): New members bidi_display_reordering
8549 and bidi_paragraph_direction.
8550
8551 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8552 and bidi_paragraph_direction.
8553 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8554 and bidi-paragraph-direction.
8555 (Fbuffer_swap_text): Swap the values of
8556 bidi_display_reordering and bidi_paragraph_direction.
8557
8558 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8559 (bidi_type_t, bidi_dir_t): New types.
8560 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8561 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8562 prev_stop, base_level_stop, and eol_pos.
8563 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8564 (IT_STACK_SIZE): Enlarge to 5.
8565 (struct glyph_row): New member reversed_p.
8566 <string_buffer_position>: Update prototype.
8567 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8568 glyph_row if bidi_it.paragraph_dir == R2L.
8569 (struct glyph): New members resolved_level and bidi_type.
8570
8571 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8572 processing or buffer's direction is right-to-left.
8573 (prepare_desired_row): Preserve the reversed_p flag.
8574 (row_equal_p): Compare the reversed_p attributes as well.
8575
bba3e508
SM
8576 * xdisp.c (init_iterator): Initialize it->bidi_p.
8577 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
8578 buffer's value of bidi_paragraph_direction.
8579 (reseat_1): Initialize bidi_it.first_elt.
8580 (set_iterator_to_next, next_element_from_buffer): Use the value of
8581 paragraph_embedding to determine the paragraph direction.
8582 (set_iterator_to_next): Under bidi reordering, call
8583 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8584 new_paragraph flag is set in the bidi iterator.
8585 (next_element_from_buffer): If bidi_it.first_elt is set,
8586 initialize paragraph direction and find the first character to
8587 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
8588 prime the bidi iterator starting at the line's beginning.
8589 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
8590 non-linearity of the bidi iteration. Likewise for when we back up
8591 beyond the previous stop_charpos. When moving across stop_charpos,
8592 record it in prev_stop.
8593 (display_line): Set row->end and it->start for the next row to the
8594 next character in logical order. Always extend reversed_p rows to
8595 the end of line, even if they end at ZV. Copy the reversed_p flag
8596 to the next glyph row. Keep calling set_cursor_from_row for
8597 bidi-reordered rows even if we already have a possible candidate
8598 for cursor position. Set row_end after all the row's glyphs have
8599 been produced, by looping over the glyphs. Record the position
8600 after EOL in it->eol_pos, and use it to set end_pos of the last
8601 row produced for a continued line.
8602 <Qright_to_left, Qleft_to_right>: New variables.
8603 (syms_of_xdisp): Initialize and staticpro them.
8604 (string_buffer_position_lim): New function.
8605 (string_buffer_position): Most of code moved to
8606 string_buffer_position_lim. Last argument and return value are
8607 now EMACS_INT; all callers changed.
8608 (set_cursor_from_row): Rewritten to support bidirectional text and
8609 reversed glyph rows.
bba3e508
SM
8610 (text_outside_line_unchanged_p, try_window_id):
8611 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
8612 paragraph direction can be affected by the change.
8613 (append_glyph, append_composite_glyph)
8614 (produce_image_glyph, append_stretch_glyph): Set the
8615 resolved_level and bidi_type members of each glyph.
8616 (append_glyph): If the glyph row is reversed, prepend the glyph
8617 rather than appending it.
8618 (handle_stop_backwards): New function.
8619 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8620 (reseat): call handle_stop_backwards to recompute prev_stop and
8621 base_level_stop for the new position.
8622 (handle_invisible_prop): Under bidi iteration, skip invisible text
8623 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8624 paragraph direction. Update IT->prev_stop after skipping
8625 invisible text.
8626 (move_it_in_display_line_to): New variables prev_method
8627 and prev_pos. Compare for strict equality in
8628 BUFFER_POS_REACHED_P.
8629 (try_cursor_movement): Examine all the candidate rows that occlude
8630 point, to return the best match. If rows are bidi-reordered
8631 and point moved backwards, back up to the row that is not a
8632 continuation line, and start looking for a suitable row from
8633 there.
8634
8635 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8636 rather than appending, if the glyph_row's reversed_p flag is set.
8637 Set the resolved_level and bidi_type members of each glyph.
8638
8639 * .gdbinit (pbiditype): New command.
8640 (pgx): Use it to display bidi level and type of the glyph.
8641 (pitx): Display some bidi information about the iterator.
8642 (prowlims, pmtxrows): New commands.
8643
32a8894e
DN
86442010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8645
8646 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8647 * s/usg5-4.h (LIBS_DEBUG):
8648 * s/irix6-5.h (C_DEBUG_SWITCH):
8649 * s/gnu-linux.h (LIBS_DEBUG):
8650 * s/darwin.h (LIBS_DEBUG):
8651 * s/bsd-common.h (LIBS_DEBUG):
8652 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8653 * m/iris4d.h (LIBS_DEBUG):
8654 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8655
8656 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8657 (LIBS_DEBUG): Remove definition.
8658
649dbf36
CY
86592010-03-27 Chong Yidong <cyd@stupidchicken.com>
8660
8661 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8662 Windows.
8663
cad4261f
YM
86642010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8665
8666 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8667 `connect' (Bug#5723).
8668
cd591dbc
HE
86692010-03-25 Helmut Eller <eller.helmut@gmail.com>
8670
8671 * process.c (Fmake_network_process): Call `select' for interrupted
8672 `connect' rather than creating new socket (Bug#5173).
8673
e867cb5d 86742010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
8675
8676 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8677
8678 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8679
8680 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8681
e867cb5d 86822010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
8683
8684 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8685 XLoadQueryFont.
8686
e867cb5d 86872010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
8688
8689 * coding.c (decode_coding_ccl): Fix previous change for the
8690 multibyte case.
fb608df3
KH
8691 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8692 case that the output buffer is fullfilled.
8693 (encode_coding): Setup ccl program here.
fbdc1721 8694
5845f0ed
DN
86952010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8696
814fb708
DN
8697 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8698
5845f0ed
DN
8699 Simplify LIBS_MACHINE definitions.
8700 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8701 * m/iris4d.h (LIBS_MACHINE): Likewise.
8702 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8703 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 8704 * s/netbsd.h: Remove commented out code.
5845f0ed 8705
b7064064
DN
87062010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8707
df7734b2
DN
8708 Remove dead code dealing with POSIX_SIGNALS.
8709 * atimer.c (set_alarm): Remove dead code, all USG systems define
8710 POSIX_SIGNALS.
8711 * data.c (arith_error): Likewise.
8712 * keyboard.c (input_available_signal, handle_user_signal)
8713 (interrupt_signal): Likewise.
8714 * process.c (sigchld_handler): Likewise.
8715 (create_process): Remove if 0 code. Remove HPUX conditional when
8716 !defined (POSIX_SIGNALS), it cannot be true.
8717 * syssignal.h: Remove USG5_4 and USG conditionals when
8718 !POSIX_SIGNALS, they cannot be true.
8719
b7064064
DN
8720 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8721 NO_SOCK_SIGIO, not used anymore.
8722
55da5ee3
DN
87232010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8724
0be96e3a
DN
8725 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8726 support vax on BSDs.
8727
55da5ee3
DN
8728 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8729 * s/aix4-2.h (ORDINARY_LINK): ... here.
8730
c0282183
AS
87312010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8732
82c3d67a
AS
8733 * Makefile.in (abs_builddir): Define.
8734 (bootstrap_exe): Use it.
8735 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 8736
3613edce
SM
87372010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8738
8739 * Makefile.in (bootstrap_exe): Use an absolute name.
8740
7f110ddc
DN
87412010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8742
22e87574
DN
8743 Remove support for old GNU/Linux using libc version 5.
8744 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8745 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8746
05a670e6
DN
8747 Consolidate redundant definitions in s/bsd-common.h.
8748 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8749 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8750 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8751 doing it in all files that include this one.
8752 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8753 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8754 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8755 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8756 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8757 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8758 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8759 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8760 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8761
2968f561
DN
8762 Consolidate redundant definitions.
8763 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8764 it's undefined in all files that include this one.
8765 (POSIX_SIGNALS): Define here instead of doing it in all files that
8766 include this one.
8767 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8768 (POSIX_SIGNALS): Do not define.
8769 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8770 (POSIX_SIGNALS): Do not define.
8771 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8772 (POSIX_SIGNALS): Do not define.
8773
15d25dc0
DN
8774 Remove support for old UNIX System V systems.
8775 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8776 * s/usg-5-4-2.h: Remove.
8777
07e339e4
DN
8778 Remove support for Solaris on PPC and for old versions.
8779 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8780 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8781 that cancel each other.
8782 * s/sol2-3.h:
8783 * s/sol2-4.h:
8784 * s/sol2-5.h: Remove.
8785 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8786 (NO_REMAP): Remove, unused.
8787 (UNEXEC): Move definition ...
8788 * s/aix4-2.h (UNEXEC): ... here.
8789
7f110ddc
DN
8790 * s/openbsd.h: Remove support for non-ELF and for systems that do
8791 not support shared libraries.
8792 * s/netbsd.h:
8793 * s/freebsd.h: Likewise.
8794
605f35cd
DN
87952010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8796
8797 Remove non-working support for lynxos 3.0.
8798 * s/lynxos.h: Remove file.
8799
8800 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8801 COFF_BSD_SYMBOLS, nothing defines it anymore.
8802
aed71cf4
DN
88032010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8804
8805 Remove obsolete uses of HAVE_SHM.
8806 * emacs.c (standard_args):
8807 (Fdump_emacs):
8808 (syms_of_emacs): Remove code depending on HAVE_SHM.
8809
8810 * alloc.c: Remove HAVE_SHM dependent definition.
8811
8812 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8813
aded53ff
GM
88142010-03-18 Glenn Morris <rgm@gnu.org>
8815
17284745
GM
8816 * emacs.c (USAGE4): Hard-code bug address.
8817 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8818 (bug_reporting_address): Remove.
8819 (main): Don't call bug_reporting_address.
8820
aded53ff
GM
8821 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8822 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8823
303500aa
CY
88242010-03-15 Chong Yidong <cyd@stupidchicken.com>
8825
8826 * xfns.c (Fx_create_frame):
8827 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8828 on left.
8829
cef3058f
CY
88302010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8831
8832 * editfns.c (Fformat): Account for string precision when computing
8833 field width (Bug#5710).
8834
a647d59d
CY
88352010-03-12 Chong Yidong <cyd@stupidchicken.com>
8836
4fa42018
CY
8837 * xfns.c (Fx_create_frame): Set default to Qright.
8838
a647d59d
CY
8839 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8840 all window systems.
8841
6da23aaa
EZ
88422010-03-12 Eli Zaretskii <eliz@gnu.org>
8843
a96f6398 8844 These changes remove termcap.c from the build on Posix platforms.
83d02def 8845 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
8846 (MSDOS_OBJ): ...to here.
8847 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8848 now identical to when LIBS_TERMCAP is defined.
8849
8850 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8851
8852 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8853
a96f6398 8854 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 8855
288f9fc0
CY
88562010-03-10 Chong Yidong <cyd@stupidchicken.com>
8857
8858 * Branch for 23.2.
8859
d48cd3f4
SM
88602010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8861
8862 Cleanup setup of gl_state in various parts of the code.
8863 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8864 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8865 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8866 (skip_chars):
8867 * regex.c (regex_compile): Use it.
8868 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8869 it's now set in regex_compile when/if we need it.
8870
618db430
SM
88712010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8872
c0335e02
SM
8873 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8874 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8875 (QUIT): Use it to consolidate code and remove redundancy.
8876 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8877
254c06a8
SM
8878 * regex.c (regex_compile): Setup gl_state as well.
8879
618db430
SM
8880 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8881 (in_classes): Use CONSP before XCAR/XCDR.
8882
233f0c9f
CY
88832010-03-03 Chong Yidong <cyd@stupidchicken.com>
8884
8885 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8886 definitions, so that keyboard macros are correctly handled
8887 (Bug#5481).
8888
75f80e63
EZ
88892010-03-02 Eli Zaretskii <eliz@gnu.org>
8890
8891 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8892 text that could be relocated inside the call to emacs_mule_char.
8893 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8894 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8895
dcfb9bc4
KH
88962010-03-02 Kenichi Handa <handa@m17n.org>
8897
fc9a17bc
KH
8898 * character.c (parse_str_as_multibyte): Fix handling of the
8899 multibyte form of raw-bytes.
8900 (str_as_multibyte): Likewise.
8901
dcfb9bc4
KH
8902 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8903 form of raw-bytes.
8904
412c01b6
CY
89052010-02-28 Chong Yidong <cyd@stupidchicken.com>
8906
8907 * charset.c (load_charset_map_from_file)
8908 (load_charset_map_from_vector): Zero out allocated
8909 charset_map_entries before using them.
8910
df7e1ea0
AS
89112010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8912
8913 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8914
fe69a722
CY
89152010-02-27 Chong Yidong <cyd@stupidchicken.com>
8916
4ed28cf4
CY
8917 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8918 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 8919
7379cfce
KH
89202010-02-26 Kenichi Handa <handa@m17n.org>
8921
f88cc4d6
KH
8922 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8923
7379cfce
KH
8924 * xdisp.c (reseat_to_string): Fix previous change.
8925
cf2fdcfb
CY
89262010-02-26 David Reitter <david.reitter@gmail.com>
8927
8928 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8929 Lisp_Object (Bug#4736).
8930
cc6c7c75
KH
89312010-02-25 Kenichi Handa <handa@m17n.org>
8932
8933 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8934
32e737d7
JD
89352010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8936
8937 * xterm.c (XTflash): Move declarations before statements.
8938
8939 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8940 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8941 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8942 (xg_create_tool_bar): Remove unused variables.
8943 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 8944 (xg_create_frame_widgets): Remove variable grav.
32e737d7 8945
676cae9f
CY
89462010-02-21 Chong Yidong <cyd@stupidchicken.com>
8947
8948 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8949
886cc2b8
SM
89502010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8951
8952 * term.c (fatal): Add a final \n if needed (bug#5596).
8953
ddb2d8e2
CY
89542010-02-18 Chong Yidong <cyd@stupidchicken.com>
8955
8956 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8957
2a4f8d3d
GM
89582010-02-18 Glenn Morris <rgm@gnu.org>
8959
8960 * callint.c (Finteractive): Doc fix.
8961
ebaf11b6
KH
89622010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8963
886cc2b8
SM
8964 * coding.c (record_conversion_result):
8965 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
8966 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8967 memory allocation error.
8968
d0396581
KH
89692010-02-17 Kenichi Handa <handa@m17n.org>
8970
886cc2b8
SM
8971 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8972 Fix for the case that the output buffer is fullfilled.
d0396581
KH
8973 (decode_coding): Setup ccl program here. Keep looping when the
8974 decoder stopped because the output buffer is
8975 fullfilled (bug#5534).
8976
8977 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8978
98599f74
JD
89792010-02-13 Jan Djärv <jan.h.d@swipnet.se>
8980
471e4f04 8981 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 8982 bug #5571.
886cc2b8 8983 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 8984 overdrawn.
98599f74 8985
182659ae
JD
89862010-02-10 Jan Djärv <jan.h.d@swipnet.se>
8987
8988 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
8989 doing_interact here.
8990 (ice_connection_closed): New function.
8991 (x_session_check_input, smc_die_CB, ice_io_error_handler)
8992 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
8993 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
8994 returns I/O error.
8995 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
8996 bug #5512.
8997
9be32c4e 89982010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
8999
9000 * nsfont.m (nsfont_open): The system's value for the font descent
9001 is negative, so round it down to avoid clipping.
9002
a2f3eb19
CY
90032010-02-06 Chong Yidong <cyd@stupidchicken.com>
9004
9005 * charset.c (load_charset_map_from_file)
9006 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 9007 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 9008
3088147c
CY
90092010-02-05 Chong Yidong <cyd@stupidchicken.com>
9010
9011 * charset.c (load_charset_map_from_file): Allocate large
9012 charset_map_entries structure on the heap rather than the stack.
9013 (Bug#5526).
9014
b57d9029
KH
90152010-01-31 Kenichi Handa <handa@m17n.org>
9016
9017 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 9018 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 9019
c67d885b
CY
90202010-01-31 Chong Yidong <cyd@stupidchicken.com>
9021
9022 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
9023 <deactivated@gmail.com> (Bug#3605).
9024
8fab2362
CY
90252010-01-31 David De La Harpe Golden <david@harpegolden.net>
9026
9027 * fileio.c (Frename_file): Correctly rename symlinks to
9028 directories (Bug#5496).
9029
cb2a62f2
CY
90302010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
9031
9032 * nsterm.m (ns_ring_bell): Handle visible bell like X.
9033
944c7a26
AS
90342010-01-30 Andreas Schwab <schwab@linux-m68k.org>
9035
9036 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
9037
c024ac08
CY
90382010-01-29 Chong Yidong <cyd@stupidchicken.com>
9039
9040 * frame.c (DEFAULT_ROWS): Change default to 35.
9041
9042 * xfns.c (x_default_font_parameter): Change default XFT font to
9043 monospace-10 (Bug#3643).
9044
af93af83
EZ
90452010-01-29 Eli Zaretskii <eliz@gnu.org>
9046
9047 * w32inevt.c (key_event): Remove unnecessary comparison of
9048 event->uChar.AsciiChar with 128.
9049
ca0eb708
CY
90502010-01-28 Chong Yidong <cyd@stupidchicken.com>
9051
b242dbfc
CY
9052 * fileio.c (Frename_file): Fix last change (Bug#5487).
9053
ca0eb708
CY
9054 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9055
9056 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9057
45d45af5
JD
90582010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9059
9060 * xfns.c (Fx_create_frame): Remove window size matching code from
9061 2010-01-15.
a73f9c9d 9062 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 9063
7e233730
JR
90642010-01-27 Jason Rumney <jasonr@gnu.org>
9065
9066 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 9067 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 9068
86e893e3
KH
90692010-01-27 Kenichi Handa <handa@m17n.org>
9070
9071 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 9072 pattern string (Bug#4209).
86e893e3 9073
8719abec
CY
90742010-01-27 David De La Harpe Golden <david@harpegolden.net>
9075
9076 * fileio.c (Frename_file): Call copy-directory and
9077 delete-directory for directories, in order to handle cross-device
9078 renaming (Bug#3353).
9079
844794c8
JD
90802010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9081
aa3e13b5 9082 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 9083 sizes 24 and 10. Bug #3643.
844794c8 9084
bd4b5750
SM
90852010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9086
8dc1adf6 9087 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
9088 * keymap.c (shadow_lookup): Add `remap' arg.
9089 (describe_map, describe_vector): Update calls to shadow_lookup.
9090 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9091 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
9092 perform remapping during shadow_lookup check of remapped_sequences.
9093
285d07e2
CY
90942010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9095
9096 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9097 png_check_sig, which has been removed in libpng 1.4.
9098
c6d09b8d
CY
90992010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9100
9101 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9102 lacks this header file).
9103
3d782998
YM
91042010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9105
9106 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9107 as in Emacs 22.
9108
2aff7c53
YM
91092010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9110
9111 * lisp.h (make_pure_string): String pointer arg now points to const.
9112
9113 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9114 args now point to const.
9115
74327f7a
EZ
91162010-01-22 Eli Zaretskii <eliz@gnu.org>
9117
9118 * lread.c (Fload): Don't treat files without .elc extension as
9119 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9120 them. (bug#5303)
9121
4d1e6632
KH
91222010-01-20 Kenichi Handa <handa@m17n.org>
9123
9124 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9125 treat the source as actual byte sequence.
9126
1fdede8f
AM
91272010-01-19 Alan Mackenzie <acm@muc.de>
9128
9129 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 9130 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
9131 `signal_after_change_p' to `coherent_change_p', and make the
9132 invocation of `modify_region' conditional on it.
9133
67477f30
JD
91342010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9135
9136 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9137 for debug purpose.
9138 (syms_of_xsettings): Declare xft-settings.
9139
244b023e
CY
91402010-01-18 Chong Yidong <cyd@stupidchicken.com>
9141
9142 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9143
617364fe
CY
91442010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9145
9146 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9147
4fe22cdf
CY
91482010-01-16 Chong Yidong <cyd@stupidchicken.com>
9149
9150 * emacs.c (standard_args): Adjust arg priorities to reflect how
9151 they are processed in startup.el.
9152
e118d2be
AS
91532010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9154
9155 * Makefile.in (lisp, shortlisp): Update.
9156
523ae620
SM
91572010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9158
9159 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9160 code, link the new kboard into all_kboard before running Lisp code,
9161 and protect the new terminal with GCPRO (Bug#5365).
9162 (x_term_init): Remove unused var `atom'.
9163 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9164
f0d13888
JD
91652010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9166
9167 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9168 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9169 to find out usable size of the desktop. Don't make frames larger than
ac146f82 9170 this. Bug #3643.
f0d13888 9171
cc320f07
KH
91722010-01-15 Kenichi Handa <handa@m17n.org>
9173
9174 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9175
7ffdf101
CY
91762010-01-15 Chong Yidong <cyd@stupidchicken.com>
9177
9178 * nsterm.m (Qnone): Define.
9179
9180 * nsfns.m (Qnone): Move definition to nsterm.m.
9181
d12bd917
KH
91822010-01-14 Kenichi Handa <handa@m17n.org>
9183
9184 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9185 systems.
9186
d9a7c140
KH
91872010-01-14 Kenichi Handa <handa@m17n.org>
9188
9189 Make auto-composition work on all buffers even if they are
9190 fundamental mode.
9191
9192 * composite.c (Vauto_composition_mode): New variable.
9193 (composition_compute_stop_pos): Check Vauto_composition_mode
9194 instead of Vauto_composition_function.
9195 (composition_adjust_point, Ffind_composition_internal): Likewise.
9196 (syms_of_composite): Declare Lisp variable
9197 "auto-composition-mode" here.
9198
63286bb2
CY
91992010-01-13 Chong Yidong <cyd@stupidchicken.com>
9200
9201 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9202 during call to vendor-specific-keysyms (Bug#5365).
9203
c2623ee7
YM
92042010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9205
9206 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9207 Call SIGNAL_THREAD_CHECK (Bug#5333).
9208
9209 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9210 Call SIGNAL_THREAD_CHECK.
9211
0b5397c2
SM
92122010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9213
9214 Try to fix bug#5314. This is probably not the final word, tho.
9215 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9216 recent-auto-save-p as a side-effect.
9217 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9218 * buffer.c (Fkill_buffer, reset_buffer):
9219 * editfns.c (Fsubst_char_in_region):
9220 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9221 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9222
dc954cb2
KH
92232010-01-13 Kenichi Handa <handa@m17n.org>
9224
9225 Display buffer name, etc. in mode line by composing correctly.
9226
9227 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9228 STRING is not nil.
0b5397c2 9229 (display_mode_element): Adjust for the change of
dc954cb2
KH
9230 decode_mode_spec and display_line.
9231 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9232 (display_string): Handle the case that STRING is non-null and
9233 LISP_STRING is not nil.
9234
0b5397c2
SM
9235 * xterm.c (x_draw_composite_glyph_string_foreground):
9236 Pay attention to s->face->overstrike.
dc954cb2
KH
9237
9238 * composite.c (composition_reseat_it): Don't check PT if STRING is
9239 non nil.
9240
4a00eaca
YM
92412010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9242
9243 * keyboard.c (read_char): Don't apply previous change when current
9244 buffer is unchanged by command execution.
9245
60abb287
JD
92462010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9247
9248 * keyboard.c (read_char): Return after executing from special map.
9249
893db5bc
GM
92502010-01-12 Glenn Morris <rgm@gnu.org>
9251
9252 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9253 bug-gnu-emacs rather than emacs-pretest-bug.
9254
4d03ece0
CY
92552010-01-11 Chong Yidong <cyd@stupidchicken.com>
9256
9257 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9258 initializing the Lisp variables that depend on them.
9259
1df47e38
YM
92602010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9261
9262 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9263 Clear areas that will not be updated after change of menu bar lines.
9264 Clear the menu bar window's current matrix when the window gets empty.
9265
2f1c6384
CY
92662010-01-09 Chong Yidong <cyd@stupidchicken.com>
9267
e398c61c
CY
9268 * intervals.h, textprop.c (extend_property_ranges): Return value
9269 and args changed. Discard properties that begin at or after the
9270 new end (Bug#5306).
9271
9272 * editfns.c (Fformat): Caller changed.
9273
e5a29a10
CY
9274 * nsterm.m (ns_set_default_prefs): Delete function.
9275 (syms_of_nsterm): Initialize ns_command_modifier,
9276 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9277 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9278
2f1c6384
CY
9279 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9280 position (Bug#4040).
9281
d427a9fa
EZ
92822010-01-09 Eli Zaretskii <eliz@gnu.org>
9283
9284 * editfns.c (Ffloat_time): Doc fix.
9285
21b9df2f
JD
92862010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9287
9288 * xfns.c (Fx_create_frame): Don't create frame larger than display
9289 by default bug#3643.
9290
4b00d3b1
YM
92912010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9292
9293 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9294 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9295 windows above internal border.
9296
9297 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9298 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9299 windows above internal border.
9300
9301 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9302 tool bar windows specially.
9303
9304 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9305
9306 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9307 specially.
9308 (XTflash): Take account of menu bar height.
9309
9310 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9311 specially.
9312
5075d853
JD
93132010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9314
ac146f82 9315 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
9316 also be true before we can return early (bug #5339).
9317
474217c8
CY
93182010-01-06 David Reitter <david.reitter@gmail.com>
9319
9320 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9321 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9322 (Bug#3233).
9323
c0e6d47d
JD
93242010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9325
d0cf45b7
JD
9326 * font.c (font_open_entity): Enable chache and call cached_font_ok
9327 for the driver if defined.
9328 (QCuser_spec): New symbol.
9329 (font_spec_from_name): Save name as user-spec.
9330 (font_load_for_lface): Keep user-spec instead of name.
9331 (font_open_by_name): Save name as user-spec.
9332 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 9333 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
9334
9335 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9336 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9337 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9338
9339 * font.h (struct font_driver): Add cached_font_ok.
9340
c0e6d47d
JD
9341 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9342
7c583cd8
JD
93432010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9344
9345 * xterm.c (x_new_font): Move code for setting rows/cols before
9346 resizing ...
ac146f82 9347 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
9348
9349 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
9350 (xg_frame_resized, xg_frame_set_char_size):
9351 Call xg_clear_under_internal_border.
7c583cd8 9352 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 9353
03f77f0a
CY
93542010-01-05 Chong Yidong <cyd@stupidchicken.com>
9355
9356 * keyboard.c (read_key_sequence): Catch keyboard switch after
9357 making a new tty frame (Bug#5095).
9358
2a1ef5be
KH
93592010-01-05 Kenichi Handa <handa@m17n.org>
9360
9361 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9362
e3eb1dae
SM
93632010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9364
9365 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9366 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9367 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9368
777013f2
MA
93692010-01-03 Michael Albinus <michael.albinus@gmx.de>
9370
9371 * dbusbind.c (xd_add_watch): Improve debug message.
9372 (xd_remove_watch): Improve debug message. If DATA is the session
9373 bus, unset D-Bus session environment.
9374 (Fdbus_init_bus): Pass the bus as argument to
9375 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 9376
8932b1c2
CY
93772010-01-01 Chong Yidong <cyd@stupidchicken.com>
9378
87231e2c
CY
9379 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9380
4801c5fa
CY
9381 * lread.c (syms_of_lread): Make it clearer that these are the
9382 names of loaded files (Bug#5068).
9383
8932b1c2
CY
9384 * eval.c (run_hook_with_args): Handle the case where the global
9385 value has the obsolete single-function form (Bug#5026).
9386
11e3c684
CY
93872009-12-27 Chong Yidong <cyd@stupidchicken.com>
9388
9389 * minibuf.c (Fall_completions): Minor optimization.
9390
5b28ce35
EZ
93912009-12-26 Eli Zaretskii <eliz@gnu.org>
9392
5ce6e4f4
JB
9393 * .gdbinit (pgx): Fix display of composite glyphs.
9394 Display cmp.from and cmp.to as well.
9395 (pitx): Fix last change.
5b28ce35 9396
bcffff46
KH
93972009-12-25 Kenichi Handa <handa@m17n.org>
9398
9399 * composite.h (composition_adjust_point): Update prototype.
9400
9401 * composite.c (composition_reseat_it): Don't make a composition
9402 spanning over point.
9403 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9404 composable characters.
9405 (composition_adjust_point): New arg NEW_PT. Callers changed.
9406
9407 * keyboard.c (command_loop_1): Force redisplay if the last point
9408 was within a composition.
9409 (adjust_point_for_property): Don't adjust point for automatic
9410 composition when called after buffer modification.
9411
3f670e9a
EZ
94122009-12-19 Eli Zaretskii <eliz@gnu.org>
9413
5ce6e4f4
JB
9414 * .gdbinit (pitx): Don't use enum names, use their values.
9415 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
9416 (pgx): Don't use enum names, use their values.
9417 (pitmethod): New helper command.
9418 (pitx): Use it to display iteration method.
9419 (pgrowit): New command.
9420
ad903955
EZ
9421 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9422
3f670e9a
EZ
9423 Update dependencies in Makefile.in.
9424
9425 * Makefile.in (alloc.o): Depend on termhooks.h.
9426 (atimer.o): Depend on blockinput.h.
9427 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9428 and frame.h.
9429 (callint.o): Depend on systime.h, coding.h, and composite.h.
9430 (callproc.o): Depend on buffer.h.
9431 (casefiddle.o): Don't depend on charset.h.
9432 (casetab.o): Depend on character.h.
9433 (ccl.o): Depend on composite.h.
9434 (chartab.o): Depend on ccl.h.
9435 (cm.o): Depend on dispextern.h.
9436 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9437 (coding.o): Don't depend on $(INTERVALS_H).
9438 (composite.o): Don't depend on dispextern.h explicitly (it's in
9439 $(INTERVALS_H)). Depend on ccl.h.
9440 (data.o): Depend on systime.h, coding.h, composite.h,
9441 dispextern.h, font.h, and ccl.h.
9442 (dired.o): Depend on composite.h.
9443 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9444 composite.h (it's in $(INTERVALS_H)).
9445 (doc.o): Depend on systime.h, coding.h, and composite.h.
9446 (editfns.o): Don't depend explicitly on dispextern.h.
9447 (emacs.o): Depend on frame.h and coding.h.
9448 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9449 (fileio.o): Depend on frame.h and commands.h. Don't depend
9450 explicitly on dispextern.h.
9451 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9452 composite.h.
9453 (fns.o): Don't depend on termhooks.h.
9454 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9455 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9456 coding.h, $(INTERVALS_H), window.h, xterm.h.
9457 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9458 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9459 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9460 fontset.h, ccl.h, and ftfont.h.
9461 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9462 (gtkutil.o): Depend on dispextern.h and composite.h.
9463 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9464 termhooks.h, and ccl.h.
9465 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9466 (intervals.o): Depend on systime.h and coding.h.
9467 (keyboard.o): Depend on composite.h and coding.h.
9468 (keymap.o): Depend on coding.h and frame.h.
9469 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9470 (macros.o): Depend on systime.h, coding.h, and composite.h.
9471 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9472 and atimer.h.
9473 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9474 dispextern.h explicitly.
0b5397c2
SM
9475 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9476 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
9477 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9478 (regex.o): Don't depend on charset.h.
9479 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9480 (search.o): Don't depend explicitly on composite.h.
9481 (sound.o): Depend on atimer.h and systime.h.
9482 (syntax.o): Don't depend explicitly on composite.h.
9483 (sysdep.o): Depend on coding.h and composite.h.
9484 (term.o): Depend on xterm.h and buffer.h.
9485 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9486 (textprop.o): Don't depend on dispextern.h explicitly.
9487 (undo.o): Depend on dispextern.h.
9488 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9489 dispextern.h and composite.h explicitly.
9490 (xdisp.o): Depend on ccl.h.
9491 (xfaces.o): Depend on coding.h and ccl.h.
9492 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9493 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9494 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9495 ftfont.h.
9496 (xgselect.o): New dependency.
9497 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9498 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9499 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9500 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9501 (xsmfns.o): Depend on frame.h and dispextern.h.
9502 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9503 sysselect.h.
9504
7a6f7fea
AS
95052009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9506
9507 * font.c (Fclear_font_cache): Pass correct cache argument to
9508 font_clear_cache.
9509
f4c21026
AS
95102009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9511
9512 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9513 twice.
9514
f7ab0997
CY
95152009-12-15 Chong Yidong <cyd@stupidchicken.com>
9516
9517 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9518 calling file-remote-p. Reported by Jim Meyering.
9519
fa8e045a
MA
95202009-12-15 Michael Albinus <michael.albinus@gmx.de>
9521
9522 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 9523 avoid compiler warnings. (Bug #5217)
fa8e045a 9524
a63dba42
KH
95252009-12-14 Kenichi Handa <handa@m17n.org>
9526
9527 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9528 in 8-bit encoding.
9529
5ce6e4f4 95302009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
9531
9532 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9533 tooltip windows.
9534
223e5fc6
JD
95352009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9536
36acb2a7
JD
9537 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9538 Xatom_net_window_type.
9539
9540 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9541 Xatom_net_window_type.
9542
b8f00677
JD
9543 * xterm.c (my_log_handler): New function.
9544 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 9545 so we can filter out buggy messages. (Bug #5120).
b8f00677 9546
e5f0bc9a
JD
9547 * xterm.c (xg_scroll_callback): Parameter list changed,
9548 use parameter GtkScrollType to determine scroll/line/page.
9549 Only allow dragging if a button < 4 is grabbed (bug #5177).
9550 (xg_end_scroll_callback): New function.
9551 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9552 xg_create_scroll_bar.
9553
9554 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9555 (scroll_end_callback): Remove.
9556 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9557 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 9558 bug #5177.
e5f0bc9a
JD
9559 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9560 bug #5177.
9561
9562 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9563 (xg_create_scroll_bar): Add GCallback end_callback.
9564
223e5fc6
JD
9565 * xftfont.c (QClcdfilter): New variable.
9566 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9567 (syms_of_xftfont): Initialize QClcdfilter.
9568
3c055b77
JD
95692009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9570
9571 * xsettings.c (struct xsettings): Add member seen.
9572 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 9573 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
9574 (apply_xft_settings): Only update Xft settings with what member seen
9575 indicates as new.
9576
05fe33ff
EZ
95772009-12-12 Eli Zaretskii <eliz@gnu.org>
9578
c4cc8b9a 9579 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
9580 (struct glyph): Use EMACS_INT for charpos.
9581 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9582 region_beg_charpos, region_end_charpos,
9583 redisplay_end_trigger_charpos, and also for
9584 iterator_stack_entry.end_charpos and
9585 iterator_stack_entry.stop_charpos.
9586
e8d7886a
JD
95872009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9588
5ce6e4f4 9589 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
9590 (xg_create_scroll_bar): Call scroll_end_callback on button release
9591 event (bug #5177).
9592 (xg_event_is_for_scrollbar): != replaced with ==.
9593
d0db2ec8
KH
95942009-12-12 Kenichi Handa <handa@m17n.org>
9595
9596 * ftfont.c (struct ftfont_info): New member matrix.
9597 (ftfont_open): Setup xftfont_info->matrix.
9598 (MFLTFontFT): New member matrix.
9599 (FLOOR, CEIL, ROUND): New macros.
9600 (ftfont_get_metrics): Handle matrix transformation.
9601 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9602
9603 * xftfont.c (struct xftfont_info): New member matrix.
9604 (xftfont_open): Setup xftfont_info->matrix.
9605
96062009-12-10 Kenichi Handa <handa@m17n.org>
9607
9608 * xdisp.c (append_space_for_newline): Consider face-remapping.
9609
2cc7b62f
AS
96102009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9611
b87dd913
AS
9612 * xsettings.c: Include "keyboard.h".
9613
eba5eb94
AS
9614 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9615
2cc7b62f
AS
9616 Fix implicit function declarations.
9617 * cmds.c: Include "frame.h".
9618 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9619 * frame.h: Move declaration of delete_frame outside of
9620 HAVE_WINDOW_SYSTEM.
9621
a4ef73c8
CY
96222009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9623
9624 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9625
9626 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9627 GTK builds.
9628
944a300c
AS
96292009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9630
9631 * unexelf.c (unexec): Don't search for .data twice.
9632
022eef62
CY
96332009-12-05 Chong Yidong <cyd@stupidchicken.com>
9634
426ac949
CY
9635 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9636 if push failed.
9637 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9638 of push_display_prop (Bug#5000).
9639
022eef62
CY
9640 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9641 value of font_list_entities (Bug#5085).
9642
be95bee9
JB
96432009-12-04 Juanma Barranquero <lekktu@gmail.com>
9644
9645 Fix `string-to-number' to deal consistently with integers and floats.
9646 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9647 trailing characters, not just whitespace.
9648 (read1): Pass new arg 0 to keep old behavior.
9649 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9650 trailing chars, as it is already done for integers. Doc fixes.
9651 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9652
24c2d7ce
EZ
96532009-12-04 Eli Zaretskii <eliz@gnu.org>
9654
0b5397c2
SM
9655 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9656 Delete unused enumeration value.
24c2d7ce 9657
7e694795
EZ
96582009-12-03 Eli Zaretskii <eliz@gnu.org>
9659
9660 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9661
84b31826
SM
96622009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9663
9664 * process.c (Fmake_network_process): Fix up the tests for
9665 "connectionless socket", so they DTRT for seqpacket sockets as well.
9666
f00c449b
SM
96672009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9668
9669 * process.c (Qseqpacket): New symbol.
9670 (HAVE_SEQPACKET): New macro.
9671 (Fmake_network_process): Accept new :type `seqpacket'.
9672 (init_process): Add `seqpacket' feature when applicable.
9673 (syms_of_process): Initialize Qseqpacket.
9674
8096a0ff
YM
96752009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9676
9677 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9678 if entity is Qnil.
9679
3e0de07f
SM
96802009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9681
9682 * print.c (print_preprocess): Preprocess the key_and_value table of
9683 hashtables, even tho they're "hidden" (bug#5082).
9684
abeafb2a
JD
96852009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9686
9687 * frame.c (frame_make_pointer_invisible)
9688 (frame_make_pointer_visible): Declare f before statements.
9689
4bf47195
EZ
96902009-11-28 Eli Zaretskii <eliz@gnu.org>
9691
9692 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9693 omitted dependencies on lisp.h.
9694
c525b3f2
JD
96952009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9696
ece2d4ed
JD
9697 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9698 is NULL.
9699
9700 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9701
9702 * frame.c (frame_make_pointer_invisible)
3e0de07f 9703 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
9704 frame.
9705
c525b3f2
JD
9706 * search.c (simple_search): Remove warning by making *p const.
9707
2f00e299
DN
97082009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9709
9710 * xdisp.c (power_letter): Remove duplicate const.
9711
084b049b
JD
97122009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9713
a1fadc6f
JD
9714 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9715
5ce6e4f4 9716 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
9717 defaults (bug #5025).
9718
28259cac
SM
97192009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9720
9721 * insdel.c (adjust_markers_for_delete): Move it in the
9722 right direction! (bug#4803)
9723
e8e14166
YM
97242009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9725
9726 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9727
9728 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9729
86677b58
GM
97302009-11-24 Glenn Morris <rgm@gnu.org>
9731
9732 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9733
581e51e8
JD
97342009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9735
cfc86c7a
JD
9736 * Makefile.in: Must create deps for ecrt0.o in its rule.
9737
581e51e8
JD
9738 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9739 because that is what Gtk+ font dialog understands.
9740
9741 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9742 of Fcopy_sequence.
9743 (font_open_by_name): Put name given into QCname for font-object returned.
9744
9745 * frame.c (x_set_font): Save original font name as frame parameter
9746 font-parameter.
9747
9748 * xsettings.c (set_default_xft_settings): New function.
9749 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9750 is found.
9751
8b264ecb
AS
97522009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9753
9754 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9755 searching backwards through multibyte buffer.
9756
872870b2
JD
97572009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9758
9759 * xterm.c: #include xgselect.h.
9760 (x_initialize): Call xgselect_initialize.
9761
9762 * xsettings.c (something_changedCB): C++ comments => C comments.
9763 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9764 does that now.
9765
9766 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9767 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9768 (scroll_bar_button_cb): Remove.
5ce6e4f4 9769 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
9770 event.
9771 (xg_create_scroll_bar): Don't bind button-press-event and
9772 button-release-event.
9773
9774 * process.c: Include xgselect.h if defined (USE_GTK) ||
9775 defined (HAVE_GCONF).
9776 (wait_reading_process_output): Call xg_select for the same condition.
9777
9778 * xgselect.c (xg_select): New function to better integrate with
9779 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9780
9781 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9782
9783 * Makefile.in (XOBJ): Add xgselect.o.
9784
62a6e103
AS
97852009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9786
0b5397c2
SM
9787 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9788 Remove ignored second argument. All callers changed.
62a6e103
AS
9789 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9790 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9791 * xdisp.c (string_char_and_length): Likewise.
9792
b0ca0f33
DN
97932009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9794
9795 * xterm.c (x_new_font):
9796 * print.c (print_object):
9797 * cmds.c (Fself_insert_command): Move declarations before statements.
9798
dd5a6279
CY
97992009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9800
9801 * s/cygwin.h: Remove unneeded linker flags.
9802
4a8e097d
JD
98032009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9804
0d1d0d26
JD
9805 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9806
9807 * xsettings.h: Declare xsettings_get_system_font.
9808
9809 * xsettings.c (xsettings_get_system_font): New function.
9810 (init_gconf): No use initiating gconf unless we have Xft also.
9811 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9812 HAVE_GCONF.
9813
4a8e097d
JD
9814 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9815 add a blank entry so it doesn't collapse into nothing.
9816
8ab1650e
SM
98172009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9818
9819 * lread.c (Funintern): Comment out last change.
9820
82c602f0
RS
98212009-11-19 Richard Stallman <rms@gnu.org>
9822
9823 * lread.c (Funintern): Error if symbol is t or nil.
9824
87e32266
SM
98252009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9826
9827 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9828 representation of Lisp integers.
9829 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9830
1b9ac145
AS
98312009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9832
9833 * lisp.h: Remove declaration of Ffont_get_system_font.
9834 * xfns.c: Move include of "xsettings.h".
9835 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9836
dfb3c4c6
JD
98372009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9838
87e32266
SM
9839 * xsettings.c (something_changedCB, Ffont_get_system_font):
9840 Check use_system_font.
dfb3c4c6
JD
9841 (syms_of_xsettings): DEFVAR font-use-system-font.
9842
9370c1d8
AS
98432009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9844
25fe851a
AS
9845 * xfns.c (x_default_font_parameter): Remove dead assignment.
9846
9370c1d8
AS
9847 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9848
637fa988
JD
98492009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9850
87e32266 9851 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 9852 not have FC_LCD_*. #define them if not there.
a6eb20d8 9853
87e32266 9854 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 9855
637fa988
JD
9856 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9857
9858 * xterm.c (handle_one_xevent): Call xft_settings_event for
9859 ClientMessage, PropertyNotify and DestroyNotify.
9860 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9861 Call xsettings_initialize.
9862
9863 * xftfont.c (xftfont_fix_match): New function.
9864 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9865 Call xftfont_fix_match after XftFontMatch.
9866
9867 * xfont.c (xfont_driver): Initialize all members.
9868
87e32266
SM
9869 * xfns.c (x_default_font_parameter):
9870 Try font from Ffont_get_system_font.
637fa988
JD
9871 Do not get font from x_default_parameter if we got one from
9872 Ffont_get_system_font.
87e32266 9873 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
9874
9875 * w32font.c (w32font_driver): Initialize all members.
9876
9877 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9878
9879 * lisp.h: Declare syms_of_xsettings.
9880
87e32266
SM
9881 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9882 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
9883
9884 * ftfont.c (ftfont_filter_properties): New function.
9885
9886 * frame.c (x_set_font): Remove unused variable lval.
9887
87e32266 9888 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
9889
9890 * font.c (font_put_extra): Don't return if val is nil, it means
9891 boolean option is off.
9892 (font_parse_fcname): Collect all extra properties in extra_props
9893 and call filter_properties for all drivers with extra_props and
9894 font as parameter.
87e32266
SM
9895 (font_open_entity): Do not use cache, it does not pick up new
9896 fontconfig settings like hinting.
637fa988
JD
9897 (font_load_for_lface): If spec had a name in it, store it in entity.
9898
a73f9c9d 9899 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
9900
9901 * config.in: HAVE_GCONF is new.
9902
9903 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9904 xsettings.o is new.
9905
5a942932
KH
99062009-11-17 Kenichi Handa <handa@m17n.org>
9907
9908 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9909 back to the default font in case that no suitable font is found.
9910
b7c7a4d1
SM
99112009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9912
9913 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9914 Suggested by Chad Brown <yandros@mit.edu>.
9915 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9916
072f1e39
JD
99172009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9918
9919 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9920
5d1e70a2
AS
99212009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9922
87e32266 9923 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 9924
a53cfbe5
JD
99252009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9926
473a99b7
JD
9927 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9928 has a parent.
9929
a53cfbe5 9930 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 9931 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
9932
9933 * config.in: Generated (AUTO_DEPEND).
9934
f04bb9b2
MA
99352009-11-13 Michael Albinus <michael.albinus@gmx.de>
9936
b7c7a4d1 9937 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
9938 Vdbus_registered_functions_table, because it contains also
9939 properties. Fix docstring.
b7c7a4d1 9940 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 9941
8f11f7ec
SM
99422009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9943
9944 * alloc.c (mark_object): Don't reprocess marked strings.
9945 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9946 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9947
8a605fe8
KH
99482009-11-13 Kenichi Handa <handa@m17n.org>
9949
8f11f7ec 9950 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
9951 semantics of Vword_combining_categories.
9952 (Vword_combining_categories): Describe the slight change of the
9953 semantics.
9954
241c4680
EZ
99552009-11-13 Eli Zaretskii <eliz@gnu.org>
9956
9957 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9958
9959 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9960
5d58e44c
SM
99612009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9962
9963 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9964
5e13f9d3
JB
99652009-11-12 Juanma Barranquero <lekktu@gmail.com>
9966
9967 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9968
cf54c754
DR
99692009-11-11 David Reitter <david.reitter@gmail.com>
9970
9971 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9972 variables to fix 2009-11-09 change.
9973
a4ada374
DN
99742009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9975
91433552
DN
9976 * process.c (ifflag_def): Make flag_sym constant.
9977 (Fnetwork_interface_info): Use a constant pointer.
9978 (ifflag_table):
9979 * xfns.c (cursor_bits):
9980 * xdisp.c (power_letter):
9981 * termcap.c (speeds, esctab):
9982 * sysdep.c (baud_convert):
9983 * keyboard.c (lispy_accent_codes, modifier_names):
9984 * image.c (xbm_format, xpm_format, pbm_format, png_format)
9985 (jpeg_format, tiff_format, gif_format, svg_format)
9986 (interlace_start, interlace_increment, gs_format):
9987 * gtkutil.c (separator_names):
9988 * fringe.c (swap_nibble):
9989 * fns.c (base64_value_to_char, base64_char_to_value):
9990 * fileio.c (make_temp_name_tbl):
9991 * coding.c (suffixes): Make constant.
9992
f4265f6c
DN
9993 * frame.c (make_initial_frame):
9994 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
9995 build_string.
9996 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
9997
04420943
DN
9998 * s/freebsd.h:
9999 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
10000
0a5d24ae
DN
10001 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
10002 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
10003
a4ada374
DN
10004 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
10005 * xterm.c (syms_of_xterm):
10006 * xfaces.c (syms_of_xfaces):
10007 * xdisp.c (syms_of_xdisp):
10008 * lread.c (syms_of_lread):
10009 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
10010 build_string.
91433552 10011
a4ada374
DN
10012 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
10013
af98fc7f
SM
100142009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10015
8ab1650e 10016 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 10017
e90292a9
JD
100182009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10019
10020 * keyboard.h: Declare timer_check.
10021
10022 * keyboard.c (timer_check_2): New function that does what the old
10023 timer_check did.
10024 (timer_check): Call timer_check_2 until -1 or a non-zero time is
10025 returned, i.e. don't return -1 with timers pending.
10026
10027 * process.c: Remove extern declaration of timer_check.
10028
10029 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
10030 even if timer_check returned -1.
10031
af98fc7f
SM
10032 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
10033 xg_dialog_data.
e90292a9
JD
10034 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
10035 the event loop.
10036 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
10037 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
10038 Destroy the dialog after xg_dialog_run.
10039
045b83c0
SM
100402009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10041
10042 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10043
1fb99a3a
JD
100442009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10045
10046 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10047
04e452cb
JB
100482009-11-09 Juanma Barranquero <lekktu@gmail.com>
10049
10050 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10051
ef7417fd
SM
100522009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10053
10054 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10055 w32menu.c, and nsmenu.m.
10056 Simplify the obsolete case where position is nil.
10057 (cleanup_popup_menu): New function, moved from nsmenu.m.
10058 (struct skp): Remove slot `notreal'.
10059 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10060 adjust callers.
10061 (single_menu_item): Adjust call to parse_menu_item.
10062 (syms_of_menu): Defsubr x-popup-menu.
10063 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10064 (keymap_panes): Don't export any more.
10065 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10066 (xmenu_show): Declare.
10067 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10068 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10069 * keyboard.h (parse_menu_item): Update declaration.
10070 * xmenu.c (Fx_popup_menu): Remove.
10071 (syms_of_xmenu): Don't defsubr x-popup-menu.
10072 * w32menu.c (Fx_popup_menu): Remove.
10073 (syms_of_w32menu): Don't defsubr x-popup-menu.
10074 * nsmenu.m (cleanup_popup_menu): Remove.
10075 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10076 moved to menu.c's Fx_popup_menu.
10077 (Fx_popup_menu): Remove.
10078 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10079 menu_items (it's done in menu.c already).
10080
424d6179
SM
100812009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10082
10083 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10084 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10085
c0df13a6 100862009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
10087
10088 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 10089 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
10090 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10091 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10092
2de9f71c
SM
100932009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10094
10095 Let integers use up 2 tags to give them one extra bit and thus double
10096 their range.
10097 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10098 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10099 New macros.
10100 (enum Lisp_Type): Use them. Give explicit values.
10101 (Lisp_Type_Limit): Remove.
10102 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10103 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10104 Pay attention to USE_2_TAGS_FOR_INTS.
10105 (INTEGERP): Use LISP_INT_TAG_P.
10106 * fns.c (internal_equal): Simplify the default case.
10107 (sxhash): Use case_Lisp_Int.
10108 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10109 any more.
10110 (Ftype_of): Use case_Lisp_Int.
10111 (store_symval_forwarding): Take into account the fact that Ints can
10112 now have more than one tag.
10113 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 10114 (buffer_slot_type_mismatch):
2de9f71c
SM
10115 * xfaces.c (face_attr_equal_p):
10116 * print.c (print_object):
10117 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10118 Use case_Lisp_Int.
10119
323637a2
EZ
101202009-11-06 Eli Zaretskii <eliz@gnu.org>
10121
7ac65b38
EZ
10122 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10123
323637a2
EZ
10124 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10125 warning.
10126
e511451f
JD
101272009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10128
10129 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10130
10131 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10132
10133 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10134 ButtonPressRelease and MotionNotify (bug#4870).
10135
5e2327cf
DN
101362009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10137
5adc433e
DN
10138 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10139
d67b4f80
DN
10140 * xterm.c (syms_of_xterm):
10141 * xselect.c (syms_of_xselect):
10142 * xmenu.c (syms_of_xmenu):
10143 * xfns.c (syms_of_xfns):
10144 * xfaces.c (syms_of_xfaces):
10145 * xdisp.c (syms_of_xdisp):
10146 * window.c (syms_of_window):
10147 * w32fns.c (syms_of_w32fns):
10148 * undo.c (syms_of_undo):
10149 * textprop.c (syms_of_textprop):
10150 * terminal.c (syms_of_terminal):
10151 * syntax.c (syms_of_syntax):
10152 * sound.c (syms_of_sound):
10153 * search.c (syms_of_search):
10154 * print.c (syms_of_print):
10155 * minibuf.c (syms_of_minibuf):
10156 * macros.c (syms_of_macros):
10157 * keymap.c (syms_of_keymap, initial_define_key)
10158 (initial_define_lispy_key):
10159 * keyboard.c (syms_of_keyboard):
10160 * insdel.c (syms_of_insdel):
10161 * image.c (syms_of_image):
10162 * fringe.c (syms_of_fringe):
10163 * frame.c (syms_of_frame):
10164 * fontset.c (syms_of_fontset):
10165 * fns.c (syms_of_fns):
10166 * fns.c (syms_of_fns):
10167 * fileio.c (syms_of_fileio):
10168 * fileio.c (syms_of_fileio):
10169 * eval.c (syms_of_eval):
10170 * doc.c (syms_of_doc):
10171 * dispnew.c (syms_of_display):
10172 * dired.c (syms_of_dired):
10173 * dbusbind.c (syms_of_dbusbind):
10174 * data.c (syms_of_data):
10175 * composite.c (syms_of_composite):
10176 * coding.c (syms_of_coding):
10177 * cmds.c (syms_of_cmds):
10178 * charset.c (define_charset_internal, syms_of_character):
10179 * ccl.c (syms_of_ccl):
10180 * category.c (syms_of_category, init_category_once):
10181 * casetab.c (syms_of_casetab):
10182 * casefiddle.c (syms_of_casefiddle):
10183 * callint.c (syms_of_callint):
10184 * bytecode.c (syms_of_bytecode):
10185 * buffer.c (keys_of_buffer, syms_of_buffer):
10186 * alloc.c (syms_of_alloc):
10187 * process.c (syms_of_process, init_process):
10188 * lread.c (syms_of_lread, init_obarray):
10189 * font.c (build_style_table):
10190 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10191 intern_c_string, calls to make_pure_string with
10192 make_pure_c_string. Use pure_cons instead of Fcons.
10193
5e2327cf
DN
10194 * process.c (socket_options): Make it const.
10195 (set_socket_option, init_process): Use a const pointer.
10196
10197 * lread.c (intern_c_string): New function.
10198 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10199 (defvar_int): Uset it. Make the name const char*.
10200
10201 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10202 (defvar_int): Update prototypes.
10203 (DEFUN, EXFUN): Support for prototypes is now required.
10204 (intern_c_string): New prototype.
10205 (struct Lisp_Subr): Make symbol_name constant.
10206
10207 * font.c (struct table_entry): Remove unused member. Make NAMES
10208 constant.
10209 (weight_table, slant_table, width_table): Make constant.
10210
10211 * emacs.c (struct standard_args): Make name and longname constant.
10212
10213 * character.h (DEFSYM): Use intern_c_string.
10214
a56eaaef
DN
102152009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10216
10217 * alloc.c (make_pure_c_string): New function.
10218
10219 * eval.c (Fautoload): Purecopy all arguments.
10220
f6a07420
KH
102212009-11-05 Kenichi Handa <handa@m17n.org>
10222
10223 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10224 the buffer in case of replace.
10225
5d28d4b1
DN
102262009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10227
10228 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10229
b349d111
SM
102302009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10231
d528b1ce
SM
10232 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10233 when applicable (bug#4851).
10234
b349d111
SM
10235 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10236 (P_): Support for prototypes is now required.
10237
c38eb027
CY
102382009-10-31 Chong Yidong <cyd@stupidchicken.com>
10239
10240 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10241 (Bug#4827).
10242
0405f8d9
EZ
102432009-10-30 Eli Zaretskii <eliz@gnu.org>
10244
d528b1ce 10245 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 10246
ca0a881a
DN
102472009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10248
10249 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10250
d528b1ce
SM
10251 * lread.c (Fload): Purecopy the file name when building
10252 Vpreloaded_file_list.
ca0a881a 10253
47e0e0e4
JR
102542009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10255
10256 * w32fns.c (syms_of_w32fns): Change default value of
10257 w32-scroll-lock-modifier to nil. (Bug#2827)
10258
057bce6f
JB
102592009-10-26 Juanma Barranquero <lekktu@gmail.com>
10260
782a943e 10261 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 10262
242bc74c
AS
102632009-10-26 Andreas Schwab <schwab@redhat.com>
10264
10265 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10266
522d013a
JB
102672009-10-26 Juanma Barranquero <lekktu@gmail.com>
10268
10269 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10270 For delta < 0, skip check that only makes sense when the mini-window
10271 is going to be enlarged. (Bug#4534)
10272
18060980
CY
102732009-10-25 Chong Yidong <cyd@stupidchicken.com>
10274
10275 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10276 string in menu maps (Bug#4471).
10277
fec8f0fe
CY
102782009-10-24 Chong Yidong <cyd@stupidchicken.com>
10279
10280 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10281 FRAME_NS_VIEW on terminal frames (Bug#4765).
10282
10d66ec0
AS
102832009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10284
1cae01f7
AS
10285 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10286 DBUS_TYPE_UINTnn separately to get proper sign extension.
10287
58a12889
AS
10288 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10289 can properly handle unsigned types.
d528b1ce 10290 (make_uid, make_gid): Remove.
58a12889 10291
987c9327
AS
10292 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10293 types again.
10294
522d013a 10295 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
10296 (system_process_attributes): Likewise.
10297
905a9ed3
DN
102982009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10299
10300 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10301
10302 * eval.c (Fautoload): Purecopy the filename. Simplify.
10303
10304 * category.c (Fdefine_category): Purecopy docstring.
10305
a599b3e8
AS
103062009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10307
7b792fc9
AS
10308 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10309
a599b3e8
AS
10310 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10311
b35ac83e
CY
103122009-10-23 Chong Yidong <cyd@stupidchicken.com>
10313
10314 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10315 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10316 (Bug#4775).
10317
e8903e00
SM
103182009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10319
10320 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10321 (init_fileio_once):
10322 * lisp.h (init_fileio_once): Remove.
10323 * emacs.c (main): Don't call init_fileio_once.
10324
8f43cbf3
DN
103252009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10326
10327 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10328
26898943
AS
103292009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10330
10331 * doprnt.c (doprnt): Fix overflow check.
10332
5c646d5a
JD
103332009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10334
3132a7ea
JD
10335 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10336
5c646d5a
JD
10337 * xterm.h (x_wait_for_event): Declare it.
10338
10339 * xterm.c (pending_event_wait): New variable.
10340 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10341 see pending_event_wait.eventtype.
10342 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
10343 (x_new_font): Call change_frame_size with new rows/columns before we
10344 try to resize the frame.
5c646d5a 10345 (x_wait_for_event): New function.
d528b1ce
SM
10346 (x_set_window_size_1): Don't change gravity unless change_gravity
10347 is set.
5c646d5a
JD
10348 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10349 don't change frame size, instead wait for the ConfigureNotify.
10350 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10351 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10352 (x_initialize): Initialize pending_event_wait.
10353
10354 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10355 size.
10356
10357 * widget.c (EmacsFrameSetValues): Add comment.
10358 (EmacsFrameSetCharSize): Just call x_set_window_size.
10359
10360 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10361 x_wait_for_event.
d528b1ce 10362 (flush_and_sync): Remove again.
5c646d5a
JD
10363 (xg_get_font_name): Suggest monospace if no previous font is known.
10364
e9c1637d
SM
103652009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10366
10367 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 10368 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 10369
5a72cccb
YM
103702009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10371
10372 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10373 processing pending events when event is filtered for input method.
ab04798f 10374 (Bug#3681)
5a72cccb 10375
2629aa37
JB
103762009-10-20 Juanma Barranquero <lekktu@gmail.com>
10377
10378 * fns.c: Add #endif accidentally removed in previous change.
10379
c3417a74
DN
103802009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10381
10382 * fns.c: Remove code for unsupported system: MAC_OS.
10383 * image.c: Likewise. Include setjmp.h.
10384
9685cef2
JD
103852009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10386
10387 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10388 pixel -1 (bug #4742).
10389
d7306fe6
DN
103902009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10391
019d2c4c
DN
10392 * process.c (create_pty): Remove conditionals for no longer
10393 supported systems: UNIPLUS and RTU.
10394
ee6bacd4
DN
10395 * xterm.c:
10396 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10397
d7306fe6
DN
10398 * alloc.c: Do not define struct catchtag.
10399 * eval.c: Move struct catchtag definition ...
10400 * lisp.h: ... here.
10401
10402 * image.c: Move png.h #include earlier to avoid warnings.
10403
10404 * xterm.c:
10405 * xsmfns.c:
10406 * xselect.c:
10407 * xrdb.c:
10408 * xmenu.c:
10409 * xftfont.c:
10410 * xfont.c:
10411 * xfns.c:
10412 * xfaces.c:
10413 * xdisp.c:
10414 * window.c:
10415 * widget.c:
10416 * w32xfns.c:
10417 * w32uniscribe.c:
10418 * w32term.c:
10419 * w32select.c:
10420 * w32reg.c:
10421 * w32proc.c:
10422 * w32menu.c:
10423 * w32inevt.c:
10424 * w32heap.c:
10425 * w32font.c:
10426 * w32fns.c:
10427 * w32console.c:
10428 * w32.c:
10429 * w16select.c:
10430 * vm-limit.c:
10431 * unexsol.c:
10432 * unexec.c:
10433 * unexcw.c:
10434 * unexaix.c:
10435 * undo.c:
10436 * tparam.c:
10437 * textprop.c:
10438 * terminfo.c:
10439 * terminal.c:
10440 * termcap.c:
10441 * term.c:
10442 * syntax.c:
10443 * sound.c:
10444 * sheap.c:
10445 * search.c:
10446 * scroll.c:
10447 * region-cache.c:
10448 * regex.c:
10449 * ralloc.c:
10450 * process.c:
10451 * print.c:
b024548b
DN
10452 * nsterm.m:
10453 * nsselect.m:
10454 * nsmenu.m:
10455 * nsimage.m:
10456 * nsfont.m:
10457 * nsfns.m:
d7306fe6
DN
10458 * msdos.c:
10459 * minibuf.c:
10460 * menu.c:
10461 * marker.c:
10462 * macros.c:
10463 * keymap.c:
10464 * keyboard.c:
10465 * intervals.c:
10466 * insdel.c:
10467 * indent.c:
10468 * gtkutil.c:
10469 * ftxfont.c:
10470 * ftfont.c:
10471 * fringe.c:
10472 * frame.c:
10473 * fontset.c:
10474 * font.c:
10475 * fns.c:
10476 * floatfns.c:
10477 * filelock.c:
10478 * fileio.c:
10479 * emacs.c:
10480 * editfns.c:
10481 * dosfns.c:
10482 * doprnt.c:
10483 * doc.c:
10484 * dispnew.c:
10485 * dired.c:
10486 * dbusbind.c:
10487 * data.c:
10488 * composite.c:
10489 * coding.c:
10490 * cmds.c:
10491 * cm.c:
10492 * chartab.c:
10493 * charset.c:
10494 * character.c:
10495 * ccl.c:
10496 * category.c:
10497 * casetab.c:
10498 * casefiddle.c:
10499 * callproc.c:
10500 * callint.c:
10501 * bytecode.c:
10502 * buffer.c:
10503 * atimer.c: Include setjmp.h. (Bug#4643)
10504
fd5f21e6
SM
105052009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10506
4c0354d7
SM
10507 Remove leftover table unibyte_to_multibyte_table.
10508 * character.c (unibyte_to_multibyte_table): Remove.
10509 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10510 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10511 * character.h (UNIBYTE_TO_CHAR): New macro.
10512 (MAKE_CHAR_MULTIBYTE): Use it.
10513 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10514 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10515 (message_dolog, set_message_1):
10516 * search.c (Freplace_match):
10517 * editfns.c (Fcompare_buffer_substrings):
10518 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10519 (concat):
10520 * insdel.c (copy_text, count_size_as_multibyte):
10521 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10522 * term.c (produce_glyphs):
10523 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10524 * regex.c (RE_CHAR_TO_MULTIBYTE):
10525 * cmds.c (internal_self_insert):
10526 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10527
fd5f21e6
SM
10528 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10529
4418646e
DN
105302009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10531
10532 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10533
35f5c1d2
JB
105342009-10-16 Juanma Barranquero <lekktu@gmail.com>
10535
10536 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10537
a0cd8f6b
AR
105382009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10539
10540 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10541 still needed under Tiger.
10542
10543 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10544
10545 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10546 __Apple__.
10547
10548 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10549
01a8d3fa
KH
105502009-10-15 Kenichi Handa <handa@m17n.org>
10551
10552 * print.c (print_object): Escape a symbol like "2E10" too.
10553
bf6c75c9 105542009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
10555
10556 Cleanups and changes for 64-bit compile under Snow Leopard.
10557 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
10558
10559 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10560
c5959062 10561 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
10562 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10563 cast argument.
10564 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 10565 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
10566
10567 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10568
10569 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10570 where appropriate.
10571
10572 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10573 where appropriate.
6e4780c5
JB
10574 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10575 Use stringWithUTF8String.
bf6c75c9
AR
10576 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10577
6e4780c5
JB
10578 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10579 Add formal protocol mention to inheritance.
bf6c75c9
AR
10580 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10581
6e4780c5
JB
10582 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10583 Fix printf format.
bf6c75c9
AR
10584 (ns_query_color): Use CGFloat where appropriate.
10585 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 10586 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
10587 argument.
10588
3d87f118
AR
10589 * config.in (NS_HAVE_NSINTEGER): Drop.
10590
a95c8102
AR
10591 * dbusbind.c (dbus-method-return-internal)
10592 (dbus-method-error-internal): Use long format in printf, and cast
10593 argument.
10594
10595 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10596 in printf, and cast argument.
10597
6873acca 10598 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
10599 cast argument.
10600
9ec6f100
GM
106012009-10-11 Glenn Morris <rgm@gnu.org>
10602
10603 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10604
5be883cd
JD
106052009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10606
10607 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10608 menu bar with a small width so it doesn't enlarge the frame.
10609
d7a39b51
JB
106102009-10-08 Juanma Barranquero <lekktu@gmail.com>
10611
10612 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10613
0c2b6f8e
GM
106142009-10-06 Glenn Morris <rgm@gnu.org>
10615
10616 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10617 SOME_MACHINE_LISP (this enters indirectly via DOC).
10618
e02131a2
EZ
106192009-10-05 Eli Zaretskii <eliz@gnu.org>
10620
10621 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10622
b4744254
EZ
106232009-10-04 Eli Zaretskii <eliz@gnu.org>
10624
10625 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10626 Doc fix.
10627
dbf64827
JB
106282009-10-03 Martin Rudalics <rudalics@gmx.at>
10629
10630 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10631
e9a0aef8
MA
106322009-10-02 Michael Albinus <michael.albinus@gmx.de>
10633
d528b1ce 10634 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
10635 used anymore outside fileio.c.
10636
10637 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10638
64eb2b56
JB
106392009-10-01 Juanma Barranquero <lekktu@gmail.com>
10640
10641 * lisp.h (Qdelete_directory_internal):
10642 Declare, instead of Qdelete_directory.
10643
10644 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10645
9d28c33e
SM
106462009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10647
10648 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10649
9d8f3bd9
MA
106502009-10-01 Michael Albinus <michael.albinus@gmx.de>
10651
9d28c33e 10652 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
10653 Fdelete_directory. It is not a command anymore. It has no file
10654 name handler.
10655
9694740b
SM
106562009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10657
10658 * xdisp.c (get_next_display_element): Use an enum in last change.
10659
748e162f
KH
106602009-09-28 Kenichi Handa <handa@m17n.org>
10661
9694740b 10662 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
10663 unibyte_display_via_language_environment in handling
10664 Vnobreak_char_display.
10665
17efd58d
AR
106662009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10667
10668 * nsterm.h (ns_app_name): New extern variable.
10669
10670 * nsterm.m (ns_app_name): New variable.
10671 (ns_term_init): Set and use it.
10672 (ns_term_shutdown): Use it.
10673
10674 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10675 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10676
10677 * nsfns.m (ns_set_name_iconic, ns_set_name)
10678 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10679 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10680
9694740b
SM
10681 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10682 Remove double-casting in client_data comparison.
31c2d412 10683
3208cb35
YM
106842009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10685
10686 * keyboard.c (make_lispy_event): Remember last wheel direction.
10687 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10688
b7d552d6
GM
106892009-09-26 Glenn Morris <rgm@gnu.org>
10690
10691 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10692 internal.elc. Add term/pc-win.elc.
10693 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10694 term/x-win.elc.
10695 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10696 term/w32-win.elc.
10697 (NS_SUPPORT): New.
10698 (lisp): Add NS_SUPPORT.
10699 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10700
4ff670a8
DR
107012009-09-25 David Reitter <david.reitter@gmail.com>
10702
10703 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10704 on Mac OS X 10.6+ (bug#4513).
10705
feabfb6c
JB
107062009-09-24 Juanma Barranquero <lekktu@gmail.com>
10707
10708 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
10709 some parts of Emacs code (like font selection) don't grok them.
10710 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 10711
de59072a
AS
107122009-09-24 Andreas Schwab <schwab@redhat.com>
10713
10714 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10715
a489517b
JB
107162009-09-24 Juanma Barranquero <lekktu@gmail.com>
10717
10718 * dired.c (Fdirectory_files): Fix typo in docstring.
10719
0592970c
AR
107202009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10721
10722 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10723 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10724 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10725 under GNUstep.
10726 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10727
10728 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10729 glyph advancement.
10730
48e8a88b
AR
107312009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10732
10733 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 10734 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
10735
10736 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10737 deleted (bug #4492).
10738
e14f0a78
AR
10739 * nsfont.m (Vns_reg_to_script): New lisp variable.
10740 (syms_of_nsfont): Declare it.
10741 (ns_registry_to_script): New function.
10742 (ns_get_req_script): Call it.
10743 (ns_findfonts): Don't give up on non-unicode registry.
10744
10745 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10746
5b650faa
SM
107472009-09-20 Tom Tromey <tromey@redhat.com>
10748
10749 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10750 batch mode (bug#4228).
10751
a489517b 107522009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
10753
10754 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 10755 carefully. (Bug #4339)
0bae4e09 10756
fcfe06f3
CY
107572009-09-18 Chong Yidong <cyd@stupidchicken.com>
10758
d798ba87 10759 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 10760
31642728
AR
107612009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10762
10763 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
10764 (main) [HAVE_NS]: Don't process --no-init-file option.
10765 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
10766
10767 * nsterm.h (ns_no_defaults): Remove.
10768
10769 * nsterm.m (ns_no_defaults): Remove.
10770 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10771 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
10772 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10773 don't update the NSWindow itself.
bba3e508
SM
10774 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10775 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
10776
10777 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10778 ns_use_qd_smoothing.
10779
10780 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10781 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 10782 (x-close-connection): Drop PSFlush() under OS X.
a489517b 10783 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 10784
8686ac71
JB
107852009-09-17 Juanma Barranquero <lekktu@gmail.com>
10786
10787 * emacs.c (inhibit_x_resources): New variable.
10788 (main) [HAVE_NS]: Don't process --quick command line option.
10789 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10790
10791 * lisp.h (inhibit_x_resources): Declare it extern.
10792
10793 * w32reg.c (x_get_string_resource):
10794 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10795
e227ba05
EZ
107962009-09-17 Eli Zaretskii <eliz@gnu.org>
10797
362654a6
JB
10798 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10799 Add lisp/term/internal.elc.
e227ba05 10800
742d40e8
SM
108012009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10802
10803 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10804 (bug#4461).
10805
005bd5a2
DN
108062009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10807
10808 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10809
10810 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10811 (OBJECTS_MACHINE): Remove, unused.
10812
f9af9719
SM
108132009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10814
10815 * frame.c (x_get_resource_string): Remove unused.
10816
0307c7d2
JD
108172009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10818
10819 * xterm.c (x_new_font): Call change_frame_size before calling
10820 x_set_window_size, in case frame size won't change.
10821
10822 * frame.c (x_set_font): Remove dead code.
10823
428b13d6
SM
108242009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10825
10826 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10827
5766c380
SM
108282009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10829
10830 * lread.c (Fload): Don't output a message after loading an obsolete
10831 package any more (done in Lisp now).
10832
2fd0161b
CY
108332009-09-12 Chong Yidong <cyd@stupidchicken.com>
10834
10835 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10836
bc5e75b6
SM
108372009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10838
10839 * keymap.c (Fwhere_is_internal): Use nconc2.
10840
c31c985e
AM
108412009-09-11 Alan Mackenzie <acm@muc.de>
10842
10843 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10844 batch mode.
10845
78012bd2
AS
108462009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10847
10848 * xdisp.c (display_mode_element): Detect cycles.
10849
9d889332
SM
108502009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10851
10852 * keymap.c (where_is_internal): Don't erroneously return nil right after
10853 filling the cache.
10854 (where_is_internal_1): Fix up typo.
10855
7ab5d780
GM
108562009-09-11 Glenn Morris <rgm@gnu.org>
10857
10858 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10859 share a common doc-string.
10860
5238a749
SM
108612009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10862
66d77eda
SM
10863 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10864 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10865
5238a749
SM
10866 * keymap.c (QCadvertised_binding): New constant.
10867 (syms_of_keymap): Initialize it.
10868 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10869 if applicable.
10870
19f48442
SM
108712009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10872
50d4ba39
SM
10873 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10874 (parse_menu_item): Streamline since bindings are recomputed all the
10875 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10876 more and don't support lmenu's menu-alias any more either.
10877
a88a5372
SM
10878 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10879 (where_is_internal): Strip it down to only traverse the keymaps.
10880 Move the cache handling from Fwhere_is_internal to here.
10881 (Fwhere_is_internal): Move the handling of remapping and the choice of
10882 the best binding from where_is_internal to here.
10883 Unify the cached/noncached paths, so remapping is also handled
10884 correctly when the cache is used, and so the cache can be used to
10885 speed up remap-handling when applicable.
10886 Give preference to non-remapped bindings.
10887 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10888 non-remapped bindings.
10889 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10890 command remapping.
10891
19f48442
SM
10892 * xdisp.c (display_mode_element): Move list length limit from 50 to
10893 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10894
599498c3 108952009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
10896
10897 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10898
f9b7b5ac
SM
108992009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10900
a53af587
JB
10901 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10902 (Bug#4334)
10903
f9b7b5ac
SM
10904 * keymap.c (where_is_internal): Filter out shadowed remappings.
10905 Assume that where_is_internal returns unshadowed bindings to simplify
10906 the code and get rid of the gotos. Use ASIZE.
10907
04f4b72d
JD
109082009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10909
4da146f2
JD
10910 * xterm.c (x_focus_changed): If we get a focusout and pointer
10911 is invisible, make it visible.
10912
04f4b72d
JD
10913 * xterm.h: Remove condition for declaration of
10914 x_*_window_to_frame.
10915
7cef7ce3
SM
109162009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10917
10918 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10919 initial terminal as well.
10920
a54fa5b7
JD
109212009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10922
10923 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 10924 x_menubar_window_to_frame.
a54fa5b7 10925
50426a04 10926 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
10927 (XTmouse_position): Do not return valid positions
10928 for clicks in the menubar and the toolbar for Gtk+.
10929
10930 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10931 if the widget for the event has the same top level as a frame,
10932 return the frame.
10933 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10934 internal windows, bug #4122.
10935 (x_non_menubar_window_to_frame): Remove.
10936
5a021dd0
GM
109372009-09-02 Glenn Morris <rgm@gnu.org>
10938
10939 * buffer.c (default-major-mode): Move most of the doc from here...
10940 (major-mode): ... to here.
10941
548fe2f3
NR
109422009-08-30 Nick Roberts <nickrob@snap.net.nz>
10943
10944 * process.c (wait_reading_process_output): Keep the descriptor
10945 when pty is used by a non-child process, e.g., in I/O buffer of
10946 GDB this allows inferior to be restarted.
10947
e0840eef
EZ
109482009-08-29 Eli Zaretskii <eliz@gnu.org>
10949
10950 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10951 both branches into one.
10952
82e98df4
SM
109532009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10954
10955 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10956 (main): Use enable-multibyte-characters rather than
10957 default-enable-multibyte-characters. Output a warning message when
10958 running a unibyte session.
10959
890617cb
YM
109602009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10961
10962 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10963 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10964 (copy_data_segment): Also copy __program_vars section.
10965 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10966 (dump_it) [LC_DYLD_INFO]: Use it.
10967
10968 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10969
e7adeadc
EZ
109702009-08-28 Eli Zaretskii <eliz@gnu.org>
10971
10972 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10973 $(SRC)/buildobj.h.
ef1b0ba7 10974 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
10975 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10976 $(SRC)/buildobj.h.
10977 (clean): Add buildobj.h.
10978
3ed8bbdc
TZ
109792009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
10980
10981 * print.c (print_object): Set escapeflag to 1 when printing
10982 hashtable keys and values.
10983
155a6764
SM
109842009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
10985
10986 * lread.c (read_integer): Use doubles (and potentially return a float
10987 number) as we do in string-to-number.
10988 (read1): Use strtol to read integers, signal errors on strtol's
10989 overflow and use floats if strtol's output is too large for
10990 Elisp integers.
10991
877610de
EZ
109922009-08-27 Eli Zaretskii <eliz@gnu.org>
10993
10994 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
10995 (make-buildobj-SH): Fix last change.
10996 (SRC): Move to before where it's first used.
10997
ef73e7be
KH
109982009-08-27 Kenichi Handa <handa@m17n.org>
10999
550c8289
KH
11000 * process.c (send_process): Use encode_coding_object instead of
11001 encode_coding_string to perform eol-conversion even if the string
11002 is unibyte.
11003
60afa08d
KH
11004 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
11005 character.
11006
ef73e7be 11007 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 11008 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 11009
7b3a82d7
DN
110102009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
11011
5654bf63
DN
11012 * callproc.c (Fcall_process): Remove always true #if.
11013
7b3a82d7
DN
11014 * lisp.h: Replace #if 0 code for checking with text pointing to
11015 the --enable-checking configure flag.
11016
11017 * emacs.c (main): Mention the --enable-profiling configure flag
11018 instead of using CFLAGS.
11019
878bde49
KR
110202009-08-26 Ken Raeburn <raeburn@raeburn.org>
11021
11022 * Makefile.in (buildobj.h): New target.
11023 (doc.o): Depend on it.
11024 (temacs${EXEEXT}): Don't generate buildobj.lst.
11025 (mostlyclean): Delete buildobj.h, not buildobj.lst.
11026 * makefile.w32-in ($(SRC)/buildobj.h): New target.
11027 ($(BLD)/doc.$(O)): Depend on it.
11028 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
11029 provided by Eli Zaretskii.)
11030 ($(TEMACS)): Don't generate buildobj.lst.
11031 * doc.c: Include buildobj.h.
11032 (buildobj): New static variable.
11033 (Fsnarf_documentation): Use it, instead of opening and reading
11034 buildobj.lst.
11035
1574224c
MA
110362009-08-25 Michael Albinus <michael.albinus@gmx.de>
11037
11038 * dbusbind.c (Fdbus_call_method)
11039 (Fdbus_call_method_asynchronously): Use English numeric format for
11040 timeout values in doc string.
11041
d9da2f45
KH
110422009-08-25 Kenichi Handa <handa@m17n.org>
11043
ef73e7be
KH
11044 * alloc.c (mark_char_table): New function.
11045 (mark_object): Use mark_char_table for a char-table.
11046
d9da2f45
KH
11047 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11048 (CHAR_TABLE_REF): Use it.
11049
c8edcc01
KR
110502009-08-23 Ken Raeburn <raeburn@raeburn.org>
11051
11052 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11053 before invoking the newly build emacs to check for load-path
11054 shadowing.
11055
7763401b
GM
110562009-08-22 Glenn Morris <rgm@gnu.org>
11057
11058 * Makefile.in (bootstrap_exe): New variable.
11059 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11060 Use ${bootstrap_exe}.
11061
729eadda
EZ
110622009-08-22 Eli Zaretskii <eliz@gnu.org>
11063
11064 * coding.h (encode_coding_string): Don't encode unibyte strings.
11065 (Bug#4047)
11066
eb4c6ace
MA
110672009-08-22 Michael Albinus <michael.albinus@gmx.de>
11068
11069 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11070
11071 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11072 intended as hotfix only.
11073 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11074
36e34d1b
AR
110752009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11076
11077 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
11078 change, and clean up loose ends in the code left by it.
11079 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
11080 yet another X11 format (rgb:r/g/b) for compatibility.
11081 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11082 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11083
f983eb8a
SM
110842009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11085
11086 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11087
3f56d3c6
MA
110882009-08-20 Michael Albinus <michael.albinus@gmx.de>
11089
11090 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11091 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11092 (xd_initialize, xd_pending_messages): Check, whether
11093 $DBUS_SESSION_BUS_ADDRESS is set.
11094
fb641d68
YM
110952009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11096
11097 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11098
11099 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11100
cf59a374
GM
111012009-08-20 Glenn Morris <rgm@gnu.org>
11102
11103 * emacs.c (system-type): Doc fix.
11104
1373f3be
SM
111052009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11106
11107 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11108 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11109
058ed861
MA
111102009-08-18 Michael Albinus <michael.albinus@gmx.de>
11111
1373f3be
SM
11112 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11113 New functions.
058ed861
MA
11114 (xd_initialize): Revert change from 2009-08-16.
11115
563a866e 111162009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
11117
11118 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 11119 font-group vector, return nil.
5fc05db0 11120
e42bdf01
CY
111212009-08-17 Chong Yidong <cyd@stupidchicken.com>
11122
11123 * process.c (status_notify): Don't perform redisplay.
11124 (Fdelete_process, list_processes_1, process_send_signal):
11125 Expliticly perform redisplay.
11126 (wait_reading_process_output): Always check process status, but
11127 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11128
4230ab74
KR
111292009-08-17 Ken Raeburn <raeburn@raeburn.org>
11130
1373f3be 11131 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
11132 (XFLOAT_INIT): New macro for storing a float value.
11133 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11134 * fns.c (sxhash): Copy out the value of a float in order to
11135 examine its bytes.
11136 * dbusbind.c (xd_append_arg): Likewise.
11137
4230ab74
KR
11138 * emacs.c (main): Don't call syms_of_data twice.
11139
a0645cdd
MA
111402009-08-16 Michael Albinus <michael.albinus@gmx.de>
11141
11142 * dbusbind.c (xd_initialize): Add connection file descriptor to
11143 input_wait_mask, in order to let select() detect, whether a new
11144 message has been arrived.
ca4f31ea 11145 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 11146
485db0ba
MA
111472009-08-15 Michael Albinus <michael.albinus@gmx.de>
11148
1373f3be
SM
11149 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11150 New functions.
485db0ba
MA
11151
11152 * lisp.h (xd_pending_messages): Declare.
11153
11154 * keyboard.c (readable_events): Call xd_pending_messages.
11155
b5b98ff4
CY
111562009-08-15 Chong Yidong <cyd@stupidchicken.com>
11157
1373f3be 11158 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 11159
f8354c6e
CY
11160 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11161
b5b98ff4
CY
11162 * buffer.c (set_buffer_internal_1)
11163 (swap_out_buffer_local_variables): Check for unbound local
11164 variables (Bug#4138).
11165
8b9fc636
EZ
111662009-08-14 Eli Zaretskii <eliz@gnu.org>
11167
11168 * process.c (create_pty): Fix last change.
11169
ce959360
CY
111702009-08-13 Chong Yidong <cyd@stupidchicken.com>
11171
11172 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11173 (xbm_load_image): Caller changed.
64b807c9 11174 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 11175
c7baf7e9
NR
111762009-08-13 Nick Roberts <nickrob@snap.net.nz>
11177
11178 * process.c (create_pty): New function.
11179 (Fstart_process): Use it to allow Emacs to just associate a pty
11180 with the buffer. See associated change in gdb-mi.el.
11181 (list_processes_1): Deal with no program name.
11182 (start_process_unwind): Use pid == -2 to mean no process.
11183
1ac9108a
SM
111842009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11185
11186 * cmds.c (nonundocount): New global variable.
11187 (keys_of_cmds): Initialize it.
11188 (Fself_insert_command): Use it to combine upto 20 sequential chars
11189 into a single undo entry, just like the Qself_insert_command code in
11190 keyboard.c does.
11191 Call frame_make_pointer_invisible, also like the Qself_insert_command
11192 code in keyboard.c does.
11193 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11194 than its own local replacement for it.
11195
e267324c
KR
111962009-08-10 Ken Raeburn <raeburn@raeburn.org>
11197
1ac9108a 11198 * fns.c (concat): Don't re-set string length to its current value.
77437343 11199
1ac9108a
SM
11200 * coding.h (decode_coding_string, encode_coding_string):
11201 Use SBYTES macro.
f0bed503 11202
1ac9108a 11203 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
11204 (doprnt): Merge with doprnt1, discarding lispstrings code.
11205 * lisp.h (doprnt_lisp): Don't declare.
11206
416e006d
JL
112072009-08-07 Juri Linkov <juri@jurta.org>
11208
11209 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11210
6f7d5780
DN
112112009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11212
11213 * print.c (syms_of_print): Undo previous change.
11214
f19a0f5b
TZ
112152009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11216
11217 * lread.c (read1, syms_of_lread): Read hashtables back from the
11218 readable format.
11219
11220 * print.c (print_preprocess, print_object): Print hashtables fully
11221 and readably.
11222 (syms_of_print): Provide 'hashtable-print-readable.
11223
b9173dc2
AR
112242009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11225
11226 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11227 no family set.
11228 (nsfont_open): Handle case when entity has no family.
11229
1586503c
AR
112302009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11231
11232 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11233 element, not a list, for match case.
11234
087048cd
KH
112352009-07-28 Kenichi Handa <handa@m17n.org>
11236
11237 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11238 rigidly.
11239
11240 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11241 font_parse_xlfd. Check font properties more rigidly.
11242
780c2506
DN
112432009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11244
31fd7c5c
JB
11245 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11246 bsd-common.h.
780c2506 11247
a8c0cc18
KH
112482009-07-27 Kenichi Handa <handa@m17n.org>
11249
11250 * xfaces.c (face_with_height): Call font_clear_prop.
11251
4fbe2306
CY
112522009-07-26 Chong Yidong <cyd@stupidchicken.com>
11253
111d9af3
CY
11254 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11255
11256 * xterm.c (x_term_init): Use Qx.
11257
4fbe2306
CY
11258 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11259
1ac9108a 11260 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
11261 (ns_get_color): Revert 2009-07-16 change.
11262
beb0b7f9
EZ
112632009-07-25 Eli Zaretskii <eliz@gnu.org>
11264
11265 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 11266 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 11267
2baf5e76
KR
112682009-07-25 Ken Raeburn <raeburn@raeburn.org>
11269
1ac9108a
SM
11270 * coding.h (decode_coding_string, encode_coding_string):
11271 Use SCHARS macro.
8890e5f5 11272
2baf5e76 11273 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 11274 (load_depth): Delete.
2baf5e76
KR
11275 (Qload_in_progress): New variable.
11276 (load_unwind): Don't reference load_depth or load_in_progress.
11277 (Fload): Likewise; specbind Qload_in_progress instead.
11278 (init_lread): Don't initialize load_depth.
11279 (syms_of_lread): Initialize and protect Qload_in_progress.
11280
1395c6f5
AR
112812009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11282
11283 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11284
4e2f36cf
AR
112852009-07-23 Yavor Doganov <yavor@gnu.org>
11286
11287 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11288
5dd9a6f7
AR
112892009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11290
11291 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
11292 Bugs 3792, 3720, 2402.
11293 (ns_lookup_indexed_color): Check for bad index.
11294 (ns_index_color): Init unused slot to 0.
11295 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11296 Bug 3714, possibly 3082.
5dd9a6f7 11297
c902b920
JR
112982009-07-22 Jason Rumney <jasonr@gnu.org>
11299
1ac9108a
SM
11300 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11301 Position IME window at cursor (Bug#2570).
c902b920
JR
11302 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11303 (globals_of_w32fns): Dynamically load functions required above.
11304
11305 * w32term.c (w32_draw_window_cursor): Send message to reposition
11306 any IME window.
11307
090101cf
CY
113082009-07-21 Chong Yidong <cyd@stupidchicken.com>
11309
11310 * fileio.c: Revert 2009-07-16 changes.
11311 (Vauto_save_include_big_deletions): New variable.
11312 (Fdo_auto_save): Disable auto-save only if
11313 auto-save-include-big-deletions is nil.
11314
e6583e3d
CY
113152009-07-21 Chong Yidong <cyd@stupidchicken.com>
11316
11317 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11318 the overflowed pixels into account (Bug#3879).
11319
ece435a5
KR
113202009-07-21 Ken Raeburn <raeburn@raeburn.org>
11321
11322 * lread.c (load_depth): New variable.
11323 (Fload, load_unwind, init_lread): Set it to the load recursion
11324 depth; set load_in_progress as a simple boolean based on the
11325 current load_depth. (Bug#3892)
11326
40b2d973
AR
113272009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11328
11329 * nsfont.m (ns_has_attribute): Remove.
11330 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11331
10be7e0d
JL
113322009-07-18 Juri Linkov <juri@jurta.org>
11333
11334 * process.c (Fset_process_query_on_exit_flag): Mention killing
11335 a buffer in docstring.
11336
fa055055
KH
113372009-07-17 Kenichi Handa <handa@m17n.org>
11338
11339 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11340
042f7b69
YM
113412009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11342
11343 * nsfns.m (Fns_set_alpha): Remove function.
11344 (syms_of_nsfns): Don't defsubr it.
11345
11346 * nsterm.m (ns_get_color): Remove incompatible color formats.
11347 (ns_color_to_lisp): Generate #rrggbb color format string.
11348
4be941e3
RS
113492009-07-16 Richard Stallman <rms@gnu.org>
11350
11351 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11352 (Fset_buffer_auto_saved): Handle save_length = -2.
11353
4e6b227d
CY
113542009-07-16 Chong Yidong <cyd@stupidchicken.com>
11355
11356 * xterm.c (Qx_gtk_map_stock): New var.
11357
11358 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11359 of calling intern each time.
11360
a1856973
YM
113612009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11362
11363 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11364 does tiling.
11365
11366 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11367
497e54d8
KH
113682009-07-14 Kenichi Handa <handa@m17n.org>
11369
72d36834
KH
11370 * font.c (font_vconcat_entity_vectors): New function.
11371 (struct font_sort_data): New member font_driver_preference.
11372 (font_compare): Check font_driver_preference.
11373 (font_sort_entities): The format of the first argument changed.
11374 (font_delete_unmatched): Likewise.
11375 (font_list_entities): The return type changed.
11376 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
11377 (font_find_for_lface): Adjuste for the above changes.
11378 Don't suppress the checking of C even if the repertory supports it.
11379 (Flist_fonts): Adjust for the above changes.
72d36834 11380
1ac9108a
SM
11381 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11382 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
11383 Reject a font who has adstyle property that is different from a
11384 langname derived from registry property.
1ac9108a 11385 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 11386
b6046155
EZ
113872009-07-13 Eli Zaretskii <eliz@gnu.org>
11388
11389 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11390 local copy of dirfilename.
11391
fb6b6049
KH
113922009-07-13 Kenichi Handa <handa@m17n.org>
11393
e2402a5e
KH
11394 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11395 against max_char.
11396
fb6b6049
KH
11397 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11398 calling XSYMBOL (sym).
11399
65156807
EZ
114002009-07-11 Eli Zaretskii <eliz@gnu.org>
11401
1ac9108a
SM
11402 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11403 New function.
11404 (directory_files_internal) [WINDOWSNT]:
11405 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
11406 the filesystem of the directory is fast or slow.
11407
11408 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11409 file name.
11410 (is_slow_fs): New function.
11411 (stat): Use it to determine whether to issue more system calls to
11412 get accurate file attributes, when w32-get-true-file-attributes is
11413 `local'.
11414
e0ab5fcf
JD
114152009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11416
11417 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 11418 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
11419 parameter font-parameter as default to the font dialog.
11420
784ceded
KH
114212009-07-10 Kenichi Handa <handa@m17n.org>
11422
11423 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11424
fb8edc0b
EZ
114252009-07-09 Eli Zaretskii <eliz@gnu.org>
11426
1ac9108a 11427 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 11428
fb8edc0b
EZ
11429 * w32.c (stat): Treat UNC file names as residing on remote
11430 drives. (Bug#3542)
11431
635c75b1
KH
114322009-07-09 Kenichi Handa <handa@m17n.org>
11433
11434 * fontset.c (fontset_find_font): Fix previous change.
11435
c1d5ce94
MA
114362009-07-08 Michael Albinus <michael.albinus@gmx.de>
11437
11438 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11439 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11440 error flag.
11441
edb61b39
KH
114422009-07-08 Kenichi Handa <handa@m17n.org>
11443
374bf7e4
KH
11444 * fontset.c (fontset_find_font): Fix the logic of handling
11445 charset_matched.
11446 (font_for_char): Delete unused var.
11447 (generate_ascii_font_name): Delete it.
11448
edb61b39
KH
11449 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11450
11451 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11452 (encode_coding_sjis): Fix the code range check.
11453
0f3f018c
CY
114542009-07-07 Chong Yidong <cyd@stupidchicken.com>
11455
11456 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11457 (Fexpand_file_name): Copy string data properly (Bug#3772).
11458
fcaf6f3a
JD
114592009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11460
11461 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11462 first MapNotify.
11463
6809ca75
KH
114642009-07-07 Kenichi Handa <handa@m17n.org>
11465
11466 * character.h (unibyte_has_multibyte_table): Delete extern.
11467 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11468
11469 * charset.c (Fset_charset_priority): Update charset_unibyte.
11470 (syms_of_charset): Initialize charset_unibyte.
11471
11472 * character.c (unibyte_has_multibyte_table): Delete it.
11473 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11474 charset_unibyte.
11475 (multibyte_char_to_unibyte_safe): Likewise.
11476 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11477
1ac9108a 11478 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
11479 (x_produce_glyphs): Likewise.
11480
11481 * .gdbinit (xcharset): Fix the treating $arg0.
11482
ad9e2d54
EZ
114832009-07-04 Eli Zaretskii <eliz@gnu.org>
11484
11485 Emulation of `getloadavg' on MS-Windows.
50426a04 11486 * w32.c: Include float.h.
ad9e2d54
EZ
11487 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11488 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11489 (get_native_system_info, get_system_times): New functions.
11490 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11491 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11492 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11493 g_b_init_get_system_times, and num_of_processors.
11494
0a3472c7
JR
114952009-07-03 Jason Rumney <jasonr@gnu.org>
11496
11497 * w32term.c (w32_initialize): Use standard types.
11498
80904120
EZ
114992009-07-03 Eli Zaretskii <eliz@gnu.org>
11500
11501 * dired.c (Ffile_attributes): Decode user and group names by the
11502 locale's encoding. (Bug#3443)
11503
6978862d
DN
115042009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11505
f8d23104
DN
11506 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11507 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11508
11509 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11510
11511 * term.c (init_tty): Remove spurious #ifdef.
11512
6978862d
DN
11513 * m/mips.h: Mention this file is also used for netbsd.
11514 * m/pmax.h: Remove file.
11515
e044e4fc
JD
115162009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11517
11518 * xterm.h (struct x_display_info): Add invisible_cursor.
11519 (struct x_output): Add current_cursor.
11520
11521 * xterm.c (XTtoggle_invisible_pointer): New function.
11522 (x_define_frame_cursor): Don't define cursor if invisible or the
11523 same as before. Set current_cursor.
11524 (x_create_terminal): Set toggle_invisible_pointer_hook.
11525
11526 * xfns.c (make_invisible_cursor): New function.
11527 (x_set_mouse_color): Call make_invisible_cursor.
11528 Set current_cursor.
11529 (x_window): Set current_cursor.
11530
11531 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11532
11533 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11534 inserting a character.
11535 (read_avail_input): Call frame_make_pointer_visible.
11536
11537 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
11538 (frame_make_pointer_invisible, frame_make_pointer_visible):
11539 New functions.
e044e4fc
JD
11540 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11541
11542 * frame.h: Declare frame_make_pointer_invisible and
11543 frame_make_pointer_visible.
11544 (struct frame): Add pointer_invisible.
11545
574c8efa
JD
115462009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11547
7b507248
JD
11548 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11549 frame isn't visible.
11550 (xg_frame_resized): If width/height is -1, get size of window
11551 from X server.
11552
11553 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11554 for MapNotify.
11555
835bdaa7 11556 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 11557 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 11558 (flush_and_sync): Reintroduce.
574c8efa 11559
3f1c6666 115602009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 11561
31fd7c5c 11562 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
11563
11564 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11565 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11566
11567 * frame.h: Declare Qsticky.
11568
cad9ef74
JD
11569 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11570
11571 * nsfns.m (ns_frame_parm_handlers): Ditto.
11572
11573 * frame.c: Declare Qsticky.
11574 (frame_parms): Add sticky.
11575
11576 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11577
11578 * xterm.h: Declare x_set_sticky.
11579
11580 * xterm.c (x_set_sticky): New function.
11581
69b16610
JD
11582 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11583 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11584 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
11585
11586 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11587
11588 * frame.c: Qmaximized is new.
11589 (x_set_frame_parameters): Do not handle fullscreen specially.
11590 Only set width and height if explicitly set.
11591 (x_set_fullscreen): Handle Qmaximized.
11592 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11593 (syms_of_frame): Initialize Qmaximized.
11594
1ac9108a
SM
11595 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11596 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
11597
11598 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
11599 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11600 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
11601 set gravity to NorthWestGravity when USE_GTK.
11602 (set_wm_state): New function.
31fd7c5c 11603 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
11604 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11605 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 11606 or the case when no window manager is running. That means remove calls
3f1c6666
JD
11607 to x_real_positions and x_fullscreen_adjust.
11608
11609 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11610 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11611 flush_and_sync.
11612 (xg_height_changed): New function.
11613 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
11614 and gtk_window_set_policy. Set frame gravity after parsing the
11615 geometry string.
3f1c6666
JD
11616 (xg_update_frame_menubar, free_frame_menubar)
11617 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11618 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11619 Remove calls to xg_frame_set_char_size.
11620
fd503d99
KH
116212009-07-01 Kenichi Handa <handa@m17n.org>
11622
11623 * keyboard.c (decode_keyboard_code): New function.
11624 (tty_read_avail_input): Decode the input bytes if necessary.
11625
1ac9108a
SM
11626 * coding.c (setup_coding_system):
11627 Initialize coding->carryover_bytes to 0.
fd503d99
KH
11628 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11629 use Qno_conversion.
11630
24ed93fb
YM
116312009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11632
11633 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11634
99061dfc
CY
116352009-06-30 Chong Yidong <cyd@stupidchicken.com>
11636
1ac9108a 11637 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 11638
ff90fbde
JR
116392009-06-30 Jason Rumney <jasonr@gnu.org>
11640
11641 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11642 is already loaded.
11643 Set user model ID if supported (bug#1849).
11644
5f445726
JM
116452009-06-29 Jim Meyering <meyering@redhat.com>
11646
11647 Remove useless if-before-xfree test.
11648 * nsfont.m (nsfont_close): Remove useless test.
11649 * term.c (delete_tty): Likewise.
11650 * w32.c (system_process_attributes): Likewise.
11651 * w32font.c (w32font_close): Likewise.
11652 * xfaces.c (x_free_gc): Likewise.
11653 * xselect.c (buffer): Likewise.
11654
b9607587
AS
116552009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11656
11657 * process.c (send_process): Keep decoded string in a local
11658 variable and protect it from GC. (Bug#3521)
11659
89ba96f4
EZ
116602009-06-28 Eli Zaretskii <eliz@gnu.org>
11661
11662 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11663 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11664
098a1589
CY
116652009-06-28 Chong Yidong <cyd@stupidchicken.com>
11666
485422be
CY
11667 * xdisp.c (start_display, handle_face_prop)
11668 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
11669 (redisplay_window, try_window_id, produce_image_glyph):
11670 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 11671
098a1589
CY
11672 * xterm.c (x_update_window_begin, x_new_focus_frame)
11673 (x_scroll_bar_handle_click, handle_one_xevent)
11674 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11675 (x_make_frame_visible, x_make_frame_invisible)
11676 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11677 code chunks that are now obsolete.
11678
78c38319
MA
116792009-06-28 Michael Albinus <michael.albinus@gmx.de>
11680
11681 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11682 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11683 for hours, when optimzation is enabled.
11684 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11685 (xd_read_message): Make them static.
11686
4189ed40
CY
116872009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11688
11689 * term.c (turn_on_face): Allow simultaneously bold and dim
11690 terminal faces (Bug#3530).
11691
cd9b5e16
CY
116922009-06-27 Chong Yidong <cyd@stupidchicken.com>
11693
4e23bedb
CY
11694 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11695
cd9b5e16
CY
11696 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11697 truncation glyphs (Bug#3686).
11698
07cc3c35
GM
116992009-06-27 Glenn Morris <rgm@gnu.org>
11700
11701 * m/pmax.h: Restore file, with only netbsd portions.
11702
31fd7c5c 117032009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 11704
cd9b5e16 11705 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 11706
42d4a64f
KH
117072009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11708
11709 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11710 the arg FORCE_SYMBOL.
11711
930fe55b 117122009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
11713
11714 * fontset.c (fontset_find_font): When a usable rfont_def is found
11715 in a fallback font-group, make it the first element of the group.
11716
57ebc3fd
CY
117172009-06-24 Chong Yidong <cyd@stupidchicken.com>
11718
11719 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11720
f084f942
KH
117212009-06-24 Kenichi Handa <handa@m17n.org>
11722
11723 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11724 set for C.
11725 (fontset_font): Record the availability of a font for C both in
11726 the realized fontsets of the current one and the default one.
11727
2f686c87
DN
117282009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11729
11730 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11731 conditional, it is always defined on AIX.
11732
666e158e
MB
117332009-06-23 Miles Bader <miles@gnu.org>
11734
11735 * window.c (Vrecenter_redisplay): New variable.
11736 (syms_of_window): Initialize it.
11737 (Qtty): New extern declaration.
11738 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11739
c6da7cd2
JM
117402009-06-23 Jim Meyering <meyering@redhat.com>
11741
1ac9108a
SM
11742 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11743 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 11744 pointer dereferences are guaranteed to be valid.
c6da7cd2 11745
678dca3d
KH
117462009-06-23 Kenichi Handa <handa@m17n.org>
11747
74d75424
KH
11748 * emacs.c (main): Call init_font ().
11749
11750 * font.h (Vfont_log): Extern it.
11751 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11752
11753 * font.c (font_sort_entities, font_list_entities)
11754 (font_matching_entity, font_open_entity)
11755 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11756 (Vfont_log): Delete static.
11757 (font_log_env_checked): Delete this variable.
11758 (font_add_log): Don't check font_log_env_checked.
11759 (font_deferred_log): Check Vfont_log.
11760 (init_font): New function.
11761
678dca3d
KH
11762 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11763
11764 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11765
11766 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11767
11768 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11769
11770 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11771 (face_for_char): Don't call font_deferred_log here.
11772 (font_for_char): Likewise.
11773
8a668709
CY
117742009-06-22 Chong Yidong <cyd@stupidchicken.com>
11775
9a01ee33
CY
11776 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11777 rather than its background_width for drawing the overline and
11778 underline (Bug#489).
11779
11780 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11781 rather than its background_width for drawing the overline and
11782 underline (Bug#489).
ec7c9926
CY
11783 (xg_default_icon_file): New variable.
11784 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11785 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 11786
8a668709
CY
11787 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11788 (load_overlay_strings): Remove externs.
11789 (fast_find_position): Function deleted.
11790 (mouse_face_from_buffer_pos): New function, based on
11791 fast_find_position. Correctly handle before-strings,
11792 display-strings, and after-strings (Bug#1220).
11793 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11794
4d4c02d8
CY
117952009-06-21 Chong Yidong <cyd@stupidchicken.com>
11796
1ac9108a 11797 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
11798 (move_it_in_display_line_to, move_it_in_display_line_to)
11799 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11800
70243478
CY
118012009-06-21 Chong Yidong <cyd@stupidchicken.com>
11802
11803 * Branch for 23.1.
11804
13087e59
JR
118052009-06-21 Jason Rumney <jasonr@gnu.org>
11806
11807 * w32term.c (keyboard_codepage): New static variable.
11808 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11809 (w32_read_socket) [WM_CHAR]: Use it to decode character
11810 input (bug#3237).
11811 (w32_initialize): Initialize it.
11812 (codepage_for_locale): New function.
11813
4735b74e
KR
118142009-06-20 Ken Raeburn <raeburn@raeburn.org>
11815
11816 * process.c (status_message): Pass Faset index argument as a lisp
11817 object, so as to work with USE_LISP_UNION_TYPE.
11818
0e727afa
YM
118192009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11820
11821 * coding.c (Ffind_coding_systems_region_internal):
11822 Cache checked characters.
11823
cf299835
KH
118242009-06-18 Kenichi Handa <handa@m17n.org>
11825
1ac9108a 11826 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 11827
90f20d94
AS
118282009-06-18 Andreas Schwab <aschwab@redhat.com>
11829
11830 * xdisp.c (redisplay_internal): Check that the frame is still
11831 live after redisplay of its windows.
11832 (redisplay_windows): Check that the window is still live.
11833
7f1faf1c
KH
118342009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11835
11836 * coding.c (detect_coding_utf_16): Fix previous change.
11837
cc13543e
KH
118382009-06-16 Kenichi Handa <handa@m17n.org>
11839
11840 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11841 UTF-16 by checking the dispersion of Eth and Oth bytes.
11842
977b85f4
AS
118432009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11844
11845 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11846
66bd43d1
KH
118472009-06-15 Kenichi Handa <handa@m17n.org>
11848
11849 * process.c (status_message): Fix previous change. Be sure to
11850 decode a localized string.
11851
cb5ca9c5
YM
118522009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11853
11854 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11855 add comment explaining why.
11856
ec7709ba 118572009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 11858
ec7709ba 11859 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 11860
4b7f335c
AR
118612009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11862
11863 * nsfont.m (ns_attribute_value): Remove.
11864 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11865 (ns_has_attribute): Shrink the normal range.
11866 (ns_findfonts): Don't worry about requested spec in determining
11867 need for synthItal.
e41820ee 11868 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 11869
73b26103
SZ
118702009-06-14 Seiji Zenitani <zenitani@mac.com>
11871
11872 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11873
5753e4da
KH
118742009-06-11 Kenichi Handa <handa@m17n.org>
11875
11876 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11877 overhang for the static composition case.
11878
3561b671
KH
118792009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11880
5753e4da
KH
11881 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11882 overhang for the automatic composition case.
11883
3561b671
KH
11884 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11885 composition case.
11886
852bbd41
CY
118872009-06-10 Chong Yidong <cyd@stupidchicken.com>
11888
11889 * xdisp.c (get_next_display_element): When handling wrap-prefix
11890 and line-prefix, treat \n as a control character (bug#3502).
11891
9903d1e6
KH
118922009-06-10 Kenichi Handa <handa@m17n.org>
11893
11894 * font.c (font_parse_family_registry): Fix for one-char foundry.
11895 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11896
0bcbaaaa
CY
118972009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11898
11899 * process.c (status_message): Fix handling of multibyte signal
11900 string (Bug#3499).
11901
40aa3f13
JM
119022009-06-09 Jim Meyering <meyering@redhat.com>
11903
1f80c7e2
CY
11904 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11905 color name is missing.
40aa3f13 11906
72d51285
KH
119072009-06-09 Kenichi Handa <handa@m17n.org>
11908
11909 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11910 FROM-CODE and TO-CODE are codepoints of CHARSET.
11911
c1d04d84
AR
119122009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11913
11914 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11915
119162009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11917
11918 Changes to support :script/:lang/:otf in NS font driver.
11919 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11920 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11921 indicate not part of font driver interface, and change callers.
11922 (ns_get_family): Remove pointless null check.
11923 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11924 ns_spec_to_descriptor, ns_descriptor_to_entity.
11925 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11926 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11927 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11928 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11929 (ns_get_req_script, ns_accumulate_script_ranges)
11930 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11931 New functions.
11932 (nsfont_list, nsfont_match): Use ns_findfonts.
11933 (nsfont_open): Use font descriptor instead of traits.
11934 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11935 (dump_glyphstring): Rename to ns_dump_glyphstring.
11936
c7eb9816
AR
11937 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11938
c1d04d84
AR
11939 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11940
11941 * fontset.c (fontset_from_font): Remove NS-specific code.
11942
ec7709ba 119432009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
11944
11945 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11946 nonactive windows.
11947
31fd7c5c 119482009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 11949
1ac9108a 11950 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 11951
68852c13 119522009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
11953
11954 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11955
6756cd1d
CY
119562009-06-07 Chong Yidong <cyd@stupidchicken.com>
11957
11958 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11959 account for the overflowing of newlines into the last glyph on the
11960 display line (Bug#3482).
11961
28bf482a
DR
119622009-06-05 David Reitter <david.reitter@gmail.com>
11963
ec7709ba
JB
11964 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11965 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
11966 Fns_selection_exists_p, Fns_selection_owner_p.
11967
fdb55376
JR
119682009-06-03 Jason Rumney <jasonr@gnu.org>
11969
11970 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11971 available. (Bug#3379)
11972
05129fbe
KH
119732009-05-29 Kenichi Handa <handa@m17n.org>
11974
1ac9108a
SM
11975 * coding.c (get_translation_table):
11976 Check Venable_character_translation.
05129fbe 11977
ec7709ba 119782009-05-26 David Reitter <david.reitter@gmail.com>
15891144 11979
ec7709ba
JB
11980 * nsterm.m (ns_raise_frame): Only raise frame if visible.
11981 (x_make_frame_visible): Move frame to front rather than calling
15891144 11982 ns_raise_frame().
ec7709ba 11983 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 11984 isn't key window.
ec7709ba 11985 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
11986 drawRect may be called by NSView even if the frame is hidden.
11987
ec7709ba
JB
11988 * nsfns.m (Fx_create_frame): Follow other ports in
11989 determining visibility; default to t. Ensure async_visible is set.
15891144 11990
21f73755
EZ
119912009-05-23 Eli Zaretskii <eliz@gnu.org>
11992
11993 * dired.c (Ffile_attributes): Doc fix.
11994
34001e41
CY
119952009-05-22 Chong Yidong <cyd@stupidchicken.com>
11996
11997 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
11998
46306a17
SM
119992009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
12000
12001 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
12002 and xfont_scratch_props.
12003 (syms_of_xfont): Do it here instead.
12004 (xfont_find_ccl_program): Delete, unused.
12005 (xfont_open): Delete unused var `i'.
12006
ef6e0694
KH
120072009-05-21 Kenichi Handa <handa@m17n.org>
12008
12009 * fontset.c (Qlatin): Don't make it static.
12010
46306a17
SM
12011 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
12012 New functions.
ef6e0694
KH
12013 (xfont_scripts_cache, xfont_scratch_props): New variables.
12014 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
12015 (xfont_list_pattern): Argument changed. Callers changed.
12016 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
12017 (xfont_list): Don't reject a font spec with :script property.
12018 (xfont_has_char): Fix setting of encoding.
12019 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
12020 xfont_scratch_props.
12021
120222009-05-19 Kenichi Handa <handa@m17n.org>
12023
46306a17 12024 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
12025 Callers changed.
12026
120272009-05-18 Kenichi Handa <handa@m17n.org>
12028
12029 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
12030
ac71ced7
SM
120312009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12032
12033 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
12034 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
12035
1c6d1051
YM
120362009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12037
12038 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
12039 (x_delete_terminal): Dissociate resource database from display and
12040 then call XrmDestroyDatabase before closing display.
12041
9b9b779c
AR
120422009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12043
12044 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
12045 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12046 whether selected frame is viable before raising it (based on patch
12047 by David Reitter), and improve commentary.
12048 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 12049
cccd42d5
KH
120502009-05-15 Kenichi Handa <handa@m17n.org>
12051
12052 * font.c (Ffont_spec): Check arguments.
12053
337fbd17
CY
120542009-05-14 Chong Yidong <cyd@stupidchicken.com>
12055
12056 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12057 weight when testing attributes (Bug#3282).
12058
47a6002f
JD
120592009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12060
12061 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12062 what we expect to get in the next ConfigureNotify event.
12063
9cb363db
YM
12064 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12065 before Xft one (Bug#1696).
12066
b9126609
CY
120672009-05-07 David Reitter <david.reitter@gmail.com>
12068
12069 * nsfns.m (Fx_display_planes): Compute bitplanes using
12070 NSBitsPerPixelFromDepth (Bug#3207).
12071
27a69fd9
CY
120722009-05-10 Chong Yidong <cyd@stupidchicken.com>
12073
12074 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12075
00f37552
TTN
120762009-05-10 Ulrich Mueller <ulm@gentoo.org>
12077
12078 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12079
2d82a920
DR
120802009-05-07 David Reitter <david.reitter@gmail.com>
12081
ec7709ba
JB
12082 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12083 Respect mouse face background.
2d82a920 12084
46b0d52d
DR
120852009-05-07 David Reitter <david.reitter@gmail.com>
12086
ec7709ba
JB
12087 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12088 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
12089 in ns_update_begin and ns_update_end.
12090
ce1b23bb
SM
120912009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12092
5996e1b7
SM
12093 * nsfns.m (ns_get_screen): Rewrite.
12094 Don't presume selected-frame is of type `ns'.
12095
ba98e3a0
SM
12096 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12097 all drivers.
12098
ce1b23bb
SM
12099 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12100
bcda200f
YM
121012009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12102
12103 * keyboard.h (add_user_signal): Fix typo in extern.
12104
12105 * lisp.h (add_user_signal): Remove extern.
12106
12107 * unexelf.c (unexec): Consider a section to precede the .bss section
12108 if its addresses overlap that of .bss.
12109 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12110 instead of dumping process.
12111
864660a2
SM
121122009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12113
12114 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12115
50da4e56
SM
121162009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12117
12118 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12119
51520a1a
DN
121202009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12121
12122 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12123 any statements.
12124
409ea3a1
AS
121252009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12126
59c4c60f
AS
12127 * process.c (read_process_output): Make sure the current buffer is
12128 always restored.
12129
409ea3a1
AS
12130 * coding.c (record_conversion_result): Don't modify
12131 Vlast_code_conversion_error for successful result.
12132 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12133
56f00ed2
KH
121342009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12135
12136 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 12137 (load_charset_map): Remove unnecessary code.
56f00ed2 12138
4491c9d2
DR
121392009-04-30 David Reitter <david.reitter@gmail.com>
12140
35f5b128 12141 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
12142 through f24.
12143
6970f632
CY
121442009-04-30 Chong Yidong <cyd@stupidchicken.com>
12145
12146 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12147
12148 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12149 face_at_buffer_position.
12150 (face_before_or_after_it_pos, get_next_display_element)
12151 (note_mouse_highlight): Update face_at_buffer_position call.
12152
12153 * term.c (term_mouse_highlight):
12154 * msdos.c (IT_note_mouse_highlight):
12155 * fontset.c (Finternal_char_font):
35f5b128 12156 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
12157
12158 * dispextern.h (face_at_buffer_position): Update prototype.
12159
0c616f63
KH
121602009-04-30 Kenichi Handa <handa@m17n.org>
12161
35f5b128 12162 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 12163
ad3aaf33
AS
121642009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12165
12166 * callproc.c (Fcall_process): Fix GC protection. Make sure
12167 current buffer is always restored.
12168
c3c963a0
YM
121692009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12170
12171 * atimer.c (init_atimer): Also clear stopped_atimers.
12172
12173 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12174
7e3386cb
YM
12175 * process.c (create_process): Clean up merger residues of
12176 2008-07-17 change.
12177
91f68422
CY
121782009-04-29 Ulrich Mueller <ulm@gentoo.org>
12179
12180 * lread.c (Vread_circle): New variable.
12181 (read1): Disable recursive read if Vread_circle is nil.
12182
24b34550
KH
121832009-04-29 Kenichi Handa <handa@m17n.org>
12184
12185 * fontset.h (set_default_ascii_font): Delete extern.
12186
12187 * fontset.c (set_default_ascii_font): Delete this unused function.
12188
12189 * frame.c (x_set_font): When ARG is a font-object, check if the
12190 font-object matches with the ASCII font-spec of the frame's
9c358bda 12191 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 12192
77bf07e1
AS
121932009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12194
12195 * fns.c (Flocale_info): Protect vector from GC during decoding.
12196
12197 * process.c (Fstart_process): Protect argv strings from GC during
12198 encoding.
12199
2c55aacf
AS
122002009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12201
12202 * sysdep.c: Include <ctype.h>.
12203
b892d3c9
DR
122042009-04-27 David Reitter <david.reitter@gmail.com>
12205
35f5b128 12206 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
12207 Remove commented-out code.
12208
9d0644c4
JB
122092009-04-26 Johan Bockgård <bojohan@gnu.org>
12210
12211 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12212
b7053016
JR
122132009-04-25 Jason Rumney <jasonr@gnu.org>
12214
12215 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12216
4e8231f3
YM
122172009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12218
12219 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12220 Swap bytes in short integer if fringe bitmap width > 8.
12221
493dcf2c
KH
122222009-04-23 Kenichi Handa <handa@m17n.org>
12223
12224 * xfaces.c (Fx_list_fonts): If a font size is specified in
12225 PATTERN, set it in returned scalable fonts.
12226
401e9e57
CY
122272009-04-22 Chong Yidong <cyd@stupidchicken.com>
12228
708e05dc
CY
12229 * keyboard.c (Fset_input_meta_mode): Doc fix.
12230
12231 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12232
1ac9108a 12233 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
12234
12235 * coding.c (Fterminal_coding_system): Doc fix.
12236
12237 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12238 (Fx_display_pixel_height, Fx_display_planes)
12239 (Fx_display_color_cells, Fx_server_max_request_size)
12240 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12241 (Fx_display_mm_height, Fx_display_mm_width)
12242 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
12243 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12244 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
12245 (check_x_display_info): Handle terminal objects instead of
12246 terminal ids.
12247
401e9e57
CY
12248 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12249 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
12250 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12251 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 12252
df80c7f0
KH
122532009-04-21 Kenichi Handa <handa@m17n.org>
12254
5a8f12af 12255 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 12256 (font_score): Check AVGWIDTH too.
908567ef 12257
df80c7f0
KH
12258 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12259 worst case.
1ac9108a
SM
12260 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12261 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 12262
705af33f
JR
122632009-04-19 Jason Rumney <jasonr@gnu.org>
12264
12265 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 12266 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
12267
12268 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12269 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12270 get_phys_cursor_geometry.
12271
b71ac3dd 12272 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
12273 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12274 using get_phys_cursor_geometry.
12275
12276 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12277 correctly calculated.
12278
dc2933eb
JD
122792009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12280
1ac9108a
SM
12281 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12282 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
12283 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12284 is deprecated.
12285
973e7849
AS
122862009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12287
12288 * font.c (font_put_frame_data): Use xfree instead of free.
12289
314d66f4
JB
122902009-04-17 Juanma Barranquero <lekktu@gmail.com>
12291
12292 * w32font.c (Qja, Qko): Remove declarations.
12293 (syms_of_w32font): Don't DEFSYM them.
12294
cf702558
CY
122952009-04-17 Chong Yidong <cyd@stupidchicken.com>
12296
12297 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12298
12299 * font.h (Qja, Qko): Extern them.
12300
12301 * ftfont.c (Qja, Qko): Remove declarations.
12302
12303 * xfont.c (Qja, Qko): Remove declarations.
12304
b50504f5
KH
123052009-04-17 Kenichi Handa <handa@m17n.org>
12306
bde25748
KH
12307 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12308 string from a vector to handle Latin-1 characters correctly.
12309
b50504f5
KH
12310 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12311 entity even if the cache hits.
12312
f4646fff
AS
123132009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12314
12315 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 12316 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 12317
e7deaab0
AS
12318 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12319 * lisp.h: Adjust prototypes.
12320
0a0e7d49
CY
123212009-04-16 Chong Yidong <cyd@stupidchicken.com>
12322
12323 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12324 change (Bug#3003).
12325
3c908a57
KH
123262009-04-16 Kenichi Handa <handa@m17n.org>
12327
1ac9108a 12328 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
12329
12330 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12331 adstyle.
12332
12333 * ftfont.c (Qja, Qko): Don't make them static.
12334 (enum ftfont_cache_for): New enum.
12335 (fc_charset_table): Undo the previous change.
12336 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
12337 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12338 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
12339 non-scarable font, try to get AVERAGE_WIDTH.
12340 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12341 Change ft_face_cache from a list of a hash-table. Don't check
12342 `ja' and `ko' adstyle here.
12343 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12344 FTFONT_CACHE_FOR_CHARET.
12345 (ftfont_get_charset): Undo the previous change.
1ac9108a 12346 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
12347 (ftfont_close): Likewise.
12348 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12349
12350 * font.c (font_sort_entites): Change the meaning of the arg
12351 BEST-ONLY. Don't optimize for VEC of lenght 1.
12352 (font_select_entity): Just return the value of font_sort_entites.
12353
12354 * xfaces.c (merge_face_vectors): Reflect font properties in
12355 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12356 font_clear_prop if a face attribute doesn't change.
12357
3c908a57
KH
12358 * charset.h (charset_ksc5601): Extern it.
12359
12360 * charset.c (charset_ksc5601): New variable.
12361 (Fdefine_charset_internal): Set charset_ksc5601.
12362 (init_charset_once): Initialize charset_ksc5601 to -1.
12363
d65859c3
DN
123642009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12365
12366 * fileio.c (history_delete_duplicates): Remove unused declaration.
12367
12368 * callint.c (history_delete_duplicates): New declaration.
12369 (Fcall_interactively): Remove command history duplicates when
12370 history_delete_duplicates is true.
12371
3ba010e5
EZ
123722009-04-14 Eli Zaretskii <eliz@gnu.org>
12373
12374 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12375
06f19b91
KH
123762009-04-14 Kenichi Handa <handa@m17n.org>
12377
12378 * font.c (Ffont_info): Fix docstring. Fix the second element of
12379 the returned value (bug#2949).
12380
2cce8bfc
CY
123812009-04-14 Chong Yidong <cyd@stupidchicken.com>
12382
12383 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12384
d156542d
KH
123852009-04-14 Kenichi Handa <handa@m17n.org>
12386
12387 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12388 encoding charset is ascii_compatible.
12389
12390 * charset.c (Fdefine_charset_internal): Make charset
12391 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12392 code_offset is 0, and covers all ASCII characters.
12393
86fa089e
SM
123942009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12395
12396 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12397 (ns_string_to_pasteboard_internal):
12398 * nsmenu.m (process_dialog):
12399 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12400 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12401 * lisp.h (Fx_load_color_file): Declare.
12402
a8a3728b
KH
124032009-04-13 Kenichi Handa <handa@m17n.org>
12404
1ac9108a 12405 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
12406 (font_select_entity): Suppress the code to optimize for the same
12407 kind of fonts.
12408 (font_load_for_lface): Get a font that supports at least ASCII
12409 characters.
12410
12411 * ftfont.c (Qja, Qko): New variables.
12412 (fc_charset_table): Delete uniquifier data for iso8859-1.
12413 (ftfont_get_latin1_charset): New function.
12414 (get_adstyle_property): New function.
12415 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12416 bitmap fonts.
12417 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12418 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12419 `ko' or `ja'.
12420 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 12421 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
12422 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12423 property.
12424 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12425 (syms_of_ftfont): DEFSYM Qja and Qko.
12426
483670b5
KH
124272009-04-09 Kenichi Handa <handa@m17n.org>
12428
12b55765
KH
12429 * charset.c (map_charset_chars): For a charset of `superset'
12430 method, fix calculation of code range.
12431
483670b5
KH
12432 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12433 from the list of extra properties.
12434 (font_clear_prop): Be sure to delete `:name' font property.
12435
57d3b93b
KH
124362009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12437
b4b2c2ca
YM
12438 * dispnew.c (redraw_overlapping_rows): Fix detection of
12439 overlapping for topmost and bottommost rows.
12440
1ac9108a 12441 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 12442
472c3609
JR
124432009-04-06 Jason Rumney <jasonr@gnu.org>
12444
12445 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12446
ab193662
KH
124472009-04-06 Kenichi Handa <handa@m17n.org>
12448
12449 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12450
12451 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12452
0c26f026
KH
124532009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12454
12455 * ftfont.c (ftfont_open): Fix checking of the return value of
12456 FT_Load_Char. Fix setting font->underline_thickness.
12457
e173bbce
CY
124582009-04-04 Chong Yidong <cyd@stupidchicken.com>
12459
12460 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12461 (Fterminal_parameters, Fterminal_parameter)
12462 (Fset_terminal_parameter): In doc string, refer to terminal
12463 objects rather than terminal ids.
12464
693a2698
EZ
124652009-04-04 Eli Zaretskii <eliz@gnu.org>
12466
12467 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12468 ret_lim_data. (Bug#2867)
12469
d5221487
CY
124702009-04-03 Chong Yidong <cyd@stupidchicken.com>
12471
12472 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12473 so they don't get wider than the window, matching 2006-01-23
12474 change to the partner function in xdisp.c (Bug#2800).
12475
223509a3
KH
124762009-04-03 Kenichi Handa <handa@m17n.org>
12477
12478 * print.c (print_object): Make each lowest sub_char_table start a
12479 new line (Bug#2866).
12480
74fcd0b1
KH
124812009-04-02 Kenichi Handa <handa@m17n.org>
12482
12483 * fontset.c (fontset_font): Record no-font when a fontset
12484 explicitly tells not to try another font-specs.
12485
c542407d
SM
124862009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12487
12488 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12489
e3869731
KH
124902009-03-30 Kenichi Handa <handa@m17n.org>
12491
d8d2f142
KH
12492 * fontset.c (fontset_from_font): Specify only registry in a
12493 font-spec for all characters supported by that registry.
12494
e3869731
KH
12495 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12496 even if HAVE_M17N_FLT is not defined.
12497
5da5f805
CY
124982009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12499
12500 * ftfont.c: Conditionalize prototyping and use of
12501 ftfont_variation_glyphs.
12502
ab226c50
SM
125032009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12504
9628fed7
SM
12505 * frame.c (delete_frame): Work around compiler bug.
12506
12507 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12508 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12509 Some more EMACS_INT.
12510 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12511
12512 * xdisp.c (dump_glyph): Fix typo.
12513
ae19ba7c
SM
12514 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12515 (adjust_markers_gap_motion, adjust_markers_for_delete)
12516 (adjust_markers_for_insert, adjust_point)
12517 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12518 (make_gap, copy_text, count_size_as_multibyte, insert)
12519 (insert_and_inherit, insert_before_markers)
12520 (insert_before_markers_and_inherit, insert_1)
12521 (count_combining_before, count_combining_after, insert_1_both)
12522 (insert_from_string, insert_from_string_before_markers)
12523 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12524 (insert_from_buffer_1, adjust_after_replace)
12525 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12526 (replace_range_2, del_range, del_range_1, del_range_byte)
12527 (del_range_both, del_range_2, modify_region)
12528 (prepare_to_modify_buffer, signal_before_change)
12529 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12530 for buffer positions and sizes.
12531 * lisp.h: Adjust prototypes accordingly.
12532
12533 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12534 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12535 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12536
ab226c50
SM
12537 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12538
46dfb8fb
JD
125392009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12540
12541 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12542 lines and columns so we keep the same pixel height and width.
12543
12544 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12545 the property _NET_WM_STATE has changed.
46dfb8fb
JD
12546 (x_handle_net_wm_state): New function to update frame parameter
12547 fullscreen.
12548 (x_term_init): Initialize atoms for _NET_WM_STATE.
12549
12550 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12551
d347e494
SM
125522009-03-27 Kevin Ryde <user42@zip.com.au>
12553
12554 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12555 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12556 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12557 (Fgpm_mouse_stop): Pass that new parameter.
12558 * termhooks.h (close_gpm): Adjust prototype.
12559
84db11d6
SM
125602009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12561
c95a5008
SM
12562 * lisp.h (Fx_focus_frame): Declare.
12563
84db11d6
SM
12564 * callint.c (Fcall_interactively): For '^' just delegate the work to
12565 handle-shift-selection.
12566 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12567
0a1958d6
CY
125682009-03-24 Chong Yidong <cyd@stupidchicken.com>
12569
0bfdff23
CY
12570 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12571
0a1958d6
CY
12572 * data.c (Qinteractive_form): New variable.
12573 (Finteractive_form): Use it.
12574
12575 * eval.c (Fcommandp): Use Qinteractive_form.
12576
58aec0d6
JR
125772009-03-24 Jason Rumney <jasonr@gnu.org>
12578
12579 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12580 Calculate total size precisely. Decode environment variables
12581 before substituting. (Bug#38)
12582
553dd618
KH
125832009-03-24 Kenichi Handa <handa@m17n.org>
12584
12585 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 12586 encoding (Bug#2722).
553dd618 12587
c39ea606
JD
125882009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12589
12590 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12591 that gdpy is set.
12592
bc9b2b5e
AM
125932009-03-22 Alan Mackenzie <acm@muc.de>
12594
12595 * callint.c (Finteractive): Clarify the doc string - even
12596 promptless elements need \n separators.
12597
9f995a76
JR
125982009-03-22 Jason Rumney <jasonr@gnu.org>
12599
12600 * w32term.c (syms_of_w32term): Doc fix for
12601 x-use-underline-position-properties.
12602
22749e9a
EZ
126032009-03-21 Eli Zaretskii <eliz@gnu.org>
12604
12605 * w32.c (getpwuid): Change argument type to unsigned.
12606 (struct w32_id): Change type of `rid' member to unsigned.
12607 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12608 argument ID to unsigned. All callers changed.
12609 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12610
e00553bf
EZ
126112009-03-20 Eli Zaretskii <eliz@gnu.org>
12612
12613 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12614 negative, produce a float value.
12615
12616 * dired.c (make_uid, make_gid): New functions.
12617 (Ffile_attributes): Use them to avoid negative UID and GID.
12618
f761d6b6
JB
126192009-03-20 Juanma Barranquero <lekktu@gmail.com>
12620
12621 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12622 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12623 Fix typos in docstrings.
12624
d507f8d7
KH
126252009-03-19 Kenichi Handa <handa@m17n.org>
12626
12627 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
12628 changed, use font_load_for_lface to get a new font object.
12629 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
12630
12631 * frame.c (x_set_font): Handle the case that ARG is a cons.
12632
c68845e0
GM
126332009-03-19 Glenn Morris <rgm@gnu.org>
12634
12635 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12636
bfa49dd1
CY
126372009-03-19 Chong Yidong <cyd@stupidchicken.com>
12638
12639 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12640
8458d4c1
KH
126412009-03-19 Kenichi Handa <handa@m17n.org>
12642
12643 * charset.c (load_charset_map_from_file): When a mapfile can't be
12644 loaded, signal an error.
12645
78e7d1fe
EZ
126462009-03-18 Eli Zaretskii <eliz@gnu.org>
12647
12648 * dired.c (Ffile_attributes): Make sure UID and GID are always
12649 positive, even if the value is too large for a positive EMACS_INT.
12650 Doc fix.
12651
12652 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12653
5da9fdfa
YM
126542009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12655
12656 * xmenu.c (xdialog_show): Move Fredisplay call ...
12657 (Fx_popup_dialog): ... here.
12658
7519c40d
SM
126592009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12660
12661 * dired.c (file_name_completion): Disable the first optimization just
12662 installed, since it is not implemented correctly.
12663
2cd298e2
SM
126642009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12665
12666 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 12667 only if the entry can affect bestmatch.
2cd298e2
SM
12668 Stop the search early, as Ftry_completion already does.
12669
48d37adf
CY
126702009-03-17 Chong Yidong <cyd@stupidchicken.com>
12671
e10c9c93 12672 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 12673
9286b16a
CY
126742009-03-15 Chong Yidong <cyd@stupidchicken.com>
12675
12676 * keyboard.c (parse_menu_item): Don't display remappings as menu
12677 equivalent bindings (Bug#788).
12678
f7b146dc
JR
126792009-03-15 Jason Rumney <jasonr@gnu.org>
12680
12681 * w32term.h (WM_EMACS_PAINT): New message.
12682 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12683 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12684 before passing to lisp thread. (Bug#950)
12685
f761d6b6 126862009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 12687
d93f9575
CY
12688 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12689 variable as it was never reset.
12690 (ns_term_init): Remove initialization of Lisp-settable defaults
12691 and ns_expand_space.
12692 (-setPanelFromDefaultValues): Remove ns_expand_space.
12693 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12694 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
12695 i.e. no additional spacing, similar to Carbon port.
12696
d93f9575
CY
12697 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12698 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 12699
305018ec
JD
127002009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12701
12702 * sound.c (alsa_configure): Remove call to deprecated
12703 snd_pcm_sw_params_set_xfer_align.
12704
f761d6b6 127052009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
12706
12707 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12708 after clicking in a detached tool bar.
12709 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12710
46e722a9
SM
127112009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12712
348db3dd
SM
12713 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12714 int/Lisp_Object mixup).
46e722a9 12715
a3d16f39
KH
127162009-03-13 Kenichi Handa <handa@m17n.org>
12717
12718 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 12719 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
12720 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12721 (set_fontset_font): Change ARG to a vector. Handle range_list in
12722 ARG correctly.
12723 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 12724 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
12725 the above change.
12726 (fontset_from_font): Fix previous change.
fe24f56a 12727 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
12728 entry. If FONTSET is the default fontset, don't set the extra
12729 slot of the returning char-table.
12730
b066e6b6
JB
127312009-03-12 Juanma Barranquero <lekktu@gmail.com>
12732
12733 * nsfns.m (Fx_close_connection): Doc fix.
12734 (Fns_do_applescript): Reflow docstring.
12735 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12736 (Fx_display_pixel_width, Fx_display_pixel_height)
12737 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12738 Fix typos in docstrings.
12739 (Fns_set_alpha): Fix typos in error messages.
12740
d472514e 127412009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 12742
d472514e 12743 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
12744 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12745 were used for such events.
12746
d472514e
JB
12747 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12748 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 12749
d472514e 12750 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
12751 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12752
fb930676
KH
127532009-03-11 Kenichi Handa <handa@m17n.org>
12754
ff85581a
KH
12755 * font.h (font_open_by_spec): Extern it.
12756
c50b7e98
KH
12757 * font.c (font_open_by_spec): New function.
12758 (font_open_by_name): Use font_open_by_spec.
12759
fb930676
KH
12760 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12761 fontset of the frame.
12762
12763 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12764 modify the default font of frames that use this fontset.
12765 (num_auto_fontsets): New variable.
12766 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12767 name. Be sure to set FONTSET_ASCII to the correct font name.
12768 (update_auto_fontset_alist): New function.
12769
df4e8455
JB
127702009-03-11 Juanma Barranquero <lekktu@gmail.com>
12771
12772 * makefile.w32-in: Update dependencies.
12773
0a375797
AR
127742009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12775
12776 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12777
61313fa3
SM
127782009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12779
12780 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12781
b55103fb
CY
127822009-03-10 Chong Yidong <cyd@stupidchicken.com>
12783
12784 * lread.c (Feval_buffer): Doc fix.
12785
dde2559c
KH
127862009-03-09 Kenichi Handa <handa@m17n.org>
12787
12788 * charset.c (Qfile_name_handler_alist): Extern it.
12789 (load_charset_map_from_file): Temporarily bind
12790 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12791
df4e8455 127922009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 12793
47f588bb
GM
12794 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12795 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 12796
4ddf94bd
AR
127972009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12798
4c9bdfc2
AR
12799 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12800 (x_set_window_size): Change back to calculated method of setting
12801 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
12802 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12803 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12804
fe41ae9e
AR
12805 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12806
4c9bdfc2
AR
12807 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12808 accelerator in parens under GNUstep.
12809
825d0875
KH
128102009-03-06 Kenichi Handa <handa@m17n.org>
12811
12812 These changes are to detect incorrect composition sequence without
f3b3be74 12813 looking ahead the source. (Bug#2370)
825d0875
KH
12814
12815 * coding.h: Include "composite.h".
12816 (enum compisition_state): New enum.
12817 (struct compisition_status): New struct.
12818 (struct iso_2022_spec): New member cmp_status.
12819 (struct emacs_mule_spec): New struct.
12820 (struct coding_system): New members ctext_extended_segment_len and
12821 embedded_utf_8. Change the union member
12822 spec.emacs_mule_full_support to spec.emacs_mule.
12823
12824 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12825 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 12826 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
12827 (ADD_COMPOSITION_DATA): New arg nbytes.
12828 (emacs_mule_char): New arg cmp_status.
12829 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12830 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12831 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12832 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12833 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12834 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12835 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12836 (EMACS_MULE_COMPOSITION_END): New macro.
12837 (emacs_mule_finish_composition): New function.
12838 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12839 (decode_coding_emacs_mule): Avoid long looking ahead while
12840 handling composition.
12841 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12842 (ENCODE_COMPOSITION_RULE): New macro.
12843 (finish_composition): New function.
12844 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12845 (DECODE_COMPOSITION_START): New implementation.
12846 (DECODE_COMPOSITION_END): Likewise.
12847 (STORE_COMPOSITION_RULE): New macro.
12848 (decode_coding_iso_2022): Avoid long looking ahead while handling
12849 composition, CTEXT extended segment, and embedded UTF-8.
12850 (setup_coding_system): For a coding of type iso-2022, reset
12851 CODING_ISO_EXTSEGMENT_LEN (coding) and
12852 CODING_ISO_EMBEDDED_UTF_8 (coding).
12853 (get_translation): Delete arguments last_block, from_nchars,
12854 to_nchars. Callers changed.
12855 (produce_chars): Don't modify charbuf. Adjusted for the change of
12856 get_translation.
98a326f7 12857 (produce_composition): Adjust for the new annotation sequence.
825d0875 12858 (handle_composition_annotation): Likewise.
98a326f7 12859 (consume_chars): Adjust for the change of get_translation.
825d0875 12860
ccbc4452
AR
128612009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12862
4ddf94bd 12863 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 12864
988a7ddb
KH
128652009-03-05 Kenichi Handa <handa@m17n.org>
12866
12867 * font.c (font_select_entity): New function.
12868 (font_find_for_lface): Use font_select_entity to select a font.
12869
12870 * fontset.c (fontset_find_font): If a font found without
a8a3728b 12871 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
12872 font with C restriction.
12873
98a326f7 128742009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 12875
be1bce46 12876 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 12877
10ea2b82
JR
128782009-03-04 Jason Rumney <jasonr@gnu.org>
12879
2c93b248 12880 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 12881 characters that have already been read. (Bug#2569)
2c93b248 12882
10ea2b82
JR
12883 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12884 Log an error message if check_image_size failed.
12885 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 12886 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 12887
71a0c011
EZ
128882009-03-02 Eli Zaretskii <eliz@gnu.org>
12889
12890 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12891 when decoding process output.
12892
2f63bba8
RS
128932009-03-01 Richard M Stallman <rms@gnu.org>
12894
12895 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12896
12897 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12898
0a9564cb
EZ
128992009-02-28 Eli Zaretskii <eliz@gnu.org>
12900
12901 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12902 (decode_coding_emacs_mule, decode_coding_iso_2022)
12903 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12904 (decode_coding_raw_text, decode_coding_charset)
12905 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12906 Honor inhibit-eol-conversion. (Bug #2186)
12907
449148b3
JR
129082009-02-28 Jason Rumney <jasonr@gnu.org>
12909
12910 * coding.c (detect_coding_charset): If not checking latin extra,
12911 fail on characters between 0x80 and 0xA0. (Bug#2354)
12912
a4aee864
EZ
129132009-02-28 Eli Zaretskii <eliz@gnu.org>
12914
12915 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 12916 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 12917
d88bee5a
GM
129182009-02-27 Glenn Morris <rgm@gnu.org>
12919
12920 * callint.c (Finteractive): Doc fix.
12921
a808f22d
KH
129222009-02-27 Kenichi Handa <handa@m17n.org>
12923
12924 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12925
caf8d60c
CY
129262009-02-27 Chong Yidong <cyd@stupidchicken.com>
12927
12928 * font.c (font_style_to_value): Set value for unknown symbols to
12929 100 instead of 255.
b61137ea
CY
12930 (weight_table, slant_table, width_table): Treat "unspecified" as
12931 the default value.
caf8d60c 12932
1a0de25c
JB
129332009-02-26 Juanma Barranquero <lekktu@gmail.com>
12934
12935 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12936
8fc45744
JB
129372009-02-25 Juanma Barranquero <lekktu@gmail.com>
12938
107bd7d1
JB
12939 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12940 error as soon as a recursive load is detected.
8fc45744 12941
f097e223
AR
129422009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12943
12944 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12945 before caching.
12946
8810a12f
KH
129472009-02-24 Kenichi Handa <handa@m17n.org>
12948
12949 * fontset.c (fontset_find_font): Fix the condition for checking
12950 unavailable font.
12951
2c7d1565
GM
129522009-02-24 Glenn Morris <rgm@gnu.org>
12953
12954 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12955 whitespace that confuses documentation.
12956
a20878b6
MB
129572009-02-23 Miles Bader <miles@gnu.org>
12958
12959 * process.c (Flist_system_processes, Fprocess_attributes)
12960 (syms_of_process): Rename `system-process-attributes' to
12961 `process-attributes'.
12962
b3b58c01
AS
129632009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12964
1b3b981b
AS
12965 * coding.h (struct coding_system): Make safe_charsets a pointer to
12966 unsigned char.
12967 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12968 being 255.
12969 (SAFE_CHARSET_P): Likewise.
12970 (setup_iso_safe_charsets): Properly setup safe_charsets.
12971 (Fdefine_coding_system_internal): Likewise.
12972 (setup_coding_system): Likewise. Remove unneeded casts.
12973 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
12974 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12975 Remove unneeded casts.
1b3b981b 12976
b3b58c01
AS
12977 * insdel.c (del_range_2): Don't modify gap contents when called
12978 from decode_coding_object. (Bug#1809)
12979
0b6f228c
CY
129802009-02-21 Chong Yidong <cyd@stupidchicken.com>
12981
12982 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12983 Qfont_object.
12984 (Ftype_of): Recognize font objects.
12985
12986 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12987
bba3e508
SM
12988 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
12989 Definitions moved to data.c.
0b6f228c 12990
52f8870b
AR
129912009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12992
12993 * nsterm.m (x_make_frame_invisible): Unset async_visible,
12994 async_iconified. Based on a patch by Christian Lynbech
12995 <christian.lynbech@tieto.com>.
12996 (EmacsView-windowDidMiniaturize:): Unset async_visible.
12997
7087d5e9
GM
129982009-02-20 Glenn Morris <rgm@gnu.org>
12999
13000 * syntax.c (Fskip_chars_forward): Fix doc typo.
13001
41d2ceef
CY
130022009-02-20 Chong Yidong <cyd@stupidchicken.com>
13003
13004 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
13005
1a3b7ca6
CY
130062009-02-19 Chong Yidong <cyd@stupidchicken.com>
13007
13008 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
13009
73cce38d
KH
130102009-02-19 Kenichi Handa <handa@m17n.org>
13011
13012 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 13013 Don't overflow coding->carryover. (Bug#2370)
73cce38d 13014
a51092ee
DN
130152009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
13016
13017 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
13018
c423ecca
KH
130192009-02-18 Kenichi Handa <handa@m17n.org>
13020
13021 * font.c (font_check_otf_features): Fix handling of `nil' element.
13022 (Ffont_spec): Describe :lang and :otf in the docstring.
13023
4c1958f4
AS
130242009-02-16 Andreas Schwab <schwab@suse.de>
13025
13026 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
13027 string.
13028
5704f39a
KH
130292009-02-16 Kenichi Handa <handa@m17n.org>
13030
13031 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 13032 (Bug#1723)
5704f39a 13033
8f0085aa
CY
130342009-02-14 Chong Yidong <cyd@stupidchicken.com>
13035
a057d86a 13036 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
13037
13038 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
13039 (handle_line_prefix): Suppress wrapping of wrap prefixes.
13040
aff01dd9
EZ
130412009-02-14 Eli Zaretskii <eliz@gnu.org>
13042
13043 * msdos.c (MAX_SCREEN_BUF): New macro.
13044 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13045 Encode the entire run of glyphs sharing the same face, instead of
13046 doing that one glyph at a time (fixes a bug with displaying
13047 double-size characters).
13048
ba301db3
AR
130492009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13050
13051 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13052
13053 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13054 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 13055 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
13056
13057 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 13058 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 13059
51d861de
SM
130602009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13061
ac146f82 13062 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
13063 invisible areas.
13064
7fed8996
JR
130652009-02-12 Jason Rumney <jasonr@gnu.org>
13066
631ea4fb
JR
13067 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13068 (add_font_entity_to_list): Call check_face_name even when family
13069 is unspecified.
13070
cb4a3e42
JR
13071 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13072 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 13073 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 13074
7fed8996 13075 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 13076 raster fonts. (Bug#2219)
7fed8996 13077
895416e3
KH
130782009-02-12 Kenichi Handa <handa@m17n.org>
13079
13080 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13081 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13082 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 13083 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13084 (find_automatic_composition): While looking forward and backward,
13085 check static composition. Fix where to stop looking forward.
13086 (composition_adjust_point): Fix checking of static composition.
13087 (Fcomposition_get_gstring): Pay attention to
1dacf998 13088 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13089
13090 * lisp.h (fast_looking_at): Extern it.
13091
13092 * search.c (fast_looking_at): New function.
13093
51d861de 13094 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
13095 <struct glyph>.u.cmp.to.
13096 (append_composite_glyph): Likewise.
13097
51d861de 13098 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
13099 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13100 composition.
51d861de 13101 (append_composite_glyph): Adjust for the change of
895416e3
KH
13102 <strcut glyph>.u.cmp.to.
13103
8510724d
JB
131042009-02-11 Juanma Barranquero <lekktu@gmail.com>
13105
13106 * casetab.c (init_casetab_once):
13107 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13108 * font.c (font_update_lface):
13109 * fontset.c (Fnew_fontset):
13110 * ftfont.c (ftfont_drive_otf):
13111 * xfont.c (xfont_open):
13112 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13113
294fa707
SM
131142009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13115
13116 * fileio.c (Fwrite_region): !NILP -> CONSP.
13117
b5bfebec
AS
131182009-02-10 Andreas Schwab <schwab@suse.de>
13119
13120 * process.c (send_process): Properly relocate pointer into data
adab88bd 13121 when using encoded data. (Bug#2272)
b5bfebec 13122
cb84a2be
KH
131232009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13124
13125 * coding.c (detect_coding_charset): Fix previous change.
13126
89e09428
JR
131272009-02-08 Jason Rumney <jasonr@gnu.org>
13128
13129 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 13130 disappeared while hourglass was displayed. (Bug #2193)
89e09428 13131
4470a277
AS
131322009-02-07 Andreas Schwab <schwab@suse.de>
13133
13134 * unexelf.c (unexec): Fix error message.
13135
3175b12a
AR
131362009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13137
13138 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 13139 when modal window is active. (Bug #2152)
3175b12a
AR
13140 (applicationShouldTerminate:): Remove now-unneeded while loop
13141 around NSRunAlertPanel.
13142
13143 * nsmenu.m (popupSession): New file-global variable.
13144 (pop_down_menu): End the popupSession before closing dialog.
13145 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13146 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13147 don't query NSApp for events (just sleep instead).
13148
8434d0b8
EZ
131492009-02-07 Eli Zaretskii <eliz@gnu.org>
13150
51d861de
SM
13151 * coding.c (syms_of_coding) <translation-table-for-input>:
13152 Modify doc string to discourage use for character code unification.
8434d0b8 13153
aa82edfd
CY
131542009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13155
13156 * atimer.c (run_timers): Update pending_atimers.
13157
2d283c7c
CY
131582009-02-06 Chong Yidong <cyd@stupidchicken.com>
13159
eb306cab
CY
13160 * image.c (svg_load_image): Fix last change.
13161
2d283c7c
CY
13162 * xfns.c (Fx_create_frame): Signal an error if no font is
13163 found (Bug#2147).
13164
4d8e170e
JB
131652009-02-05 Juanma Barranquero <lekktu@gmail.com>
13166
13167 * character.c (syms_of_character) <script-representative-chars>:
13168 Fix typo in docstring.
13169
c96169a0
AR
131702009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13171
13172 * nsmenu.m (pop_down_menu): New function.
13173 (ns_popup_dialog): Call it on unwind.
13174 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13175 call timer_check() (Bug#2154).
13176 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13177 handling_signal is set.
13178 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13179
31fd7c5c 13180 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
13181
13182 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13183
13184 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13185
51d861de
SM
13186 * keyboard.c (poll_for_input_1, handle_async_input):
13187 Set handling_signal under HAVE_NS.
c96169a0 13188
aacd8ba1
GM
131892009-02-04 Glenn Morris <rgm@gnu.org>
13190
13191 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13192
4cb75c4b
KH
131932009-02-04 Kenichi Handa <handa@m17n.org>
13194
13195 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13196
13197 * charset.c (Fchar_charset): New optional arg restriction.
13198
13199 * coding.h (coding_system_charset_list): Extern it.
13200
13201 * coding.c (coding_system_charset_list): New function.
13202
13203 * composite.c: Include coding.h and termhooks.h.
13204 (composition_gstring_p): Fix for the terminal case.
13205 (composition_gstring_width): Likewise.
13206 (fill_gstring_body): Likewise.
13207 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13208 the frame.
13209 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13210 is within a composition.
867d4bb3 13211 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
13212
13213 * term.c (encode_terminal_code): Fix handling of composition.
13214 (produce_composite_glyph): For static composition, get pixel_width
13215 from struct composition.
13216
826ba17e
AS
132172009-02-02 Andreas Schwab <schwab@suse.de>
13218
13219 * unexelf.c (unexec): Handle unaligned bss offset.
13220
8ad093db
AR
132212009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13222
13223 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13224 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 13225
8ad093db
AR
13226 * keyboard.c (handle_interrupt): Don't call
13227 quit_throw_to_read_char() under NS.
d0a76a6e 13228
8ad093db
AR
13229 * blockinput.h: Remove NS-specific code.
13230
4d18a7a2
DN
132312009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13232
db878925
DN
13233 * dispnew.c (window_change_signal): Don't try to get the size of a
13234 suspended tty frame.
13235 * term.c (Fresume_tty): Resize if the size has changed while the
13236 tty was suspended.
13237
4d18a7a2
DN
13238 * alloc.c (mark_stack): Properly conditionalize previous change.
13239
8984df7c
JB
132402009-01-30 Juanma Barranquero <lekktu@gmail.com>
13241
13242 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13243 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13244 Remove; this code is not used on Windows.
13245
75f4f1ac
EZ
132462009-01-30 Eli Zaretskii <eliz@gnu.org>
13247
13248 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13249 EOLs that also has stray ^M characters.
13250
07a1e794
JB
132512009-01-30 Juanma Barranquero <lekktu@gmail.com>
13252
13253 * atimer.c (run_timers, alarm_signal_handler):
13254 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13255 * w32inevt.c (w32_console_read_socket):
13256 * w32term.c (w32_read_socket):
13257 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13258
a8b11cc9
CY
132592009-01-30 Chong Yidong <cyd@stupidchicken.com>
13260
13261 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13262 Initialize it as a relative filename pattern.
13263 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13264 (Fcall_process_region): Simplify temp file creation using
13265 temporary-file-directory.
13266
c279587b
EZ
132672009-01-29 Eli Zaretskii <eliz@gnu.org>
13268
13269 * msdos.c: Rename pending_signals to msdos_pending_signals.
13270 (sig_suspender, sigprocmask): Adjust.
13271
a8fe3242
CY
132722009-01-29 Chong Yidong <cyd@stupidchicken.com>
13273
13274 * keyboard.c (pending_signals): New var.
13275 (poll_for_input, input_available_signal, init_keyboard): Set it.
13276 (process_pending_signals): New function.
13277
13278 * lisp.h (QUIT): Check pending_signals instead of
13279 interrupt_input_pending. Use process_pending_signals.
13280
51d861de 13281 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 13282
51d861de 13283 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
13284
13285 * sysdep.c (emacs_write): Use process_pending_signals.
13286
13287 * xterm.c (XTread_socket): Update pending_signals.
13288
13289 * w32term.c (w32_read_socket): Update pending_signals.
13290
13291 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13292
6570a1c4
KH
132932009-01-29 Kenichi Handa <handa@m17n.org>
13294
13295 * xftfont.c (xftfont_has_char): New function.
13296 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13297
d72a4afa
AR
132982009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13299
13300 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13301 under GNUstep.
13302 (ns_query_color): New declaration.
13303
13304 * nsterm.m (ns_confirm_quit): New variable.
13305 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13306 (EmacsApp-applicationShouldTerminate:): Use it.
13307 (EmacsPrefsController): Let user set it.
13308 (ns_query_color): New function.
13309 (ns_defined_color): Use it.
13310 (ns_initialize): Drop.
13311 (ns_term_init): Add two lines from ns_initialize(), and set
13312 input_interrupt_mode to nil.
13313
13314 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 13315 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 13316
9fe78804
KH
133172009-01-28 Kenichi Handa <handa@m17n.org>
13318
13319 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
13320 (fontset_get_font_group): Remember that no font-group is specified
13321 for C.
9fe78804 13322
fa57de36
CY
133232009-01-27 Chong Yidong <cyd@stupidchicken.com>
13324
930600e9
CY
13325 * fns.c (concat): Check for string overflow (bug#1787).
13326
fa57de36
CY
13327 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13328 Quadruple undo limits (bug#1501).
13329
7179ce7b
KH
133302009-01-27 Kenichi Handa <handa@m17n.org>
13331
13332 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13333 directly use GT_Get_Char_index.
13334
13335 * xftfont.c (struct xftfont_info): New member `index'.
13336
13337 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 13338 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 13339
5be8fcc0
CY
133402009-01-26 Kenichi Handa <handa@m17n.org>
13341
13342 * fontset.c (fontset_find_font): Fix handling of non-cons return
13343 value of fontset_get_font_group.
13344 (fontset_font): Revert last change.
13345
19ae3e61
JR
133462009-01-26 Jason Rumney <jasonr@gnu.org>
13347
13348 * w32font.c (w32font_list_internal): Return quickly if registry is
13349 unknown. Simplify final return.
13350 (add_font_entity_to_list): Break complex logic down into more
13351 manageable chunks. Move unknown registry check to
13352 w32font_list_internal.
13353
8612b71a
AR
133542009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13355
13356 Changes to remove Feval calls from GUI under NS.
13357
d8038940
JB
13358 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13359 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
13360 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13361
13362 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13363 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13364 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13365 instead of NON_ASCII_KEYSTROKE_EVENT.
13366 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13367 (EmacsApp-applicationShouldTerminate:): Query user.
13368 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13369 instead of Feval.
13370
13371 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13372
13373 * keyboard.c (kbd_buffer_get_event): Check for it.
13374 (keys_of_keyboard): Define lispy keys for
13375 ns-put/unput-working-text.
13376
13377 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13378 versions.
13379 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13380
6288ae55
CY
133812009-01-25 Chong Yidong <cyd@stupidchicken.com>
13382
13383 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 13384 setting current_buffer directly. (Bug#2044)
6288ae55 13385
289e7f8f
CY
133862009-01-24 Chong Yidong <cyd@stupidchicken.com>
13387
5ce87308 13388 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 13389 any work. (Bug#1952, bug#1990).
5ce87308 13390
64cc3cf6 13391 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 13392
b3243e6f
AR
133932009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13394
13395 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
13396 (ns_no_defaults): New declaration.
13397 (main): Use it.
e0d2e69a 13398
d900b2af 13399 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 13400
d900b2af 13401 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 13402
d900b2af
AR
13403 * nsterm.m (ns_no_defaults): New variable.
13404 (ns_initialize): Don't read defaults when ns_no_defaults.
13405 (EmacsView-readSelectionFromPasteboard:)
13406 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 13407 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
13408 (ns_dumpglyphs_stretch): New function.
13409 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 13410 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 13411
e0d2e69a
AR
13412 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13413
3ac71f5d
CY
134142009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13415
13416 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13417 call for Sparc64.
13418
3fe53a83
AR
134192009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13420
13421 * nsfns.m:
13422 * nsgui.h:
13423 * nsmenu.m:
13424 * nsselect.m:
13425 * nsterm.h:
13426 * nsterm.m: Remove '23' comments that indicated code added during
13427 update from emacs-20 -> emacs-23.
13428
10f87c6f 134292009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
13430
13431 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 13432 ns_alternate_modifier. (Bug#1217)
a3b53a85 13433
c7cef62d
AR
13434 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13435 Display all shortcuts, including those w/o super modifier.
13436
575fb8bd
AR
13437 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13438
918b848b
CY
134392009-01-22 Chong Yidong <cyd@stupidchicken.com>
13440
13441 * fileio.c (Vwrite_region_post_annotation_function)
13442 (Vwrite_region_annotation_buffers): New vars.
13443 (build_annotations_unwind): Just reset
13444 Vwrite_region_annotation_buffers.
13445 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13446 Call write-region-post-annotation-function.
13447 (build_annotations): Add to Vwrite_region_annotation_buffers if
13448 buffer changes.
13449
a39e2539
AR
134502009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13451
13452 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13453 Tiger.
51d861de
SM
13454 * nsfns.m (ns_do_applescript):
13455 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 13456
35ed44db
AR
134572009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13458
13459 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13460
cbe0b5bf
AR
134612009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13462
13463 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 13464
6049d3a0
AR
13465 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13466
13467 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
13468 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13469 handle Ctrl-tab. (Bug#1841)
13470 (ns_get_color): Use unsigned long long for scanned hex string value.
13471 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 13472 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 13473 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 13474 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 13475 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 13476 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 13477 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 13478
d3810c21 13479 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 13480 DPI. (Bug#1316)
d3810c21
AR
13481 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13482 values in onTiger section.
4c7077c3 13483
e301e634
CY
134842009-01-19 Chong Yidong <cyd@stupidchicken.com>
13485
7f82490b
CY
13486 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13487 Check return value of font_spec_from_name.
64cc3cf6 13488 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
13489
13490 * font.c (font_spec_from_name): Return Qnil if font name could not
13491 be parsed.
13492 (font_parse_name): Treat a `?' character as part of an XLFD.
13493
e301e634
CY
13494 * fns.c (Fsubstring): Doc fix.
13495
1c0db158
KH
134962009-01-19 Kenichi Handa <handa@m17n.org>
13497
51d861de 13498 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
13499 (ftfont_list): Likewise.
13500
acf20901
JB
135012009-01-18 Juanma Barranquero <lekktu@gmail.com>
13502
fff4e459
JB
13503 * dbusbind.c (Fdbus_register_signal):
13504 * process.c (conv_sockaddr_to_lisp):
13505 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13506
acf20901
JB
13507 * callproc.c (Fgetenv_internal): Doc fix.
13508
e7abcdfb
CY
135092009-01-16 Chong Yidong <cyd@stupidchicken.com>
13510
13511 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13512 it is not even used.
13513
b60861e6
GM
135142009-01-16 Glenn Morris <rgm@gnu.org>
13515
13516 * font.c (Ffont_variation_glyphs): Silence compiler.
13517
8db52afe
JB
135182009-01-15 Juanma Barranquero <lekktu@gmail.com>
13519
13520 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13521 Reported by David Robinow <drobinow@gmail.com>.
13522
4cddb209
KH
135232009-01-15 Kenichi Handa <handa@m17n.org>
13524
51d861de 13525 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 13526
f247f67b
JR
135272009-01-14 Jason Rumney <jasonr@gnu.org>
13528
13529 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 13530 never a fontset. (Bug#1562)
f247f67b 13531
f56a4450
KH
135322009-01-14 Kenichi Handa <handa@m17n.org>
13533
13534 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 13535 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 13536
4e99855e
CY
135372009-01-13 Chong Yidong <cyd@stupidchicken.com>
13538
13539 * font.c (font_clear_prop): If clearing the family, clear the font
13540 width index too.
13541
fff4e459 13542 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 13543
24f01470
JB
135442009-01-12 Juanma Barranquero <lekktu@gmail.com>
13545
13546 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13547 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13548 functions, use sizeof.
13549
a41240a3
MR
135502009-01-12 Martin Rudalics <rudalics@gmx.at>
13551
13552 * keyboard.c (read_char): Fix case where last_nonmenu_event
13553 returned a bad value with submenus. (Bug#447)
13554
944636b8
CY
135552009-01-12 Chong Yidong <cyd@stupidchicken.com>
13556
13557 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13558 family, clear the font width index too.
13559
0dad7c6f
JR
135602009-01-11 Jason Rumney <jasonr@gnu.org>
13561
13562 * keyboard.c (cmd_error_internal): Exit when errors occur before
13563 frame creation and not in daemon mode. (Bug#1836)
13564
7c2363af
CY
135652009-01-10 Chong Yidong <cyd@stupidchicken.com>
13566
13567 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13568 of a display vector, backtrack.
13569 (try_window_reusing_current_matrix): Check glyph type before
13570 referencing charpos member.
13571
97b1b294
EZ
135722009-01-10 Eli Zaretskii <eliz@gnu.org>
13573
13574 Fix Bug #876:
13575
13576 * coding.c (inhibit_null_byte_detection): New variable.
13577 (detect_coding, detect_coding_system): Don't pay attention to null
13578 bytes if inhibit_null_byte_detection is non-zero.
51d861de 13579 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
13580 <inhibit-iso-escape-detection>: Doc fix.
13581
4624b6e3
JR
135822009-01-09 Jason Rumney <jasonr@gnu.org>
13583
13584 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 13585 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
13586 Only report Unicode Plane 2 fonts as unicode-sip.
13587
323b840c
CY
135882009-01-09 Chong Yidong <cyd@stupidchicken.com>
13589
51d861de
SM
13590 * xfaces.c (Fx_font_family_list): Delete function.
13591 Move compatibility version to faces.el.
323b840c 13592
51d861de 13593 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 13594
eba7400d
MR
135952009-01-09 Martin Rudalics <rudalics@gmx.at>
13596
13597 * frame.c (x_set_frame_parameters): Remember requested value for
13598 fullscreen before it's reset by the parameter handler.
13599
4b09796d
GM
136002009-01-09 Glenn Morris <rgm@gnu.org>
13601
13602 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 13603 (last_command_event): ... and update all users.
4b09796d
GM
13604 (last_input_char): For clarity, rename to...
13605 (last_input_event): ... and update all users.
13606 (last-command-char, last-input-char): Move to subr.el as aliases.
13607 * cmds.c, commands.h: Update for last_command_char rename.
13608
14ccea62
CY
136092009-01-08 Chong Yidong <cyd@stupidchicken.com>
13610
51d861de 13611 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 13612
5f004711
JR
136132009-01-08 Jason Rumney <jasonr@gnu.org>
13614
13615 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13616 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13617 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13618 Don't declare.
fff4e459 13619 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
13620 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13621
b71f6f73
KH
136222009-01-07 Kenichi Handa <handa@m17n.org>
13623
50b06221 13624 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 13625 remember the coding system used for decoding in
50b06221
KH
13626 coding_system (Bug#1039).
13627
b71f6f73 13628 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 13629 breaking the loop. (Bug#870)
b71f6f73
KH
13630 (decode_coding_utf_16, decode_coding_emacs_mule)
13631 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13632 (decode_coding_charset): Likewise.
13633
56f668f7
MR
136342009-01-05 Martin Rudalics <rudalics@gmx.at>
13635
13636 * frame.c (x_set_frame_parameters): Make sure height (width) get
13637 applied when fullwidth (fullheight) is set. (Bug#1522)
13638
5da9424d
JB
136392009-01-04 Juanma Barranquero <lekktu@gmail.com>
13640
13641 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13642 (utc_base): Declare as ULONGLONG, not long double.
13643 (convert_time_raw): Delete.
13644 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13645 (initialize_utc_base): New function.
13646 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13647 (convert_from_time_t): Use initialize_utc_base; compute result with
13648 64-bit arithmetic.
13649 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13650
c4605e09
EZ
136512009-01-03 Eli Zaretskii <eliz@gnu.org>
13652
9acef61c 13653 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
13654 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13655 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13656 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13657 [!subprocesses]: Define.
13658 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13659 (Flist_system_processes, Fsystem_process_attributes)
13660 [!subprocesses]: Call list_system_processes and
13661 system_process_attributes instead of returning Qnil.
13662
9acef61c
JB
13663 * dosfns.c (system_process_attributes, list_system_processes):
13664 New functions.
c4605e09
EZ
13665
13666 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13667
13668 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13669 Don't use the default (no-op) implementation.
13670
8b7d0a16
JR
136712009-01-03 Jason Rumney <jasonr@gnu.org>
13672
a6d46bc1
JR
13673 * keyboard.c (parse_modifiers_uncached): Wheel events are
13674 clicks (bug#687).
13675
8b7d0a16
JR
13676 * w32term.c (x_query_colors, x_query_color): New functions.
13677
13678 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13679 (svg_load_image): Cast returned pointers from dynamically loaded
13680 functions. Eliminate W32 specific code.
13681
bfe11752
DN
136822009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13683
89e2438a
DN
13684 * nsfns.m (x_set_foreground_color, x_set_background_color)
13685 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13686 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13687 x_ prefix instead of ns_. Update references.
13688 (syms_of_nsfns): Add a FIXME comment.
13689
13690 * nsterm.m (x_set_cursor_type): New prototype.
13691 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13692
bfe11752
DN
13693 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13694 for Solaris instead of incorrectly providing Qutime and Qcutime.
13695
031da700
EZ
136962009-01-02 Eli Zaretskii <eliz@gnu.org>
13697
13698 * w32.c (process_times): Compute sum of utime and stime.
13699 (system_process_attributes): Add Qtime to the alist.
13700
13701 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13702 and add them to the alist.
13703
13704 * process.c (top level) <Qtime, Qctime>: New variables.
13705 (syms_of_process): staticpro them.
13706 (Fsystem_process_attributes): Add their documentation to the doc
13707 string.
13708
13709 * process.h: Declare Qtime and Qctime.
13710
df23bf08
JR
137112009-01-02 Jason Rumney <jasonr@gnu.org>
13712
9acef61c 13713 * image.c (Qgobject): New symbol.
df23bf08
JR
13714 (syms_of_image): Initialize it.
13715 (init_svg_functions): Load some functions from gobject library.
13716
5bbdf7aa
DN
137172009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13718
13719 * frame.c (make_terminal_frame): Remove redundant code and useless
13720 block.
13721
63136da6
AS
137222009-01-01 Andreas Schwab <schwab@suse.de>
13723
13724 * process.c (conv_sockaddr_to_lisp): Add workaround for
13725 getsockname bug on BSD.
13726
9ef69046
CY
137272009-01-01 Chong Yidong <cyd@stupidchicken.com>
13728
d6fafbe0
CY
13729 * xfns.c (x_create_tip_frame): Set border width of the X window.
13730
51d861de 13731 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 13732
f9c34147
JR
137332009-01-01 Jason Rumney <jasonr@gnu.org>
13734
9acef61c 13735 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
13736 Don't block input, as per earlier xterm.c changes.
13737
f5497e45
AR
137382008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13739
13740 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13741 (ns_appkit_version_int): New function.
13742 (x-server-version): Use ns_appkit_version_int and follow 21+
13743 convention of returning 3 integers.
13744
c19cab20
KH
137452008-12-30 Kenichi Handa <handa@m17n.org>
13746
13747 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13748 (CHAR_SURROGATE_PAIR_P): New macro.
13749
13750 * font.h (struct font_driver): New member get_variation_glyphs.
13751
9acef61c 13752 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
13753 (Ffont_variation_glyphs): New function.
13754 (syms_of_font): Defsubr it.
13755
13756 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13757 ftfont_variation_glyphs.
13758 (setup_otf_gstring): New function.
13759 (ftfont_drive_otf): Use it.
13760 (ftfont_shape_by_flt): Handle variation selector.
13761 (ftfont_variation_glyphs): New function.
13762
28cd591f
MR
137632008-12-30 Martin Rudalics <rudalics@gmx.at>
13764
13765 * frame.c (Vemacs_iconified): Remove.
13766
7f714baf
JR
137672008-12-30 Jason Rumney <jasonr@gnu.org>
13768
13769 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 13770 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 13771
9d2d22ab
CY
137722008-12-30 Chong Yidong <cyd@stupidchicken.com>
13773
13774 * indent.c (Fvertical_motion): Don't advance iterator if we have
13775 reseated to the desired position.
13776
13777 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13778 checking for pos match.
13779
545312c2
KH
137802008-12-30 Kenichi Handa <handa@m17n.org>
13781
1ede3eb6
KH
13782 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13783 just get the low 8-bit of the code.
13784
545312c2
KH
13785 * font.c (font_intern_prop): Validate str as multibyte.
13786
bd7bbf29
DN
137872008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13788
31e0750e
DN
13789 * dispextern.h (struct face): Move lface and hash from the middle
13790 of bitfields.
13791
bd7bbf29
DN
13792 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13793
b5672e7c
DN
137942008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13795
13796 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13797 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13798 instead of intervals.h.
13799
d704470f
AS
138002008-12-26 Andreas Schwab <schwab@suse.de>
13801
13802 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13803 cons.
13804
54b33868
MR
138052008-12-26 Martin Rudalics <rudalics@gmx.at>
13806
13807 * textprop.c (Qminibuffer_prompt): New variable.
13808 (syms_of_textprop): Initialize it.
13809 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13810 in minibuffer-prompt face. (Bug#1662)
13811
40b615d6
JR
138122008-12-25 Jason Rumney <jasonr@gnu.org>
13813
13814 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13815
baae5c2d
JR
138162008-12-24 Jason Rumney <jasonr@gnu.org>
13817
13818 * ralloc.c (r_alloc_reset_variable): New function.
13819
13820 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 13821 record of what points where. (Bug#716)
baae5c2d 13822
a9051c88
DN
138232008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13824
13825 * minibuf.c (read_minibuf): Follow the non-interactive case when
13826 running as a daemon, before detaching.
13827
8b146312
AS
138282008-12-22 Andreas Schwab <schwab@suse.de>
13829
13830 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13831 * gtkutil.c (free_widget_value): Use xfree instead of free.
13832
56f2de10
MR
138332008-12-22 Martin Rudalics <rudalics@gmx.at>
13834
13835 * frame.c (delete_frame): New function derived from
13836 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13837 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13838 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13839 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13840 * frame.h: Extern delete_frame.
13841 * window.c (window_loop):
13842 * terminal.c (delete_terminal):
13843 * xterm.c (x_connection_closed):
13844 * xfns.c (Fx_hide_tip):
9acef61c 13845 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 13846
1fc200d6
JR
138472008-12-21 Jason Rumney <jasonr@gnu.org>
13848
13849 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13850 when character maps to .notdef character.
13851
5e252df2
SM
138522008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13853
13854 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13855
99b72cc4
JR
138562008-12-20 Jason Rumney <jasonr@gnu.org>
13857
13858 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 13859 a graphical frame on Windows. (Bug#1325)
99b72cc4 13860
acc49a52
JD
138612008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13862
13863 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13864
6ea15123
CY
138652008-12-20 Chong Yidong <cyd@stupidchicken.com>
13866
13867 * minibuf.c (Fread_buffer): Doc fix.
13868
b2dab6c8
JR
138692008-12-20 Jason Rumney <jasonr@gnu.org>
13870
54ea0c87 13871 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 13872 server name in UNC paths. (Bug#719)
54ea0c87 13873
b2dab6c8 13874 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 13875 charbuf. (Bug#1035)
b2dab6c8 13876
6d1921be
DN
138772008-12-19 Daniel Engeler <engeler@gmail.com>
13878
13879 * sysdep.c (serial_configure): Fix typo.
13880
53934c98
DN
138812008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13882
13883 * sysdep.c: Include alloca.h.
f4f634e8
DN
13884 (system_process_attributes): Add implementation for Solaris.
13885
13886 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 13887
06e111a6
DN
138882008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13889
13890 Reorganize implementation of Flist_system_processes and
13891 Fsystem_process_attributes. No functional changes.
13892 * process.c: Don't #include pwd.h, grp.h and limits.h.
13893 (Flist_system_processes): Just call list_system_processes.
13894 (Fsystem_process_attributes): Just call system_process_attributes.
13895 (procfs_list_system_processes, time_from_jiffies)
13896 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13897 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13898
13899 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13900 (list_system_processes): Rename from
13901 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13902 Provide a do nothing implementation.
13903 (system_process_attributes): Rename from
13904 procfs_list_system_processes.
13905 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 13906 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
13907
13908 * w32.c (list_system_processes): Rename from
13909 w32_list_system_processes.
13910 (system_process_attributes): Rename from
13911 w32_system_process_attributes.
13912
13913 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13914
13915 * process.h (w32_list_system_processes)
13916 (w32_system_process_attributes): Remove.
362654a6
JB
13917 (list_system_processes, system_process_attributes):
13918 New prototypes.
06e111a6 13919
6a705b23
KH
139202008-12-19 Kenichi Handa <handa@m17n.org>
13921
13922 * xfont.c (xfont_decode_coding_xlfd): New function.
13923 (xfont_encode_coding_xlfd): New function.
13924 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13925 (xfont_list): Decode and encode XLFD by iso-8859-1.
13926 (xfont_match): Likewise.
13927 (xfont_list_family): Likewise.
13928 (xfont_open): Likewise.
13929
d66c0241 13930 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
13931 names are utf-8.
13932
d66c0241 13933 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
13934 names are utf-8.
13935
5a130941
JD
139362008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13937
13938 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13939 changed.
bfd20325
JD
13940 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13941 clicked on a detached tool bar button.
5a130941 13942
fd95644b
DN
139432008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13944
13945 * emacs.c (main): Print and error and exit when no data is read
13946 from the pipe.
13947
e6eee6ae
JR
139482008-12-17 Jason Rumney <jasonr@gnu.org>
13949
13950 * w32font.c (w32font_has_char): Always return -1.
13951
a35dd56b
KH
139522008-12-16 Kenichi Handa <handa@m17n.org>
13953
13954 * font.c (font_open_entity): Fix previous change.
13955
0e3635c2
DN
139562008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13957
13958 * process.c: Include <limits.h>.
13959
d4835507 139602008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
13961
13962 * font.c (font_update_drivers): Fix mistake in reconstructing the
13963 driver list.
13964
139652008-12-16 Chong Yidong <cyd@stupidchicken.com>
13966
13967 * font.c (font_clear_cache): Fix format of font cache data.
13968
e2cbc401
CY
139692008-12-15 Chong Yidong <cyd@stupidchicken.com>
13970
13971 * xftfont.c (xftfont_open): Free Xft font pattern if
13972 XftFontOpenPattern fails.
13973
13974 * xterm.c (x_free_frame_resources): Remove extraneous call to
13975 free_frame_faces.
13976
b131d535
CY
139772008-12-13 Chong Yidong <cyd@stupidchicken.com>
13978
13979 * xterm.c (x_delete_display): Move xim_close_dpy call to
13980 x_delete_terminal.
13981 (x_delete_terminal): Call xim_close_dpy.
13982
e6df5336
JR
139832008-12-13 Jason Rumney <jasonr@gnu.org>
13984
13985 * w32font.c (intern_font_name): New function.
13986 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13987 (w32font_open_internal, Fx_select_font): Decode font name.
13988 (fill_in_logfont, list_all_matching_fonts): Encode font name.
13989
13990 * w32font.h (intern_font_name): Declare new function.
13991
13992 * w32uniscribe.c (add_opentype_font_name_to_list):
13993 Use intern_font_name.
13994
20d68145
CY
139952008-12-13 Chong Yidong <cyd@stupidchicken.com>
13996
9f2554de
CY
13997 * frame.c (Fdelete_frame): Call free_font_driver_list.
13998
3d9bec9a
CY
13999 * font.c (free_font_driver_list): Implement missing function.
14000
20d68145
CY
14001 * w32term.c (w32_term_init): Don't initialize the image cache
14002 here; it will be done in init_frame_faces.
14003
14004 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
14005 (struct x_display_info): Remove unused member null_pixel.
14006 New member xim_callback_data.
20d68145
CY
14007
14008 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
14009 (xim_initialize): Save pointer to callback function data.
14010 (xim_close_dpy): Free callback function data. Call XCloseIM,
14011 reverting 2008-11-04 change by David Smith.
14012 (x_term_init): Don't initialize the image cache here; it will be
14013 done in init_frame_faces. Remove ancient "null_pixel" cruft.
14014 (x_delete_display): Free x_dnd_atoms member.
14015
96f9306b
KH
140162008-12-13 Kenichi Handa <handa@m17n.org>
14017
ef1b0ba7 14018 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 14019 Argument type changed. Handle a font-spec too.
96f9306b 14020 (font_score): Check Vface_font_rescale_alist.
6dec9044 14021 (font_open_entity): Likewise. (Bug#1547)
96f9306b 14022
ef1b0ba7 14023 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 14024
8d5b4964
CY
140252008-12-13 Chong Yidong <cyd@stupidchicken.com>
14026
14027 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
14028
e6df5336
JR
140292008-12-12 Jason Rumney <jasonr@gnu.org>
14030
bba3e508
SM
14031 * w32fns.c (x_display_info_for_name, Fx_open_connection):
14032 Set Vwindow_system_version to the real w32 major version.
e6df5336 14033
97c6058a
DN
140342008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
14035
14036 * term.c (init_tty): Move setting the terminal name before the
14037 potential user: maybe_fatal.
14038
ec4e88d7
CY
140392008-12-11 Chong Yidong <cyd@stupidchicken.com>
14040
ef1b0ba7 14041 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 14042 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 14043
b4233ec9
JR
140442008-12-11 Jason Rumney <jasonr@gnu.org>
14045
8ec71e23 14046 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 14047 SYMBOL_CHARSET. (Bug#547)
8ec71e23 14048
b4233ec9 14049 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 14050 size for surrogates. (Bug#1096, bug#872)
b4233ec9 14051
011a0143
JB
140522008-12-11 Juanma Barranquero <lekktu@gmail.com>
14053
14054 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14055
3c309f34
JB
140562008-12-11 Juanma Barranquero <lekktu@gmail.com>
14057
14058 * process.c (Fsystem_process_attributes, syms_of_process):
14059 Fix typo in name of Ssystem_process_attributes.
14060 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14061
fedc6ab5
JB
140622008-12-11 Juanma Barranquero <lekktu@gmail.com>
14063
14064 * syntax.c (Fmodify_syntax_entry): Doc fix.
14065
ba3de0e8
JB
140662008-12-10 Juanma Barranquero <lekktu@gmail.com>
14067
14068 * font.c (Ffont_spec): Move usage to end of docstring.
14069
174f1c74
JR
140702008-12-10 Jason Rumney <jasonr@gnu.org>
14071
14072 * w32font.c (Qcham): New symbol.
14073 (font_supported_scripts): Add cham, and comments for other new
14074 scripts in bitfield from OpenType spec.
9d32f818
JR
14075 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14076 contain characters beyond the bmp.
174f1c74 14077
7b649478
KH
140782008-12-10 Kenichi Handa <handa@m17n.org>
14079
14080 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 14081 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
14082 Qunicode_sip.
14083
2133e2d1
JB
140842008-12-10 Juanma Barranquero <lekktu@gmail.com>
14085
14086 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14087 (Fcoding_system_put): Use QCdefault_char.
14088 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14089
9af886ee
CY
140902008-12-09 Chong Yidong <cyd@stupidchicken.com>
14091
74d819eb
CY
14092 * xftfont.c (syms_of_xftfont): Fix typo.
14093
4ccfa1c0 14094 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 14095
7c19d3ae
DN
140962008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14097
14098 * emacs.c (main): Close daemon_pipe on exec.
14099
567826bb
CY
141002008-12-08 Chong Yidong <cyd@stupidchicken.com>
14101
14102 * termchar.h (struct tty): New members termcap_term_buffer and
14103 termcap_strings_buffer.
14104
14105 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 14106 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
14107 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14108 All callers changed.
14109 (init_tty): Store termcap data and string buffers in new struct
14110 tty members termcap_term_buffer and termcap_strings_buffer.
14111 (delete_tty): Free them.
4ccfa1c0 14112 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 14113
aa96c42b
SZ
141142008-12-07 Seiji Zenitani <zenitani@mac.com>
14115
14116 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 14117 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 14118
b7e1d896
CY
141192008-12-06 Chong Yidong <cyd@stupidchicken.com>
14120
14121 * coding.c (make_conversion_work_buffer): Disable buffer
14122 modification hooks in the work buffer.
14123
b5ec91a5
EZ
141242008-12-05 Eli Zaretskii <eliz@gnu.org>
14125
14126 * process.c (procfs_system_process_attributes): If `nread' has a
14127 negative value, assign zero to it.
14128
a5d2a52b
CY
141292008-12-05 Chong Yidong <cyd@stupidchicken.com>
14130
68c5540b 14131 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 14132
7bf1bb21
KH
141332008-12-05 Kenichi Handa <handa@m17n.org>
14134
14135 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14136 second character is a combining character.
14137
2fdc7d00
EZ
141382008-12-05 Eli Zaretskii <eliz@gnu.org>
14139
14140 * process.c (procfs_system_process_attributes): Don't use cmd,
14141 cmdsize, and q without initializing them first.
14142
bf6bfba8
JR
141432008-12-04 Jason Rumney <jasonr@gnu.org>
14144
14145 * w32font.c (w32font_draw): Initialize orig_clip before getting
14146 it, and delete it when finished.
14147
a3b1a468
DN
141482008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14149
14150 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14151 case when running as a daemon before detaching.
14152
8b8be8eb
JB
141532008-12-03 Juanma Barranquero <lekktu@gmail.com>
14154
805f2638 14155 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 14156
b1bde622
KH
141572008-12-03 Kenichi Handa <handa@m17n.org>
14158
e500c47d
KH
14159 * font.c (font_at): Set `multibyte' at first.
14160
ca516334
KH
14161 * coding.c (decode_coding_charset): Check type of an element of
14162 vector VALIDS.
7bf1bb21 14163 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 14164
4ccfa1c0 14165 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
14166 (font_for_char): Likewise.
14167
1e5ecd37
CY
141682008-12-03 Chong Yidong <cyd@stupidchicken.com>
14169
d5b01609 14170 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
14171 (font_update_lface): Handle fonts with corrupted size specs,
14172 i.e. non-int and non-float.
d5b01609 14173
11e3a6e4 14174 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 14175 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 14176 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 14177
ab06788b
CY
14178 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14179
1e5ecd37 14180 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 14181 underline_minimum_offset for underline position.
1e5ecd37 14182
63c125ab
DN
141832008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14184
14185 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14186
14187 * character.c (c_string_width): Specify the type for LEN.
14188
3a8406e1
KH
141892008-12-03 Kenichi Handa <handa@m17n.org>
14190
4ccfa1c0 14191 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 14192 (decode_coding_utf_8): Likewise.
4ccfa1c0 14193 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 14194 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 14195
651df7d9
CY
141962008-12-02 Chong Yidong <cyd@stupidchicken.com>
14197
14198 * keyboard.c (make_lispy_position): Only use PT if the selected
14199 window is current.
14200
1f625c6c
AS
142012008-12-02 Andreas Schwab <schwab@suse.de>
14202
f7741ce9
AS
14203 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14204
1f625c6c
AS
14205 * doprnt.c (doprnt1): Fix size of charbuf.
14206
92bc2678
CY
142072008-12-02 Chong Yidong <cyd@stupidchicken.com>
14208
14209 * keyboard.c (timer_check): Revert last change.
14210
93b9e8cc
JB
142112008-12-02 Juanma Barranquero <lekktu@gmail.com>
14212
14213 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14214
fd7a37d5
JB
142152008-12-01 Juanma Barranquero <lekktu@gmail.com>
14216
14217 * makefile.w32-in: Update dependencies.
14218 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14219
c115043b
AS
142202008-12-01 Andreas Schwab <schwab@suse.de>
14221
14222 * font.c (register_font_driver): Use xmalloc.
14223 (font_put_frame_data): Likewise.
14224
f5668d2a
CY
142252008-12-01 Chong Yidong <cyd@stupidchicken.com>
14226
860d96be
CY
14227 * xfaces.c (realize_x_face): Make abort condition clearer.
14228
f5668d2a
CY
14229 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14230
379c17e7
CY
142312008-11-30 Chong Yidong <cyd@stupidchicken.com>
14232
14233 * keyboard.c (timer_check): After a timer runs, ensure that the
14234 selected window's buffer is current.
14235
35f36d65
JB
142362008-11-30 Juanma Barranquero <lekktu@gmail.com>
14237
f952c61c
JB
14238 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14239 It was accidentally restored by the Unicode merge.
14240
35f36d65
JB
14241 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14242
b23077df
JB
142432008-11-29 Juanma Barranquero <lekktu@gmail.com>
14244
14245 * w32proc.c: Include "coding.h".
14246 (Fw32_short_file_name): Encode filename passed to Windows API.
14247 (Fw32_long_file_name): Encode filename passed to Windows API and
14248 decode back the result. (Bug#1433)
14249
b8ebe9dd
KH
142502008-11-29 Kenichi Handa <handa@m17n.org>
14251
8cc53f96
KH
14252 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14253 not before accessing it.
14254
b8ebe9dd
KH
14255 * charset.c (Fdefine_charset_internal): After calculating
14256 min_char, max_char, and fastmap, copy the charset structure again.
14257 (encode_char): Fix the previous change.
14258
59bc82c0
SZ
142592008-11-28 Seiji Zenitani <zenitani@mac.com>
14260
14261 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14262
14263 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14264
14265 * nsterm.m (x_set_frame_alpha): New function.
14266
32247e3d
EZ
142672008-11-27 Eli Zaretskii <eliz@gnu.org>
14268
14269 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14270
b003e5ff
JB
142712008-11-27 Juanma Barranquero <lekktu@gmail.com>
14272
14273 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14274 pointer to check_face_name.
14275
708550f5
KH
142762008-11-27 Kenichi Handa <handa@m17n.org>
14277
14278 * category.h (SET_CATEGORY_SET): Call set_category_set.
14279 (set_category_set): Extern it.
14280
14281 * category.c (hash_get_category_set): New function.
bba3e508 14282 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
14283 char_table_ref_and_range. Call hash_get_category_set to get a
14284 category set to store in the table.
14285
14286 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14287 Funify_charset.
14288
2ae37cf0 14289 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
14290 (DECODE_CHAR): Check if the decoder vector is ready.
14291 (ENCODE_CHAR): Check if the encoder char-table is ready.
14292 (maybe_unify_char): Extern it.
14293
14294 * charset.c (Vchar_unified_charset_table): Delete it.
14295 (inhibit_load_charset_map): New variable.
14296 (temp_charset_work): New variable.
14297 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14298 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14299 New macros.
bba3e508
SM
14300 (load_charset_map): Meaning of control_flag changed.
14301 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
14302 temp_charset_work.
14303 (load_charset): New argument control_flag.
14304 (map_charset_for_dump): New function.
14305 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14306 map_charset_for_dump.
14307 (Fdefine_charset_internal): If the charset method is MAP, load
14308 mapping tables by calling load_charset.
14309 (Funify_charset): Don't load a mapping table but directly set
14310 Vchar_unify_table.
14311 (maybe_unify_char): New function.
14312 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14313 Handle the case of inhibit_load_charset_map being nonzero.
14314 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14315 Handle the case of inhibit_load_charset_map being nonzero.
14316 (Fclear_charset_maps): Just free temp_charset_work.
14317 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14318 variable.
14319
bba3e508 14320 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
14321 change of char_table_ref_and_range.
14322 (char_table_ref_and_range): Change the meaning of argument FROM
14323 and TO. Now the caller must provide initial values for *FROM
14324 and *TO.
14325
bba3e508 14326 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
14327 char_table_ref_and_range.
14328 (fontset_get_font_group): Likewise.
14329 (Ffontset_info): Likewise.
14330
bba3e508 14331 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
14332 char_table_ref_and_range. For char-table, put boundary between
14333 non-ASCII and 8-bit characters.
14334
14335 * print.c (print_object): For bool-vector, delete unnecessary
14336 check of ASCII_BYTE_P.
14337
9196133b
JR
143382008-11-26 Jason Rumney <jasonr@gnu.org>
14339
14340 * w32font.c (w32font_open_internal): Don't include external
9acef61c 14341 leading in font height. (Bug#879)
9196133b 14342
9f688acf
GM
143432008-11-26 Glenn Morris <rgm@gnu.org>
14344
14345 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14346 redefinition with ifdef. (Bug#1383)
14347
90d19aff
AR
143482008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14349
14350 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14351
4ccfa1c0 143522008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
14353
14354 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14355 New EmacsView methods.
14356 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14357 Fixes bug #1048,1357,1414.
14358
143592008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14360
14361 Fix bug #1362.
14362 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14363 is not an indexed color.
14364 * nsterm.m (free_indexed_color): Add argument checking.
14365 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14366
e7d5ecb3
CY
143672008-11-24 Chong Yidong <cyd@stupidchicken.com>
14368
14369 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14370 Document confirm-after-completion value for
14371 minibuffer-completion-confirm.
14372
c285743c
JR
143732008-11-24 Jason Rumney <jasonr@gnu.org>
14374
14375 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14376 warning.
14377
b0857706
JR
143782008-11-23 Jason Rumney <jasonr@gnu.org>
14379
14380 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14381 restored before returning.
14382
14383 * w32font.c (check_face_name): New function.
14384 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 14385 fonts. (Bug#642)
b0857706 14386
ee50ff07
MR
143872008-11-22 Martin Rudalics <rudalics@gmx.at>
14388
14389 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14390 confirm-nonexistent-file-or-buffer in doc-string.
14391
b8ff72fa
SM
143922008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14393
14394 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14395 Fix copy/paste typo. Add checks.
14396
cee53ed4
KH
143972008-11-21 Kenichi Handa <handa@m17n.org>
14398
14399 * coding.c (detect_coding_iso_2022): Reject invalid composition
14400 sequence.
14401 (DECODE_COMPOSITION_START): If the current source is the last
14402 block, and the current composition doesn't end, regard this
14403 sequence as invalid.
14404 (decode_coding_iso_2022): Handle invalid composition sequence.
14405
f6ef1e65
MR
144062008-11-20 Martin Rudalics <rudalics@gmx.at>
14407
14408 * window.c (coordinates_in_window): Don't return
14409 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14410 line when the window is not the rightmost one. (Bug#1372)
14411
e08b1705
MR
144122008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14413
14414 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14415
ad98e89f
EZ
144162008-11-15 Eli Zaretskii <eliz@gnu.org>
14417
14418 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14419 and bright_bg if noninteractive is non-zero.
14420
fb098a4b
CY
144212008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14422
14423 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14424 x_draw_glyph_string_background.
14425
14426 * w32term.c (x_draw_glyph_string): Likewise.
14427
ce952b6e
CY
144282008-11-15 Chong Yidong <cyd@stupidchicken.com>
14429
14430 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14431 the next glyph string once past the overhang width.
14432
14433 * nsterm.m (ns_draw_glyph_string): Likewise.
14434
14435 * w32term.c (x_draw_glyph_string): Likewise.
14436
26ea7079
CY
144372008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14438
14439 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14440 double file close.
14441
1c33c906
MR
144422008-11-14 Martin Rudalics <rudalics@gmx.at>
14443
14444 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14445 dedicated status of window before attempting to display another
14446 buffer in it.
14447
8fc29035
JB
144482008-11-14 Juanma Barranquero <lekktu@gmail.com>
14449
14450 * msdos.c (Fmsdos_long_file_names):
14451 (syms_of_msdos) <dos-unsupported-char-glyph>:
14452 * dosfns.c (Fint86): Fix typos in docstrings.
14453
55fb4286
EZ
144542008-11-14 Eli Zaretskii <eliz@gnu.org>
14455
14456 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14457
3fda0315
KY
144582008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14459
14460 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14461
7e849c17
CY
144622008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14463
14464 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14465
14466 * frame.h: Negative alpha means "don't touch".
14467
14468 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14469
14470 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14471
b9fd67bd
DN
144722008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14473
14474 * hftctl.c:
14475 * chpdef.h:
14476 * acldef.h: Remove files used only for systems no longer supported.
14477
14478 * Makefile.in: Fix .o alphabetical ordering.
14479 (hftctl.o): Remove dependency, file removed.
14480 (keymap.o, print.o): Depend on charset.h.
14481
d5998e03
KH
144822008-11-10 Kenichi Handa <handa@m17n.org>
14483
2ae37cf0 14484 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 14485
be70e183
CY
144862008-11-08 Chong Yidong <cyd@stupidchicken.com>
14487
14488 * dired.c (file_name_completion): If completion_ignore_case is
14489 enabled, ignore case when checking completion-regexp-list.
14490
7cf94eac
EZ
144912008-11-08 Eli Zaretskii <eliz@gnu.org>
14492
14493 * vm-limit.c (get_lim_data): Fix last change.
14494
ee107a89
KH
144952008-11-08 Kenichi Handa <handa@m17n.org>
14496
14497 * character.c (Fget_byte): New function.
14498 (syms_of_character): Defsubr Fget_byte.
14499
5fd15622
CY
145002008-11-07 Chong Yidong <cyd@stupidchicken.com>
14501
14502 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14503 cursor position is valid after scrolling.
14504
13d62fad
JB
145052008-11-06 Juanma Barranquero <lekktu@gmail.com>
14506
14507 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14508
a1dd2936
GM
145092008-11-06 Glenn Morris <rgm@gnu.org>
14510
14511 * xterm.c (handle_one_xevent): Don't let popup menus cause
14512 mouse-autoselect-window related window switching. (Bug#1261)
14513
860cd236
CY
145142008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14515
14516 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14517
653a3150
AS
145182008-11-04 Andreas Schwab <schwab@suse.de>
14519
14520 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14521
870f5cac
CY
145222008-11-03 Chong Yidong <cyd@stupidchicken.com>
14523
14524 * xfns.c (Fx_wm_set_size_hint): New function.
14525
1e02f3cb
MR
145262008-11-03 Martin Rudalics <rudalics@gmx.at>
14527
14528 * textprop.c (Fprevious_single_char_property_change): Return 0
14529 when there's no change in a string. (Bug#1301)
14530
e630dfc6
MR
145312008-11-02 Martin Rudalics <rudalics@gmx.at>
14532
14533 * frame.c (do_switch_frame): New argument NORECORD passed to
14534 Fselect_window.
14535 (Fselect_frame): New argument NORECORD passed to
14536 do_switch_frame.
14537 (Fset_frame_selected_window): New argument NORECORD passed to
14538 Fselect_frame.
14539 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14540 in call of do_switch_frame.
14541 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14542 Handle NORECORD argument in call of Fselect_frame.
14543 * lisp.h (do_switch_frame, Fselect_frame)
14544 (Fset_frame_selected_window): Adjust declarations.
14545 * window.c (select_frame_norecord): New function.
14546 (run_window_configuration_change_hook): Use it and call
14547 Fselect_frame with NORECORD set.
14548 (Fselect_window): Pass NORECORD to Fselect_frame.
14549 (Fset_window_configuration): Handle NORECORD argument in call of
14550 do_switch_frame.
14551 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14552 Fset_frame_selected_window.
14553 * keyboard.c (command_loop_1): Handle NORECORD in call of
14554 Fselect_frame (currently ifdefd).
14555
9020b223
GM
145562008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14557
14558 * emacs.c (USAGE2): Untabify.
14559
793ffee8
SM
145602008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14561
14562 * composite.c (fill_gstring_header): Fix copy/paste typo.
14563
ab6d1131
MR
145642008-10-31 Martin Rudalics <rudalics@gmx.at>
14565
14566 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14567 (Fother_window): Rename argument and rewrite doc-string.
14568 (select_window_norecord): Fix return value. (Bug#1276)
14569
601a9cf1
JB
145702008-10-30 Juanma Barranquero <lekktu@gmail.com>
14571
14572 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14573 new frames overriding foreground for tooltips. Based on similar patch
14574 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14575
813b0652
CY
145762008-10-29 Chong Yidong <cyd@stupidchicken.com>
14577
14578 * emacs.c (Fdaemon_initialized): Initialize nfd.
14579
4414f58f
MR
145802008-10-29 Martin Rudalics <rudalics@gmx.at>
14581
14582 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14583 (Fwindow_text_height): Clarify doc-strings.
14584 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14585 doc-string of window-scroll-functions.
14586
ecdcaa09
RS
145872008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14588
14589 * category.c (syms_of_category): Fix typo in docstring.
14590
23fe745a
JB
145912008-10-28 Juanma Barranquero <lekktu@gmail.com>
14592
14593 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14594 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14595 Fix typos in docstrings.
14596
ff808935
DN
145972008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14598
14599 * emacs.c (daemon_pipe): Make non-static.
14600 (IS_DAEMON): Move definition ...
14601 * lisp.h (IS_DAEMON): ... here.
14602 (daemon_pipe): Declare.
14603 (is_daemon): Remove.
14604 * dispnew.c (init_display): Use IS_DAEMON.
14605
fc012771
SM
146062008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14607
14608 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14609 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14610
14611 * emacs.c (is_daemon): Remove.
14612 (main): Don't set is_daemon.
14613 (IS_DAEMON): New macro.
14614 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 14615 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
14616 parent exits.
14617 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14618
d8bdbe6f
CY
146192008-10-27 Chong Yidong <cyd@stupidchicken.com>
14620
d1a072bf
CY
14621 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14622 over-sized glyph, draw it with the default glyph width.
14623
e2e325aa
CY
14624 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14625 glyph, draw it with the default glyph width.
14626
14627 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14628 glyph, draw it with the default glyph width.
14629
d8bdbe6f
CY
14630 * xdisp.c (try_scrolling): When computing the distance from the
14631 scroll margin to PT, try moving some distance past the window
14632 bottom before giving up.
14633
7bfac547
MR
146342008-10-27 Martin Rudalics <rudalics@gmx.at>
14635
14636 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14637 (Fset_window_buffer): Explain in doc-string that a window can be
14638 "strongly" dedicated to its buffer.
14639
4ff029f6
DN
146402008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14641
14642 * emacs.c (daemon_name): New variable.
14643 (main): Deal with --daemon=SERVER_NAME.
14644 (Fdaemonp): Return a name if one was passed to --daemon.
14645
5790ef40
DN
146462008-10-26 Romain Francoise <romain@orebokech.com>
14647
f9bd0df9 14648 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
14649 (main): Create a pipe before forking, make the parent exit only after
14650 the child has closed its end of the pipe. Move closing the
14651 descriptors ...
14652 (Fdaemon_initialized): ... here. New function.
14653
f5385255
SM
146542008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14655
4d632321
SM
14656 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14657 the previous unoptimized table.
14658
f5385255
SM
14659 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14660 the distinction between non-nil and non-t value of `dedicated'.
14661
6c56a0f3
CY
146622008-10-25 Chong Yidong <cyd@stupidchicken.com>
14663
14664 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 14665 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 14666
fec89261
MR
146672008-10-25 Martin Rudalics <rudalics@gmx.at>
14668
14669 * window.c (Fget_buffer_window, Fdelete_windows_on)
14670 (Freplace_buffer_in_windows): Make buffer argument optional and
14671 rename to buffer_or_name.
14672
34fcddd0
CY
146732008-10-24 Chong Yidong <cyd@stupidchicken.com>
14674
f5385255
SM
14675 * xdisp.c (handle_single_display_spec, handle_display_prop):
14676 Undo 2005-05-16 change.
34fcddd0
CY
14677 (handle_stop): Pop iterator if it's loaded with an empty string.
14678 (get_overlay_strings_1): Don't save iterator if it's loaded with
14679 an empty string (bug#1201).
14680
064766f2
KH
146812008-10-24 Kenichi Handa <handa@m17n.org>
14682
14683 * ftfont.c (ftfont_otf_features): Fix previous change.
14684 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14685 calling ftfont_otf_features.
14686
f9bd0df9 146872008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
14688
14689 * font.c (font_match_p): Fix for the case that a vector of
14690 characters is in script-representative-chars.
14691
1dae9197
MA
146922008-10-24 Michael Albinus <michael.albinus@gmx.de>
14693
14694 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 14695 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
14696 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14697 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 14698 macro. (Bug#1186)
1dae9197 14699
f9bd0df9 147002008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
14701
14702 * s/sol2-10.h: New file.
14703
878a4584
JB
147042008-10-23 Juanma Barranquero <lekktu@gmail.com>
14705
14706 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14707 poor beast has survived 9+ years and the jump from xterm.c!).
14708
cd265ca6
MR
147092008-10-23 Martin Rudalics <rudalics@gmx.at>
14710
14711 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14712 Reword doc-string.
f5385255 14713 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 14714
472a4dc9
JB
147152008-10-23 Juanma Barranquero <lekktu@gmail.com>
14716
14717 * character.c (syms_of_character) <script-representative-chars>:
14718 <unicode-category-table>: Doc fixes.
14719
159bd5a2
NF
147202008-10-23 Noah Friedman <friedman@splode.com>
14721
14722 * coding.c (make_conversion_work_buffer): Check that
14723 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14724 Fget_buffer_create.
14725
49f9c344
KH
147262008-10-23 Kenichi Handa <handa@m17n.org>
14727
14728 * font.c (font_add_log): Check the values of extra properties.
14729
12bb3111
MR
147302008-10-22 Martin Rudalics <rudalics@gmx.at>
14731
14732 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14733 Reword doc-string.
14734 (Fset_window_parameter): Use NILP.
14735 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 14736 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 14737
bbeb4e99
JB
147382008-10-22 Juanma Barranquero <lekktu@gmail.com>
14739
14740 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14741
147422008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
14743
14744 * nsfns.m (ns_appkit_version): New function.
14745 (x-server-version): Use it.
14746 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14747 (x-server-vendor): Don't check_ns().
14748
14749 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14750
a9b555d3
JB
147512008-10-22 Juanma Barranquero <lekktu@gmail.com>
14752
14753 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14754 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14755
4626499f
KH
147562008-10-22 Kenichi Handa <handa@m17n.org>
14757
e3681952
KH
14758 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14759 scripts.
14760
4626499f
KH
14761 * category.c (word_boundary_p): Check scripts instead of charset.
14762 Handle nil value in word-separating-categories and
14763 word-combining-categories.
14764 (syms_of_category): Fix docstrings of word-separating-categories
14765 and word-combining-categories.
14766
1560f91a
EZ
147672008-10-21 Eli Zaretskii <eliz@gnu.org>
14768
14769 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14770 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14771
f4668441
MR
147722008-10-21 Martin Rudalics <rudalics@gmx.at>
14773
14774 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14775 Rename arg "buffer" to "buffer_or_name".
14776 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14777 it optional.
14778 (no_switch_window): Remove since the return value is not used.
a9b555d3 14779 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
14780 Consider window as dedicated when Fwindow_dedicated_p returns a
14781 non-nil value.
14782 * lisp.h: Remove prototype for no_switch_window.
14783
fd75ddb2
JD
147842008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14785
14786 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 14787 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 14788
07295713
KH
147892008-10-21 Kenichi Handa <handa@m17n.org>
14790
14791 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14792 check Vlatin_extra_code_table.
14793
712adc82
EZ
147942008-10-20 Eli Zaretskii <eliz@gnu.org>
14795
14796 * fileio.c (Fset_file_modes): Doc fix.
14797
f549eb0b
MA
147982008-10-19 Michael Albinus <michael.albinus@gmx.de>
14799
14800 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14801 in arrays.
14802
aac0c6e3
MR
148032008-10-19 Martin Rudalics <rudalics@gmx.at>
14804
14805 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14806 Mention kill-buffer in doc-string.
14807 (Fset_window_buffer): Reinsert tem check removed in last commit.
14808 (Fenlarge_window, Fshrink_window): Have argument names and
14809 doc-string follow Elisp manual more closely.
14810
148112008-10-18 Eli Zaretskii <eliz@gnu.org>
14812
14813 * fileio.c (Fset_file_modes): Doc fix.
14814
148152008-10-18 Martin Rudalics <rudalics@gmx.at>
14816
14817 * window.c (Fwindow_width, Fset_window_start)
14818 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
14819 (Fdelete_windows_on, Freplace_buffer_in_windows):
14820 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
14821 (Fwindow_dedicated_p): Make window argument optional.
14822 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14823 (Fset_window_buffer): Respect any non-nil dedicated value for
14824 window. Rename "buffer" argument to "buffer_or_name".
14825
148262008-10-18 Ulrich Mueller <ulm@gentoo.org>
14827
14828 * m/sh3.h: New file, machine description for SuperH.
14829
148302008-10-17 Martin Rudalics <rudalics@gmx.at>
14831
14832 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14833
148342008-10-17 Kenichi Handa <handa@m17n.org>
14835
14836 * ftfont.c (ftfont_otf_features): Fix indexing
14837 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14838
148392008-10-16 Magnus Henoch <mange@freemail.hu>
14840
14841 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14842 (Fdbus_call_method_asynchronously): Ditto.
14843 This change makes C-h f display the argument list.
14844
148452008-10-16 Chong Yidong <cyd@stupidchicken.com>
14846
14847 * fileio.c (Fexpand_file_name): Doc fix.
14848
14849 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14850 of :foreground and :background equivalent to unspecified (20.x
14851 compatibility).
14852
148532008-10-15 Eli Zaretskii <eliz@gnu.org>
14854
14855 * buffer.c (syms_of_buffer): Doc fix.
14856
148572008-10-14 Kenichi Handa <handa@m17n.org>
14858
14859 * font.c (font_clear_prop): When clearing font width, clear the
14860 average width field too.
14861
148622008-10-12 Andreas Schwab <schwab@suse.de>
14863
14864 * ftfont.c (ftfont_shape_by_flt): Make static.
14865 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14866
14867 * font.c: Don't include <m17n-flt.h>.
14868
148692008-10-10 Eli Zaretskii <eliz@gnu.org>
14870
14871 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14872
148732008-10-09 Eli Zaretskii <eliz@gnu.org>
14874
14875 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14876 away code.
14877
148782008-10-09 Chong Yidong <cyd@stupidchicken.com>
14879
14880 * dispnew.c (update_text_area): Avoid looping due to large glyph
14881 overhangs (bug#1070).
14882
148832008-10-09 Kenichi Handa <handa@m17n.org>
14884
14885 * fontset.c (face_for_char): If face->fontset is negative, just
14886 return ascii_face.
14887
f5385255
SM
14888 * font.c (font_delete_unmatched): Fix previous change.
14889 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
14890
148912008-10-09 Martin Rudalics <rudalics@gmx.at>
14892
14893 * frame.c (Fraise_frame): On text-only terminals select frame in
14894 order to make it visible. (Bug#1061)
14895
148962008-10-08 Chong Yidong <cyd@stupidchicken.com>
14897
14898 * fontset.c (fontset_find_font): Check frame validity.
14899
149002008-10-07 Chong Yidong <cyd@stupidchicken.com>
14901
a9b555d3 14902 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
14903 (xg_display_close): Allow Emacs to close all displays (bug#985).
14904
149052008-10-06 Andreas Schwab <schwab@suse.de>
14906
f5385255 14907 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
14908
149092008-10-06 Chong Yidong <cyd@stupidchicken.com>
14910
f5385255 14911 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 14912
a9b555d3 14913 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
14914
14915 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14916 during initialization.
14917
149182008-10-04 Eli Zaretskii <eliz@gnu.org>
14919
14920 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14921 whole thing on MSDOS frames as well as on a TTY.
14922
14923 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14924 well as for TTY.
14925 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14926 well as on a TTY.
14927
14928 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14929 as well as for TTY.
14930
14931 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14932
14933 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14934 MSDOS frames as well.
14935
149362008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14937
14938 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14939 correct arguments.
b71ac3dd 14940 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
14941
149422008-10-03 Glenn Morris <rgm@gnu.org>
14943
14944 * emacs.c (USAGE1): Add --daemon.
14945
149462008-10-02 Eli Zaretskii <eliz@gnu.org>
14947
14948 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14949 100, so it's in percents as advertised.
14950
149512008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14952
14953 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14954 (ns_output.current_cursor, ns_output.desired_cursor)
14955 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14956 (FRAME_NEW_CURSOR_COLOR): Remove.
14957
14958 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 14959 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
14960 enumeration (HOLLOW_BOX_CURSOR, etc.).
14961
14962 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14963 (draw_window_cursor): Simplify code.
f5385255
SM
14964 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14965 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 14966 updates manually.
a9b555d3
JB
14967 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14968 Use core Emacs cursor types.
aac0c6e3 14969
b8ff72fa 14970 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
14971
149722008-10-02 Martin Rudalics <rudalics@gmx.at>
14973
14974 * process.c (Faccept_process_output): Fix doc-string.
14975
149762008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
14977
14978 * gmalloc.c (__sbrk): Also define for uClibc.
14979
14980 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14981 for uClibc.
14982
149832008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14984
14985 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14986 styles.
14987 (nsfont_open): Reenable the cache.
14988
149892008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14990
14991 * font.c (font_matching_entity): Reflect ATTRS in font selection.
14992 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
14993
149942008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
14995
14996 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
14997 a suspended terminal.
14998
149992008-09-30 Michael Albinus <michael.albinus@gmx.de>
15000
15001 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
15002
150032008-09-30 Eli Zaretskii <eliz@gnu.org>
15004
15005 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
15006
150072008-09-30 Chong Yidong <cyd@stupidchicken.com>
15008
15009 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
15010 in a continued line coincides with a line beginning.
15011
150122008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15013
15014 * nsfont.m (nsfont_trait_distance): Fix bug.
15015 (nsfont_list): Return a list rather than a vector (syncs with Handa
15016 changes of 2008-05-14).
15017 (nsfont_open): Improve logging.
15018
150192008-09-29 Andreas Schwab <schwab@suse.de>
15020
15021 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
15022
150232008-09-28 Martin Rudalics <rudalics@gmx.at>
15024
15025 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
15026 name as char-resolve-modifiers.
15027 Reported by: Markus Triska <markus.triska@gmx.at>
15028
150292008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15030
15031 * dispnew.c (init_display): Return earlier when running as a daemon.
15032
150332008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15034
15035 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
15036
150372008-09-27 Eli Zaretskii <eliz@gnu.org>
15038
15039 * composite.c (Fcomposition_get_gstring)
15040 (Fcompose_region_internal, Fcompose_string_internal)
15041 (Ffind_composition_internal): Doc fix.
15042 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15043 (syms_of_composite) <auto-composition-function>: Doc fix.
15044 (syms_of_composite) <composition-function-table>: Doc fix.
15045
150462008-09-25 Chong Yidong <cyd@stupidchicken.com>
15047
15048 * search.c (wordify): New argument for lax word-ends.
15049 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15050
150512008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15052
15053 * lisp.h (is_daemon): Declare.
15054 * dispnew.c (init_display): Do not try to initialize the terminal
15055 when running as a daemon.
15056
150572008-09-22 Chong Yidong <cyd@stupidchicken.com>
15058
15059 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15060 x_display_pixel_height.
15061
150622008-09-22 Martin Rudalics <rudalics@gmx.at>
15063
15064 * undo.c (record_point): Don't call Fundo_boundary for first
15065 change. (Bug#731)
15066
150672008-09-22 Juanma Barranquero <lekktu@gmail.com>
15068
15069 * emacs.c (Fdaemonp): Doc fix.
15070
150712008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15072
15073 * emacs.c (main): Place #ifdef in the proper place.
15074
150752008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15076
15077 * emacs.c (standard_args): Add --daemon.
15078 (main): Disconnect from the terminal when --daemon is passed.
15079 (is_daemon): New variable.
15080 (Fdaemonp): New function.
15081 (syms_of_emacs): Defsubr it.
15082
150832008-09-20 Chong Yidong <cyd@stupidchicken.com>
15084
15085 * xdisp.c (get_next_display_element): Handle string display
15086 correctly when checking for the end of a box run.
15087
150882008-09-20 Glenn Morris <rgm@gnu.org>
15089
15090 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15091 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15092 (Frename_file): Avoid copying to trash if a rename involves
15093 a delete. (Bug#964).
15094
150952008-09-20 Eli Zaretskii <eliz@gnu.org>
15096
15097 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15098 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15099 frames as well as termcap frames.
15100 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15101 get_named_tty.
15102
151032008-09-19 Eli Zaretskii <eliz@gnu.org>
15104
15105 * process.c (procfs_system_process_attributes): Fix cmdline in
15106 case /proc/PID/cmdline is empty.
15107
15108 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15109 x_display_pixel_height.
15110
151112008-09-19 Juanma Barranquero <lekktu@gmail.com>
15112
15113 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15114
15115 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15116 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15117
151182008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15119
15120 * dispextern.h (struct it): Move line_wrap away from the middle of
15121 bitfields. Move voffset in struct iterator_stack_entry after the
15122 bitfields. Move tab_width near after another short.
15123
151242008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15125
15126 * frame.h (struct frame): Move alpha from the middle of bitfields.
15127
15128 * window.h (struct window): Move frozen_window_start_p after the
15129 rest of the bitfields to reduce padding.
15130
151312008-09-18 Chong Yidong <cyd@stupidchicken.com>
15132
15133 * xterm.h (x_display_info): Remove `height' and `width' members.
15134
15135 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15136
15137 * w32term.h (w32_display_info): Remove `height', `width',
15138 `height_in', and `width_in' members.
15139
b8ff72fa
SM
15140 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15141 New functions.
aac0c6e3
MR
15142 (x_calc_absolute_position): Use them.
15143 (x_term_init): Omit removed `height' and `width' members.
15144
b8ff72fa
SM
15145 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15146 New functions.
aac0c6e3
MR
15147 (w32_read_socket, x_calc_absolute_position): Use them.
15148 (w32_initialize_display_info, w32_term_init): Omit removed members
15149 of w32_display_info.
15150
b8ff72fa
SM
15151 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15152 New functions.
15153 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 15154
b8ff72fa
SM
15155 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15156 New functions.
aac0c6e3
MR
15157 (x_calc_absolute_position): Use them.
15158 (x_term_init): Omit removed `height' and `width' members.
15159
15160 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
15161 (compute_tip_xy):
15162 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
15163 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15164 x_display_pixel_width.
15165
151662008-09-18 Kenichi Handa <handa@m17n.org>
15167
15168 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15169 (composition_compute_stop_pos): Fix handling of static composition.
15170 (Fcomposition_get_gstring): Check FROM and TO at first.
15171
151722008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15173
46e722a9 15174 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
15175 mixup (YAILOM).
15176
151772008-09-17 Chong Yidong <cyd@stupidchicken.com>
15178
15179 * indent.c (Fvertical_motion): Use position reported by iterator
15180 instead of PT for determining screen motion (bug#943).
15181
151822008-09-17 Romain Francoise <romain@orebokech.com>
15183
15184 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15185
151862008-09-17 Kenichi Handa <handa@m17n.org>
15187
15188 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15189
15190 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15191 if necessary.
15192
151932008-09-16 Kenichi Handa <handa@m17n.org>
15194
15195 * coding.c (make_conversion_work_buffer): Avoid calling
15196 Fget_buffer_create if it is not necessary.
15197
151982008-09-15 Martin Rudalics <rudalics@gmx.at>
15199
15200 * window.c (Fselect_window): Don't update window_select_count and
15201 use_time when norecord is not nil.
15202
152032008-09-14 Kenichi Handa <handa@m17n.org>
15204
15205 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15206 specpdl_ptr.
15207
152082008-09-12 Kenichi Handa <handa@m17n.org>
15209
15210 * indent.c (scan_for_column): Don't handle automatic composition
15211 if the current buffer is not associated with a window.
15212
15213 * composite.c (composition_reseat_it): If the current buffer is
15214 not associated with a window, ignore the automatic composition.
15215 (find_automatic_composition): Likewise.
15216
152172008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15218
15219 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15220 (Fgpm_mouse_stop): Use it.
15221 * termhooks.h (close_gpm): Declare.
15222 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15223 connection if Gpm_GetEvent fails.
15224
15225 * window.c (set_window_buffer): Always preserve current-buffer.
15226
152272008-09-12 Glenn Morris <rgm@gnu.org>
15228
15229 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15230
152312008-09-11 Glenn Morris <rgm@gnu.org>
15232
15233 * charset.c (charset-map-path): Doc fix.
15234
152352008-09-10 Kenichi Handa <handa@m17n.org>
15236
15237 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15238
15239 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15240 compose a grapheme cluster with the preceding base glyph.
15241
15242 * composite.c (composition_compute_stop_pos): Fix previous change.
15243 Reset cmp_it->id to -1 at first.
15244
152452008-09-10 Glenn Morris <rgm@gnu.org>
15246
15247 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15248
152492008-09-09 Chong Yidong <cyd@stupidchicken.com>
15250
15251 * keyboard.c (read_key_sequence): Reapply translation maps when
15252 switching keyboards.
15253
152542008-09-09 Kenichi Handa <handa@m17n.org>
15255
15256 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15257 characters.
15258
15259 * composite.c (FORWARD_CHAR): Fix calculation
15260 of (POSITION).pos_byte.
15261 (composition_compute_stop_pos): Limit the search of composition to
15262 at most 500 characters ahead. If we reach the limit or find a
15263 newline, set cmp_it->ch to -2 and return 0.
15264 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15265
152662008-09-08 Kenichi Handa <handa@m17n.org>
15267
15268 * indent.c (Fvertical_motion): Be sure to set
15269 it_overshoot_expected if it.cmp_it.id is non-negative.
15270
152712008-09-07 Andreas Schwab <schwab@suse.de>
15272
15273 * callproc.c (Fcall_process): Don't hold references to string data
15274 across garbage collection. Move initialisation of new_argv down
15275 to avoid compiler bug.
15276
152772008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15278
15279 * process.c (Fsystem_process_attributes): Doc fix.
15280
152812008-09-07 Chong Yidong <cyd@stupidchicken.com>
15282
15283 * callproc.c (Fcall_process): Canonicalize current directory name.
15284
15285 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15286 iterator advances to the next line if the current line ends in a
15287 continued tab.
15288
152892008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15290
15291 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15292 member to point to cmp_from.
15293
15294 * xdisp.c: Doc fix for references to gidx data member.
15295
152962008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15297
15298 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15299
153002008-09-07 Kenichi Handa <handa@m17n.org>
15301
15302 * composite.c (FORWARD_CHAR): Check STOP after
15303 incrementing (POSITION).pos.
15304
153052008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15306
15307 * process.c (Fsystem_process_attributes): Doc fix.
15308
153092008-09-06 Chong Yidong <cyd@stupidchicken.com>
15310
15311 * keyboard.c (Ftop_level): Doc fix.
15312
153132008-09-06 Eli Zaretskii <eliz@gnu.org>
15314
15315 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15316 minibuffer, don't let lower part of menu invade the echo area.
15317
15318 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15319 "char *q" to access menu text and advance through it. Revert the
15320 change that displayed ">" instead of ASCII character 0x10.
15321
153222008-09-05 Eli Zaretskii <eliz@gnu.org>
15323
15324 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15325 toggle boxes and radio buttons on MS-DOS as well.
15326
153272008-09-05 Kenichi Handa <handa@m17n.org>
15328
15329 * composite.c (autocmp_chars): Check lookback count.
15330 (composition_compute_stop_pos): Set cmp_it->lookback.
15331 (composition_reseat_it): Check lookback count.
15332 (struct position_record): New struct.
15333 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15334 (find_automatic_composition): New function.
15335 (composition_adjust_point): Use find_automatic_composition.
15336
15337 * dispextern.h (struct composition_it): New member lookback.
15338
153392008-09-02 Chong Yidong <cyd@stupidchicken.com>
15340
15341 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15342 if moving by a single line.
15343
153442008-09-02 Andreas Schwab <schwab@suse.de>
15345
15346 * xterm.c (x_delete_display): Fix merge error.
15347
15348 * fileio.c (Fexpand_file_name): Remove unused variables.
15349
153502008-09-02 Eli Zaretskii <eliz@gnu.org>
15351
15352 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15353 storage on all platforms, not just on DOS_NT.
15354
153552008-09-02 Jason Rumney <jasonr@gnu.org>
15356
b8ff72fa
SM
15357 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15358 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
15359
153602008-09-01 Chong Yidong <cyd@stupidchicken.com>
15361
15362 * xfaces.c (Finternal_set_alternative_font_family_alist)
15363 (Finternal_set_alternative_font_registry_alist): Properly copy
15364 entire alist structure.
15365
153662008-09-01 Kenichi Handa <handa@m17n.org>
15367
d66c0241 15368 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 15369 representative chars of the script is a vector.
d66c0241
JB
15370 (ftfont_list): Handle the case where the representative chars of
15371 the script is a vector.
aac0c6e3
MR
15372
15373 * character.c (syms_of_character): Docstring of
15374 script-representative-chars fixed.
15375
153762008-08-31 Eli Zaretskii <eliz@gnu.org>
15377
15378 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15379 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15380 the menu. Allocate larger buffer for `text', to account for
15381 possible ^C characters.
15382
153832008-08-31 Martin Rudalics <rudalics@gmx.at>
15384
15385 * xdisp.c (prepare_menu_bars): Don't call
15386 Vwindow_size_change_functions with arg Qt.
15387
153882008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15389
15390 * font.h (font_range):
15391 * fileio.c (report_file_error):
46e722a9
SM
15392 * composite.c (composition_update_it): Yet another int/Lisp_Object
15393 mixup (YAILOM).
aac0c6e3
MR
15394
153952008-08-30 Glenn Morris <rgm@gnu.org>
15396
15397 * data.c (Fmake_variable_frame_local): Doc fix.
15398
15399 * frame.c (Fmodify_frame_parameters): Doc fix.
15400
154012008-08-30 Eli Zaretskii <eliz@gnu.org>
15402
15403 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15404 needed by GetTokenInformation.
15405 (w32_system_process_attributes): Check return values of all system
15406 APIs.
15407
15408 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15409 only when the state changes.
15410 (IT_update_begin, IT_update_end): Add termscript trace.
15411
15412 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15413 clipboard is unavailable. Set dst to NULL if it doesn't point to
15414 malloc'ed data.
15415 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15416 passing random values to xfree.
15417
15418 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 15419 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
15420
154212008-08-29 Jason Rumney <jasonr@gnu.org>
15422
15423 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15424
154252008-08-29 Eli Zaretskii <eliz@gnu.org>
15426
15427 * composite.c (fill_gstring_body): Avoid compiler warnings.
15428
15429 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15430 LGLYPH_SET_CODE to avoid compiler warnings.
15431
2ae37cf0 15432 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
15433
15434 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15435
15436 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15437 LGLYPH_SET_CODE.
15438
154392008-08-29 Kenichi Handa <handa@m17n.org>
15440
15441 * fileio.c (report_file_error): Don't downcase the first character
15442 of errstring if it is still unibyte.
15443
154442008-08-29 Kenichi Handa <handa@m17n.org>
15445
15446 These changes are to re-implement the automatic composition so
15447 that it doesn't use text properties.
15448
15449 * Makefile.in (ftfont.o): Depend on composite.h.
15450 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15451
15452 * character.h (Vunicode_category_table): Extern it.
15453
15454 * character.c (Vunicode_category_table): New variable.
15455 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15456
15457 * chartab.c (optimize_sub_char_table): Perform more greedy
15458 optimization.
15459
b8ff72fa
SM
15460 * composite.h (enum composition_method):
15461 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
15462 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15463 (Vcomposition_function_table): Extern it.
15464 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15465 (composition_gstring_put_cache, composition_gstring_from_id)
15466 (composition_gstring_p, composition_gstring_width)
15467 (composition_compute_stop_pos, composition_reseat_it)
15468 (composition_update_it, composition_adjust_point): Extern them.
15469 (Fcomposition_get_gstring): EXFUN it.
15470
d66c0241 15471 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
15472 (Vcomposition_function_table)
15473 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
15474 (gstring_hash_table, gstring_work, gstring_work_headers):
15475 New variables.
aac0c6e3
MR
15476 (gstring_lookup_cache, composition_gstring_put_cache)
15477 (composition_gstring_from_id, composition_gstring_p)
15478 (composition_gstring_width, fill_gstring_header)
15479 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15480 (composition_reseat_it, composition_update_it)
b8ff72fa 15481 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
15482 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15483 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 15484 Defsubr composition_get_gstring.
aac0c6e3
MR
15485
15486 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15487 cmp_id.
15488 (struct glyph_string): Delete the member gidx. New members
15489 cmp_id, cmp_from, and cmp_to.
15490 (enum it_method): Delete GET_FROM_COMPOSITION.
15491 (struct composition_it): New struct.
15492 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15493 Delete c, len, cmp_id, cmp_len in u.comp.
15494
15495 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 15496 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 15497 (enum lglyph_indices): Likewise.
b8ff72fa 15498 (font_range): Adjust extern.
aac0c6e3
MR
15499 (font_fill_lglyph_metrics): Extern it.
15500
15501 * font.c (QCf): New variable.
15502 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15503 (font_prepare_composition): Delete this function.
15504 (font_range): Type and arguments changed.
15505 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15506 (font_fill_lglyph_metrics): New function.
b8ff72fa 15507 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 15508 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
15509 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15510 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
15511
15512 * fontset.h (font_for_char): Extern it.
15513
15514 * fontset.c (font_for_char): New function.
15515
15516 * ftfont.c: Include composite.h.
15517 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 15518 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
15519
15520 * indent.c: Include composite.h and dispextern.h.
15521 (check_composition): Delete this function.
15522 (scan_for_column): Handle composition by
15523 composition_compute_stop_pos, composition_reseat_it, and
15524 composition_update_it.
15525 (compute_motion): Likewise.
15526 (Fvertical_motion): Fix checking of composition.
15527
15528 * keyboard.c (adjust_point_for_property): Check composition by
15529 composition_adjust_point.
15530
b8ff72fa 15531 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
15532 struct glyph_string.
15533
b8ff72fa
SM
15534 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15535 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
15536 struct glyph.
15537 (produce_composite_glyph): Likewise.
15538
b8ff72fa
SM
15539 * w32term.c (x_draw_composite_glyph_string_foreground):
15540 Adjust for the change of struct glyph_string.
aac0c6e3
MR
15541 (x_draw_glyph_string): Likewise.
15542
15543 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15544 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15545
15546 * xdisp.c: Include font.h.
15547 (it_props): Delete the entry for Qauto_composed.
15548 (init_iterator): Initialize it->cmp_it.id to -1.
15549 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 15550 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
15551 (handle_auto_composed_prop): Delete it.
15552 (handle_composition_prop): Handle only static composition.
15553 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15554 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 15555 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
15556 (pop_it): Likewise.
15557 (get_next_element): Delete next_element_from_composition.
15558 (CHAR_COMPOSED_P): New macro.
15559 (get_next_display_element): For automatic composition, get a face
15560 from the font in the glyph-string.
15561 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 15562 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
15563 (next_element_from_string): Check if the character at the current
15564 position is composed by CHAR_COMPOSED_P.
15565 (next_element_from_buffer): Likewise.
d66c0241
JB
15566 (next_element_from_composition): Adjust for the change of struct it.
15567 Update it->cmp_it.
b8ff72fa
SM
15568 (dump_glyph): Adjust for the change of struct glyph.
15569 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
15570 it and struct glyph. Don't handle automatic composition here.
15571 (fill_gstring_glyph_string): New function.
15572 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 15573 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
15574 (BUILD_GSTRING_GLYPH_STRING): New macro.
15575 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15576 automatic composition.
b8ff72fa 15577 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 15578 struct glyph.
b8ff72fa 15579 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 15580
b8ff72fa 15581 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
15582 the change of struct glyph_string.
15583 (x_draw_glyph_string): Likewise.
15584
155852008-08-29 Glenn Morris <rgm@gnu.org>
15586
15587 * buffer.c (word-wrap): Doc fix.
15588 * xdisp.c (truncate-partial-width-windows): Doc fix.
15589 Increase default to 50.
15590
155912008-08-29 Chong Yidong <cyd@stupidchicken.com>
15592
15593 * xdisp.c (update_tool_bar_unwind): New function.
15594 (update_tool_bar): Temporarily set selected frame before building
15595 tool-bar items.
15596
155972008-08-28 Michael Albinus <michael.albinus@gmx.de>
15598
15599 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15600 snprintf, respectively.
15601 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15602
156032008-08-28 Chong Yidong <cyd@stupidchicken.com>
15604
15605 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15606 LDFLAGS to GNUstep CC invocation.
15607
156082008-08-27 Chong Yidong <cyd@stupidchicken.com>
15609
15610 * indent.c (Fvertical_motion): Revert last change. Handle the
15611 general case where we are moving forward, and PT spans multiple
15612 screen lines.
15613
15614 * eval.c (find_handler_clause): Temporarily increase
15615 max-lisp-eval-depth while printing the backtrace buffer, to
15616 guarantee that help-mode code can run.
15617
156182008-08-27 Eli Zaretskii <eliz@gnu.org>
15619
15620 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15621 colors under -rv.
15622 (IT_set_frame_parameters): Don't swap foreground and background
15623 colors if `(reverse . t)' is present in the frame properties.
15624 (internal_terminal_init): Call init_frame_faces only for the
15625 initial frame.
15626
156272008-08-27 Andreas Schwab <schwab@suse.de>
15628
15629 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15630
156312008-08-27 Andreas Schwab <schwab@suse.de>
15632
15633 * search.c (search_buffer): Set char_base to zero only at the end.
15634
156352008-08-27 Kenichi Handa <handa@m17n.org>
15636
b8ff72fa 15637 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
15638
156392008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15640
15641 * xterm.c (x_term_init): Temporarily hide the partially
15642 initialized terminal while calling vendor-specific-keysyms.
15643
156442008-08-26 Eli Zaretskii <eliz@gnu.org>
15645
15646 * msdos.c (internal_terminal_init): Most initializations done only
15647 once, especially initial_screen_colors[] and termscript open.
15648
156492008-08-26 Chong Yidong <cyd@stupidchicken.com>
15650
15651 * eval.c (Fcondition_case): Doc fix.
15652
15653 * widgetprv.h (EmacsFramePart): Change font member to the new font
15654 struct.
15655
15656 * widget.c: Include character.h and font.h for XSETFONT.
15657 (setup_frame_gcs): Compute X font id from font struct, just once.
15658
156592008-08-26 Eli Zaretskii <eliz@gnu.org>
15660
15661 * term.c (get_named_tty): Fix last change.
15662
156632008-08-26 Chong Yidong <cyd@stupidchicken.com>
15664
15665 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 15666 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
15667
156682008-08-25 Eli Zaretskii <eliz@gnu.org>
15669
15670 * frame.c (do_switch_frame): Mark previously displayed frame as
15671 obscured for FRAME_MSDOS_P frames as well.
15672
156732008-08-24 Eli Zaretskii <eliz@gnu.org>
15674
15675 * frame.c (make_terminal_frame): Initialize f->terminal,
15676 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15677 Set the top frame to newly created frame.
15678 (Fmake_terminal_frame): Reuse the_only_display_info.
15679
15680 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15681 estimating available memory.
15682
b97439ce 156832008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
15684
15685 * nsterm.m (ns_draw_window_cursor): Don't call
15686 NSDisableScreenUpdates and NSEnableScreenUpdates on
15687 non-NS_IMPL_COCOA systems.
15688
156892008-08-23 Andreas Schwab <schwab@suse.de>
15690
15691 * process.c (procfs_system_process_attributes): Fix use of
15692 uninitialized variables.
15693
156942008-08-23 Eli Zaretskii <eliz@gnu.org>
15695
15696 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15697
15698 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15699 calling tty-set-up-initial-frame-faces.
15700
b8ff72fa
SM
15701 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15702 Allow MSDOS frames along with X frames.
aac0c6e3
MR
15703
15704 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15705 addition to output_termcap.
15706
15707 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15708
15709 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15710 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15711 highlight.
15712
15713 * process.c [!subprocesses]: Define QCname.
15714 (syms_of_process): Intern and staticpro it.
15715
15716 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
15717 Adjust for changes in encoding/decoding routines.
15718 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
15719 encode_coding and decode_coding.
15720
b8ff72fa 15721 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
15722
15723 * dosfns.c: Include frame.h before termhooks.h.
15724 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15725 variable termscript.
15726
15727 * s/msdos.h (USER_FULL_NAME): Define.
15728 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15729
15730 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15731 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15732 pw->pw_gecos.
15733
15734 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15735 SELECTED_FRAME as additional (1st) argument.
15736 (tty_read_avail_input): Handle output_msdos_raw in
15737 addition to output_termcap.
15738
15739 * msdos.c: Include frame.h before termhooks.h.
15740 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15741 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15742 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15743 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15744 (IT_set_terminal_modes, IT_reset_terminal_modes)
15745 (IT_set_frame_parameters): Use tty->termscript instead of a global
15746 variable termscript.
15747 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15748 global variable terminal_coding. Don't refer to
15749 Vnonascii_translation_table.
15750 (internal_terminal_init): Set Vwindow_system in current_kboard.
15751 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15752 Announce date and time of session start, if termscript is open.
15753 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
15754 term.c:init_tty). Open termscript only of not already open.
15755 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
15756 here instead of dos_ttraw. Don't initialize display if this is an
15757 initial tty. Don't set FRAME_FONT.
15758 (Vwindow_system_version): Bump to 23.
15759 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15760 is available, set up mouse_position_hook.
15761 (dos_ttraw, IT_set_terminal_modes): If called with initial
15762 terminal, do nothing.
15763 (IT_set_frame_parameters): Handle the Qtty_type frame
15764 parameter by calling internal_terminal_init.
15765 (dos_set_window_size, show_mouse_face)
15766 (clear_mouse_face, IT_note_mode_line_highlight)
15767 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15768 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15769 (initialize_msdos_display): New function.
15770 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15771 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15772 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15773 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 15774 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
15775 (request_sigio, unrequest_sigio): Don't define, now defined on
15776 sysdep.c.
15777 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15778
15779 * term.c [MSDOS]: Include msdos.h.
15780 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15781 conditional to DOS_NT. Allow only one call to this function in a
15782 session. Don't allocate a new struct tty_display_info; instead,
15783 reuse the_only_display_info. Call get_tty_size to get screen
15784 dimensions. Call init_baud_rate to set bad_rate.
15785 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15786 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 15787 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
15788 (get_tty_terminal, get_named_tty, Ftty_type)
15789 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15790 output_termcap.
b8ff72fa
SM
15791 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15792 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 15793 only when subprocesses are supported.
aac0c6e3
MR
15794
15795 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15796 f->output_data.x.
15797 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15798 terminal devices.
15799
5582fbc7 15800 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
15801 x_output.
15802 (FRAME_FONT): Use output_data.tty.
15803 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
15804 (struct x_display_info): Rename from display_info. Update all users in
15805 msdos.c.
aac0c6e3 15806 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 15807 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
15808 (dos_ttraw): Update prototype.
15809
15810 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15811 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15812
158132008-08-23 Jason Rumney <jasonr@gnu.org>
15814
15815 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15816 (fn_TIFFSetDirectory): New library function used.
15817 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15818 (tiff_load): Use :index to select among multiple images. Set count
15819 property when multiple images exist.
15820 (gif_format): Use :index, not :image.
15821
158222008-08-23 Chong Yidong <cyd@stupidchicken.com>
15823
15824 * xdisp.c (try_scrolling): Check INT_MAX instead of
15825 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15826 to obtain INT_MAX.
15827
158282008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15829
15830 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15831
158322008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15833
15834 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15835 GNUstep library location.
15836
158372008-08-21 Chong Yidong <cyd@stupidchicken.com>
15838
15839 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15840 before using it.
15841
15842 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15843
158442008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15845
15846 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15847 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15848 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15849 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15850 (EmacsApp-cursor_blink_handler): Remove declaration.
15851 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15852 match 01 Feb 2008 changes in xterm.c.
15853 (ns_read_socket): Add cast to avoid warning.
15854 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15855 GNUstep.
15856
158572008-08-20 Chong Yidong <cyd@stupidchicken.com>
15858
15859 * xselect.c (x_get_foreign_selection): Return nil if desired
15860 selection could not be obtained, instead of signalling an error.
15861
158622008-08-20 David Reitter <david.reitter@gmail.com>
15863
15864 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15865 * nsterm.m: Remove ns-specific code for cursor blinking.
15866 (ns_draw_window_cursor): Clear cursor properly rather than
15867 redrawing the area. Respect width of bar cursors.
15868 These changes enable the use of generic blink-cursor-mode and
15869 generic cursor types in NS and support smooth cursor movements (do
15870 not blink off after command).
15871 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15872 Nextstep, too.
15873
158742008-08-19 Kenichi Handa <handa@m17n.org>
15875
15876 * font.c (Vfont_log_deferred): New variable.
15877 (font_add_log): Check Vfont_log_deferred.
15878 (font_deferred_log): New function.
15879
15880 * font.h (font_deferred_log): Extern it.
15881
15882 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15883 for sorting.
15884 (face_for_char): Use deferred log.
15885
158862008-08-18 Kenichi Handa <handa@m17n.org>
15887
15888 * fontset.c (face_for_char): Add font log.
15889
15890 * font.c (font_add_log): Add the font properties :script, :lang,
15891 and :otf in the log.
15892
158932008-08-17 Chong Yidong <cyd@stupidchicken.com>
15894
15895 * xdisp.c: Remove dead code.
15896 (handle_invisible_prop, next_overlay_string): Defer call to
15897 setup_for_ellipsis.
15898 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15899
159002008-08-15 Chong Yidong <cyd@stupidchicken.com>
15901
15902 * xfaces.c (lookup_derived_face): Properly handle possible zero
15903 return value of get_lface_attributes.
15904 (merge_faces): Don't tell lookup_derived_face to signal an error
15905 if face is not found.
15906
15907 * dired.c (Fdirectory_files): Doc fix.
15908
15909 * process.c (make_process): Initialize kill_without_query struct
15910 member.
15911
159122008-08-15 Eli Zaretskii <eliz@gnu.org>
15913
15914 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15915 Alternative calculation of totphys for Visual Studio 6.
15916
15917 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15918
15919 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15920 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15921 All users changed.
15922 (stat): Only root directory passed to GetDriveType. Allow RAM
15923 disk as well as local fixed disk when w32-get-true-file-attributes
15924 is set to `local'.
15925 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15926 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15927 (w32_cached_id, w32_add_to_cache): New functions.
15928 (get_name_and_id): Look account names in the cache before calling
15929 lookup_account_sid.
15930 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15931 New initialization flags.
15932 (globals_of_w32): Initialize them to zero.
15933 (w32_system_process_attributes): Use w32_cached_id and
15934 w32_add_to_cache.
15935
159362008-08-14 Lawrence Mitchell <wence@gmx.li>
15937
15938 * lread.c (Fread_char, Fread_char_exclusive): If no character
15939 event is read before timeout is reached, return nil, rather than
15940 converting to a number.
15941
159422008-08-14 Chong Yidong <cyd@stupidchicken.com>
15943
15944 * fns.c (use_dialog_box): Doc fix.
15945
15946 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15947 on OS X.
15948
159492008-08-13 Chong Yidong <cyd@stupidchicken.com>
15950
15951 * frame.c (Qns_parse_geometry): New var.
15952 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15953
159542008-08-11 Chong Yidong <cyd@stupidchicken.com>
15955
15956 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15957 space character in calculating tabs.
15958
159592008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15960
15961 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15962
159632008-08-10 Glenn Morris <rgm@gnu.org>
15964
15965 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15966 silence gcc "limited range of data type" warnings in some
15967 make_fixnum_or_float calls.
15968
159692008-08-09 Eli Zaretskii <eliz@gnu.org>
15970
15971 * w32.c (w32_system_process_attributes): If the process does not
15972 exist, return nil.
15973
15974 * w32.c: Include thelp32.h, psapi.h and coding.h.
15975 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15976 declarations.
15977 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15978 (Process32Next_Proc): New typedefs.
15979 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15980 (g_b_init_process32_next, g_b_init_open_thread_token)
15981 (g_b_init_impersonate_self, g_b_init_revert_to_self)
15982 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15983 (g_b_init_get_process_working_set_size)
15984 (g_b_init_global_memory_status_ex): New static variables.
15985 (globals_of_w32): Initialize them.
15986 (create_toolhelp32_snapshot, process32_first, process32_next)
15987 (open_thread_token, impersonate_self, revert_to_self)
15988 (get_process_memory_info, get_process_working_set_size)
15989 (global_memory_status, global_memory_status_ex): New wrapper
15990 functions.
15991 (w32_list_system_processes, w32_system_process_attributes)
15992 (enable_privilege, restore_privilege, ltime, process_times):
15993 New functions.
15994 (convert_time_raw): New function.
15995 (convert_time): Remove conversion of FILETIME into time in 100
15996 nsec units, call convert_time_raw instead.
15997
15998 * process.h (w32_list_system_processes, w32_system_process_attributes):
15999 Add prototypes.
16000 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
16001 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
16002 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
16003 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
16004
16005 * process.c (Fsystem_process_attributes): Doc fix.
16006
160072008-08-08 Chong Yidong <cyd@stupidchicken.com>
16008
16009 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
16010 a continued multi-char glyph; if so, advance to the actual glyph.
16011
160122008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
16013
16014 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
16015
16016 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
16017 (.m.o): Use it.
16018 * config.in: Regenerate.
16019
160202008-08-07 Chong Yidong <cyd@stupidchicken.com>
16021
16022 * xdisp.c (redisplay_window): Revert last change.
16023 (try_window): Check bottom scroll margin too.
16024
160252008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16026
16027 * config.in: Regenerate.
16028
16029 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
16030 -list-load-path-shadows'.
16031 (nsgui.h): Reduce number of things depending on it.
16032
160332008-08-06 Chong Yidong <cyd@stupidchicken.com>
16034
16035 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
16036 instead of window-end which does the wrong thing at eob.
16037 (try_cursor_movement): Minor optimization.
16038 (redisplay_window): If scroll margin is defined, don't assume
16039 window doesn't need scrolling.
16040
160412008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16042
16043 * config.in: Regenerate.
16044
16045 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16046 (mostlyclean): Don't delete *.d under NS.
16047
16048 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16049
160502008-08-06 Kenichi Handa <handa@m17n.org>
16051
16052 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16053
160542008-08-06 Andreas Schwab <schwab@suse.de>
16055
16056 * config.in: Regenerate.
16057
160582008-08-05 Chong Yidong <cyd@stupidchicken.com>
16059
16060 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16061 forcing a window start.
16062
16063 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16064 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16065
160662008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16067
16068 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16069 argument.
16070
160712008-08-05 Juanma Barranquero <lekktu@gmail.com>
16072
16073 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16074 <scroll-down-aggressively, before-change-functions>:
16075 <after-change-functions>: Reflow docstrings.
16076
160772008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 16078 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
16079
16080 Dock menu customization, based on a patch by Ken Raeburn, plus some
16081 other fixes.
16082 * nsmenu.m (dockMenu): New variable.
16083 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16084
16085 * nsterm.h (dockMenu): Declare.
16086
16087 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16088 (ns_term_init): Initialize dockMenu.
16089 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16090 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16091 left.
16092
16093 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16094
160952008-08-04 Chong Yidong <cyd@stupidchicken.com>
16096
16097 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16098
16099 * config.in: Regenerate.
16100
161012008-08-04 Seiji Zenitani <zenitani@mac.com>
16102
16103 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16104
161052008-08-04 Chong Yidong <cyd@stupidchicken.com>
16106
16107 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16108
161092008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16110
16111 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16112
16113 * keyboard.h: Comment an #endif.
16114
16115 * lisp.h (have_menus_p): Adjust comment.
16116
16117 * menu.c (find_and_return_menu_selection): Fix comparison with
16118 client_data.
16119
16120 * nsmenu.m (popup_activated_flag): New variable.
16121 (popup_activated): New function.
16122 (menu-or-popup-active-p): New exported lisp definition.
16123 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16124 when popup done.
16125 (ns_popup_dialog): Set popup_activated_flag.
16126
16127 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16128 version for GNUstep (handled by conditional typedef in nsterm.m).
16129 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16130 in rgb.txt).
16131
16132 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16133
16134 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16135
16136 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16137
16138 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16139 shortcircuit if popup_activated like GTK and X toolkit.
16140
16141 * m/inter386.h: Change DARWIN to DARWIN_OS.
16142
16143 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16144 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
16145 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16146 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
16147
161482008-08-03 Chong Yidong <cyd@stupidchicken.com>
16149
16150 * nsterm.m (windowDidResize): Remove stopModal call.
16151
161522008-08-03 Andreas Schwab <schwab@suse.de>
16153
16154 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16155 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16156
161572008-08-02 Chong Yidong <cyd@stupidchicken.com>
16158
16159 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16160 Don't use uninitialized pointer variable when using getrlimit.
16161
161622008-08-02 Jason Rumney <jasonr@gnu.org>
16163
16164 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16165
161662008-08-02 Eli Zaretskii <eliz@gnu.org>
16167
16168 * alloc.c (NSTATICS): Bump to 0x640.
16169
16170 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16171
16172 * lisp.h: Add prototype for directory_files_internal.
16173
16174 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16175 New functions.
16176 (syms_of_process): Defsubr them. Add initializations for various
16177 Q* symbols used in procfs_system_process_attributes.
16178 (procfs_list_system_processes, procfs_system_process_attributes)
16179 [HAVE_PROCFS]: New functions.
16180 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16181 (procfs_get_total_memory): New functions.
16182
161832008-08-01 Juanma Barranquero <lekktu@gmail.com>
16184
16185 * xfaces.c (Fx_load_color_file): Fix previous change;
16186 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16187
161882008-08-01 Michael Albinus <michael.albinus@gmx.de>
16189
16190 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16191
161922008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16193
16194 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16195
161962008-08-01 Chong Yidong <cyd@stupidchicken.com>
16197
16198 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16199
16200 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16201 define NSApplicationDelegateReplySuccess.
16202 (EmacsView -converstationIdentifier): Use long instead of
16203 NSInteger for GNUstep, since it doesn't have NSInteger.
16204
16205 * xmenu.c: Revert last change.
16206
16207 * keyboard.h: Fix last change.
16208
162092008-08-01 Juanma Barranquero <lekktu@gmail.com>
16210
16211 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16212 on Windows.
16213
162142008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16215
16216 Warning clearing and clean-up in NS port.
16217 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16218 Add prototypes.
16219 * nsgui.h (FACE_DEFAULT): Remove, unused.
16220 (XGCValues): Change colors to unsigned long.
16221 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16222 nsterm.m.
16223 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16224 (ns_list_fonts): Remove, unused.
16225 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16226 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16227 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16228 (nsfont_draw): Compare face colors to 0, not nil.
16229 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16230 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16231 (-addSubmenuWithTitle:): Use NSMenuItem class.
16232 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16233 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16234 (ns_clip_to_row): Make gc arg a BOOL.
16235 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16236 ns_clip_to_row() call.
16237 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16238 used). Cast FRAME_FONT assignments.
16239 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16240 (ns_string_to_lispmod): Change arg to const char.
16241 (ns_term_init): Use NSMenuItem class.
16242 (EmacsApp -openFile:): Move to different section of file.
16243 (EmacsApp -application:openFiles:): Don't return a value, call
16244 -replyToOpenOrPrint:.
16245 (EmacsView -keyDown:): Fix up cast.
16246 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16247 (EmacsView -menuDown:): Cast tag in call to
16248 find_and_call_menu_selection().
16249 (ns_list_fonts): Remove, unused.
16250 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16251 (ns_fontname_to_xlfd): Make static.
16252 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16253 Remove prototypes (now in keyboard.h).
16254 (next_menubar_widget_id): Remove, unused.
16255 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16256 Remove prototypes (now in keyboard.h).
16257 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16258
162592008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16260
16261 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16262 (floatfns.o): Depend on syssignal.h.
16263 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16264
16265 * systty.h: Fix previous change that removed BSD_TERMIOS.
16266 Add comments to #ifdefs.
16267
162682008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16269
16270 * w32fns.c (w32-load-color-file): Remove.
16271 (x-open-connection): Use renamed Fx_load_color_file.
16272 * xfaces.c (x-load-color-file): Add.
16273 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16274 Emacs.clr.
16275 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16276
162772008-07-31 Michael Albinus <michael.albinus@gmx.de>
16278
16279 * dbusbind.c (Fdbus_call_method_asynchronously)
16280 (Fdbus_method_error_internal): New defuns.
16281 (xd_read_message): Handle also reply messages.
16282 (Vdbus_registered_functions_table): Extend docstring.
16283
162842008-07-31 Juanma Barranquero <lekktu@gmail.com>
16285
16286 * keyboard.c (gobble_input): Fix previous change.
16287
162882008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16289
16290 * bitmaps/README:
16291 * xfns.c:
16292 * termcap.c:
16293 * term.c:
16294 * syswait.h:
16295 * systty.h:
16296 * systime.h:
16297 * syssignal.h:
16298 * sysdep.c:
16299 * process.h:
16300 * process.c:
16301 * print.c:
16302 * ndir.h:
16303 * lread.c:
16304 * keyboard.c:
16305 * getpagesize.h:
16306 * floatfns.c:
16307 * fileio.c:
16308 * emacs.c:
16309 * doc.c:
16310 * dispnew.c:
16311 * dired.c:
16312 * data.c:
16313 * callproc.c:
16314 * buffer.c:
16315 * README:
16316 * Makefile.in:
16317 * s/template.h:
16318 * s/msdos.h:
16319 * m/vax.h: Remove VMS support.
16320 * s/vms.h:
16321 * vlimit.h:
16322 * uaf.h:
16323 * temacs.opt:
16324 * param.h:
16325 * ioctl.h: Remove file.
16326
163272008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16328
16329 * s/ms-w32.h (MULTI_KBOARD): Remove.
16330 * xterm.c:
16331 * xselect.c:
16332 * xfns.c:
16333 * window.c:
16334 * w32term.c:
16335 * w32fns.c:
16336 * terminal.c:
16337 * termhooks.h:
16338 * term.c:
16339 * sysdep.c:
16340 * keyboard.h:
16341 * keyboard.c:
16342 * frame.h:
16343 * frame.c:
16344 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16345 * config.in: Regenerate.
16346
163472008-07-30 Jason Rumney <jasonr@gnu.org>
16348
16349 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16350
16351 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16352 (w32font_open_internal): Get unicode version of textmetrics.
16353 Don't enable or disable glyph indices here.
16354 (w32font_open): Disable use of glyph indices.
16355
16356 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16357
163582008-07-30 Chong Yidong <cyd@stupidchicken.com>
16359
16360 * minibuf.c (Vread_buffer_function): Doc fix.
16361
163622008-07-30 John Paul Wallington <jpw@pobox.com>
16363
16364 * minibuf.c (read_buffer_completion_ignore_case): New var.
16365 (Fread_buffer): Use it.
16366
163672008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16368
16369 * systty.h (sensemode): Remove empty #if. Remove reference to
16370 BSD_TERMIOS, unused.
16371
16372 * sysdep.c: Remove reference to DGUX.
16373 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16374
16375 * config.in: Regenerate.
16376
163772008-07-30 Jason Rumney <jasonr@gnu.org>
16378
16379 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16380
163812008-07-29 Jason Rumney <jasonr@gnu.org>
16382
16383 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16384 is populated.
16385 (uniscribe_encode_char): Always use uniscribe.
16386 Avoid using context if cache is populated.
16387
163882008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16389
16390 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16391 open menu.
16392
16393 * gtkutil.c (menu_nav_ended): Remove.
16394 (create_menus): Remove signal connect for menu_nav_ended.
16395
163962008-07-28 Chong Yidong <cyd@stupidchicken.com>
16397
16398 * xdisp.c (redisplay_window): Check return value of
16399 compute_window_start_on_continuation_line before forcing a window
16400 start.
16401
164022008-07-28 Jason Rumney <jasonr@gnu.org>
16403
16404 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16405
16406 * w32term.c (w32_enable_unicode_output, cleartype_active):
16407 Remove obsolete display options.
16408 (x_draw_glyph_string_background): Don't use old cleartype_active
16409 workaround.
16410 (w32_initialize): Remove cleartype_active initialization.
16411 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16412
164132008-07-28 Andreas Schwab <schwab@suse.de>
16414
16415 * lisp.h (init_weak_hash_tables, syms_of_font)
16416 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16417 (remove_hash_entry): Don't declare.
16418 * eval.c (maybe_call_debugger): Make static and move before use.
16419 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16420 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16421 * xterm.h (x_set_frame_alpha): Declare.
16422
164232008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16424
16425 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16426 (create_menus): Connect selection-done to menu_nav_ended.
16427
164282008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16429
16430 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16431 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16432 parameter with read of 'alpha' one.
16433 (Qns_frame_parameter): Remove.
5582fbc7 16434 * nsselect.m (selection-coding-system)
aac0c6e3
MR
16435 (next-selection-coding-system, Vselection_coding_system)
16436 (Vnext_selection_coding_system): Drop.
16437
164382008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16439
16440 * nsfns.m (do-applescript, do_applescript): Rename to
16441 ns-do-applescript, ns_do_applescript, and move within file.
16442
164432008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16444
16445 Remove support for Mac Carbon.
16446 * mactoolbox.c:
16447 * macterm.h:
16448 * macterm.c:
16449 * macselect.c:
16450 * macmenu.c:
16451 * macgui.h:
16452 * macfns.c:
16453 * mac.c: Remove file.
16454 * s/darwin.h:
16455 * m/intel386.h:
16456 * xfaces.c:
16457 * xdisp.c:
16458 * window.c:
16459 * tparam.c:
16460 * termhooks.h:
16461 * termcap.c:
16462 * term.c:
16463 * syssignal.h:
16464 * sysselect.h:
16465 * sysdep.c:
16466 * process.c:
16467 * lread.c:
16468 * lisp.h:
16469 * keyboard.c:
16470 * image.c:
16471 * fringe.c:
16472 * frame.h:
16473 * frame.c:
16474 * fontset.c:
16475 * font.h:
16476 * font.c:
16477 * fns.c:
16478 * fileio.c:
16479 * emacs.c:
16480 * dispnew.c:
16481 * dispextern.h:
16482 * config.in:
16483 * atimer.c:
2ae37cf0 16484 * Makefile.in: Remove code for Carbon.
aac0c6e3 16485
f0131492 164862008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
16487
16488 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16489
164902008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16491
16492 * macterm.h (kCGBitmapByteOrder32Host): New define for
16493 non-universal SDKs.
16494
16495 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16496 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16497
16498 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16499 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16500
165012008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16502
16503 * w32inevt.c: Include dispextern.h.
16504
165052008-07-26 Andreas Schwab <schwab@suse.de>
16506
16507 * print.c (print_object): Fix off-by-one in last change.
16508
165092008-07-25 Juanma Barranquero <lekktu@gmail.com>
16510
16511 * term.c (syms_of_term): Don't initialize default_orig_pair,
16512 default_set_foreground and default_set_background on Windows.
16513
165142008-07-25 Jason Rumney <jasonr@gnu.org>
16515
16516 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16517 ScriptItemize. Clean up return value checking. Remove unused
16518 variables.
16519 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16520 shaping engine.
16521
16522 * w32font.c (w32font_has_char): Handle the case where we can't
16523 determine the script for a character.
16524
165252008-07-25 Chong Yidong <cyd@stupidchicken.com>
16526
16527 * term.c (syms_of_term): Initialize default_orig_pair,
16528 default_set_foreground, and default_set_background.
16529
16530 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16531 clash (bug#86).
16532 (getloadavg): Callers changed.
16533
16534 * image.c (svg_load_image): Fix last change.
16535 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16536 image size is valid. Use g_object_unref instead of deprecated
16537 rsvg_handle_free to free rsvg handle.
16538 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16539
165402008-07-25 Jason Rumney <jasonr@gnu.org>
16541
16542 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16543 surrogates before looking up glyph index.
16544 (w32font_text_extents): Encode as surrogates if falling back to
16545 functions that need UTF-16 wide chars.
16546
16547 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16548 BMP as surrogates before looking up glyph index.
16549
165502008-07-25 Chong Yidong <cyd@stupidchicken.com>
16551
16552 * image.c (svg_load_image): Check for failure in return value of
16553 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16554
165552008-07-25 Jason Rumney <jasonr@gnu.org>
16556
16557 * w32font.c (Fx_select_font): Reverse sense of second arg.
16558
165592008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16560
16561 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16562 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16563
16564 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16565 (PURESIZE): Use it.
16566
165672008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16568
16569 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16570 * m/alpha.h (TEXT_END):
16571 * m/ibmrs6000.h (TEXT_END):
16572 * m/macppc.h (TEXT_END):
16573 * s/darwin.h (TEXT_END):
16574 * s/msdos.h (TEXT_END): Remove, unused.
16575 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16576 * s/cygwin.h: Remove comment.
16577
16578 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16579 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16580 * m/intel386.h (DOT_GLOBAL_START):
16581 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16582 (USG): Remove, file not used on USG platforms.
16583
16584 * Makefile.in (HAVE_X11): Remove empty #else.
16585
165862008-07-24 Andreas Schwab <schwab@suse.de>
16587
16588 * fileio.c (Finsert_file_contents): Properly adjust undo list
16589 after format conversion.
16590
165912008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16592
16593 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16594 (menu_nav_ended): Remove.
16595 (create_menus): Remove signal connect for menu_nav_ended.
16596 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16597 create_menus.
16598 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16599
166002008-07-23 Jason Rumney <jasonr@gnu.org>
16601
16602 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16603 with opened font.
16604 (w32font_open): Set font type to gdi.
16605
16606 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16607
166082008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16609
16610 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16611 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16612 defines it.
16613 * unexec.c (ADDR_CORRECT): Define unconditionally.
16614
16615 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16616
16617 * unexec.c: Remove code depending on !COFF and USG, the file is
16618 not used for such systems.
16619
16620 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16621 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16622 (LD_SWITCH_SYSTEM_1): Remove, update users.
16623
16624 * s/darwin.h (DATA_END):
16625 * m/intel386.h (DATA_END):
16626 * m/ibmrs6000.h (DATA_END):
16627 * m/alpha.h (DATA_END): Remove, unused.
16628
16629 * config.in: Regenerate.
16630 * s/ms-w32.h (subprocesses): Define unconditionally.
16631 * s/template.h (subprocesses): Update comment.
16632 * s/vms.h (subprocesses):
16633 * s/usg5-4.h (subprocesses):
16634 * s/hpux10-20.h (subprocesses):
16635 * s/gnu-linux.h (subprocesses):
16636 * s/cygwin.h (subprocesses):
16637 * s/bsd-common.h (subprocesses):
16638 * s/aix4-2.h (subprocesses):
16639 * s/darwin.h (subprocesses): Do not define, defined by default now.
16640
16641 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16642 Remove all references.
16643 (temacs): Add GNUstep specific ld flags.
16644
16645 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16646 similarly to what X does.
16647
166482008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16649
16650 * nsfns.m (x-list-fonts): Remove.
16651 (syms_of_nsfns): Drop the x-list-fonts declaration.
16652 * nsterm.m: Get rid of remaining "//" comments.
16653
166542008-07-22 Chong Yidong <cyd@stupidchicken.com>
16655
16656 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16657
16658 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16659 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16660 (Fns_own_selection_internal, Fx_disown_selection_internal)
16661 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16662
16663 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16664 ... */' style of docstrings. Doc fixes.
16665
166662008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16667
16668 * terminfo.c (UP, BC, PC): Undo previous change.
16669
16670 * nsfns.m: Rename ns prefixed functions/variables to the
16671 corresponding x versions. Update references.
16672
166732008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16674
16675 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16676
166772008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16678
16679 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16680 Remove forwarding functions.
16681 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16682 non-static.
16683 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16684 non-static.
16685 (ns_frame_parm_handlers): Use the new names.
16686 (syms_of_nsfns): Move to the end of file.
16687
16688 * nsterm.m (syms_of_nsterm): Move to the end of file.
16689
16690 * dispnew.c (init_display): Remove code for X10.
16691
166922008-07-22 Jason Rumney <jasonr@gnu.org>
16693
16694 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16695 bare drive.
16696
166972008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16698
16699 * nsterm.m (syms_of_nsterm): Remove debugging println.
16700
167012008-07-22 David Reitter <david.reitter@gmail.com>
16702
16703 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16704 Carbon implementation of the same functionality: execute arbitrary
16705 AppleScript code.
16706
167072008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16708
16709 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16710 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16711 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16712 (Fx_display_mm_height, Fx_display_mm_width)
16713 (Fx_display_backing_store, Fx_display_visual_class)
16714 (Fx_display_save_under, Fx_open_connection)
16715 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16716 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16717 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16718 (Fx_display_pixel_width, Fx_display_pixel_height)
16719 (Fx_display_usable_bounds, Fx_display_planes)
16720 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16721 ... */' style of docstrings.
16722
167232008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16724
16725 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16726 on this platform.
16727 (mips):
16728 * m/iris4d.h (mips): Do not define.
16729 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16730
16731 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16732
16733 * image.c:
16734 * nsfns.m:
16735 * nsselect.m:
16736 * nsterm.h:
16737 * nsterm.m: Rename ns prefixed functions/variables to the
16738 corresponding x versions. Update references.
16739
16740 * m/ibms390x.h (NO_REMAP): Do not undefine.
16741
16742 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16743
167442008-07-21 Chong Yidong <cyd@stupidchicken.com>
16745
16746 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16747 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16748 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16749 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16750 (Fns_display_mm_height, Fns_display_mm_width)
16751 (Fns_display_backing_store, Fns_display_visual_class)
16752 (Fns_display_save_under, Fns_open_connection)
16753 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16754 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16755 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16756 (Fns_display_pixel_width, Fns_display_pixel_height)
16757 (Fns_display_usable_bounds, Fx_display_planes)
16758 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16759
167602008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16761
16762 * print.c (print_object): Check print_depth before searching for
16763 circularities.
16764
167652008-07-21 Michael Albinus <michael.albinus@gmx.de>
16766
16767 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16768 only sprintf.
16769
167702008-07-21 Kenichi Handa <handa@m17n.org>
16771
16772 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16773
167742008-07-20 Andreas Schwab <schwab@suse.de>
16775
16776 * syntax.c (find_start_pos, find_start_value)
16777 (find_start_value_byte, find_start_begv, find_defun_start)
16778 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16779
167802008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16781
16782 * s/sol2-3.h: Insert contents of s/sol2.h.
16783 (LD_SWITCH_SYSTEM): Remove redundant definition.
16784 * s/sol2.h: Remove, unused.
16785
167862008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16787
16788 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16789
167902008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16791
16792 * Makefile.in (ns_appdir): Fix typo in find command.
16793
167942008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16795
16796 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16797
16798 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16799 added not supported anymore.
16800
16801 * s/usg5-4-2.h (LIBS_SYSTEM):
16802 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16803
16804 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16805 * s/lynxos.h (GETPGRP_NO_ARG):
16806 * s/hpux10-20.h (NO_SIOCTL_H):
16807 * s/gnu.h (GETPGRP_NO_ARG):
16808 * s/gnu-linux.h (NO_SIOCTL_H):
16809 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16810 * s/cygwin.h (GETPGRP_NO_ARG):
16811 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16812 (C_DEBUG_SWITCH): Remove duplicate definition.
16813
16814 * m/ibms390.h: Remove boilerplate comments.
16815
16816 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16817
16818 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16819 (wait_reading_process_output): Remove code for SunOS, platform not
16820 supported anymore. Use SOLARIS2 instead of sun.
16821
168222008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16823
16824 * font.c (font_open_by_name): Under NS, default lface height to zero.
16825 (font_open_for_lface): Under NS, set size based on frame fontsize.
16826 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16827 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16828
168292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16830
16831 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16832 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16833 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16834 YES/NO.
16835 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16836 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16837 * Makefile.in (clean): Clear out build destination dir.
16838
168392008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16840
16841 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16842 xterm, xselect.
16843 * lisp.h: Remove declaration of hash_remove.
16844 * nsgui.h: Remove redefinitions of hash_remove.
16845 * fns.c (hash_remove): Rename to hash_remove_from_table.
16846
168472008-07-19 Seiji Zenitani <zenitani@mac.com>
16848
16849 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16850 strdup() the family UTF8String before modifying it.
16851
168522008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16853
16854 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16855 NS_FACE_BACKGROUND with 0 instead of nil.
16856 * nsfont.m (nsfont_draw): Same.
16857
168582008-07-19 Chong Yidong <cyd@stupidchicken.com>
16859
16860 * nsfns.m (ns_set_background_color): Fix crash.
16861
168622008-07-18 Chong Yidong <cyd@stupidchicken.com>
16863
16864 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16865
168662008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16867
16868 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16869
168702008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16871
16872 * gtkutil.c: Include <config.h> instead of "config.h".
16873
16874 * lisp.h (Foverlay_buffer): Add EXFUN.
16875
16876 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16877 child process to complete child_setup. Undo 2005-09-21 change.
16878
16879 * s/darwin.h: Mention setsid after vfork.
16880
168812008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16882
16883 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16884 Depend on macgui.h.
16885
16886 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16887 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16888
16889 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16890 and f19.
16891 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16892
16893 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16894 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16895 Remove enumerators.
16896
16897 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16898 Check if FACE_FROM_ID returns NULL.
16899
169002008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16901
16902 * w32inevt.c (change_frame_size): Remove extern declaration.
16903 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16904 change_frame_size.
16905
169062008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16907
16908 * getloadavg.c: Revert last change (2008-07-15).
16909
169102008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16911
16912 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 16913 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
16914 from configure.
16915
169162008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16917
16918 * s/sol2.h:
16919 * s/sol2-4.h: Reorganize conditionals.
16920
16921 * ecrt0.c: Remove code depending on m68000, not used anymore.
16922
16923 * fns.c (hash_remove): Make static.
16924 * lisp.h (hash_remove): Don't prototype.
16925
16926 * m/ibmrs6000.h:
16927 * m/ibms390x.h:
16928 * m/macppc.h: Remove boilerplate comments.
16929
16930 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16931 Solaris, which does not need them.
16932
16933 * m/vax.h: Remove comments about unsupported systems.
16934
16935 * s/darwin.h: Reorganize ifdefs.
16936
169372008-07-17 Andreas Schwab <schwab@suse.de>
16938
16939 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16940
169412008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16942
16943 Use SDATA. Follow coding convention of placing operators at
16944 beginning of next line rather than end of previous line, and placing
16945 spaces around infix operators.
16946
16947 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16948 in case it was defined already.
16949 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16950 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16951 ns_default.
16952 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16953 Lisp_Objects.
16954 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16955 (ns_defined_color, ns_color_to_lisp): Declare.
16956 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16957 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16958 it's accepted even with USE_LISP_UNION_TYPE.
16959 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16960 (update_frame_tool_bar): Remove apparently obsolete tests for
16961 non-integerness of f->tool_bar_lines.
16962 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16963 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16964 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16965 (nsfont_open): Don't confuse NULL for Qnil.
16966 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16967 * menu.h (find_and_call_menu_selection):
16968 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16969 (find_and_return_menu_selection): Always return something.
16970 * frame.h: Include dispextern.h for Display_Info.
16971 (display_x_get_resource): Declare.
16972
169732008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16974
16975 * syntax.c: Remove stdio.h include accidentally introduced in
16976 Emacs.app commit.
16977 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16978 NS_IMPL_COCOA.
16979 * keyboard.c (handle_async_input, input_available_signal): Remove
16980 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16981
169822008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16983
16984 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16985 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16986 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16987 Use SDATA.
16988
16989 * keymap.c: Remove all NS-specific code.
16990 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
16991 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
16992 where_is_preferred_modifier, return a different value depending on how
16993 preferred is the binding.
16994 (where_is_internal): Adjust accordingly.
16995 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
16996 Adjust to new preferred_sequence_p.
16997 (syms_of_keymap): Declare `where-is-preferred-modifier'.
16998 * keyboard.c (parse_solitary_modifier): Not static any more.
16999 * keyboard.h (parse_solitary_modifier): Declare.
17000
170012008-07-16 Andreas Schwab <schwab@suse.de>
17002
17003 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
17004 of easymenu.
17005
170062008-07-16 Chong Yidong <cyd@stupidchicken.com>
17007
17008 * xdisp.c (move_it_in_display_line): Account for word wrap, so
17009 that we don't move off the line.
17010
170112008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17012
17013 * keyboard.c (Qsuper): Remove.
17014 (parse_menu_item): Don't call where_is_internal specially for NS.
17015
170162008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17017
17018 * s/gnu-linux.h: Remove boilerplate comments.
17019
17020 * m/alpha.h (__ELF__): Consolidate conditions.
17021
17022 * m/m68k.h (linux): Use GNU_LINUX instead.
17023 Remove boilerplate comments.
17024
17025 * m/intel386.h: Undo refactoring from previous change.
17026 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
17027 too, remove dead code.
17028 (linux): Use GNU_LINUX instead.
17029
170302008-07-16 Jason Rumney <jasonr@gnu.org>
17031
17032 * w32gui.h: Repeat 26 June changes lost by last change.
17033
170342008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17035
17036 * systty.h: Remove code for Aix on 386, unsupported platform.
17037
17038 * s/ms-w32.h: Remove boilerplate comments.
17039 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
17040
17041 * s/gnu-linux.h (TERM): Remove support.
17042 (HAVE_SYSVIPC): Remove, unused.
17043 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17044 for this system.
17045
17046 * process.c: Remove support for IRIS, unused.
17047 Remove support for TERM, not relevant anymore.
17048
17049 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17050 used with the definition.
17051
17052 * s/aix4-2.h (static): Do not undef.
17053
17054 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17055 only used on Aix.
17056 (HAVE_SYSVIPC): Remove, unused.
17057
17058 * m/hp800.h (CANNOT_DUMP): Do not undef.
17059
17060 * m/alpha.h: Fix comment.
17061
17062 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17063 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17064 used by this configuration.
17065 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17066 * unexec.c: Remove code depending on HPUX and
17067 USG_SHARED_LIBRARIES, not used with this file. Remove code
17068 depending on IRIS, unused. Remove if 0-ed code.
17069
17070 * s/template.h: Remove comments about static.
17071
17072 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17073 Remove if 0-ed code.
17074 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17075 were the same as the default.
17076 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17077 Remove boilerplate comments.
17078 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17079 (HAVE_SYSVIPC): Remove, unused.
17080 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17081
17082 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17083 Remove boilerplate comments.
17084 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17085 Remove boilerplate comments.
17086 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17087 Remove boilerplate comments.
17088 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17089
17090 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17091 USG systems which do not use DATA_SEG_BITS.
17092 Refactor code. Remove boilerplate comments.
17093
17094 * m/ibms390.h:
17095 * m/m68k.h:
17096 * s/bsd-common.h:
17097 * s/cygwin.h:
17098 * s/darwin.h:
17099 * s/freebsd.h:
17100 * s/gnu.h:
17101 * s/msdos.h: Remove boilerplate comments.
17102
17103 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 17104 do not use this file.
aac0c6e3
MR
17105 (IRIS_4D): Remove, unused.
17106
17107 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 17108 do not use this file.
aac0c6e3
MR
17109 (SIGN_EXTEND_CHAR):
17110 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17111 * unexmips.c: Remove file, unused.
17112
17113 * editfns.c (Fuser_full_name): Replace the only use of
17114 USER_FULL_NAME with its value.
17115 * config.in: Regenerate.
17116
171172008-07-16 David Reitter <david.reitter@gmail.com>
17118
17119 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17120 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17121
171222008-07-16 Glenn Morris <rgm@gnu.org>
17123
17124 * emacs.c (system-type): Doc fix.
17125
171262008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17127
17128 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17129 If the cache doesn't work, let's fix it, rather than work around it.
17130
171312008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17132
17133 * Makefile.in: Correct additions for nsfont.o in last commit.
17134 * nsfont.m: New file (forgot last commit).
17135
171362008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17137
bba3e508
SM
17138 * callproc.c (set_initial_environment):
17139 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
17140 batch-compiling for bootstrap).
17141
171422008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 17143 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 17144
c4cc8b9a
JB
17145 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17146 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
17147
171482008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17149
17150 Changes and additions for NeXTstep windowing system (Cocoa and
17151 GNUstep) support.
17152
17153 * Makefile.in:
17154 * config.in: Support defines and build commands for NS port.
17155 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17156 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17157 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17158 windowing.
17159 (struct face): Add synth_ital field.
17160 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17161 (init_display): Initialize Vinitial_window_system to "ns" when so
17162 compiled.
17163 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17164 (display_arg): Use under NS.
17165 (main): Under NS, allocate autorelease pool and handle command line
17166 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17167 (standard_args): Add NS-specific args.
17168 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17169 * font.c (DEFAULT_ENCODING): New variable.
17170 (font_find_for_lface): Use it.
17171 (syms_of_font): Load syms_of_nsfont under NS.
17172 * font.h: Declare nsfont_driver when compiled under NS.
17173 * fontset.c: When compiling under NS, include nsterm.h.
17174 (fontset_from_font): Autoconstruct fontset under NS.
17175 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17176 symbol, document and use it.
17177 (do_switch_frame): When for_deletion under Cocoa, add
17178 Fraise_frame(Qnil).
17179 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17180 (x_get_arg): Allow "yes" and "no" as boolean values.
17181 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17182 Qright under Cocoa.
17183 (focus-follows-mouse): Default to 0 under NS.
17184 * frame.h (enum output_method): Add output_ns.
17185 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17186 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17187 (FRAME_WINDOW_P): NS-specific definition.
17188 * fringe.c (max_used_fringe_bitmap): Make public.
17189 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17190 (getloadavg): Use NeXT code under descendant OS's.
17191 * image.c (includes and header section, x_create_bitmap_from_data)
17192 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17193 (image_background_transparent, x_clear_image_1)
17194 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17195 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17196 (x_to_xcolors, x_from_xcolors, x_disable_image)
17197 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17198 other GUIs, including XPM support using code originally written for
17199 Carbon GUI.
17200 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17201 using NS API.
17202 (image_ascent): Use font metrics macros instead of direct struct field
17203 access.
17204 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17205 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17206 Also, handle NS as GTK for menu bar purposes.
17207 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17208 toolkit where they differ.
17209 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17210 use cachelist, still needed under NS.
17211 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17212 (struct widget_value): Define it here for menu.c.
17213 * keymap.c (includes): Include modifier internals.
17214 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17215 NS.
17216 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17217 support for preferring sequences using certain modifiers, specified by
17218 the FIRSTONLY argument.
17219 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17220 under NS GNUstep implementation.
17221 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17222 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17223 * menu.c: Include nsterm.h under NS.
17224 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17225 (free_menubar_widget_tree_value, update_submenu_strings)
17226 (find_and_call_menu_selection): Treat NS as X and NT.
17227 (find_and_return_menu_selection): New function, used for popup menus.
17228 * nsgui.h:
17229 * nsterm.h:
17230 * nsfns.m:
17231 * nsimage.m:
17232 * nsmenu.m:
17233 * nsselect.m:
17234 * nsterm.m: New files.
17235 * process.c (wait_reading_process_output): Under NS, call ns_select()
17236 instead of plain select().
17237 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17238 beginning of buffer.
17239 * sysselect.h (init_process): Rename when compiling under Cocoa to
17240 avoid name conflict.
17241 * termhooks.h (display_info): Add ns_display_info to union.
17242 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17243 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17244 COCOA environment.
17245 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17246 unexec() signature. (Note, this will dump, but the resulting file
17247 crashes; unexosx is used instead; keeping around for reference and
17248 possible aid in getting dump working under GNUstep.)
17249 * w32gui.h (button_type, widget_value): Remove definitions (now in
17250 keyboard.h).
17251 * window.c: Include nsterm.h when compiling under NS.
17252 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17253 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17254 other GUI windowing systems.
17255 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17256 GTK.
17257 (x_consider_frame_title): Under NS, set icon type and frame
17258 modified-state indicator; use ns_set_name_as_filename() when using
17259 formatted title.
17260 (update_window_cursor): Make public when compiling under NS.
17261 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17262 (hourglass_atimer, Vhourglass_delay
17263 * xfaces.c (header section, init_frame_faces, clear_font_table)
17264 (defined_color, unload_color, x_face_list_fonts)
17265 (prepare_face_for_display): Add NS support parallel to other GUIs.
17266 Emulate GCs like other non-X GUIs.
17267 (split_font_name): Don't lowercase font name under NS.
17268 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17269 under NS.
17270 * s/darwin.h: Add support for compilation under NS.
17271
172722008-07-15 Jason Rumney <jasonr@gnu.org>
17273
17274 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17275 (w32_show_hourglass): Rename from show_hourglass.
17276 (w32_hide_hourglass): Rename from hide_hourglass.
17277 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17278 (Vhourglass_delay): Declare extern.
17279 (hourglass_started): Remove.
17280
17281 * xdisp.c (Vhourglass_delay): Remove static.
17282 (hourglass_started, start_hourglass, cancel_hourglass):
17283 Don't include these versions on WINDOWSNT.
17284
172852008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17286
17287 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17288 variables (formerly in xfns.c).
17289 (show_hourglass, hide_hourglass): New prototypes (same).
17290 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17291 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17292 in xfns.c).
17293 (syms_of_xdisp): Declare/initialize display-hourglass,
17294 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17295 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17296 formerly in xfns.c.
17297 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17298 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17299 (start_hourglass, cancel_hourglass): Remove.
17300 (show_hourglass, hide_hourglass): Remove prototypes and static
17301 modifiers.
17302 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17303 hourglass_atimer, hourglass_shown_p declaration/initialization.
17304 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17305 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17306 (start_hourglass, cancel_hourglass): Remove.
17307 (show_hourglass, hide_hourglass): Remove prototypes and static
17308 modifiers.
17309 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17310 hourglass_atimer, hourglass_shown_p declaration/initialization.
17311 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17312 (DEFAULT_HOURGLASS_DELAY): Remove.
17313 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17314 hourglass_shown_p declaration/initialization.
17315
173162008-07-14 Jason Rumney <jasonr@gnu.org>
17317
17318 * w32fns.c (w32_get_arg): Remove wrapper function.
17319 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17320 directly.
17321 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17322
173232008-07-14 Kenichi Handa <handa@m17n.org>
17324
17325 * xfont.c (xfont_open): Add workaround for X's bug.
17326
173272008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17328
17329 * fontset.c: Include <stdio.h> unconditionally.
17330
173312008-07-13 Michael Albinus <michael.albinus@gmx.de>
17332
17333 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17334 for filtering.
17335
173362008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17337
17338 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17339
17340 * m/macppc.h:
17341 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17342
c4cc8b9a 17343 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
17344 (SPECIAL_EMACS_INT):
17345 * m/ia64.h (SPECIAL_EMACS_INT):
17346 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17347 * s/gnu.h (NLIST_STRUCT):
17348 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17349 * s/gnu-linux.h (LINUX):
17350 * s/msdos.h (HAVE_FACES):
17351 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17352
17353 * systty.h:
17354 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17355 anymore.
17356
173572008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17358
17359 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17360 always defined as int.
17361
17362 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17363 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17364 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17365 * s/freebsd.h (HAVE_WAIT_HEADER):
17366 * s/bsd-common.h (HAVE_UNION_WAIT):
17367 * s/aix4-2.h (HAVE_WAIT_HEADER):
17368 * m/mips.h (HAVE_UNION_WAIT):
17369 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17370 (COFF, static): Do not define, they are undefined later in the file.
17371
17372 * process.c (update_status): Don't use a union.
17373 (status_convert):
17374 (sigchld_handler): Use int instead of WAITTYPE.
17375
173762008-07-12 Chong Yidong <cyd@stupidchicken.com>
17377
17378 * indent.c (Fvertical_motion): Restore hscroll before moving to
17379 goal column.
17380
173812008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17382
17383 * lisp.h: Remove left over code.
17384
173852008-07-11 Andreas Schwab <schwab@suse.de>
17386
17387 * lisp.h: Fix logic in last change.
17388
17389 * menu.h: New file.
17390 * menu.c: Include it.
17391 * xmenu.c: Likewise.
17392 * Makefile.in: Update dependencies.
17393
173942008-07-11 Kenichi Handa <handa@m17n.org>
17395
17396 * fontset.c (fontset_from_font): Cancel the previous change.
17397
173982008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17399
17400 * lisp.h:
17401 * w32heap.c:
17402 * emacs.c:
17403 * alloc.c: Replace all references of NO_UNION_TYPE with
17404 USE_LISP_UNION_TYPE.
17405
17406 * m/xtensa.h (NO_UNION_TYPE):
17407 * m/vax.h (NO_UNION_TYPE):
17408 * m/template.h (NO_UNION_TYPE):
17409 * m/sparc.h (NO_UNION_TYPE):
17410 * m/mips.h (NO_UNION_TYPE):
17411 * m/macppc.h (NO_UNION_TYPE):
17412 * m/m68k.h (NO_UNION_TYPE):
17413 * m/iris4d.h (NO_UNION_TYPE):
17414 * m/intel386.h (NO_UNION_TYPE):
17415 * m/ibms390x.h (NO_UNION_TYPE):
17416 * m/ibms390.h (NO_UNION_TYPE):
17417 * m/ibmrs6000.h (NO_UNION_TYPE):
17418 * m/ia64.h (NO_UNION_TYPE):
17419 * m/hp800.h (NO_UNION_TYPE):
17420 * m/arm.h (NO_UNION_TYPE):
17421 * m/amdx86-64.h (NO_UNION_TYPE):
17422 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17423 defining it the same.
17424
174252008-07-10 Chong Yidong <cyd@stupidchicken.com>
17426
17427 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17428
174292008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17430
17431 * fileio.c:
50426a04 17432 * sysdep.c:
aac0c6e3
MR
17433 * systty.h:
17434 * m/ibmrs6000.h:
17435 * m/iris4d.h:
17436 * s/aix4-2.h:
17437 * s/freebsd.h:
17438 * s/gnu-linux.h:
17439 * s/hpux10-20.h:
17440 * s/hpux11.h:
17441 * s/netbsd.h:
17442 * s/sol2-3.h:
17443 * s/sol2-4.h:
17444 * s/sol2.h:
17445 * s/usg5-4.h:
17446 * s/vms.h: Remove references to unused variables.
17447
174482008-07-10 Andreas Schwab <schwab@suse.de>
17449
17450 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17451 pattern before matching the generic family.
17452
174532008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17454
17455 * unexec.c:
17456 * s/vms.h:
17457 * s/usg5-4-2.h:
17458 * s/sol2-5.h:
17459 * s/freebsd.h:
17460 * s/darwin.h: Remove dead code.
17461
17462 * m/template.h:
17463 * m/sparc.h:
17464 * m/mips.h:
17465 * m/m68k.h:
17466 * m/iris4d.h:
17467 * m/intel386.h:
17468 * m/ibms390x.h:
17469 * m/ibms390.h:
17470 * m/ia64.h:
17471 * m/hp800.h:
17472 * m/arm.h:
17473 * m/amdx86-64.h: Remove dead code and references to unused
17474 and compiler defined symbols.
17475
17476 * unexmips.c:
17477 * unexelf.c: Remove references to desupported systems.
17478
17479 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17480
17481 * m/powermac.h: Remove boilerplate comments.
17482 (NO_REMAP): Remove unused definition.
17483
17484 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17485 define them.
17486
174872008-07-10 Kenichi Handa <handa@m17n.org>
17488
17489 * xfont.c (xfont_open): Log the reason of failure.
17490
174912008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17492
17493 * fontset.c (fontset_get_font_group):
17494 * font.c (font_check_otf): Specify argument types.
17495
174962008-07-09 Kenichi Handa <handa@m17n.org>
17497
17498 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17499 non-ASCII char is found.
17500
17501 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17502 (reorder_font_vector): Change the arg preferred_family to font.
17503 Prefer the spec matching with font.
17504 (fontset_get_font_group): New function.
17505 (fontset_find_font): Change the format of an element of a realized
17506 fontset. Use fontset_get_font_group.
17507 (fontset_font): Try the current fontset, the default fontset, the
17508 fallbacks of the current fontset, and the fallbacks of the default
17509 fontset in this order.
17510 (face_for_char): Delete the shortcut to use the current font.
17511 (fontset_from_font): Don't set fonts for Latin in the fontset.
17512
17513 * font.h (font_make_object, font_match_p): Adjust prototypes.
17514
17515 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17516
17517 * font.c (font_make_object): New arg entity and pixelsize.
17518 (font_check_otf_features, font_check_otf): New functions.
17519 (font_match_p): Check :lang, :script, and :otf properties.
17520
17521 * xfont.c (xfont_open): Adjust it for the change of
17522 font_make_object.
17523 (xfont_text_extents): Fix initial setting of metrics.
17524
17525 * ftfont.c (struct ftfont_info): New member index, delete member
17526 fc_charset_idx. Make the member order compatible with struct
17527 xftfont_info.
17528 (fc_charset_table): Change charset names to registry names.
17529 (ftfont_pattern_entity): Delete the args registry and
17530 fc_charset_idx. Change the value of :font-entity property
17531 to (FONTNAME . INDEX). Always set :registry property to
17532 `iso10646-1'.
17533 (struct ftfont_cache_data): New struct.
17534 (ftfont_lookup_cache): New arg for_face.
17535 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17536 (ftfont_driver): Set the member otf_capability.
17537 (ftfont_get_charset): Adjust it for the change of
17538 fc_charset_table.
17539 (OTF_TAG_SYM): New macro.
17540 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17541 for the change of fc_charset_table.
17542 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17543 ftfont_pattern_entity. Add FC_INDEX to objset.
17544 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17545 and ftfont_pattern_entity.
17546 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17547 font_make_object, struct ftfont_info.
17548 (ftfont_has_char): Use ftfont_get_fc_charset.
17549 (ftfont_otf_features, ftfont_otf_capability): New functions.
17550 (ftfont_shape): Use ftfont_get_otf.
17551 (ftfont_text_extents): Fix initial setting of metrics.
17552
17553 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17554 member order compatible with struct ftfont_info.
bba3e508
SM
17555 (xftfont_open): Add FC_CHARSET to the pattern.
17556 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
17557 properties if appropriate.
17558 (xftfont_close): Unlock the face.
17559 (xftfont_anchor_point, xftfont_shape): Deleted.
17560 (syms_of_xftfont): Don't set members anchor_point and shape of
17561 xftfont_driver.
17562
17563 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17564 font_make_object.
17565
17566 * w32font.c (w32font_open): Adjust it for the change of
17567 font_make_object.
17568 (w32font_open_internal): Don't set properties of font_object here.
17569
175702008-07-08 Chong Yidong <cyd@stupidchicken.com>
17571
17572 * macfns.c (x_create_tip_frame):
17573 * w32fns.c (x_create_tip_frame):
17574 * xfns.c (x_create_tip_frame): Pass parameter argument to
17575 face-set-after-frame-default.
17576
17577 * xfaces.c (Finternal_merge_in_global_face): Save merged
17578 attributes for the default face back into the face vector.
17579
175802008-07-08 Andreas Schwab <schwab@suse.de>
17581
17582 * fontset.h: Declare fontset_from_font. Don't declare
17583 new_fontset_from_font and fontset_from_font_name.
17584 * xterm.c: Include "fontset.h".
17585 * Makefile.in (xterm.o): Update dependencies.
17586
175872008-07-08 Glenn Morris <rgm@gnu.org>
17588
17589 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17590 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17591
175922008-07-07 Chong Yidong <cyd@stupidchicken.com>
17593
17594 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17595 (x_set_frame_parameters): Don't bind it.
17596
175972008-07-07 Juanma Barranquero <lekktu@gmail.com>
17598
17599 * w32fns.c (map_w32_filename): Declare extern.
17600
176012008-07-07 Jason Rumney <jasonr@gnu.org>
17602
17603 * w32term.c (WS_EX_LAYERED): Define if not already.
17604
176052008-07-06 Chong Yidong <cyd@stupidchicken.com>
17606
17607 * xfaces.c (set_font_frame_param): Don't try to set the font
17608 parameter if it is still unspecified in the lface.
17609
176102008-07-05 Chong Yidong <cyd@stupidchicken.com>
17611
17612 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17613 face if it didn't already exist.
17614
17615 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17616
176172008-07-05 Andreas Schwab <schwab@suse.de>
17618
17619 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17620
176212008-07-05 Chong Yidong <cyd@stupidchicken.com>
17622
17623 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17624 word-wrapping.
17625 (IT_DISPLAYING_WHITESPACE): New macro.
17626 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17627 when word-wrapping. Simplify word-wrapping logic. Use correct
17628 pixel positions when saving copies of the iterator.
17629 (display_line): Use proper wrap point if the last character on a
17630 line was preceded by whitespace.
17631
176322008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17633
17634 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17635
176362008-07-04 Kenichi Handa <handa@m17n.org>
17637
17638 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17639
17640 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17641
176422008-07-02 Jason Rumney <jasonr@gnu.org>
17643
17644 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 17645 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
17646
17647 * xdisp.c (next_element_from_display_vector): Move assignment out
17648 of if statement.
17649
176502008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17651
17652 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17653
17654 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17655 (syms_of_fileio): Initialize and export them.
17656 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17657
17658 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17659 (Fsystem_move_file_to_trash): New function.
17660 (syms_of_w32fns): Export it to lisp.
17661
176622008-07-01 Jason Rumney <jasonr@gnu.org>
17663
17664 * w32font.c (w32font_text_extents): Don't count overhang as part
17665 of width.
17666
176672008-06-30 Miles Bader <miles@gnu.org>
17668
17669 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17670 Add `avoid_cursor_p' field.
17671
17672 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17673 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17674 (append_glyph, append_composite_glyph, produce_image_glyph)
17675 (append_stretch_glyph): Initialize avoid_cursor_p.
17676 (get_it_property): Rename from `get_line_height_property'.
17677 (x_produce_glyphs): Use get_it_property.
17678 (handle_line_prefix, push_display_prop): New functions.
17679 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17680 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17681 New variables.
17682 (syms_of_xdisp): Initialize them.
17683
176842008-06-30 Kenichi Handa <handa@m17n.org>
17685
17686 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17687 XftDefaultSubstitute (they are called in XftFontMatch).
17688 (xftfont_open): Fix args to ftfont_font_format.
17689
17690 * ftfont.c (fc_charset_table): New member lang.
17691 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 17692 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
17693 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17694 (ftfont_open): Fix args to ftfont_font_format.
17695 (ftfont_font_format): New arg filename.
17696
176972008-06-30 Chong Yidong <cyd@stupidchicken.com>
17698
17699 * xfaces.c (Finternal_merge_in_global_face): If default face was
17700 modified, realize it again. Update the font face attribute.
17701
177022008-06-29 Jason Rumney <jasonr@gnu.org>
17703
17704 * w32term.c (x_set_frame_alpha): Fix logic.
17705
177062008-06-29 Kenichi Handa <handa@m17n.org>
17707
17708 * fontset.c (Finternal_char_font): Return font-object instead of
17709 font-name.
17710
17711 * composite.c (get_composition_id): Fix the width calculation for TAB.
17712
177132008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17714
17715 * indent.c (Fvertical_motion): Properly handle float column arg.
17716
177172008-06-28 Jason Rumney <jasonr@gnu.org>
17718
17719 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17720 (pfnSetLayeredWindowAttributes): New function pointer.
17721 (w32_initialize): Initialize it when supported.
17722 (x_set_frame_alpha): New function.
17723
17724 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17725 (w32_frame_parm_handlers): Set alpha handler.
17726
17727 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17728
177292008-06-27 Jason Rumney <jasonr@gnu.org>
17730
17731 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17732 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17733 (w32_to_x_charset, x_to_w32_charset)
17734 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17735 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17736 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17737 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17738 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17739 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17740 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17741 (Qw32_charset_unicode): Remove.
17742 (syms_of_w32fns): Update for above changes.
17743
17744 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17745 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17746 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17747 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17748 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17749 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17750 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17751 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17752 (syms_of_w32font): Update for above changes.
17753
177542008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17755
17756 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17757 removed #if.
17758 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17759
177602008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 17761 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
17762
17763 * makefile.w32-in (LOCAL_FLAGS):
17764 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17765
17766 * sysdep.c (_spawnlp, _getpid):
17767 Declare with explicit _cdecl instead of _CRTAPI1.
17768
17769 * editfns.c (Fget_internal_run_time):
17770 Check for WINDOWSNT with #ifdef, not #if.
17771
177722008-06-26 Jason Rumney <jasonr@gnu.org>
17773
17774 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17775
17776 * w32term.c (x_draw_glyph_string_foreground)
17777 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17778 Use FONT_HANDLE macro.
17779 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17780
17781 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17782 (uniscribe_encode_char): Use FONT_HANDLE macro.
17783
17784 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17785 (w32font_text_extents): Use precast w32_font.
17786 (w32font_close): Free cached metrics.
17787 (w32font_open_internal): Allocate space for name on stack.
17788
177892008-06-26 Chong Yidong <cyd@stupidchicken.com>
17790
17791 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17792
177932008-06-26 Jason Rumney <jasonr@gnu.org>
17794
17795 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17796 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17797
177982008-06-26 Juanma Barranquero <lekktu@gmail.com>
17799
17800 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17801
178022008-06-26 Jason Rumney <jasonr@gnu.org>
17803
17804 * w32bdf.c, w32bdf.h: Remove obsolete files.
17805
17806 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17807
17808 * w32gui.h: Don't include w32bdf.h.
17809 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17810 Remove obsolete font support.
17811
17812 * w32font.h (struct w32font_info): Remove compat_w32_font.
17813 Add hfont member.
17814 (FONT_COMPAT): Remove obsolete macro.
17815
17816 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17817 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17818 (w32font_open_internal): Remove compat code. Set new hfont member.
17819 (Fx_select_font): Use new hfont member.
17820
17821 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17822 (uniscribe_encode_char): Use new hfont member.
17823
17824 * w32term.c (x_draw_glyph_string_foreground)
17825 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17826 (x_draw_glyph_string): Use metrics in w32font_info.
17827
178282008-06-26 Kenichi Handa <handa@m17n.org>
17829
17830 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17831
178322008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17833
17834 * unexnext.c:
17835 * m/ews4800.h:
17836 * m/hp9000s300.h:
17837 * m/ibm370aix.h:
17838 * m/mips-siemens.h:
17839 * m/ncr386.h:
17840 * m/next.h:
17841 * m/pmax.h:
17842 * m/powerpcle.h:
17843 * m/tandem-s2.h:
17844 * s/386bsd.h:
17845 * s/bsd386.h:
17846 * s/bsd4-1.h:
17847 * s/bsd4-2.h:
17848 * s/bsdos2-1.h:
17849 * s/bsdos2.h:
17850 * s/bsdos3.h:
17851 * s/bsdos4.h:
17852 * s/nextstep.h:
17853 * s/ultrix4-3.h:
17854 * s/usg5-0.h:
17855 * s/usg5-2-2.h:
17856 * s/usg5-2.h:
17857 * s/usg5-4-3.h:
17858 * s/ux4800.h:
17859 * s/uxpds.h:
17860 * s/uxpv.h: Remove support for obsolete systems.
17861 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 17862 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
17863 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17864 Remove, insert contents in s/aix4-2.h.
17865 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17866 * s/bsd4-3.h: Rename to ...
17867 * s/bsd-common.h: ... this.
17868 * data.c:
17869 * doc.c:
17870 * ecrt0.c:
17871 * emacs.c:
17872 * fileio.c:
17873 * floatfns.c:
17874 * keyboard.c:
17875 * mem-limits.h:
17876 * print.c:
17877 * process.c:
17878 * sysdep.c:
17879 * syssignal.h:
17880 * systty.h:
17881 * syswait.h:
17882 * term.c:
17883 * unexec.c:
17884 * unexelf.c:
17885 * unexhp9k800.c:
17886 * m/hp800.h:
17887 * m/ibmrs6000.h:
17888 * m/mips.h:
17889 * m/vax.h:
17890 * s/darwin.h:
17891 * s/freebsd.h:
17892 * s/gnu.h:
17893 * s/ms-w32.h:
17894 * s/msdos.h:
17895 * s/netbsd.h:
17896 * s/template.h: Remove references to obsolete variables.
17897
17898 * Makefile.in: Add dependencies for all unexec files.
17899 (admindir): Remove unused variable.
17900 (UNEXEC_SRC): Remove references.
17901
179022008-06-25 Chong Yidong <cyd@stupidchicken.com>
17903
17904 * xfns.c (x_default_font_parameter): If Xft is available, first
17905 try Monospace-12 for the default font.
17906
179072008-06-25 Jason Rumney <jasonr@gnu.org>
17908
17909 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17910
179112008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17912
17913 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17914
17915 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17916
179172008-06-25 Juanma Barranquero <lekktu@gmail.com>
17918
17919 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17920 <scroll-conservatively>: Fix typo in docstring.
17921
17922 * xselect.c (Fx_send_client_event): Doc fix.
17923
179242008-06-25 Kenichi Handa <handa@m17n.org>
17925
17926 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17927
17928 * font.c (font_parse_fcname): Remove unused variables.
17929 (font_sort_entites): Delete the arg SPEC. Caller changed.
17930 Fix for the case of ! best_only.
17931 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17932
17933 * lisp.h (Fstring_to_unibyte): EXFUN it.
17934
17935 * character.h (str_to_unibyte): Extern it.
17936
17937 * character.c (str_to_unibyte): New function.
17938
17939 * fns.c (Fstring_to_unibyte): New function.
17940 (syms_of_fns): Defsubr it.
17941
179422008-06-24 Kenichi Handa <handa@m17n.org>
17943
17944 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17945 DPI too.
17946 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17947
179482008-06-24 Andreas Schwab <schwab@suse.de>
17949
17950 * Makefile.in (${lispsource}loaddefs.el): Rename from
17951 ../lisp/loaddefs.el.
17952 (bootstrap-clean): Do what distclean does but don't remove
17953 Makefile.
17954 (distclean): Depend on bootstrap-clean and remove Makefile.
17955
179562008-06-24 Chong Yidong <cyd@stupidchicken.com>
17957
17958 * buffer.h (struct buffer): New member word_wrap.
17959
17960 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17961 word-wrap.
17962 (init_buffer_once): Initialize them.
17963
17964 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17965 line_wrap enum possessing three possible values.
17966
17967 * termopts.h: Replace truncate_partial_width_windows with
17968 Vtruncate_partial_width_windows.
17969
17970 * dispnew.c (direct_output_for_insert): Avoid direct output when
17971 inserting a space with word wrap on.
17972
17973 * indent.c (compute_motion): Obey integer values of
17974 truncate-partial-width-windows.
17975
17976 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17977 replacing truncate_partial_width_windows.
17978 (init_iterator): If Vtruncate_partial_width_windows is an integer,
17979 truncate only if the window width is below that integer.
17980 (start_display, resize_mini_window, produce_stretch_glyph)
17981 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
17982 (back_to_previous_visible_line_start, reseat_1):
17983 Reset string_from_display_prop_p.
aac0c6e3
MR
17984 (display_line): Extend default face to end of line when wrapping.
17985
179862008-06-24 Kim F. Storm <storm@cua.dk>
17987
17988 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
17989 to wrap continued lines at word boundaries.
17990
179912008-06-24 Jason Rumney <jasonr@gnu.org>
17992
17993 * font.c (Ffont_face_attributes): Multiply pixel size before point
17994 conversion to avoid multiplying rounding error.
17995
179962008-06-23 Jason Rumney <jasonr@gnu.org>
17997
17998 * w32term.c (x_draw_glyph_string_background)
17999 (x_draw_glyph_string): Remove old bdf font code.
18000
18001 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
18002
180032008-06-22 Kenichi Handa <handa@m17n.org>
18004
18005 * font.c (font_find_for_lface): Try the adstyle specified in
18006 the property of LFACE_FONT of LFACE (if any).
18007
180082008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18009 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
18010
18011 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
18012
180132008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
18014
18015 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
18016 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
18017 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
18018 (witness-emacs): Remove.
18019 (lisp, shortlisp): Move loaddefs.el earlier.
18020 (mostlyclean): Forget about witness-emacs.
18021
180222008-06-22 Glenn Morris <rgm@gnu.org>
18023
18024 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
18025 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
18026
180272008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18028
18029 * Makefile.in (PRECOMP): Remove.
18030 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
18031 (witness-emacs): Run `compile-first'.
18032 (.el.elc): Use the new compile-onefile target.
18033
180342008-06-21 Kenichi Handa <handa@m17n.org>
18035
18036 * xftfont.c (xftfont_open): Handle QCembolden only when
18037 FC_EMBOLDEN is defined.
18038
180392008-06-21 Andreas Schwab <schwab@suse.de>
18040
18041 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18042 (.el.elc): Likewise.
18043
180442008-06-21 Miles Bader <miles@gnu.org>
18045
18046 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18047 build dir, not the lisp source dir.
18048
180492008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18050
18051 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18052 (bootstrapclean): Remove.
18053 (.el.elc): New rule.
18054 (PRECOMP): New var.
18055 (../lisp/subdirs.el): Remove.
18056 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18057 (witness-emacs): New target.
18058 (mostlyclean): Remove witness-emacs as well.
18059 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18060 Add witness-emacs dependency.
18061
180622008-06-20 Chong Yidong <cyd@stupidchicken.com>
18063
18064 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18065 defined by the font.
18066
180672008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18068
18069 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18070 (bootstrap-clean): New target that keeps TAGS around.
18071 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18072 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18073
180742008-06-20 Jason Rumney <jasonr@gnu.org>
18075
18076 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18077 Remove obsolete font code.
18078
18079 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18080 to determine language support.
18081
180822008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18083
18084 * sysdep.c (cfsetspeed): New fun extracted from the code.
18085 (cfmakeraw): Move before first use.
18086
180872008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18088
18089 * sysdep.c (cfmakeraw): Provide fallback implementation.
18090 (serial_configure): Provide fallback implementation of cfsetspeed.
18091
180922008-06-20 Kenichi Handa <handa@m17n.org>
18093
18094 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18095 the pattern.
18096
18097 * fontset.c (fontset_from_font): Copy font_spec before changing
18098 the elements.
18099
18100 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18101
181022008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18103
18104 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18105 for explicit `font' parameters.
18106
18107 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18108
181092008-06-19 Kenichi Handa <handa@m17n.org>
18110
18111 * frame.c: Include <ctype.h>.
18112 (x_set_font_backend): Allow spacing characters in the X resource
18113 for FontBackend.
18114
181152008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18116
18117 * w32fns.c, xfns.c (Qfont_param): New var.
18118 (syms_of_w32fns): Initialize it.
18119 (x_default_font_parameter): Record explicit `font' into
18120 `font-parameter'.
18121
181222008-06-18 Kenichi Handa <handa@m17n.org>
18123
18124 * font.c (font_parse_xlfd): Fix previous change.
18125 (font_parse_fcname): Don't use :fc-unknown-spec.
18126 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18127 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18128 (font_add_log): Prepend the driver name to the resulting fonts.
18129
18130 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18131 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18132 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18133
18134 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18135 (QCembolden): New variables.
18136 (syms_of_xftfont): DEFSYM them.
18137 (xftfont_open): Call XftFontMatch. Don't trust the result of
18138 XftTextExtents8 if the pixel_size is less than 5.
18139
181402008-06-18 Andreas Schwab <schwab@suse.de>
18141
18142 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18143 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18144
181452008-06-18 Jason Rumney <jasonr@gnu.org>
18146
18147 * w32font.c (w32font_list, w32font_match): Add logging.
18148
18149 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18150
181512008-06-17 Chong Yidong <cyd@stupidchicken.com>
18152
18153 * font.c (font_parse_fcname): Store divider characters for
18154 unknown-spec list. For known key symbols, intern using correct
18155 symbol name.
18156
181572008-06-17 Kenichi Handa <handa@m17n.org>
18158
18159 * xfaces.c (realize_default_face): If the frame is not on window
18160 system, set the fontset of face to nil.
18161
181622008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18163
18164 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18165
181662008-06-16 Juanma Barranquero <lekktu@gmail.com>
18167
18168 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18169 (build_font_name_from_vector): Delete externs.
18170
18171 * xfaces.c (struct font_name): Don't declare.
18172
181732008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18174
18175 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18176
181772008-06-16 Chong Yidong <cyd@stupidchicken.com>
18178
18179 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18180
181812008-06-16 Juanma Barranquero <lekktu@gmail.com>
18182
18183 * font.c (Ffont_spec): Fix usage in docstring.
18184 (Ffont_face_attributes): Doc fix.
18185
181862008-06-16 Andreas Schwab <schwab@suse.de>
18187
18188 * font.c (Ffont_face_attributes): Fix definition.
18189
181902008-06-16 Jason Rumney <jasonr@gnu.org>
18191
18192 * font.h (font_style_symbolic_from_value): Remove.
18193
18194 * font.c (font_style_symbolic_from_value): Remove.
18195 (font_style_symbolic): Revert to pre 2008-06-13 version.
18196
18197 * w32font.c (w32_to_fc_weight): New function.
18198 (w32font_full_name, logfont_to_fcname): Use it.
18199
182002008-06-16 Kenichi Handa <handa@m17n.org>
18201
18202 * font.c (font_check_object): Delete it.
18203 (font_clear_cache): Check if a font-object is alive.
18204 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18205 font-object to nil.
18206 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18207 (font_at): Don't call font_check_object.
18208 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18209
182102008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18211
18212 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18213
182142008-06-16 Chong Yidong <cyd@stupidchicken.com>
18215
18216 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18217
182182008-06-15 Chong Yidong <cyd@stupidchicken.com>
18219
18220 * font.c (font_parse_fcname): Only one decimal point.
18221 (font_unparse_fcname): Handle data in family and foundry indices
18222 as symbols, not strings.
18223 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18224
18225 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18226
18227 * font.h (font_unparse_gtkname): Add prototype.
18228
182292008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18230
18231 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18232
182332008-06-15 Andreas Schwab <schwab@suse.de>
18234
18235 * font.c (font_update_drivers): Fix crash when no drivers match.
18236
182372008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18238
18239 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18240 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18241
182422008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18243
18244 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18245
182462008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18247
18248 * process.c (Fserial_process_configure, Fprocess_send_eof):
18249 Use EQ to compare Lisp_Objects.
18250
182512008-06-13 Jason Rumney <jasonr@gnu.org>
18252
18253 * w32fns.c (Fw32_select_font): Remove old font API function.
18254
18255 * w32font.c (logfont_to_fcname): New function.
18256 (Fx_select_font): New font dialog function compatible with
18257 GTK/fontconfig version.
18258
18259 * font.c (font_style_symbolic_from_value): New function.
18260 (font_style_symbolic): Use it.
18261
18262 * font.h (font_style_symbolic_from_value): Declare new function.
18263
182642008-06-13 Juanma Barranquero <lekktu@gmail.com>
18265
18266 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18267 <font-width-table>: Fix typos in docstrings.
18268
182692008-06-13 Daniel Engeler <engeler@gmail.com>
18270
18271 These changes add serial port access.
18272 * process.c: Add HAVE_SERIAL.
18273 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18274 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18275 (list_processes_1, select_wrapper, Fstop_process)
18276 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18277 (status_notify): Modify to handle serial processes.
18278 [HAVE_SERIAL] (Fserial_process_configure)
18279 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18280 New functions.
18281 * process.h (struct Lisp_Process): Add `type'.
18282 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18283 New functions.
18284 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18285 serial ports.
b71ac3dd 18286 (serial_open, serial_configure): New functions.
aac0c6e3
MR
18287 * w32.h: Add FILE_SERIAL.
18288 (struct _child_process): Add ovl_read, ovl_write.
18289
182902008-06-13 Kenichi Handa <handa@m17n.org>
18291
18292 * dispextern.h (enum lface_attribute_index): New member
18293 LFACE_FOUNDRY_INDEX.
18294
18295 * font.c (font_score): Delete arg alternate_families. Check only
18296 weight, slant, width, and size. Ignore the difference of alias
18297 style symbols.
18298 (font_sort_entites): Adjust for the above change. Reflect the
18299 order of font-driver to scores.
18300 (font_list_entities): Don't check alternate_familes here.
18301 (font_clear_prop): Handle foundry.
18302 (font_update_lface): Don't parse "foundry-family" form here.
18303 Handle FONT_FOUNDRY_INDEX.
18304 (font_find_for_lface): Likewise. Handle alternate families here.
18305 If registry is nil, try iso8859-1 and ascii-0.
18306 (font_open_for_lface): Pay attention to size in ENTITY.
18307 (font_open_by_name): Simplify by calling font_load_for_lface.
18308 (free_font_driver_list): Delete it.
18309 (font_update_drivers): Preserve the order of backends.
18310 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18311 of font_score and font_sort_entites.
18312 (font_update_sort_order): Likewise.
18313
18314 * xfaces.c (LFACE_FOUNDRY): New macro.
18315 (check_lface_attrs): Check foundry.
18316 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18317 (merge_face_vectors): Check foundry.
18318 (merge_face_ref): Likewise.
18319 (Finternal_set_lisp_face_attribute): Likewise.
18320 (x_update_menu_appearance): Likewise.
18321 (Finternal_get_lisp_face_attribute): Likewise.
18322 (lface_hash): Likewise.
18323 (lface_same_font_attributes_p): Likewise.
18324 (x_supports_face_attributes_p): Likewise.
18325 (tty_supports_face_attributes_p): Likewise.
18326 (Finternal_set_alternative_font_family_alist): Intern strings.
18327 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18328 (realize_default_face): Set LFACE_FOUNDRY (lface).
18329
18330 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18331 font-driver at first.
18332
18333 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18334
183352008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18336
18337 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18338
183392008-06-12 Jim Meyering <meyering@redhat.com>
18340
18341 Make unexec_free handle NULL the same way free does.
18342 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18343
183442008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18345
18346 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18347 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18348 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18349 (WEAK_ALIAS): Simplify.
18350 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18351 when searching a unibyte buffer.
18352
183532008-06-12 Chong Yidong <cyd@stupidchicken.com>
18354
18355 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18356
183572008-06-12 Juanma Barranquero <lekktu@gmail.com>
18358
18359 * w32font.c: Include ctype.h.
18360
183612008-06-11 Jason Rumney <jasonr@gnu.org>
18362
18363 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18364 misreported as space.
18365 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18366 as aliases for registry iso10646-1.
18367
183682008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18369
18370 * buffer.c (clone_per_buffer_values): Skip `name'.
18371
183722008-06-11 Chong Yidong <cyd@stupidchicken.com>
18373
18374 * font.c (font_parse_fcname): Fix last change; accept decimal
18375 points in font size.
18376
183772008-06-10 Jason Rumney <jasonr@gnu.org>
18378
18379 * w32uniscribe.c (add_opentype_font_name_to_list):
18380 Skip non unicode fonts.
18381
183822008-06-10 Chong Yidong <cyd@stupidchicken.com>
18383
18384 * xfns.c (Fx_font_dialog): New function.
18385
18386 * gtkutil.c (xg_dialog_response_cb): Rename from
18387 xg_file_response_callback.
18388 (pop_down_dialog): Rename from pop_down_file_dialog.
18389 (xg_get_file_name): Callers changed.
18390 (xg_get_font_name): New function.
18391
18392 * gtkutil.h (xg_get_font_name): Insert prototype.
18393
183942008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18395
18396 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18397 x_underline_minimum_display_offset.
18398 (syms_of_xdisp): Declare it here rather than in xterm.c.
18399 * dispextern.h (underline_minimum_offset): Declare it.
18400 * w32term.c (x_draw_glyph_string): Use it.
18401 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18402 (syms_of_xterm): Don't declare it any more.
18403 (x_draw_glyph_string): Adjust to the new name.
18404
8719abec 184052008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
18406
18407 * xterm.c (x_underline_minimum_display_offset): New var.
18408 (x_draw_glyph_string): Use it.
18409 (syms_of_xterm): Declare it.
18410
184112008-06-10 Chong Yidong <cyd@stupidchicken.com>
18412
18413 * font.c (font_parse_fcname): Accept GTK-style font names too.
18414
184152008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18416
18417 * dired.c (file_name_completion): Don't return t if the match is exact
18418 but with different capitalization.
18419 * minibuf.c (Ftry_completion): Simplify.
18420
18421 * window.c (Vwindow_point_insertion_type): New var.
18422 (set_window_buffer): Use it.
18423 (syms_of_window): Init and export it to Lisp.
18424
184252008-06-10 Kenichi Handa <handa@m17n.org>
18426
18427 * font.h (font_intern_prop): Prototype adjusted.
18428
18429 * font.c (font_intern_prop): New arg force_symbol.
18430 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18431 Adjust for the change of font_intern_prop.
18432
18433 * ftfont.c (ftfont_pattern_entity):
18434 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18435 (w32_registry):
18436 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18437 the change of font_intern_prop.
18438
184392008-06-09 Juanma Barranquero <lekktu@gmail.com>
18440
18441 * w32menu.c (digest_single_submenu): Declare extern.
18442
184432008-06-09 Jason Rumney <jasonr@gnu.org>
18444
18445 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18446
18447 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18448 (parse_single_submenu): Remove.
18449 (digest_single_submenu): Remove.
18450 (syms_of_w32menu): Don't initialise variables that have moved
18451 to menu.c.
18452 (set_frame_menubar): Sync with version in xmenu.c.
18453 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18454
18455 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18456 Make static again.
18457
184582008-06-09 Jason Rumney <jasonr@gnu.org>
18459
18460 Changes to w32 files related to the move of common menu code
18461 to menu.c on 2008-06-08 by Chong Yidong.
18462
18463 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18464 defs to w32gui.h.
18465 (single_keymap_panes, push_menu_item, push_menu_pane):
18466 Make globally visible.
18467
18468 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18469 (local_free, malloc_widget_value, free_widget_value)
18470 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18471 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18472 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18473 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18474 (menu_items, menu_items_allocated, menu_items_used)
18475 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18476 (init_menu_items, finish_menu_items, discard_menu_items)
18477 (grow_menu_items, push_submenu_start, push_submenu_end)
18478 (push_left_right_boundary, push_menu_pane, push_menu_item)
18479 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18480 (free_menubar_widget_tree_value, parse_single_submenu)
18481 (update_submenu_strings): Remove functions.
18482 (xmalloc_widget_value): Remove and declare extern.
18483
18484 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18485 (OBJ1): Build it.
18486
18487 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18488 (local_heap, local_alloc, local_free, malloc_widget_value)
18489 (free_widget_value): Define here.
18490
184912008-06-09 Kenichi Handa <handa@m17n.org>
18492
18493 * font.h (Qascii_0): Extern it.
18494
18495 * font.c (Qascii_0): New variable.
18496 (syms_of_font): DEFSYM it.
18497 (font_open_by_name): If the registry "iso8859-1" fails, try also
18498 "ascii-0".
18499
18500 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18501
185022008-06-08 Kenichi Handa <handa@m17n.org>
18503
18504 * .gdbinit (xfont): New command.
18505
185062008-06-08 Andreas Schwab <schwab@suse.de>
18507
18508 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18509 * Makefile.in (menu.o): Update dependencies.
18510
18511 * Makefile.in (obj): Always add menu.o.
18512 * emacs.c (main): Always call syms_of_menu.
18513 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18514
185152008-06-08 Chong Yidong <cyd@stupidchicken.com>
18516
18517 * Makefile.in: Compile menu.c.
18518
18519 * lisp.h: Declare syms_of_menu.
18520
18521 * emacs.c (main): Call syms_of_menu.
18522
18523 * keyboard.h: Relocate platform-independent menu definitions from
18524 xmenu.c.
18525
18526 * menu.c: New file. Relocate platform-independent menu
18527 definitions from xmenu.c. Suggested by Adrian Robert.
18528
18529 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 18530 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
18531 (menu_items_used, menu_items_n_panes)
18532 (menu_items_submenu_depth): Move to keyboard.h.
18533 (init_menu_items, finish_menu_items, unuse_menu_items)
18534 (discard_menu_items, restore_menu_items, save_menu_items)
18535 (grow_menu_items, push_submenu_start, push_submenu_end)
18536 (push_left_right_boundary, push_menu_pane, push_menu_item)
18537 (keymap_panes, single_keymap_panes, single_menu_item)
18538 (list_of_panes, list_of_items, find_and_call_menu_selection)
18539 (xmalloc_widget_value, free_menubar_widget_value_tree)
18540 (parse_single_submenu, digest_single_submenu)
18541 (update_submenu_strings): Move to menu.c.
18542
185432008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18544
18545 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18546
185472008-06-06 Miles Bader <miles@gnu.org>
18548
18549 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18550 face, not frame default.
18551
185522008-06-05 Martin Rudalics <rudalics@gmx.at>
18553
18554 * window.c (pop_up_windows, pop_up_frames)
18555 (display_buffer_reuse_frames, Vpop_up_frame_function)
18556 (Vdisplay_buffer_function, Veven_window_heights)
18557 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18558 (Vspecial_display_function, Vsame_window_buffer_names)
18559 (Vsame_window_regexps, split_height_threshold)
18560 (Vsplit_window_preferred_function): Move those vars to window.el.
18561 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18562 (Fdisplay_buffer): Move those functions to window.el.
18563 (syms_of_window): Remove corresponding declarations.
18564 (display_buffer): New function.
18565 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18566 * dispnew.c (Flast_nonminibuf_frame): New function.
18567 * buffer.c (Fpop_to_buffer): Move to window.el.
18568
185692008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18570
18571 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18572
185732008-06-05 Kenichi Handa <handa@m17n.org>
18574
18575 * coding.c (detect_coding): Fix previous change.
18576 (detect_coding_system): Likewise.
18577
185782008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18579
18580 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18581
18582 * keymap.c (Vminibuffer_local_filename_must_match_map):
18583 Rename from Vminibuffer_local_must_match_filename_map.
18584 (syms_of_keymap):
18585 * minibuf.c (Fcompleting_read): Adjust accordingly.
18586 * commands.h: Rename declaration as well.
18587
185882008-06-05 Kenichi Handa <handa@m17n.org>
18589
18590 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18591 family name.
18592 (Ffont_put): Likewise.
18593
18594 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18595 current font-spec.
18596
18597 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18598 is unspecified.
18599
18600 * xfaces.c (realize_x_face): If the font-related face attributes
18601 are the same as those of default face, realize a new fontset from
18602 default->fontset.
18603 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18604
186052008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18606
18607 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18608 (move_it_in_display_line): New wrapper.
18609
18610 * window.c (window_scroll_pixel_based_preserve_x)
18611 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18612 (window_scroll_pixel_based, window_scroll_line_based):
18613 Use them to preserve column positions.
18614 (syms_of_window): Initialize them.
18615
18616 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18617 (HPOS . VPOS) pair.
18618
18619 * dispextern.h (move_it_in_display_line): Declare.
18620
186212008-06-05 Juanma Barranquero <lekktu@gmail.com>
18622
18623 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18624 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18625 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18626
186272008-06-04 Juanma Barranquero <lekktu@gmail.com>
18628
18629 * window.c (Fset_window_parameter): Doc fix.
18630 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18631
186322008-06-04 Joakim Verona <joakim@verona.se>
18633
18634 * window.h (struct window): Add new member window_parameters.
18635
18636 * window.c (Fwindow_parameters, Fwindow_parameter)
18637 (Fset_window_parameter): New defuns.
18638 (syms_of_window): Defsubr the new defuns.
18639 (make_window): Initialize window_parameters to nil.
18640
186412008-06-04 John Paul Wallington <jpw@pobox.com>
18642
18643 * eval.c (Fdefmacro): Doc fix.
18644
186452008-06-04 Kenichi Handa <handa@m17n.org>
18646
18647 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18648 Be sure to call setup_coding_system when we find a proper coding system.
18649 (detect_coding_system): Fix handling of coding->head_ascii.
18650
186512008-06-03 Andreas Schwab <schwab@suse.de>
18652
18653 * font.c (font_prop_validate_spacing): Fix last change.
18654
186552008-06-03 Kenichi Handa <handa@m17n.org>
18656
18657 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18658 (font_parse_fcname): Fix handling of unknown key.
18659
18660 * xfont.c (xfont_list): Try an alias.
18661
18662 * charset.c (char_charset): Return NULL if the arg charset_list is
18663 specified and C doesn't belong to any of them.
18664
186652008-06-02 Chip Coldwell <coldwell@redhat.com>
18666
18667 * font.c (font_pixel_size): Don't take cdr of an integer.
18668
186692008-06-02 Jim Meyering <meyering@redhat.com>
18670
18671 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18672 * alloc.c (xfree): Return right away for a NULL arg.
18673 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18674 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18675 * mac.c (create_apple_event_from_event_ref): Likewise.
18676 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18677 Likewise.
18678 * doprnt.c (doprnt1): Likewise.
18679 * frame.c (frame): Likewise.
18680 * keyboard.c (wipe_kboard): Likewise.
18681 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18682 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18683 * term.c (tty_default_color_capabilities, maybe_fatal)
18684 (delete_tty): Likewise.
18685 * w16select.c (string): Likewise.
18686 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18687 * w32bdf.c (w32_free_bdf_font): Likewise.
18688 * w32fns.c (w32_unload_font): Likewise.
18689 * w32font.c (w32font_close): Likewise.
18690 * window.c (size_window): Likewise.
18691 * xselect.c (receive_incremental_selection): Likewise.
18692 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18693 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18694 * w32.c (stat): Likewise.
18695
18696 Remove useless if-before-free tests.
18697 * editfns.c (Fset_time_zone_rule): Likewise.
18698 * lread.c (nosuffix): Likewise.
18699 * ralloc.c (get_bloc): Likewise.
18700 * regex.c (reg_free): Likewise.
18701 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18702 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18703 * xsmfns.c (smc_save_yourself_CB): Likewise.
18704
187052008-06-02 Kenichi Handa <handa@m17n.org>
18706
18707 * font.c (font_find_for_lface): Handle float font size.
18708 (font_open_for_lface): Likewise.
18709
18710 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18711 comparing the properties.
18712
187132008-06-01 Jason Rumney <jasonr@gnu.org>
18714
18715 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18716 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18717 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18718 Don't add empty script list.
18719 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18720
187212008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18722
18723 * Makefile.in (dot, dotdot): Remove, update users.
18724 ".." has been used elsewhere in the file for a long time.
18725 (LIBXT_STATIC): Remove conditional based on unused variable.
18726
187272008-06-01 Miles Bader <miles@gnu.org>
18728
18729 * xfaces.c (Vface_remapping_alist): New variable.
18730 (syms_of_xfaces): Initialize it.
18731 (enum named_merge_point_kind): New type.
18732 (struct named_merge_point): Add `named_merge_point_kind' field.
18733 (push_named_merge_point): Make cycle detection respect different
18734 named-merge-point kinds.
18735 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18736 Remove face-name alias resolution.
18737 (lface_from_face_name): New definition using
18738 `lface_from_face_name_no_resolve'.
18739 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18740 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18741 (get_lface_attributes): New definition that layers face-remapping on
18742 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18743 (lookup_basic_face): New function.
18744 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18745 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18746 `get_lface_attributes'.
18747 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18748 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18749 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18750
18751 * xdisp.c (init_iterator): Pass base_face_id through
18752 `lookup_basic_face' when we actually use it as a face-id.
18753 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18754 DEFAULT_FACE_ID.
18755
18756 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18757 lookup the initial face-id.
18758
18759 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18760
187612008-06-01 Juanma Barranquero <lekktu@gmail.com>
18762
18763 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18764 (Fremove_text_properties): Fix typos in docstrings.
18765
187662008-05-31 Kenichi Handa <handa@m17n.org>
18767
18768 * font.c (font_list_entities): Fix the car part of data to be
18769 stored in the cache.
18770
18771 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18772
187732008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18774
18775 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18776 Add a `test' argument so another predicate than `equal' can be used.
18777 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18778 (map_char_table): Remove unused vars `c' and `i'.
18779 * lisp.h (Foptimize_char_table): Adjust declaration.
18780 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18781
187822008-05-30 Kenichi Handa <handa@m17n.org>
18783
18784 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18785 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18786 defined.
18787
187882008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18789
18790 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18791 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18792 frame-local settings for the same variable.
18793
187942008-05-30 Kenichi Handa <handa@m17n.org>
18795
18796 * fontset.c (Ffont_info): Move to font.c.
18797 (syms_of_fontset): Delete defsubr of Sfont_info.
18798
18799 * font.c (font_style_to_value, font_score): Delete casting of the
18800 args to xstcasecmp.
18801 (register_font_driver): Increment num_font_drivers only when
18802 registering the driver globally.
18803 (Ffont_info): Move from fontset.c. Handle a font object too.
18804 (syms_of_font): Defsubr Sfont_info.
18805
188062008-05-29 Kenichi Handa <handa@m17n.org>
18807
18808 * coding.h (enum define_coding_utf8_arg_index): New enum.
18809 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18810 coding_attr_utf_bom.
18811 (enum utf_bom_type): Rename from utf_16_bom_type.
18812 (struct utf_16_spec): Adjust for the above change.
18813 (struct coding_system): Add utf_8_bom in `spec' union.
18814
18815 * coding.c (CODING_UTF_8_BOM): New macro.
18816 (enum coding_category): Delete coding_category_utf_8, add
18817 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18818 coding_category_utf_8_sig.
18819 (CATEGORY_MASK_UTF_8): Delete it.
18820 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18821 (CATEGORY_MASK_UTF_8_SIG): New macros.
18822 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18823 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18824 CATEGORY_MASK_UTF_8_SIG.
18825 (CATEGORY_MASK_UTF_8): New macro.
18826 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18827 (detect_coding_utf_8): Check BOM.
18828 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18829 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18830 (encode_coding_utf_16): Likewise.
18831 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18832 (detect_coding, detect_coding_system): Handle utf-8-auto.
18833 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18834 (syms_of_coding): Fix setting up of Vcoding_category_table.
18835
188362008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18837
18838 * process.c (Faccept_process_output): If `millisec' is non-nil,
18839 `seconds' default to 0.
18840 (wait_reading_process_output): Also return non-nil if we read output
18841 from a non-running process.
18842
188432008-05-29 Jason Rumney <jasonr@gnu.org>
18844
18845 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18846 `raster' specified.
18847 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18848 in the uniscribe backend, but disallow any font that has no
18849 unicode subrange support.
18850
188512008-05-29 Juanma Barranquero <lekktu@gmail.com>
18852
18853 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18854 Fix typos in docstrings.
18855
188562008-05-29 Kenichi Handa <handa@m17n.org>
18857
18858 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18859 (Fx_family_fonts): Set frame correctly.
18860
188612008-05-28 Jason Rumney <jasonr@gnu.org>
18862
18863 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18864
188652008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18866
18867 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18868 calling build_annotations.
18869
188702008-05-28 Juanma Barranquero <lekktu@gmail.com>
18871
18872 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18873 (Fencode_coding_string):
18874 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18875 <latin-extra-code-table>: Fix typos in docstrings.
18876 (syms_of_coding) <coding-system-alist>: Doc fix.
18877 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18878
188792008-05-28 Kenichi Handa <handa@m17n.org>
18880
18881 * fontset.c (Ffont_info): Don't call font_close_object.
18882
18883 * font.c (font_parse_family_registry): Use Ffont_put to validate
18884 foundry and family.
18885 (font_delete_unmatched): Don't check spacing.
18886 (font_list_entities): Add spacing to the spec to list fonts.
18887
18888 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18889 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18890
18891 * coding.c (encode_coding_raw_text): Fix previous change.
18892 (encode_coding_object): When the dst_object is a buffer and is
18893 different from src_object, move gap to PT.
18894
188952008-05-27 Chong Yidong <cyd@stupidchicken.com>
18896
18897 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18898
188992008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18900
18901 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18902 all branches. Compute it differently.
18903
18904 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18905
189062008-05-27 Juanma Barranquero <lekktu@gmail.com>
18907
18908 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18909 into "else if () ... else ...".
18910
189112008-05-27 Jason Rumney <jasonr@gnu.org>
18912
18913 * w32font.c (w32font_open_internal): Determine if glyph indices
18914 are likely to work here.
18915
189162008-05-27 Chong Yidong <cyd@stupidchicken.com>
18917
18918 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18919 draw overlap glyphs with appropriate highlighting.
18920
189212008-05-27 Kenichi Handa <handa@m17n.org>
18922
18923 * xfont.c (xfont_open): Fix calculation of font->average_width.
18924
189252008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18926
18927 * casefiddle.c (casify_object): Try to guess better whether the
18928 argument is a byte or a char.
18929
189302008-05-26 Andreas Schwab <schwab@suse.de>
18931
18932 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18933 Always send multiples of format size.
18934
18935 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18936
189372008-05-26 Jason Rumney <jasonr@gnu.org>
18938
18939 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18940 (compute_metrics): Don't set failure if we just cleared the cache.
18941 (w32_weight_table): Remove unused variable.
18942 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18943 backwards compatibility.
18944
189452008-05-25 Kenichi Handa <handa@m17n.org>
18946
18947 * w32term.c (x_draw_glyph_string):
18948 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18949
18950 * xfaces.c: Delete unused function prototypes.
18951 (xstrlwr, font_frame): Delete them.
18952 (clear_face_cache): Delete unused variable.
18953
18954 * xftfont.c (xftfont_open): Delete unused variable.
18955 If underline_thickness is not 1, adjust underline_position.
18956
18957 * ftxfont.c (ftxfont_open): Delete unused variable.
18958
18959 * fontset.c (face_for_char): Optimize for the case of no charset
18960 property.
18961
18962 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18963 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18964 (otf_open, font_otf_capability, generate_otf_features)
18965 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18966 Comment out by surrounding "#if 0" and "#endif" for the moment.
18967 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18968 (syms_of_font): Codes for accessing above commented out.
18969
189702008-05-24 Eli Zaretskii <eliz@gnu.org>
18971
18972 * w32proc.c: Include dispextern.h.
18973
18974 * w32.c: Include dispextern.h.
18975
189762008-05-23 Juanma Barranquero <lekktu@gmail.com>
18977
18978 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18979 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18980 Fix typos in docstrings.
18981
189822008-05-23 Jason Rumney <jasonr@gnu.org>
18983
18984 * xsmfns.c: Remove includes that are already included by config.h.
18985
189862008-05-23 Kenichi Handa <handa@m17n.org>
18987
18988 * charset.c (Qemacs, charset_emacs): New variables.
18989 (char_charset): Fix for non-Unicode characters.
18990 (syms_of_charset): Define charset_emacs.
18991
18992 * w32term.c (x_draw_glyph_string): Be sure to update
18993 s->underline_thickness and s->underline_position. Be sure to draw
18994 underline within the current line area.
18995
18996 * xterm.c (x_draw_glyph_string): Be sure to update
18997 s->underline_thickness and s->underline_position. Be sure to draw
18998 underline within the current line area.
18999
19000 * fontset.c: Delete unused variables and add casting for char *
19001 throughout the file.
19002 (fontset_font): Try the fallback fonts of the current fontset
19003 before consulting the default fontset.
19004
19005 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
19006
19007 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
19008
190092008-05-22 Jason Rumney <jasonr@gnu.org>
19010
19011 * font.c: Don't include strings.h.
19012
19013 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
19014
19015 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
19016 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
19017 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
19018 to call xstrcasecmp.
19019
19020 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
19021
19022 * fontset.c (fs_query_fontset): Use xstrcasecmp.
19023
19024 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
19025
19026 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
19027
190282008-05-22 Kenichi Handa <handa@m17n.org>
19029
19030 * puresize.h (BASE_PURESIZE): Increase to 1220000.
19031
19032 * font.c (font_prop_validate_style): Adjust for the format
19033 change of font_style_table.
19034
19035 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
19036 two args.
19037
19038 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
19039 two args.
19040
190412008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19042
19043 * minibuf.c (keys_of_minibuf): Delete.
19044 * lisp.h (keys_of_minibuf): Delete.
19045 * emacs.c (main): Don't call keys_of_minibuf.
19046
190472008-05-22 Kenichi Handa <handa@m17n.org>
19048
19049 * ftfont.c (ftfont_resolve_generic_family): Rename from
19050 ftfont_list_generic_family. Return a single family for each
19051 generic family.
19052 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19053 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19054 Call font_add_log.
19055 (ftfont_match): Call font_add_log.
19056
19057 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19058 (FONT_DEBUG): Define it.
19059 (font_add_log): Extern it.
19060 (font_assert): Rename from xassert.
19061
19062 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19063 (xfont_list_family): Call font_add_log.
19064 (xfont_match): Likewise.
19065 (memq_no_quit): Delete.
19066
19067 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19068 call of Ffont_xlfd_name.
19069
19070 * xfaces.c (struct table_entry, slant_table, weight_table)
19071 (swidth_table): Move to font.c.
19072
19073 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19074 xassert are changed to font_assert. Delete many unused variables.
19075 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19076 New variables.
19077 (struct table_entry): Move from xfaces.c and modified.
19078 (weight_table, slant_table, width_table): Move from xfaces.c and
19079 contents adjusted for the change of struct table_entry.
19080 (font_style_to_value, font_style_symbolic): Adjust for the
19081 format change of font_style_table.
19082 (font_parse_family_registry): Don't overwrite existing foundry and
19083 family of font_spec.
19084 (font_score): Fix calculation of diff for sizes.
19085 (font_sort_entites): Call font_add_log.
19086 (font_delete_unmatched): Return a newly created list.
19087 (font_list_entities): Fix previous change. Call font_add_log.
19088 (font_matching_entity, font_open_entity, font_close_entity):
19089 Call font_add_log.
19090 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19091 (Finternal_set_font_style_table): Delete.
19092 (BUILD_STYLE_TABLE): New macro.
19093 (build_style_table): New function.
19094 (Vfont_log, font_log_env_checked): New variables.
19095 (font_add_log): New function.
19096 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19097 Declare Lisp variables "font-weight-table", "font-slant-table",
19098 "font-width-table", and "font-log". Initialize font_style_table.
19099
191002008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19101
19102 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19103
191042008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19105 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19106
19107 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19108 (Vframe_alpha_lower_limit): New variable.
19109 (x_set_alpha): New function.
19110
19111 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19112
19113 * xfns.c (x-create-frame, Qalpha):
19114 Initialize the frame parameter `alpha'.
19115 * xterm.c (OPAQUE, OPACITY): New.
19116 (x_set_frame_alpha): New function.
19117 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19118
19119 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19120 * w32fns.c (w32_frame_parm_handlers): Likewise.
19121
191222008-05-20 Jason Rumney <jasonr@gnu.org>
19123
19124 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19125 truetype fonts to opentype list.
19126
191272008-05-20 Juanma Barranquero <lekktu@gmail.com>
19128
19129 * fontset.c (Ffontset_info): Doc fix.
19130 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19131 <ignore-relative-composition>: Fix typos in docstrings.
19132
19133 * font.c (syms-of-font) <font-encoding-alist>:
19134 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19135 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19136 (Ffont_otf_alternates): Doc fixes.
19137
191382008-05-20 Kenichi Handa <handa@m17n.org>
19139
19140 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19141 font.h through out the file.
19142 (FONT_DRIVERS): Rename from FONTOBJ.
19143 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19144 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19145
19146 * emacs.c (main): Call syms_of_font unconditionally.
19147
19148 * font.h (find_font_encoding): Extern it.
19149
19150 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19151 fontset.c.
194d44e7 19152 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
19153 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19154 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19155 only when HAVE_WINDOW_SYSTEM is defined.
19156 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19157 when HAVE_WINDOW_SYSTEM is defined.
19158
19159 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19160 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19161
19162 * xfaces.c: Include font.h unconditionally.
19163 (merge_face_ref, merge_face_vectors)
19164 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19165
191662008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19167
19168 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19169 indirect_variable.
19170 * eval.c (lisp_indirect_variable): New fun.
19171 (Fuser_variable_p): Use it.
19172
191732008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19174
19175 * lisp.h (indirect_variable):
19176 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19177 Use Lisp_Symbol pointers rather than Lisp_Object.
19178 Adjust callers.
19179 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19180 To this end, change calling-convention.
19181
19182 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19183 if some non-hidden buffers are selected by string&pred.
19184
191852008-05-19 Chong Yidong <cyd@stupidchicken.com>
19186
19187 * process.c (wait_reading_process_output): Always check status
19188 when in batch mode.
19189
191902008-05-19 Kenichi Handa <handa@m17n.org>
19191
19192 * font.c (font_list_entities): Fix handling of cache.
19193 (font_matching_entity): Likewise.
19194
19195 * ftfont.c (cs_iso8859_1): Delete.
19196 (ft_face_cache): New variable.
19197 (struct ftfont_info): New member fc_charset_idx.
19198 (ftfont_build_basic_charsets): Delete.
19199 (fc_charset_table): New variable.
19200 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19201 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19202 Callers changed.
19203 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19204 (ftfont_spec_pattern): New argument fc_charset_idx.
19205 Check registry more rigidly. Change callers.
19206 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19207 change of :font-entity property of the font.
19208
19209 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19210 property of the font.
19211
192122008-05-18 Juanma Barranquero <lekktu@gmail.com>
19213
19214 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19215 (Funencodable_char_position, Fcheck_coding_systems_region)
19216 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19217 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19218 (Ffind_operation_coding_system, Fset_coding_system_priority)
19219 (Fcoding_system_eol_type): Doc fixes.
19220
192212008-05-17 Glenn Morris <rgm@gnu.org>
19222
19223 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19224
192252008-05-16 Eli Zaretskii <eliz@gnu.org>
19226
19227 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19228 and st_gid.
19229
19230 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19231 HAVE_WINDOW_SYSTEM is not defined.
19232
19233 * xfaces.c (merge_face_ref, merge_face_vectors)
19234 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19235 HAVE_WINDOW_SYSTEM is defined.
19236 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19237
192382008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19239
19240 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19241
192422008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19243
19244 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19245
192462008-05-15 Kenichi Handa <handa@m17n.org>
19247
19248 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19249 preference.
19250
192512008-05-15 Glenn Morris <rgm@gnu.org>
19252
19253 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19254
192552008-05-15 Chong Yidong <cyd@stupidchicken.com>
19256
19257 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19258 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19259
19260 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19261
192622008-05-15 Kenichi Handa <handa@m17n.org>
19263
19264 * ftfont.c (ftfont_list): Downcase family name to check generic
19265 families.
19266
19267 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19268 font-spec for QCfont value.
19269
19270 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19271 buffer. Check the return value of it.
19272
192732008-05-14 Jason Rumney <jasonr@gnu.org>
19274
19275 * w32term.c (w32_get_glyph_overhangs): Remove.
19276 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19277
192782008-05-14 Kenichi Handa <handa@m17n.org>
19279
19280 * font.c (font_prop_validate): Make nil a valid value.
19281 (font_clear_cache): Check if the cached vector of entities is nil
19282 or not.
19283
192842008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19285
19286 * emacs.c (main_thread): Conditionalize on
19287 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19288 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19289
19290 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19291 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19292 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19293
192942008-05-14 Kenichi Handa <handa@m17n.org>
19295
19296 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19297 has no corresponding coding system.
19298
192992008-05-14 Jason Rumney <jasonr@gnu.org>
19300
19301 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19302
19303 * w32font.h (w32font_open_internal): Update declaration.
19304
19305 * w32font.c (w32font_open_internal): Change last argument from
19306 w32font_info struct to font object. Fill in font object from
19307 font_entity. Get Outline metrics if possible. Use them to
19308 calculate underline position and thickness. Use xlfd name as name
19309 property. Don't set codepage.
19310 (w32font_open): Pass font_object to w32font_open_internal. Don't
19311 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19312 (w32font_draw): Use s->font.
19313 (clear_cached_metrics): Don't clear non-existent blocks.
19314
19315 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19316 font was not found.
19317 (x_draw_glyph_string): Use underline position and thickness from font.
19318
19319 * w32uniscribe.c (uniscribe_open): Pass font_object to
19320 w32font_open_internal.
19321
193222008-05-14 Kenichi Handa <handa@m17n.org>
19323
19324 These changes are to delete all legacy font-handling codes, and
19325 make Emacs use only font-backends.
19326
19327 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19328 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19329
19330 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19331
19332 * charset.h (Vcharset_non_preferred_head)
19333 (Vcurrent_iso639_language): Extern them.
19334
19335 * charset.c (Vcharset_non_preferred_head): New variable.
19336 (Vcurrent_iso639_language): New variable.
19337 (syms_of_charset): Declare it as a Lisp variable.
19338 (char_charset): Don't check non preferred charsets. As a last
19339 resort, return charset_unicode.
19340 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19341
19342 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19343 conditionals. Don't check enable_font_backend. Delete all codes
19344 used only when USE_FONT_BACKEND is not defined.
19345
19346 * dispextern.h (struct glyph_string): Change type of `font' to
19347 `struct font *'.
19348 (struct glyph_string): New member underline_position and
19349 underline_thickness.
19350 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
19351 (struct face): Change type of `font' to `struct font *'.
19352 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
19353 (per_char_metric, encode_char): Delete externs.
19354 (calc_pixel_width_or_height): Adjust the prototype.
19355
19356 * emacs.c (enable_font_backend): Delete extern.
19357 (main): Don't set enable_font_backend. Don't check the command
19358 line argument "-disable-font-backend".
19359
19360 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19361 (enum font_property_index): New members FONT_DPI_INDEX,
19362 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19363 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19364 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19365 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19366 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19367 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19368 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19369 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19370 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 19371 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
19372 (struct font): Many members from old "struct font_info" moved to
19373 here. Members font and entity deleted.
19374 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19375 the new font-related objects.
19376 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19377 (CHECK_FONT_GET_OBJECT): Likewise.
19378 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 19379 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
19380 (struct font_driver): New members case_sensitive anc check.
19381 Type of the member list and open changed.
aac0c6e3
MR
19382 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19383 (font_symbolic_width, font_find_object, font_get_spec)
19384 (font_set_lface_from_name): Delete extern.
19385 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19386
19387 * font.c: Include <strings.h>.
19388 (enable_font_backend): Delete it.
19389 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19390 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 19391 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
19392 (null_string): Delete it.
19393 (null_vector): Make it static.
19394 (font_family_alist): Delete it.
19395 (Qnormal): Extern it.
19396 (QCextra, QClanguage): Delete it.
19397 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19398 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 19399 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 19400 the string. Callers changed.
bba3e508 19401 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
19402 objects.
19403 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19404 (font_style_to_value, font_style_symbolic): New function.
19405 (build_font_family_alist): Delete it.
19406 (font_registry_charsets): Use Fassoc_string instead of
19407 assq_no_quit.
19408 (font_prop_validate_symbol): Don't return null_string.
bba3e508 19409 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
19410 style-related values in a font vector.
19411 (font_property_table): Delete entries for QClanguage and
19412 QCantialias, add entries for QCavgwidth.
19413 (get_font_prop_index): Delete the 2nd argument FROM.
19414 (font_prop_validate): Arguments changed.
bba3e508 19415 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
19416 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19417 (font_parse_fcname, font_unparse_fcname)
19418 (font_prepare_composition): Likewise.
ef1b0ba7 19419 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 19420 (otf_open): Delete the 1st arg entity.
bba3e508 19421 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
19422 (font_score): New arg alternate_families. Adjusted for the change
19423 of font-related objects.
19424 (font_sort_entites): New arg best_only.
19425 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19426 Delete them.
19427 (font_match_p): Check alternate families.
19428 (font_find_object): Delete it.
19429 (font_check_object): New function.
bba3e508 19430 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
19431 (font_delete_unmatched): New arg.
19432 (font_list_entities): Call font_driver->list with a spec that
19433 doesn't specify style-related properties.
19434 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 19435 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
19436 (font_close_object, font_has_char, font_encode_char)
19437 (font_get_name, font_get_spec): Likewise.
19438 (font_spec_from_name, font_clear_prop, font_update_lface):
19439 New functions.
19440 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19441 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 19442 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
19443 (font_range): New function.
19444 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 19445 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 19446 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 19447 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
19448 (Finternal_set_font_style_table): Arguments changed.
19449 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 19450 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
19451 change of font-related objects.
19452 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19453
19454 * fontset.h (struct font_info): Delete it. Most members go to
19455 struct font.
ef1b0ba7 19456 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
19457 (enum FONT_SPEC_INDEX): Delete it.
19458 (font_info, list_fonts_func, load_font_func, query_font_func)
19459 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
19460 (get_font_repertory_func, new_fontset_from_font_name):
19461 Delete externs.
aac0c6e3
MR
19462 (fontset_from_font_name): Extern it.
19463 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19464 (FONT_INFO_FROM_FACE): Deleted.
19465 (face_for_font): Adjust prototype.
19466
19467 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19468 conditionals. Don't check enable_font_backend. Delete all codes
19469 used only when USE_FONT_BACKEND is not defined.
19470 (get_font_info_func, list_font_func, load_font_func)
19471 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19472 (get_font_repertory_func): Delete them.
19473 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19474 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19475 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19476 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19477 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19478 (fontset_compare_rfontdef): New function.
19479 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19480 rfont-defs by qsort. Adjusted for the change of font-group vector.
19481 (load_font_get_repertory): Deleted.
19482 (fontset_find_font): Use new macros to ref/set elements of
19483 font-def and rfont-def.
19484 (fontset_font): Fix the timing of remembering that no font for C.
19485 (free_face_fontset): Do nothing if the face has no fontset.
19486 (face_suitable_for_char_p): Use new macros to ref/set elements of
19487 rfont-def.
19488 (face_for_char): Likewise. Call face_for_char with font_object.
19489 (fs_load_font): Delete. Delete #pragma surrounding it.
19490 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 19491 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
19492 font-spec.
19493 (Fset_fontset_font): Likewise. Use new macros to set elements of
19494 font-def.
19495 (Fnew_fontset): Use font_unparse_xlfd to generate
19496 FONTSET_ASCII (fontset).
19497 (new_fontset_from_font_name): Deleted.
ef1b0ba7 19498 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
19499 a fontset is already created for the font. FIx updating of
19500 Vfontset_alias_alist.
19501 (fontset_ascii_font): Deleted.
bba3e508 19502 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
19503 (Finternal_char_font): Likewise.
19504 (Ffontset_info): Likewise.
19505 (syms_of_fontset): Don't check load_font_func.
19506
19507 * fns.c (internal_equal): Handle PREV_FONT.
19508
19509 * frame.h: Delete USE_FONT_BACKEND conditional.
19510
19511 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19512 conditionals. Don't check enable_font_backend. Delete all codes
19513 used only when USE_FONT_BACKEND is not defined.
19514 (x_set_font): Call x_new_font, not x_new_fontset2.
19515 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19516 already set for the frame.
19517
bba3e508
SM
19518 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19519 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
19520 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19521 font property. If a font is scalable, set avgwidth property to 0.
19522 Set font-entity property by font_put_extra.
19523 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 19524 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19525 (ftfont_spec_pattern): New function.
19526 (ftfont_list): Return a list, not vector.
19527 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19528 (ftfont_list_family): Don't downcase names.
19529 (ftfont_free_entity): Deleted.
19530 (ftfont_open): Return a font-object. Adjusted for the change of
19531 struct font. Get underline_thickness and underline_position from
19532 font property. Don't update dpyinfo->smallest_font_height and
19533 dpyinfo->smallest_char_width.
19534 (ftfont_close): Don't free `struct font'.
bba3e508 19535 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
19536 (ftfont_encode_char, ftfont_text_extents): Likewise.
19537
19538 * ftxfont.c (ftxfont_list): Return a list, not vector.
19539 (ftxfont_open): Return a font-object. Adjusted for the change of
19540 struct font. Get underline_thickness and underline_position from
19541 font property. Don't update dpyinfo->smallest_font_height and
19542 dpyinfo->smallest_char_width.
19543 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 19544 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 19545
bba3e508
SM
19546 * image.c (image_ascent): Don't include "charset.h".
19547 Include "character.h" and "font.h".
aac0c6e3
MR
19548
19549 * lisp.h (enum pvec_type): New member PREV_FONT.
19550 (Fassoc_string): EXFUN it.
19551
19552 * print.c: Include font.h.
19553 (print_object): Handle font-related objects.
19554
19555 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19556 conditionals. Don't check enable_font_backend. Delete all codes
19557 used only when USE_FONT_BACKEND is not defined.
19558 (handle_auto_composed_prop): Do nothing if it->f is not on a
19559 window system. Check how many following characters can be
19560 displayed by the same font.
19561 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19562 'struct font *'.
19563 (get_char_face_and_encoding): Assign the whole encoding task to
19564 the `encode-char' method of a font driver.
bba3e508 19565 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
19566 face' and `struct glyph_string'.
19567 (fill_glyph_string): Likewise.
19568 (get_per_char_metric): Arguments changed.
bba3e508 19569 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
19570 and `struct glyph_string'.
19571 (produce_stretch_glyph, calc_line_height_property)
19572 (x_produce_glyphs): Likewise.
19573
19574 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19575 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
19576 used only when USE_FONT_BACKEND is not defined.
19577 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
19578 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19579 (Qp): Extern them.
19580 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19581 Deleted.
19582 (struct font_name): Deleted.
19583 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19584 (compare_fonts_by_sort_order): New function.
19585 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19586 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19587 Deleted.
19588 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19589 compare_fonts_by_sort_order.
19590 (Fx_font_family_list): Call Ffont_family_list.
19591 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19592 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19593 (face_symbolic_slant, face_symbolic_swidth)
19594 (split_font_name_into_vector, build_font_name_from_vector)
19595 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19596 (font_rescale_ratio, split_font_name, build_font_name)
19597 (free_font_names, sort_fonts, x_face_list_fonts)
19598 (face_font_available_p, sorted_font_list, cmp_font_names)
19599 (font_list_1, concat_font_list, font_list, remove_duplicates):
19600 Deleted.
19601 (Fx_list_fonts): Use Ffont_list.
19602 (LFACE_AVGWIDTH): Deleted.
19603 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19604 by FONTP.
19605 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19606 (set_lface_from_font_name): Delete it.
ef1b0ba7 19607 (set_lface_from_font): Rename from
aac0c6e3
MR
19608 set_lface_from_font_and_fontset. Caller changed. Don't set
19609 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19610 for face.
19611 (merge_face_vectors): Copy font-spec if necessary.
19612 Clear properties of the font-spec if necessary.
19613 (merge_face_ref): Clear properties of the font-spec if necessary.
19614 (Finternal_set_lisp_face_attribute): Likewise.
19615 (set_font_frame_param): Use font_load_for_lface to load a
19616 font-object, and call Fmodify_frame_parameters with it.
19617 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19618 font name by Ffont_xlfd_name.
19619 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19620 QCslant, and QCwidth.
19621 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19622 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19623 Compare fonts by EQ.
19624 (lookup_non_ascii_face): Deleted.
19625 (face_for_font): The 2nd argument changed.
19626 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19627 Check atomic font properties by case insensitive.
19628 (realize_non_ascii_face): Set face->overstrike correctly.
19629 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19630 (dump_realized_face): Get font name from
19631 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19632
19633 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19634 conditionals. Don't check enable_font_backend. Delete all codes
19635 used only when USE_FONT_BACKEND is not defined.
19636 (xic_create_xfontset): Original code deleted and renamed from
19637 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19638 (x_make_gc): Don't set GCFont in GCs.
19639 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19640 opened by "fixed".
19641 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19642 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19643 get_font_repertory_func.
19644
19645 * xfont.c: Include <stdlib.h> and "ccl.h".
19646 (struct xfont_info): New structure.
19647 (xfont_query_font): Deleted.
ef1b0ba7 19648 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 19649 moved from xterm.c.
bba3e508 19650 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 19651 (compare_font_names): New function.
ef1b0ba7
SM
19652 (xfont_list_pattern): Sort font names case insensitively.
19653 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
19654 (xfont_list): Return a list, not vector.
19655 (xfont_match): If the font doesn't have QCname property, generate
19656 a name from the other font properties.
19657 (xfont_open): Return a font-object. Adjusted for the change of
19658 struct font. Get underline_thickness and underline_position from
19659 font property. Don't update dpyinfo->smallest_font_height and
19660 dpyinfo->smallest_char_width.
19661 (xfont_close): Don't free struct font.
bba3e508 19662 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 19663 (xfont_done_face): Deleted.
bba3e508 19664 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
19665 (xfont_encode_char, xfont_draw): Likewise.
19666 (xfont_check): New function.
19667
bba3e508 19668 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 19669 callback function.
bba3e508
SM
19670 (xftfont_match): Adjust for the format change of font-entity.
19671 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
19672 font-object. Adjusted for the change of struct font. Return a
19673 font-object. Don't update dpyinfo->smallest_font_height and
19674 dpyinfo->smallest_char_width.
19675 (xftfont_close): Block input while calling XftFontClose.
19676 (xftfont_prepare_face): Don't block input while calling
19677 xftfont_get_colors. Adjusted for the change of struct font.
19678 (xftfont_shape): Return value of error case fixed.
19679
19680 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19681
19682 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19683 conditionals.
19684 (FONT_WIDTH): Return (f)->max_width.
19685 (struct x_display_info): Delete member `font'.
19686 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19687 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19688 (struct x_output): Change type of `font' to `struct font *'.
19689
19690 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19691 conditionals. Don't check enable_font_backend. Delete all codes
19692 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19693 (x_per_char_metric, x_encode_char): Deleted.
19694 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 19695 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
19696 `struct face'.
19697 (x_draw_glyph_string_foreground)
19698 (x_draw_composite_glyph_string_foreground): Likewise.
19699 (x_draw_glyph_string): Likewise. Use font->underline_position and
19700 font->underline_thickness.
ef1b0ba7 19701 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
19702 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19703 (x_check_font): Call `check' method of a font driver.
19704 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19705 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 19706 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 19707 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
19708 redisplay_interface'.
19709
19710 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19711 conditionals. Don't check enable_font_backend. Delete all codes
19712 used only when USE_FONT_BACKEND is not defined. Surround non-used
19713 code by "#ifdef OLD_FONT" and "endif".
19714 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19715
19716 * w32font.h (struct w32font_info): New member.
19717 (FONT_COMPAT): New macro.
19718 (w32font_open_internal): Prototype adjusted.
19719
19720 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19721 OLD_FONT" and "endif".
19722
19723 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19724 conditionals. Don't check enable_font_backend. Delete all codes
19725 used only when USE_FONT_BACKEND is not defined.
19726 (w32font_open): Return a font-object. Make a font-object by
19727 font_make_object. Adjusted for the change of struct w32font_info.
19728 (w32font_close): Don't free struct font. Adjusted for the change
19729 of struct w32font_info.
19730 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 19731 Adjust for the change of struct w32font_info.
aac0c6e3
MR
19732 (w32font_draw): Likewise.
19733 (w32font_list_internal): Return a list, not vector.
19734 (w32font_open_internal): Change the 4th arg to font-object.
19735 Adjusted for the change of struct w32font_info and font-object format.
19736 (add_font_name_to_list): Don't downcase names.
19737 (w32_enumfont_pattern_entity): Make a font-entity by
19738 font_make_entity. Adjusted for the format change of font-entity.
19739 Use FONT_SET_STYLE to set a style-related font property. If a
19740 font is scalable, set avgwidth property to 0. Set font-entity
19741 property by font_put_extra.
bba3e508 19742 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
19743 (w32_weight_table, w32_decode_weight): New variables.
19744 (w32_encode_weight): New function.
bba3e508 19745 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
19746 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19747 weight value.
bba3e508 19748 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19749
19750 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19751 conditionals. Don't check enable_font_backend. Surround non-used
19752 code by "#ifdef OLD_FONT" and "endif".
19753 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 19754 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
19755
19756 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19757 conditionals. Don't check enable_font_backend. Delete all codes
19758 used only when USE_FONT_BACKEND is not defined. Surround non-used
19759 code by "#ifdef OLD_FONT" and "endif".
19760
19761 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19762 (uniscribe_open): Return value changed to font-object.
19763 Adjusted for the format change of font-object.
bba3e508 19764 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 19765 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 19766 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
19767 font_driver.
19768
197692008-05-13 Chong Yidong <cyd@stupidchicken.com>
19770
19771 * dispnew.c (update_frame_1): Check if tty output is still valid
19772 before flushing it.
19773
197742008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19775
19776 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19777 to Gtk+ menus.
19778
197792008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19780
19781 * dired.c (file_name_completion): Tweak the code so as to always do it
19782 in a single pass. Tighten the scope of some variables.
19783
19784 * dired.c (Qdefault_directory): New var.
19785 (file_name_completion): Use it instead of Fexpand_file_name.
19786 (syms_of_dired): Initialize it.
19787
197882008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19789
19790 * fileio.c (double_dollars): Remove dead code.
19791
197922008-05-10 Eli Zaretskii <eliz@gnu.org>
19793
19794 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19795 Mention w32-get-true-file-attributes in doc string.
19796
19797 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19798
197992008-05-09 Glenn Morris <rgm@gnu.org>
19800
19801 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19802 2008-04-23.
19803
198042008-05-09 Eli Zaretskii <eliz@gnu.org>
19805
19806 Support for reporting owner and group of each file on MS-Windows:
19807 * dired.c (stat_uname, stat_gname): New functions, with special
19808 implementation for w32.
19809 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19810
19811 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19812 (dflt_group_name): New static variable.
19813 (dflt_group): Rename from the_group.
19814 (init_user_info): Init dflt_group fields. Get user's group name
19815 from LookupAccountSid.
19816 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19817 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19818 New initialization states.
19819 (globals_of_w32): Initialize them to zero. Initialize the default
19820 group name to "None".
19821 (GetFileSecurity_Name): New global var, the name of the function
19822 to call for GetFileSecurity.
19823 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19824 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19825 (get_file_security, get_security_descriptor_owner)
19826 (get_security_descriptor_group, is_valid_sid)
19827 (get_file_security_desc, get_rid, get_name_and_id)
19828 (get_file_owner_and_group): New functions.
19829 (stat): Use get_file_security_desc and get_file_owner_and_group to
19830 report the owner and primary group of each file. Don't ignore the
19831 high 32 bits of file's size, now that st_size is 64-bit wide.
19832 Fix test when to get true file attributes.
19833 (init_user_info): Use get_rid instead of equivalent inline code.
19834 (fstat): Don't ignore the high 32 bits of file's size.
19835
198362008-05-09 Chong Yidong <cyd@stupidchicken.com>
19837
19838 * image.c (png_load): Use correct bit-depth for setting background
19839 color.
19840
198412008-05-08 Eli Zaretskii <eliz@gnu.org>
19842
19843 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19844 epa-hook.elc.
19845
198462008-05-08 Juanma Barranquero <lekktu@gmail.com>
19847
19848 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19849
198502008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19851
19852 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19853 because the original parameters are in pure storage now.
19854 (mac_window): Remove unused params. Update callers.
19855
198562008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19857
19858 * lread.c (substitute_object_recurse): Use lower-level primitives.
19859 Don't signal errors when traversing sub-char-tables.
19860 Don't loop over all the possible characters when traversing char-tables.
19861
19862 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19863 just like we do in print.c.
19864
198652008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19866
19867 * minibuf.c (Ftry_completion): Remove code left over from when we used
19868 scmp instead of Fcompare_strings.
19869
198702008-05-04 Juanma Barranquero <lekktu@gmail.com>
19871
19872 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19873
198742008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19875
19876 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19877 Create bitmap context in native byte order.
19878
19879 * macterm.c (XDrawLine)
19880 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19881 context in native byte order.
19882
198832008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19884
19885 * config.in: Regenerate.
19886
19887 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19888 New definitions for Image I/O support.
19889 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19890 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19891 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19892 (mac_data_provider_release_data, image_load_image_io)
19893 [USE_MAC_IMAGE_IO]: New functions.
19894 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19895 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19896 (init_image_func_pointer) [MAC_OSX]: Remove function.
19897 (image_load_quartz2d) [MAC_OSX]: Check availability of
19898 CGImageCreateWithPNGDataProvider at compile time.
19899 Use lowercase `false' for boolean constant.
19900 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19901 Use image_load_image_io.
19902 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19903 Don't check MyCGImageCreateWithPNGDataProvider.
19904 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19905 Don't call init_image_func_pointer.
19906
19907 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19908
19909 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19910 Make variable non-static.
19911 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19912 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19913
19914 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19915 (RED_FROM_ULONG): Mask off higher bits.
19916 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19917
19918 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19919 Include AvailabilityMacros.h.
19920 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19921 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19922
199232008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19924
19925 * chartab.c (Fset_char_table_range): If range is t, really set all
19926 chars to that value.
19927
199282008-05-03 Eli Zaretskii <eliz@gnu.org>
19929
19930 * dired.c (Ffile_attributes): Don't allow the device number become
19931 negative.
19932
199332008-05-02 Daiki Ueno <ueno@unixuser.org>
19934
19935 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19936
199372008-05-02 Juri Linkov <juri@jurta.org>
19938
19939 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19940 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19941 DEFAULT argument as a list of default values in docstrings.
19942
199432008-05-01 Chong Yidong <cyd@stupidchicken.com>
19944
19945 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19946
199472008-05-01 Martin Rudalics <rudalics@gmx.at>
19948
19949 * dispnew.c (change_frame_size_1): Preserve small windows when
19950 shrinking frames by calling set_window_height|width with third
19951 arg 2.
19952
19953 * window.h (struct window): Replace field too_small_ok by field
19954 resize_proportionally.
19955
19956 * window.c (make_window): Initialize resize_proportionally.
19957 (enlarge_window): Temporarily set resize_proportionally to make
19958 sure that shrink_windows does scale the window proportionally.
19959 (shrink_windows): When window has resize_proportionally set try
19960 to shrink it proportionally by stealing from other windows.
19961 (struct saved_window, Fset_window_configuration)
19962 (compare_window_configurations): Handle resize_proportionally.
19963 (WINDOW_TOTAL_SIZE): New macro.
19964 (window_min_size, shrink_windows, size_window): Use it.
19965 (check_min_window_sizes): Remove. Invalid values of
19966 window-min-height|width are handled by window_min_size_2 now.
19967 (size_window, Fsplit_window, enlarge_window)
19968 (adjust_window_trailing_edge, grow_mini_window): Don't call
19969 check_min_window_sizes.
19970 (window_min_size_2, window_min_size_1, window_min_size):
19971 New argument safe_p for retrieving "safe" minimum sizes.
19972 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19973 (adjust_window_trailing_edge, grow_mini_window):
19974 Adjust arguments of window_min_size... functions.
19975 (shrink_windows): Argument min_size removed. New argument
19976 safe_p allows shrinking windows to their safe minimum sizes.
19977 Calculate minimum size and decide whether a window shall be
19978 deleted for each window individually.
19979 (size_window): When nodelete_p equals 2, tell shrink_windows to
19980 delete windows only if their new minimum size is no more safe.
19981 (shrink_window_lowest_first): Call window_min_size_1 to make
19982 sure to preserve modeline of bottom-most window when resizing
19983 the minibuffer.
19984 (Fset_window_configuration, Fcurrent_window_configuration)
19985 (compare_window_configurations): Do not handle
19986 window-min-height|width any more.
19987 (syms_of_window): Clarify window-min-height|width doc-strings.
19988
199892008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
19990
19991 * dired.c (file_name_completion): Fix up the encoding/decoding issue
19992 some more. Copy some of the code from Ftry_completions.
19993 Remove special case code that dates back to initial revision when the
19994 slash was only added when necessary and that can't trigger nowadays.
19995
199962008-04-27 Kenichi Handa <handa@m17n.org>
19997
19998 * font.c (font_prop_validate): Signal `error' instead of `font'.
19999
200002008-04-29 Jason Rumney <jasonr@gnu.org>
20001
20002 * w32fns.c (Fw32_battery_status): New defun.
20003 (syms_of_w32fns): Defsubr it.
20004
200052008-04-28 Andreas Schwab <schwab@suse.de>
20006
20007 * dired.c (file_name_completion): Fix another mixing of encoded
20008 and decoded names.
20009
200102008-04-28 Juanma Barranquero <lekktu@gmail.com>
20011
20012 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
20013
200142008-04-27 Juanma Barranquero <lekktu@gmail.com>
20015
20016 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
20017
200182008-04-27 Andreas Schwab <schwab@suse.de>
20019
20020 * dired.c (file_name_completion): Fix inappropriate mixing of
20021 encoded and decoded names.
20022
20023 * xterm.c (XTread_socket): Fix use of uninitialized variable.
20024
20025 * puresize.h (BASE_PURESIZE): Increase to 1200000.
20026
200272008-04-26 Eli Zaretskii <eliz@gnu.org>
20028
20029 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
20030 2008-03-31, it's not needed anymore with `struct stat' definition
20031 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
20032 for the same reasons.
20033
200342008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
20035
20036 * m/sparc.h: Additional redefinitions for GNU/Linux.
20037
200382008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20039
20040 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
20041 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20042 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20043 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20044 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20045 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20046 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20047 Likewise.
20048
20049 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20050 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20051 (mac_ax_number_of_characters): Add externs.
20052 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20053 [USE_MAC_TSM]: Likewise.
20054 (mac_handle_text_input_event) [MAC_OSX]:
20055 Handle kEventTextInputOffsetToPos for no active input area case.
20056 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20057 (mac_handle_document_access_event)
20058 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20059 (install_application_handler) [MAC_OSX]: Register handlers for
20060 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20061 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20062 Register mac_handle_document_access_event.
20063
20064 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20065 Make functions non-static.
20066
200672008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20068
20069 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20070 (read_file_name_completion_ignore_case, insert_default_directory)
20071 (Qdefault_directory): Move to minibuffer.el.
20072 (Fread_file_name): Call the new `read-file-name' instead.
20073
200742008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20075
20076 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20077 Make function non-static.
20078 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20079 Remove function.
20080 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20081 Move to mactoolbox.c.
20082 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20083
20084 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20085 (mac_rect_make): New macro.
20086
20087 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20088 instead of float.
20089 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20090 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20091 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20092 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20093 CGRectMake.
20094 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20095 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20096 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20097 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20098 instead of WindowRef in argument type.
20099 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20100 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20101 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20102 instead of DISPLAY. All uses changed.
20103 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20104 (x_calc_absolute_position): Simplify so as not to use
20105 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20106
20107 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20108 instead of WindowRef in argument type.
20109 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20110 [TARGET_API_MAC_CARBON]: Remove externs.
20111 (create_apple_event, mac_event_parameters_to_lisp)
20112 [TARGET_API_MAC_CARBON]: Add externs.
20113
20114 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20115 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20116 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20117 is clicked.
20118 (x_activate_menubar): Remove extern for saved_menu_event_location.
20119 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20120 Move from mac.c.
20121
201222008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20123
20124 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20125 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20126
201272008-04-23 Jason Rumney <jasonr@gnu.org>
20128
20129 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20130 attributes only for local files.
20131
20132 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20133 default to Qlocal.
20134
201352008-04-22 Juri Linkov <juri@jurta.org>
20136
20137 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20138 read-buffer-to-switch instead of using the letter "B".
20139
201402008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20141
20142 * fileio.c (Qdefault_directory): New variable.
20143 (Fread_file_name): Use it to pass `dir' to the completion functions.
20144
201452008-04-20 Chong Yidong <cyd@stupidchicken.com>
20146
20147 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20148
201492008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20150
20151 * keyboard.c (Vpre_help_message): Remove.
20152 (show_help_echo): Remove default C code.
20153
20154 * dired.c (directory_files_internal, file_name_completion):
20155 Only call ENCODE_FILE if the string is indeed decoded.
20156
201572008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20158
20159 * Makefile.in (TOOLKIT_DEFINES): Remove.
20160 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20161
201622008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20163
20164 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20165 (mactoolbox.o): New target.
20166
20167 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20168 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20169
20170 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20171 Use mac_set_frame_window_background instead of XSetWindowBackground.
20172 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20173 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20174 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20175 instead of SetWindowTitleWithCFString.
20176 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20177 Move function to mactoolbox.c.
20178 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20179 Use mac_set_window_modified instead of SetWindowModified.
20180 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20181 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20182 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20183 FrontNonFloatingWindow. Use mac_activate_window instead of
20184 ActivateWindow. Use mac_active_non_floating_window instead of
20185 ActiveNonFloatingWindow.
20186 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20187 Use mac_show_hourglass and mac_hide_hourglass.
20188 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20189 instead of GetGlobalMouse.
20190 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20191 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20192 Use mac_bring_window_to_front instead of BringToFront.
20193 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20194 mactoolbox.c.
20195 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20196 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20197 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20198 mactoolbox.c.
20199
20200 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20201 (XtPointer): Move typedef from macmenu.c.
20202 (enum button_type): Move enum from macmenu.c.
20203 (widget_value): Move typedef from macmenu.c.
20204 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20205 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20206 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20207 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20208 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20209 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20210 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20211 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20212 (Selection): Move typedef from macselect.c.
20213 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20214 macterm.c.
20215 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20216 (mac_is_window_collapsed, mac_bring_window_to_front)
20217 (mac_send_window_behind, mac_hide_window, mac_show_window)
20218 (mac_collapse_window, mac_front_non_floating_window)
20219 (mac_active_non_floating_window, mac_activate_window)
20220 (mac_move_window_structure, mac_move_window, mac_size_window)
20221 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20222
20223 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20224 (enum mac_menu_kind): Move enum to mactoolbox.c.
20225 (min_menu_id): Move variable to mactoolbox.c.
20226 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20227 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20228 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20229 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20230 [TARGET_API_MAC_CARBON]: Likewise.
20231 (XtPointer): Move typedef to macgui.h.
20232 (enum button_type): Move enum to macgui.h.
20233 (widget_value): Move typedef to macgui.h.
20234 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20235 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20236 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20237 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20238 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20239 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20240 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20241 (popup_activated_flag): Make variable non-static.
20242 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20243 (add_menu_item, fill_menu, dispose_menus):
20244 Move functions to mactoolbox.c.
20245 (restore_show_help_function, menu_target_item_handler)
20246 (install_menu_target_item_handler, mac_handle_dialog_event)
20247 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20248 [TARGET_API_MAC_CARBON]: Likewise.
20249 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20250 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20251 (find_and_call_menu_selection, name_is_separator): Make function
20252 non-static.
20253 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20254 to mactoolbox.c.
20255 (set_frame_menubar): Don't call install_menu_quit_handler.
20256 (menu_item_selection): New variable.
20257 (mac_menu_show): Use create_and_show_popup_menu.
20258 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20259 selection but set variable menu_item_selection. All uses changed.
20260 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20261 Call install_menu_quit_handler. Move to mactoolbox.c.
20262
20263 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20264 (Selection): Move typedef to macgui.h.
20265 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20266 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20267 Make variables non-static.
20268 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20269 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20270 Make functions non-static.
20271 (Vmac_service_selection) [MAC_OSX]: Likewise.
20272 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20273 (mac_valid_selection_target_p, mac_clear_selection)
20274 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20275 (mac_put_selection_value, mac_selection_has_target_p)
20276 (mac_get_selection_value, mac_get_selection_target_list)
20277 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20278 Move functions to mactoolbox.c.
20279 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20280 Likewise.
20281 (copy_scrap_flavor_data, mac_handle_service_event)
20282 (install_service_handler) [MAC_OSX]: Likewise.
20283 (syms_of_macselect) <Vmac_dnd_known_types>:
20284 Use mac_dnd_default_known_types.
20285
20286 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20287 Move to mactoolbox.c.
20288 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20289 (Fx_selection_owner_p): Add EXFUN.
20290 (install_window_handler, remove_window_handler, XSetWindowBackground):
20291 Remove externs.
20292 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20293 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20294 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20295 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20296 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20297 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20298 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20299 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20300 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20301 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20302 (mac_valid_selection_target_p, mac_clear_selection)
20303 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20304 (mac_put_selection_value, mac_selection_has_target_p)
20305 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20306 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20307 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20308 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20309 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20310 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20311 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20312 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20313 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20314
20315 * mactoolbox.c: New file.
20316
203172008-04-18 Jason Rumney <jasonr@gnu.org>
20318
20319 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20320
203212008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20322
20323 * character.c (Fmultibyte_char_to_unibyte):
20324 Return latin1 chars unchanged.
20325
20326 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20327 relocated if it points to `name'.
20328
203292008-04-17 Kenichi Handa <handa@m17n.org>
20330
20331 * data.c (Faset): Allow setting a multibyte character in an
20332 ASCII-only unibyte string.
20333
20334 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20335
203362008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20337
20338 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20339 done in config.h.
20340
203412008-04-16 Juanma Barranquero <lekktu@gmail.com>
20342
20343 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20344 (Fchar_direction): Add usage in the docstring.
20345
203462008-04-15 Chong Yidong <cyd@stupidchicken.com>
20347
20348 * keyboard.c (read_key_sequence): Remove always-true checks.
20349
203502008-04-14 Jason Rumney <jasonr@gnu.org>
20351
20352 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20353 compatibility struct, for better underline positioning.
20354
203552008-04-13 David Hansen <david.hansen@gmx.net>
20356
20357 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20358 string.
20359
203602008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20361
20362 * m/hp800.h (XUINT, XSET): Remove.
20363
203642008-04-12 Juanma Barranquero <lekktu@gmail.com>
20365
20366 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20367 previous change.
20368
203692008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20370
20371 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20372 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20373
203742008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20375
20376 * keymap.h (map_keymap_canonical): Declare.
20377 * xmenu.c (single_keymap_panes): Use it.
20378
203792008-04-11 Glenn Morris <rgm@gnu.org>
20380
20381 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20382 set the target's value to that of the alias.
20383
203842008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20385
20386 * term.c (set_tty_color_mode): Left over typo.
20387
203882008-04-10 Michael Albinus <michael.albinus@gmx.de>
20389
20390 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20391 only after check for file name handler functions. Signal, when
20392 native functionality is not supported.
20393 (syms_of_fileio): Declare it unconditionally.
20394
203952008-04-10 Jason Rumney <jasonr@gnu.org>
20396
20397 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20398 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20399
20400 * w32.c (logon_network_drive): Also logon to remote drives that
20401 are mapped to drive letters.
20402
204032008-04-10 Glenn Morris <rgm@gnu.org>
20404
20405 * xdisp.c (truncate-partial-width-windows): Doc fix.
20406
204072008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20408
20409 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20410 Move functions to minibuffer.el.
20411 (syms_of_fileio): Don't declare them.
20412
204132008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20414
20415 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20416 (syms_of_minibuf): Remove its initialization.
20417
20418 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20419
204202008-04-09 Juanma Barranquero <lekktu@gmail.com>
20421
20422 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20423
204242008-04-09 Jason Rumney <jasonr@gnu.org>
20425
20426 * makefile.w32-in (distclean): Delete makefile too.
20427 (maintainer-clean): New target.
20428
20429 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20430
20431 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20432 for new font backend and composite cases.
20433
204342008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20435
20436 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20437 Most of the code moved to run_timers.
20438 (do_pending_atimers): Call run_timers.
20439 (run_timers): New function.
20440
20441 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20442 run atimers.
20443
20444 * process.c (wait_reading_process_output): The same as above.
20445
204462008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20447
20448 * minibuf.c (last_exact_completion): Remove variable.
20449 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20450 (complete_and_exit_1, complete_and_exit_2)
20451 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20452 (Fdisplay_completion_list, display_completion_list_1)
20453 (Fminibuffer_completion_help, Fself_insert_and_exit)
20454 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20455 minibuffer.el.
20456 (syms_of_minibuf): Remove corresponding initializations.
20457
20458 * keyboard.c (Qdeactivate_mark): New var.
20459 (command_loop_1): Use it to call `deactivate-mark'.
20460 (syms_of_keyboard): Initialize it.
20461
20462 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20463 to another frame.
20464 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20465 Don't call set_tty_color_mode.
20466 (store_frame_param): Reset previous_frame rather than call
20467 set_tty_color_mode.
20468 * term.c (set_tty_color_mode): Rewrite.
20469 * dispextern.h (set_tty_color_mode): New type.
20470 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20471
204722008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20473
20474 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20475 for generic chars, which do not exist any more in emacs-unicode.
20476
204772008-04-08 Michael Albinus <michael.albinus@gmx.de>
20478
20479 * coding.c (detect_coding_emacs_mule)
20480 (Ffind_operation_coding_system): Fix typo.
20481
204822008-04-08 Jason Rumney <jasonr@gnu.org>
20483
20484 * w32uniscribe.c (SNAME): Extract only symbol name.
20485
20486 * w32font.h (struct w32_metric_cache): New struct.
20487 (w32font_info): Use it.
20488 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20489 (CACHE_BLOCKSIZE): New constants.
20490
20491 * w32font.c (Qja, Qko, Qzh): New symbols.
20492 (syms_of_w32font): Initialise them.
20493 (font_matches_spec): Use them to filter by language.
20494 (recompute_cached_metrics): Remove function.
20495 (compute_metrics, clear_cached_metrics): New functions.
20496 (w32font_encode_char): Use them to manage metric cache.
20497 (w32font_text_extents): Cache metrics for all glyphs on demand.
20498 Delay converting glyph indices to WORD until needed.
20499 (w32font_open_internal): Initialize metric cache to empty.
20500 (registry_to_w32_charset): Charset should always be a symbol.
20501 (fill_in_logfont, list_all_matching_fonts): Family should
20502 always be a symbol.
20503
205042008-04-06 Jason Rumney <jasonr@gnu.org>
20505
20506 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20507 Give up if glyph indices not supported. Use uniscribe obtained
20508 ABC widths for individual metrics. Map glyph clusters back to
20509 characters using fClusterStart flag. Return number of glyphs
20510 produced, not chars processed.
20511 (uniscribe_shape): Map char at FROM to current glyph.
20512
205132008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20514
20515 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20516 Use SetMenuItemHierarchicalMenu.
20517
205182008-04-05 Jason Rumney <jasonr@gnu.org>
20519
20520 * image.c (pbm_load): Allow color values up to 65535.
20521 Throw an error if max_color_idx is outside the supported range.
20522 Report an error when image size is invalid.
20523 Read two bytes at a time when raw images have max_color_idx above 255.
20524
aac0c6e3
MR
205252008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20526
20527 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20528 append "CCL: Quitted" when the CCL program is quitted.
20529 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20530
20531 * ccl.h (struct ccl_program): New member quit_silently.
20532
205332008-04-05 Chong Yidong <cyd@stupidchicken.com>
20534
20535 * search.c (compile_pattern_1): Treat non-nil and non-string of
20536 search-spaces-regexp as nil.
20537
20538 * minibuf.c (Fassoc_string): Tweak docstring.
20539
205402008-04-05 Eli Zaretskii <eliz@gnu.org>
20541
20542 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20543 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20544 2008-03-14 to force inode be positive.
20545
20546 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20547 _S_* ones, since we now use our own sys/stat.h.
20548 (stat, fstat): Don't mangle the inode number.
20549 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20550
205512008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20552
20553 * frame.h (struct frame): Give one more bit to `visible' since we use
20554 values larger than 1 to indicate obscured frames on ttys.
20555
20556 * keymap.c (Qkeymap_canonicalize): New var.
20557 (Fmap_keymap_internal): New fun.
20558 (describe_map): Use keymap-canonicalize.
20559
20560 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20561 (Fundo_boundary): Set them.
20562 (syms_of_undo): Initialize them.
20563 (record_point): Use them instead of last_point_position*.
20564 (last_undo_buffer): Change type.
20565
205662008-04-04 Jason Rumney <jasonr@gnu.org>
20567
20568 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20569 (recompute_cached_metrics): Don't set ascent and descent per char.
20570
20571 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20572 (uniscribe_check_otf): Add GC protection before consing.
20573 Rearrange loop for counting features.
20574
205752008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20576
20577 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20578 buffer with byte-size of source buffer.
20579
205802008-04-03 Chong Yidong <cyd@stupidchicken.com>
20581
20582 * callint.c (Fcall_interactively): Handle temporary region even
20583 when shift-select-mode is off.
20584
205852008-04-03 Jason Rumney <jasonr@gnu.org>
20586
20587 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20588
205892008-04-03 Kenichi Handa <handa@m17n.org>
20590
20591 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20592 (CATEGORY_MASK_UTF_16): Likewise.
20593 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20594 binary file.
20595 (detect_coding): Add null-byte detection for a binary file.
20596 (detect_coding_system): Likewise.
20597
205982008-04-03 Jason Rumney <jasonr@gnu.org>
20599
20600 * w32uniscribe.c: New file.
20601
20602 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20603
20604 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20605
20606 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20607 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20608 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20609 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20610 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20611 (Qphonetic): New symbols.
20612 (syms_of_w32font): Initialize them.
20613 (font_supported_scripts): Use them.
20614 (w32font_list_family): List all charsets.
20615 (w32font_text_extents, recompute_cached_metrics): Fix metric
20616 calculations.
20617 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20618 Give opentype fonts their own format.
20619 (font_matches_spec): New arguments backend and logfont.
20620 Handle :otf spec for uniscribe backend.
20621 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20622 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20623
20624 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20625 font backend.
20626 (globals_of_w32fns): Initialize uniscribe font backend.
20627
20628 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20629 dependencies.
20630 (w32uniscribe.$(O)): New file to build.
20631 (FONT_OBJ): Include w32uniscribe.$(O).
20632 (LIBS): Add uniscribe libraries.
20633
20634 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20635
206362008-04-02 Chong Yidong <cyd@stupidchicken.com>
20637
20638 * callint.c (Vshift_select_mode): New var.
20639 (Finteractive): Document new ^ spec.
20640 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20641 is present.
20642
20643 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20644 (command_loop_1): Avoid running the direct display versions of
20645 forward-char and backward-char if shift-selection may occur.
20646 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20647 shift-translation takes place.
20648
20649 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20650 avoid clobbering by define-minor-mode.
20651
20652 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20653 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20654
20655 * syntax.c (Fforward_word): Add ^ interactive spec.
20656
20657 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20658 (Fscroll_right): Add ^ interactive spec.
20659
206602008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20661
20662 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20663
20664 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20665
20666 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20667
206682008-03-31 Juri Linkov <juri@jurta.org>
20669
20670 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20671
206722008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20673
20674 * gtkutil.c (xg_set_geometry): Fix indentation.
20675 (xg_resize_outer_widget): Remove.
20676 (x_wm_size_hint_off): Fix indentation.
20677 (xg_frame_set_char_size): Call flush_and_sync after
20678 gtk_window_resize.
20679 (x_wm_set_size_hint): Pass NULL as geometry window to
20680 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20681 Add menu bar and tool bar height to base height.
20682 (xg_update_frame_menubar, free_frame_menubar)
20683 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20684 (update_frame_tool_bar, free_frame_tool_bar):
20685 Change xg_resize_outer_widget to xg_frame_set_char_size.
20686
206872008-03-30 Michael Albinus <michael.albinus@gmx.de>
20688
20689 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20690 (Fdbus_call_method): New parameter TIMEOUT.
20691 (dbus-send-signal): Optimize UNGCPRO call.
20692
206932008-03-29 Juri Linkov <juri@jurta.org>
20694
20695 * window.c (Fdisplay_buffer): Move call to
20696 Vsplit_window_preferred_function out of conditions that check
20697 if window is eligible for vertical splitting.
20698 When Vsplit_window_preferred_function is non-nil, call it and use
20699 its non-nil return value as window. Otherwise, continue doing
20700 vertical splitting using Fsplit_window with arg horflag=nil.
20701 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20702 default value from `split-window' to nil.
20703
207042008-03-29 Juri Linkov <juri@jurta.org>
20705
20706 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20707 for interactive code letters 'b' and 'B'.
20708
207092008-03-29 Eli Zaretskii <eliz@gnu.org>
20710
20711 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20712 multibyte string.
20713
207142008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20715
20716 * keyboard.c (pending_funcalls): New var.
20717 (timer_check): Run it.
20718 (syms_of_keyboard): Initialize it.
20719 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20720 (Vdelete_terminal_functions): New vars.
20721 (syms_of_terminal): Initialize them.
20722 (Fdelete_terminal): Run delete-terminal-functions.
20723 * xdisp.c (safe_eval): Rewrite.
20724 (safe_call2): New fun.
20725 * frame.c (Qdelete_frame_functions): New var.
20726 (syms_of_frame): Initialize it.
20727 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20728 * lisp.h (safe_call2, pending_funcalls): Declare.
20729
207302008-03-28 Andreas Schwab <schwab@suse.de>
20731
20732 * indent.c (Fmove_to_column): Move declaration before statements.
20733
207342008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20735
20736 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20737 (struct frame): Use bit fields for boolean vars.
20738
20739 * process.c (server_accept_connection): Simplify naming.
20740 (emacs_get_tty_pgrp): Use SDATA.
20741
20742 * coding.c (decode_coding_object): Fix last change.
20743
207442008-03-27 Jason Rumney <jasonr@gnu.org>
20745
20746 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20747
207482008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20749
20750 * charset.c (Fdefine_charset_internal): Change the way of
20751 registering charsets in Vcharset_order_list.
20752 (syms_of_charset): Make the charset `eight-bit' supplementary.
20753
207542008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20755
20756 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20757 operations, to avoid having the difference between pointers
20758 overflow.
20759
207602008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20761
20762 * indent.c (check_display_width): New fun.
20763 (scan_for_column): Use it.
20764
20765 * data.c (syms_of_data): Mark most-positive-fixnum and
20766 most-negative-fixnum as constants.
20767
20768 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20769
20770 * indent.c (scan_for_column): Extract from current_column_1.
20771 Merge with the same code from Fmove_to_column.
20772 (current_column_1, Fmove_to_column): Use it.
20773
207742008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20775
20776 * keymap.c (map_keymap_internal): New fun.
20777 (map_keymap): Use it.
20778 (Fmap_keymap_internal): New fun.
20779 (Fmap_keymap): Remove left-out test from before make_save_value.
20780
20781 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20782
20783 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20784 Use XCAR/XCDR.
20785
20786 * process.h (struct Lisp_Process): Remove filter_multibyte.
20787 * process.c (QCfilter_multibyte): Remove.
20788 (setup_process_coding_systems): Don't use filter_multibyte.
20789 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20790 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20791 (Fset_process_filter_multibyte): Change the coding-system to
20792 approximate the previous behavior.
20793 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20794 coding-system.
20795
20796 * coding.c (decode_coding_object): When not decoding into a buffer,
20797 obey the coding system's preference of (uni|multi)byte.
20798
207992008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20800
20801 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20802 every char is changed and has a different byte-length.
20803 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20804 Fix int -> EMACS_INT.
20805
208062008-03-23 David Hansen <david.hansen@gmx.net>
20807
20808 * dbusbind.c (xd_read_message): Remove extra copying of message
20809 strings. Check for NULL `interface' or `member'.
20810
208112008-03-22 Eli Zaretskii <eliz@gnu.org>
20812
20813 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20814 cFileName a file name that includes `?' characters, use the 8+3
20815 alias in cAlternateFileName instead.
20816
208172008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20818
20819 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20820
208212008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20822
20823 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20824 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20825 work on current_buffer only instead (that was already the case
20826 for some of the code anyway).
20827 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20828 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20829 (SET_PT, SET_PT_BOTH): Adjust.
20830 * intervals.h (set_point, temp_set_point, set_point_both)
20831 (temp_set_point_both): Remove redundant declarations.
20832
208332008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20834
20835 * fileio.c (Finsert_file_contents):
20836 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20837 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20838 when buffer != current_buffer anyway.
20839
208402008-03-20 Andreas Schwab <schwab@suse.de>
20841
20842 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20843 as default.
20844
208452008-03-19 Jason Rumney <jasonr@gnu.org>
20846
20847 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20848 (syms_of_w32fns): Initialize them.
20849 (HOURGLASS_ID): New constant.
20850 (x_window_to_frame): Don't check hourglass_window.
20851 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20852 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20853 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20854 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20855 Only change the cursor if hourglass is not active.
20856 (Fx_create_frame): Initialize frame's current_cursor.
20857 (hourglass_atimer): Remove.
20858 (hourglass_started): New function.
20859 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20860 (show_hourglass): Adapt to w32, changing argument to frame.
20861
20862 * w32term.h (struct w32_output): Remove hourglass_window.
20863 Add current_cursor.
20864
20865 * eval.c (call_debugger, Fsignal):
20866 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20867 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20868 (Fexecute_extended_command, cancel_hourglass_unwind):
20869 * minibuf.c (read_minibuf):
20870 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20871
208722008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20873
20874 * window.c (run_funs): New fun.
20875 (run_window_configuration_change_hook): Use it to run the buffer-local
20876 and the global part of the hook.
20877
20878 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20879 (unwind_format_mode_line): Restore selected window.
20880 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20881
208822008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20883
20884 * editfns.c (Fchar_equal): Check they are valid characters.
20885
20886 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20887
208882008-03-17 Andreas Schwab <schwab@suse.de>
20889
20890 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20891 against a charset.
20892
20893 * lisp.h (Fbuffer_list): Declare.
20894
208952008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 20896
aac0c6e3
MR
20897 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20898 handlebox_widget is != 0.
20899
209002008-03-16 Juri Linkov <juri@jurta.org>
20901
20902 * callint.c (Fcall_interactively): For interactive code letters
20903 'b' and 'B' put the buffer list into the list of default "future"
20904 values of the minibuffer.
20905
209062008-03-16 Andreas Schwab <schwab@suse.de>
20907
20908 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20909 modifiers.
20910
20911 * regex.c (re_match_2_internal): Correct matching of a charset
20912 against latin-1 characters.
20913
209142008-03-16 Kenichi Handa <handa@m17n.org>
20915
20916 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20917 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20918 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20919 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20920 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20921 CHAR_STRING_ADVANCE.
20922 (produce_chars): Fix for the case that the source and the
20923 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20924 instead of CHAR_STRING_ADVANCE.
20925 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20926 STRING_CHAR_ADVANCE.
20927
209282008-03-15 Andreas Schwab <schwab@suse.de>
20929
20930 * regex.c (re_match_2_internal): Correct matching of eight bit
20931 characters in unibyte strings.
20932
209332008-03-15 Martin Rudalics <rudalics@gmx.at>
20934
20935 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20936 at end of range when it coincides with the end of the buffer.
20937
209382008-03-14 Eli Zaretskii <eliz@gnu.org>
20939
20940 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20941
20942 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20943
209442008-03-14 Jason Rumney <jasonr@gnu.org>
20945
20946 * editfns.c (initial_tz): New variable.
20947 (syms_of_editfns): Initialize it.
20948 (Fset_time_zone_rule): Set it when first called.
20949 Use it when TZSTRING is nil.
20950
20951 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20952 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20953 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20954 (globals_of_w32fns): Initialize them.
20955 (compute_tip_xy): Use them to position tooltips.
20956
209572008-03-14 Glenn Morris <rgm@gnu.org>
20958
20959 * emacs.c (main): Revert previous change.
20960 (standard_args): Revert -internal-script back to -scriptload,
20961 and remove the long-option form.
20962
209632008-03-13 Glenn Morris <rgm@gnu.org>
20964
20965 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20966 Remove option -enable-font-backend.
20967
209682008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20969
20970 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20971
209722008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20973
20974 * xterm.c (x_connection_closed): For GTK: If this is the last
20975 terminal just exit without closing the display.
20976
209772008-03-11 Jason Rumney <jasonr@gnu.org>
20978
20979 * w32font.c (w32font_full_name): Use floor to round.
20980
f0131492 209812008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
20982
20983 * sound.c (alsa_configure): Declare vol at beginning of block.
20984
20985 * fontset.c (Ffontset_info): Remove extra semicolon.
20986
209872008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
20988
20989 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
20990 size of resulting string.
20991
209922008-03-10 Jason Rumney <jasonr@gnu.org>
20993
20994 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
20995
209962008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20997
20998 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
20999 Don't pretend as if characters with display property haven't been
21000 consumed for string-replacing-string case.
21001
210022008-03-08 Kim F. Storm <storm@cua.dk>
21003
21004 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
21005 (get_next_display_element, next_element_from_string)
21006 (next_element_from_ellipsis, next_element_from_buffer): Use it.
21007
210082008-03-08 Andreas Schwab <schwab@suse.de>
21009
21010 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
21011
210122008-03-06 Jason Rumney <jasonr@gnu.org>
21013
21014 * w32font.c (w32_registry): Take font_type argument. Use ANSI
21015 when charset not specified. Only translate ANSI to unicode when
21016 font_type is truetype.
21017 (w32font_coverage_ok): New function.
21018 (add_font_entity_to_list): Use it to filter unsuitable fonts.
21019
210202008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
21021
21022 * lread.c (Fread_char): Resolve modifiers.
21023 (Fread_char_exclusive): Likewise.
21024
21025 * character.c (char_resolve_modifier_mask): New function.
21026 (char_string): Use char_resolve_modifier_mask.
21027 (Fchar_resolve_modifiers): New function.
21028 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
21029 function.
21030
210312008-03-04 Jason Rumney <jasonr@gnu.org>
21032
21033 * makefile.w32-in: Always include w32font.c in the build.
21034 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
21035
210362008-03-04 Andreas Schwab <schwab@suse.de>
21037
21038 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
21039 (versionclean): Likewise.
21040
210412008-03-04 Juanma Barranquero <lekktu@gmail.com>
21042
21043 * .cvsignore: Add oo.
21044
210452008-03-03 Andreas Schwab <schwab@suse.de>
21046
21047 * coding.c (decode_coding_object): Inhibit gap shrinking while
21048 decoding in place.
21049
210502008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21051
21052 * w32term.c: Remove unused include "gnu.h".
21053 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21054
21055 * gnu.h: Rename to ...
21056 * emacs-icon.h: ... this.
21057 * xterm.c: Use emacs-icon.h instead of gnu.h.
21058 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21059
210602008-03-03 Juanma Barranquero <lekktu@gmail.com>
21061
21062 * w32font.c: Include math.h.
21063
210642008-03-03 Jason Rumney <jasonr@gnu.org>
21065
21066 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21067 Compute options separately.
21068 (w32font_open_internal): Set glyph_idx before caching metrics.
21069
21070 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21071 Define if system headers don't.
21072 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21073 (w32font_encode_char): Don't declare here.
21074
21075 * w32font.c (Quniscribe, QCformat): New symbols.
21076 (syms_of_w32font): Define them.
21077 (w32font_has_char): Indicate uncertainty.
21078 (w32font_encode_char): Encode as glyph point. Make static.
21079 (recompute_cached_metrics): New function.
21080 (w32font_open_internal): Use it. Set font to use glyph points
21081 initially. Set format based on type of font.
21082 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21083 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21084 on it. Set format based on information available here.
21085 (add_font_entity_to_list): Identify backend based on opentype_only.
21086
210872008-03-02 Andreas Schwab <schwab@suse.de>
21088
21089 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21090
21091 * coding.c (decode_coding_big5, produce_chars):
21092 Fix typos in last change.
21093
210942008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21095
21096 * gnu.h: New icon.
21097
210982008-03-02 Kenichi Handa <handa@m17n.org>
21099
21100 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21101 `dos', don't decode '\r' if that is the last in the source.
21102 (decode_coding_utf_16, decode_coding_emacs_mule)
21103 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21104 (decode_coding_raw_text, decode_coding_charset): Likewise.
21105 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21106
211072008-03-01 Jason Rumney <jasonr@gnu.org>
21108
21109 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21110
211112008-03-01 Kim F. Storm <storm@cua.dk>
21112
21113 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21114
211152008-03-01 Jason Rumney <jasonr@gnu.org>
21116
21117 * w32font.c (w32font_full_name): New function.
21118 (w32font_open_internal): Use it.
21119
211202008-03-01 Kim F. Storm <storm@cua.dk>
21121
21122 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21123
211242008-03-01 Jason Rumney <jasonr@gnu.org>
21125
21126 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21127
211282008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21129
21130 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21131 xg_frame_resized when the event is for the edit widget.
21132
ef1b0ba7 21133 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
21134
21135 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21136 set_char_size.
ef1b0ba7 21137 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
21138 operations on widgets here. Just set frame size if needed.
21139 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21140 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21141 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21142 the whole frame.
21143 (xg_create_tool_bar): Move attachment of the tool bar to
21144 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21145 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21146
211472008-03-01 Jason Rumney <jasonr@gnu.org>
21148
21149 * w32fns.c (w32_msg_pump): Disable debug code.
21150
211512008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21152
21153 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21154
211552008-02-29 Chong Yidong <cyd@stupidchicken.com>
21156
21157 * xdisp.c (next_overlay_string): Don't set
21158 overlay_strings_at_end_processed_p if we're currently reading from
21159 a display string.
21160
211612008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21162
21163 * xdisp.c (get_overlay_strings_1): Fix typo.
21164
211652008-02-29 Chong Yidong <cyd@stupidchicken.com>
21166
21167 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21168
211692008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21170
21171 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21172
21173 * xdisp.c (display_mode_element): Cancel the previous change.
21174 (decode_mode_spec): Likewise.
21175 (handle_auto_composed_prop): Don't make composition if it->string
21176 is a string.
21177
211782008-02-27 Kim F. Storm <storm@cua.dk>
21179
21180 * lisp.h (GLYPH): Change type from int to struct with separate char
21181 and face_id members.
21182 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21183 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21184 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21185 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21186 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21187 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21188 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21189 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21190 handle new Lisp glyph code encoding, either an integer or a cons.
21191
21192 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21193 (GLYPH_ALIAS): Delete.
21194 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21195 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21196 (GLYPH_FROM_CHAR): Replace macro by ...
21197 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21198
21199 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21200 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21201 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21202 (GLYPH_INVALID_P): New macro.
21203 (spec_glyph_lookup_face): Update prototype.
21204
21205 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21206 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21207 new glyph code encoding.
21208 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21209 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21210
21211 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21212 Adapt to new glyph type and new glyph code encoding.
21213
21214 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21215
21216 * indent.c (current_column, current_column_1, Fmove_to_column)
21217 (compute_motion): Adapt to new glyph code encoding.
21218
21219 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21220
212212008-02-27 Chong Yidong <cyd@stupidchicken.com>
21222
21223 * process.c (wait_reading_process_output): Check for window
21224 changes caused by timers.
21225 Suggested by Johan Bockgård.
21226
212272008-02-27 Glenn Morris <rgm@gnu.org>
21228
21229 * emacs.c (USAGE1): Add `--disable-font-backend'.
21230
212312008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21232
21233 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21234 is made to the buffer.
21235
212362008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21237
21238 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21239 (face_at_string_position):
21240 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21241 (face_at_string_position):
21242 * xdisp.c (display_string, next_overlay_change):
21243 * buffer.h (overlays_at):
21244 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21245 Update callers.
21246
212472008-02-26 Chong Yidong <cyd@stupidchicken.com>
21248
21249 * editfns.c (Fformat): Doc fix.
21250
212512008-02-26 Juanma Barranquero <lekktu@gmail.com>
21252
21253 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21254 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21255 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21256
212572008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21258
21259 * buffer.c (Fbuffer_swap_text): New function.
21260 (syms_of_buffer): Defsubr it.
21261
212622008-02-25 Chong Yidong <cyd@stupidchicken.com>
21263
21264 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21265
212662008-02-25 Jason Rumney <jasonr@gnu.org>
21267
21268 * w32font.c (w32font_draw): Draw one character at a time when padding.
21269
212702008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21271
21272 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21273 Handle a nil arg. Use run_window_configuration_change_hook.
21274 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21275 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21276 Use run_window_configuration_change_hook.
21277
212782008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21279
21280 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21281 1-pixel width.
21282
212832008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21284
21285 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21286 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21287 if the glyph in the font is zero pixel with.
21288
21289 * dispextern.h (struct glyph_string): New member padding_p.
21290
21291 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21292
21293 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21294
21295 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21296
21297 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21298
21299 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21300
213012008-02-25 Jason Rumney <jasonr@gnu.org>
21302
21303 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21304
213052008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21306
21307 Allow fine-grained image-cache flushing.
21308 * dispextern.h (struct image): Add `dependencies' field.
21309 (clear_image_caches): Change arg to Lisp_Object.
21310 * image.c (make_image): Initialize `dependencies' field.
21311 (clear_image_cache): Change arg to allow fine-grained flushing.
21312 Perform the flush even if image-cache-eviction-delay is nil.
21313 (clear_image_caches): Change arg to Lisp_Object.
21314 (Fclear_image_cache): Expand meaning of the argument.
21315 (mark_image): Mark `dependencies' field.
21316 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21317 (lface_hash): Use XHASH rather than XFASTINT.
21318 (face_at_buffer_position): Fix int -> EMACS_INT position.
21319 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21320 (select_frame_for_redisplay): Remove code duplication.
21321 (redisplay_internal): Adapt arg to call to clear_image_caches.
21322
213232008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21324
21325 * s/vms4-0.h:
21326 * s/vms4-2.h:
21327 * s/vms4-4.h:
21328 * s/vms5-5.h: Remove, unused.
21329
21330 * s/irix5-2.h:
21331 * s/irix6-0.h:
21332 * s/riscos5.h:
21333 * s/mach-bsd4-3.h:
21334 * m/mips4.h: Remove files for obsolete systems.
21335
21336 * Makefile.in:
21337 * filelock.c:
21338 * unexmips.c:
21339 * m/hp9000s300.h:
21340 * m/iris4d.h:
21341 * s/aix3-1.h:
21342 * s/hpux.h:
21343 * s/msdos.h:
21344 * s/usg5-0.h:
21345 * s/usg5-2-2.h:
21346 * s/usg5-2.h:
21347 * s/usg5-3.h: Remove references to obsolete variables.
21348
21349 * s/irix5-0.h: Remove, move all the contents ...
21350 * s/irix6-5.h: ... here. Simplify.
21351 * config.in: Regenerate.
21352
213532008-02-24 Jason Rumney <jasonr@gnu.org>
21354
21355 * w32term.c (x_draw_glyph_string_background): Clear the background
21356 manually when cleartype is in use.
21357 (x_draw_glyph_string_foreground): Draw text transparently when
21358 cleartype is in use.
21359
21360 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21361 a font into it unless we have to.
21362
213632008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21364
21365 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21366 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 21367
aac0c6e3
MR
213682008-02-18 Jason Rumney <jasonr@gnu.org>
21369
21370 * w32fns.c (Fw32_shell_execute): Encode parameters.
21371
213722008-02-09 Eli Zaretskii <eliz@gnu.org>
21373
21374 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21375
213762008-02-05 Juanma Barranquero <lekktu@gmail.com>
21377
21378 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21379
213802008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21381
21382 * xterm.c (x_set_offset): Don't change the gravity if
21383 CHANGE_GRAVITY is -1.
21384
213852008-02-23 Chong Yidong <cyd@stupidchicken.com>
21386
21387 * fileio.c (auto_save_error_occurred): New var.
21388 (auto_save_error): Set it.
21389 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21390 error occurred.
21391
213922008-02-23 Eli Zaretskii <eliz@gnu.org>
21393
21394 * w32.c (globals_of_w32): Add initializations for
21395 g_b_init_get_sid_sub_authority and
21396 g_b_init_get_sid_sub_authority_count.
21397
213982008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21399
21400 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21401 (font_parse_xlfd): Use them for sanity check.
21402 (Finternal_set_font_style_table): Make sure the table is bijective.
21403
21404 Consolidate the image_cache to the terminal struct.
21405 * termhooks.h (P_): Remove redundant def.
21406 (struct terminal): New field `image_cache'.
21407 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21408 of FRAME_X_IMAGE_CACHE.
21409 * xterm.h (struct x_display_info): Remove image_cache field.
21410 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21411 * w32term.h (struct w32_display_info): Remove image_cache field.
21412 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21413 * macterm.h (struct mac_display_info): Remove image_cache field.
21414 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21415 * xterm.c (x_term_init):
21416 * w32term.c (w32_term_init):
21417 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21418 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21419 Remove declarations.
21420 (clear_image_caches, mark_image_cache): New declarations.
21421 * xfaces.c (clear_face_cache):
21422 * xdisp.c (redisplay_internal): Use clear_image_caches.
21423 * image.c (clear_image_cache): Don't check that a frame is on
21424 a window-system before checking if it shares the same cache.
21425 (clear_image_caches): New function.
21426 (Fclear_image_cache): Use it.
21427 (mark_image): Move from allo.c.
21428 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21429 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21430 (mark_object): Don't call mark_image_cache for frames.
21431 (mark_terminals): Call mark_image_cache.
21432
21433 * lisp.h (Fdelete_terminal): Declare.
21434
21435 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21436 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21437 wrong_type_argument.
21438
214392008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21440
21441 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21442 malayalam.el, and tamil.el. Add sinhala.el.
21443
214442008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21445
21446 * xterm.c (x_connection_closed): Consolidate identical tests.
21447 (x_delete_terminal): Don't crash if called via x_connection_closed.
21448
214492008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21450
21451 * xdisp.c (decode_mode_spec): New arg string.
21452 (display_mode_element): Adjust for the above change.
21453
214542008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21455
21456 * callint.c (Fcall_interactively): Use AREF.
21457
214582008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21459
21460 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21461
214622008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21463
21464 * xfns.c (Fx_show_tip): Set string to " " if empty.
21465
214662008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21467
21468 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21469 with Qt.
21470
214712008-02-17 Kenichi Handa <handa@m17n.org>
21472
21473 * ftfont.c (ftfont_shape): Return Lispy number.
21474
21475 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21476 for GCs.
21477 (Finternal_set_font_selection_order): Call font_update_sort_order
21478 only when enable_font_backend is set.
21479 (realize_x_face): Set face->font_info to that of default face only
21480 when enable_font_backend is set.
21481
21482 * xdisp.c (handle_composition_prop): Set it->c to the fist
21483 character of the composed region.
21484 (fill_composite_glyph_string): Set base_face->font_info to
21485 s->font_info. Get a face for ascii from base_face->ascii_face.
21486 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21487 with a face already decided.
21488 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21489 non-negative.
21490 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21491 call font_prepare_composition unconditionally.
21492
21493 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21494
21495 * xterm.h (struct x_display_info): New member font.
21496
21497 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21498 (x_set_mouse_face_gc, x_new_font): Likewise.
21499 (x_term_init): Setup display_info->font.
21500 (x_delete_terminal): Free display_info->font.
21501
21502 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21503
21504 * ftxfont.c (ftxfont_default_fid): Delete it.
21505 (ftxfont_open): Set xfont->fid to 0.
21506 (ftxfont_end_for_frame): Clear data specific to the frame and the
21507 font-driver.
21508
21509 * xftfont.c (xftfont_default_fid): Delete it.
21510 (xftfont_open): Set xfont->fid to 0.
21511
21512 * fontset.c (FONTSET_OBJLIST): New macro.
21513 (fontset_find_font): Update font-object list of the fontset.
21514 (free_realized_fontset): New function.
21515 (free_face_fontset): Call free_realized_fontset.
21516 (Ffont_info): Call font_close_object only when enable_font_backend
21517 is set.
21518
21519 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21520 [HAVE_NTGUI]: Include w32term.h.
21521 [MAC_OS]: Include macterm.ch.
21522 (font_otf_ValueRecord): Use make_number.
21523 (font_finish_cache): Fix handling of reference count.
21524 (font_clear_cache): Update num_fonts.
21525 (font_open_entity): Update smallest_char_width and
21526 smallest_font_height of the frame.
21527 (font_close_object): Update num_fonts.
21528 (Fclear_font_cache): Fix finding the target cache data.
21529
215302008-02-16 Glenn Morris <rgm@gnu.org>
21531
21532 * fontset.c (Finternal_char_font): Fix compilation warning.
21533
215342008-02-16 Eli Zaretskii <eliz@gnu.org>
21535
21536 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21537 instead of char arrays. Enlarge the size of array passed to
21538 get_token_information.
21539
21540 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21541 warnings.
21542
215432008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21544
21545 * .gdbinit: Don't set `args', it breaks gdb --args.
21546
215472008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21548
21549 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21550 within a narrowed buffer.
21551
215522008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21553
21554 * coding.c (decode_coding_object, encode_coding_object):
21555 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21556
215572008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21558
21559 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21560 hardcoding 1.
21561 (detect_coding_system):
21562 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21563 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21564 * insdel.c (insert_from_gap):
21565 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21566 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21567 (string_to_multibyte):
21568 * character.c (chars_in_text, multibyte_chars_in_text):
21569 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21570
21571 * character.h (FETCH_STRING_CHAR_ADVANCE)
21572 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21573 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21574 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21575
21576 * casefiddle.c (casify_region): Only call after-change and composition
21577 functions on the part of the region that was changed.
21578
21579 * keyboard.c (read_avail_input):
21580 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21581
215822008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21583
21584 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21585 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21586
215872008-02-11 Juanma Barranquero <lekktu@gmail.com>
21588
21589 * w32menu.c (push_submenu_start, push_submenu_end)
21590 (push_left_right_boundary, push_menu_pane, push_menu_item):
21591 * keyboard.c (read_key_sequence): Don't pass args with side effects
21592 to AREF, it fails when compiling with -DENABLE_CHECKING.
21593
215942008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21595
21596 * Makefile.in (${lispsource}international/charprop.el):
21597 Delete this target.
21598
21599 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21600 emacs-unicode-2.
21601
216022008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21603
21604 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21605
216062008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21607
21608 * frame.c (Qnoelisp): New symbol.
21609 (syms_of_frame): Initialize it.
21610 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21611 harmless Elisp code, from a strong `force' from x_connection_closed.
21612 * frame.h (Qnoelisp): Declare.
21613 * xterm.c (x_connection_closed): Pass `noelisp'.
21614
21615 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21616 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21617 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21618 rather than `int' for the type of `type'.
21619
216202008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21621
21622 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21623
21624 * Makefile.in (GNUC): Remove support for gcc-1.x.
21625
216262008-02-10 Richard Stallman <rms@gnu.org>
21627
21628 * lisp.h (ASET): Use AREF, not ASLOT.
21629
216302008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21631
21632 * lisp.h (ASET): Check bounds.
21633
216342008-02-10 Glenn Morris <rgm@gnu.org>
21635
21636 * buffer.c (mode-name): Doc fix.
21637
216382008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21639
21640 * Makefile.in:
21641 * emacs.c:
21642 * gmalloc.c:
21643 * keyboard.c:
21644 * lisp.h:
21645 * m/ibm370aix.h:
21646 * process.c:
21647 * regex.c:
21648 * s/hpux.h:
21649 * sysdep.c:
21650 * sysselect.h:
21651 * systty.h:
21652 * unexec.c:
21653 * w32term.c:
21654 * xsmfns.c:
21655 * xterm.c: Remove code that deals with obsolete variables.
21656
21657 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21658
21659 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21660 nothing else needs it anymore.
21661
216622008-02-09 Eli Zaretskii <eliz@gnu.org>
21663
21664 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21665 instead of unibyte_char_to_multibyte.
21666
216672008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21668
21669 * s/gnu-linux.h: Remove commented out code.
21670
21671 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21672
21673 * Makefile.in: Update what RMS says about using autoconf.
21674 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21675 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21676 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21677 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21678
216792008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21680
21681 * keymap.c (Fkey_description): Move side effect outside of macro call.
21682
21683 * xfaces.c (Finternal_make_lisp_face):
21684 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21685
21686 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21687 (syms_of_fontset): Use ASET.
21688
21689 * fns.c (concat): Move side effect outside of macro call.
21690 (hash_clear): Use ASET.
21691
216922008-02-08 Richard Stallman <rms@gnu.org>
21693
21694 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21695 If FORCE, and frame has a surrogate minibuffer for another frame,
21696 delete the other frame first.
21697
216982008-02-07 Timo Savola <timo.savola@iki.fi>
21699
21700 * xterm.c (x_detect_focus_change): Handle embed client message.
21701 (handle_one_xevent): Ditto.
21702 (handle_one_xevent): If embedded and we get a button press/release,
21703 request focus.
21704 (xembed_set_info, xembed_send_message): New functions.
21705 (x_make_frame_visible): Call xembed_set_info if embedded.
21706 (x_make_frame_invisible): Call xembed_set_info if embedded.
21707 (x_term_init): Initialize Xatom_XEMBED.
21708 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21709 (x_iconify_frame): Ditto.
21710
21711 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21712 (enum xembed_info, enum xembed_message, enum xembed_focus)
21713 (enum xembed_modifier, enum xembed_accelerator): New.
21714 (xembed_set_info, xembed_send_message): Declare.
21715 (FRAME_X_EMBEDDED_P): New.
21716
21717 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21718 gtk_plug_new.
21719
21720 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21721 window ID of a frame.
21722 (x_window): Reparent frame if embedded.
21723 (Fx_create_frame): Don't set border width if embedded.
21724
21725 * emacs.c (USAGE3): Add --parent-id.
21726 (standard_args): Ditto.
21727
217282008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21729
21730 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21731
217322008-02-07 Jim Meyering <meyering@redhat.com>
21733
21734 Use "do...while (0)", not "if (1)...else" in macro definitions.
21735 The latter provokes a warning from gcc about the empty else, when
21736 followed by ";". Also, without that trailing semicolon, it would
21737 silently swallow up any following statement.
21738 * syntax.h (SETUP_SYNTAX_TABLE)
21739 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21740 * buffer.h (DECODE_POSITION): Likewise.
21741 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21742 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21743 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21744 (FETCH_CHAR_ADVANCE): Likewise.
21745 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21746
217472008-02-07 Jim Meyering <meyering@redhat.com>
21748
21749 * lread.c [lint]: Don't include <sys/inode.h>.
21750
217512008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21752
21753 * xselect.c (x_handle_dnd_message):
21754 * xmenu.c (digest_single_submenu, xmenu_show):
21755 * xdisp.c (with_echo_area_buffer_unwind_data)
21756 (format_mode_line_unwind_data, unwind_format_mode_line)
21757 (display_menu_bar):
21758 * eval.c (Ffetch_bytecode):
21759 * doc.c (store_function_docstring):
21760 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21761 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21762 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21763
217642008-02-07 Kenichi Handa <handa@m17n.org>
21765
21766 * ftxfont.c (ftxfont_open): Don't set
21767 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21768
21769 * ftfont.c (ftfont_open): Fix previous change.
21770
217712008-02-06 Jason Rumney <jasonr@gnu.org>
21772
21773 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21774 Use cached metrics for ASCII characters.
21775 (w32font_open_internal): Don't set font's owning_frame.
21776 Cache metrics for ASCII characters.
21777
21778 * w32font.h (struct w32font_info): Add ascii_metrics.
21779 Remove owning_frame.
21780
217812008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21782
21783 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21784 to negative value.
21785
21786 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21787
21788 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21789
21790 * charset.c (syms_of_charset): Set QCtest and Qeq.
21791
217922008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21793
21794 * process.c (Fstart_process):
21795 * callproc.c (Fcall_process): Handle the case where
21796 Funhandled_file_name_directory returns nil.
21797
21798 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21799 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21800 * font.c (check_gstring): Use them and AREF to access the vector before
21801 we know it's really a gstring.
21802 (Ffont_shape_text): Fix typo.
46e722a9 21803 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
21804
21805 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21806 Declare.
21807
21808 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21809
218102008-02-05 Jason Rumney <jasonr@gnu.org>
21811
21812 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21813 Set smallest_font_height and smallest_char_width in display info.
21814
218152008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21816
21817 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21818
218192008-02-05 Miles Bader <miles@gnu.org>
21820
21821 * xfaces.c (get_lface_attributes, merge_named_face)
21822 (lookup_named_face, lookup_derived_face, realize_named_face):
21823 Revert 2008-02-01 change by cyd@stupidchicken.com.
21824
218252008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21826
21827 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21828 fallback fonts.
21829 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21830
218312008-02-04 Jason Rumney <jasonr@gnu.org>
21832
21833 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21834 set full_name.
21835 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21836
218372008-02-03 Jason Rumney <jasonr@gnu.org>
21838
21839 * makefile.w32-in (OBJ1): Include font.o here.
21840 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21841
218422008-02-02 Jason Rumney <jasonr@gnu.org>
21843
21844 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21845
218462008-02-01 Jason Rumney <jasonr@gnu.org>
21847
21848 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21849
21850 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21851
218522008-02-01 Andreas Schwab <schwab@suse.de>
21853
21854 * Makefile.in (shortlisp, lisp): Update for rename of
21855 ../lisp/language/myanmar.el.
21856
218572008-02-01 Chong Yidong <cyd@stupidchicken.com>
21858
21859 * xfaces.c (get_lface_attributes): Delete function.
21860 (merge_named_face, lookup_named_face, lookup_derived_face)
21861 (realize_named_face): Call lface_from_face_name directly, and use
21862 the fact that merge_face_vectors does not alter its FROM argument.
21863
218642008-02-01 Jason Rumney <jasonr@gnu.org>
21865
21866 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21867 input in the default locale. Handle non-Unicode multibyte input.
21868
218692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21870
21871 * fontset.c (reorder_font_vector): Exclude nil elements from the
21872 font group. Don't try multiple fonts.
21873 (fontset_font): Adjust for the above change.
21874 (Finternal_char_font): Return nil if the found font doesn't
21875 contain the character ch.
21876
21877 * Makefile.in (lisp, shortlisp): Add cham.el.
21878
218792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21880
21881 * font.h (FONTP): Make it return 1 also for a font-object.
21882
21883 * .gdbinit (xfontset): New function.
21884
21885 * font.c (font_find_for_lface): Check if the character C is
21886 supported or not only for the first font.
21887
21888 * fontset.c (reorder_font_vector): Fix typo.
21889 (fontset_find_font): Don't add a font-spec specifying a script.
21890 Use 0 (not Qt) for the indication of empty font-group. Change the
21891 format of RFONT-DEF. Return Qt if no font in the font-group
21892 support the character.
21893 (fontset_font): Adjust for the above change. If no font was
21894 found the character, remember that.
21895 (face_for_char): Adjust for the change of RFONT-DEF.
21896 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21897 no font for the target.
21898 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21899
219002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21901
21902 * font.c (font_load_for_face): Handle the case that the font in
21903 face->lface is a string.
21904
219052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21906
21907 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21908
219092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21910
21911 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21912 Fix previous change. If the frame is not on a window system,
21913 signal an error.
21914
219152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21916
bba3e508
SM
21917 * coding.c (decode_coding_object, encode_coding_object):
21918 Adjust marker positions after conversion.
aac0c6e3
MR
21919
21920 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21921
219222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21923
21924 * font.c (font_find_for_lface): Fix the handling of the return
21925 value of font_has_char.
21926 (Ffont_shape_text): Fix previous change.
21927
21928 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21929 (fontset_ref_and_range): Delete it.
21930 (fontset_find_font): Call char_table_ref_and_range instead of
21931 FONTSET_REF_AND_RANGE.
21932 (make_fontset): Don't setup font groups of Latin here.
21933 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21934 (new_fontset_from_font): Make the specified font the default for
21935 all Latin characters.
21936
219372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21938
21939 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21940 is on a window system before accessing the fontset of the frame.
21941
219422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21943
21944 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21945
21946 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21947 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21948
21949 * font.c (Ffont_shape_text): If the font driver doesn't have a
21950 shaper function, make zero-width glyphs to have at least one-pixel
21951 width. Fix setting of `to' field of glyphs.
21952
219532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21954
21955 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21956 glyphs.
21957
21958 * font.h (struct font_driver): Improve docstring of member `shape'.
21959
219602008-02-01 Kenichi Handa <handa@m17n.org>
21961
21962 * composite.c (syms_of_composite): Fix docstring of
21963 auto-composition-function.
21964
21965 * font.h (LGLYPH_SIZE): New macro.
21966
21967 * font.c (Ffont_fill_gstring): Stop filling when a character not
21968 supported by the font is found.
21969 (Ffont_shape_text): When a shape callback function returns nil,
21970 try at most two more times with larger gstring.
21971 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21972
21973 * xdisp.c (handle_auto_composed_prop): Change the argument to
21974 auto-composition-function.
21975
21976 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21977 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21978 Lispy glyph and store it in the lgstring.
21979
21980 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21981
21982 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21983
219842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21985
21986 * font.c (Ffont_shape_text): Avoid unnecessary composition.
21987
21988 * fontset.c (Vfont_encoding_charset_alist): New variable.
21989 (syms_of_fontset): DEFVAR it.
21990 (reorder_font_vector, fontset_find_font): Optimize for the case of
21991 no need of reordering.
21992 (face_for_char): Map the charset property by
21993 Vfont_encoding_charset_alist.
21994
219952008-02-01 Jason Rumney <jasonr@gnu.org>
21996
21997 * w32font.c (logfonts_match): Don't check adstyle here.
21998 (font_matches_spec): Check here against physical font instead.
21999 (add_font_entity_to_list): Avoid some substitutions.
22000
22001 * font.c (font_parse_fcname): Default weight and slant to normal.
22002 (font_score): Prefer normal fonts if weight or slant unspecified.
22003 (font_score) [WINDOWSNT]: Scale weight difference down to closer
22004 match freetype scores.
22005
220062008-02-01 Jason Rumney <jasonr@gnu.org>
22007
22008 * w32font.c (w32font_text_extents): Don't use the frame stored in the
22009 font, as it may have been deleted.
22010 (w32_enumfont_pattern_entity): Map generic family to adstyle using
22011 most common hyphenless variation.
22012 (logfonts_match): Check generic family.
22013 (font_matches_spec): Don't check generic family here.
22014 (fill_in_logfont): Set generic family based on adstyle.
22015
22016 * w32font.h (w32font_get_cache): Update declaration.
22017
220182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22019
22020 * ftfont.c (ftfont_get_cache): Adjust the argument type.
22021
22022 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
22023 If none of the new drivers are available, call font_update_drivers
22024 with the old drivers.
22025
22026 * w32font.c (w32font_get_cache): Adjust the argument type.
22027
22028 * xfont.c (xfont_get_cache): Adjust the argument type.
22029
22030 * font.h (struct font_driver): Change argument type of get_cache.
22031
22032 * xftfont.c (xftfont_start_for_frame): Delete prototype.
22033
22034 * font.c (Ffont_get): Fix arguments to Fassoc.
22035 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
22036 (font_clear_cache): New function.
22037 (font_list_entities, font_matching_entity): Use font_get_cache.
22038 (font_update_drivers): Call font_clear_cache when finishing a driver.
22039
22040 * fontset.c (fontset_find_font): Fix previous change.
22041
220422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22043
22044 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22045 dpyinfo->font_table.
22046 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22047 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22048
22049 * font.c (font_at): Handle the case that the arg C is negative.
22050 Handle the unibyte case.
22051 (Ffont_at): Call font_at with the arg C -1.
22052
22053 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22054 the position here, and call font_at with the arg C -1.
22055 Don't check the range of the existing composition at the point.
22056
220572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22058
22059 * fontset.c (fontset_add): New args charset_id and family.
22060 Change caller.
22061 (load_font_get_repertory, fontset_find_font): Assume that
22062 font_spec is always a font-spec object.
22063 (Fset_fontset_font): Always store a font-spec object in a fontset.
22064
22065 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22066 instead of get_property_and_range.
22067
220682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22069
22070 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22071 (xftfont_open): Don't keep locking face.
22072 (xftfont_close): Don't unlock face.
22073 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22074
22075 * fontset.c (fontset_find_font): Don't prefer a font of
22076 supplementary charset.
22077
220782008-02-01 Kenichi Handa <handa@m17n.org>
22079
22080 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22081 script, langsys_tag to langsys, new member script.
22082 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 22083 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
22084 listing to the script specified in that property. Fix arg to
22085 OTF_check_features.
22086
220872008-02-01 Jason Rumney <jasonr@gnu.org>
22088
22089 * w32font.h: New file.
22090
22091 * w32font.c: Include it.
22092 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22093 (w32font_open): Set owning_frame.
22094 (w32font_text_extents): Use owning_frame.
22095 (struct font_callback_data): Add opentype_only field.
22096 (add_font_entity_to_list): Use it to filter fonts.
22097 Don't check against full name.
22098 (w32font_list_internal): New function.
22099 (w32font_list): Use it.
22100 (w32font_match_internal): New function.
22101 (w32font_match): Use it.
22102 (w32font_open_internal): New function.
22103 (w32font_open): Use it.
22104 (w32font_get_cache, w32font_close, w32font_has_char)
22105 (w32font_encode_char, w32font_text_extents, w32font_draw):
22106 Make non-static.
22107
22108 * makefile.w32-in (w32font.o): Depend on w32font.h.
22109
221102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22111
22112 * charset.c (Fdefine_charset_internal): Record a supplementary
22113 charset at the tail of Vcharset_order_list.
22114
22115 * font.c (Ffont_shape_text): Fix the return value.
22116
22117 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22118
22119 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22120
221212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22122
22123 * ftfont.c (struct OpenTypeSpec): New struct.
22124 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22125 (ftfont_get_open_type_spec): New function.
22126 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22127
22128 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22129
221302008-02-01 Jason Rumney <jasonr@gnu.org>
22131
22132 * w32font.c (add_font_entity_to_list): Compare only the beginning
22133 of full name.
22134
221352008-02-01 Kenichi Handa <handa@m17n.org>
22136
22137 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22138 Never return HANDLED_RECOMPUTE_PROPS.
22139
221402008-02-01 Kenichi Handa <handa@m17n.org>
22141
22142 * font.c (font_gstring_produce): Delete it.
22143
22144 * composite.h (COMPOSITION_METHOD):
22145 Handle COMPOSITION_WITH_GLYPH_STRING.
22146
221472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22148
22149 * xfont.c (Qx): Delete.
22150 (syms_of_xfont): Don't initialize Qx.
22151
22152 * composite.h (enum composition_method):
22153 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22154
221552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22156
22157 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22158 (choose_face_font): Accept new form of font-spec.
22159
22160 * frame.h (font_driver_list): Declare it unconditionally.
22161 (struct frame): Define members font_driver_list and font_data_list
22162 unconditionally.
22163
22164 * fontset.c: Include "font.h" unconditionally.
22165 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22166 (Fset_fontset_font): Accept a font-spec object.
22167
22168 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22169 PIXEL_SIZE part a wild card.
22170
22171 * dispextern.h (struct glyph_string): Define members clip and
22172 num_clips unconditionally.
22173 (struct face): Define members font_info and extra unconditionally.
22174
22175 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22176 ftfont_info only when HAVE_LIBOTF is defined.
22177
221782008-02-01 Andreas Schwab <schwab@suse.de>
22179
22180 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22181 and end.
22182
221832008-02-01 Jason Rumney <jasonr@gnu.org>
22184
22185 * w32font.c (w32font_driver): Add new fields.
22186
221872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22188
22189 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22190 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22191 (LIBES): Add @M17N_FLT_CFLAGS@.
22192
22193 * composite.c (compose_text): Don't treat the new style
22194 composition specially.
22195
22196 * emacs.c (main): Call syms_of_font unconditionally.
22197
22198 * font.h (FONT_ENTITY_NOT_LOADABLE)
22199 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22200 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22201 (struct font_driver): New member shape.
22202 (font_registry_charsets): Extern it.
22203 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22204 (font_otf_capability, font_drive_otf): Delete their externs.
22205
22206 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22207 (font_charset_alist, font_registry_charsets): Move from xfont.c
22208 and rename.
22209 (font_prop_validate_otf): New function.
22210 (font_property_table): Register it for QCotf.
22211 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22212 (font_drive_otf): Delete.
22213 (font_prepare_composition): New arg F. Adjust for the change of
22214 lispy gstring.
22215 (font_find_for_lface): New arg C.
22216 (font_load_for_face): Adjust for the change of font_find_for_lface.
22217 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22218 lispy gstring.
22219 (Ffont_shape_text): New function.
22220 (Fopen_font): If the font size is not given, use 12-pixel.
22221 (Ffont_at): New arg STRING.
40b1a3a9 22222 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
22223 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22224 conditionally.
22225
22226 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22227 fonts of the same font-spec. Change the format of RFONT-DEF.
22228 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22229 Adjust for the change of RFONT-DEF.
22230 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22231
22232 * ftfont.h: New file.
22233
22234 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22235 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22236 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22237 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22238 font_otf_capability and font_drive_otf, set ftfont_shape.
22239 (ftfont_list): Adjust for the change of :otf property value.
22240 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22241 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22242 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22243 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22244 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22245 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22246
22247 * w32term.c (x_draw_composite_glyph_string_foreground):
22248 Adjust for the change of lispy gstring.
22249
22250 * xdisp.c (handle_composition_prop): Adjust for the change of
22251 lispy gstring. Call a function for auto-composition with the
22252 third arg it->window.
22253 (fill_composite_glyph_string): Adjust for the change of lispy string.
22254 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22255
22256 * xfaces.c (set_font_frame_param): Adjust for the change of
22257 font_find_for_lface.
22258
22259 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22260 (xfont_registry_charsets): Likewise. Change caller.
22261 (syms_of_xfont): Don't handle x_font_charset_alist.
22262
22263 * xftfont.c: Include "ftfont.h".
22264 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22265 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22266 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22267 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22268 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22269 Set xftfont_driver.shape to xftfont_shape.
22270
22271 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22272 the change of lispy gstring.
22273
222742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22275
22276 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22277
222782008-02-01 Jason Rumney <jasonr@gnu.org>
22279
22280 * w32font.c (w32font_draw): Fill background manually.
22281
222822008-02-01 Jason Rumney <jasonr@gnu.org>
22283
22284 * font.c (Qfontp): Remove unused symbol.
22285 (QCantialias): New symbol.
22286 (syms_of_font): Define it.
22287 (font_property_table): Set a validator for QCantialias.
22288
22289 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22290 Define if not already.
22291 (QCfamily): Share with xfaces.c.
22292 (Qstandard, Qsubpixel, Qnatural): New symbols.
22293 (syms_of_w32font): Define them. Don't define QCfamily here.
22294 (w32_antialias_type, lispy_antialias_type): New functions.
22295 (w32_enumfont_pattern_entity): New arg requested_font.
22296 Set antialias parameter if non-default was requested.
22297 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22298
222992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22300
22301 * lread.c (read1): Undo the previous change.
22302
223032008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22304
22305 * frame.c (Fdelete_frame): Call font_update_drivers only when
22306 USE_FONT_BACKEND is defined.
22307
223082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22309
22310 * font.h (struct font_bitmap): New member bits_per_pixel.
22311 (struct font_driver): New members start_for_frame and end_for_frame.
22312 (struct font_data_list): New struct.
22313 (font_put_frame_data, font_get_frame_data): Extern them.
22314
22315 * frame.h (struct frame): New member font_data_list.
22316
22317 * font.c (font_update_drivers): Call driver->start_for_frame and
22318 driver->end_for_frame at proper timings.
22319 (font_put_frame_data, font_get_frame_data): New functions.
22320 (Ffont_spec): Add usage in the docstring.
22321
22322 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22323 (Fdelete_frame): Call font_update_drivers.
22324
22325 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22326 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22327 (xftfont_get_xft_draw): New function.
22328 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22329 (xftfont_end_for_frame): New function.
22330 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22331
22332 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22333 Change argument. Cache GCs in the per-frame data.
22334 (struct ftxfont_frame_data): New struct.
22335 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22336 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22337 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22338 (ftxfont_end_for_frame): New function.
22339 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22340
22341 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22342
223432008-02-01 Kenichi Handa <handa@m17n.org>
22344
22345 * xselect.c (Vselection_coding_system)
22346 (Vnext_selection_coding_system): Delete them.
22347 (syms_of_xselect): Don't declare selection-coding-system and
22348 next-selection-coding-system. They are declared in select.el.
22349
223502008-02-01 Jason Rumney <jasonr@gnu.org>
22351
22352 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22353
22354 * w32fns.c: Include imm.h.
22355 (get_composition_string_fn, get_ime_context_fn): New optional
22356 system functions.
22357 (globals_of_w32fns): Load them from imm32.dll.
22358 (ignore_ime_char): New flag.
22359 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22360 WM_IME_ENDCOMPOSITION messages.
22361
22362 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22363 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22364
223652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22366
22367 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22368 (READCHAR_REPORT_MULTIBYTE): New macro.
22369 (readchar): New 2nd arg MULTIBYTE.
22370 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22371 Make symbol's name multibyte according to the multibyteness of the
22372 source.
22373
223742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22375
22376 * xfaces.c (face_for_overlay_string): Call lookup_face with
22377 correct arguments (fix of synching with the trunk).
22378
223792008-02-01 Kenichi Handa <handa@m17n.org>
22380
22381 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22382 (font_prop_validate_non_neg, font_prop_validate_spacing):
22383 Delete argument prop_index.
22384 (font_property_table): Change arguments to validater. Change Callers.
22385 (font_lispy_object): Delete.
22386 (font_at): Use font_find_object instead fo font_lispy_object.
22387
223882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22389
22390 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22391 and file names.
22392
223932008-02-01 Jason Rumney <jasonr@gnu.org>
22394
22395 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22396 (font_matches_spec): Remove debug output.
22397 (add_font_entity_to_list): Avoid using substituted fonts.
22398
223992008-02-01 Jason Rumney <jasonr@gnu.org>
22400
22401 * doc.c (Fsnarf_documentation):
22402 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22403
224042008-02-01 Miles Bader <miles@gnu.org>
22405
22406 * dispextern.h (struct glyph_row): Only define "clip" field if
22407 HAVE_WINDOW_SYSTEM is defined.
22408
224092008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22410
22411 Fix up multi-tty merge.
22412
22413 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22414 and indentation.
22415
22416 * xfaces.c (free_realized_face, clear_face_gcs):
22417 Include font_done_for_face in the input_blocked section, just in case.
22418
22419 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22420 (get_char_face_and_encoding): Undo last change and remove the *other*
22421 duplicate definition (i.e. keep the one that's better scoped and that
22422 includes code for the font-backend).
22423
22424 * terminal.c (create_terminal): Default keyboard_coding to
22425 `no-conversion' and terminal_coding to `undecided'.
22426
22427 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22428
22429 * fontset.c (free_realized_fontsets): Check that the table entry does
22430 contain a fontset before trying to compare it to `base'.
22431
22432 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22433 syms_of_charset, and syms_of_coding earlier because init_window_once
22434 now needs Vcoding_system_hash_table to be setup.
22435
22436 * coding.h (default_buffer_file_coding): Remove.
22437
22438 * coding.c (default_buffer_file_coding): Remove.
22439 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22440 than ->symbol, and use the terminal-local coding system.
22441 (syms_of_coding): Don't setup the coding-systems that are not
22442 terminal-local.
22443 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22444
22445 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22446 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22447
22448 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22449 in chartab.c and were re-added here by mistake.
22450 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22451
22452 * doc.c (Fsnarf_documentation):
22453 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22454 src to etc.
22455
22456 * ChangeLog.10: Add mistakenly removed entry.
22457
224582008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22459
22460 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22461
224622008-02-01 Miles Bader <miles@gnu.org>
22463
22464 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22465 Add extra args to FACE_FOR_CHAR.
22466
224672008-02-01 Kenichi Handa <handa@m17n.org>
22468
22469 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22470 in sequence.
22471
22472 * chartab.c (map_sub_char_table, map_char_table): If the range
22473 contains just one character, call the function with that character
22474 even if the depth is not 3.
22475
224762008-02-01 Jason Rumney <jasonr@gnu.org>
22477
22478 * w32font.c (w32font_text_extents): Calculate metrics for the
22479 whole string.
22480
224812008-02-01 Jason Rumney <jasonr@gnu.org>
22482
22483 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22484
224852008-02-01 Jason Rumney <jasonr@gnu.org>
22486
bba3e508
SM
22487 * w32term.c (x_set_glyph_string_clipping):
22488 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22489 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22490 Adjust for the change of struct glyph_string.
22491
22492 * w32font.c (w32font_draw): Do clipping here.
22493
224942008-02-01 Kenichi Handa <handa@m17n.org>
22495
22496 * xftfont.c (xftfont_draw): Adjust for the change of struct
22497 glyph_string.
22498
bba3e508
SM
22499 * xterm.c (x_set_glyph_string_clipping):
22500 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22501 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22502 Adjust for the change of struct glyph_string.
22503
22504 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22505 the resulting clip(s}.
22506 (expose_overlaps): Add arg r. Change callers. Set it to
22507 row->clip temporarily.
22508 (expose_window): Redraw rows overlapping the exposed area.
22509
22510 * dispextern.h (struct glyph_row): New member clip.
22511 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22512 clip_height, new member clip, and num_clips.
22513
225142008-02-01 Kenichi Handa <handa@m17n.org>
22515
22516 * data.c (Fchar_or_string_p): Fix docstring.
22517
225182008-02-01 Kenichi Handa <handa@m17n.org>
22519
22520 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22521 create a temporary XftDraw object.
22522
225232008-02-01 Kenichi Handa <handa@m17n.org>
22524
22525 * font.c (Ffontp): Fix docstring.
22526
22527 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22528 strong evidence of ISO-2022.
22529
225302008-02-01 Kenichi Handa <handa@m17n.org>
22531
22532 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22533 SYNTAX_ENTRY_FOLLOW_PARENT.
22534
225352008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22536
22537 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22538 its type.
22539 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22540 Update to the new type of weak_hash_tables and next_weak.
22541
22542 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22543 a plain C pointer to Lisp_Hash_Table.
22544
22545 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22546 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22547 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22548 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22549 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22550 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22551 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22552 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22553 (GC_EQ): Remove since they've been identical to their non-GC_
22554 alter-egos ever since the markbit was eradicated.
22555
22556 * alloc.c:
22557 * buffer.c:
22558 * buffer.h:
22559 * data.c:
22560 * fileio.c:
22561 * filelock.c:
22562 * fns.c:
22563 * frame.h:
22564 * lisp.h:
22565 * macterm.c:
22566 * print.c:
22567 * process.c:
22568 * w32fns.c:
22569 * w32menu.c:
22570 * w32term.c:
22571 * xfns.c:
22572 * xmenu.c:
22573 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22574
225752008-02-01 Kenichi Handa <handa@m17n.org>
22576
22577 * chartab.c (map_sub_char_table): Make it work for the top-level
22578 char-table. Fix handling of parent char-table.
22579 (map_char_table): Adjust for the above change.
22580
225812008-02-01 Jason Rumney <jasonr@gnu.org>
22582
22583 * w32font.c (Qgdi): Rename from Qw32.
22584
225852008-02-01 Jason Rumney <jasonr@gnu.org>
22586
22587 * w32bdf.c (get_quoted_string): Make function static.
22588
225892008-02-01 Kenichi Handa <handa@m17n.org>
22590
22591 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22592 bigger ascent and descent than those of the font, use them as
22593 font's ascent and descent.
22594
225952008-02-01 Kenichi Handa <handa@m17n.org>
22596
22597 * Makefile.in (${lispsource}international/charprop.el): Move this
22598 target within "#ifdef HAVE_UNIDATA" and "#endif".
22599
226002008-02-01 Kenichi Handa <handa@m17n.org>
22601
22602 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22603 (shortlisp): Add ../lisp/language/tai-viet.el.
22604
226052008-02-01 Ulrich Mueller <ulm@gentoo.org>
22606
22607 * Makefile.in (${lispsource}international/charprop.el): Depend on
22608 temacs${EXEEXT}.
22609
226102008-02-01 Jason Rumney <jasonr@gnu.org>
22611
22612 * w32font.c (w32font_close): Delete the GDI font object.
22613
22614 * w32menu.c: Include character.h.
22615
22616 * w32proc.c: Likewise.
22617
22618 * w32select.c: Likewise.
22619
22620 * makefile.w32-in (w32proc.o): Depend on character.h.
22621
226222008-02-01 Jason Rumney <jasonr@gnu.org>
22623
22624 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22625
22626 * w32menu.c (syms_of_w32menu): Likewise.
22627
22628 * w32proc.c (syms_of_ntproc): Likewise.
22629
22630 * w32select.c (syms_of_w32select): Likewise.
22631
22632 * w32term.c (syms_of_w32term): Likewise.
22633
226342008-02-01 Jason Rumney <jasonr@gnu.org>
22635
22636 * w32font.c (w32font_draw): Delete brush after using it.
22637
226382008-02-01 Jason Rumney <jasonr@gnu.org>
22639
22640 * w32font.c (w32font_open): Don't set font_idx.
22641 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22642 to font settings.
22643 (w32font_draw): Fill background explicitly.
22644
226452008-02-01 Jason Rumney <jasonr@gnu.org>
22646
22647 * w32term.c (w32_initialize): Don't call w32font_initialize.
22648
22649 * w32font.c (w32font_info): Remove subranges.
22650 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22651 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22652 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22653 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22654 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22655 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22656 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22657 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22658 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22659 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22660 New symbols.
22661 (font_callback_data): New struct.
22662 (w32font_list, w32font_match): Use it.
22663 (w32font_open): Don't populate subranges.
22664 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22665 (w32font_encode_char): Always return unicode code-point as-is.
22666 (w32font_text_extents): Supply a transformation matrix to
22667 GetGlyphOutline. Never look up by glyph index. Avoid looping
22668 twice. Use unicode version of GetTexExtentPoint32 instead of
22669 glyph index version.
22670 (set_fonts_frame): Remove.
22671 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22672 set frame parameter. Use backward compatible fake foundries.
22673 Save generic family in extra slot under QCfamily. Make width slot
22674 constant. Save QCspacing value. Save list of scripts instead of
22675 binary subranges.
22676 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
22677 (add_font_entity_to_list): Use font_callback_data struct.
22678 Filter unwanted fonts.
aac0c6e3
MR
22679 (add_one_font_entity_to_list): Use font_callback_data struct.
22680 (w32_registry): Default to iso10646_1.
22681 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22682 string font registries. Don't fill in font name if it is a generic
22683 family name, fill family instead. Use spacing, family and script
22684 extra info to fill pitch, family and charset fields.
22685 (list_all_matching_fonts): Use font_callback_data struct.
22686 (unicode_range_for_char): Remove.
22687 (font_supported_scripts): New function.
22688 (w32font_initialize): Remove.
22689 (syms_of_w32font): Update which symbols are defined.
22690
226912008-02-01 Jason Rumney <jasonr@gnu.org>
22692
22693 * font.c (font_pixel_size): Reverse assq_no_quit args.
22694
22695 * w32term.h (FONT_WIDTH): Report max width, not average.
22696 (FONT_MAX_WIDTH): Remove.
22697 (FONT_AVG_WIDTH): New macro.
22698
22699 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22700 redefinition of FONT_WIDTH.
22701
22702 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22703 (w32_cache_char_metrics): Use FONT_WIDTH.
22704
22705 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22706
227072008-02-01 Jason Rumney <jasonr@gnu.org>
22708
22709 * w32font.c (w32font_open): Make lfHeight negative.
22710
22711 * w32fns.c (x_default_font_parameter): Use new style font name.
22712 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22713
227142008-02-01 Jason Rumney <jasonr@gnu.org>
22715
22716 * w32font.c (QCsubranges): New symbol.
22717 (w32font_open, w32font_has_char): Get subranges from subproperty
22718 of extra.
22719 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22720 (syms_of_w32font): Define :subranges symbol.
22721
22722 * font.c (font_put_extra): Expose externally.
22723
22724 * font.h (font_put_extra): Move declaration from font.c.
22725
22726 * font.c (Ffont_get): Use font driver to determine otf capability.
22727 (adjust_anchor): Check if driver defines anchor_point before using.
22728
22729 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22730 (w32font_draw): Use options.
22731 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22732 Fix detection of truetype fonts.
22733 (registry_to_w32_charset): Handle charsets other than iso8859-1
22734 expressed as lisp symbols.
22735 (w32_registry): Express charset as lisp symbol.
22736 (fill_in_logfont): Reverse pixel and point height logic.
22737 Don't set width here. Set quality to default.
22738
22739 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22740 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22741
22742 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22743 Remove redundant loop and allocation.
22744
22745 * makefile.w32-in (font.o, w32font.o): New objects.
22746 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22747 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22748
22749 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22750 STORE_XCHARB a valid l-value.
22751
22752 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22753 calculations for non-Truetype fonts.
22754 (x_draw_glyph_string): Sync with xterm.c.
22755 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22756 Remove redundant code.
22757 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22758
22759 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22760 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22761
22762 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22763 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22764
22765 * w32font.c: New file for w32 font backend.
22766
227672008-02-01 Kenichi Handa <handa@m17n.org>
22768
22769 * term.c: Don't include "buffer.h" twice.
22770
227712008-02-01 Kenichi Handa <handa@m17n.org>
22772
22773 * character.c (Funibyte_string): New function.
22774 (syms_of_character): Defsubr it.
22775
227762008-02-01 Jason Rumney <jasonr@gnu.org>
22777
22778 * w32term.c [USE_FONT_BACKEND]:
22779 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22780 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22781 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22782 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22783 (x_free_frame_resources): Sync with xterm.c.
22784
227852008-02-01 Andreas Schwab <schwab@suse.de>
22786
22787 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22788 char-table size.
22789
227902008-02-01 Kenichi Handa <handa@m17n.org>
22791
22792 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22793
227942008-02-01 Kenichi Handa <handa@m17n.org>
22795
22796 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22797 font_otf_gpos, add font_drive_otf.
22798
22799 * fontset.c (fontset_find_font): Pay attention to font size
22800 specified for a font.
22801 (reorder_font_vector): Check contents of font_def.
22802
22803 * font.c (struct otf_list): Delete it.
22804 (otf_list): Make it a lisp variable.
22805 (otf_open): Use lispy otf_list.
22806 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22807 (check_otf_features): New function.
22808 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22809 New functions.
22810 (font_drive_otf): New function merging font_otf_gsub and
22811 font_otf_gpos.
22812 (font_open_for_lface): New arg spec. Change argument order.
22813 (font_load_for_face): Adjust for the change of font_open_for_lface.
22814 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22815 Ffont_otf_gpos.
22816 (syms_of_font): Staticpro otf_list. Delete defsubr of
22817 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22818
22819 * xfaces.c (set_font_frame_param): Adjust for the change of
22820 font_open_for_lface.
22821
22822 * font.h (font_open_for_lface): Adjust prototype.
22823 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22824 member otf_drive.
22825 (font_otf_gsub, font_otf_gpos): Delete externs.
22826 (font_drive_otf): Extern it.
22827
228282008-02-01 Kenichi Handa <handa@m17n.org>
22829
22830 * font.c (font_at): If the window W is not on a window system,
22831 return Qnil.
22832
22833 * coding.c (produce_chars, encode_coding): Don't call
22834 insert_from_gap if no characters to produce.
22835
228362008-02-01 Kenichi Handa <handa@m17n.org>
22837
22838 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22839 Fclear_face_cache.
22840
22841 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22842
228432008-02-01 Miles Bader <miles@gnu.org>
22844
22845 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22846 Parse "--disable-font-backend" option.
22847 (standard_args): Add "--disable-font-backend" option.
22848
228492008-02-01 Kenichi Handa <handa@m17n.org>
22850
22851 * fontset.c (fontset_find_font): New function.
22852 (fontset_font): Use fontset_find_font.
22853 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22854 Register the specified font for all Latin characters.
22855 (new_fontset_from_font): Register the specified font for all Latin
22856 characters.
22857 (dump_fontset): For a realized fontset, include the base fontset
22858 name in the returned vector.
22859
228602008-02-01 Kenichi Handa <handa@m17n.org>
22861
22862 * character.h (CHAR_STRING): Cast C to unsigned on calling
22863 char_string.
22864
22865 * character.c (char_string): Type of arg C changed to unsigned.
22866 Signal an error if C is an invalid character code.
22867
22868 * editfns.c (general_insert_function, Fchar_to_string):
22869 Use CHARACTERP, not INTEGERP.
22870
228712008-02-01 Kenichi Handa <handa@m17n.org>
22872
22873 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22874 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22875
22876 * regex.c (analyse_first): Fix for multibyte characters in "case
22877 charset:" and "case categoryspec:".
22878
228792008-02-01 Andreas Schwab <schwab@suse.de>
22880
22881 * Makefile.in (LIBES): Move standard libraries to the end.
22882
228832008-02-01 Kenichi Handa <handa@m17n.org>
22884
22885 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22886 nonzero, don't shrink the buffer nextb.
22887
22888 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22889
22890 * coding.c (coding_alloc_by_making_gap): New arg offset.
22891 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22892 offset.
22893 (decode_coding_iso_2022): Update coding->safe_charsets.
22894 (decode_coding_gap): Temporarily set
22895 current_buffer->text->inhibit_shrinking to 1.
22896
228972008-02-01 Kenichi Handa <handa@m17n.org>
22898
bba3e508
SM
22899 * xterm.c (x_draw_composite_glyph_string_foreground):
22900 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
22901
229022008-02-01 Juanma Barranquero <lekktu@gmail.com>
22903
22904 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22905
229062008-02-01 Kenichi Handa <handa@m17n.org>
22907
22908 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22909 target_multibyte instead of multibyte.
22910 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22911 (bcmp_translate): Change the argument name from multibyte to
22912 target_multibyte.
22913
229142008-02-01 Kenichi Handa <handa@m17n.org>
22915
22916 These changes are to compile a regexp into a pattern that can be
22917 used both for multibyte and unibyte targets.
22918
22919 * Makefile.in (search.o): Depend on charset.h.
22920
22921 * character.c (multibyte_char_to_unibyte_safe): New function.
22922
22923 * search.c: Include "charset.h".
22924 (compile_pattern_1): Delete argument multibyte. Don't set
22925 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22926 (compile_pattern): Don't compare cp->buf.target_multibyte.
22927 Compare cp->buf.charset_unibyte.
22928 (compile_pattern): Set cp->buf.target_multibyte.
22929
22930 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22931
22932 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22933
22934 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22935 multibyte. Change callers.
22936 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22937 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22938 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22939 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22940 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22941 (regex_compile): Make the compiled pattern usable both for
22942 multibyte and unibyte targets.
22943 (analyse_first): Make the fastmap usable both for multibyte and
22944 unibyte targets.
22945 (TRANSLATE_VIA_MULTIBYTE): Delete.
22946 (re_match_2_internal): Pay attention to the case that the
22947 multibyteness of bufp and target may be different.
22948
229492008-02-01 Kenichi Handa <handa@m17n.org>
22950
22951 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22952 empty box occupy at least one column width.
22953
229542008-02-01 Miles Bader <miles@gnu.org>
22955
22956 * Makefile.in: Remove redundant HAVE_XFT clause.
22957
229582008-02-01 Kenichi Handa <handa@m17n.org>
22959
22960 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22961
229622008-02-01 Kenichi Handa <handa@m17n.org>
22963
22964 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22965 being nil.
22966
229672008-02-01 Kenichi Handa <handa@m17n.org>
22968
22969 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22970
229712008-02-01 Kenichi Handa <handa@m17n.org>
22972
22973 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22974
229752008-02-01 Kenichi Handa <handa@m17n.org>
22976
22977 * search.c (simple_search): Fix previous change.
22978
229792008-02-01 Kenichi Handa <handa@m17n.org>
22980
22981 * xftfont.c (ftfont_font_format): Extern declaration.
22982
22983 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22984
22985 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22986 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22987
22988 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
22989 (ftfont_font_format): Fix previous change.
22990
22991 * font.h (Ffont_xlfd_name): EXFUN it.
22992
22993 * font.c (font_parse_xlfd): Fix the array size of `f'.
22994 (register_font_driver): Use EQ to compare driver->type.
22995
22996 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
22997 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
22998 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
22999
230002008-02-01 Kenichi Handa <handa@m17n.org>
23001
23002 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
23003 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
23004
230052008-02-01 Kenichi Handa <handa@m17n.org>
23006
23007 * xfont.c (xfont_open): Set font->format.
23008
23009 * xftfont.c (xftfont_open): Set font->format.
23010
23011 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
23012 (ftfont_list): Include FC_FONTFORMAT in FcObject.
23013 (ftfont_open): Set font->format.
23014 (ftfont_font_format): New function.
23015
23016 * font.h (struct font): New member format.
23017
23018 * font.c (Qopentype): New variable.
23019 (syms_of_font): Defsym it.
23020 (Fquery_font): Change the format of the last element of the return
23021 value.
23022
230232008-02-01 Kenichi Handa <handa@m17n.org>
23024
23025 * xfns.c (xic_create_xfontset): Try the default fontset name as a
23026 last resort.
23027
230282008-02-01 Kenichi Handa <handa@m17n.org>
23029
23030 * coding.c (detect_coding_charset): Fix detection of multi-byte
23031 charset.
23032
230332008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
23034
23035 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
23036
230372008-02-01 Kenichi Handa <handa@m17n.org>
23038
23039 * xdisp.c (get_next_display_element): Set it->face_id for the
23040 first component of a composition.
23041 (x_produce_glyphs): Check if the font is changed or not for composition.
23042
230432008-02-01 Kenichi Handa <handa@m17n.org>
23044
23045 * fontset.c (Qlatin): New variable.
23046 (syms_of_fontset): Define it as a lisp symbol.
23047 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23048
230492008-02-01 Kenichi Handa <handa@m17n.org>
23050
23051 * font.c (font_unparse_fcname): Pay attention to the case that
23052 some of font property is a null string.
23053
230542008-02-01 Kenichi Handa <handa@m17n.org>
23055
23056 * term.c: Include "composite.h".
23057 (encode_terminal_code): Output all components of composition.
23058 Check the size of encode_terminal_src.
23059 (produce_glyphs): For composition, call produce_composite_glyph.
23060 (append_composite_glyph, produce_composite_glyph): New functions.
23061
23062 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23063 is not found, get font_info from the current ascii face.
23064
230652008-02-01 Kenichi Handa <handa@m17n.org>
23066
23067 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23068 buffer-file-name to Qnil before calling insert_from_buffer.
23069
23070 * font.c (font_unparse_fcname): Pay attention to the case that
23071 foundry is a null string.
23072
230732008-02-01 Kenichi Handa <handa@m17n.org>
23074
23075 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23076
23077 * font.c (Qunicode_sip): New variable.
23078 (syms_of_font): Declare it as a Lisp symbol.
23079
23080 * font.h (Qunicode_sip): Extern it.
23081
230822008-02-01 Kenichi Handa <handa@m17n.org>
23083
23084 * composite.c (get_composition_id): Pay attention to TAB component.
23085
23086 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23087 TAB. Adjust for the change of s->char2b which always points to
23088 the first element of allocated memory.
23089
23090 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23091
23092 * xdisp.c (handle_composition_prop): Set it->c to the first
23093 non-TAB component.
23094 (fill_composite_glyph_string): Change argument.
23095 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23096 (x_produce_glyphs): Fix handling of left/right padding.
23097
230982008-02-01 Kenichi Handa <handa@m17n.org>
23099
23100 * coding.c (detect_coding_system): Fix for handling off
23101 inhibit_iso_escape_detection. Fix for the case that no coding
23102 system is defined for a specific coding category.
23103
231042008-02-01 Kenichi Handa <handa@m17n.org>
23105
23106 * font.c (font_matching_entity): Delete unused local var.
23107
23108 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23109 opening a font.
23110
23111 * fileio.c (Finsert_file_contents): On recovering a file, assume
23112 Unix-like eol.
23113 (choose_write_coding_system): On auto-saving a file, force
23114 Unix-like eol.
23115
23116 * coding.c (setup_coding_system): Fix setting of
23117 coding->common_flags based on eol_type.
23118 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23119 inherit from it.
23120
231212008-02-01 Kenichi Handa <handa@m17n.org>
23122
23123 * alloc.c (NSTATICS): Increas to 0x600.
23124
231252008-02-01 Kenichi Handa <handa@m17n.org>
23126
23127 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23128 (ftfont_list): Don't check :name property.
23129 (ftfont_match): New function.
23130 (ftfont_pattern_entity): If the pattern doesn't contain
23131 FC_SPACING, don't assume FC_MONO.
23132
23133 * font.h (struct font_driver): New member `match'.
23134 (font_update_drivers): Adjust prototype.
23135
23136 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23137 property of FONT.
bba3e508
SM
23138 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23139 Define them unconditionally.
aac0c6e3
MR
23140 (font_matching_entity): New function.
23141 (font_open_by_name): Try font_matching_entity if exact match is
23142 not found.
23143 (font_update_drivers): Delete the arg FONT. Return a list of
23144 actually used backends. Don't free faces, font caches here.
23145 Don't store data in frame parameters. Don't call x_set_font.
23146 (Ffont_spec): Store :name property as is.
23147 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23148 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23149 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23150 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23151 Call font->driver->otf_gsub instead of font_otf_gsub.
23152
23153 * frame.c (x_set_font_backend): Do more works that were done in
23154 font_update_drivers before.
23155
23156 * xfont.c (xfont_match): New function.
23157 (xfont_driver): Set xfont_driver.match to xfont_match.
23158 (xfont_draw): Set font in GC if necessary.
23159
23160 * ftxfont.c (ftxfont_match): New function.
23161 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23162
23163 * xftfont.c (xftfont_match): New function.
23164 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23165
231662008-02-01 Kenichi Handa <handa@m17n.org>
23167
23168 * font.h (struct font): New member scalable.
23169 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23170 (font_otf_gsub): Adjust prototype.
23171
23172 * font.c (font_otf_capability): Fix handling of the default langsys.
23173 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23174 Check the contents of SPEC.
23175 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23176 (check_gstring): New function.
23177 (REPLACEMENT_CHARACTER): New macro.
23178 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23179 glyph codes of GSTRING.
23180 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23181 (font_prepare_composition): Set cmp->glyph_len.
23182 (font_open_entity): Set font->scalable.
23183 (Ffont_get): Handle :otf property.
bba3e508
SM
23184 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23185 New functions.
aac0c6e3
MR
23186 (Fquery_font): Use font->font.full_name.
23187 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23188 Sfont_otf_alternates.
23189
23190 * ftfont.c (ftfont_open): Set font->font.full_name and
23191 font->font.name properly. Fix calculation of font->font.height
23192 and font->min_width.
23193
23194 * ftxfont.c (ftxfont_create_gcs): New function.
23195 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23196 (ftxfont_draw_backgrond): Fix filling region.
23197 (ftxfont_default_fid): New function.
23198 (ftxfont_open): Set xfont->fid to the return value of
23199 ftxfont_default_fid.
23200 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23201 (ftxfont_done_face): Free only GCs that are created by
23202 ftxfont_create_gcs.
23203 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23204
23205 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23206 Clip to src->width, etc (not src->clip_XXX).
23207
23208 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23209 FontBackend frame parameter.
23210
232112008-02-01 Kenichi Handa <handa@m17n.org>
23212
23213 * font.h (struct font_driver_list): New member `on'.
23214 (Fclear_font_cache): EXFUN it.
23215 (font_update_drivers): Extern it.
23216
23217 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23218 (font_list_entities): Check driver_list->on.
40b1a3a9 23219 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
23220 (font_update_drivers): New function.
23221 (Fclear_font_cache): Check driver_list->on.
23222
23223 * frame.h (Qfont_backend): Extern it.
23224 (x_set_font_backend): Extern it.
23225
23226 * frame.c (Qfont_backend): New variable.
23227 (frame_parms): New element for font-backend.
23228 (x_set_font_backend): New function.
23229
23230 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23231 FontBackend frame parameter.
23232 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23233 x_set_font_backend.
23234
23235 * xfont.c (xfont_list): Don't try listing by :name property if the
23236 name is not for XLFD.
23237
232382008-02-01 Kenichi Handa <handa@m17n.org>
23239
23240 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23241 (LGLYPH_SET_TO): New macros.
23242 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23243 element of G is vector or not.
23244 (font_at): Extern it.
23245
23246 * font.c: Include window.h.
23247 (font_lispy_object): New function.
23248 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23249 end of valid glyph.
23250 (font_close_object): Fix getting (struct font *).
23251 (font_at): New function.
23252 (Ffont_get): If FONT is a font-object, get entity from it.
23253 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
23254 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23255 Fix range check.
aac0c6e3
MR
23256 (Ffont_at): New function.
23257 (syms_of_font): Defsubr Sfont_at.
23258
23259 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23260 before the entry for Qcomposition.
23261 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23262 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23263 the font in gstring.
23264 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23265 LGLYPH_FORM (g) to detect the end of valid glyph.
23266 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23267 we are composing with gstring.
23268
23269 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23270 Check if adjustment is vector or not.
23271
23272 * Makefile.in (font.o): Make it depends on window.h.
23273
232742008-02-01 Kenichi Handa <handa@m17n.org>
23275
23276 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23277 adjustment is vector or not.
23278
232792008-02-01 Miles Bader <miles@gnu.org>
23280
23281 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23282
232832008-02-01 Kenichi Handa <handa@m17n.org>
23284
23285 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 23286 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
23287 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23288
23289 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23290 (DEVICE_DELTA): Fix typo.
23291 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23292 LGLYPH format.
23293
23294 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23295 the change of LGLYPH format.
23296
232972008-02-01 Kenichi Handa <handa@m17n.org>
23298
23299 * ftfont.c (ftfont_list): Fix typo.
23300 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23301
233022008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23303
23304 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23305
23306 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23307 xftface_info is non-NULL.
23308
233092008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23310
23311 * ftfont.c (ftfont_list): Move misplaced #endif.
23312
233132008-02-01 Kenichi Handa <handa@m17n.org>
23314
23315 * ftfont.c (ftfont_list): Pay attention to the case that
23316 FC_CAPABILITY is not defined.
23317
233182008-02-01 Kenichi Handa <handa@m17n.org>
23319
23320 * xftfont.c (xftfont_open): Set charset related members to -1.
23321
23322 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23323 QCname.
23324 (ftfont_open): Set charset related members to -1.
23325
23326 * fontset.c (Votf_script_alist): New variable.
23327 (syms_of_fontset): Initialize it.
23328 (fontset_font): Delete unused variable.
23329
23330 * fontset.h (Votf_script_alist): Extern it.
23331
23332 * font.c (font_find_for_lface): Optimize code.
23333
23334 * font.h (font_close_object, font_merge_old_spec): Extern them.
23335
233362008-02-01 Kenichi Handa <handa@m17n.org>
23337
23338 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23339 (syms_of_font): Initialize them.
23340 (font_pixel_size): Allow float value in dpi.
23341 (font_prop_validate_type): Delete.
23342 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23343 Change caller.
23344 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23345 (font_prop_validate_extra): Delete.
23346 (font_prop_validate_spacing): New function.
23347 (font_property_table): Add elements for all known properties.
bba3e508
SM
23348 (get_font_prop_index): Rename from check_font_prop_name.
23349 New argument FROM. Change caller.
aac0c6e3
MR
23350 (font_prop_validate): Validate all known properties.
23351 (font_put_extra): Delete argument force. Change caller.
23352 (font_expand_wildcards): Make it static. Fix the way of shrinking
23353 the possible range.
23354 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23355 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23356 Change caller.
23357 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23358 (font_parse_fcname): Delete argument merge. Fix parsing of point
23359 size. Don't validate properties values here. Change caller.
23360 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23361 (font_open_by_name): Delete unused variable.
23362 (Ffont_spec): Likewise. Validate property values.
23363 (Ffont_match_p): New function.
23364
23365 * font.h (QCscalable): Extern it.
23366 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23367
23368 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23369
23370 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23371 (xfont_list_pattern): New function.
23372 (xfont_list): Use xfont_list_pattern.
23373
233742008-02-01 Kenichi Handa <handa@m17n.org>
23375
23376 * font.h (Flist_fonts): EXFUN it.
23377
233782008-02-01 Jason Rumney <jasonr@gnu.org>
23379
23380 * w32term.c (w32_initialize): Add back smoothing_type and
23381 smoothing_enabled definitions.
23382
233832008-02-01 Kenichi Handa <handa@m17n.org>
23384
23385 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23386 s->face->font on determining underline position.
23387
233882008-02-01 Kenichi Handa <handa@m17n.org>
23389
23390 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23391 (font_has_char): Accept font-object too.
23392 (font_find_for_lface): Try at first with a size specified in face.
23393
233942008-02-01 Kenichi Handa <handa@m17n.org>
23395
23396 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23397 font_open_by_name.
23398
233992008-02-01 Kenichi Handa <handa@m17n.org>
23400
23401 * font.h (QCspacing, QCdpi): Extern them.
23402 (enum font_spacing): New enum.
23403 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23404
23405 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23406 (QCspacing, QCdpi): New variables.
23407 (syms_of_font): Initialize them.
23408 (font_pixel_size): New function.
23409 (font_put_extra): New function.
23410 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23411 in FONT_EXTRA.
23412 (font_parse_fcname): Handle enumerated values (e.g. bold).
23413 Fix handling font size. Add QCname property that contains only
23414 unknown properties.
23415 (font_score): Change argument. Change caller. Pay attention to
23416 FONT_PIXEL_SIZE_QUANTUM.
23417 (font_sort_entites, font_list_entities, font_find_for_lface)
23418 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23419 (Ffont_spec): Add QCname property that contains only unknown properties.
23420
bba3e508
SM
23421 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23422 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
23423 listed font. Don't include scalable in pattern. Pay attention to
23424 FONT_PIXEL_SIZE_QUANTUM.
23425
234262008-02-01 Kenichi Handa <handa@m17n.org>
23427
23428 * font.c (font_parse_fcname): Fix parsing of point-size.
23429 (font_unparse_fcname): Produce symbolic names for style properties.
23430 (font_list_entities): Handle float size correctly.
23431 (font_open_by_name): Prefer `normal' property values if the name
23432 doesn't specify them.
23433
23434 * fontset.c (Finternal_char_font): Use font_get_name, not
23435 Ffont_xlfd_name.
23436
23437 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23438 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23439 pattern. Don't force scalable.
23440
23441 * xftfont.c (xftfont_open): For generating a name, start from
23442 96-byte buffer.
23443
234442008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23445
23446 * frame.h (x_new_fontset2): Fix prototype.
23447
234482008-02-01 Kenichi Handa <handa@m17n.org>
23449
23450 * font.h (struct font_driver): Delete member parse_name.
23451 (font_match_p, font_get_spec, font_parse_fcname)
23452 (font_unparse_fcname): Extern them.
23453 (font_get_name): Adjust prototype.
23454
23455 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23456 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
23457 (font_expand_wildcards): Fix handling ENCODING field.
23458 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
23459 (font_parse_fcname): New function.
23460 (font_unparse_fcname): New function.
23461 (font_parse_name): New function.
23462 (font_match_p): New function.
23463 (font_get_name): Change return value to Lisp string.
23464 (font_get_spec): New function.
23465 (Qunspecified, Qignore_defface): Don't extern them.
23466 (font_find_for_lface): Assume that LFACE is fully specified.
23467 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23468 object, use it for FACE.
23469 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23470 driver->parse_name.
23471 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23472
23473 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23474 prototype.
23475
23476 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23477 argument F. Don't call Fnew_fontset. Instead, directly call
23478 make_fontset.
23479
23480 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23481
23482 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23483 of x_new_fontset2.
23484
23485 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23486 (Qsans__serif): New variables.
23487 (ftfont_generic_family_list): New variable.
23488 (syms_of_ftfont): Initialize the above variables.
23489 (ftfont_pattern_entity): Delete argument NAME.
23490 (ftfont_list_generic_family): New function.
23491 (ftfont_parse_name): Delete this function.
23492 (ftfont_list): Try generic family only when FcFontList found no font.
23493 (ftfont_list_family): Fix args to FcObjectSetBuild.
23494
23495 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23496 object in attrs[LFACE_FONT_INDEX].
23497 (set_lface_from_font_name): Cancel all changes for font-backend.
23498 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23499 function.
23500 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23501 font object in QCfont attribute.
23502 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23503 (realize_default_face) [USE_FONT_BACKEND]: Call
23504 set_lface_from_font_and_fontset.
23505
23506 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23507 "fixed", and signal error here if no suitable font was found.
23508
23509 * xfont.c (xfont_parse_name): Delete this function.
23510
23511 * xftfont.c (xftfont_open): Change coding style of error
23512 handling. Generate fontconfig's fontname pattern.
23513
23514 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23515 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23516
23517 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23518 Both args FONTSET and FONT_OBJECT must be existing ones.
23519
235202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23521
23522 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23523
235242008-02-01 Kenichi Handa <handa@m17n.org>
23525
23526 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23527
23528 * font.h (struct font): Fix typo.
23529
23530 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23531 XLFD_XXX_INDEX.
23532 (enum xlfd_field_mask): New enum.
ef1b0ba7 23533 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
23534 are followed by non-digits, return a symbol.
23535 (font_expand_wildcards): New function.
23536 (font_parse_xlfd): Fix wildcard handling.
23537 (Ffont_spec): If :name is specified, reflect the info in the other
23538 properties.
23539
23540 * ftfont.c (ftfont_pattern_entity): Fix typo.
23541 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23542 locale.
23543
235442008-02-01 Kenichi Handa <handa@m17n.org>
23545
23546 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23547
23548 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23549 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23550 registry doesn't specify encoding part.
23551 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23552 (font_open_by_name): At first try parsing the name.
23553 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23554 as Lisp symbols.
23555
23556 * fontset.c (reorder_font_vector): Pay attention to the case that
23557 the 3rd element of font_def is nil.
23558 (fontset_font): For the default fontset, append one more fontset
23559 elements for a script-based font specification. Don't add script
23560 attribute on finding a font.
23561 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23562 font name.
23563 (fontset_ascii_font): If a font can't be opened, return nil.
23564
23565 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23566 (ftfont_pattern_entity): New function.
23567 (ftfont_get_cache): Assume that freetype_font_cache is already
23568 initialized.
23569 (ftfont_list): Handle the case that a file is specified in font
23570 name. Use ftfont_pattern_entity to generate entities.
23571 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23572 (syms_of_ftfont): Initialize freetype_font_cache.
23573
23574 * xftfont.c (xftfont_open): Make the font name fontconfig's
23575 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23576 (xftfont_close): Free font->font.name if not NULL.
23577
23578 * xfont.c (xfont_list): If script is specified for a font, return
23579 null_vector.
23580 (xfont_list_family): Declare argument type.
23581
23582 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23583 name, set LFACE_FONT (lface) to nil.
23584
23585 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23586 return Qnil.
23587
235882008-02-01 Kenichi Handa <handa@m17n.org>
23589
23590 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23591 (standard_args): Add "-enable-font-backend".
23592
235932008-02-01 Kenichi Handa <handa@m17n.org>
23594
23595 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23596 (struct xftdraw_list, xftdraw_list): Delete them.
23597 (register_xftdraw, check_xftdraw): Delete them.
23598 (xftfont_prepare_face): Don't call register_xftdraw.
23599 (xftfont_done_face): Don't call check_xftdraw.
23600 (xftfont_draw): Get background color only when with_background is
23601 nonzero.
23602
23603 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23604
236052008-02-01 Kenichi Handa <handa@m17n.org>
23606
23607 These changes are for the new font handling codes.
23608
23609 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23610 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23611 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23612 (FONTSRC, FONTOBJ): New variables.
23613 (obj): Add $(FONTOBJ).
23614 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23615 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23616 @LIBOTF_LIBS@.
23617 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23618 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23619
23620 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23621
23622 * character.h (Vscript_representative_chars): Extern it.
23623
23624 * character.c (Vscript_representative_chars): New variable.
23625 (syms_of_character): Declare it as a Lisp variable.
23626
23627 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23628 enable_font_backend is nonzero, accept the composition method
23629 COMPOSITION_WITH_GLYPH_STRING.
23630
23631 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23632 enumeration COMPOSITION_WITH_GLYPH_STRING.
23633
23634 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23635 members clip_x, clip_y, clip_width, and clip_height.
23636 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23637
23638 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23639 --enable-font-backend. Call syms_of_font.
23640
23641 * fns.c (assoc_no_quit): New function.
23642
23643 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23644 (face_for_font, new_fontset_from_font)
23645 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23646
23647 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23648 (fontset_font, fontset_ascii, face_for_char)
23649 (make_fontset_for_ascii_face, Ffont_info)
23650 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23651 is nonzero, use font-backend mechanism.
23652 (find_font_encoding): Make it non-static.
23653 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23654 New functions.
23655
23656 * frame.h (struct frame): New members resx and resy.
23657 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23658 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23659
23660 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23661 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23662
23663 * lisp.h (assoc_no_quit): Extern it.
23664
23665 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23666 Through out the file, use FONT_INFO_FROM_FACE instead of
23667 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23668 rif->per_char_metric.
23669 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23670 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23671 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23672 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23673 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23674 nonzero, use font-backend mechanism.
23675 (get_per_char_metric): New function.
23676
23677 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23678 (set_lface_from_font_name)
23679 (set_font_frame_param, free_realized_face)
23680 (prepare_face_for_display, clear_face_gcs)
23681 (Finternal_set_font_selection_order, realize_x_face)
23682 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23683 font-backend mechanism.
23684 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23685 (load_face_font) [USE_FONT_BACKEND]: Abort.
23686 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23687 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23688
23689 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23690 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23691 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
23692 nonzero, register all available font drivers.
23693 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
23694 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23695
23696 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23697 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23698 (x_set_glyph_string_clipping_exactly)
23699 (x_compute_glyph_string_overhangs)
23700 (x_draw_glyph_string_foreground)
23701 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23702 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23703 enable_font_backend is nonzero, use font-backend mechanism.
23704 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23705
237062008-02-01 Kenichi Handa <handa@m17n.org>
23707
23708 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23709 system_eol_type.
23710 (syms_of_coding): Initialize system_eol_type.
23711
23712 * process.c (Fset_process_coding_system): Inherit system's eol
23713 format if necessary.
23714
237152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23716
23717 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23718
237192008-02-01 Kenichi Handa <handa@m17n.org>
23720
23721 * coding.c (decode_eol): Pay attention to buffer relocation in
23722 del_range_2.
23723 (decode_coding): Call decode_eol before restoring undo_list.
23724
237252008-02-01 Kenichi Handa <handa@m17n.org>
23726
23727 * charset.c (Fdefine_charset_internal): Fix setting of
23728 emacs_mule_bytes.
23729
237302008-02-01 Kenichi Handa <handa@m17n.org>
23731
23732 * keyboard.c (read_char): Check if C is a character or not before
23733 looking up Vkeyboard_translate_table.
23734
237352008-02-01 Kenichi Handa <handa@m17n.org>
23736
bba3e508
SM
23737 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23738 Fix condition to terminate the loop.
aac0c6e3
MR
23739
237402008-02-01 Kenichi Handa <handa@m17n.org>
23741
23742 * coding.c (produce_composition): Compare charbuf[i] instead of
23743 args[i] against 0.
23744 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23745
237462008-02-01 Kenichi Handa <handa@m17n.org>
23747
23748 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23749 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23750 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23751 detect_coding.
23752 (emacs_mule_char): Handle old style (Emacs 20) component character
23753 of a composition.
23754 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23755 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23756 composition rule.
23757 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23758
237592008-02-01 Kenichi Handa <handa@m17n.org>
23760
23761 * coding.c (encode_coding_ccl): Allocate destination dynamically
23762 when necessary.
23763
237642008-02-01 Kenichi Handa <handa@m17n.org>
23765
23766 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23767 the loop. When quitted, show a proper error message.
23768
237692008-02-01 Kenichi Handa <handa@m17n.org>
23770
bba3e508
SM
23771 * xterm.c (x_set_glyph_string_clipping_exactly):
23772 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
23773
23774 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23775 character sequence.
23776 (Fccl_execute_on_string): Use ASET, not XSET.
23777
237782008-02-01 Kenichi Handa <handa@m17n.org>
23779
23780 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23781
237822008-02-01 Kenichi Handa <handa@m17n.org>
23783
23784 * coding.c (decode_coding): Fix the condition of terminating the
23785 decoding loop.
23786
237872008-02-01 Kenichi Handa <handa@m17n.org>
23788
23789 * data.c (Faset): On setting a character bigger than 255 in a
23790 unibyte string, signal an error instead of make the string multibyte.
23791
237922008-02-01 Kenichi Handa <handa@m17n.org>
23793
23794 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23795 made by a mapping table.
23796
237972008-02-01 Kenichi Handa <handa@m17n.org>
23798
23799 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23800 not.
23801 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23802 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23803
bba3e508
SM
23804 * xterm.c (x_draw_composite_glyph_string_foreground):
23805 Check s->face is NULL or not.
aac0c6e3
MR
23806
238072008-02-01 Kenichi Handa <handa@m17n.org>
23808
23809 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23810 (x_draw_glyph_string): Fix drawing of right_overhang and
23811 left_overhang around/on cursor.
23812
23813 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23814
238152008-02-01 Kenichi Handa <handa@m17n.org>
23816
23817 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23818
238192008-02-01 Kenichi Handa <handa@m17n.org>
23820
23821 * coding.c (Fdefine_coding_system_internal)
23822 (Fdefine_coding_system_alias): Avoid a duplicated element in
23823 Vcoding_system_alist.
23824
238252008-02-01 Kenichi Handa <handa@m17n.org>
23826
23827 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23828
23829 * coding.c (Qcoding_system_define_form): New variable.
23830 (syms_of_coding): Intern and staticpro it.
23831 (Fcoding_system_p): Check Qcoding_system_define_form.
23832 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23833
23834 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23835 Fcoding_system_p.
23836 (CHECK_CODING_SYSTEM): If ID is not available, call
23837 Fcheck_coding_system.
23838 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23839 Try also Fcheck_coding_system.
23840
238412008-02-01 Kenichi Handa <handa@m17n.org>
23842
23843 * coding.c (code_conversion_restore): GCPRO arg.
23844
238452008-02-01 Kenichi Handa <handa@m17n.org>
23846
23847 * character.c (lisp_string_width): Check multibyteness of STRING.
23848
238492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23850
23851 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23852 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23853 (decode_mac_font_name): Use decode_coding_c_string instead of
23854 decode_coding.
bba3e508
SM
23855 (x_load_font): Initialize fontp->fontset to -1.
23856 Set fontp->encoding_type.
aac0c6e3
MR
23857
238582008-02-01 Kenichi Handa <handa@m17n.org>
23859
23860 * search.c (search_buffer): Give up BM search on case-fold-search
23861 if one of a target character has a case-equivalence of different
3b59c351 23862 byte length even if that target character is an ASCII.
aac0c6e3
MR
23863 (simple_search): Fix calculation of byte length of matched text.
23864 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23865
238662008-02-01 Kenichi Handa <handa@m17n.org>
23867
23868 * coding.c (decode_coding): Fix handling of invalid bytes.
23869
238702008-02-01 Kenichi Handa <handa@m17n.org>
23871
23872 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23873 Unicode characters.
23874
238752008-02-01 Kenichi Handa <handa@m17n.org>
23876
23877 * coding.c (encode_coding_object): If a pre-write-conversion
23878 function makes a new buffer, kill it.
23879
238802008-02-01 Kenichi Handa <handa@m17n.org>
23881
23882 * coding.c (QCascii_compatible_p): New variable.
23883 (syms_of_coding): Initialize it.
23884 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23885 calling string_char.
23886 (record_conversion_result): Add `default:' case.
23887 (coding_charset_list): Delete unused variable `coding_type'.
23888 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23889 property in the plist of the coding system.
23890 (Fcoding_system_put): Check QCascii_compatible_p.
23891
238922008-02-01 Miles Bader <miles@gnu.org>
23893
23894 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23895 removed calculation of frame `f', as it's now used.
23896
238972008-02-01 Kenichi Handa <handa@m17n.org>
23898
23899 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23900 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23901 (UNIDATA): New variable.
23902 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
23903 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23904 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
23905
239062008-02-01 Kenichi Handa <handa@m17n.org>
23907
23908 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23909 (admindir): New variable.
23910 ($(lispsource)international/charprop.el): New target.
23911
239122008-02-01 Miles Bader <miles@gnu.org>
23913
23914 * character.c (chars-in-region): Remove obsolete function.
23915 (syms_of_character): Remove its initialization.
23916
239172008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23918
23919 * w32select.c (validate_coding_system)
23920 (setup_windows_coding_system): New functions.
bba3e508
SM
23921 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23922 Use setup_windows_coding_system.
23923 (setup_config, Fw32_get_clipboard_data):
23924 Use validate_coding_system.
aac0c6e3
MR
23925 (Fx_selection_exists): Move call to setup_config to a place
23926 where signals are allowed.
23927
23928 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23929 (Fcheck_coding_system): Add declarations.
23930
239312008-02-01 Kenichi Handa <handa@m17n.org>
23932
23933 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23934
239352008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23936
23937 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23938 string as the second argument for x_new_fontset.
23939
239402008-02-01 Kenichi Handa <handa@m17n.org>
23941
23942 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23943 (encode_coding_object): Use safe_call instead of call2.
23944
239452008-02-01 Kenichi Handa <handa@m17n.org>
23946
23947 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23948
23949 * Makefile.in (lisp): Include charprop.el.
23950
239512008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23952
23953 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23954 Not sure if it's unnecessary.
23955
239562008-02-01 Steven Tamm <steventamm@mac.com>
23957
23958 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23959 some possibly unnecessary fontset checking code that crashed
23960 when creating a new frame.
23961
239622008-02-01 Kenichi Handa <handa@m17n.org>
23963
23964 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23965 lookup_face.
23966
23967 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23968
23969 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23970
239712008-02-01 Kenichi Handa <handa@m17n.org>
23972
23973 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23974 (coding_charset_list): New function.
23975
23976 * coding.h (coding_charset_list): Extern it.
23977
239782008-02-01 Kenichi Handa <handa@m17n.org>
23979
23980 * fontset.c (Fset_fontset_font): Call find_font_encoding with
23981 concatenation of family and registry.
23982
239832008-02-01 Kenichi Handa <handa@m17n.org>
23984
23985 * character.h (BYTE8_STRING): Fix typo.
23986
23987 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
23988 string to multibyte (sync to HEAD).
23989
23990 * casefiddle.c (casify_region): Handle changes in byte-length
23991 using replace_range_2 (sync to HEAD).
23992
239932008-02-01 Andreas Schwab <schwab@suse.de>
23994
23995 * chartab.c (map_char_table): GCPRO table and arg.
23996
239972008-02-01 Kenichi Handa <handa@m17n.org>
23998
23999 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
24000 already at limit.
24001
240022008-02-01 Kenichi Handa <handa@m17n.org>
24003
24004 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
24005 instead of fast_c_string_match_ignore_case.
bba3e508
SM
24006 (find_font_encoding): Change argument to Lisp_Object.
24007 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
24008 fast_c_string_match_ignore_case. Change caller.
24009
240102008-02-01 Kenichi Handa <handa@m17n.org>
24011
24012 * xdisp.c (get_next_display_element): In unibyte case, decide to
24013 display in octal form by checking a character by
24014 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
24015
24016 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
24017
24018 * character.c (unibyte_has_multibyte_table): New variable.
24019
24020 * character.h (unibyte_has_multibyte_table): Extern it.
24021 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
24022
240232008-02-01 Kenichi Handa <handa@m17n.org>
24024
24025 * coding.c (encode_coding_iso_2022): Fix handling of charset
24026 annotation.
24027
240282008-02-01 Kenichi Handa <handa@m17n.org>
24029
24030 * coding.c (setup_coding_system): If coding_system is nil, use
24031 Qundecided.
24032 (Fterminal_coding_system): Return nil if terminal coding system is
24033 `undecided'.
bba3e508
SM
24034 (syms_of_coding): Define coding-system `undecided' here.
24035 Setup terminal_coding as `undecided'.
aac0c6e3
MR
24036
240372008-02-01 Kenichi Handa <handa@m17n.org>
24038
bba3e508
SM
24039 * xdisp.c (message_dolog, set_message_1):
24040 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
24041
24042 * lread.c (read1): Fix reading of a char-table.
24043
24044 * print.c (print_object): Include sub char-table in circularities
24045 detection.
24046
240472008-02-01 Kenichi Handa <handa@m17n.org>
24048
24049 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24050 Append the found sequences in car of ARGS instead of prepending.
24051
240522008-02-01 Kenichi Handa <handa@m17n.org>
24053
24054 * fileio.c (report_file_error): Make a unibyte string from
24055 strerror (errorno).
24056 (Fsubstitute_in_file_name): Fix the arg to
24057 unibyte_char_to_multibyte. It is evaluated twice.
24058
240592008-02-01 Kenichi Handa <handa@m17n.org>
24060
24061 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24062
240632008-02-01 Kenichi Handa <handa@m17n.org>
24064
24065 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24066 BOM is not found.
24067 (detect_coding, detect_coding_system): Optimization for ISO-2022
24068 when no 8-bit data is found.
24069
240702008-02-01 Jason Rumney <jasonr@gnu.org>
24071
24072 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24073
240742008-02-01 Kenichi Handa <handa@m17n.org>
24075
24076 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24077 CHARS.
24078
240792008-02-01 Steven Tamm <steventamm@mac.com>
24080
24081 * macterm.c (mac_encode_char): Add charset argument and update
24082 to use encoding_type.
24083 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24084 switch to pure fontset.
24085 (decode_mac_font_name): Temporarily remove decoding.
24086 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24087 (x_load_font): Temporarily remove encoding.
24088
240892008-02-01 Kenichi Handa <handa@m17n.org>
24090
24091 * xfaces.c (Fface_font): If frame is not on a window system,
24092 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24093 refer to face->font.
24094 (split_font_name_into_vector, build_font_name_from_vector)
24095 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24096 when HAVE_WINDOW_SYSTEM is defined.
24097
240982008-02-01 Kenichi Handa <handa@m17n.org>
24099
24100 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24101 (x_produce_glyphs): Fix setting of members of cmp in case
24102 cmp->glyph_len is zero.
24103
24104 * fontset.c (Fset_fontset_font): Fix docstring.
24105 (Ffontset_info): Make it backward compatible. New arg ALL.
24106
241072008-02-01 Kim F. Storm <storm@cua.dk>
24108
24109 * process.c (read_process_output): Grow decoding_buf when needed;
24110 this could cause a crash in allocate_string and compact_small_strings.
24111
241122008-02-01 Kenichi Handa <handa@m17n.org>
24113
24114 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24115
241162008-02-01 Kenichi Handa <handa@m17n.org>
24117
24118 * coding.c (setup_coding_system): Set coding->common_flags
24119 correctly for raw-text.
24120 (consume_chars): On encoding unibyte text by raw-text, don't check
24121 multibyte form.
24122 (encode_coding): On encoding by raw-text, never use translation tables.
24123
24124 * fileio.c (e_write): Short cut for the case of no encoding.
24125
241262008-02-01 Kenichi Handa <handa@m17n.org>
24127
24128 * coding.c (detect_coding, detect_coding_system): Delete unused
24129 variables.
24130
241312008-02-01 Kenichi Handa <handa@m17n.org>
24132
24133 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24134 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24135
241362008-02-01 Kenichi Handa <handa@m17n.org>
24137
bba3e508
SM
24138 * coding.c (Ffind_coding_systems_region_internal):
24139 Include raw-text and no-conversion in the result.
aac0c6e3
MR
24140
241412008-02-01 Kenichi Handa <handa@m17n.org>
24142
24143 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24144 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24145 FONT_DEF.
24146 (font_def_arg, add_arg, from_arg, to_arg): New args.
24147 (set_fontset_font): Change argument.
24148 (Fset_fontset_font): Fix for the case that TARGET is a script
24149 name and charset name.
24150 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24151
241522008-02-01 Kenichi Handa <handa@m17n.org>
24153
24154 * fontset.c (fontset_font): Rename from fontset_face. Change return
24155 value.
24156 (face_suitable_for_char_p, face_for_char): Adjust for the change
24157 of fontset_font.
24158 (make_fontset_for_ascii_face): Fix setting of the fontset element
24159 for ASCII.
24160 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24161 to get a font name.
24162 (Ffontset_info): Adjust for the change of fontset_font.
24163
24164 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24165
24166 * character.h (LEADING_CODE_LATIN_1_MIN)
24167 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24168
241692008-02-01 Kenichi Handa <handa@m17n.org>
24170
24171 * editfns.c (check_translation): New function.
24172 (Ftranslate_region_internal): Handle M:N mapping.
24173
241742008-02-01 Kenichi Handa <handa@m17n.org>
24175
24176 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24177
241782008-02-01 Kenichi Handa <handa@m17n.org>
24179
24180 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24181 goto invalid_code.
24182 (decode_coding_iso_2022): Fix handling of invalid designation.
24183
24184 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24185 after calling code_conversion_save.
24186
241872008-02-01 Kenichi Handa <handa@m17n.org>
24188
24189 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24190
24191 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24192
24193 * fontset.c: Include "intervals.h".
24194 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
24195 (free_face_fontset, new_fontset_from_font_name):
24196 Fix Lisp_Object/int mixup.
aac0c6e3
MR
24197
24198 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24199
24200 * coding.c: Add many prototypes for static functions.
24201 (get_translation_table): Allow max_lookup to be NULL.
24202 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
24203 (Funencodable_char_position, Fcheck_coding_systems_region):
24204 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
24205
242062008-02-01 Kenichi Handa <handa@m17n.org>
24207
24208 * coding.c (get_translation_table): Declare it as Lisp_Object.
24209 (LOOKUP_TRANSLATION_TABLE): New macro.
24210 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24211 instead of CHAR_TABLE_REF.
24212
242132008-02-01 Kenichi Handa <handa@m17n.org>
24214
24215 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24216 annotation data format.
24217 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24218 Change arguments FROM and TO to single argument NCHARS. Change caller.
24219 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24220 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24221 (decode_coding_ccl, decode_coding_charset): Pay attention to
24222 coding->charbuf_used.
24223 (get_translation): New function.
24224 (produce_chars): New arguments translation_table and last_block.
24225 Translate characters here. Return number of carryover chars.
24226 Change caller.
24227 (produce_composition): New argument pos. Change caller.
24228 Adjust for the change of annotation data format.
24229 (produce_charset, produce_annotation): Likewise.
24230 (decode_coding, encode_coding): Don't call translate_chars.
24231 (consume_chars): New arg translation_table. Change caller.
24232 (translate_chars): Delete.
24233 (syms_of_coding): Make translation-table's number of extra slots 2.
24234
242352008-02-01 Kenichi Handa <handa@m17n.org>
24236
24237 * search.c (simple_search): Fix setting this_pos_byte in backward
24238 search.
24239
24240 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24241 byte sequence.
24242 (detect_coding_ccl): Fix setting of the variable valids.
24243
242442008-02-01 Kenichi Handa <handa@m17n.org>
24245
24246 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24247
24248 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24249
24250 * editfns.c (Ftranslate_region_internal): Rename from
24251 Ftranslate_region. Accept a char-table in TABLE.
24252 (syms_of_editfns): Defsubr Stranslate_region_internal.
24253
24254 * xfaces.c (set_lface_from_font_name): If a font is specified for
24255 a frame, generate a fontset from the font.
24256 (build_scalable_font_name): If the scalable font is requested for
24257 a specific size, don't change that size.
24258 (try_font_list): Try a scalable font also in the case that a
24259 pattern string is specified.
24260
242612008-02-01 Kenichi Handa <handa@m17n.org>
24262
24263 * xfaces.c (Fface_font): New optional arg CHARACTER.
24264
242652008-02-01 Kenichi Handa <handa@m17n.org>
24266
24267 * charset.h (CHARSET_OFFSET): New macro.
24268
242692008-02-01 Kenichi Handa <handa@m17n.org>
24270
24271 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24272
24273 * fontset.c (fontset_face): Handle the case that repertory is a
24274 char-table.
24275 (find_font_encoding): Return nil for unknown encoding.
24276 (Fset_fontset_font): Ignore a font of unknown encoding.
24277
242782008-02-01 Kenichi Handa <handa@m17n.org>
24279
24280 * keymap.c (describe_vector): Handle default value of a char table.
24281
24282 * fontset.c (fontset_face): Handle fallback fonts correctly.
24283 (Ffontset_info): Return infomation about fallback fonts.
24284
242852008-02-01 Kenichi Handa <handa@m17n.org>
24286
24287 * fontset.c (FONTSET_DEFAULT): New macro.
24288 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24289 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24290 the case that it is nil.
24291 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24292 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24293
24294 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24295 subset or superset.
24296
242972008-02-01 Kenichi Handa <handa@m17n.org>
24298
24299 * emacs.c (main): Call init_charset after syms_of_XXX.
24300
24301 * charset.c (Vcharset_map_directory): Delete.
24302 (Vcharset_map_path): New variable.
24303 (load_charset_map_from_file): Use Vcharset_map_path instead.
24304 (init_charset): Initialize Vcharset_map_path.
24305 (syms_of_charset): Delete declaration of "charset-map-directory",
24306 add declaration of "charset-map-path".
24307
243082008-02-01 Kenichi Handa <handa@m17n.org>
24309
24310 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24311 ASCII only string.
24312
24313 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24314
24315 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24316 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24317
243182008-02-01 Kenichi Handa <handa@m17n.org>
24319
24320 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24321
24322 * coding.c (QCmnemonic, QCdefalut_char)
24323 (QCdecode_translation_table, QCencode_translation_table)
24324 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24325 (get_translation_table): Return a list of translation tables if
24326 necessary.
24327 (decode_coding): Call get_translation_table with ENCODEP 0.
24328 (char_encodable_p): If translation_table is non-nil, always call
24329 translate_char.
24330 (Fdefine_coding_system_internal): Accept list of translation
24331 tables as :encode-translation-table and :decode-translation-table.
24332 (Fcoding_system_put): New function.
bba3e508
SM
24333 (syms_of_coding): Declare new symbols.
24334 Defsubr Scoding_system_put.
aac0c6e3
MR
24335 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24336 typically JISX0212.
24337
24338 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24339 when the charset is superset type.
24340
24341 * character.c (translate_char): Accept list of translation tables.
24342
243432008-02-01 Kenichi Handa <handa@m17n.org>
24344
24345 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24346 (CODING_ATTR_TRANS_TBL): New macro.
24347
24348 * coding.c (get_translation_table): New function.
24349 (translate_chars): Fix the bug of skipping annotation data.
24350 (decode_coding, encode_coding): Utilize get_translation_table.
24351 (char_encodable_p, Funencodable_char_position): Translate char if
24352 necessary.
24353 (Ffind_coding_systems_region_internal)
24354 (Fcheck_coding_systems_region): Setup translation table for encode
24355 in a coding system attribute vector in advance.
24356 (Fdefine_coding_system_internal): Allow a symbol as translation
24357 table. For shift-jis type coding system, allow 4th charset.
24358
243592008-02-01 Kenichi Handa <handa@m17n.org>
24360
24361 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24362
24363 * xdisp.c (get_next_display_element): Pass -1 as POS to
24364 FACE_FOR_CHAR if displaying a C-string.
24365
243662008-02-01 Kenichi Handa <handa@m17n.org>
24367
24368 * composite.c (get_composition_id): Handle xoff and yoff in a
24369 composition rule.
24370
24371 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24372 (struct composition): New member lbearing and rbearing.
24373
24374 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24375 (x_get_glyph_overhangs): Handle a composition glyph.
24376 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24377
24378 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24379 composition glyph.
24380
243812008-02-01 Kenichi Handa <handa@m17n.org>
24382
24383 * print.c: Include charset.h.
24384 (Vprint_charset_text_property): New variable.
24385 (Qdefault): Extern it.
24386 (PRINT_STRING_NON_CHARSET_FOUND)
24387 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24388 (print_check_string_result): New variable.
24389 (print_check_string_charset_prop): New function.
24390 (print_prune_charset_plist): New variable.
24391 (print_prune_string_charset): New function.
24392 (print_object): Call print_prune_string_charset if
24393 Vprint_charset_text_property is not t.
24394 (print_interval): Print nothing if interval->plist is nil.
24395 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24396 variable. Init and staticpro print_prune_charset_plist.
24397
243982008-02-01 Kenichi Handa <handa@m17n.org>
24399
24400 * fontset.c (new_fontset_from_font_name): Use the specified font
24401 for all characters in the new fontset.
24402
24403 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24404 OBJECT args.
24405
24406 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24407 OBJECT args for composition too.
24408
24409 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24410 OBJECT args.
24411
244122008-02-01 Kenichi Handa <handa@m17n.org>
24413
24414 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24415
24416 * fontset.c (reorder_font_vector): Adjust for the change of
24417 FONT_DEF format.
24418 (fontset_face): New arg id. Change caller.
24419 (face_for_char): New args pos and object.
24420 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24421 (fs_query_fontset): Check NAME by Fassoc too.
24422 (Fset_fontset_font): Allow non-XLFD font name.
24423 (Ffontset_info): Adjust for the change of FONT_DEF format.
24424
24425 * fontset.h (face_for_char): Adjust prototype.
24426
24427 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24428 (append_space, extend_face_to_end_of_line)
24429 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24430 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24431
24432 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24433 POS and OBJECT args.
24434
24435 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24436 POS and OBJECT args.
24437
244382008-02-01 Jason Rumney <jasonr@gnu.org>
24439
24440 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24441 of GlobalAlloc'ed memory.
24442
244432008-02-01 Kenichi Handa <handa@m17n.org>
24444
24445 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24446
24447 * charset.h (charset_table_used): Delete extern.
24448
24449 * charset.c (charset_table_used): Make it static.
24450 (map_charset_chars): Fix args to c_function with.
24451
24452 * chartab.c (map_sub_char_table_for_charset): Fix args to
24453 c_function with.
24454
bba3e508
SM
24455 * coding.h (enum coding_result_code):
24456 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
24457
24458 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24459 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24460 (Vlast_code_conversion_error): New variables.
24461 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24462 (ONE_MORE_BYTE): Record error if any instead of signaling an
24463 error. If non-ASCII multibyte char is found, return the negative
24464 value of the code. All callers changed to check it.
24465 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24466 (record_conversion_result): New function. Change all codes setting
24467 coding->result to call this function.
24468 (detect_coding_utf_8, decode_coding_utf_8)
24469 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24470 Don't use the local variable incomplete.
24471 (emacs_mule_char): Change the second arg to `const'.
24472 (decode_coding): Fix of flushing out unprocessed data.
24473 (make_conversion_work_buffer): Fix making of a work buffer.
24474 (decode_coding_object): Return coding->dst_object.
24475
24476 * fontset.c (set_fontset_font): Fix args.
24477
24478 * lisp.h (CHARACTERBITS): Define as 22.
24479
24480 * process.c (send_process): Be sure to set coding->src_multibyte.
24481
24482 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24483
244842008-02-01 Kenichi Handa <handa@m17n.org>
24485
24486 * xdisp.c (handle_auto_composed_prop): Give limit to
24487 Fnext_single_char_property_change.
24488
244892008-02-01 Kenichi Handa <handa@m17n.org>
24490
24491 * composite.c (syms_of_composite): Don't make the composition hash
24492 table weak.
24493
24494 * fontset.c (Fset_fontset_font): Fix docstring.
24495
24496 * lisp.h (detect_coding_system): Adjust prototype.
24497
24498 * fileio.c (kill_workbuf_unwind): Delete this function.
24499 (Finsert_file_contents): Adjust the call of detect_coding_system.
24500 Get conversion_buffer by code_conversion_save. Use the macro
24501 CODING_MAY_REQUIRE_DECODING. After decoding, update
24502 coding_system.
24503
24504 * coding.h (make_conversion_work_buffer): Delete extern.
24505 (code_conversion_save): Extern it.
24506
24507 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24508 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24509 (decode_coding_utf_8): Don't do eol converion.
24510 (detect_coding_utf_16): Check coding->src_chars, not
24511 coding->src_bytes. Add heuristics for those that have no signature.
24512 (decode_coding_emacs_mule, decode_coding_iso_2022)
24513 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24514 Don't do eol converion.
24515 (adjust_coding_eol_type): Return a new coding system.
24516 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24517 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24518 each change.
24519 (decode_coding): Pay attention to undo_list. Do eol conversion for
24520 all types of coding-systems (if necessary).
24521 (Vcode_conversion_work_buf_list): Delete it.
24522 (Vcode_conversion_reused_workbuf): Rename from
24523 Vcode_conversion_reused_work_buf.
24524 (Vcode_conversion_workbuf_name): New variable.
24525 (reused_workbuf_in_use): New variable.
24526 (make_conversion_work_buffer): Delete the arg DEPTH.
24527 (code_conversion_restore): Change argument to cons.
24528 (code_conversion_save): Delete the argument BUFFER. Change callers.
24529 (detect_coding_system): New argument src_chars. Change callers.
24530 Fix for utf-16 detection.
24531 (init_coding_once): Don't use ISO_carriage_return.
24532 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24533 reused_workbuf_in_use.
24534
245352008-02-01 Kenichi Handa <handa@m17n.org>
24536
24537 * keymap.c (store_in_keymap): Pay attention to the case that idx
24538 is a cons specifying a character range.
24539
245402008-02-01 Kenichi Handa <handa@m17n.org>
24541
24542 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24543 HANDLED_RECOMPUTE_PROPS.
24544
24545 * coding.c (Fdefine_coding_system_internal): Fix checking of
24546 ascii compatibility.
24547
245482008-02-01 Kenichi Handa <handa@m17n.org>
24549
24550 * charset.c (find_charsets_in_text): Delete unused locale variable.
24551 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24552
24553 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24554 Resync charset_list to Vemacs_mule_charset_list.
24555
24556 * keymap.c (store_in_keymap): Pay attention to the case that idx
24557 is a cons specifying a character range.
24558
245592008-02-01 Kenichi Handa <handa@m17n.org>
24560
24561 * composite.c (update_compositions): Bind inhibit-read-only, etc
24562 to t before calling remove-list-of-text-properties.
24563
24564 * print.c (print_object): Always print ASCII chars as is.
24565
245662008-02-01 Kenichi Handa <handa@m17n.org>
24567
24568 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24569
24570 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24571 is a char table.
24572
245732008-02-01 Kenichi Handa <handa@m17n.org>
24574
24575 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24576
245772008-02-01 Kenichi Handa <handa@m17n.org>
24578
24579 * xfaces.c (set_lface_from_font_name): Fix for the case that
24580 FONTNAME is not fontset name.
24581
245822008-02-01 Kenichi Handa <handa@m17n.org>
24583
24584 * fns.c (base64_encode_1): Fix previous change.
24585
245862008-02-01 Kenichi Handa <handa@m17n.org>
24587
24588 * fontset.c (set_fontset_font): New function.
24589 (Fset_fontset_font): If a font is specified for a charset, use
24590 map_charset_chars to store the font spec in a fontset.
24591
245922008-02-01 Kenichi Handa <handa@m17n.org>
24593
24594 * fontset.c (fontset_face): Create a fallback fontset on demand.
24595 (make_fontset): Don't create a fallback fontset here.
24596 (free_face_fontset): Free a fallback fontset (if any) too.
24597 (n_auto_fontsets): Delete this variable.
24598 (auto_fontset_alist): New variable.
24599 (new_fontset_from_font_name): Check auto_fontset_alist.
24600 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24601 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24602 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24603 Defsubr Sfontset_list_all.
24604
246052008-02-01 Kenichi Handa <handa@m17n.org>
24606
24607 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24608
246092008-02-01 Kenichi Handa <handa@m17n.org>
24610
24611 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24612
246132008-02-01 Kenichi Handa <handa@m17n.org>
24614
24615 * editfns.c (Fgoto_char): Fix docstring.
24616
246172008-02-01 Kenichi Handa <handa@m17n.org>
24618
24619 * insdel.c (insert_from_gap): Adjust intervals correctly.
24620
246212008-02-01 Jason Rumney <jasonr@gnu.org>
24622
24623 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24624 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24625 (w32_initialize): Try to load it.
24626 (x_get_font_repertory): Use it if available.
24627 (w32_encode_char): Add shortcut for unicode output.
24628
24629 * w32fns.c (w32_load_system_font): Default charset to -1.
24630 (x_to_w32_charset): Match all fonts for unicode.
24631 (w32_to_x_charset): New parameter matching. Don't return partial
24632 or wildcard charsets.
24633 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24634 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24635 (w32_to_x_font): Match charset to real charset.
24636 (enum_font_cb2): Always list unicode versions.
24637
24638 * makefile.w32-in (temacs): Increase EMHEAP.
24639
246402008-02-01 Jason Rumney <jasonr@gnu.org>
24641
24642 * w32term.c (w32_encode_char): New charset parameter.
24643 font_info.encoding becomes encoding_type.
24644 (x_get_font_repertory): New function. Warning: stub only!
24645 (x_new_font): Return quickly if font already set.
24646 (x_new_fontset): fontsetname parameter is Lisp_Object.
24647 Use new fs_query_fontset. Try new_fontset_from_font_name.
24648 Use fontset_name for return value.
24649
24650 * w32term.h: Declare x_get_font_repertory.
24651
24652 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24653 place of find_charset_in_text. Use encode_coding_object in place
24654 of encode_coding.
24655 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24656 decode_coding.
24657
24658 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24659 of x_new_fontset.
24660 (w32_load_system_font): Initialize charset as unicode.
24661 font_info.encoding becomes encoding_type.
24662 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24663 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24664 (syms_of_w32fns): Set get_font_repertory_func.
24665
24666 * w32console.c: Include character.h. Use terminal_encode_buffer
24667 from term.c.
bba3e508
SM
24668 (write_glyphs): Use new version of encode_terminal_code.
24669 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
24670
24671 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24672 encoding becomes encoding_type.
24673
24674 * term.c (terminal_encode_buffer): Make externally visible.
24675
24676 * makefile.w32-in: Add character.h dependancies.
24677 (character.o, chartab.o): New targets.
24678
246792008-02-01 Kenichi Handa <handa@m17n.org>
24680
24681 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24682 CODING_ID_EOL_TYPE.
24683
246842008-02-01 Andreas Schwab <schwab@suse.de>
24685
24686 * coding.c (produce_chars): Revert last change.
24687
246882008-02-01 Kenichi Handa <handa@m17n.org>
24689
24690 * charset.h (charset_unicode): Extern it.
24691
24692 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
24693 (find_charsets_in_text): Change format of the arc CHARSETS.
24694 New arg MULTIBYTE.
aac0c6e3
MR
24695 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24696 change of find_charsets_in_text.
24697 (Fsplit_char): Fix doc. Never return unknown.
24698
24699 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24700
bba3e508
SM
24701 * coding.c (Fdefine_coding_system_alias):
24702 Update Vcoding_system_list.
aac0c6e3
MR
24703
24704 * fontset.c (load_font_get_repertory): Pay attention to the case
24705 that ENCODING of a font is specified by a char-table.
24706
24707 * xterm.c (x_get_font_repertory): Handle the case that the
24708 encoding of font is other than Unicode.
24709
247102008-02-01 Kenichi Handa <handa@m17n.org>
24711
bba3e508
SM
24712 * term.c (encode_terminal_code): Don't handle glyph-table.
24713 Check if a character is encodable by the terminal coding system.
24714 If not, produces proper number of `?'s. Update
aac0c6e3
MR
24715 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24716 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24717
247182008-02-01 Kenichi Handa <handa@m17n.org>
24719
bba3e508
SM
24720 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24721 New variables.
aac0c6e3
MR
24722 (encode_terminal_code): Change argument. Encode multiple
24723 characters at once. Store the result of encoding in
24724 terminal_encode_buffer.
24725 (write_glyphs, insert_glyphs): Adjust for the change of
24726 encode_terminal_code.
24727 (term_init): Initialize terminal_encode_buffer and
24728 terminal_encode_buf_size.
24729
24730 * coding.c (consume_chars): If coding->src_object is nil, don't
24731 check annotation.
24732
247332008-02-01 Kenichi Handa <handa@m17n.org>
24734
24735 * character.c (char_string): Use ASCII_CHAR_P instead of
24736 SINGLE_BYTE_CHAR_P.
24737
247382008-02-01 Kenichi Handa <handa@m17n.org>
24739
24740 * xdisp.c (handle_auto_composed_prop): Check if the last
24741 characters of auto-composed region is newly composed with the
24742 following characters.
24743 (handle_composition_prop): Fix checking of point being inside
24744 composition.
24745
247462008-02-01 Kenichi Handa <handa@m17n.org>
24747
24748 * fns.c (concat): Don't change multibyteness of the result by
24749 concatenating an 8-bit character.
24750
24751 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24752 multibyteness of the result when newelt is an 8-bit character.
24753
247542008-02-01 Dave Love <fx@gnu.org>
24755
24756 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24757 EMACS_INT.
24758
24759 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24760
24761 * xfaces.c (face_numeric_value): Declare dim size_t.
24762 (Finternal_lisp_face_equal_p): Remove unused f.
24763
24764 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24765 (MATRIX_ROW): Remove unused vars.
24766 (draw_glyphs, x_insert_glyphs, fast_find_position)
24767 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24768 byte/char counts.
24769
24770 * regex.c (regex_compile): Remove unused var.
24771
24772 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24773
24774 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24775 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24776
24777 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24778
24779 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24780
24781 * fileio.c (Fwrite_region): Remove unused var.
24782
24783 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24784 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24785
24786 * composite.c (Fremove_list_of_text_properties): Declare.
24787
24788 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24789 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24790 (coding_inherit_eol_type): Remove unused attrs.
24791 (detect_coding): Cast arg of detect_eol.
24792
24793 * charset.c (syms_of_charset): Remove unused var p.
24794 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24795 byte/char counts.
24796
24797 * casetab.c (set_case_table): Remove unused var.
24798
bba3e508
SM
24799 * window.c (Fdisplay_buffer, Fframe_selected_window):
24800 Remove unused vars.
aac0c6e3
MR
24801
248022008-02-01 Dave Love <fx@gnu.org>
24803
24804 * xterm.c (x_bitmap_mask): Declare.
24805
248062008-02-01 Dave Love <fx@gnu.org>
24807
24808 * xterm.c (x_term_init): Fix type error.
24809
24810 * lisp.h: Add Funibyte_char_to_multibyte.
24811
24812 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24813 (Fset_coding_system_priority): Doc fix.
24814
24815 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24816
24817 * indent.c (check_composition): Make start and end EMACS_INT.
24818
24819 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24820
24821 * xdisp.c (handle_composition_prop, check_point_in_composition):
24822 Make buffer positions EMACS_INT.
24823
24824 * composite.c (find_composition, run_composition_function)
24825 (update_compositions, Ffind_composition_internal): Make buffer
24826 positions EMACS_INT.
24827
bba3e508
SM
24828 * composite.h (find_composition, update_compositions):
24829 Make position args EMACS_INT.
aac0c6e3
MR
24830
24831 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24832
24833 * intervals.c (get_property_and_range):
24834 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24835
24836 * unexalpha.c: Don't include varargs.h.
24837
248382008-02-01 Dave Love <fx@gnu.org>
24839
24840 * coding.h (ENCODE_UTF_8): New.
24841
24842 * Makefile.in (gtkutil.o): Depend on coding.h.
24843
24844 * coding.c (Fset_coding_system_priority): Doc fix.
24845
248462008-02-01 Kenichi Handa <handa@m17n.org>
24847
24848 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24849 the case of auto saving.
24850
248512008-02-01 Andreas Schwab <schwab@suse.de>
24852
bba3e508
SM
24853 * chartab.c (map_char_table, map_char_table_for_charset):
24854 Protect `range' from GC.
aac0c6e3
MR
24855
248562008-02-01 Kenichi Handa <handa@m17n.org>
24857
24858 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24859
248602008-02-01 Kenichi Handa <handa@m17n.org>
24861
24862 * fileio.c (choose_write_coding_system): Return a decided coding system.
24863 (Fwrite_region): Set Vlast_coding_system_used to the return value
24864 of choose_write_coding_system.
24865
248662008-02-01 Kenichi Handa <handa@m17n.org>
24867
24868 * charset.c (Fset_charset_priority): Pay attention to duplicated
24869 arguments.
24870
24871 * coding.c (QCcategory): New variable.
24872 (syms_of_coding): Defsym it. Set all elements of
24873 Vcoding_category_table and their symbol values.
24874 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24875 coding-category-XXX, and coding-category-list.
24876 (Fdefine_coding_system_internal): Add category in the plist.
24877
248782008-02-01 Kenichi Handa <handa@m17n.org>
24879
24880 * callproc.c (Fcall_process): Handle carryover correctly.
24881
24882 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24883 (raw_text_coding_system): Check NILP (coding_system).
24884 (coding_inherit_eol_type): Check NILP (coding_system) and
24885 NILP (parent).
24886 (consume_chars): Fix for the case of raw-text.
24887
24888 * process.c (read_process_output): Handle carryover correctly.
24889
248902008-02-01 Dave Love <fx@gnu.org>
24891
24892 * regex.c (re_search_2): Fix last change.
24893
248942008-02-01 Kenichi Handa <handa@m17n.org>
24895
24896 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24897 target_multibyte. Even in a unibyte case, return a converted
24898 multibyte char.
24899 (GET_CHAR_AFTER): New macro.
24900 (PATFETCH): Translate via multibyte char.
24901 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24902 (SETUP_MULTIBYTE_RANGE): New macro.
24903 (regex_compile): Setup compiled code so that its multibyteness
24904 matches that of a target. Fix the handling of "[X-YZ]" using
24905 SETUP_MULTIBYTE_RANGE.
24906 (analyse_first) <charset>: For filling fastmap for all multibyte
24907 characters, don't check by BASE_LEADING_CODE_P.
24908 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24909 the same as RE_MULTIBYTE_P (bufp) now.
24910 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24911 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24912 (TRANSLATE_VIA_MULTIBYTE): New macro.
24913 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24914 It is the same as RE_MULTIBYTE_P (bufp) now.
24915 <exactn>: Translate via multibyte.
bba3e508
SM
24916 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24917 Don't translate it.
aac0c6e3
MR
24918 <charset, charset_not>: Fetch a character by
24919 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24920 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24921 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24922 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24923 by GET_CHAR_AFTER.
24924 (bcmp_translate): Likewise.
24925
24926 * search.c (compile_pattern): Check the member target_multibyte,
24927 not the member multibyte of buf.
24928
24929 * lread.c (read1): While reading a string, set force_singlebyte
24930 and force_multibyte correctly.
24931
24932 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24933 up of unibyte_to_multibyte_table.
24934
249352008-02-01 Kenichi Handa <handa@m17n.org>
24936
24937 * coding.c (setup_coding_system): If coding has
24938 post-read-conversion or pre-write-conversion, set
24939 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24940 respectively.
24941 (decode_coding_gap): Run post-read-conversion if any.
24942
24943 * fileio.c (Finsert_file_contents): Even if we read into a
24944 unibyte buffer, check if we must decode the result or not.
24945
249462008-02-01 Kenichi Handa <handa@m17n.org>
24947
24948 * coding.c (make_conversion_work_buffer): Change the work buffer
24949 name to the same one as that of Emacs 21.
24950
249512008-02-01 Kenichi Handa <handa@m17n.org>
24952
24953 * coding.h (make_conversion_work_buffer): Adjust prototype.
24954 (code_conversion_restore): Don't extern it.
24955
24956 * coding.c (detected_mask): Delete unused variable.
24957 (decode_coding_iso_2022): Pay attention to the byte sequence of
24958 CTEXT extended segment, and retain those bytes as is.
24959 (decode_coding_ccl): Delete unused variable `valids'.
24960 (setup_coding_system): Delete unused variable `category'.
24961 (consume_chars): Delete unused variable `category'. Make it work
24962 for non-multibyte case.
24963 (make_conversion_work_buffer): Change argument.
24964 (saved_coding): Delete unused variable.
24965 (code_conversion_restore): Don't check saved_coding->destination.
24966 (code_conversion_save): New function.
24967 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24968 instead of record_unwind_protect.
24969 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24970 (detect_coding_system): Delete unused variable `mask'.
24971 (Fdefine_coding_system_internal): Delete unused variable id.
24972
24973 * fileio.c (kill_workbuf_unwind): New function.
24974 (Finsert_file_contents): On replacing, call
24975 make_conversion_work_buffer with correct args, and call
24976 record_unwind_protect with the first arg kill_workbuf_unwind.
24977
24978 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24979
249802008-02-01 Kenichi Handa <handa@m17n.org>
24981
24982 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24983 (fontset_add): Fix for the case that TO is less than TO1.
24984 (Ffontset_info): Don't use fallback fontset on checking the
24985 default fontset.
24986 (dump_fontset): New function for debugging.
24987
24988 * coding.c (Fdefine_coding_system_internal): Fix for the case that
24989 coding_type is Qcharset.
24990
249912008-02-01 Kenichi Handa <handa@m17n.org>
24992
24993 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
24994 (map_char_table): Don't inherit the value from the parent on
24995 initializing VAL. Adjust for the above change.
24996
249972008-02-01 Kenichi Handa <handa@m17n.org>
24998
24999 * coding.c (Qsignature, Qendian): Delete these variables.
25000 (syms_of_coding): Don't initialize them.
25001 (CATEGORY_MASK_UTF_16_AUTO): New macro.
25002 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
25003 detect_info->found.
25004 (decode_coding_utf_16): Don't detect BOM here.
25005 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
25006 is NOT utf_16_without_bom.
25007 (setup_coding_system): For a coding system of type utf-16, check
25008 if the attribute :endian is Qbig or not (not nil or not), and set
25009 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
25010 (detect_coding): If coding type is utf-16 and BOM detection is
25011 required, detect it.
25012 (Fdefine_coding_system_internal): For a coding system of type
25013 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
25014
250152008-02-01 Kenichi Handa <handa@m17n.org>
25016
25017 * coding.c (coding_set_source): Fix for the case that the current
25018 buffer is different from coding->src_object.
25019 (decode_coding_object): Don't use the conversion work buffer if
25020 DST_OBJECT is a buffer.
25021
250222008-02-01 Dave Love <fx@gnu.org>
25023
25024 * lread.c (read_emacs_mule_char) [len==2]: Index
25025 emacs_mule_charset correctly.
25026
250272008-02-01 Dave Love <fx@gnu.org>
25028
25029 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
25030 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
25031 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
25032 treated specially.)
25033 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
25034 (detected_mask): Remove Big5 bits.
25035
250362008-02-01 Kenichi Handa <handa@m17n.org>
25037
25038 The following changes are to make the font rescaling facility
25039 compatible with Emacs 21.
25040
25041 * xfaces.c (Vface_font_rescale_alist): Rename from
25042 Vface_resizing_fonts.
25043 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25044 (font_rescale_ratio): Rename from font_resizing_ratio.
25045 (split_font_name): Set font->rescale_ratio.
25046 (better_font_p): Pay attention to font->rescale_ratio.
25047 (build_scalable_font_name): Likewise. Change RESX, and RESY
25048 fields.
25049 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25050
250512008-02-01 Kenichi Handa <handa@m17n.org>
25052
25053 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25054 (Qutf_16_le): Remove these variables.
25055 (syms_of_coding): Don't DEFSYM them.
25056 (decode_coding_utf_16): Fix handling of BOM.
25057 (encode_coding_utf_16): Fix handling of BOM.
25058
250592008-02-01 Kenichi Handa <handa@m17n.org>
25060
25061 * fileio.c (Finsert_file_contents): On replacing, before decoding
25062 the file into the work buffer, set point of the work buffer to the end.
25063
250642008-02-01 Dave Love <fx@gnu.org>
25065
25066 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25067
250682008-02-01 Dave Love <fx@gnu.org>
25069
25070 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25071 and fix C types.
25072
250732008-02-01 Kenichi Handa <handa@m17n.org>
25074
25075 * xdisp.c (SKIP_GLYPHS): New macro.
25076 (set_cursor_from_row): Pay attention to string display properties.
25077
25078 * category.c (copy_category_entry): Fix for the case that RANGE
25079 is an integer.
25080
25081 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25082
25083 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25084
250852008-02-01 Kenichi Handa <handa@m17n.org>
25086
25087 * charset.c (Fcharset_id_internal): New function.
25088 (syms_of_charset): Defsubr it.
25089
25090 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25091 with the last arg charset_list acquired from coding.
25092 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25093 the attribute coding_attr_ccl_valids.
25094
25095 * coding.h (enum define_coding_ccl_arg_index): Set the first
25096 member coding_arg_ccl_decoder to coding_arg_max.
25097
25098 * ccl.h (ccl_driver): Adjust prototype.
25099
25100 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25101 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 25102 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
25103 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25104 last arg Qnil.
25105
251062008-02-01 Kenichi Handa <handa@m17n.org>
25107
25108 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25109 call encode_char.
25110
25111 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25112
251132008-02-01 Dave Love <fx@gnu.org>
25114
25115 * composite.c (syms_of_composite): Make composition_hash_table weak.
25116
251172008-02-01 Kenichi Handa <handa@m17n.org>
25118
25119 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25120 (font_name_registry): Don't extern them.
25121 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25122
25123 * fontset.h (Qfontset): Don't extern it.
25124 (new_fontset_from_font_name): Extern it.
25125
25126 * fontset.c: Give 8 extra slots to fontset objects.
25127 (Qfontset_info): New variable.
25128 (syms_of_fontset): Defsym it.
25129 (FONTSET_FALLBACK): New macro.
25130 (fontset_face): Try also the default fontset.
25131 (make_fontset): Realize a fallback fontset from the default fontset.
25132 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25133 using split_font_name_into_vector and build_font_name_from_vector.
25134 (Fset_fontset_font): Access the elements of font_spec by enum
25135 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25136 name by using split_font_name_into_vector.
25137 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
25138 generate a proper font name from the fontset name.
25139 Update Vfontset_alias_alist.
aac0c6e3
MR
25140 (n_auto_fontsets): New variable.
25141 (new_fontset_from_font_name): New function.
25142 (Ffont_info): Store the information about fonts generated from the
25143 default fontset in the first extra slot of the returned char-table.
25144
25145 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25146 (font_name_registry): Delete function.
25147 (split_font_name_into_vector): New function.
25148 (build_font_name_from_vector): New function.
25149 (font_list): The argument REGISTRY is now a list of registry names.
25150 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25151 specifies an explicit font name, return the name as is. Make a
25152 list of registy names.
25153
25154 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25155 of x_new_fontset.
25156 (Fx_create_frame): Don't call x_new_fontset here. Just use
25157 x_list_fonts to check the existence of fonts.
25158
25159 * xterm.h (x_new_fontset): Adjust prototype.
25160
25161 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25162 string. Use new_fontset_from_font_name to create a fontset from a
25163 font name.
25164
251652008-02-01 Kenichi Handa <handa@m17n.org>
25166
25167 * syntax.c (Vfind_word_boundary_function_table): New name for
25168 Vnext_word_boundary_function_table.
25169 (find-word-boundary-function-table): New name for
25170 next-word-boundary-function-table.
25171
251722008-02-01 Dave Love <fx@gnu.org>
25173
25174 * Makefile.in: Fix some dependencies.
25175
25176 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25177 set it to nil before returning.
25178
25179 * composite.c (update_compositions): Fix type error.
25180
25181 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25182
251832008-02-01 Kenichi Handa <handa@m17n.org>
25184
25185 * xterm.c (x_new_font): Optimize for the case that the font is
25186 already set for the frame.
25187
251882008-02-01 Kenichi Handa <handa@m17n.org>
25189
25190 * chartab.c (char_table_ascii): Check if the char table contents
25191 is sub-char-table or not.
25192 (char_table_set, char_table_set_range): Fix argument to
25193 char_table_ascii.
25194
25195 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25196 (detect_coding_utf_8, detect_coding_utf_16)
25197 (detect_coding_emacs_mule, detect_coding_iso_2022)
25198 (detect_coding_sjis, detect_coding_big5)
25199 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25200 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25201 sequence is valid in this coding system. Change callers.
25202 (MAX_ANNOTATION_LENGTH): New macro.
25203 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
25204 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25205 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
25206 (ADD_CHARSET_DATA): New macro.
25207 (emacs_mule_char): New argument ID. Change callers.
25208 (decode_coding_emacs_mule, decode_coding_iso_2022)
25209 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25210 Produce charset annotation data in coding->charbuf.
25211 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25212 to charset annotation data in coding->charbuf.
25213 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25214 coding->common_flags if the coding system is iso-2022 based and
25215 uses designation.
25216 (produce_composition): Adjust for the new annotation data format.
25217 (produce_charset): New function.
25218 (produce_annotation): Handle charset annotation.
bba3e508
SM
25219 (handle_composition_annotation, handle_charset_annotation):
25220 New functions.
aac0c6e3
MR
25221 (consume_chars): Handle charset annotation. Utilize the above two
25222 functions.
25223 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25224 buffer, get the deleted text as a string and set
25225 coding->src_object to that string.
25226 (detect_coding, detect_coding_system): Use the new struct
25227 coding_detection_info.
25228
25229 * coding.h (struct coding_detection_info): New structure.
25230 (struct coding_system): Adjust prototype of the member `detector'.
25231 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25232
252332008-02-01 Kenichi Handa <handa@m17n.org>
25234
25235 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25236
252372008-02-01 Dave Love <fx@gnu.org>
25238
25239 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25240 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25241 to new local and nullify apropos_accumulate before returning.
25242 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25243
252442008-02-01 Kenichi Handa <handa@m17n.org>
25245
25246 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25247 correctly.
e3eea1fc 25248
aac0c6e3
MR
252492008-02-01 Dave Love <fx@gnu.org>
25250
25251 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25252
252532008-02-01 Kenichi Handa <handa@m17n.org>
25254
25255 The following changes are to make character composition happen
25256 automatically on displaying.
25257
25258 * Makefile.in (lisp, shortlisp): Add composite.elc.
25259
25260 * composite.h (Qauto_composed, Vauto_composition_function)
25261 (Qauto_composition_function): Extern them.
25262
25263 * composite.c (Vcomposition_function_table)
25264 (Qcomposition_function_table): Delete variables.
25265 (Qauto_composed, Vauto_composition_function)
25266 (Qauto_composition_function): New variables.
25267 (run_composition_function): Don't call
25268 compose-chars-after-function.
25269 (update_compositions): Clear `auto-composed' text property.
25270 (compose_chars_in_text): Delete this function.
25271 (syms_of_composite): Staticpro Qauto_composed and
25272 Qauto_composition_function. Declare Vauto_composition_function as
25273 a Lisp variable.
25274
25275 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25276
25277 * xdisp.c (it_props): Add an entry for Qauto_composed.
25278 (handle_auto_composed_prop): New function.
25279
25280 * xselect.c (selection_data_to_lisp_data): Don't call
25281 compose_chars_in_text.
25282
252832008-02-01 Dave Love <fx@gnu.org>
25284
25285 * keyboard.c (read_char): Modify checking around use of
25286 Vkeyboard_translate_table.
25287
25288 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25289 and fix C types.
25290
252912008-02-01 Kenichi Handa <handa@m17n.org>
25292
25293 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25294 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25295 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25296 the case that the last byte is '\r' correctly.
25297 (decode_coding): Flush out the unprocessed data correctly.
25298 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25299
253002008-02-01 Dave Love <fx@gnu.org>
25301
25302 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25303 Add XK_ISO... case.
25304 (xaw_scroll_callback): Revert last change.
25305
253062008-02-01 Kenichi Handa <handa@m17n.org>
25307
25308 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25309
253102008-02-01 Kenichi Handa <handa@m17n.org>
25311
25312 * xfaces.c (Vface_resizing_fonts): New variable.
25313 (struct font_name): New member `resizing_ratio'.
25314 (font_resizing_ratio): New function.
25315 (split_font_name): Set font->resizing_ratio.
25316 (better_font_p): Pay attention to font->resizing_ratio.
25317 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25318 RESX, and RESY fields.
25319 (try_alternative_families): Try scalable fonts if
25320 Vscalable_fonts_allowed is not Qt.
25321 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25322
253232008-02-01 Dave Love <fx@gnu.org>
25324
25325 * xterm.c (xaw_scroll_callback): Cast correctly.
25326
253272008-02-01 Dave Love <fx@gnu.org>
25328
25329 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25330 (lispy_kana_keys): Comment out.
25331 (make_lispy_event) [XK_kana_A]: Comment out.
25332
25333 * xterm.c (xaw_scroll_callback): Cast call_data.
25334 (XTread_socket): Deal with ASCII keysyms.
25335 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25336
253372008-02-01 Dave Love <fx@gnu.org>
25338
25339 * xterm.c (Vx_keysym_table): New.
25340 (syms_of_xterm): Initialize it.
25341 (XTread_socket): Use it.
25342 From head: Eliminate incorrect optimization that tried to avoid
25343 decoding the output of X*LookupString.
25344 (x_get_font_repertory): Delete charset declaration.
25345
253462008-02-01 Kenichi Handa <handa@m17n.org>
25347
25348 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25349 return 0.
bba3e508
SM
25350 (Fdefine_coding_system_internal):
25351 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
25352
253532008-02-01 Dave Love <fx@gnu.org>
25354
25355 * coding.c (Fcheck_coding_system): Doc fix.
25356
25357 * editfns.c (Finsert_byte): Return a proper value.
25358
253592008-02-01 Kenichi Handa <handa@m17n.org>
25360
bba3e508
SM
25361 * coding.c (decode_coding): Fix args to translate_chars.
25362 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
25363 (encode_coding): Fix args to translate_chars. Pay attention to
25364 Vstandard_translation_table_for_encode.
25365
25366 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25367 SINGLE_BYTE_CHAR_P.
25368
25369 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25370 not by SINGLE_BYTE_CHAR_P.
25371
25372 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25373 SINGLE_BYTE_CHAR_P.
25374
25375 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25376 SINGLE_BYTE_CHAR_P.
25377
25378 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25379 by SINGLE_BYTE_CHAR_P.
25380
25381 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25382 SINGLE_BYTE_CHAR_P.
25383
253842008-02-01 Dave Love <fx@gnu.org>
25385
25386 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25387
253882008-02-01 Dave Love <fx@gnu.org>
25389
25390 * fns.c (Flanginfo): Fix typo.
25391
25392 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25393
253942008-02-01 Kenichi Handa <handa@m17n.org>
25395
25396 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25397 (detect_coding_emacs_mule, detect_coding_iso_2022)
25398 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25399 incomplete byte sequence. Don't update *mask when correctly detected.
25400 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25401 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25402 (detect_coding, detect_coding_system): Adjust for the changes above.
25403
254042008-02-01 Kenichi Handa <handa@m17n.org>
25405
25406 * character.c (char_string): Rename from
25407 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25408 (string_char): Rename from string_char.
25409
25410 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25411 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
25412 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25413 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
25414
254152008-02-01 Dave Love <fx@gnu.org>
25416
25417 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25418
254192008-02-01 Kenichi Handa <handa@m17n.org>
25420
25421 * keymap.c (push_key_description): Pay attention to force_multibyte.
25422
25423 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25424
254252008-02-01 Dave Love <fx@gnu.org>
25426
25427 * charset.c (define_charset_internal): Rename `supprementary'.
25428
25429 * Makefile.in (lisp, shortlisp): Remove latin-N.
25430
254312008-02-01 Dave Love <fx@gnu.org>
25432
25433 * xfns.c (x_window, x_window): Use use_xim.
25434
25435 * xterm.c (use_xim): Initialize.
25436 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25437 (x_term_init): Maybe set use_xim.
25438
25439 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25440
254412008-02-01 Kenichi Handa <handa@m17n.org>
25442
25443 * search.c (search_buffer): Fix case-fold-search of multibyte
25444 characters.
25445 (boyer_moore): Rename the last argument to char_high_bits.
25446
254472008-02-01 Kenichi Handa <handa@m17n.org>
25448
25449 * xdisp.c (display_string): Fix for the case of zero width glyph.
25450
25451 * xfns.c (x_set_font): Change the error message of the case that
25452 x_new_fontset returns Qt.
25453
25454 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25455 (Finternal_set_lisp_face_attribute): Use signal_error for the
25456 error of invalid fontset.
25457
25458 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25459 fontset, return Qt.
25460
254612008-02-01 Dave Love <fx@gnu.org>
25462
25463 * unexelf.c (unexec): Make .got handling not SGI-specific.
25464
25465 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25466
25467 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25468
25469 * keyboard.c (read_key_sequence): Fix type error.
25470
bba3e508
SM
25471 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25472 Fix type error.
aac0c6e3
MR
25473
25474 * fontset.c (fontset_add): Return Lisp_Object.
25475
254762008-02-01 Dave Love <fx@gnu.org>
25477
25478 * charset.h (charset_ordered_list_tick): Declare extern.
25479
254802008-02-01 Kenichi Handa <handa@m17n.org>
25481
25482 The following changes (and some of 2008-02-01 changes of mine) are
25483 for handling syntax, category, and case conversion for unibyte
25484 characters by converting them to multibyte on the fly. With these
25485 changes, we don't have to setup syntax and case tables for unibyte
25486 characters in each language environment.
25487
25488 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25489 multibyte if necessary.
25490
25491 * bytecode.c (Fbyte_code): Likewise.
25492
25493 * character.h (LEADING_CODE_LATIN_1_MIN)
25494 (LEADING_CODE_LATIN_1_MAX): New macros.
25495 (unibyte_to_multibyte_table): Extern it.
25496 (unibyte_char_to_multibyte): New macro.
25497 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25498 (CHAR_LEADING_CODE): New macro.
25499 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25500
25501 * character.c (unibyte_to_multibyte_table): New variable.
25502 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25503 (multibyte_char_to_unibyte): If C is an eight-bit character,
25504 convert it to the corresponding byte value.
25505
25506 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25507 not 1, signals an error. Update the elements of
25508 unibyte_to_multibyte_table.
25509 (init_charset_once): Initialize unibyte_to_multibyte_table.
25510 (syms_of_charset): Define the charset `iso-8859-1'.
25511
25512 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25513 as is without converting it to unibyte. In a unibyte buffer,
25514 convert C to multibyte before checking the syntax.
25515
25516 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25517
25518 * minibuf.c (Fminibuffer_complete_word): Use the macro
25519 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25520
25521 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25522
25523 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
25524 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25525 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
25526 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25527 non-emacs case.
25528 (PATFETCH): Convert an eight-bit char to multibyte.
25529 (HANDLE_UNIBYTE_RANGE): New macro.
25530 (regex_compile): Setup the compiled pattern for multibyte chars
25531 even if the given regex string is unibyte. Use PATFETCH_RAW
25532 instead of PATFETCH in many places. To handle `charset'
25533 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25534 only for ASCII chars.
25535 (analyse_first) <exactn>: Simplify because the compiled pattern
25536 is multibyte.
25537 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25538 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25539 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25540 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25541 multibyte always 1.
25542 (re_search_2): In emacs, set the locale variable multibyte to 1,
25543 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
25544 to decide the multibyteness of STR1 and STR2.
25545 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
25546 before translating and checking fastmap.
25547 (TARGET_CHAR_AND_LENGTH): New macro.
25548 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
25549 to 1, otherwise to 0. New local variable target_multibyte.
25550 Check it to decide the multibyteness of STR1 and STR2.
25551 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
25552 <charset, charset_not>: If multibyte is nonzero, check fastmap
25553 only for ASCII chars. Call bcmp_translate with
25554 target_multibyte, not with multibyte.
25555 <begline>: Declare the local variable C as `unsigned'.
25556 (bcmp_translate): Change the last arg name to target_multibyte.
25557
25558 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25559 the regexp pattern and the matching target. Set cp->buf.multibyte
25560 to the multibyteness of the regexp pattern. Set
25561 cp->but.target_multibyte to the multibyteness of the matching target.
25562 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25563 FETCH_STRING_CHAR_ADVANCE.
25564 (Freplace_match): Convert unibyte chars to multibyte.
25565
25566 * syntax.c (char_quoted, back_comment, scan_words)
25567 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25568 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25569 unibyte chars to multibyte.
25570 (skip_chars): Delete the arg syntaxp, and move the code for
25571 handling syntaxes to skip_syntaxes. Change callers.
25572 Fix the case that the multibyteness of STRING and the current
25573 buffer doesn't match.
25574 (skip_syntaxes): New function.
25575 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25576 SINGLE_BYTE_CHAR_P.
25577
255782008-02-01 Kenichi Handa <handa@m17n.org>
25579
25580 * xfaces.c (QCfontset): New variable.
25581 (LFACE_FONTSET): New macro.
25582 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25583 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25584 (Finternal_set_lisp_face_attribute)
25585 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25586 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25587 check also LFACE_FONTSET_INDEX.
25588 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25589 attrs[LFACE_FONT_INDEX].
25590 (syms_of_xfaces): Intern and staticpro QCfontset.
25591
25592 * dispextern.h (enum lface_attribute_index): New member
25593 LFACE_FONTSET_INDEX.
25594
25595 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25596
255972008-02-01 Kenichi Handa <handa@m17n.org>
25598
25599 * coding.c (coding_set_destination): Fix coding->destination for
25600 the case converting a region.
25601 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25602 (encode_coding_object): Fix coding->dst_pos and
25603 coding->dst_pos_byte for the case converting a region.
25604
25605 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25606
25607 * character.h (BYTE8_STRING): New macro.
25608
25609 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25610
256112008-02-01 Kenichi Handa <handa@m17n.org>
25612
25613 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25614 characters by octal form.
25615
25616 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25617
25618 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25619 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25620 _fetch_multibyte_char_len.
25621 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25622
25623 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25624
25625 * casefiddle.c (casify_object): Simplify. Handle the case that
25626 the case conversion change the byte length.
25627 (casify_region): Likewise.
25628
25629 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25630
25631 * character.c (_fetch_multibyte_char_len): Delete this variable.
25632 (syms_of_character): Setup Vprintable_chars.
25633
25634 * editfns.c (Fchar_equal): Fix for the unibyte case.
25635 (Finsert_byte): New function.
25636 (syms_of_editfns): Defsubr it.
25637
25638 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25639 of direct code 0x3ffff.
25640
25641 * search.c (Freplace_match): Fix for the unibyte case.
25642
256432008-02-01 Kenichi Handa <handa@m17n.org>
25644
25645 * lread.c (safe_to_load_p): Fix the logic.
25646
25647 * syntax.c (scan_words): Don't treat characters belonging to
25648 different scripts as constituting a word.
25649
25650 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25651
25652 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25653
25654 * emacs.c (main): In the case of --unibyte, instead of aborting on
25655 finding non-empty buffer, make it unibyte.
25656
256572008-02-01 Kenichi Handa <handa@m17n.org>
25658
25659 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25660 to create a fontset.
25661
256622008-02-01 Dave Love <fx@gnu.org>
25663
25664 * character.c (Funibyte_char_to_multibyte): Doc fix.
25665
25666 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25667
256682008-02-01 Kenichi Handa <handa@m17n.org>
25669
25670 * fontset.c (fontset_add): Make the type `int'.
25671 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25672
25673 * character.c (unibyte_char_to_multibyte)
25674 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25675 charset_unibyte, not charset_primary.
25676
25677 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25678
25679 * charset.c (charset_unibyte): Rename from charset_primary.
25680 (Funibyte_charset): Rename from Fprimary_charset.
25681 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25682 (syms_of_charset): Adjust for the above changes.
25683
25684 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25685 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25686 it->multibyte_p is zero.
25687
25688 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25689 Delete extern.
25690
256912008-02-01 Kenichi Handa <handa@m17n.org>
25692
25693 * coding.c (Fdefine_coding_system_internal): Fix category setting
25694 for a coding system of type iso-2022.
25695
256962008-02-01 Kenichi Handa <handa@m17n.org>
25697
25698 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25699
257002008-02-01 Kenichi Handa <handa@m17n.org>
25701
25702 * syntax.c (Vnext_word_boundary_function_table): New variable.
25703 (next-word-boundary-function-table): Declare it as a Lisp variable
25704 in syms_of_syntax.
25705 (scan_words): Call functions in Vnext_word_boundary_function_table
25706 if any.
25707
25708 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25709
25710 * fontset.c (fs_load_font): If fontp->charset is not negative,
25711 return fontp without setting its members.
25712
257132008-02-01 Dave Love <fx@gnu.org>
25714
25715 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25716
25717 * m/sparc.h (HAVE_ALLOCA): Delete.
25718
25719 * s/irix6-5.h: Don't include strings.h.
25720 (bcopy, bzero, bcmp): Don't undef.
25721
25722 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25723
25724 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25725 (TIOCSIGSEND): Don't test IRIX6.
25726 (bcopy, bzero, bcmp): Define conditionally.
25727
257282008-02-01 Kenichi Handa <handa@m17n.org>
25729
25730 * buffer.c (Qas, Qmake, Qto): New variables.
25731 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25732 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25733
25734 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25735 we are inserting a process output into a multibyte buffer.
25736
25737 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25738 multibyte_char_to_unibyte.
25739
25740 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25741 by the primary charset, make it eight-bit char.
25742 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25743
25744 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25745 (charset_8_bit__control, charset_8_bit_graphic)
25746 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25747 (define_charset_internal): New function.
25748 (syms_of_charset): Call define_charset_internal for pre-defined
25749 charsets.
25750
25751 * charset.h (charset_8_bit): Extern it.
25752
25753 * coding.c (make_conversion_work_buffer): Adjust for the change
25754 of Fset_buffer_multibyte.
25755 (encode_coding_raw_text): Increment p0 in the loop.
25756
25757 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25758
bba3e508
SM
25759 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25760 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
25761
25762 * fns.c (Fstring_to_multibyte): New function.
25763 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25764
257652008-02-01 Dave Love <fx@gnu.org>
25766
25767 * xfns.c (x_put_x_image): Declare args.
25768
25769 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25770 (try_font_list): Declare an arg.
25771
25772 * xdisp.c (message2_nolog, set_message): Declare an arg.
25773
25774 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25775
25776 * syntax.c (scan_sexps_forward): Declare an arg.
25777
25778 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25779 Declare an arg.
25780
25781 * lisp.h (Fnew_fontset): Declare.
25782
25783 * keymap.c (push_key_description): Call CHARACTERP correctly.
25784
25785 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25786 (face_for_char): Delete unused vars.
25787 (Fset_fontset_font): Doc fix. Delete unused vars.
25788
25789 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25790
25791 * composite.c (update_compositions): Declare arg.
25792
25793 * cm.c (calccost, cmgoto): Declare args.
25794
25795 * charset.c: Remove `emacs' conditional. Doc fixes.
25796 (map_char_table_for_charset): Declare.
25797
25798 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25799
25800 * ccl.c: Remove `emacs' conditional.
25801
258022008-02-01 Kenichi Handa <handa@m17n.org>
25803
25804 The following changes are to allow specifying multiple font
25805 patterns for a character range (specified by script or charset).
25806
25807 * Makefile.in (abbrev.o): Depend on syntax.h.
25808 (xfaces.o): Depend on charset.h.
25809
25810 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25811 SINGLE_BYTE_CHAR_P.
25812
25813 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25814
25815 * character.h (Vchar_script_table): Extern it.
25816
25817 * character.c (Vscript_alist): Delete.
25818 (Vchar_script_table, Qchar_script_table): New variable.
25819 (syms_of_character): Declare Vchar_script_table as a lisp variable
25820 and initialize it.
25821
25822 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25823 have property char-table-extra-slots, make no extra slot.
25824
25825 * dispextern.h (struct face): Delete member `charset'.
25826 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25827 SINGLE_BYTE_CHAR_P.
25828 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25829 Add prototypes.
25830 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25831 (generate_ascii_font_name): Rename from generate_ascii_font.
25832
25833 * fontset.h (get_font_repertory_func): New prototype.
25834 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25835 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25836
25837 * fontset.c (Qprepend, Qappend): New variables.
25838 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25839 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25840 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25841 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25842 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25843 (load_font_get_repertory): New functions.
25844 (fontset_set): Delete.
25845 (fontset_face): New arg FACE. Return face ID, not face.
25846 Complete re-write to handle new fontset structure. Change caller.
25847 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25848 (face_for_char): Don't call lookup_face.
25849 (make_fontset_for_ascii_face): New arg FACE.
25850 (fs_load_font): New arg CHARSET_ID. Don't check
25851 Vfont_encoding_alist here.
25852 (find_font_encoding): New function.
25853 (list_fontsets): Use STRINGP, not ! NILP.
25854 (accumulate_script_ranges): New function.
bba3e508
SM
25855 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25856 Completely re-written to handle new fontset structure.
aac0c6e3 25857 (Ffontset_font): Return a copy of element.
bba3e508
SM
25858 (syms_of_fontset): Define symbols Qprepend and Qappend.
25859 Fix docstring of font-encoding-alist.
aac0c6e3
MR
25860
25861 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25862 (Fset_fotset_font): Fix arguments to 5.
25863
25864 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25865
25866 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25867 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25868 (highlight_trailing_whitespace): Adjust for the change of
25869 lookup_named_face.
25870
25871 * xfaces.c: Include charset.h.
25872 (load_face_font): Delete argument C. Change caller.
25873 (generate_ascii_font_name): Rename from generate_ascii_font.
25874 (font_name_registry): New function.
25875 (cache_face): Store ascii faces before non-ascii faces in buckets.
25876 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25877 Lookup only ascii faces.
25878 (lookup_non_ascii_face): New function.
25879 (lookup_named_face): Delete argument C. Change caller.
25880 (lookup_derived_face): Delete argument C. Change caller.
25881 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25882 a string, just call font_list with it.
25883 (choose_face_font): Delete arguments FACE and C. New arg
25884 FONT_SPEC. Change caller.
25885 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25886 Change caller.
25887 (realize_non_ascii_face): New function.
25888 (realize_x_face): Call load_face_font here.
25889 (realize_tty_face): Delete argument C. Change caller.
25890 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25891 get a face ID.
25892 (dump_realized_face): Don't print charset of FACE.
25893
25894 * xfns.c (x_set_font): Always call x_new_fontset and
25895 store_frame_parameter.
25896 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25897 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25898
25899 * xterm.h (x_get_font_repertory): Extern it.
25900
25901 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25902 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25903 it->multibyte_p is zero.
25904 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25905 (x_new_fontset): If FONTSETNAME doesn't match any existing
25906 fontsets, create a new one.
25907 (x_get_font_repertory): New function.
25908
259092008-02-01 Kenichi Handa <handa@m17n.org>
25910
25911 * coding.c (Ffind_coding_systems_region_internal): Detect an
25912 ASCII only string correctly.
25913
25914 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25915 version is 0.
25916
259172008-02-01 Kenichi Handa <handa@m17n.org>
25918
25919 * lread.c: Include "coding.h".
25920 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25921 (load_each_byte, unread_char): New variables.
25922 (readchar_backlog): Delete.
25923 (readchar): Return a character unless load_each_byte is nonzero.
25924 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25925 cons. If unread_char is not -1, simply return it.
25926 (unreadchar): Handle the case that readcharfun is
25927 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25928 (read_multibyte): Delete.
25929 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25930 (read_emacs_mule_char): New functions.
25931 (Fload): Even if the file doesn't have the extension ".elc", if
25932 safe_to_load_p returns a positive version number, assume that the
25933 file contains bytecompiled code. If the version is less than 22,
25934 load the file while decoding multibyte sequences by emacs-mule.
25935 (readevalloop): Don't use readchar_backlog.
25936 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25937 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25938 (read_escape): Delete the arg BYTEREP.
25939 (read1): Set load_each_byte to 1 temporarily while handling
25940 #@NUMBER. Don't call read_multibyte.
25941 (read_vector): Call Fread with a cons. If readcharfun is
25942 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25943 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25944 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25945 and Qload_force_doc_strings.
25946
259472008-02-01 Kenichi Handa <handa@m17n.org>
25948
bba3e508
SM
25949 * xdisp.c (face_before_or_after_it_pos):
25950 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
25951
259522008-02-01 Kenichi Handa <handa@m17n.org>
25953
25954 * character.h (TRAILING_CODE_P): New macro.
25955 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25956 (string_char_with_unification): Fix prototype.
25957 (Vscript_alist): Extern it.
25958
25959 * character.c (Vscript_alist): New variable.
25960 (string_char_with_unification, str_as_unibyte)
25961 (string_escape_byte8): Add `const' to local variables.
25962 (syms_of_character): Declare script-alist as a Lisp variable.
25963
25964 * charset.h (Vcharset_ordered_list): Extern it.
25965 (charset_ordered_list_tick): Extern it.
25966 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25967 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25968 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25969 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25970 (Funify_charset): Adjust for the change of Funify_charset.
25971
25972 * charset.c (charset_ordered_list_tick): New variable.
25973 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25974 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 25975 deunify instead of unify a charset.
aac0c6e3
MR
25976 (string_xstring_p): Add `const' to local variables.
25977 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
25978 (encode_char): Adjust for the change of Funify_charset.
25979 Fix detecting of invalid code.
aac0c6e3
MR
25980 (Fset_charset_priority): Increment charset_ordered_list_tick.
25981 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25982 and TO_CODE.
25983
25984 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25985 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25986 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25987 (decode_coding_ccl, consume_chars)
25988 (Ffind_coding_systems_region_internal)
25989 (Fcheck_coding_systems_region): Add `const' to local variables.
25990
25991 * print.c (print_object): Use octal form for printing the
25992 contents of a bool vector.
25993
259942008-02-01 Dave Love <fx@gnu.org>
25995
25996 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
25997 <version == 20>: Refuse to load.
25998
259992008-02-01 Dave Love <fx@gnu.org>
26000
26001 * fns.c: Move coding.h.
26002 (Qcodeset, Qdays, Qmonths): New.
26003 (concat): Use CHARACTERP instead of INTEGERP.
26004 (Flocale_codeset): Delete.
26005 (Flanginfo): New function.
26006 (syms_of_fns): Change accordingly.
26007
26008 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
26009
260102008-02-01 Dave Love <fx@gnu.org>
26011
bba3e508
SM
26012 * casetab.c (init_casetab_once, init_casetab_once):
26013 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
26014
26015 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
26016
26017 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
26018
26019 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
26020 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
26021 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
26022
26023 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
26024
26025 * coding.c (ENCODE_DESIGNATION, decode_eol)
26026 (make_conversion_work_buffer, code_conversion_restore)
26027 (Fdefine_coding_system_internal): Convert Lisp types.
26028 (code_conversion_restore): Use EQ, not ==.
26029 (Fencode_coding_string): Fix code_convert_string call.
26030
26031 * coding.h (code_convert_region): Fix prototype.
26032
26033 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
26034
26035 * fontset.c (fontset_ref, fontset_set, fs_load_font)
26036 (Ffontset_info): Convert Lisp types.
26037
26038 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
26039
26040 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
26041
26042 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26043
26044 * chartab.c: Include "...h", not <...h> in some cases.
26045
26046 * callproc.c (Fcall_process): Remove unused variables.
26047
260482008-02-01 Dave Love <fx@gnu.org>
26049
26050 * coding.c (Fset_coding_system_priority): Allow null arg list.
26051
260522008-02-01 Dave Love <fx@gnu.org>
26053
26054 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26055 (Fself_insert_and_exit): Use CHARACTERP.
26056
26057 * callproc.c (Fcall_process): Remove unused vars.
26058
26059 * xterm.c (XTread_socket): Add extra dead keysyms.
26060
26061 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26062
26063 * dispextern.h: Remove prototypes for redraw_frame,
26064 redraw_garbaged_frames.
26065
26066 * cmds.c (Fself_insert_command): Use CHARACTERP.
26067
26068 * chartab.c (make_sub_char_table): Remove unused var.
26069 (Fset_char_table_default, Fmap_char_table): Doc fix.
26070
26071 * keymap.c (access_keymap): Remove generic char code.
26072 (push_key_description): Use CHARACTERP.
26073
260742008-02-01 Dave Love <fx@gnu.org>
26075
26076 * charset.c: Doc fixes.
26077 (Funify_charset): Extra checking.
26078
260792008-02-01 Dave Love <fx@gnu.org>
26080
26081 * lread.c: Remove some unused variables.
26082 (safe_to_load_p): If safe, return the magic number version byte.
26083 (Fload): Maybe use load-with-code-conversion.
26084
260852008-02-01 Kenichi Handa <handa@m17n.org>
26086
26087 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
26088 of category_set for characters out of the range.
26089 Avoid unnecessary modification.
aac0c6e3
MR
26090
26091 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26092 Vchar_unify_table. The default value of the table is now nil.
26093
26094 * character.c (syms_of_character): Setup Vchar_width_table for
26095 eight-bit-control and raw-byte chars.
26096
bba3e508
SM
26097 * charset.h (enum define_charset_arg_index):
26098 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
26099 charset_arg_superset.
26100 (enum charset_attr_index): Delete charset_parents and add
26101 charset_subset and charset_superset.
26102 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26103 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26104 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26105 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26106 (CHARSET_SUPERSET): New macros.
26107 (charset_work): Extern it.
26108 (ENCODE_CHAR): Use charset_work.
26109 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26110 (map_charset_chars): Extern it.
26111
26112 * charset.c (load_charset_map): Set the default value of encoder
26113 and deunifier char-tables to nil.
bba3e508
SM
26114 (map_charset_chars): Change argument. Change callers.
26115 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
26116 (Fmap_charset_chars): New optional args from_code and to_code.
26117 (Fdefine_charset_internal): Adjust for the change of
26118 `define-charset' (:parents -> :subset or :superset).
26119 (charset_work): New variable.
26120 (encode_char, syms_of_charset): Adjust for the change of
26121 Fdefine_charset_internal.
26122 (Ffind_charset_string): Setup the vector `charsets' correctly.
26123
bba3e508
SM
26124 * chartab.c (sub_char_table_ref_and_range): New arg default.
26125 Fix the previous change.
aac0c6e3
MR
26126 (char_table_ref_and_range): Adjust for the above change.
26127 (map_sub_char_table_for_charset): New function.
26128 (map_char_table_for_charset): New function.
26129
26130 * keymap.c (describe_vector): Handle a char-table directly here.
26131 (describe_char_table): Delete.
26132
26133 * lisp.h (map_charset_chars): Delete.
26134
261352008-02-01 Dave Love <fx@gnu.org>
26136
26137 * fns.c (count_combining): Comment out (unused).
26138 (Flocale_codeset): New.
26139 (syms_of_fns): Defsubr it.
26140
26141 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26142 (size_t): Remove.
26143
261442008-02-01 Dave Love <fx@gnu.org>
26145
26146 * Makefile.in (chartab.o): Depend on charset.h.
26147
261482008-02-01 Kenichi Handa <handa@m17n.org>
26149
26150 * character.c (syms_of_character): Set the default value of
26151 Vprintable_chars to Qnil.
26152
261532008-02-01 Dave Love <fx@gnu.org>
26154
26155 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26156
261572008-02-01 Kenichi Handa <handa@m17n.org>
26158
26159 * charset.c (load_charset_map): Handle the case that from < to
26160 correctly.
26161
26162 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26163 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26164 Pay attention to raw-8-bit chars.
26165
261662008-02-01 Kenichi Handa <handa@m17n.org>
26167
26168 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26169 It is not bytecompiled now.
26170
26171 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26172 (charset_jisx0208): New variables.
26173 (Fdefine_charset_internal): Setup them if appropriate.
26174 (init_charset_once): Initialize them to -1.
26175
26176 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26177 (charset_jisx0208): Extern them.
26178
26179 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26180 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26181 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26182 (setup_iso_safe_charsets): Fix arguments to Fassq.
26183 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26184 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26185 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26186 (encode_coding_iso_2022): Change the 1st arg to
26187 ENCODE_ISO_CHARACTER to a variable.
26188
261892008-02-01 Kenichi Handa <handa@m17n.org>
26190
26191 * charset.h (enum define_charset_arg_index): New enums
26192 charset_arg_min_code and charset_arg_max_code.
26193 (struct charset): New member char_index_offset.
26194
26195 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26196 Take charset->char_index_offset into account.
26197 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26198 args[charset_arg_max_code]. Setup charset.char_index_offset.
26199 (syms_of_charset): Fix args to Fdefine_charset_internal.
26200
262012008-02-01 Dave Love <fx@gnu.org>
26202
26203 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26204
262052008-02-01 Dave Love <fx@gnu.org>
26206
26207 * coding.c: Doc fixes.
26208 (Fcoding_system_aliases): Fix return value.
26209 (Qmac): Remove (duplicated) definition.
26210
262112008-02-01 Dave Love <fx@gnu.org>
26212
362654a6
JB
26213 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26214 New functions.
aac0c6e3
MR
26215
26216 * character.c (Fstring): Doc fix.
26217
26218 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26219
362654a6 26220 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
26221 (font-encoding-alist): Doc fix.
26222
262232008-02-01 Dave Love <fx@gnu.org>
26224
26225 * term.c (costs_set): Declare static, non-initialized for pcc.
26226 (encode_terminal_code): Remove unused var.
26227
26228 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26229 for K&R.
26230
26231 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26232
26233 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26234 (suffixes): Move out of make_subsidiaries for K&R.
26235
26236 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26237
26238 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26239
262402008-02-01 Dave Love <fx@gnu.org>
26241
26242 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26243
26244 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26245
262462008-02-01 Yong Lu <lyongu@asia-infonet.com>
26247
26248 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26249
26250 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26251
262522008-02-01 Kenichi Handa <handa@m17n.org>
26253
26254 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26255 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26256
262572008-02-01 Kenichi Handa <handa@m17n.org>
26258
26259 * coding.c (decode_coding_charset): Adjust for the change of
26260 Fdefine_coding_system_internal.
26261 (Fdefine_coding_system_internal): For a coding system of
26262 `charset' type, store a list of charset IDs in
26263 `charset_attr_charset_valids' element of coding attributes.
26264
262652008-02-01 Kenichi Handa <handa@m17n.org>
26266
26267 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
26268 (emacs_mule_char): New arg src. Delete arg `composition'.
26269 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
26270 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26271 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26272 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
26273 (DECODE_EMACS_MULE_21_COMPOSITION):
26274 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
26275 sequence.
26276 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26277 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26278 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26279 and alt&rule composition.
26280 (decode_coding_iso_2022): Handle composition correctly.
26281 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26282
26283 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26284 re-defining a charset. If the charset has :emacs-mule-id, setup
26285 emacs_mule_bytes.
26286 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26287
262882008-02-01 Kenichi Handa <handa@m17n.org>
26289
26290 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26291 (encode_coding_big5, encode_coding_charset): If coding requires safe
26292 encoding, produce a character specified by
26293 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26294
262952008-02-01 Dave Love <fx@gnu.org>
26296
26297 * xterm.c (XSetIMValues): Declare.
26298
26299 * process.c: Conditionally include sys/wait.h, pty.h.
26300
26301 * print.c (print_object): Fix print format for 64-bit systems.
26302
26303 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26304
26305 * buffer.c (emacs_strerror): Declare.
26306
26307 * fontset.c (Fclear_face_cache): Declare.
26308 (accumulate_font_info): Comment-out (unused).
26309 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26310 variables.
26311
26312 * character.h (string_escape_byte8): Declare.
26313
bba3e508
SM
26314 * charset.c (load_charset_map, load_charset_map_from_file):
26315 Remove unused vars.
aac0c6e3
MR
26316 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26317 (Fmap_charset_chars): Doc fix.
26318
26319 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26320 (Fset_coding_system_priority, Fset_coding_system_priority)
26321 (Fdefine_coding_system_internal): Doc fix.
26322
263232008-02-01 Dave Love <fx@gnu.org>
26324
26325 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26326
263272008-02-01 Kenichi Handa <handa@m17n.org>
26328
26329 * character.c (string_escape_byte8): Make multibyte string with
26330 correct size.
26331
26332 * charset.c (Fmake_char): Delete unnecessary code.
26333
263342008-02-01 Kenichi Handa <handa@m17n.org>
26335
26336 * xfns.c (x_encode_text): Allocate coding.destination here, and
26337 call encode_coding_object with dst_object Qnil.
26338
26339 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26340 multibyte form correctly.
26341
26342 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26343 against Vfont_encoding_alist.
26344
26345 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26346 handling of charset list.
26347 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26348 (decode_coding_object): Move point to coding->dst_pos before
26349 calling post-read-conversion function.
26350 (encode_coding_object): Give correct arguments to
26351 pre-write-conversion. Ignore the return value of
26352 pre-write-conversion function. Pay attention to the case that
26353 pre-write-conversion changes the current buffer. If dst_object is
26354 Qt, even if coding->src_bytes is zero, allocate at least one byte
26355 to coding->destination.
26356
26357 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26358
26359 * charset.c (Fmake_char): Make it more backward compatible.
26360 (Fmap_charset_chars): Fix docstring.
26361
263622008-02-01 Dave Love <fx@gnu.org>
26363
26364 * coding.c: Doc fixes.
26365 (Fdefine_coding_system_alias): Use names, not symbols, in
26366 coding-system-alist.
26367
263682008-02-01 Kenichi Handa <handa@m17n.org>
26369
26370 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26371 of calling free_realized_face.
26372
263732008-02-01 Yong Lu <lyongu@asia-infonet.com>
26374
26375 * charset.c (read_hex): Don't treat SPC as a comment starter.
26376 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26377 (Fdecode_char): Fix typo.
26378
263792008-02-01 Kenichi Handa <handa@m17n.org>
26380
26381 * charset.h (struct charset): New member `code_space_mask'.
26382
26383 * coding.c (coding_set_source): Delete the local variable beg_byte.
26384 (encode_coding_charset, Fdefine_coding_system_internal):
26385 Delete the local variable charset.
bba3e508
SM
26386 (Fdefine_coding_system_internal):
26387 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
26388
26389 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26390 member to check if CODE is valid or not.
26391 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26392 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26393 is within the range of charset->min_code and carset->max_code.
26394
263952008-02-01 Dave Love <fx@gnu.org>
26396
26397 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26398
26399 * dispextern.h (generate_ascii_font): Fix return type.
26400
26401 * xfaces.c (generate_ascii_font): Fix arg declaration.
26402
26403 * coding.c (coding_inherit_eol_type)
26404 (Fset_terminal_coding_system_internal)
26405 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26406
264072008-02-01 Kenichi Handa <handa@m17n.org>
26408
bba3e508
SM
26409 * coding.c (decode_coding_charset, encode_coding_charset):
26410 Handle multiple charsets correctly.
aac0c6e3
MR
26411
264122008-02-01 Kenichi Handa <handa@m17n.org>
26413
26414 * search.c (boyer_moore): Fix handling of multibyte character
26415 translation.
26416
26417 * xdisp.c (display_mode_element): When the variable `elt' is
26418 changed, update `this' and `lisp_string'.
26419
264202008-02-01 Kenichi Handa <handa@m17n.org>
26421
26422 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26423
26424 * callproc.c (Fcall_process): Be sure to give the current buffer
26425 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26426
26427 * charset.c (struct charset_map_entries): New struct.
26428 (load_charset_map): Rename from parse_charset_map. New args
26429 entries and n_entries. Change caller.
26430 (load_charset_map_from_file): Rename from load_charset_map.
26431 Change caller. New arg control_flag. Call load_charset_map at
26432 the tail.
26433 (load_charset_map_from_vector): New function.
26434 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26435 (encode_char): If the charset is compact, change a character index
26436 to a code point.
26437
26438 * coding.c (coding_alloc_by_making_gap): Check the case that the
26439 source and destination are the same correctly.
26440 (decode_coding_raw_text): Set coding->consumed_char and
26441 coding->consumed to 0.
26442 (produce_chars): If coding->chars_at_source is nonzero, update
26443 coding->consumed_char and coding->consumed before calling
26444 alloc_destination.
26445 (Fdefine_coding_system_alias): Register ALIAS in
26446 Vcoding_system_alist.
26447 (syms_of_coding): Define `no-conversion' coding system at the tail.
26448
26449 * fileio.c (Finsert_file_contents): Set coding_system instead of
26450 val. If the current buffer is multibyte, always call
26451 decode_coding_gap.
26452
26453 * xfaces.c (try_font_list): Give higher priority to fontset's
26454 family than face's family.
26455
264562008-02-01 Kenichi Handa <handa@m17n.org>
26457
26458 * callproc.c (Fcall_process): Be sure to give the current buffer
26459 to decode_coding_c_string.
26460
26461 * xfaces.c (try_font_list): Give a family specified in a fontset
26462 higher priority than a family specified in a face.
26463
264642008-02-01 Kenichi Handa <handa@m17n.org>
26465
26466 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26467 Fix arguments to insert_from_buffer.
26468
26469 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26470
264712008-02-01 Kenichi Handa <handa@m17n.org>
26472
26473 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26474 (decode_coding_gap): Set coding->dst_multibyte correctly.
26475
264762008-02-01 Kenichi Handa <handa@m17n.org>
26477
26478 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26479 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26480 (encode_coding_utf_16): Substitute coding->default_char for
26481 non-Unicode characters.
26482 (decode_coding): Don't call record_insert here.
26483 (setup_coding_system): Initialize `surrogate' of
26484 coding->spec.utf_16 to 0.
26485 (EMIT_ONE_BYTE): Fix for multibyte case.
26486
26487 * insdel.c (insert_from_gap): Call record_insert.
26488
264892008-02-01 Kenichi Handa <handa@m17n.org>
26490
26491 * casefiddle.c (casify_region): Fix multibyte case.
26492
26493 * character.c (c_string_width): Add return type `int'.
26494 (char_string_with_unification): Delete arg ADVANCED.
26495
26496 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26497 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26498 (CHAR_STRING_ADVANCE): Make it do-while statement.
26499
26500 * chartab.c (sub_char_table_set_range): Optimize for the case
26501 DEPTH == 3. Add workaround code for a GCC optimization bug.
26502
26503 * charset.c (parse_charset_map): Remove an unused variable.
26504
26505 * coding.c: Delete unused variables.
26506
26507 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26508 earlier. If inserted is zero and the coding system doesn't
26509 require flushing, don't call decode_coding_gap.
26510
26511 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26512
265132008-02-01 Kenichi Handa <handa@m17n.org>
26514
26515 The following changes are for using Unicode as an internal
26516 character model, and use UTF-8 format for buffer/string
26517 representation.
26518
26519 * .gdbinit (xchartable): Adjust for the change of char table structure.
26520 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26521
26522 * Makefile.in (obj): Add character.o and chartab.o.
26523 (lisp, shortlisp): Remove utf-8.elc.
26524 (*.o): For many files, change dependency on charset.h to
26525 character.h, and add dependency on character.h.
26526 (character.o, chartab.o): New targets.
26527
26528 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26529 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26530 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26531 of "charset.h".
26532
26533 * dired.c, filelock.c: Include "character.h".
26534
26535 * alloc.c: Include "character.h" instead of "charset.h".
26536 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26537 (syms_of_alloc): Remove defsubr for Smake_char_table.
26538
26539 * buffer.c: Include "character.h" instead of "charset.h", don't
26540 include "coding.h".
26541 (Fset_buffer_multibyte): Adjust for UTF-8.
26542
26543 * buffer.h: EXFUN Fbuffer_live_p.
26544
26545 * callproc.c: Include "character.h" instead of "charset.h".
26546 (Fcall_process): Big change for the new code-conversion APIs.
26547
26548 * casetab.c: Include "character.h" instead of "charset.h".
26549 (set_canon, set_identity, shuffle): Adjust for the new
26550 map_char_table spec.
26551 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26552 accessing the char table structure.
26553
26554 * chartab.c: New file that implements char table.
26555
26556 * category.c: Include "character.h".
26557 (copy_category_entry): New function.
26558 (copy_category_table): Call map_char_table and copy_category_entry.
26559 (Fmake_category_table): Initialize all top-level slots.
26560 (char_category_set): New function.
26561 (modify_lower_category_set): Delete.
26562 (Fmodify_category_entry): Call char_table_ref_and_range.
26563
26564 * category.h (CATEGORY_SET): Just call char_category_set.
26565
26566 * ccl.c: Include "character.h".
26567 (Qccl, Qcclp): New variables.
26568 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26569 it's less than 256.
26570 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26571 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26572 and DST type.
26573 (ccl_driver): Change types of argument, adjust code accordingly.
26574 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26575 ccl_driver.
26576 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26577
26578 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26579 New members src_multibyte, dst_multibyte, consumed, and produced.
26580 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26581 (CODING_SPEC_CCL_PROGRAM): New macro.
26582 (ccl_driver): Update prototype.
26583 (Qccl, Qcclp, Fccl_program_p): Extern them.
26584 (CHECK_CCL_PROGRAM): New macro.
26585
26586 * character.c, character.h, chartab.c: New files.
26587
26588 * charset.c: Mostly re-written. Move character and multibyte sequence
26589 handling codes to character.c.
26590
26591 * charset.h: Mostly re-written. Move character and multibyte sequence
26592 handling codes to character.h.
26593
26594 * coding.c, coding.h: Mostly re-written.
26595
26596 * composite.c: Include "character.h" instead of "charset.h".
26597 (CHAR_WIDTH): Move to character.h.
26598 (HASH_KEY, HASH_VALUE): Delete.
26599
26600 * composite.h (enum composition_method): Change order of enumeration
26601 symbols.
26602
26603 * data.c: Include "character.h" instead of "charset.h".
26604 (Faref): Call CHAR_TABLE_REF for a char table.
26605 (Faset): Call CHAR_TABLE_SET for a char table.
26606
26607 * dispextern.h (free_realized_face, check_face_attribytes)
26608 (generate_ascii_font): Extern them.
26609 (free_realized_multibyte_face): Delete extern.
26610
26611 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26612 table structure.
26613
26614 * editfns.c: Include "character.h" instead of "charset.h".
26615 (Fchar_to_string): Always call CHAR_STRING.
26616
26617 * emacs.c (main): Call init_charset_once, init_charset,
26618 syms_of_chartab, and syms_of_character.
26619
26620 * fileio.c: Include "character.h" instead of "charset.h".
26621 (Finsert_file_contents): Big change for the new code-conversion API.
26622 (choose_write_coding_system, Fwrite_region): Likewise.
26623 (build_annotations_2): Delete.
26624 (e_write): Big change for the new code-conversion API.
26625
26626 * fns.c: Include "character.h" instead of "charset.h".
26627 (copy_sub_char_table): Move to chartab.c.
26628 (Fcopy_sequence): Call copy_char_table for a char table.
26629 (concat): Delete codes calling count_multibyte.
26630 (string_char_to_byte, string_byte_to_char): Adjust for the new
26631 multibyte form.
26632 (internal_equal): Adjust for the change of char table structure.
26633 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26634 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26635 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26636 (char_table_translate, optimize_sub_char_table)
26637 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26638 chartab.c.
26639 (char_table_ref_and_index): Delete.
26640 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26641 (Fmd5): Call preferred_coding_system instead of accessing
26642 Vcoding_category_list. Adjust for the new code-conversion API.
26643 (syms_of_fns): Move defsubr for char table related functions to
26644 chartab.c.
26645
26646 * fontset.c: Mostly re-written.
26647
26648 * fontset.h (struct font_info): Change type of the member encoding_type.
26649 (enum FONT_SPEC_INDEX): New enum.
26650 (fontset_font_pattern, fs_load_font): Update prototype.
26651 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26652
26653 * indent.c: Include "character.h" instead of "charset.h".
26654 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26655
26656 * insdel.c: Include "character.h" instead of "charset.h".
26657 (copy_text): Don't refer to Vnonascii_translation_table.
26658 (insert_from_gap): New function.
26659
26660 * keyboard.c: Include "character.h" instead of "charset.h".
26661 (command_loop_1): Never call direct_output_forward_char before
26662 a non-ASCII character.
26663 (read_char): If Vkeyboard_translate_table is a char table, always
26664 translate a character.
26665
26666 * keymap.c: Include "character.h".
26667 (store_in_keymap): Handle the case that IDX is a cons.
26668 (Fdefine_key): Handle the case that KEY is a cons and the car part
26669 is also a cons (range).
26670 (push_key_description): Adjust for the new character code.
26671 (describe_vector): Call describe_char_table for a char table.
26672 (describe_char_table): New function.
26673
26674 * keymap.h (describe_char_table): Extern it.
26675
26676 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26677 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26678 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26679 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26680 Delete.
26681 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26682 structure.
26683 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26684 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26685 (CHARTAB_SIZE_BITS_3): New macros.
26686 (chartab_size): Extern it.
26687 (struct Lisp_Char_Table): Re-design.
26688 (struct Lisp_Sub_Char_Table): New structure.
26689 (HASH_KEY, HASH_VALUE): Move from fns.c.
26690 (CHARACTERBITS): Define as 22.
26691 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26692 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26693 (GC_SUB_CHAR_TABLE_P): New macro.
26694 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 26695 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
26696 (init_character_once, syms_of_character, init_charset)
26697 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26698
26699 * lread.c: Include "character.h".
26700 (read_multibyte): New arg NBYTES.
26701 (read_escape): Change the meaning of returned *BYTEREP.
26702 (to_multibyte): Delete.
26703 (read1): Adjust the handling of char table and string.
26704
26705 * print.c: Include "character.h" instead of "charset.h".
26706 (print_string): Convert 8-bit raw bytes to octal form by
26707 string_escape_byte8.
26708 (print_object): Adjust for the new multibyte form. Print 8-bit
26709 raw bytes always in octal form. Handle sub char table correctly.
26710
26711 * process.c: Include "character.h" instead of "charset.h".
26712 (read_process_output, send_process): Adjust for the new
26713 code-conversion API.
26714
26715 * puresize.h (BASE_PURESIZE): Increase.
26716
26717 * regex.c: Include "character.h" instead of "charset.h".
26718 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26719 (regex_compile): Accept a range whose starting and ending
26720 character have different leading bytes.
26721 (analyse_first): Adjust for the above change.
26722
26723 * search.c: Include "character.h" instead of "charset.h".
26724 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26725 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26726
26727 * syntax.c: Include "character.h" instead of "charset.h".
26728 (syntax_parent_lookup): Delete.
26729 (Fmodify_syntax_entry): Accept a cons as CHAR.
26730 (skip_chars): Adjust for the new multibyte form.
26731 (init_syntax_once): Call char_table_set_range instead of directly
26732 accessing the structure of a char table.
26733
26734 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26735 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26736 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26737 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26738
26739 * term.c: Include "buffer.h" and "character.h".
26740 (encode_terminal_code, write_glyphs): Adjust for the new
26741 code-conversion API.
26742 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26743
26744 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26745
26746 * xdisp.c: Include "character.h".
26747 (get_next_display_element): Adjust for the new multibyte form.
26748 (disp_char_vector): Adjust for the new char table structure.
26749 (decode_mode_spec_coding): Adjust for the new structure of
26750 coding system.
26751 (decode_mode_spec): Adjust for the new code-conversion API.
26752
26753 * xfaces.c: Include "character.h" instead of "charset.h".
26754 (load_face_font): Adjust for the change of choose_face_font and
26755 FS_LOAD_FONT.
26756 (generate_ascii_font): New function.
26757 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26758 (set_font_frame_param): Adjust for the change of choose_face_font.
26759 (free_realized_face): Make it public.
26760 (free_realized_faces_for_fontset): Rename from
26761 free_realized_multibyte_face. Free also faces realized for ASCII.
26762 (choose_face_font): Change arguments. Adjust for the change of
26763 fontset_font_pattern and FS_LOAD_FONT.
26764
26765 * xfns.c: Include "character.h".
26766 (x_encode_text): Adjust for the new code-conversion API.
26767
26768 * xselect.c: Don't include "charset.h".
26769 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26770
26771 * xterm.c: Include "character.h".
26772 (x_encode_char): New argument CHARSET. Change caller.
26773 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26774 Call ENCODE_CHAR instead of SPLIT_CHAR.
26775 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26776 CHAR_WIDTH instead of CHARSET_WIDTH.
26777 (XTread_socket): Adjust for the new code-conversion API.
26778 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26779 (x_load_font): Adjust for the change of struct font.
26780
267812008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26782
26783 * xfaces.c (face_at_buffer_position): Remove unused vars.
26784
267852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26786
26787 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26788 Fix overflow checking.
26789
267902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26791
26792 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26793 Cancel previous change.
26794
267952008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26796
26797 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26798 ccl->eight_bit_control. Fix check for buffer overflow.
26799 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26800 (ccl_driver): Initialize extra_bytes to 0.
26801
268022008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26803
26804 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26805 return it ORed with ctrl_modifier.
26806
268072008-01-29 Miles Bader <miles@gnu.org>
26808
26809 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26810
268112008-01-28 Jason Rumney <jasonr@gnu.org>
26812
26813 * w32.c (stat): Don't double check for networked drive.
26814
268152008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26816
26817 * window.c (run_window_configuration_change_hook): New function.
26818 Code extracted from set_window_buffer. Set the selected frame.
26819 (set_window_buffer): Use it.
26820 * window.h (run_window_configuration_change_hook): Declare.
26821 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26822
26823 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26824
268252008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26826
26827 * Makefile.in: Remove references to unused macros.
26828
268292008-01-26 Eli Zaretskii <eliz@gnu.org>
26830
26831 * w32.c (g_b_init_get_sid_sub_authority)
26832 (g_b_init_get_sid_sub_authority_count): New static variables.
26833 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26834 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26835 (init_user_info): Use them to retrieve uid and gid.
26836 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26837 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26838 st_uid and st_gid of the file.
26839
268402008-01-26 Jason Rumney <jasonr@gnu.org>
26841
26842 * w32.c (logon_network_drive): New function.
26843 (stat): Use it.
26844
268452008-01-26 Chong Yidong <cyd@stupidchicken.com>
26846
26847 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26848 invisible text covered with an ellipsis.
26849
268502008-01-25 Richard Stallman <rms@gnu.org>
26851
26852 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26853 jump back to beginning. Move some other initializations after that.
26854 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26855 New variables.
26856 (syms_of_xdisp): Init them.
26857
26858 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26859
26860 * buffer.c (reset_buffer_local_variables):
26861 Implement `permanent-local-hook'.
26862 (Qpermanent_local_hook): New variable.
26863 (syms_of_buffer): Init and staticpro it.
26864
268652008-01-25 Michael Albinus <michael.albinus@gmx.de>
26866
26867 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26868
268692008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26870
26871 * fns.c (Fclrhash): Return TABLE.
26872
268732008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26874
26875 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26876 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26877 is set even without positional changes.
26878 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26879
26880 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26881
268822008-01-23 Jason Rumney <jasonr@gnu.org>
26883
26884 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26885
26886 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26887 the unicode range available in MULE by locale-coding-system.
26888 Improve dbcs lead byte detection. Set event timestamp and modifiers
26889 earlier.
26890
268912008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26892
26893 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26894 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26895 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26896 when used on child processes.
26897
268982008-01-21 Michael Albinus <michael.albinus@gmx.de>
26899
26900 * dbusbind.c (Fdbus_method_return_internal): Rename from
26901 Fdbus_method_return.
26902 (Fdbus_unregister_object): Move to dbus.el.
26903 (Fdbus_call_method, Fdbus_method_return_internal)
26904 (Fdbus_send_signal): Improve debug messages.
26905
269062008-01-20 Martin Rudalics <rudalics@gmx.at>
26907
26908 * undo.c (undo_inhibit_record_point): New variable.
26909 (syms_of_undo): Initialize it.
26910 (record_point): Don't record point when undo_inhibit_record_point
26911 is set.
26912
269132008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26914
26915 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26916
26917 * xdisp.c (Qauto_hscroll_mode): New var.
26918 (syms_of_xdisp): Initialize it.
26919 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26920 window's buffer.
26921 (hscroll_windows): Don't check automatic_hscrolling_p here.
26922
26923 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26924 vscroll if we're setting window-buffer to the value it already has.
26925
269262008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26927
26928 * m/intel386.h: Remove references to XENIX.
26929
269302008-01-17 Andreas Schwab <schwab@suse.de>
26931
26932 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26933 instead of HAVE_X86_64_LIB64_DIR.
26934 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26935
269362008-01-17 Glenn Morris <rgm@gnu.org>
26937
26938 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26939 to HAVE_X86_64_LIB64_DIR.
26940
269412008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26942
26943 * s/irix3-3.h:
26944 * s/irix4-0.h:
26945 * s/386-ix.h:
26946 * s/domain.h:
26947 * s/hpux9-x11r4.h:
26948 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26949
26950 * sysdep.c: Remove code containing references to symbols defined
26951 by unsupported systems.
26952
269532008-01-16 Glenn Morris <rgm@gnu.org>
26954
26955 * coding.c (select-safe-coding-system-function): Doc fix.
26956
269572008-01-15 Glenn Morris <rgm@gnu.org>
26958
26959 * config.in: Revert 2008-01-13 change: this is a generated file.
26960
269612008-01-13 Tom Tromey <tromey@redhat.com>
26962
26963 * lisp.h: Fix typo.
26964
269652008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26966
26967 * m/sequent-ptx.h:
26968 * m/sequent.h:
26969 * s/ptx.h:
26970 * s/ptx4-2.h:
26971 * s/ptx4.h: Remove files for systems no longer supported.
26972
26973 * callproc.c (Fcall_process): Fix previous change.
26974
269752008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26976
26977 * unexsunos4.c: Remove file, system not supported anymore.
26978
26979 * m/mips.h:
26980 * m/intel386.h:
26981 * callproc.c:
26982 * config.in:
26983 * ecrt0.c:
26984 * emacs.c:
26985 * fileio.c:
26986 * frame.c:
26987 * getpagesize.h:
26988 * keyboard.c:
26989 * lread.c:
26990 * process.c:
26991 * puresize.h:
26992 * sysdep.c:
26993 * systty.h:
26994 * syswait.h:
26995 * unexec.c:
26996 * xdisp.c:
26997 * alloc.c: Remove code containing references to symbols defined by
26998 unsupported systems.
26999
270002008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
27001
27002 * coding.c (detect_coding_mask): Fix previous change.
27003
270042008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
27005
27006 * coding.c (detect_coding_iso2022): New arg
27007 latin_extra_code_state. Allow Latin extra codes only
27008 when *latin_extra_code_state is nonzero.
27009 (detect_coding_mask): If there is a NULL byte, detect the encoding
27010 as UTF-16 or binary. If Latin extra codes exist, detect the
27011 encoding as ISO-2022 only when there's no other proper encoding is
27012 found.
27013
270142008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27015
27016 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
27017 #ifdef MAC_OS.
27018
270192008-01-08 Richard Stallman <rms@gnu.org>
27020
27021 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
27022
270232008-01-06 Nick Roberts <nickrob@snap.net.nz>
27024
27025 * keyboard.c (parse_menu_item): Don't enclose key bindings on
27026 menu bar in parentheses.
27027
270282008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
27029
27030 * m/7300.h:
27031 * m/acorn.h:
27032 * m/alliant-2800.h:
27033 * m/alliant.h:
27034 * m/alliant1.h:
27035 * m/alliant4.h:
27036 * m/altos.h:
27037 * m/amdahl.h:
27038 * m/apollo.h:
27039 * m/att3b.h:
27040 * m/aviion-intel.h:
27041 * m/aviion.h:
27042 * m/celerity.h:
27043 * m/clipper.h:
27044 * m/cnvrgnt.h:
27045 * m/convex.h:
27046 * m/cydra5.h:
27047 * m/delta88k.h:
27048 * m/dpx2.h:
27049 * m/dual.h:
27050 * m/elxsi.h:
27051 * m/f301.h:
27052 * m/gould-np1.h:
27053 * m/gould.h:
27054 * m/i860.h:
27055 * m/ibmps2-aix.h:
27056 * m/ibmrt-aix.h:
27057 * m/ibmrt.h:
27058 * m/irist.h:
27059 * m/is386.h:
27060 * m/isi-ov.h:
27061 * m/mega68.h:
27062 * m/mg1.h:
27063 * m/news-r6.h:
27064 * m/news-risc.h:
27065 * m/news.h:
27066 * m/nh3000.h:
27067 * m/nh4000.h:
27068 * m/ns16000.h:
27069 * m/ns32000.h:
27070 * m/nu.h:
27071 * m/orion.h:
27072 * m/orion105.h:
27073 * m/paragon.h:
27074 * m/pfa50.h:
27075 * m/plexus.h:
27076 * m/pyramid.h:
27077 * m/pyrmips.h:
27078 * m/sh3el.h:
27079 * m/sps7.h:
27080 * m/sr2k.h:
27081 * m/stride.h:
27082 * m/sun1.h:
27083 * m/sun2.h:
27084 * m/sun3-68881.h:
27085 * m/sun3-fpa.h:
27086 * m/sun3-soft.h:
27087 * m/sun3.h:
27088 * m/sun386.h:
27089 * m/symmetry.h:
27090 * m/tad68k.h:
27091 * m/tahoe.h:
27092 * m/targon31.h:
27093 * m/tek4300.h:
27094 * m/tekxd88.h:
27095 * m/tower32.h:
27096 * m/tower32v3.h:
27097 * m/ustation.h:
27098 * m/wicat.h:
27099 * m/xps100.h:
27100 * s/cxux.h:
27101 * s/cxux7.h:
27102 * s/dgux.h:
27103 * s/dgux4.h:
27104 * s/dgux5-4-3.h:
27105 * s/dgux5-4r2.h:
27106 * s/esix.h:
27107 * s/esix5r4.h:
27108 * s/hiuxmpp.h:
27109 * s/hiuxwe2.h:
27110 * s/iris3-5.h:
27111 * s/iris3-6.h:
27112 * s/isc2-2.h:
27113 * s/isc3-0.h:
27114 * s/isc4-0.h:
27115 * s/isc4-1.h:
27116 * s/newsos5.h:
27117 * s/newsos6.h:
27118 * s/osf1.h:
27119 * s/osf5-0.h:
27120 * s/riscix1-1.h:
27121 * s/riscix12.h:
27122 * s/sco4.h:
27123 * s/sco5.h:
27124 * s/sunos4-0.h:
27125 * s/sunos4-1.h:
27126 * s/sunos413.h:
27127 * s/sunos4shr.h:
27128 * s/umax.h:
27129 * s/unipl5-2.h:
27130 * s/xenix.h:
27131 * cxux-crt0.s:
27132 * unexapollo.c:
27133 * unexconvex.c:
27134 * unexenix.c:
27135 * unexsni.c: Remove files for systems no longer supported.
27136
27137 * m/intel386.h: Remove references to unsupported systems.
27138
27139 * w32.c (get_emacs_configuration): Remove reference to i860.
27140
27141 * sysdep.c: Remove dead code.
27142
271432008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27144
27145 * s/rtu.h:
27146 * m/masscomp.h: Remove files. Platform is obsolete.
27147
271482008-01-04 Michael Albinus <michael.albinus@gmx.de>
27149
27150 * dbusbind.c (Fdbus_method_return): New function.
27151 (xd_read_message): Add the serial number to the event.
27152 (Fdbus_register_method): Activate the function.
27153
271542008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27155
27156 * keyboard.c (read_key_sequence): Fix typo.
27157
271582008-01-03 Michael Albinus <michael.albinus@gmx.de>
27159
27160 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27161 (xd_signature, xd_append_arg): Handle element type detection for
27162 empty arrays.
27163 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27164 SDATA () calls; this must be solved more general.
27165 (Fdbus_register_signal): Use SBYTES instead of strlen.
27166
271672008-01-03 Magnus Henoch <magnus@zemdatav>
27168
27169 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27170 unsigned int for byte values (necessary for big-endian platform).
27171 (Fdbus_call_method): Handle the case of no returned arguments.
27172
271732007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27174
27175 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27176
271772007-12-31 Magnus Henoch <mange@freemail.hu>
27178
27179 * dbusbind.c (xd_signature): Signature of variant is just "v".
27180
271812007-12-30 Michael Albinus <michael.albinus@gmx.de>
27182
27183 * dbusbind.c: Fix several errors and compiler warnings.
27184 Reported by Tom Tromey <tromey@redhat.com>.
27185 (XD_ERROR, XD_DEBUG_MESSAGE)
27186 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27187 (xd_append_arg): Part for basic D-Bus types rewritten.
27188 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27189 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27190 appropriate.
27191 (xd_read_message): Return Qnil. Don't signal an error; it is not
27192 useful during event reading.
27193 (Fdbus_register_signal): Signal an error if the check for
27194 FUNCTIONP fails.
27195 (Fdbus_register_method): New function. The implementation is not
27196 complete, the call of the function signals an error therefore.
27197 (Fdbus_unregister_object): New function, renamed from
27198 Fdbus_unregister_signal. The initial check signals an error, if
27199 the object is not well formed.
27200
272012007-12-30 Richard Stallman <rms@gnu.org>
27202
27203 * textprop.c (get_char_property_and_overlay):
27204 Signal error if POSITION is out of range in a buffer.
27205
272062007-12-29 Martin Rudalics <rudalics@gmx.at>
27207
27208 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27209 because the original parameters are in pure storage now.
27210
272112007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27212
27213 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27214
272152007-12-22 Eli Zaretskii <eliz@gnu.org>
27216
27217 * callint.c (syms_of_callint) <command-history>: Add reference to
27218 history-length in the doc string.
27219
272202007-12-17 Jason Rumney <jasonr@gnu.org>
27221
27222 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27223 before passing as wParam.
27224
272252007-12-22 Michael Albinus <michael.albinus@gmx.de>
27226
27227 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27228 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27229 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27230 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27231 as number.
27232 (Fdbus_call_method): Fix docstring.
27233
272342007-12-21 Michael Albinus <michael.albinus@gmx.de>
27235
27236 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27237 New macros.
27238 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27239 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27240 Simplify.
27241 (xd_signature): New function.
27242 (xd_append_arg): Compute also signatures. Major rewrite.
27243 (xd_retrieve_arg): Make debug messages friendly.
27244 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27245 Check for signatures of arguments.
27246
272472007-12-19 Michael Albinus <michael.albinus@gmx.de>
27248
27249 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27250 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27251 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27252 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27253 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27254 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27255 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27256 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27257 (xd_retrieve_value): Remove. Functionality included in ...
27258 (xd_append_arg): New function.
27259 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27260
272612007-12-16 Michael Albinus <michael.albinus@gmx.de>
27262
27263 * dbusbind.c (top): Include <stdio.h>.
27264 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27265 dbus_message_new_method_call and dbus_message_new_signal.
27266 (Fdbus_register_signal): Rename unique_name to uname.
27267 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27268 non-existing unique name. Fix typos in matching rule. Return an
27269 object which is useful in Fdbus_unregister_signal.
27270 (Fdbus_unregister_signal): Reimplementation, in order to remove
27271 only the corresponding entry.
27272 (Vdbus_registered_functions_table): Change the order of entries.
27273 Apply these changes in xd_read_message and Fdbus_register_signal.
27274
272752007-12-16 Andreas Schwab <schwab@suse.de>
27276
27277 * fileio.c (Finsert_file_contents): Fix overflow check to not
27278 depend on undefined integer overflow.
27279
272802007-12-14 Jason Rumney <jasonr@gnu.org>
27281
27282 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27283 for characters above 127.
27284
272852007-12-13 Jason Rumney <jasonr@gnu.org>
27286
27287 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27288 before dereferencing array.
27289 (lookup_vk_code): Remove zero comparison.
27290
272912007-12-14 Michael Albinus <michael.albinus@gmx.de>
27292
27293 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27294 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27295 Use `unsigned int' instead of `uint'.
27296 (xd_read_message, Fdbus_register_signal): Split expressions into
27297 multiple lines before operators "&&" and "||", according to the
27298 GNU Coding Standards.
27299
273002007-12-14 Eli Zaretskii <eliz@gnu.org>
27301
27302 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27303
273042007-12-12 Juri Linkov <juri@jurta.org>
27305
27306 * buffer.c (Frename_buffer): In interactive spec replace
27307 `read-buffer' with `read-string' that uses `buffer-name-history'
27308 as history, and the current buffer's name as default.
27309
273102007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27311
27312 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27313 manipulating the backtrace manually.
27314 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27315 (struct backtrace, backtrace_list): Remove.
27316 (command_loop_1): Remove dead var `no_direct'.
27317
27318 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27319 preserve non-built-in buffer-local variables.
27320 (Fkill_all_local_variables): Don't re-create&re-set permanent
27321 buffer-local variables.
27322
273232007-12-09 Juri Linkov <juri@jurta.org>
27324
27325 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27326 Lisp code that uses `read-buffer' with current buffer as default.
27327
273282007-12-08 Michael Albinus <michael.albinus@gmx.de>
27329
27330 * dbusbind.c (xd_read_message): Generate an event for every
27331 registered handler. There might be several handlers registered
27332 for the same signal.
27333 (Fdbus_register_signal): Don't overwrite a registration for the
27334 same signal. Add a new registration if handlers are different.
27335 (Vdbus_registered_functions_table): Rework doc string.
27336
273372007-12-07 Michael Albinus <michael.albinus@gmx.de>
27338
27339 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27340 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27341 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27342 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27343 Unify argument lists.
27344 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27345 arguments and hash table keys. Use unique name for service.
27346 (Fdbus_unregister_signal): Remove checks.
27347 (Vdbus_registered_functions_table): Fix doc string.
27348
273492007-12-05 Magnus Henoch <mange@freemail.hu>
27350
27351 * process.c (make_process): Initialize pty_flag to 0.
27352
273532007-12-05 Jason Rumney <jasonr@gnu.org>
27354
27355 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27356 specified XBMs.
27357
273582007-12-05 Richard Stallman <rms@gnu.org>
27359
27360 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27361
273622007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27363
27364 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27365 New variable.
27366 (mac_try_close_socket) [MAC_OSX]: New function.
27367 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27368 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27369
27370 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27371 Use mac_try_close_socket.
27372
273732007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27374
27375 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27376 reloc_base.
27377 (copy_dysymtab): Compute relocation base here.
27378 (rebase_reloc_address) [__ppc64__]: New function.
27379 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27380 changed.
27381
273822007-12-05 Jason Rumney <jasonr@gnu.org>
27383
27384 * w32proc.c (sys_spawnve): Quote args with wildcards.
27385
273862007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27387
27388 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27389 __objc_* sections.
27390 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27391
273922007-12-05 Michael Albinus <michael.albinus@gmx.de>
27393
27394 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27395 Move check for Vdbus_registered_functions_table to
27396 xd_read_queued_messages.
27397 (xd_read_queued_messages): Protect xd_read_message calls by
27398 internal_condition_case_1.
27399
274002007-12-04 Michael Albinus <michael.albinus@gmx.de>
27401
27402 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27403 Qdbus_system_bus and Qdbus_session_bus, respectively.
27404 (Vdbus_intern_symbols): Remove.
27405 (Vdbus_registered_functions_table): New hash table.
27406 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27407 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27408 Rewrite in order to manage registered functions by hash table
27409 Vdbus_registered_functions_table.
27410
274112007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27412
27413 * xterm.c: Update URL to Window Manager Specification in comment.
27414
274152007-12-02 Michael Albinus <michael.albinus@gmx.de>
27416
27417 * config.in (HAVE_DBUS): Add.
27418
27419 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27420 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27421 (obj): Add $(DBUS_OBJ).
27422 (LIBES): Add $(DBUS_LIBS).
27423 (dbusbind.o): New target.
27424
27425 * dbusbind.c: New file.
27426
27427 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27428
27429 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27430 (Qdbus_event): New Lisp symbol.
27431 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27432 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 27433 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
27434
27435 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27436
274372007-12-01 Richard Stallman <rms@gnu.org>
27438
27439 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27440
274412007-11-30 Jason Rumney <jasonr@gnu.org>
27442
27443 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27444 (w32con_reset_terminal_modes): Clear screen buffer.
27445 (w32_face_attributes): Don't use color indexes that are out of range.
27446 Only reverse the default colors.
27447
27448 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27449 WINDOWSNT.
27450
27451 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27452
274532007-11-29 Jason Rumney <jasonr@gnu.org>
27454
27455 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27456 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27457 if the terminal colors are initialized.
27458 (unspecified_fg, unspecified_bg): Remove unused declarations.
27459
274602007-11-29 Andreas Schwab <schwab@suse.de>
27461
27462 * keyboard.c (apply_modifiers): Fix typo.
27463
274642007-11-29 Richard Stallman <rms@gnu.org>
27465
27466 * keymap.c (Fcurrent_local_map): Doc fix.
27467
274682007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27469
27470 * s/gnu-kfreebsd.h: New file.
27471
274722007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27473
27474 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27475 Don't cast redundantly.
27476
27477 * keyboard.c (KEY_TO_CHAR): New macro.
27478 (parse_modifiers, apply_modifiers): Accept integer arguments.
27479 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27480 for chars and symbol keys.
27481 After doing such remapping, apply function-key-map again.
27482
274832007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27484
27485 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27486 compiled anymore.
27487
274882007-11-26 Andreas Schwab <schwab@suse.de>
27489
27490 * process.c (list_processes_1): Fix indentation level of the
27491 command column.
27492
274932007-11-23 Andreas Schwab <schwab@suse.de>
27494
27495 * editfns.c (Fformat): Handle %c specially since it requires the
27496 argument to be of type int.
27497
274982007-11-23 Markus Triska <markus.triska@gmx.at>
27499
27500 * emacs.c (main): Call init_editfns before init_process, since
27501 init_process sets Vprocess_connection_type depending on OS release.
27502
275032007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27504
27505 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27506 (find_symbol_value): Use do_symval_forwarding.
27507
27508 * data.c (set_internal): Set the value in the `cons-cell' (for
27509 Buffer_Local_values) not only for frame-local variables.
27510
275112007-11-22 Andreas Schwab <schwab@suse.de>
27512
27513 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27514 values to sprintf.
27515 * keymap.c (Fsingle_key_description): Likewise.
27516 * print.c (print_object): Likewise.
27517
275182007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27519
27520 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27521 file for image is nil.
27522
275232007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27524
27525 * term.c: Include stdarg.h.
27526 (fatal): Implement using varargs.
27527 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27528
275292007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27530
27531 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27532 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27533 Update call to buffer_slot_type_mismatch.
27534 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27535 (buffer_slot_type_mismatch): Update.
27536 * buffer.c (buffer_local_types): Remove.
27537 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27538 (defvar_per_buffer): Set the type in the buffer_objfwd.
27539
275402007-11-21 Jason Rumney <jasonr@gnu.org>
27541
27542 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27543 CreateFileMapping returns NULL on failure.
27544
275452007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27546
27547 * search.c (Fset_match_data): Remove the `evaporate' feature.
27548 (unwind_set_match_data): Don't use the `evaporate' feature.
27549
275502007-11-21 Jason Rumney <jasonr@gnu.org>
27551
27552 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27553
27554 * w32console.c (w32con_write_glyphs): Remove unused variables.
27555
275562007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27557
27558 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27559
27560 * s/darwin.h (MULTI_KBOARD): Remove.
27561
27562 * macfns.c (x_create_tip_frame, Fx_create_frame)
27563 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27564
275652007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27566
27567 * buffer.c (Fbuffer_local_value): Remove redundant test.
27568 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27569 than in `current-buffer' to match the comment.
27570 Do the swap using swap_in_global_binding.
27571
27572 * data.c (store_symval_forwarding, set_internal):
27573 * eval.c (specbind): Remove dead code.
27574
27575 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27576 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27577 Since we do not want to see internal Lisp_*fwd objects here.
27578
275792007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27580
27581 * sysdep.c (init_system_name): Use getaddrinfo if available.
27582
27583 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27584 (x_scroll_bar_note_movement): start, end, with, height in struct
27585 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27586
275872007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27588
27589 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27590
275912007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27592
27593 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27594 This undoes Richard's change of 14-Oct-2002.
27595
27596 * alloc.c (allocate_other_vector):
27597 * lisp.h (allocate_other_vector): Remove.
27598
27599 * window.c (struct save_window_data): Move non-lisp data to the end
27600 and make it `int' rather than Lisp_Object.
27601 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27602 Done wrap/unwrap integer values.
27603 (Fset_window_configuration, compare_window_configurations):
27604 Update use of fields to their new types.
27605
27606 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27607 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27608 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27609 (SET_SCROLL_BAR_X_WINDOW): Remove.
27610 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27611 Access the new x_window field directly.
27612 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27613 Don't wrap/unwrap integers into Lisp_Objects.
27614 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27615 (x_scroll_bar_report_motion):
27616 Don't wrap/unwrap integers into Lisp_Objects.
27617 (x_term_init): Use SDATA.
27618 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27619 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27620 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27621 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27622 * xfns.c (x_set_background_color):
27623 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27624 Access the new x_window field directly.
27625
27626 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27627 (allocate_pseudovector): Make non-static.
27628
27629 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27630 (allocate_pseudovector): Declare.
27631 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27632
276332007-11-15 Andreas Schwab <schwab@suse.de>
27634
27635 * editfns.c (Fformat): Correctly format EMACS_INT values.
27636 Also take precision into account when formatting an integer.
27637
27638 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27639
276402007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27641
27642 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27643 (syms_of_keyboard): Defsubr it.
27644
27645 * data.c (swap_in_global_binding): Fix longstanding bug where
27646 store_symval_forwarding was not called with the right second argument,
27647 thus causing objfwd-ing from being dropped.
27648
276492007-11-14 Juanma Barranquero <lekktu@gmail.com>
27650
27651 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
27652 (Fx_display_pixel_height, Fx_display_planes)
27653 (Fx_display_color_cells, Fx_server_max_request_size)
27654 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27655 (Fx_display_visual_class, Fx_display_save_under):
27656 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27657 (Fx_display_pixel_height, Fx_display_planes)
27658 (Fx_display_color_cells, Fx_server_max_request_size)
27659 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27660 (Fx_display_mm_height, Fx_display_mm_width)
27661 (Fx_display_backing_store, Fx_display_visual_class)
27662 (Fw32_select_font, Fx_display_save_under):
27663 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27664 (Fx_display_pixel_height, Fx_display_planes)
27665 (Fx_display_color_cells, Fx_server_max_request_size)
27666 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27667 (Fx_display_save_under): Fix typos in docstrings.
27668
276692007-11-14 Juanma Barranquero <lekktu@gmail.com>
27670
27671 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27672 corresponding to deleted entries; they are an implementation detail.
27673 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27674 Remove variables.
27675 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27676 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27677 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27678 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27679 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27680 (Fw32_define_rgb_color, Fw32_load_color_file)
27681 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27682 Fix typos in docstrings.
27683 (Fx_server_version): Reflow docstring.
27684 (Fw32_shell_execute): Doc fixes.
27685
276862007-11-13 Juanma Barranquero <lekktu@gmail.com>
27687
27688 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27689 if w32_parse_hot_key returned nil.
27690
276912007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27692
27693 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27694
276952007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 27696
aac0c6e3
MR
27697 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27698
27699 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27700
27701 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27702 Remove W32_SCROLL_BAR_CLICK_EVENT.
27703
27704 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27705 Add MULTIMEDIA_KEY_EVENT.
27706
27707 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27708 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27709 (make_lispy_event) [WINDOWSNT]: Use it to translate
27710 MULTIMEDIA_KEY_EVENT.
27711
27712 * w32term.h (WM_APPCOMMAND): Define if not already.
27713 (GET_APPCOMMAND_LPARAM): Likewise.
27714
27715 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27716 WM_APPCOMMAND.
27717
27718 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27719 (syms_of_w32fns): Export and initialize it.
27720 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27721
277222007-11-09 Chong Yidong <cyd@stupidchicken.com>
27723
27724 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27725 twice.
27726
27727 * xdisp.c (handle_face_prop): Fix last change.
27728
277292007-11-09 Richard Stallman <rms@gnu.org>
27730
27731 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27732 not just for after-strings and before-strings.
27733 Call face_for_overlay_string and pass the overlay to it.
27734 (handle_display_prop): Determine whether property came from an overlay.
27735 Pass OVERLAY arg to handle_single_display_spec.
27736 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27737 (load_overlay_strings): Fill in it->string_overlays.
27738 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27739
27740 * xfaces.c (face_for_overlay_string): Function renamed from
27741 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27742
27743 * dispextern.h (struct it): New elt string_overlays.
27744 New elt from_overlay, also in stack.
27745 Rearrange a few elements.
27746 (face_for_overlay_string): Decl renamed from
27747 face_at_buffer_position_no_overlays, and add argument.
27748
277492007-11-09 Richard Stallman <rms@gnu.org>
27750
27751 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27752 to get the base face for an overlay string.
27753
27754 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27755
27756 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27757
27758 * xdisp.c (handle_stop): Move some code out of loop.
27759
277602007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27761
27762 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27763 Fix conversion from Lisp object to ATSUFontID.
27764
277652007-11-09 Jason Rumney <jasonr@gnu.org>
27766
27767 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27768
277692007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27770
27771 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27772 Don't assume regions are aligned to page boundary.
27773 (print_load_command_name): Add LC_UUID if defined.
27774
277752007-11-09 Richard Stallman <rms@gnu.org>
27776
27777 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27778
277792007-11-07 Jason Rumney <jasonr@gnu.org>
27780
27781 * s/windows95.h: Remove.
27782
277832007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27784
27785 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27786 abort with a message on unhandled store_type values.
27787
277882007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27789
27790 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27791 Remove HAVE_X11R5 and HAVE_X11R4.
27792
277932007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27794
27795 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27796
277972007-11-01 Johan Bockgård <bojohan@gnu.org>
27798
27799 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27800 Don't set s->stippled_p here, since it has already been set by
27801 x_set_glyph_string_gc from x_draw_glyph_string.
27802
278032007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27804
27805 * sunfns.c: Remove file.
27806
27807 * m/sun386.h:
27808 * m/sun2.h:
27809 * m/sparc.h: Remove Sun windows code.
27810
278112007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27812
27813 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27814 (init_keyboard): Set current_kboard's window-system to nil.
27815 (tty_read_avail_input): Typo.
27816 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27817
278182007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27819
27820 * s/usg5-4.h:
27821 * s/usg5-3.h:
27822 * s/ptx.h:
27823 * m/is386.h:
27824 * m/ibmps2-aix.h:
27825 * Makefile.in: Remove all mentions of X10.
27826
27827 * dispnew.c (syms_of_display): Don't mention version 10.
27828
278292007-10-28 Juanma Barranquero <lekktu@gmail.com>
27830
27831 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27832 ($(BLD)/abbrev.$(O)): Remove.
27833
278342007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27835
27836 Rewrite abbrev.c in Elisp.
27837 * image.c (Qcount): Don't declare as extern.
27838 (syms_of_image): Initialize and staticpro `Qcount'.
27839 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27840 * emacs.c (main): Don't call syms_of_abbrev.
27841 * Makefile.in (obj): Remove abbrev.o.
27842 (abbrev.o): Remove.
27843 * abbrev.c: Remove.
27844
278452007-10-26 Martin Rudalics <rudalics@gmx.at>
27846
27847 * window.c (window_min_size_2): Don't count header-line.
27848
278492007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27850
27851 * frame.h (struct frame): Move all bit fields after the first bit
27852 field to take advantage of the available space. Group all the
27853 chars together to reduce wasted space due to padding.
27854
278552007-10-26 Juanma Barranquero <lekktu@gmail.com>
27856
27857 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27858
27859 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27860 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27861 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27862 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27863 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27864 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27865 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27866 (last_marked, mark_object_loop_halt): Make static.
27867
27868 * frame.c (syms_of_frame) <delete-frame-functions>:
27869 Fix typo in docstring.
27870
278712007-10-25 Juanma Barranquero <lekktu@gmail.com>
27872
27873 * w32.c (init_environment): Fix tiny memory leak.
27874 (w32_get_resource): Remove unused variable `ok'.
27875
278762007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27877
27878 Make `window-system' into a keyboard-local variable (rather than
27879 frame-local as done originally by multi-tty).
27880
27881 * keyboard.h (struct kboard): Add Vwindow_system.
27882 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27883 (mark_kboards): Mark Vwindow_system.
27884
27885 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27886 (init_display): Don't set the obsolete `window-system' frame-param.
27887
27888 * xterm.c (x_term_init):
27889 * w32term.c (w32_create_terminal):
27890 * term.c (init_tty): Set Vwindow_system.
27891 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27892 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27893
27894 * xfns.c (Fx_create_frame, x_create_tip_frame):
27895 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27896 * macfns.c (Fx_create_frame):
27897 Don't set the obsolete `window-system' frame-param.
27898
27899 * frame.h (Qwindow_system): Remove.
27900 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27901 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27902
279032007-10-24 Richard Stallman <rms@gnu.org>
27904
27905 * frame.c (x_figure_window_size): For fullscreen case,
27906 set USPosition | PPosition without clobbering rest of window_prompting.
27907
27908 * keyboard.c (Fcurrent_idle_time): Doc fix.
27909
27910 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27911
279122007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27913
27914 * process.c (unwind_request_sigio): Only define if __ultrix__.
27915
27916 * callproc.c (child_setup): Remove spurious *.
27917
27918 * lisp.h (Fget_text_property): Declare.
27919 (have_menus_p): Declare it here rather than in sys-dep header files.
27920 * macterm.h (have_menus_p):
27921 * msdos.h (have_menus_p):
27922 * xterm.h (have_menus_p): Remove.
27923
27924 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27925 (Fmake_variable_frame_local): Just check the variable's const-ness
27926 rather than checking nil or t.
27927
279282007-10-22 Jason Rumney <jasonr@gnu.org>
27929
27930 * w32fns.c: Include math.h.
27931 (w32_abort): Declaration moved to nt/config.nt.
27932
27933 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27934 (abort): Redefinition moved to nt/config.nt.
27935
27936 * m/windowsnt.h: Remove.
27937
279382007-10-22 Juanma Barranquero <lekktu@gmail.com>
27939
27940 * emacs.c (Fdump_emacs): Fix typo in message.
27941 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27942 <installation-directory>: Reflow docstring.
27943
279442007-10-22 Juri Linkov <juri@jurta.org>
27945
27946 * minibuf.c: Allow minibuffer default to be a list of default values.
27947 With empty input use the first element of this list as returned default.
27948 (string_to_object)
27949 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27950 (read_minibuf): If defalt is cons, set histstring to its car.
27951 (Fread_string): If default_value is cons, set val to its car.
27952 (Fread_buffer): If def is cons, use its car.
27953 (Fcompleting_read): If defalt is cons, set val to its car.
27954
279552007-10-21 Michael Albinus <michael.albinus@gmx.de>
27956
27957 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27958
279592007-10-20 Juanma Barranquero <lekktu@gmail.com>
27960
27961 * doc.c (Fdocumentation): Check for advice in all cases.
27962
279632007-10-19 Chong Yidong <cyd@stupidchicken.com>
27964
27965 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27966
279672007-10-19 Richard Stallman <rms@gnu.org>
27968
27969 * doc.c (Fdocumentation): Check for and handle an advised function.
27970
279712007-10-19 Juanma Barranquero <lekktu@gmail.com>
27972
27973 * process.c (Fset_process_filter): Doc fix.
27974
279752007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27976
27977 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27978 which caused key-translation-map to applied repeatedly (thus breaking
27979 double-mode).
27980
279812007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27982
27983 * xselect.c (x_own_selection, x_handle_selection_clear)
27984 (x_clear_frame_selections):
27985 * w32menu.c (list_of_panes, list_of_items):
27986 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27987 * textprop.c (validate_plist, interval_has_all_properties)
27988 (interval_has_some_properties, interval_has_some_properties_list)
27989 (add_properties, text_property_list):
27990 * process.c (Fget_buffer_process, list_processes_1, status_notify):
27991 * minibuf.c (Fassoc_string):
27992 * macselect.c (x_own_selection, x_clear_frame_selections)
27993 (Fx_disown_selection_internal):
27994 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
27995 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
27996
279972007-10-17 Chong Yidong <cyd@stupidchicken.com>
27998
27999 * process.c: Link to libs for calling res_init() if available.
28000 (Fmake_network_process): Call res_init() before getaddrinfo or
28001 gethostbyname, if possible.
28002
280032007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28004
28005 * lread.c (read1): Set pvectype for char_tables.
28006
28007 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
28008 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
28009 Add type checks.
28010 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
28011
28012 * alloc.c (free_misc): Use XMISCTYPE.
28013 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
28014
280152007-10-17 Glenn Morris <rgm@gnu.org>
28016
28017 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
28018 (syms_of_minibuf): Add Qcompletion_ignore_case.
28019 * dired.c (Qcompletion_ignore_case): Change to external.
28020 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
28021 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
28022 (Fread_file_name): Use it rather than intern'ing.
28023
28024 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
28025 (Fread_coding_system): Ignore case of user input.
28026
280272007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28028
28029 * xdisp.c (handle_display_prop): Ignore display specs after
28030 replacing one when string text is being replaced.
28031 (handle_single_display_spec): Pretend as if characters with display
28032 property haven't been consumed only when buffer text is being replaced.
28033
280342007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
28035
28036 * xfns.c (Fx_create_frame, Fx_display_list):
28037 * window.c (window_fixed_size_p, enlarge_window)
28038 (shrink_window_lowest_first):
28039 * macterm.c (init_font_name_table):
28040 * macfns.c (Fx_create_frame, Fx_display_list):
28041 * lread.c (close_load_descs):
28042 * keyboard.c (read_char_x_menu_prompt):
28043 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28044 * coding.c (code_convert_region_unwind): Test the type of an object
28045 rather than just !NILP before extracting data from it.
28046
28047 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28048
28049 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28050 (XMISCANY): New macro.
28051 (XMISCTYPE): Use it.
28052 (struct Lisp_Misc_Any): New type.
28053 (union Lisp_Misc): Use it.
28054 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28055 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28056 (find_symbol_value, set_internal, default_value, Fset_default)
28057 (Fmake_variable_buffer_local, Fmake_local_variable)
28058 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28059 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28060 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28061 * alloc.c (allocate_buffer): Set the size and tag.
28062 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28063 Use XMISCANY.
28064 (die): Follow the GNU convention for error messages.
28065 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28066 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28067 tag any more.
28068 (set_buffer_internal_1):
28069 * frame.c (store_frame_param):
28070 * eval.c (specbind):
28071 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28072
28073 * doc.c (Fsnarf_documentation): Simplify.
28074
280752007-10-14 Juanma Barranquero <lekktu@gmail.com>
28076
28077 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28078 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28079
280802007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28081
28082 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28083
280842007-10-14 Juanma Barranquero <lekktu@gmail.com>
28085
28086 * eval.c (do_autoload): Don't save autoloads.
28087
28088 * data.c (Ffset): Save autoload of the function being set.
28089
280902007-10-07 John Paul Wallington <jpw@pobox.com>
28091
28092 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28093 parameter before setting up faces.
28094
280952007-10-13 Eli Zaretskii <eliz@gnu.org>
28096
28097 * ccl.c (Fregister_code_conversion_map):
28098 * keyboard.c (append_tool_bar_item): Reformat last change.
28099
28100 * lisp.h (eabs): Rename from `abs'. All callers changed.
28101
281022007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28103
28104 * buffer.c (add_overlay_mod_hooklist):
28105 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28106 * fontset.c (make_fontset):
28107 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28108 (append_tool_bar_item):
28109 * macmenu.c (grow_menu_items):
28110 * w32menu.c (grow_menu_items):
28111 * xmenu.c (grow_menu_items): Use larger_vector.
28112
281132007-10-13 Eli Zaretskii <eliz@gnu.org>
28114
28115 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28116 selected frame'' on MSDOS).
28117
281182007-10-12 Martin Rudalics <rudalics@gmx.at>
28119
28120 * frame.c (Qexplicit_name): New variable.
28121 (x_report_frame_params): Report it in parameter alist.
28122 (syms_of_frame): Intern and staticpro it.
28123
281242007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28125
28126 * macfns.c (x_create_tip_frame): Set terminal for frame.
28127
281282007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28129
28130 * frame.c (Qenvironment): Remove.
28131 (syms_of_frame) <Qenvironment>: Don't initialize.
28132 (Fdelete_frame): Don't treat the `environment' param specially.
28133 * frame.h (Qenvironment): Don't declare.
28134 * callproc.c (set_initial_environment): Don't set unused frame param.
28135
28136 * frame.c (Fframe_with_environment): Remove.
28137 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28138
28139 * lisp.h (Fframe_with_environment): Don't declare.
28140
281412007-10-10 Juanma Barranquero <lekktu@gmail.com>
28142
28143 * indent.c (indent_tabs_mode, last_known_column)
28144 (last_known_column_modified): Make static.
28145 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28146
281472007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28148
28149 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28150
281512007-10-09 Jason Rumney <jasonr@gnu.org>
28152
28153 * w32term.c (x_set_window_size): Disable code that attempts to tell
28154 Lisp code about a size change before it actually happens.
28155
281562007-10-09 Richard Stallman <rms@gnu.org>
28157
28158 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28159 return HANDLED_RETURN.
28160
281612007-10-08 Martin Rudalics <rudalics@gmx.at>
28162
28163 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28164 when there's an unread command event.
28165
28166 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28167 window autoselection act appropriately when leaving selected frame.
28168 (syms_of_frame): Initialize focus_follows_mouse.
28169 * frame.h (focus_follows_mouse): Extern it.
28170 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28171 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28172 * msdos.c (dos_rawgetc): Likewise.
28173 * w32term.c (w32_read_socket): Likewise.
28174 * xterm.c (handle_one_xevent): Likewise.
28175 * xdisp.c (syms_of_xdisp): In doc-string of
28176 mouse-autoselect-window mention focus-follows-mouse.
28177
281782007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28179
28180 * macterm.c (mac_load_query_font): Fix missing return value.
28181 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28182 Add BLOCK_INPUT.
28183
281842007-10-08 Richard Stallman <rms@gnu.org>
28185
28186 * xdisp.c (get_window_cursor_type): Implement documented behavior
28187 for cursor-in-non-selected-windows = t.
28188
281892007-10-08 Jason Rumney <jasonr@gnu.org>
28190
28191 * w32.c (w32_get_resource): Always close registry keys.
28192
281932007-10-08 Jason Rumney <jasonr@gnu.org>
28194
28195 * makefile.w32-in (LIBS): Add COMCTL32.
28196
28197 * w32fns.c (globals_of_w32fns): Init common controls.
28198
281992007-10-08 Richard Stallman <rms@gnu.org>
28200
28201 * image.c (our_memory_buffer): Rename from omfib_buffer.
28202
282032007-10-08 Richard Stallman <rms@gnu.org>
28204
28205 * buffer.c (Foverlays_at): Doc fix.
28206
282072007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28208
28209 * fns.c (Fplist_put): Preserve uneven tail data.
28210
282112007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28212
28213 * termhooks.h (enum event_kind): Remove trailing comma.
28214
28215 * frame.h (enum): Remove trailing comma.
28216
282172007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28218
28219 * w32proc.c (delete_child): Don't terminate threads of zombies.
28220
282212007-10-08 Martin Rudalics <rudalics@gmx.at>
28222
28223 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28224
28225 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28226 last-repeatable-command.
28227 (init_kboard): Initialize Vlast_repeatable_command.
28228 (command_loop_1): Set it to real_this_command unless that was
28229 bound to an input event.
28230 (mark_kboards): Mark it.
28231
282322007-10-08 Richard Stallman <rms@gnu.org>
28233
28234 * eval.c (condition-case): Doc fix.
28235
282362007-10-08 Masatake YAMATO <jet@gyve.org>
28237
28238 * xfaces.c (tty_supports_face_attributes_p): Fix code
28239 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28240 was copied and not edited.
28241
282422007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28243
28244 Add new `input-decode-map' keymap and use it for terminal
28245 escape sequences.
28246 * keyboard.h (struct kboard): Add Vinput_decode_map.
28247 Remove Vlocal_key_translation_map.
28248 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28249 (init_kboard): Init input-decode-map.
28250 Replace local-key-translation-map back with key-translation-map.
28251 (syms_of_keyboard): Declare input-decode-map.
28252 Remove local-key-translation-map. Update docstrings.
28253 (mark_kboards): Mark Vinput_decode_map.
28254 Don't mark Vlocal_key_translation_map.
28255 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28256 Replace local-key-translation-map back with key-translation-map.
28257 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28258 Bind in input-decode-map rather than function-key-map.
28259
28260 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28261 This was made redundant by the previous introduction of XSETPVECTYPE.
28262
282632007-10-09 Richard Stallman <rms@gnu.org>
28264
28265 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28266
282672007-09-29 Richard Stallman <rms@gnu.org>
28268
28269 * eval.c (internal_condition_case_2, internal_condition_case_1)
28270 (internal_condition_case): Reenable abort if x_catching_errors ()
28271 to see if that really happens and why.
28272
282732007-10-06 Andreas Schwab <schwab@suse.de>
28274
28275 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28276
282772007-10-04 Juanma Barranquero <lekktu@gmail.com>
28278
28279 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28280
282812007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28282
28283 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28284
282852007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28286
28287 * window.h (struct window):
28288 * window.c (struct save_window_data, struct saved_window):
28289 * termhooks.h (struct terminal):
28290 * process.h (struct Lisp_Process):
28291 * frame.h (struct frame):
28292 * buffer.h (struct buffer):
28293 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28294 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28295 The size field of (pseudo)vectors is now unsigned.
28296 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28297
28298 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28299 Turn `count' into an integer.
28300
28301 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28302 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28303 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28304 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28305 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28306
28307 * alloc.c (allocate_pseudovector): New fun.
28308 (ALLOCATE_PSEUDOVECTOR): New macro.
28309 (allocate_window, allocate_terminal, allocate_frame)
28310 (allocate_process): Use it.
28311 (mark_vectorlike): New function.
28312 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28313 (mark_terminals): Use it.
28314 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28315 (Fmake_byte_code): Use XSETPVECTYPE.
28316
28317 * frame.c (Fframe_parameters): Minor simplification.
28318
28319 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28320
28321 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28322
28323 * buffer.c (Fget_buffer_create, init_buffer_once):
28324 * lread.c (defsubr):
28325 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28326
28327 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28328 defined differently in the m/*.h files.
28329 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28330 (XSETPVECTYPE): New macro.
28331 (XSETPSEUDOVECTOR): Use it.
28332
28333 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28334 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28335
28336 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28337 * lread.c (defvar_per_buffer):
28338 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28339
28340 * window.c (candidate_window_p): Only consider as visible frames that
28341 are on the same terminal.
28342
28343 * m/ibms390x.h (MARKBIT): Remove unused macro.
28344
283452007-10-01 Juanma Barranquero <lekktu@gmail.com>
28346
28347 * lread.c (Fload): Fix typo in docstring.
28348
283492007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28350
28351 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28352 of a non-zero value can't yield zero.
28353
283542007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28355
28356 * term.c (term_clear_mouse_face, term_mouse_highlight)
28357 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28358
28359 * print.c (safe_debug_print): Use XHASH.
28360
28361 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28362 Lisp elements such as tags.
28363 (XHASH): New macro.
28364 (EQ): Use it.
28365 (SREF, SSET, STRING_COPYIN): Use SDATA.
28366 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28367
28368 * alloc.c (mark_terminal): Remove left-over declaration.
28369 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28370 (allocate_vectorlike): Remove type argument. Adjust callers.
28371 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28372 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28373
28374 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28375 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28376 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28377 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28378 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28379 Use them.
28380
28381 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28382 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28383 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28384
283852007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28386
28387 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28388 loaded by default.
28389
283902007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28391
28392 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28393 on this tty.
28394 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28395
28396 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28397 Update all users.
28398 (handle_one_term_event): Use Gpm_DrawPointer.
28399 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28400 Signal errors instead of returning nil. Always return nil.
28401 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28402 Make it a noop if gpm-mouse was not activated.
28403 (syms_of_term): Update names.
28404
284052007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28406
28407 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28408 (init_sys_modes): Check that gpm_tty is the current tty.
28409
28410 * alloc.c (allocate_terminal): Set the vector size to only count the
28411 lisp fields. Initialize those to nil.
28412 (mark_object): Don't treat terminals specially.
28413 (mark_terminal): Remove.
28414 (mark_terminals): Use mark_object instead.
28415
28416 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28417 the GC to the beginning.
28418
28419 * indent.h:
28420 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28421
28422 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28423
284242007-09-25 Jason Rumney <jasonr@gnu.org>
28425
28426 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28427
28428 * w32console.c (create_w32cons_output): Remove.
28429
28430 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28431
28432 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28433 (reset_sys_modes): Use reset_terminal_modes_hook.
28434
284352007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28436
28437 * eval.c (do_autoload): Don't output any message.
28438
284392007-09-24 Juri Linkov <juri@jurta.org>
28440
28441 * emacs.c (standard_args): Change priority of "--no-splash"
28442 from 40 to 3. Add "--no-desktop" with the same priority.
28443
284442007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28445
28446 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28447 and optimize the case where they are all 1.
28448
284492007-09-23 Johannes Weiner <hannes@saeurebad.de>
28450
28451 * lisp.h (abs): Define if not defined.
28452 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28453 Don't define `abs', since it's defined in lisp.h.
28454
284552007-09-22 Eli Zaretskii <eliz@gnu.org>
28456
28457 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28458 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28459 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28460 (init_tty): Use DEV_TTY instead of "/dev/tty".
28461 [WINDOWSNT]: No need to protect from NAME arg being null.
28462
284632007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28464
28465 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28466 up the tty state.
28467
284682007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28469
28470 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28471 (gpm_tty): Change its type.
28472 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28473 (gpm_tty): Change its type and initialize it.
28474 (Fterm_open_connection): Check the frame is indeed a tty.
28475 Use the new gpm_tty.
28476 (Fterm_close_connection): Use the new gpm_tty.
28477 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28478 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28479
284802007-09-21 Juanma Barranquero <lekktu@gmail.com>
28481
28482 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28483 underline_color, to draw strike-through.
28484
284852007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28486
28487 * lisp.h (allocate_terminal): Declare.
28488
28489 * window.c (candidate_window_p): Consider frames that are being placed
28490 by the user as somewhere between visible and iconified.
28491 (window_loop): Prefer windows on the current frame.
28492 (Fselect_window): Move the use of select-frame to the beginning so we
28493 can just delegate all the work (it'll call us back anyway).
28494
28495 * frame.c (Qdisplay_environment_variable):
28496 * frame.h (Qdisplay_environment_variable): Delete.
28497
28498 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28499 of the first arg, since that value may be a union.
28500
28501 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28502 parameter rather than Qdisplay_environment_variable. If all else
28503 fails, look for DISPLAY in initial-environment.
28504
285052007-09-21 Glenn Morris <rgm@gnu.org>
28506
28507 * Makefile.in (emacstool): Remove target.
28508 (lisp, shortlisp): Remove termdev.elc.
28509
285102007-09-21 Markus Triska <markus.triska@gmx.at>
28511
28512 * xterm.c (x_delete_display): Compile session management conditionally.
28513
285142007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28515
28516 * callproc.c (getenv_internal_1): New function.
28517 (getenv_internal): Use it.
28518 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28519
28520 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28521 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28522 (Fset_terminal_parameter): Work with dead terminals as well.
28523 (Fmodify_terminal_parameters): Remove.
28524
28525 * terminal.c (get_terminal): Handle terminals.
28526 Make sure the terminal returned is live.
28527 (create_terminal): Use allocate_terminal.
28528 (mark_terminals): Move to alloc.c.
28529 (delete_terminal): Use terminal->name as liveness status.
28530 NULL out fields after freeing their contents.
28531 Don't deallocate the object.
28532 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28533 rather than an int.
28534 (Fterminal_live_p): Accept non-integer arguments.
28535 (Fterminal_list): Return terminal objects rather than an ints.
28536
28537 * alloc.c (enum mem_type): New member for `terminal' objects.
28538 (allocate_terminal): New function.
28539 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28540 Handle terminals.
28541 (mark_terminal): New fun.
28542 (mark_terminals): Move from terminal.c.
28543
28544 * term.c (get_tty_terminal): Don't treat output_initial specially.
28545 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28546 (delete_tty): Use terminal->name as liveness status.
28547
28548 * termhooks.h (struct terminal): Make it into a pseudovector.
28549 Remove `deleted' replaced by checking `name's nullness.
28550
28551 * print.c (print_object): Handle terminals.
28552
28553 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28554 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28555
28556 * frame.c (make_terminal_frame):
28557 * keyboard.c (tty_read_avail_input):
28558 * w32term.c (x_delete_terminal):
28559 * xfns.c (Fx_create_frame, x_create_tip_frame):
28560 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28561
285622007-09-20 Glenn Morris <rgm@gnu.org>
28563
28564 * process.c (Fmake_network_process): Doc fix.
28565
285662007-09-19 Jason Rumney <jasonr@gnu.org>
28567
28568 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28569
285702007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28571
28572 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28573 Fix a C warning regarding variable constness.
28574
28575 * xterm.c (handle_one_xevent): Fix a C warning.
28576
285772007-09-18 Jason Rumney <jasonr@gnu.org>
28578
28579 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28580
285812007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28582
28583 * gtkutil.c (gdpy_def): New variable.
28584 (xg_initialize): Initialize gdpy_def.
28585 (xg_display_close): If no other display exists, set gdpy_def to a
28586 new connection.
28587
285882007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28589
28590 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28591 when we have no file name for the icon.
28592 (xg_tool_bar_expose_callback): Remove.
28593 (xg_create_tool_bar): Don't connect expose signal to
28594 xg_tool_bar_expose_callback.
28595 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28596
285972007-09-16 Andreas Schwab <schwab@suse.de>
28598
28599 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28600 values instead of zapping them.
28601
286022007-09-14 Glenn Morris <rgm@gnu.org>
28603
28604 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28605 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28606 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28607 scope and rename to omfib_buffer for clarity.
28608 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28609
286102007-09-14 Kenichi Handa <handa@m17n.org>
28611
28612 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28613
286142007-09-13 Jason Rumney <jasonr@gnu.org>
28615
28616 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28617
28618 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28619
28620 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28621 (mac_term_init): Call here instead, passing rif.
28622
286232007-09-13 Glenn Morris <rgm@gnu.org>
28624
28625 * s/hpux.h: No longer define `static' as nothing.
28626
286272007-09-13 Johan Bockgård <bojohan@gnu.org>
28628
28629 * callint.c (Fcall_interactively): Remove unused var `fun'.
28630
286312007-09-12 Romain Francoise <romain@orebokech.com>
28632
28633 * window.c (prefer_window_split_horizontally, display_buffer):
28634 Revert 2007-09-08 change.
28635
286362007-09-12 Glenn Morris <rgm@gnu.org>
28637
28638 * alloca.c: Remove file.
28639 * Makefile.in (alloca): Do not undef.
28640 (allocaobj, alloca.o): Remove.
28641 (otherobj): Remove allocaobj.
28642 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28643 * regex.c (C_ALLOCA): Remove all references and code that was only
28644 used when this was defined.
28645 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28646 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28647 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28648
28649 * Makefile.in (SOURCES, unlock, relock): Delete.
28650
28651 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28652 (menu_grab_callback): All uses changed.
28653
28654 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28655 (x_reply_selection_request): All uses changed.
28656
286572007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28658
28659 * lread.c (load_warn_old_style_backquotes): Change message to look
28660 better when it appears in the middle of byte-compiler messages.
28661
286622007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28663
28664 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28665
28666 * xterm.c (x_create_terminal): Add comment.
28667
28668 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28669
286702007-09-10 Richard Stallman <rms@gnu.org>
28671
28672 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28673
286742007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28675
28676 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28677 (DEFUN): Document `intspec', use it instead of `prompt'.
28678
28679 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28680
28681 * data.c (Finteractive_form): If the interactive specification starts
28682 with a `(', use it as a Lisp form.
28683
28684 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28685 name and file modes.
28686
28687 * callint.c (Fcall_interactively): Comment fixes.
28688
286892007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28690
28691 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28692 and compiled functions.
28693
286942007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28695
28696 * window.c (prefer_window_split_horizontally): New variable.
28697 (display_buffer): Consider splitting window horizontally depending
28698 on prefer_window_split_horizontally.
28699
287002007-09-08 Eli Zaretskii <eliz@gnu.org>
28701
28702 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28703
287042007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28705
28706 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28707
28708 * frame.c (x_set_frame_parameters): Check number is positive before
28709 using XFASTINT.
28710
28711 * window.c (freeze_window_start): Don't presume selected_window holds
28712 a window object.
28713 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28714
287152007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28716
28717 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28718
287192007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28720
28721 * window.c (Vsplit_window_preferred_function): New var.
28722 (Fdisplay_buffer): Use it.
28723 (syms_of_window): Export, and initialize it.
28724
287252007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28726
28727 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28728
287292007-09-06 Glenn Morris <rgm@gnu.org>
28730
28731 * gtkutil.c (menu_grab_callback) <cnt>:
28732 * xselect.c (x_reply_selection_request) <cnt>: Move static
28733 variable to file scope.
28734
287352007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28736
28737 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28738 consistent values of selected_frame and selected_window.
28739
287402007-09-04 Jason Rumney <jasonr@gnu.org>
28741
28742 * w32console.c (initialize_w32_display): Zero unused hooks.
28743
287442007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28745
28746 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28747 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28748
287492007-09-04 Jason Rumney <jasonr@gnu.org>
28750
28751 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28752 in w32console.c. Set up input. Remove XXX comments that have been
28753 confirmed as correct.
28754
28755 * s/ms-w32.h (MULTI_KBOARD): Define.
28756
28757 * w32console.c (one_and_only_w32cons): Remove.
28758 (initialize_w32_display): Take terminal argument.
28759
28760 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28761 initialize_w32_display.
28762 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28763
28764 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28765
28766 * keyboard.c (discard_mouse_events): Discard it.
28767 (make_lispy_event): Translate it to a lisp event.
28768 (lispy_wheel_names): Add wheel-left and right events.
28769 (syms_of_keyboard): Enlarge wheel_syms.
28770
28771 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28772 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28773
28774 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28775
28776 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28777 from WM_MOUSEHWHEEL.
28778 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28779
28780 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28781 terminal.
28782
28783 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28784 keyboard for the terminal.
28785
287862007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28787
28788 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28789 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28790 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28791 and resume-tty-function to resume-tty-hook.
28792 (Fsuspend_tty, Fresume_tty): Use new names.
28793
287942007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28795
28796 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28797 if it starts with "n:".
28798
287992007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28800
28801 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28802
288032007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28804
28805 * frame.h:
28806 * frame.c (Qterm_environment_variable): Remove.
28807 (syms_of_frame): Don't init and staticpro it.
28808
28809 * callproc.c (getenv_internal): Remove special case for $TERM.
28810
28811 * callproc.c (Vinitial_environment): New variable.
28812 (set_initial_environment): Initialize it.
28813 (syms_of_callproc): Declare it.
28814 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28815 TERM under which a process runs is never related to the TERM in which
28816 Emacs is running.
28817
288182007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28819
28820 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28821 * s/darwin.h: ... do it here.
28822
288232007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28824
28825 * lisp.h (set_initial_environment): Rename from set_global_environment.
28826
28827 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28828 removed by mistake on the multi-tty branch.
28829
28830 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28831 (Fmodify_frame_parameters): Return a value.
28832
28833 * image.c (png_load): Comment-out var only used in commented-out code.
28834
28835 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28836 before passing it to mark_object.
28837
28838 * xfaces.c (internal_resolve_face_name): Return a value.
28839 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28840
28841 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28842 (x_icon): Comment-out var only used in commented-out code.
28843
288442007-08-29 Romain Francoise <romain@orebokech.com>
28845
28846 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28847 QUIT hasn't been provided.
28848
288492007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28850
28851 * callproc.c (child_setup, getenv_internal): Use the
28852 display-environment-variable and term-environment-variable frame params.
28853 (set_initial_environment): Initialise Vprocess_environment.
28854
28855 * config.in: Disable multi-keyboard support on a mac.
28856
28857 * frame.c (Qterm_environment_variable)
28858 (Qdisplay_environment_variable): New variables.
28859 (syms_of_frame): Intern and staticpro them.
28860 (Fmake_terminal_frame): Disable output method test.
28861
28862 * frame.h: Declare them here.
28863
28864 * macfns.c (x_set_mouse_color): Get rif from the frame.
28865 (x_set_tool_bar_lines): Don't use updating_frame.
28866 (mac_window): Add 2 new parameters for consistency with other systems.
28867 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28868 frame parameters following what is done in X11 and w32. Don't use
28869 FRAME_MAC_DISPLAY_INFO.
28870 (Fx_open_connection, start_hourglass): Remove window-system check.
28871 (x_create_tip_frame): Get the keyboard from the terminal.
28872
28873 * macmenu.c: Reorder includes.
28874 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28875
28876 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28877 terminal parameter.
28878 (x_clear_frame): Add a frame parameter.
28879 (note_mouse_movement): Get rif from the frame.
28880 (mac_term_init): Initialize the terminal.
28881 (mac_initialize): Make static and move terminal initialization ...
28882 (mac_create_terminal): ... to this new function.
28883
28884 * macterm.h (struct mac_display_info): Add terminal.
28885 (mac_initialize): Delete declaration.
28886
28887 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28888
28889 * sysdep.c: Comment out text after #endif.
28890
28891 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28892 is defined. Better initialize ttys in windows. Use terminal
28893 specific mouse_position_hook.
28894
28895 * termhooks.h (union display_info): Add mac_display_info.
28896
28897 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28898 Set the default minibuffer frame, window_system and the rest of the
28899 frame parameters following what is done in X11.
28900
28901 * w32term.c (w32_initialize): Make static.
28902
28903 * xselect.c (x_handle_selection_clear): Only access
28904 terminal->kboard when MULTI_KBOARD is defined.
28905
28906 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28907 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28908
289092007-08-29 Jason Rumney <jasonr@gnu.org>
28910
28911 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28912 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28913
28914 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28915 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28916
28917 * keyboard.c (restore_kboard_configuration): Only define when
28918 MULTI_KBOARD defined.
28919
28920 * makefile.w32-in: Update dependancies from Makefile.in.
28921 (OBJ1): Add terminal.$(O)
28922
28923 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28924 Don't define function body.
28925 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28926
28927 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28928
28929 * w32.c (request_sigio, unrequest_sigio): Remove.
28930
28931 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28932 (w32con_clear_frame, w32con_clear_end_of_line)
28933 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28934 (w32con_delete_glyphs, w32con_set_terminal_window)
28935 (scroll_line, w32_sys_ring_bell): Add frame arg.
28936 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28937 Add terminal arg.
28938 (PICK_FRAME): Remove.
28939 (w32con_write_glyphs): Use frame specific terminal coding.
28940 (one_and_only_w32cons): New global variable.
28941 (initialize_w32_display): Use it for storing hooks.
28942 (create_w32cons_output): New function.
28943
28944 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28945 arg a frame.
28946
28947 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28948 Set window_system.
28949 (x_set_tool_bar_lines): Don't use updating_frame.
28950 (Fx_create_frame): Set terminal and ref count.
28951 (Fx_open_connection): Remove window-system check.
28952
28953 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28954
28955 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28956 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28957 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28958 Add frame arg.
28959 (x_delete_terminal, w32_create_terminal): New functions.
28960 (w32_term_init): Create a terminal.
28961 (w32_initialize): Move terminal specific initialization to
28962 w32_create_terminal.
28963
28964 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28965 (w32_clear_rect, w32_clear_area): Use background from frame.
28966 (w32_display_info): Add terminal.
28967 (w32_sys_ring_bell, x_delete_display): Declare here.
28968
28969 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28970
28971 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28972
289732007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28974
28975 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28976 Fix get_named_tty calls for the controlling tty.
28977
289782007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
28979
194d44e7 28980 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
28981
289822007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
28983
28984 * term.c (tty_insert_glyphs): Add missing first parameter.
28985
289862007-08-29 Károly Lőrentey <karoly@lorentey.hu>
28987
28988 * buffer.c (Fbuffer_list, Fbury_buffer):
28989 Take frame->buried_buffer_list into account.
28990
28991 * cm.c (current_tty): New variable, for cmputc().
28992 (cmputc): Use it.
28993 (cmcheckmagic): Add tty parameter, look up terminal streams there.
28994 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
28995 (cmgoto): Add tty parameter. Pass it on to calccost().
28996 Use emacs_tputs() instead of tputs().
28997
28998 * cm.h (emacs_tputs): New macro to set current_tty, and then call
28999 tputs().
29000 (current_tty): New variable, for cmputc().
29001 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
29002
29003 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
29004 (internal_condition_case, internal_condition_case_1)
29005 (internal_condition_case_2): Don't abort when x_catching_errors.
29006
29007 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
29008 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
29009 prevent crashes caused by bogus longjmps in read_char.
29010
29011 * keymap.h (Fset_keymap_parent): Add EXFUN.
29012
29013 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
29014 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29015 Remove redundant definition.
29016
29017 * macfns.c (x_set_mouse_color, x_make_gc):
29018 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29019
29020 * w32term.c (x_free_frame_resources):
29021 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29022 (w32_initialize): Use the accessor macros for terminal characteristics.
29023
29024 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
29025 Use the accessor macros for terminal characteristics.
29026 * msdos.c (internal_terminal_init): Use the accessor macros for
29027 terminal characteristics.
29028 (ScreenVisualBell, internal_terminal_init):
29029 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29030
29031 * termopts.h (no_redraw_on_reenter): Declare.
29032
29033 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
29034 (mark_terminals, mark_ttys): Declare.
29035 (Fgarbage_collect): Call them.
29036 (mark_object): Mark buried_buffer_list.
29037
29038 * prefix-args.c: Include stdlib.h for exit.
29039
29040 * syssignal.h: Add comment.
29041
29042 * indent.c: Include stdio.h.
29043
29044 * window.h (Vinitial_window_system): Declare.
29045 (Vwindow_system): Delete declaration.
29046
29047 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29048
29049 * image.c (lookup_image): Don't initialize `c' until the xasserts
29050 have been run.
29051
29052 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29053 FRAME_FOREGROUND_PIXEL.
29054
29055 * print.c (print_preprocess): Don't lose print_depth levels while
29056 iterating.
29057
29058 * widget.c (update_from_various_frame_slots):
29059 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29060
29061 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29062 frames.
29063 (window_internal_height): Remove bogus make_number call.
29064 (init_window_once): Call make_terminal_frame with two zero parameters.
29065
29066 * fileio.c (Fread_file_name): Update comment.
29067
29068 * callint.c (Fcall_interactively):
29069 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29070 Make sure it is correctly unwound.
29071
29072 * xsmfns.c (x_session_close): New function.
29073
29074 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29075 Delete declarations.
29076
29077 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29078 (x_output): Remove background_pixel and foreground_pixel fields.
29079 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29080 (x_delete_device, x_session_close): Declare.
29081
29082 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29083 (read_filtered_event): Call `read_char' with a local
29084 `wrong_kboard_jmpbuf'.
29085
29086 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29087 Don't call single_kboard_state. Use FRAME_RIF.
29088
29089 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29090 systems.
29091
29092 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29093 (Fframe_with_environment, Fset_input_meta_mode)
29094 (Fset_quit_char): EXFUN.
29095 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29096 (init_sys_modes, reset_sys_modes): Update prototypes.
29097 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29098
29099 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29100 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29101 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29102 Delete declarations.
29103 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29104 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29105 New declarations.
29106
29107 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29108 already does that during init_display(). Call syms_of_keymap
29109 before syms_of_keyboard. Call `syms_of_terminal'.
29110 Call set_initial_environment, not set_process_environment.
29111 (shut_down_emacs): Call reset_all_sys_modes() instead of
29112 reset_sys_modes().
29113
29114 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29115 (internal_resolve_face_name, resolve_face_name_error): New functions.
29116 (resolve_face_name): Protect against loops and errors thrown by Fget.
29117 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29118 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29119
29120 * scroll.c: Replace CURTTY() with local variables throughout the
29121 file (where applicable).
29122 (calculate_scrolling, calculate_direct_scrolling)
29123 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29124 characteristics.
29125
29126 * keymap.c (Vfunction_key_map): Remove.
29127 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29128 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29129 (Vkey_translation_map): Remove.
29130 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29131 (Fdescribe_buffer_bindings)
29132 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29133 Update for terminal-local key-translation-map.
29134
29135 * Makefile.in (callproc.o): Update dependencies.
29136 (lisp, shortlisp): Add termdev.elc.
29137 (obj): Add terminal.o.
29138 (terminal.o): Add dependencies.
29139 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29140 (data.o, fns.o): Add termhooks.h dependency.
29141 (SOME_MACHINE_LISP): Add dnd.elc.
29142 (minibuf.o): Fix typo.
29143 Update dependencies.
29144
29145 * data.c (do_symval_forwarding, store_symval_forwarding)
29146 (find_symbol_value): Use the selected frame's keyboard, not
29147 current_kboard.
29148
29149 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29150 Vwindow_system.
29151
29152 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29153 Fmenu_bar_open.
29154 (syms_of_xmenu): Update defsubr.
29155 (mouse_position_for_popup, Fx_popup_menu)
29156 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29157 (set_frame_menubar, free_frame_menubar)
b97439ce 29158 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
29159 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29160 an X frame.
29161
29162 * xselect.c (x_own_selection): Abort if not an X frame.
29163 (some_frame_on_display): Check if it is an X frame.
29164 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29165
29166 * coding.c: Include frame.h and termhooks.h.
29167 (terminal_coding, keyboard_coding): Delete.
29168 (Fset_terminal_coding_system_internal)
29169 (Fset_keyboard_coding_system_internal)
29170 (Fkeyboard_coding_system)
29171 (Fterminal_coding_system): Add a terminal parameter.
29172 Get terminal_coding from the terminal.
29173 (init_coding_once): Don't call setup_coding_system here.
29174
29175 * dispextern.h (set_scroll_region, turn_off_insert)
29176 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29177 (tty_clear_end_of_line, tty_setup_colors)
29178 (delete_tty, updating_frame)
29179 (produce_special_glyphs, produce_glyphs, write_glyphs)
29180 (insert_glyphs): Remove.
29181 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29182 (tty_turn_off_highlight, get_tty_size): Add declaration.
29183 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29184
29185 * frame.h (enum output_method): Add output_initial.
29186 (struct x_output): Delete.
29187 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29188 Access foreground_pixel and background_pixel directly from the frame.
29189 (tty_display): Delete.
29190 (struct frame): Add buried_buffer_list, foreground_pixel,
29191 background_pixel and terminal. Delete kboard.
29192 (union output_data): Add tty.
29193 (FRAME_KBOARD): Get the kboard from the terminal.
29194 (FRAME_INITIAL_P): New macro.
29195 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29196 (Qterm_environment_variable, Qdisplay_environment_variable)
29197 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29198 New declarations.
29199
29200 * termchar.h (tty_output, tty_display_info): New structures.
29201 (tty_list): Declare.
29202 (FRAME_TTY, CURTTY): New macros.
29203 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29204 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29205 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29206 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29207
29208 * callproc.c: Include frame.h and termhooks.h, for terminal
29209 parameters.
29210 (add_env): New function.
29211 (child_setup): Use it.
29212 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29213 (getenv_internal): Fix get_terminal_param call.
29214 (Fgetenv_internal, egetenv): Update doc.
29215 (syms_of_callproc): Initialize Vprocess_environment to nil.
29216 Register and initialize them. Remove obsolete defvars. Update doc
29217 strings.
29218 (child_setup): Handle Vlocal_environment_variables.
29219 (getenv_internal): Add terminal parameter.
29220 Handle Vlocal_environment_variables.
29221 (Fgetenv_internal): Add terminal parameter.
29222 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29223 environment in a frame (not terminal) parameter. Update doc strings.
29224 (set_initial_environment): Rename from set_global_environment.
29225 Store Emacs environment in initial frame parameter.
29226
29227 * xdisp.c (redisplay_internal): Update references to
29228 `previous_terminal_frame'.
29229 (display_mode_line, Fformat_mode_line): Replace calls to
29230 `push_frame_kboard' with `push_kboard'.
29231 (get_glyph_string_clip_rects): Add extra parentheses and
29232 braces to prevent compiler warnings.
29233 (calc_pixel_width_or_height): Add xassert to check that the
29234 frame is alive. Don't call `lookup_image' on a termcap frame.
29235 (message2_nolog, message3_nolog, redisplay_internal)
29236 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29237 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29238 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29239 (Fx_display_pixel_width, Fx_display_pixel_height)
29240 (Fx_display_planes, Fx_display_color_cells)
29241 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29242 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29243 (Fx_display_backing_store, Fx_display_visual_class)
29244 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29245 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29246
29247 * xfns.c (x_set_foreground_color x_set_background_color)
29248 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29249 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29250 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29251 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29252 terminal that is being deleted.
29253 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29254 frame parameter, and make sure it overrides any user-supplied setting.
29255 (Fx_close_connection, Fx_synchronize): Unify argument names with
29256 the rest of the DEFUNs.
29257
29258 * dispnew.c (Fsend_string_to_terminal): Update call to
29259 `get_tty_terminal'.
29260 (Fredraw_frame, Fsend_string_to_terminal)
29261 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29262 FRAME_TERMCAP_P and FRAME_TTY.
29263 (window_change_signal): Don't believe width/height values that are
29264 impossibly small.
29265 (Vinitial_window_system): Rename from Vwindow_system.
29266 (termscript, Wcm, rif): Delete.
29267
29268 * termhooks.h (struct terminal): New struct containing the
29269 previously global text display hooks and new members NAME,
29270 DELETED and PARAM_ALIST.
29271 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29272 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29273 (FRAME_RIF): New macros.
29274 (get_terminal_param, get_device): New declarations.
29275 (termscript): Delete declaration.
29276
29277 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29278 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29279 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29280 FRAME_FOREGROUND_PIXEL.
29281 (x_fully_uncatch_errors): Disable definition.
29282 (x_scroll_bar_expose): Fix reference to foreground pixel.
29283 (XTread_socket): Disable loop on all X displays.
29284 (x_delete_terminal): Don't set terminal->deleted and let
29285 delete_terminal delete the frames on the terminal.
29286 (x_delete_display): Doc update to reflect changes in
29287 delete_terminal.
29288 (x_display_info) <terminal>: Move member earlier in the struct.
29289 (deleting_tty): Remove old variable.
29290 (Fsuspend_tty): Call clear_tty_hooks.
29291 (Fresume_tty, init_tty): Call set_tty_hooks.
29292 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29293 errors on X frames.
29294 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29295 (handle_one_xevent): Initialize `f' to NULL.
29296 (x_delete_terminal, x_create_terminal): New functions.
29297 (XTset_terminal_modes, XTreset_terminal_modes)
29298 (XTread_socket, x_connection_closed, x_term_init)
29299 (x_term_init, x_delete_display): Add terminal parameter.
29300 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29301 X connections.
29302
29303 * frame.c: Include termchar.h.
29304 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29305 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29306 (Qdisplay_environment_variable): New vars.
29307 (Fframep): Deal with output_initial.
29308 (Fframe-live-p): Doc fix.
29309 (Fwindow-system): New function.
29310 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29311 (make_terminal_frame): Don't create frames on a terminal that is
29312 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29313 (store_frame_param): Check for found_for_frame before calling XFRAME.
29314 (Fmake_terminal_frame): Handle NULL tty names correctly.
29315 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29316 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29317 frames to refer to a deleted frame in their 'environment parameter.
29318 (Fframe_with_environment): New function.
29319 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29320 (get_future_frame_param): New function.
29321 (Fmake_terminal_frame): Use it.
29322 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29323
29324 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29325 * sysdep.c (reset_sys_modes): Update for renames.
29326
29327 * keyboard.c (tty_read_avail_input): New function.
29328 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29329 (syms_of_keyboard): Defsubr them.
29330 (Fset_input_meta_mode, Fset_quit_char): New functions.
29331 (Fset_input_mode): Split to above functions.
29332 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29333 parameter. Use it in call to `read_char'.
29334 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29335 Set wrong_kboard_jmpbuf correctly in recursive calls.
29336 Use current_kboard to access Vkeyboard_translate_table.
29337 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29338 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29339 Update longjmp invocations. Remember the original current_kboard,
29340 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29341 changes it. Comment out unnecessary calls to
29342 `record_single_kboard_state' and `any_kboard_state'.
29343 Update recursive calls.
29344 (wrong_kboard_jmpbuf): Remove global variable.
29345 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29346 Handle deleted interrupted_kboards correctly; that is a legal
29347 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29348 and read_char calls. Abort if interrupted_kboard died in read_char.
29349 (any_kboard_state, single_kboard_state)
29350 (push_frame_kboard): Remove function.
29351 (pop_kboard): Switch out of single_kboard mode if the kboard has
29352 been deleted. Remove unused variable. Help debugging by not
29353 changing current_kboard unnecessarily. Set current_kboard to the
29354 kboard of the selected frame when the stored kboard object has
29355 been deleted before pop_kboard.
29356 (temporarily_switch_to_single_kboard): Change first parameter to a
29357 frame pointer. Throw an error when caller wants to change kboards
29358 while in single_kboard mode. Don't push_kboard if we weren't in
29359 single kboard state. Don't pop_kboard if we popped into any
29360 kboard state.
29361 (restore_kboard_configuration): Abort if pop_kboard changed the
29362 kboard in single_kboard mode. Call pop_kboard only after setting
29363 up single_kboard mode.
29364 (Frecursive_edit): Switch to single_kboard mode only in nested
29365 command loops.
29366 (cmd_error, command_loop, command_loop_1, timer_check):
29367 Comment out unnecessary call to `any_kboard_state' and
29368 `record_single_kboard_state'.
29369 (delete_kboard): Exit single_kboard mode if we have just deleted
29370 that kboard. Use FRAME_KBOARD.
29371 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29372 `fatal_error_signal'.
29373 (record_single_kboard_state): Don't push_kboard if we weren't in
29374 single kboard state. Don't pop_kboard if we popped into any
29375 kboard state.
29376 (push_frame_kboard): Rename to push_kboard.
29377 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29378 (read_avail_input): Read input from all terminals.
29379 (mark_kboards): Also mark Vkeyboard_translate_table.
29380 (kbd_buffer_store_event_hold): Simplify condition.
29381 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29382 (Vkeyboard_translate_table): Move to struct kboard.
29383 (init_kboard): Initialize Vkeyboard_translate_table.
29384 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29385 Vkeyboard_translate_table. Update doc strings. Update docs of
29386 local-function-key-map and function-key-map.
29387
29388 * terminal.c: New file.
29389
29390 * term.c: Include errno.h.
29391 (Vring_bell_function, device_list, initial_device)
29392 (next_device_id, ring_bell, update_begin, update_end)
29393 (set_terminal_window, cursor_to, raw_cursor_to)
29394 (clear_to_end, clear_frame, clear_end_of_line)
29395 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29396 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29397 (syms_of_term): Move their initialization to terminal.c.
29398 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29399 (Ftty_display_color_cells)
29400 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29401 (clear_tty_hooks, set_tty_hooks)
29402 (init_tty, maybe_fatal): New functions.
29403 (Ftty_type): Return nil if terminal is not on a tty instead of
29404 throwing an error. Doc update.
29405 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29406 Doc update. Initialize new subrs and variables.
29407 (delete_tty): Use terminal->deleted.
29408 (tty_set_terminal_modes): Rename from set_terminal_modes.
29409 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29410 (set_scroll_region): Rename to `tty_set_scroll_region'.
29411 (turn_on_insert): Rename to `tty_turn_on_insert'.
29412 (turn_off_insert): Rename to `tty_turn_off_insert'.
29413 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29414 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29415 (toggle_highligh): Rename to `tty_toggle_highlight'.
29416 (background_highlight): Rename to `tty_background_highlight'.
29417 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29418 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29419 (tty_set_scroll_region, tty_background_highlight)
29420 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29421 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29422 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29423 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29424 Add static modifier.
29425 (tty_reset_terminal_modes, tty_set_terminal_window)
29426 (tty_set_scroll_region, tty_background_highlight)
29427 (tty_highlight_if_desired, tty_cursor_to)
29428 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29429 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29430 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29431 renames.
29432
294332007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29434
29435 * keyboard.c: Qrtl is new.
29436 (parse_tool_bar_item): Handle :rtl keyword.
29437 (syms_of_keyboard): Intern :rtl keyword.
29438
29439 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29440
29441 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29442 so no Lisp code is executed.
29443 (file_for_image, find_rtl_image): New functions.
29444 (xg_get_image_for_pixmap): Use file_for_image.
29445 (update_frame_tool_bar): If direction is RTL, use RTL image if
29446 defined. Use Gtk stock images if defined.
29447
294482007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29449
29450 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29451 for nonexistent or zero-width glyph in composition glyph.
29452
294532007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29454
29455 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29456
29457 * xdisp.c (Finvisible_p): New function.
29458 (syms_of_xdisp): defsubr it.
29459
294602007-08-24 Juanma Barranquero <lekktu@gmail.com>
29461
29462 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29463 Doc fixes.
29464
294652007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29466
29467 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29468
294692007-08-24 Martin Rudalics <rudalics@gmx.at>
29470
29471 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29472 whether decoding has modified buffer contents.
29473
294742007-08-24 Jason Rumney <jasonr@gnu.org>
29475
29476 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29477 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29478 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29479 (init_svg_functions) [HAVE_NTGUI]: New function.
29480 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29481 (svg_load_image): Use them.
29482 (svg_load_image) [HAVE_NTGUI]: Implement background.
29483
294842007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29485
29486 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29487 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29488 (LIBX): Remove @RSVG_LIBS@.
29489 (LIBES): Add $(RSVG_LIBS).
29490
29491 * image.c (svg_load_image): Blend with specified background if exists.
29492 Use IMAGE_BACKGROUND. Add Mac OS Support.
29493
29494 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29495 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29496 Remove macros.
29497 [MAC_OSX] (socket_callback): Do nothing.
29498 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29499 ReceiveNextEvent.
29500 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29501 socket_callback.
29502 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29503
295042007-08-22 Glenn Morris <rgm@gnu.org>
29505
29506 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29507
295082007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29509
29510 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29511
29512 * image.c: Add support for SVG images. Some additional comments
29513 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29514 (svg_image_p): New function to test for SVG image.
29515 (svg_load): New function to load SVG image.
29516 (svg_load_image): New function, helper for svg_load.
29517 (Qsvg): New Lisp_object.
29518 (svg_keyword_index): New enum.
29519 (svg_format): New static `image_keyword' struct.
29520 (svg_type): New static `image_type' struct.
29521 (librsvg/rsvg.h): Include it.
29522
295232007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29524
29525 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29526
295272007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29528
29529 * lread.c (Qold_style_backquotes): New var.
29530 (syms_of_lread): Init and staticpro it.
29531 (load_warn_old_style_backquotes): New fun.
29532 (Fload): Use them to warn about old style backquotes.
29533 (end_of_file_error, Fload): Remove unused vars.
29534
29535 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29536
29537 * lread.c (Vold_style_backquotes): New var.
29538 (syms_of_lread): Init and export it to Elisp.
29539 (read1): Set it when we find an old-style (back)quote.
29540
295412007-08-22 Jason Rumney <jasonr@gnu.org>
29542
29543 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29544
295452007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29546
29547 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29548
295492007-08-19 Richard Stallman <rms@gnu.org>
29550
29551 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29552
295532007-08-19 Andreas Schwab <schwab@suse.de>
29554
29555 * alloc.c (pure): Round PURESIZE up.
29556
295572007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29558
29559 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29560 active frame.
29561
295622007-08-16 Richard Stallman <rms@gnu.org>
29563
29564 * eval.c (Fcommandp): Add parens to clarify.
29565
29566 * minibuf.c (Fall_completions): Use enum for type of table.
29567
29568 * emacs.c (USAGE2): Improve text.
29569
295702007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29571
29572 * term.c (tty_default_color_capabilities): Declare static
29573 variables in file scope, to avoid HPUX compiler problem.
29574
295752007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29576
29577 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29578 to gtk_toolbar_insert.
29579
295802007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29581
29582 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29583
29584 * insdel.c (reset_var_on_error): New fun.
29585 (signal_before_change, signal_after_change):
29586 Use it to reset (after|before)-change-functions to nil in case of error.
29587 Bind inhibit-modification-hooks to t.
29588 Don't bind (after|before)-change-functions to nil while they run.
29589
295902007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29591
29592 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29593 filling pixmap with stippled background.
29594
295952007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29596
29597 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29598 Don't use invisible frame as parent window for repositioning.
29599
296002007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29601
29602 * print.c (new_backquote_output): Rename from old_backquote_output.
29603 (print): Inverse its logic (according to its name) so as to match the
29604 behavior of new_backquote_flag in lread.c.
29605
296062007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29607
29608 * gmalloc.c (posix_memalign): New function.
29609
29610 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29611 ActivateControl/DeactivateControl here.
29612 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29613 frame-notice-user-settings is non-nil.
29614 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29615 for kEventParamFMFontStyle.
29616 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29617 mac_pass_command_to_system and mac_pass_control_to_system here.
29618 (XTread_socket): Call ActivateControl/DeactivateControl here.
29619 (XTread_socket) [TARGET_API_MAC_CARBON]:
29620 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29621 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29622 for window repositioning.
29623
296242007-08-08 Glenn Morris <rgm@gnu.org>
29625
29626 * Replace `iff' in doc-strings and comments.
29627
296282007-08-07 Chong Yidong <cyd@stupidchicken.com>
29629
29630 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29631
296322007-08-07 Martin Rudalics <rudalics@gmx.at>
29633
29634 * fileio.c (Finsert_file_contents): Run format-decode and
29635 after_insert_file_functions on entire buffer when REPLACE is
29636 non-nil and inhibit modification_hooks and point_motion_hooks.
29637 For consistency, run after_insert_file_functions iff something
29638 got inserted. Move signal_after_change and update_compositions
29639 after code running after_insert_file_functions. Make sure that
29640 undo_list doesn't record intermediate steps of the decoding process.
29641
296422007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29643
29644 * emacs.c (main)
29645 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29646 Call malloc_enable_thread on interactive startup.
29647
29648 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29649 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29650 [USE_PTHREAD]: Conditionalize with it.
29651 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29652 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29653 New functions.
29654
296552007-08-06 Chong Yidong <cyd@stupidchicken.com>
29656
29657 * xdisp.c (redisplay_window): When restoring original buffer
29658 position, make sure it is still valid.
29659
29660 * image.c (png_load): Ignore png-supplied background color.
29661
296622007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29663
29664 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29665 Use kCFAbsoluteTimeIntervalSince1970.
29666
29667 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29668 New variable.
29669 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29670 event loop should be quit.
29671 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29672 Quit dialog event loop if quit_dialog_event_loop is set.
29673
29674 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29675 (Selection): New typedef. Use instead of ScrapRef.
29676 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29677 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29678 (mac_clear_selection): Rename from clear_scrap.
29679 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29680 scrap_has_target_type. All uses changed.
29681 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29682 (mac_selection_has_target_p): New functions.
29683 (mac_put_selection_value): Rename from put_scrap_string.
29684 (mac_get_selection_value): Rename from get_scrap_string.
29685 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29686 (put_scrap_private_timestamp, scrap_has_target_type)
29687 (get_scrap_private_timestamp): Remove functions.
29688 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29689 (x_own_selection, x_get_local_selection):
29690 Use mac_valid_selection_value_p.
29691 (x_own_selection): Don't use put_scrap_private_timestamp.
29692 Record OWNERSHIP-INFO into Vselection_alist instead.
29693 (x_get_local_selection): Don't check type if request is local.
29694 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29695 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29696
296972007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29698
29699 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29700 add comment explaining why.
29701
297022007-08-03 Richard Stallman <rms@gnu.org>
29703
29704 * fileio.c (Fvisited_file_modtime): Use make_time.
29705
297062007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29707
29708 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29709 build.
29710
297112007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29712
29713 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29714
297152007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29716
29717 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29718
297192007-07-30 Richard Stallman <rms@gnu.org>
29720
29721 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29722
297232007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29724
29725 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29726
297272007-07-28 Nick Roberts <nickrob@snap.net.nz>
29728
29729 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29730 remote default-directory.
29731
29732 * buffer.c (mode-line-format): Update doc string.
29733
297342007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29735
29736 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29737 scroll bar gap.
29738 (x_scroll_bar_create): Set bar->fringe_extended_p.
29739 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29740 on frame edge. Check fringe background extension. Don't clear
29741 extended fringe background area.
29742
29743 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29744 (w32_fill_area): Enclose multiple statements with do ... while (0).
29745
29746 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29747 Extend fringe background to scroll bar gap.
29748 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29749 Set bar->fringe_extended_p.
29750 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29751 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29752 background extension. Don't clear extended fringe background area.
29753
29754 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29755 New member fringe_extended_p.
29756
297572007-07-25 Glenn Morris <rgm@gnu.org>
29758
29759 * Relicense all FSF files to GPLv3 or later.
29760
29761 * COPYING: Switch to GPLv3.
29762
297632007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29764
29765 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29766
29767 * data.c (Finteractive_form): Check for the presence of an
29768 `interactive-form' symbol property more thoroughly.
29769
29770 * data.c (Finteractive_form): Use an `interactive-form' property if
29771 present, analogous to the function-documentation property.
29772
297732007-07-24 Jason Rumney <jasonr@gnu.org>
29774
29775 * w32fns.c (x_real_positions): Get real position from OS instead of
29776 calculating it.
29777
297782007-07-23 Jason Rumney <jasonr@gnu.org>
29779
29780 * filelock.c (current_lock_owner): Allow for @ sign in username.
29781
297822007-07-22 Nick Roberts <nickrob@snap.net.nz>
29783
29784 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29785 remote default-directory.
29786
29787 * buffer.c (mode-line-format): Describe above case in doc string.
29788
297892007-07-20 Eli Zaretskii <eliz@gnu.org>
29790
29791 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29792 Define if not defined.
29793
297942007-07-18 Jason Rumney <jasonr@gnu.org>
29795
29796 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29797
297982007-07-18 Richard Stallman <rms@gnu.org>
29799
29800 * data.c (Fsetq_default): Doc fix.
29801
29802 * eval.c (Fsetq): Doc fix.
29803
298042007-07-18 Juanma Barranquero <lekktu@gmail.com>
29805
29806 * coding.c (Ffind_operation_coding_system):
29807 * eval.c (For, Fand): Doc fixes.
29808 Reported by Johan Bockgård.
29809
298102007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29811
29812 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29813
29814 * xterm.h: Declare x_ewmh_activate_frame.
29815
29816 * xterm.c (x_ewmh_activate_frame): New function.
29817 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29818
298192007-07-17 Martin Rudalics <rudalics@gmx.at>
29820
29821 * window.c (Fdisplay_buffer): If largest or LRU window is the
29822 only window, split it even if it is not eligible for splitting.
29823 This restores the original behavior broken by the 2007-07-15
29824 change.
29825
298262007-07-17 Glenn Morris <rgm@gnu.org>
29827
29828 * abbrev.c (abbrev_check_chars): New function.
29829 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29830 Call abbrev_check_chars to check abbrev characters are word
29831 constituents. Doc fix.
29832
298332007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29834
29835 * process.c (Fstart_process, Fmake_network_process)
29836 (read_process_output): Fix up last changes.
29837
298382007-07-16 Eli Zaretskii <eliz@gnu.org>
29839
29840 * makefile.w32-in (clean): Don't delete *~.
29841
298422007-07-16 Andreas Schwab <schwab@suse.de>
29843
29844 * window.c (Fdisplay_buffer): Use NILP.
29845 (Fset_window_scroll_bars): Likewise.
29846
298472007-07-15 Martin Rudalics <rudalics@gmx.at>
29848
29849 * window.c (window_min_size_2): New function.
29850 (window_min_size_1, size_window, Fdisplay_buffer)
29851 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29852 windows without mode- or header-lines when window-min-height is
29853 too small.
29854 (size_window): Reset nodelete_p after testing it, following an
29855 earlier note by Kim F. Storm.
29856 (display_buffer): Do not set split_height_threshold to twice the
29857 value of window_min_height to avoid changing the value of a
29858 customizable variable. Rather explicitly check whether the
29859 height of the window that shall be splitted is at least as large
29860 as split_height_threshold.
29861 (Fwindow_full_width_p): New defun.
29862 (syms_of_window): Defsubr it.
29863
29864 * window.h: Add EXFUN for Fwindow_full_width_p.
29865
298662007-07-14 Jason Rumney <jasonr@gnu.org>
29867
29868 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29869
298702007-07-14 Richard Stallman <rms@gnu.org>
29871
29872 * eval.c (maybe_call_debugger): New function.
29873 (find_handler_clause): Use maybe_call_debugger.
29874 Call it when the handler says `debug'.
29875 Eliminate DEBUGGER_VALUE_PTR.
29876 (Fsignal): Eliminate debugger_value.
29877 (Qdebug): New variable.
29878 (syms_of_eval): Initialize it.
29879
298802007-07-14 Juanma Barranquero <lekktu@gmail.com>
29881
29882 * eval.c (Fprogn):
29883 * keyboard.c (Ftrack_mouse):
29884 * print.c (Fwith_output_to_temp_buffer):
29885 * window.c (Fsave_window_excursion): Doc fix.
29886
298872007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29888
29889 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29890
298912007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29892
29893 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29894 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29895 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29896 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29897 Remove unused encoding_carryover.
29898 * process.c: Adjust all functions accordingly.
29899
299002007-07-12 Richard Stallman <rms@gnu.org>
29901
29902 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29903
299042007-07-11 Jason Rumney <jasonr@gnu.org>
29905
29906 * makefile.w32-in (LIBS): Include OLE32.
29907
29908 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29909 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29910
299112007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29912
29913 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29914 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29915 from a Lisp_Object into a bare pointer.
29916 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29917 Adjust the code correspondingly.
29918
29919 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29920
29921 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29922 (term_show_mouse_face): Remove unused var `j'.
29923 (handle_one_term_event): Remove unused vars `i' and `j'.
29924 Don't cast return value of ttyname since it's not necessary.
29925
299262007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29927
29928 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29929 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29930
29931 * fns.c (map_char_table): Use an array of int for `indices' rather than
29932 an array of Lisp_Objects (which are only ever integers anyway).
29933 (Fmap_char_table): Update caller.
29934 * lisp.h: Update prototype.
29935 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29936 * fontset.c (Ffontset_info):
29937 * casetab.c (set_case_table): Update callers.
29938
29939 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29940
29941 * keymap.c (struct accessible_keymaps_data)
29942 (struct where_is_internal_data): New structures.
29943 (accessible_keymaps_1, where_is_internal_1): Use them to change
29944 interface to adhere to the one used by map_keymap.
29945 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29946 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29947
29948 * keymap.h (map_keymap_function_t): More informative prototype.
29949
299502007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29951
29952 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29953 (looking_at_1): Don't change search_regs and last_thing_searched
29954 if `inhibit-changing-match-data' is non-nil.
29955 (string_match_1, search_buffer, set_search_regs): Likewise.
29956 (syms_of_search): Add Lisp level definition for
29957 `inhibit-changing-match-data' and set it to nil.
29958 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29959 start and end of the match, instead of using values in search_regs.
29960
299612007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29962
29963 * minibuf.c (Fcompleting_read): New value `confirm-only'
29964 for `require-match'.
29965
299662007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29967
29968 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29969 part of the 2007-06-27 change to syms_of_fileio.
29970
299712007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29972
29973 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29974 Check WINDOWP before using XWINDOW. Consolidate return statements.
29975
299762007-06-27 Richard Stallman <rms@gnu.org>
29977
29978 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29979
299802007-06-27 Juanma Barranquero <lekktu@gmail.com>
29981
29982 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29983
299842007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29985
29986 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29987 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
29988 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
29989 (_free_internal, memalign): Use them.
29990 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
29991 Initialize to PTHREAD_MUTEX_INITIALIZER.
29992 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
29993 (morecore_nolock): Rename from morecore. All uses changed.
29994 Use only nolock versions of internal allocation functions.
29995 (_malloc_internal_nolock, _realloc_internal_nolock)
29996 (_free_internal_nolock): New functions created from
29997 _malloc_internal, _realloc_internal, and _free_internal.
29998 (_malloc_internal, _realloc_internal, _free_internal): Use them.
29999 Copy hook value to automatic variable before its use.
30000 (memalign): Copy hook value to automatic variable before its use.
30001
300022007-06-26 Kenichi Handa <handa@m17n.org>
30003
30004 * coding.c (Ffind_operation_coding_system): Docstring improved.
30005 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
30006
300072007-06-25 David Kastrup <dak@gnu.org>
30008
30009 * keymap.c (Fcurrent_active_maps): Add `position' argument.
30010 (Fwhere_is_internal): Adjust call to `current-active-maps' to
30011 cater for additional parameter.
30012
30013 * keymap.h: Adjust number of parameters to `current-active-maps'.
30014
30015 * doc.c (Fsubstitute_command_keys): Adjust call of
30016 `current-active-maps'.
30017
300182007-06-25 David Kastrup <dak@gnu.org>
30019
30020 * callint.c (Fcall_interactively): Make the parsing of interactive
30021 specs somewhat more readable.
30022
300232007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30024
30025 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
30026 to scroll bar gap also when bitmap fills fringe. Draw only foreground
30027 if extended background has already been filled.
30028
300292007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30030
30031 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
30032 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
30033
30034 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
30035 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
30036 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
30037 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
30038 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
30039 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
30040 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
30041 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30042 Run timers during dialog popup.
30043 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30044
300452007-06-21 Jason Rumney <jasonr@gnu.org>
30046
30047 * image.c (convert_mono_to_color_image): Swap fore and background.
30048
300492007-06-20 Jason Rumney <jasonr@gnu.org>
30050
30051 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30052 (w32_free_bdf_font): Unmap memory not handle.
30053
300542007-06-20 Sam Steingold <sds@gnu.org>
30055
30056 * gmalloc.c (__morecore): Fix the declaration to comply with the
30057 definition.
30058
300592007-06-20 Juanma Barranquero <lekktu@gmail.com>
30060
30061 * w32term.c (w32_delete_display): Remove leftover declaration.
30062 (w32_define_cursor, w32_initialize): Make static.
30063
30064 * w32.c (_wsa_errlist): Fix typo in error message.
30065 (init_environment): Ignore any environment variable from the
30066 registry having a null value.
30067
300682007-06-20 Glenn Morris <rgm@gnu.org>
30069
30070 * Makefile.in (LIBGIF): Default to -lgif.
30071
300722007-06-17 Jason Rumney <jasonr@gnu.org>
30073
30074 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30075 unicode strings.
30076
300772007-06-16 Juanma Barranquero <lekktu@gmail.com>
30078
30079 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30080 Fix typo in docstring.
30081
300822007-06-16 Eli Zaretskii <eliz@gnu.org>
30083
30084 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30085 and their keybindings.
30086
300872007-06-15 Chong Yidong <cyd@stupidchicken.com>
30088
30089 * composite.c (update_compositions): Fix last fix.
30090
300912007-06-14 Jason Rumney <jasonr@gnu.org>
30092
30093 * w32.c (get_process_times_fn): New function pointer.
30094 (globals_of_w32): Intialize it if present in kernel32.dll.
30095 (w32_get_internal_run_time): New function.
30096
30097 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30098
300992007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30100
30101 * composite.c (update_compositions): Check the validness of
30102 compositions.
30103
301042007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30105
30106 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30107 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30108
30109 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30110 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30111
30112 * macgui.h (USE_MAC_TOOLBAR): New define.
30113
30114 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30115 Return immediately unless popup is activated.
30116
30117 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30118 background to scroll bar gap.
30119 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30120 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30121 scroll bars on frame edge. Check fringe background extension.
30122 Don't clear extended fringe background area.
30123 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30124 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30125 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30126 [USE_MAC_TOOLBAR]: New macros.
30127 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30128 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30129 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30130 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30131 [USE_MAC_TOOLBAR]: New functions.
30132 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30133 manually if previous repositioning has failed.
30134 (mac_handle_keyboard_event): Use precomputed event kind.
30135 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30136 as tool bar item click. Handle mouse movement over tool bar items.
30137
30138 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30139 toolbar_win_gravity.
30140 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30141 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30142 Add externs.
30143
30144 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30145 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30146
301472007-06-14 Chong Yidong <cyd@stupidchicken.com>
30148
30149 * image.c (search_image_cache): Remove unused variable.
30150
301512007-06-13 Chong Yidong <cyd@stupidchicken.com>
30152
30153 * xfns.c, xmenu.c: Link to xaw3d if available.
30154
301552007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30156
30157 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30158 frame_foreground and frame_background.
30159
30160 * image.c (lookup_image): Save frame foreground and background colors.
30161 (search_image_cache): Check if saved and current frame colors match.
30162
301632007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30164
30165 * regex.c (regex_compile): Remove the `regnum' counter.
30166 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30167
301682007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30169
30170 * term.c: Include intervals.h to declare Fget_text_property.
30171
301722007-06-10 Jason Rumney <jasonr@gnu.org>
30173
30174 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30175
301762007-06-08 Juanma Barranquero <lekktu@gmail.com>
30177
30178 * callint.c (Fcall_interactively):
30179 * editfns.c (Fdelete_and_extract_region):
30180 * fileio.c (Fread_file_name):
30181 * fns.c (Fmapconcat):
30182 * keyboard.c (cmd_error_internal):
30183 * keymap.c (Fkey_description):
30184 * lread.c (openp):
30185 * minibuf.c (read_minibuf):
30186 * search.c (wordify):
30187 * sunfns.c (sel_read):
30188 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30189 * xfns.c (x_default_scroll_bar_color_parameter):
30190 * xmenu.c (menu_help_callback):
30191 * xselect.c (Fx_get_atom_name):
30192 * xterm.c (x_term_init): Use empty_unibyte_string.
30193
301942007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30195
30196 * alloc.c (init_strings): Initialize canonical empty strings.
30197 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30198 canonical empty string when the requested size is 0.
30199
30200 * emacs.c (empty_unibyte_string): Rename from empty_string.
30201 (empty_multibyte_string): New canonical empty string.
30202 (syms_of_emacs): Don't initialize empty_string.
30203
30204 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30205 string, if appropriate.
30206 (empty_unibyte_string, empty_multibyte_string): New externs.
30207 (empty_string): Remove extern.
30208
30209 * lread.c (syms_of_lread): Use empty_unibyte_string.
30210
302112007-06-07 Jason Rumney <jasonr@gnu.org>
30212
30213 * s/ms-w32.h: Don't define HAVE_TZNAME.
30214
30215 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30216
302172007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30218
30219 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30220
30221 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30222 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30223
30224 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30225 Don't call next handler.
30226 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30227 Remove argument. Install handler to application.
30228 (set_frame_menubar): Don't change deep_p.
30229 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30230 FRAME_OUTER_TO_INNER_DIFF_Y.
30231 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30232 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30233 [HAVE_DIALOGS]: New macros.
30234 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30235 Use them.
30236 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30237
30238 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30239 init_service_handler. All callers changed. Return OSStatus value.
30240
30241 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30242 All callers changed so as not to call SetPortWindowPort.
30243 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30244 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30245 mac_draw_string_common.
30246 (mac_draw_image_string_qd): Likewise.
30247 (mac_draw_string_common): Use them. Add INLINE.
30248 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30249 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30250 GetGlobalMouse.
30251 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30252 and FRAME_OUTER_TO_INNER_DIFF_Y.
30253 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30254 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30255 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30256 repositioning window to mac_handle_window_event.
30257 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30258 saving window location to mac_handle_window_event
30259 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30260 (install_menu_target_item_handler): Remove argument in extern.
30261 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30262 Also accept command events.
30263 (do_keystroke): New function created from XTread_socket.
30264 (init_command_handler): Remove functions.
30265 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30266 and save window location by kEventWindowShowing and kEventWindowHiding
30267 handlers here. Don't call next handler for window state change and
30268 focus events.
30269 (mac_handle_application_event, mac_handle_keyboard_event)
30270 [TARGET_API_MAC_CARBON]: New functions.
30271 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30272 kEventWindowShowing and kEventWindowHiding events. Move installation
30273 of mouse, font, text input and menu target item handlers to
30274 install_application_handler.
30275 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30276 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30277 New function.
30278 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30279 Register it.
30280 (XTread_socket) [TARGET_API_MAC_CARBON]:
30281 Consolidate SendEventToEventTarget calls.
30282 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30283 Move application activation handler to mac_handle_application_event.
30284 Move keyboard handler to mac_handle_keyboard_event.
30285 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30286 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30287 init_command_handler. Call install_application_handler.
30288
30289 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30290 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30291
302922007-06-07 Glenn Morris <rgm@gnu.org>
30293
30294 * emacs.c (main): Use `emacs-copyright' in --version output.
30295
302962007-06-06 Chong Yidong <cyd@stupidchicken.com>
30297
30298 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30299
303002007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30301
30302 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30303
30304 * macgui.h: Replace WindowPtr with WindowRef.
30305
30306 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30307 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30308 Replace ControlHandle with ControlRef.
30309 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30310
30311 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30312 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30313 Replace ControlHandle with ControlRef.
30314 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30315 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30316
30317 * macterm.h (struct scroll_bar): Rename member control_handle_low
30318 and control_handle_high to control_ref_low and control_ref_high.
30319 All uses changed.
30320 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30321 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30322 respectively. All uses changed.
30323 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30324 (install_window_handler, remove_window_handler): Replace WindowPtr
30325 with WindowRef in externs.
30326
303272007-06-05 Juanma Barranquero <lekktu@gmail.com>
30328
30329 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30330
303312007-06-03 Nick Roberts <nickrob@snap.net.nz>
30332
30333 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30334
30335 * frame.c (Fmouse_position, Fmouse_pixel_position):
30336 Condition on HAVE_GPM too.
30337
30338 * term.c (term_mouse_highlight): Remove unused variables.
30339 (Fterm_open_connection): Set gpm_zerobased to 1.
30340 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30341 Use zero based co-ordinates.
30342 (handle_one_term_event): Report a drag as mouse movement too.
30343
30344 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30345
303462007-06-03 Chong Yidong <cyd@stupidchicken.com>
30347
30348 * image.c (search_image_cache): New function. Require background
30349 color match if background color is unspecified in the image spec.
30350 (uncache_image, lookup_image): Use it.
30351
303522007-06-01 Juanma Barranquero <lekktu@gmail.com>
30353
30354 * window.c (Fshrink_window): Reflow docstring.
30355
303562007-06-02 Chong Yidong <cyd@stupidchicken.com>
30357
30358 * Version 22.1 released.
30359
303602007-06-01 Richard Stallman <rms@gnu.org>
30361
30362 * xfns.c (x_encode_text): Add GCPRO.
30363
303642007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30365
30366 * xfns.c (x_set_name_internal): Save encoded name before
30367 x_encode_text in case string data is relocated.
30368
303692007-05-31 Richard Stallman <rms@gnu.org>
30370
30371 * buffer.c (syms_of_buffer): Doc fix.
30372
303732007-05-30 Nick Roberts <nickrob@snap.net.nz>
30374
30375 * sysdep.c (init_sys_modes): Add rather than replace with
30376 O_NONBLOCK.
30377
30378 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30379 term_mouse_moveto.
30380
30381 * termhooks.h (term_mouse_moveto): New extern.
30382
30383 * term.c (mouse_face_window): Rename...
30384 (Qmouse_face_window): ...to this.
30385 (term_show_mouse_face, term_clear_mouse_face)
30386 (term_mouse_highlight): Use Qmouse_face_window.
30387 (term_mouse_moveto): New function.
30388 (term_mouse_position): Make it work.
30389 (syms_of_term): Uncomment assignment to mouse_position_hook.
30390 Staticpro Qmouse_face_window.
30391
303922007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30393
30394 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30395 around current_column call.
30396
303972007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30398
30399 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30400 * xdisp.c (next_element_from_buffer):
30401 * window.c (delete_window):
30402 * term.c (term_mouse_highlight):
30403 * msdos.c (getdefdir):
30404 * macterm.c (mac_create_bitmap_from_bitmap_data)
30405 (init_font_name_table):
30406 * fns.c (Fsxhash):
30407 * data.c (Fmake_local_variable):
30408 * ccl.c (ccl_driver): Likewise.
30409
304102007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30411
30412 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30413 Call mac_wakeup_from_rne on window size change.
30414
304152007-05-25 Chong Yidong <cyd@stupidchicken.com>
30416
30417 * image.c (uncache_image): Fix typo.
30418
304192007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30420
30421 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30422
304232007-05-22 Richard Stallman <rms@gnu.org>
30424
30425 * xterm.c (x_connection_closed): Remove NO_RETURN.
30426
304272007-05-22 Martin Rudalics <rudalics@gmx.at>
30428
30429 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30430
304312007-05-21 Chong Yidong <cyd@stupidchicken.com>
30432
30433 * image.c (uncache_image): New function.
30434 (Fimage_refresh): New function.
30435
304362007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30437
30438 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30439
304402007-05-20 Nick Roberts <nickrob@snap.net.nz>
30441
30442 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30443 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30444
304452007-05-20 Nick Roberts <nickrob@snap.net.nz>
30446
30447 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30448 conditional on [HAVE_GPM_H].
30449
304502007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30451
30452 * syntax.c (skip_chars): Update syntax-table only after we checked that
30453 the new location is valid.
30454
304552007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30456
30457 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30458 mac_get_window_bounds.
30459
304602007-05-20 Nick Roberts <nickrob@snap.net.nz>
30461
30462 * Makefile.in (LIBGPM): Allow it to be set from configure.
30463 If set then link Emacs with it.
30464
30465 * config.in: Regenerate.
30466
30467 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30468 New externs.
30469
30470 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30471 Include gpm.h.
30472 (handle_one_term_event, term_gpm): New externs.
30473
30474 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30475 and allow it to be interrupted by SIGIO.
30476
30477 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30478 (wait_reading_process_output): Wait on gpm_fd too.
30479 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30480 (add_gpm_wait_descriptor_called_flag): New variable.
30481 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30482
30483 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30484 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30485 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30486 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30487 (make_lispy_event): Add case GPM_CLICK_EVENT.
30488 (read_avail_input): Handle mouse input.
30489
30490 * term.c (write_glyphs_with_face): New function.
30491 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30492 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30493 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30494 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30495 (last_mouse_x, last_mouse_y): New variables.
30496 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30497 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30498 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30499 (Fterm_close_connection): New functions.
30500 (term_init): Initialise mouse_face_window.
30501
305022007-05-19 Chong Yidong <cyd@stupidchicken.com>
30503
30504 * xdisp.c (redisplay_window): If first window line is a
30505 continuation line, recompute the new window start instead of
30506 recentering.
30507
305082007-05-18 Glenn Morris <rgm@gnu.org>
30509
30510 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30511 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30512
305132007-05-17 Glenn Morris <rgm@gnu.org>
30514
30515 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30516
305172007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30518
30519 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30520 dead key repeat and up events.
30521
305222007-05-14 Chong Yidong <cyd@stupidchicken.com>
30523
30524 * image.c (pbm_load): Check image size for monochrome pbm.
30525
305262007-05-13 Chong Yidong <cyd@stupidchicken.com>
30527
30528 * xterm.c (XTread_socket): Revert last change.
30529
305302007-05-12 Chong Yidong <cyd@stupidchicken.com>
30531
30532 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30533
30534 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30535
305362007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30537
30538 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30539 mixup (YAILOM).
30540
305412007-05-07 Andreas Schwab <schwab@suse.de>
30542
30543 * keymap.c (Flookup_key): Fix typo in last change.
30544
305452007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30546
30547 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30548 mapping for unibyte strings.
30549
305502007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30551
30552 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30553 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30554
305552007-04-29 Richard Stallman <rms@gnu.org>
30556
30557 * insdel.c (replace_range): For undo, record insertion first.
30558
305592007-04-29 Andreas Schwab <schwab@suse.de>
30560
30561 * lisp.h (VECSIZE): Use OFFSETOF.
30562
305632007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30564
30565 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30566 disabled lines.
30567
305682007-04-28 Richard Stallman <rms@gnu.org>
30569
30570 * lread.c (read_escape): In a string, \s is always space.
30571
305722007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30573
30574 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30575
30576 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30577 submenu for menu bar items.
30578
30579See ChangeLog.10 for earlier changes.
30580
30581;; Local Variables:
30582;; coding: utf-8
aac0c6e3
MR
30583;; End:
30584
73b0cd50 30585 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
30586
30587 This file is part of GNU Emacs.
30588
30589 GNU Emacs is free software: you can redistribute it and/or modify
30590 it under the terms of the GNU General Public License as published by
30591 the Free Software Foundation, either version 3 of the License, or
30592 (at your option) any later version.
30593
30594 GNU Emacs is distributed in the hope that it will be useful,
30595 but WITHOUT ANY WARRANTY; without even the implied warranty of
30596 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30597 GNU General Public License for more details.
30598
30599 You should have received a copy of the GNU General Public License
30600 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.