* src/Makefile.in (gl-stamp): Create globals.h here.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
33cd3ee4
AS
12011-02-09 Andreas Schwab <schwab@linux-m68k.org>
2
3 * Makefile.in (gl-stamp): Create globals.h here.
4 (globals.h): Don't do it here.
5 (mostlyclean): Clean globals.h and gl-stamp.
6
f9f2e7f5
PE
72011-02-09 Paul Eggert <eggert@cs.ucla.edu>
8
9 * Makefile.in ($(otherobj)): Depend on globals.h.
10 Otherwise 'make -j10' failed on my host, because the build lacked
11 necessary dependencies, e.g., vm-limit.o depends on globals.h.
12
00b3c7ac
TT
132011-02-08 Tom Tromey <tromey@redhat.com>
14
15 * Makefile.in (NS_OBJC_OBJ): New variable.
16 (base_obj): Rename from 'obj'.
17 (obj): New variable.
18 (globals.h, gl-stamp, $(obj)): New targets.
19 (GLOBAL_SOURCES): New variable.
20 * globals.h: Remove.
21 * nsselect.m (Vselection_alist): Define. Reverts part of
22 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
23 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
24 variable.
25 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
26
8f3b2e12
KH
272011-02-08 Kenichi Handa <handa@m17n.org>
28
29 * font.c (Ffont_get): Do not cache :otf value.
30
4f043d0f
PE
312011-02-07 Paul Eggert <eggert@cs.ucla.edu>
32
33 conform to C89 pointer rules
34
35 * dired.c (scmp, file_name_completion):
36 Change types between char * and unsigned char *, to satisfy C89
37 rules about pointer type compatibility.
47ce90e4 38 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 39 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
40 * alloc.c (make_string, make_specified_string, make_pure_string):
41 Likewise.
57ace6d0 42 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
43 * print.c (float_to_string, PRINTFINISH, printchar, strout):
44 (print_object): Likewise.
e7f8264d
PE
45 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
46 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
47 (Fformat): Likewise.
a2db9982 48 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
49 * fns.c (string_make_multibyte, string_to_multibyte):
50 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
51 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
52 Likewise.
4a25e32a 53 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
54 * process.c (read_process_output, send_process, Fprocess_send_region):
55 Likewise.
0ca76b1e 56 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
57 * doprnt.c (doprnt): Likewise.
58 * indent.c (compute_motion): Likewise.
efe0234f 59 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 60 * ralloc.c (resize_bloc): Likewise.
b19beacc 61 * image.c (tiff_load): Likewise.
c45e5276 62 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
63 * character.c (strwidth): Make its argument const char *, not const
64 unsigned char *, since more callers prefer it that way. All callers
65 changed.
4f043d0f 66
9eee99eb
PE
672011-02-06 Paul Eggert <eggert@cs.ucla.edu>
68
4c83cffc
PE
69 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
70 Emacs assumes two's complement elsewhere, but the assumption is
71 easy to remove here, and this suppresses a warning with Sun C 5.8.
72
82470039
PE
73 conform to C89 pointer rules
74
75 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
76 (same_x_server, x_term_init):
9eee99eb
PE
77 Change types between char * and unsigned char *, to satisfy C89
78 rules about pointer type compatibility.
82470039
PE
79 * doc.c (get_doc_string, Fsnarf_documentation):
80 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
81 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
82 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 83 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
84 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
85 Likewise.
01c9aa3a 86 * keymap.c (Ftext_char_description): Likewise.
637de37e 87 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
88 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
89 (DRIVE_LETTER) [defined DOS_NT]:
90 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
91 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
92 (search_embedded_absfilename, Fsubstitute_in_file_name):
93 (barf_or_query_if_file_exists, Fmake_directory_internal):
94 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
95 (Finsert_file_contents, Fwrite_region):
96 Likewise.
b68864e5
PE
97 * insdel.c (insert, insert_and_inherit, insert_before_markers):
98 (insert_before_markers_and_inherit, insert_1, insert_1_both):
99 Likewise. This changes these functions' signatures, which is
100 more convenient since most callers use char *. All remaining
101 callers changed.
102 * editfns.c (general_insert_function): Change signature to
103 match changes to insert functions' signatures.
01c9aa3a
PE
104 * keymap.c (map_keymap_char_table_item, map_keymap_internal): Use
105 explicit cast when converting between void * and function pointer
106 types, as C89 requires this.
9eee99eb 107
32299e33
PE
1082011-02-05 Paul Eggert <eggert@cs.ucla.edu>
109
110 don't ignore chdir failure
111 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
112 failure and exit.
113 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
114 remaining unchecked chdir calls in this function; some DOS/NT
115 expert needs to fix them.
116 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
117 in this function; some NextStep expert needs to fix them.
118
233ba4d9 1192011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
120
121 * xfaces.c (Finternal_set_lisp_face_attribute):
122 Try to clarify some error messages. (Bug#2659)
123
233ba4d9 1242011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
125
126 * editfns.c (save_restriction_restore): Don't forget to invalidate the
127 current_column cache (bug#7946).
128
233ba4d9 1292011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
130
131 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
132
133 * xftfont.c (xftfont_open): Likewise.
134
233ba4d9 1352011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
136
137 * window.c (Fselect_window): Add missing return value.
138
d67985d3
PE
1392011-02-05 Paul Eggert <eggert@cs.ucla.edu>
140
25a48bd0
PE
141 xstrcasecmp: conform to C89 pointer rules
142 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
143 to const char *, since they're usually low-level C strings, and
144 this stays compatible with C89 pointer rules. All callers changed.
145
dfb6afda
PE
146 * charset.c: conform to C89 pointer rules
147 (define_charset_internal): Switch between char * and unsigned char *.
148
cc618f4e
PE
149 * xmenu.c: conform to C89 const rules
150 (xmenu_show, xdialog_show): Declare local var as char *, not
151 const char *, to stay compatible with C89 const rules.
152
9bcaafce
PE
153 * xdisp.c: conform to C89 pointer rules
154 (store_mode_line_noprop, display_string, reseat_to_string):
155 (c_string_pos, number_of_chars, message_dolog):
156 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
157 (display_mode_element, display_string):
158 Switch between char * and unsigned char * to stay compatible wth
159 C89 pointer rules.
160
5b0534c8
PE
161 * regex.c: conform to C89 pointer rules
162 (re_wctype): Add cast, as C89 does not allow assigning between
163 char * and unsigned char *.
164 (regex_compile): Likewise.
165
d67985d3
PE
166 sync from gnulib to remove HAVE_STDBOOL_H
167 * config.in: Regenerate.
168
a5d733f5
EZ
1692011-02-04 Eli Zaretskii <eliz@gnu.org>
170
f90e08f5
EZ
171 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
172 Replace all uses of lisp.h with $(LISP_H), and all uses of
173 process.h with $(PROCESS_H).
174 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
175 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
176
be50df37
EZ
177 * deps.mk: Update for recent changes: gnutls support, gnulib
178 imports, addition of globals.h.
179
f90e08f5
EZ
180 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
181 ../lib/ignore-value.h.
a5d733f5 182
67342916
PE
1832011-02-03 Paul Eggert <eggert@cs.ucla.edu>
184
185 allow C code to suppress warnings about ignored return values
186
187 We need to go through the code and for each such warning, either
188 fix the code to pay attention to the returned value, or tell GCC
189 that we really do want to ignore the returned value. Here is one
190 example of how to do the latter.
191 * sysdep.c: Include <ignore-value.h>.
192 (sys_subshell): Suppress an undesirable warning about not checking
193 the returned value of 'write', as there's nothing useful one can
194 do with that returned value.
195
36941b32
JD
1962011-02-03 Jan Djärv <jan.h.d@swipnet.se>
197
198 * xterm.c (x_connection_closed): Remove all calls that calls
199 XSync (Bug#7949).
200
3082f617
EZ
2012011-02-01 Eli Zaretskii <eliz@gnu.org>
202
203 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
204 TIFFClientOpen.
205
4df0af9b
JD
2062011-02-01 Jan Djärv <jan.h.d@swipnet.se>
207
208 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
209 (x_session_check_input): Change args and return type so it can be used
210 as argument to add_read_fd. Make static. Remove call to select.
211 Call kbd_buffer_store_event for emacs_event.
212 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
213 (ice_conn_watch_CB): Call add_read_fd.
214
215 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
216 x_session_check_input.
217 (x_session_initialized): Remove definition.
218 (x_initialize): Remove setting of x_session_initialized.
219
220 * xterm.h (x_session_check_input): Remove declaration.
221
a4180391
PE
2222011-02-01 Paul Eggert <eggert@cs.ucla.edu>
223
224 format-time-string now supports subsecond time stamp resolution
225 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
226 for consistency with its new argument and with gnulib nstrftime.
227 All callers changed. New argument NS.
228 (Fformat_time_string): Check that the time argument's microseconds
229 component, if any, is in range; this avoids integer overflow and
230 also nstrftime needs this. Document %N.
231
14beddf4 2322011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
233
234 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
235 of int. All uses adjusted.
236 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
237 (svg_load_image): Remove casts.
238
14beddf4 2392011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
240
241 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
242 function definitions for compiling with libpng-1.5.
243 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
244 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
245 (Bug#7908).
246
70b0d280
EZ
2472011-01-31 Eli Zaretskii <eliz@gnu.org>
248
8b3c625b
EZ
249 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
250
70b0d280
EZ
251 * makefile.w32-in (OBJ2): Remove strftime.$(O).
252 ($(BLD)/strftime.$(O)): Remove prerequisites.
253
16fab143
PE
2542011-01-31 Paul Eggert <eggert@cs.ucla.edu>
255
256 src/emacs.c now gets version number from configure.in
257 * emacs.c (emacs_version): Set to VERSION so that it
258 is determined automatically from ../configure.in.
259
546961a9
JM
2602011-01-31 Jim Meyering <meyering@redhat.com>
261
262 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
263 Use xmalloc rather than malloc.
264
42a5b22f
PE
2652011-01-30 Paul Eggert <eggert@cs.ucla.edu>
266
16c3e636
PE
267 strftime: import from gnulib
268 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
269 * deps.mk (strftime.o): Remove.
270 * editfns.c: Include <strftime.h>, supplied by gnulib.
271 (emacs_strftimeu): Remove decl.
272 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
273 emacs_strftimeu.
274 * config.in: Regenerate.
275 * strftime.c: Remove; we now use strftime from gnulib.
276
42a5b22f
PE
277 Use SSDATA when the context wants char *.
278 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
279 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
280 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
281 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
282 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
283 Use SSDATA (not SDATA) when the context of the expression wants
284 char * (not unsigned char *).
285
2787bba3
JD
2862011-01-30 Jan Djärv <jan.h.d@swipnet.se>
287
288 * .gdbinit: Read global lisp variables as globals.f_V*.
289
4ec88040
AS
2902011-01-30 Andreas Schwab <schwab@linux-m68k.org>
291
292 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
293 All uses changed.
294 (PROP_SAVE): Likewise.
295
b6bcd048
CY
2962011-01-29 Chong Yidong <cyd@stupidchicken.com>
297
298 * keyboard.c (make_lispy_position): Fix typo in last change
299 (Bug#7935).
300
f915f0f7
EZ
3012011-01-29 Eli Zaretskii <eliz@gnu.org>
302
303 * s/ms-w32.h (HAVE_MKTIME): Remove.
304
305 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
306 (GNULIB): New variable.
307 (LIBS): Add $(GNULIB).
308 $(TEMACS): Depend on $(GNULIB).
309 <top-level>: Fix font-lock disrupted by a lone `"'.
310
497a1925
JD
3112011-01-29 Jan Djärv <jan.h.d@swipnet.se>
312
313 * nsselect.m (ns_string_from_pasteboard): Get length of string
314 and use make_string instead of build_string (Bug#7934).
315 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
316 instead of stringWithUTF8String (Bug#7934).
317
481ae085
JD
3182011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
319
320 * nsfont.m (nsfont_open): Ensure that fonts with inexact
321 descenders would not become one pixel too tall (Bug#7887).
322
6b918613
CY
3232011-01-28 Chong Yidong <cyd@stupidchicken.com>
324
325 * keyboard.c (make_lispy_position): For clicks on right fringe or
326 margin, compute text position using the X coordinate relative to
327 the left of the text area (Bug#7839).
328
9e269017
KH
3292011-01-28 Kenichi Handa <handa@m17n.org>
330
331 * ftfont.c (ftfont_spec_pattern): Check each extra property
332 value.
333
17dd1fc8
SM
3342011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
335
336 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
337
372fb76b
CY
3382011-01-27 Chong Yidong <cyd@stupidchicken.com>
339
340 * font.c (font_parse_fcname): Undefine a temporary macro.
341
e7f7fbaa
SM
3422011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
343
344 Let the debugger continue to the normal handler (bug#7825).
345 * eval.c (maybe_call_debugger): Declare before new use.
346 (find_handler_clause): Don't call debugger any more.
347 Ignore Vstack_trace_on_error.
348 Use XCAR/XCDR.
349 (syms_of_eval): Remove Vstack_trace_on_error.
350 (Fsignal): Only modify handlerlist when we know we need to do it.
351 Call the debugger when necessary.
352 * globals.h (Vstack_trace_on_error): Remove.
353
6608a7d8
CY
3542011-01-26 Chong Yidong <cyd@stupidchicken.com>
355
356 * font.c (font_parse_fcname): Rewrite GTK font name parser.
357
06d8ace5 3582011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
359
360 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
361 the buffer's point-max (bug#7876).
362
06d8ace5 3632011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
364
365 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 366 Remove unused case (Bug#6811).
19634648 367
8ab70320
JD
3682011-01-23 Jan Djärv <jan.h.d@swipnet.se>
369
370 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
371 setFrameTopLeftPoint is constrained.
372
51b59d79
PE
3732011-01-23 Paul Eggert <eggert@cs.ucla.edu>
374
9055082e
PE
375 Check return values of some library calls.
376 * emacs.c (main): Check dup result.
377 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
378 (frame_name_fnn_p): Check strtol result.
379
5c7d01a5 380 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
381 when calling XpmCreatePixmapFromData.
382
51b59d79
PE
383 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
384 * lisp.h (SSDATA): New macro.
385 All uses of (char *) SDATA (x) replaced with SSDATA (x),
386 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
387 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
388 * xsmfns.c (SSDATA): Likewise.
389
e6b84b30
MR
3902011-01-22 Martin Rudalics <rudalics@gmx.at>
391
392 * window.c (select_window): New function.
393 (Fselect_window): Call it.
394 (inhibit_point_swap): Variable deleted.
395 (Fset_window_configuration): Call select_window directly.
396
3fb69558
JD
3972011-01-22 Jan Djärv <jan.h.d@swipnet.se>
398
399 * nsterm.m (constrainFrameRect): Only constrain the first time called.
400
449ab399
JD
4012011-01-21 Jan Djärv <jan.h.d@swipnet.se>
402
e2f79c8d
JD
403 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
404 screen, not the window screen.
405 (x_set_window_size): Remove constraints.
406 Calculate origin.y only if zooming is 0 and without referring to a
407 screen.
408 (windowWillResize): Don't modify frameSize.
409 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
410 (initFrameFromEmacs): Initialize ns_userRect.
411 (windowShouldZoom): Set zooming to one. Remove all other code.
412 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
413 Zero it after restore.
414 (constrainFrameRect): New method for EmacsWindow.
415 (mouseDragged): Always post NSWindowDidResizeNotification after call to
416 windowWillResize.
417
418 * nsterm.h (ns_output): Add dont_constrain and zooming.
419 (EmacsView): Add ns_userRect.
420
449ab399
JD
421 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
422 if ns_alternate_modifier is none.
423
e885315d
JD
4242011-01-20 Jan Djärv <jan.h.d@swipnet.se>
425
426 * unexmacosx.c: Add comment about include order.
427
bb1c6663
GM
4282011-01-20 Glenn Morris <rgm@gnu.org>
429
c11136ec
GM
430 * minibuf.c (syms_of_minibuf) <read-expression-history>:
431 Give it a doc string.
432 * globals.h: Add Vread_expression_history.
433
bb1c6663
GM
434 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
435 Give it a doc string.
436 * globals.h: Add Vkbd_macro_termination_hook.
437
9aea757b
CY
4382011-01-20 Chong Yidong <cyd@stupidchicken.com>
439
440 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
441
e1ef0dac
PE
4422011-01-19 Paul Eggert <eggert@cs.ucla.edu>
443
444 Fix X11 compilation failure.
445 * globals.h (struct emacs_globals): Document f_Vselection_alist.
446 * xselect.c (Vselection_alist): Remove declaration, moving its
447 documentation to globals.h. This fixes a compilation failure
448 induced by the earlier change to globals.h today.
449
fb9d0f5a
JD
4502011-01-19 Jan Djärv <jan.h.d@swipnet.se>
451
8beb828a
JD
452 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
453
fb9d0f5a
JD
454 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
455 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
456 (ns_input_spi_name, ns_input_spi_arg)
457 (ns_alternate_modifier, ns_right_alternate_modifier)
458 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
459 (ns_right_control_modifier, ns_function_modifier)
460 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
461 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
462 (x_underline_at_descent_line): Remove declaration.
463 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
464
465 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
466 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
467 (syms_of_nsselect): Remove & from DEFVAR_LISP.
468
469 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
470 Remove declaration.
471
472 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
473 globals.h.
474 (syms_of_nsfont): Remove & from DEFVAR_LISP.
475
476 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
477 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
478 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
479
480 * globals.h (struct emacs_globals): Add f_ns_input_file,
481 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
482 f_ns_input_color, f_ns_input_text, f_ns_working_text,
483 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
484 f_ns_right_alternate_modifier, f_ns_command_modifier,
485 f_ns_right_command_modifier, f_ns_control_modifier,
486 f_ns_right_control_modifier, f_ns_function_modifier,
487 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
488 f_Vns_version_string, f_Vns_sent_selection_hooks,
489 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
490 and corresponding defines.
491
492
4e55715e
SS
4932011-01-19 Sam Steingold <sds@gnu.org>
494
495 * w32.c (check_windows_init_file): Remove declarations of
496 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 497 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 498
ef79d2fa
TT
4992011-01-19 Tom Tromey <tromey@redhat.com>
500
501 * window.c: Fix error introduced by previous patch.
502
29208e82
TT
5032011-01-18 Tom Tromey <tromey@parfait>
504
505 * globals.h: New file.
506 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
507 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
508 (Vwindow_system_version): Remove declaration.
509 * w32term.h (Vw32_enable_palette)
510 (Vx_pixel_size_width_font_regexp): Remove declaration.
511 * w32menu.c (Voverriding_local_map)
512 (Voverriding_local_map_menu_flag): Remove declaration.
513 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
514 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
515 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
516 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
517 (Vw32_phantom_key_code, Vw32_recognize_altgr)
518 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
519 (w32_use_full_screen_buffer): Remove declaration.
520 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
521 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
522 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
523 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
524 (no_redraw_on_reenter, visible_bell): Remove declaration.
525 * sysdep.c (Vsystem_name): Remove declaration.
526 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
527 * menu.h (Vmenu_updating_frame): Remove declaration.
528 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
529 Remove declaration.
530 * lisp.h (Vafter_init_time, Vafter_load_alist)
531 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
532 (Vcompletion_regexp_list, Vcurrent_load_list)
533 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
534 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
535 (Vexec_directory, Vexec_path, Vexec_suffixes)
536 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
537 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
538 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
539 (Vinstallation_directory, Vinvocation_directory)
540 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
541 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
542 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
543 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
544 (Vscalable_fonts_allowed, Vselect_active_regions)
545 (Vshell_file_name, Vstandard_input, Vstandard_output)
546 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
547 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
548 (Vuser_login_name, Vwindow_scroll_functions)
549 (Vwindow_system_version, Vx_no_window_manager)
550 (Vx_resource_class, Vx_resource_name, baud_rate)
551 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
552 (history_delete_duplicates, inhibit_x_resources)
553 (last_nonmenu_event, load_in_progress, max_specpdl_size)
554 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
555 (use_dialog_box, use_file_dialog): Remove declaration. Include
556 globals.h.
557 * keymap.h (Voverriding_local_map)
558 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
559 declaration.
560 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
561 (Vinput_method_function, Vkey_translation_map)
562 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
563 (do_mouse_tracking, extra_keyboard_modifiers)
564 (num_nonmacro_input_events): Remove declaration.
565 * intervals.h (Vchar_property_alias_alist)
566 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
567 (Vtext_property_default_nonsticky): Remove declaration.
568 * gtkutil.h (x_gtk_file_dialog_help_text)
569 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
570 (x_gtk_whole_detached_tool_bar): Remove declaration.
571 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
572 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
573 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
574 (focus_follows_mouse): Remove declaration.
575 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
576 (Vignore_relative_composition, Votf_script_alist)
577 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
578 declaration.
579 * font.h (Vfont_log): Remove declaration.
580 * dosfns.h (Vdos_display_scancodes, Vdos_version)
581 (Vdos_windows_version, dos_codepage, dos_country_code)
582 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
583 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
584 declaration.
585 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
586 declaration.
587 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
588 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
589 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
590 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
591 (inverse_video, mode_line_in_non_selected_windows)
592 (tool_bar_button_relief, tool_bar_max_label_size)
593 (underline_minimum_offset)
594 (unibyte_display_via_language_environment, x_stretch_cursor_p):
595 Remove declaration.
596 * composite.h (Vauto_composition_function)
597 (Vcomposition_function_table): Remove declaration.
598 * commands.h (Vexecuting_kbd_macro)
599 (Vminibuffer_local_completion_map)
600 (Vminibuffer_local_filename_completion_map)
601 (Vminibuffer_local_filename_must_match_map)
602 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
603 (Vminibuffer_local_ns_map, Vthis_command)
604 (Vunread_command_events, cursor_in_echo_area)
605 (last_command_event, last_nonmenu_event, unread_command_char):
606 Remove declaration.
607 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
608 (Vdefault_file_name_coding_system)
609 (Vdefault_process_coding_system, Vfile_name_coding_system)
610 (Vlast_coding_system_used, Vlocale_coding_system)
611 (Vselect_safe_coding_system_function)
612 (Vtranslation_table_for_input, coding_system_require_warning)
613 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
614 (eol_mnemonic_unix, inherit_process_coding_system): Remove
615 declaration.
616 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
617 declaration.
618 * character.h (Vauto_fill_chars, Vchar_direction_table)
619 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
620 (Vscript_representative_chars, Vtranslation_table_vector)
621 (Vunicode_category_table): Remove declaration.
622 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
623 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
624 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
625 (inhibit_modification_hooks): Remove declaration.
626 * xterm.c (syms_of_xterm): Update.
627 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
628 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
629 (x_mouse_click_focus_ignore_position)
630 (x_underline_at_descent_line)
631 (x_use_underline_position_properties): Remove.
632 * xsmfns.c (syms_of_xsmfns): Update.
633 (Vx_session_id, Vx_session_previous_id): Remove.
634 * xsettings.c (syms_of_xsettings): Update.
635 (Vxft_settings, use_system_font): Remove.
636 * xselect.c (syms_of_xselect): Update.
637 (Vselection_converter_alist, Vx_lost_selection_functions)
638 (Vx_sent_selection_functions, x_selection_timeout): Remove.
639 * xfns.c (syms_of_xfns): Update.
640 (Vgtk_version_string, Vmotif_version_string)
641 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
642 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
643 (Vx_no_window_manager, Vx_nontext_pointer_shape)
644 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
645 (Vx_sensitive_text_pointer_shape)
646 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
647 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
648 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
649 Remove.
650 * xfaces.c (syms_of_xfaces): Update.
651 (Vface_default_stipple, Vface_font_rescale_alist)
652 (Vface_ignored_fonts, Vface_new_frame_defaults)
653 (Vface_remapping_alist, Vfont_list_limit)
654 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
655 * xdisp.c (syms_of_xdisp): Update.
656 (Vauto_resize_tool_bars, Vblink_cursor_alist)
657 (Vdisplay_pixels_per_inch, Vfontification_functions)
658 (Vframe_title_format, Vglobal_mode_string)
659 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
660 (Vicon_title_format, Vinhibit_redisplay)
661 (Vline_number_display_limit, Vline_prefix)
662 (Vmax_mini_window_height, Vmenu_bar_update_hook)
663 (Vmenu_updating_frame, Vmessage_log_max)
664 (Vmouse_autoselect_window, Vnobreak_char_display)
665 (Voverlay_arrow_position, Voverlay_arrow_string)
666 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
667 (Vresize_mini_windows, Vshow_trailing_whitespace)
668 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
669 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
670 (Vwindow_scroll_functions, Vwindow_size_change_functions)
671 (Vwindow_text_change_functions, Vwrap_prefix)
672 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
673 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
674 (highlight_nonselected_windows, hscroll_margin)
675 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
676 (inhibit_menubar_update, inhibit_try_cursor_movement)
677 (inhibit_try_window_id, inhibit_try_window_reusing)
678 (line_number_display_limit_width)
679 (make_cursor_line_fully_visible_p, message_truncate_lines)
680 (mode_line_inverse_video, multiple_frames, overline_margin)
681 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
682 (tool_bar_max_label_size, underline_minimum_offset)
683 (unibyte_display_via_language_environment, x_stretch_cursor_p):
684 Remove.
685 * window.c (syms_of_window): Update.
686 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
687 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
688 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
689 (Vwindow_point_insertion_type, auto_window_vscroll_p)
690 (mode_line_in_non_selected_windows, next_screen_context_lines)
691 (window_min_height, window_min_width): Remove.
692 (scroll_margin): Remove declaration.
693 * w32term.c (syms_of_w32term): Update.
694 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
695 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
696 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
697 (w32_use_visible_system_caret, x_underline_at_descent_line)
698 (x_use_underline_position_properties): Remove.
699 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
700 Remove declaration.
701 * w32select.c (syms_of_w32select): Update.
702 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
703 * w32proc.c (syms_of_ntproc): Update.
704 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
705 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
706 (Vw32_start_process_inherit_error_mode)
707 (Vw32_start_process_share_console)
708 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
709 (Vsystem_name): Remove declaration.
710 * w32font.c (syms_of_w32font): Update.
711 (Vw32_charset_info_alist): Remove.
712 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
713 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
714 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
715 (Vw32_enable_palette, Vw32_lwindow_modifier)
716 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
717 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
718 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
719 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
720 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
721 (Vx_no_window_manager, Vx_nontext_pointer_shape)
722 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
723 (Vx_sensitive_text_pointer_shape)
724 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
725 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
726 (w32_mouse_move_interval)
727 (w32_pass_extra_mouse_buttons_to_system)
728 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
729 (w32_strict_fontnames, w32_strict_painting): Remove.
730 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
731 (Vw32_recognize_altgr, Vwindow_system_version)
732 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
733 declaration.
734 * w32console.c (syms_of_ntterm): Update.
735 (w32_use_full_screen_buffer): Remove.
736 (Vtty_defined_color_alist): Remove declaration.
737 * w16select.c (syms_of_win16select): Update.
738 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
739 * undo.c (syms_of_undo): Update.
740 (Vundo_outer_limit, Vundo_outer_limit_function)
741 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
742 Remove.
743 * textprop.c (syms_of_textprop): Update.
744 (Vchar_property_alias_alist, Vdefault_text_properties)
745 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
746 Remove.
747 * terminal.c (syms_of_terminal): Update.
748 (Vdelete_terminal_functions, Vring_bell_function): Remove.
749 * term.c (syms_of_term): Update.
750 (Vresume_tty_functions, Vsuspend_tty_functions)
751 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
752 Remove.
753 * syntax.c (syms_of_syntax): Update.
754 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
755 (open_paren_in_column_0_is_defun_start)
756 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
757 (words_include_escapes): Remove.
758 * search.c (syms_of_search): Update.
759 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
760 * process.c (syms_of_process): Update.
761 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
762 (delete_exited_processes): Remove.
763 * print.c (syms_of_print): Update.
764 (Vfloat_output_format, Vprint_charset_text_property)
765 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
766 (Vprint_length, Vprint_level, Vprint_number_table)
767 (Vstandard_output, print_escape_multibyte)
768 (print_escape_newlines, print_escape_nonascii, print_quoted):
769 Remove.
770 * msdos.c (syms_of_msdos): Update.
771 (Vdos_unsupported_char_glyph): Remove.
772 (unibyte_display_via_language_environment): Remove declaration.
773 * minibuf.c (syms_of_minibuf): Update.
774 (Vcompletion_regexp_list, Vhistory_add_new_input)
775 (Vhistory_length, Vminibuffer_completing_file_name)
776 (Vminibuffer_completion_confirm)
777 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
778 (Vminibuffer_exit_hook, Vminibuffer_help_form)
779 (Vminibuffer_history_position, Vminibuffer_history_variable)
780 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
781 (Vread_buffer_function, Vread_expression_map)
782 (completion_ignore_case, enable_recursive_minibuffers)
783 (history_delete_duplicates, minibuffer_allow_text_properties)
784 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
785 Remove.
786 * marker.c (syms_of_marker): Update.
787 (byte_debug_flag): Remove.
788 * macros.c (syms_of_macros): Update.
789 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
790 * lread.c (syms_of_lread): Update.
791 (Vafter_load_alist, Vbyte_boolean_vars)
792 (Vbytecomp_version_regexp, Vcurrent_load_list)
793 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
794 (Vload_history, Vload_path, Vload_read_function)
795 (Vload_source_file_function, Vload_suffixes, Vobarray)
796 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
797 (Vread_symbol_positions_list, Vread_with_symbol_positions)
798 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
799 (force_load_messages, load_convert_to_unibyte)
800 (load_dangerous_libraries, load_force_doc_strings)
801 (load_in_progress): Remove.
802 * keymap.c (syms_of_keymap): Update.
803 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
804 (Vminibuffer_local_completion_map)
805 (Vminibuffer_local_filename_completion_map)
806 (Vminibuffer_local_filename_must_match_map)
807 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
808 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
809 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
810 Remove.
811 * keyboard.c (syms_of_keyboard): Update.
812 (Vauto_save_timeout, Vcommand_error_function)
813 (Vcommand_hook_internal, Vdeactivate_mark)
814 (Vdeferred_action_function, Vdeferred_action_list)
815 (Vdisable_point_adjustment, Vdouble_click_time)
816 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
817 (Vfunction_key_map, Vglobal_disable_point_adjustment)
818 (Vhelp_char, Vhelp_event_list, Vhelp_form)
819 (Vinput_method_function, Vinput_method_previous_message)
820 (Vkey_translation_map, Vlast_event_frame)
821 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
822 (Vminibuffer_message_timeout, Voverriding_local_map)
823 (Voverriding_local_map_menu_flag, Vpost_command_hook)
824 (Vpre_command_hook, Vprefix_help_command)
825 (Vsaved_region_selection, Vselect_active_regions)
826 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
827 (Vthis_command, Vthis_command_keys_shift_translated)
828 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
829 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
830 (Vtty_erase_char, Vunread_command_events)
831 (Vunread_input_method_events, Vunread_post_input_method_events)
832 (auto_save_interval, cannot_suspend, do_mouse_tracking)
833 (double_click_fuzz, extra_keyboard_modifiers)
834 (inhibit_local_menu_bar_menus, last_command_event)
835 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
836 (menu_prompting, meta_prefix_char, num_input_keys)
837 (num_nonmacro_input_events, polling_period, unread_command_char):
838 Remove.
839 * insdel.c (syms_of_insdel): Update.
840 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
841 * indent.c (syms_of_indent): Update.
842 (indent_tabs_mode): Remove.
843 * image.c (syms_of_image): Update.
844 (Vimage_cache_eviction_delay, Vimage_types)
845 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
846 (cross_disabled_images): Remove.
847 * fringe.c (syms_of_fringe): Update.
848 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
849 * frame.c (syms_of_frame): Update.
850 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
851 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
852 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
853 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
854 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
855 Remove.
856 * fontset.c (syms_of_fontset): Update.
857 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
858 (Vfontset_alias_alist, Vignore_relative_composition)
859 (Votf_script_alist, Vuse_default_ascent)
860 (Vvertical_centering_font_regexp): Remove.
861 * font.c (syms_of_font): Update.
862 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
863 (Vfont_weight_table, Vfont_width_table): Remove.
864 * fns.c (syms_of_fns): Update.
865 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
866 * filelock.c (syms_of_filelock): Update.
867 (Vtemporary_file_directory): Remove.
868 * fileio.c (syms_of_fileio): Update.
869 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
870 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
871 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
872 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
873 (Vinhibit_file_name_operation, Vset_auto_coding_function)
874 (Vwrite_region_annotate_functions)
875 (Vwrite_region_annotations_so_far)
876 (Vwrite_region_post_annotation_function)
877 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
878 (Vw32_get_true_file_attributes): Remove declaration.
879 * eval.c (syms_of_eval): Update.
880 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
881 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
882 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
883 (debug_on_next_call, debug_on_quit, debugger_may_continue)
884 (max_lisp_eval_depth, max_specpdl_size): Remove.
885 * emacs.c (syms_of_emacs): Update.
886 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
887 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
888 (Vinstallation_directory, Vinvocation_directory)
889 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
890 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
891 (Vsystem_configuration, Vsystem_configuration_options)
892 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
893 (inhibit_x_resources, noninteractive1): Remove.
894 * editfns.c (syms_of_editfns): Update.
895 (Vbuffer_access_fontified_property)
896 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
897 (Voperating_system_release, Vsystem_name, Vuser_full_name)
898 (Vuser_login_name, Vuser_real_login_name): Remove.
899 * dosfns.c (syms_of_dosfns): Update.
900 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
901 (dos_codepage, dos_country_code, dos_decimal_point)
902 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
903 (dos_super_key, dos_timezone_offset): Remove.
904 * doc.c (syms_of_doc): Update.
905 (Vbuild_files, Vdoc_file_name): Remove.
906 * dispnew.c (syms_of_display): Update.
907 (Vglyph_table, Vinitial_window_system)
908 (Vredisplay_preemption_period, Vstandard_display_table)
909 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
910 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
911 * dired.c (syms_of_dired): Update.
912 (Vcompletion_ignored_extensions): Remove.
913 (Vw32_get_true_file_attributes): Remove declaration.
914 * dbusbind.c (syms_of_dbusbind): Update.
915 (Vdbus_debug, Vdbus_registered_buses)
916 (Vdbus_registered_objects_table): Remove.
917 * data.c (syms_of_data): Update.
918 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
919 * composite.c (syms_of_composite): Update.
920 (Vauto_composition_function, Vauto_composition_mode)
921 (Vcompose_chars_after_function, Vcomposition_function_table):
922 Remove.
923 * coding.c (syms_of_coding): Update.
924 (Vcharset_revision_table, Vcoding_category_list)
925 (Vcoding_system_alist, Vcoding_system_for_read)
926 (Vcoding_system_for_write, Vcoding_system_list)
927 (Vdefault_process_coding_system, Venable_character_translation)
928 (Vfile_coding_system_alist, Vlast_code_conversion_error)
929 (Vlast_coding_system_used, Vlatin_extra_code_table)
930 (Vlocale_coding_system, Vnetwork_coding_system_alist)
931 (Vprocess_coding_system_alist)
932 (Vselect_safe_coding_system_function)
933 (Vstandard_translation_table_for_decode)
934 (Vstandard_translation_table_for_encode)
935 (Vtranslation_table_for_input, coding_system_require_warning)
936 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
937 (eol_mnemonic_unix, inherit_process_coding_system)
938 (inhibit_eol_conversion, inhibit_iso_escape_detection)
939 (inhibit_null_byte_detection): Remove.
940 * cmds.c (syms_of_cmds): Update.
941 (Vpost_self_insert_hook): Remove.
942 * charset.c (syms_of_charset): Update.
943 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
944 (inhibit_load_charset_map): Remove.
945 * character.c (syms_of_character): Update.
946 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
947 (Vchar_width_table, Vprintable_chars)
948 (Vscript_representative_chars, Vtranslation_table_vector)
949 (Vunicode_category_table): Remove.
950 * ccl.c (syms_of_ccl): Update.
951 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
952 (Vtranslation_hash_table_vector): Remove.
953 * category.c (syms_of_category): Update.
954 (Vword_combining_categories, Vword_separating_categories): Remove.
955 * callproc.c (syms_of_callproc): Update.
956 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
957 (Vexec_directory, Vexec_path, Vexec_suffixes)
958 (Vinitial_environment, Vprocess_environment)
959 (Vshared_game_score_directory, Vshell_file_name): Remove.
960 * callint.c (syms_of_callint): Update.
961 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
962 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
963 * bytecode.c (syms_of_bytecode): Update.
964 (Vbyte_code_meter, byte_metering_on): Remove.
965 * buffer.c (syms_of_buffer): Update.
966 (Vafter_change_functions, Vbefore_change_functions)
967 (Vchange_major_mode_hook, Vfirst_change_hook)
968 (Vinhibit_read_only, Vkill_buffer_query_functions)
969 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
970 * alloc.c (syms_of_alloc): Update.
971 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
972 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
973 (cons_cells_consed, floats_consed, garbage_collection_messages)
974 (gc_cons_threshold, gcs_done, intervals_consed)
975 (misc_objects_consed, pure_bytes_used, string_chars_consed)
976 (strings_consed, symbols_consed, vector_cells_consed): Remove.
977
978 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
979 (DEFVAR_INT): Assume global is in `globals'.
980 * alloc.c (globals): Define.
981
448c0820
TT
9822011-01-18 Tom Tromey <tromey@redhat.com>
983
984 * image.c (Vimagemagick_render_type): Remove redundant
985 definition.
986
8442d95d
TT
9872011-01-18 Tom Tromey <tromey@redhat.com>
988
989 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
990 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
991 (redisplay_window): Update.
992 (syms_of_xdisp): Update.
993
cab0ba98
TT
9942011-01-18 Tom Tromey <tromey@redhat.com>
995
996 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
997 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
998 Declare.
999 * gtkutil.c (xg_uses_old_file_dialog):
1000 (xg_get_file_with_chooser):
1001 (xg_tool_bar_detach_callback): Don't redeclare globals.
1002
422745d0
TT
10032011-01-18 Tom Tromey <tromey@redhat.com>
1004
1005 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
1006 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
1007
7cae64b4
PE
10082011-01-18 Paul Eggert <eggert@cs.ucla.edu>
1009
1010 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
1011 defined __GNUC__. ../configure now checks for this GCC feature,
1012 which is now also supported by IBM and Oracle compilers.
1013 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
1014 since Solaris malloc returns mult-of-8.
1015
a9faac5c 10162011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
1017
1018 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
1019
a3e44e79 10202011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 1021
6e8e6bf2
PE
1022 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
1023 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
1024 * data.c (Fnumber_to_string): Use it.
1025 * print.c (float_to_string, print_object): Likewise.
1026
4004364e
PE
1027 Include <unistd.h> unilaterally.
1028 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
1029 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
1030 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
1031 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
1032 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
1033 * xterm.c:
1034 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1035 unistd.h is always present now, possibly supplied by gnulib.
1036
e84aba69
PE
1037 * mktime.c: Remove; moving to ../lib.
1038
1e11dbe3
PE
1039 Use gnulib's mktime module.
1040 * deps.mk (mktime.o): Remove rule.
1041
fa2c4f56
PE
1042 Use gnulib's ftoastr module.
1043 * print.c: Include ftoastr.h.
1044 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
1045 Remove; no longer needed.
1046 (float_to_string): Use dtoastr rather than rolling our own code,
1047 which had an off-by-one bug on non-IEEE hosts.
1048
9a514d4a
PE
1049 Automate syncing from gnulib.
1050 * Makefile.in (lib): New macro.
1051 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
1052 ($(lib)/libgnu.a): New rule.
1053 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1054
717c30e0
PE
1055 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1056 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1057 so change the type of 'ign' to unsigned int from int.
1058
8865d794
PE
1059 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1060
4ef36a7b
PE
1061 * xterm.h (struct x_display_info): Remove stray semicolon.
1062 The extra semicolon didn't conform to the C standard.
1063 Problem reported by Sun cc.
1064
6df4097e
PE
1065 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1066 These changes make compilation easier to follow with Sun cc.
1067 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1068 EMACS_INT values without provoking overflow diagnostics.
1069 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1070 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1071 diagnostic with signed left shift.
9fba3563 1072
410ed5c3
PE
1073 * fileio.c (make_temp_name): Remove unreachable code.
1074
97be3ce3
PE
1075 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1076 Previously it was marked by preceding it with "return;", but
1077 Sun cc complains about this.
1078
9fba3563
PE
1079 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1080 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1081 which fixed Bug#2370. Caught by Sun cc.
1082
6dc1d2d3
MR
10832011-01-15 Martin Rudalics <rudalics@gmx.at>
1084
1085 * window.c (inhibit_point_swap): New variable.
1086 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1087 point this time.
1088 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1089 of setting selected_window to nil (Bug#7728).
1090
f853f599
TH
10912011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1092
8dabbfd6
SM
1093 * image.c (imagemagick_load_image, Finit_image_library):
1094 Free intermediate image after creating a MagickWand from it.
1095 Terminate MagickWand environment after image loading.
f853f599 1096
2bc92a93
MA
10972011-01-10 Michael Albinus <michael.albinus@gmx.de>
1098
1099 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1100 unexpected return values.
1101 (Fdbus_register_method): Remove connection initialization.
1102
11032011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
1104
1105 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1106 used by Fdbus_register_service.
1107 (QCdbus_request_name_replace_existing): Likewise.
1108 (QCdbus_request_name_do_not_queue): Likewise.
1109 (QCdbus_request_name_reply_primary_owner): Likewise.
1110 (QCdbus_request_name_reply_in_queue): Likewise.
1111 (QCdbus_request_name_reply_exists): Likewise.
1112 (QCdbus_request_name_reply_already_owner): Likewise.
1113 (Fdbus_register_service): New function.
1114 (Fdbus_register_method): Use Fdbus_register_service to do the name
1115 registration.
1116 (syms_of_dbusbind): Add symbols dbus-register-service,
1117 :allow-replacement, :replace-existing, :do-not-queue,
1118 :primary-owner, :existing, :in-queue and :already-owner.
1119
21a76236
CY
11202011-01-09 Chong Yidong <cyd@stupidchicken.com>
1121
1122 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1123 when removing extra buttons.
1124
3d91e302
CY
11252011-01-08 Chong Yidong <cyd@stupidchicken.com>
1126
1127 * fns.c (Fyes_or_no_p): Doc fix.
1128
0d23ffb5
AS
11292011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1130
1131 * fns.c (Fyes_or_no_p): Add usage.
1132
9dc3366b
GM
11332011-01-08 Glenn Morris <rgm@gnu.org>
1134
d0981f82
GM
1135 * makefile.w32-in ($(EMACS)):
1136 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1137
9dc3366b
GM
1138 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1139 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1140
466cbae9
AS
11412011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1142
1143 * image.c (imagemagick_load_image): Fix some resource leaks and
1144 error handling.
1145
8c51d2a2
CY
11462011-01-07 Chong Yidong <cyd@stupidchicken.com>
1147
1148 * fns.c (Fyes_or_no_p): Accept format string args.
1149
66b7b0fe
GM
11502011-01-07 Glenn Morris <rgm@gnu.org>
1151
1152 * emacs.c (no_site_lisp): New int.
1153 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1154 (main): Set no_site_lisp.
1155 (standard_args): Add --no-site-lisp.
1156 * lisp.h (no_site_lisp): New int.
1157 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1158 directories to Vload_path.
1159
2018939f
AS
11602011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1161
1162 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1163
6ed843e5
MA
11642011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1165
8dabbfd6 1166 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
1167 dont_register_service. Updated docstring accordingly.
1168
3f9b7090
GM
11692011-01-04 Glenn Morris <rgm@gnu.org>
1170
1171 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1172
d82bce4a
EZ
11732011-01-03 Eli Zaretskii <eliz@gnu.org>
1174
1175 * image.c (png_jmpbuf): Remove definition.
1176 (my_png_error, png_load): Don't use png_jmpbuf.
1177
7c420169
CY
11782011-01-02 Eli Zaretskii <eliz@gnu.org>
1179
1180 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1181
11822011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
1183
1184 * image.c <Qlibpng_version>: New variable.
1185 (syms_of_image): Intern and staticpro it. Set its value to the
1186 version of PNG library we were compiled with.
1187 (my_png_error, png_load): Avoid GCC warnings about direct access
1188 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
1189 (png_jmpbuf): New macro.
1190 (my_png_error, png_load): Use it instead of #ifdef'ing according
1191 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 1192
7c420169 11932011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
1194
1195 * .gdbinit (xgetptr): Fix the union+lsb case.
1196 (xbacktrace): Fix the union case.
1197
7c420169 11982011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
1199
1200 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1201 different from selected-window's.
1202
7c420169 12032011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 1204
71fe378d
EZ
1205 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1206 equivalent of a menu item when the key sequence is given by the
1207 `:keys' attribute. (Bug#7662)
1208
2e4ab211
EZ
1209 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1210 the basic faces are supported.
1211
7c420169 12122011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
1213
1214 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1215
7c420169 12162011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
1217
1218 * xdisp.c (Fformat_mode_line): Fix last change.
1219
7c420169 12202011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
1221
1222 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1223 faces (Bug#7587).
1224
7c420169 12252011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
1226
1227 * fileio.c (Fexpand_file_name): One more doc fix.
1228
3afff00e
CY
12292011-01-01 Chong Yidong <cyd@stupidchicken.com>
1230
1231 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1232 image or label in the container.
1233 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1234 (xg_show_toolbar_item): Function deleted.
1235 (xg_tool_item_stale_p): New function.
1236 (update_frame_tool_bar): Calculate tool-bar style once per call.
1237 Instead of hiding text labels, omit them. Don't use
1238 xg_show_toolbar_item; create new GtkToolItems from scratch if
1239 necessary, instead of trying to re-use them. This avoids an
1240 annoying animation when changing tool-bars.
1241
aeb7e951
JD
12422010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1243
1244 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1245 title and buffer filename only for RepresentedFilename.
1246 Handle bad UTF-8 in buffer name (Bug#7517).
1247
5bbb4727
JD
12482010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1249
1250 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1251
1252 * nsfns.m (ns_set_name_iconic): Remove.
1253 (ns_set_name_internal): New function (Bug#7517).
1254 (Vicon_title_format): Extern declare.
1255 (ns_set_name): Call ns_set_name_internal.
1256 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1257 (x_implicitly_set_name): Ditto.
1258 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1259 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1260
f1aab3ff
ŠN
12612010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1262
1263 * window.c (syms_of_window): Add missing defsubr for
1264 window-use-time.
1265
365525b3
AS
12662010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1267
1268 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1269 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1270
59fc5cf9
AS
12712010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1272
2f7c71a1
AS
1273 * buffer.c: Remove unused declarations.
1274 * buffer.h: Likewise.
1275 * charset.h: Likewise.
1276 * composite.h: Likewise.
1277 * dispextern.h: Likewise.
1278 * dispnew.c: Likewise.
1279 * font.h: Likewise.
1280 * fontset.c: Likewise.
1281 * fontset.h: Likewise.
1282 * intervals.h: Likewise.
1283 * keymap.h: Likewise.
1284 * lisp.h: Likewise.
1285 * syntax.c: Likewise.
1286 * syntax.h: Likewise.
1287 * termhooks.h: Likewise.
1288 * window.h: Likewise.
1289 * xsettings.h: Likewise.
1290 * xterm.c: Likewise.
1291 * xterm.h: Likewise.
1292
1293 * chartab.c (sub_char_table_ref): Make static.
1294 * dispnew.c (line_hash_code, required_matrix_height)
1295 (required_matrix_width): Likewise.
1296 * eval.c (interactive_p, apply_lambda): Likewise.
1297 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1298 Likewise.
1299 * font.c (QCadstyle, QCregistry, font_make_spec)
1300 (font_parse_fcname, font_encode_char, font_at): Likewise.
1301 * frame.c (x_frame_get_arg): Likewise.
1302 * keymap.c (get_keyelt): Likewise.
1303 * lread.c (read_filtered_event): Likewise.
1304 * print.c (write_string_1): Likewise.
1305 * window.c (delete_window, window_height, window_width)
1306 (foreach_window): Likewise.
1307 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1308 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1309 (xembed_send_message): Likewise.
1310
1311 * eval.c (run_hook_list_with_args): Delete.
1312 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1313 * terminal.c (get_terminal_param): Likewise.
1314 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1315
c4b607ed
AS
1316 * scroll.c: Fix comment.
1317
59fc5cf9
AS
1318 * dispnew.c (add_window_display_history)
1319 (add_frame_display_history, glyph_row_slice_p)
1320 (find_glyph_row_slice, flush_stdout)
1321 (check_matrix_pointer_lossage, matrix_row)
1322 (check_matrix_invariants, check_window_matrix_pointers)
1323 (check_matrix_pointers, window_to_frame_vpos)
1324 (window_to_frame_hpos): Prototize.
1325 * textprop.c (erase_properties): Likewise.
1326
a65b85b5
SM
13272010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1328
17870c01
SM
1329 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1330 (print_preprocess): Fix handling of uninterned symbols in last change.
1331
a65b85b5
SM
1332 * print.c (print, print_preprocess, print_object): Use a hash table
1333 rather than a linear table for Vprint_number_table.
1334
f13183cf
CY
13352010-12-20 Chong Yidong <cyd@stupidchicken.com>
1336
1337 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1338
94975270
CY
13392010-12-20 Chong Yidong <cyd@stupidchicken.com>
1340
1341 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1342 (parse_tool_bar_item): Use it to obtain image separators for
1343 displays not using native tool-bar separators.
1344
1345 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1346 specially, since this is now done in parse_tool_bar_item.
1347
ef1b0ba7
SM
13482010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1349
1350 Minor clean up to silence some gcc warnings.
1351 * window.c (Fset_window_buffer):
1352 * xterm.c (x_set_frame_alpha): Restructure code to silence
1353 compiler warning.
1354 (handle_one_xevent): Remove unused var `p'.
1355 (do_ewmh_fullscreen): Remove unused var `lval'.
1356 (xembed_set_info): Remove unused var `atom'.
1357 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1358 compiler warning.
1359 * fontset.c (fontset_id_valid_p, dump_fontset):
1360 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1361 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1362 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1363 label only when it's used.
1364 * image.c (x_create_bitmap_from_xpm_data):
1365 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1366 its callers.
1367 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1368 `consumed_chars'.
1369 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1370 (decode_coding_emacs_mule): Remove unused label `retry'.
1371 (detect_eol): Add parens to silence compiler warning.
1372 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1373 it's used to silence the compiler.
1374 (make_number): Modernize k&r declaration.
1375 (mark_char_table): Add parens to silence compiler warning.
1376
4039c786
CY
13772010-12-17 Chong Yidong <cyd@stupidchicken.com>
1378
1379 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1380 tool-bar maps.
1381 (menu_separator_name_p): New function, from gtkutil.c.
1382 (separator_names): Move from gtkutil.c.
1383
1384 * keyboard.h (menu_separator_name_p): Add prototype.
1385
1386 * gtkutil.c (XG_BIN_CHILD): New macro.
1387 (xg_get_menu_item_label, xg_update_menubar)
1388 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1389 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1390 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
1391 (create_menus, xg_update_submenu, update_frame_tool_bar):
1392 Use menu_separator_name_p.
4039c786
CY
1393
1394 * nsmenu.m (name_is_separator): Function deleted.
1395 (addItemWithWidgetValue): Use menu_separator_name_p.
1396
1397 * w32menu.c (name_is_separator): Function deleted.
1398 (add_menu_item): Use menu_separator_name_p.
1399
aa936e8e
JD
14002010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1401
1402 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1403 same as the background, use the face forground as cursor.
1404
f49d1f52 14052010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
1406
1407 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1408
f49d1f52 14092010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 1410
f0559026
EZ
1411 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1412 (face_before_or_after_it_pos, next_element_from_string)
1413 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1414 calculations of maximum string length before calling
1415 string_char_and_length and STRING_CHAR_AND_LENGTH.
1416 (string_char_and_length): Update commentary: MAXLEN is no longer
1417 needed.
1418
f49d1f52 14192010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
1420
1421 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1422 as (Qsave_session arg).
1423
1424 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1425 (smc_die_CB): Make an event with arg Qt.
1426 (Fhandle_save_session): If event has Qt as argument,
1427 call Fkill_emacs (Bug#7552).
1428
f49d1f52
SM
14292010-12-13 Chong Yidong <cyd@stupidchicken.com>
1430
1431 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1432
14332010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
1434
1435 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1436
f49d1f52 14372010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
1438
1439 * dispextern.h (struct it): New member overlay_strings_charpos.
1440
1441 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1442 charpos where we computed n_overlay_strings.
1443 (next_overlay_string): Load overlay strings at recorded position,
1444 which may not be the same as the iterator's charpos (Bug#7016).
1445
f49d1f52 14462010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
1447
1448 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1449 obscured due to a vscroll (Bug#7537).
1450
f49d1f52 14512010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
1452
1453 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1454
1455 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1456 Use FRAME_TOOLBAR_HEIGHT.
1457 (x_set_offset): Handle XNegative and YNegative in
1458 f->size_hint_flags (Bug#7510).
1459
39321b94
EZ
14602010-12-11 Eli Zaretskii <eliz@gnu.org>
1461
1462 * w32fns.c (Fx_show_tip): Call try_window with last argument
1463 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1464 solved. Round up the tip height to an integral multiple of the
1465 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1466 (Bug#7398)
1467
ec1b9b17
GM
14682010-12-08 Glenn Morris <rgm@gnu.org>
1469
1470 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1471
3c2317e8
LMI
14722010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1473
1474 * xml.c (parse_region): Ignore blank HTML nodes.
1475 (make_dom): Return CDATA sections (like <style>foo</style>) as
1476 text nodes.
1477
bba3e508
SM
14782010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1479
1480 * lread.c (read1): Allow newstyle unquote outside of backquote.
1481 Disallow old-style backquotes inside new-style backquotes.
1482 Don't count unquotes to figure out when we're "syntactically inside
1483 but semantically outside of a backquote" any more.
1484 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1485 to all contexts.
1486
d23d8608
CY
14872010-12-05 Chong Yidong <cyd@stupidchicken.com>
1488
1489 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1490
d6a003a8
AS
14912010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1492
1493 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1494 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1495 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1496
201ef780
AS
14972010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1498
1499 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1500 bit-field.
1501 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1502 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1503 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1504 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1505 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1506 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1507 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1508 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1509 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1510 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1511 * m/hp800.h: Remove file.
1512 * m/mips.h: Remove file.
1513
146490c3
JD
15142010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1515
1516 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1517 with cursor color and draw a rectangle around the image (Bug#7412).
1518
babc8f0d
AS
15192010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1520
1521 * frame.c (x_set_font): Remove unused variable.
1522
9583e9a0
JD
15232010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1524
dd723bbd
JD
1525 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1526
9583e9a0
JD
1527 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1528 drawing text under filled box cursor (Bug#7479).
1529
07976ae3 15302010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
1531
1532 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1533 i.e. integer.
bba3e508 1534 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
1535 (init_charset_once): Likewise.
1536
bba3e508
SM
1537 * charset.h (emacs_mule_charset): Adjust the prototype.
1538 Delete duplicated extern.
b84ae584
KH
1539
1540 * coding.c (emacs_mule_char): Adjust for the change of
1541 emacs_mule_charset.
1542
1543 * lread.c (read_emacs_mule_char): Adjust for the change of
1544 emacs_mule_charset.
1545
07976ae3 15462010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
1547
1548 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1549 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1550
07976ae3 15512010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
1552
1553 * alloc.c (mark_terminals): Ensure that the image cache is marked
1554 even if the terminal object was marked earlier (Bug#6301).
1555
35f1de62
CY
15562010-11-21 Chong Yidong <cyd@stupidchicken.com>
1557
1558 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1559
07976ae3 15602010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
1561
1562 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1563 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1564 Use 23 as menubar height if 0. (Bug#7425).
1565
8547874a
EZ
15662010-11-26 Eli Zaretskii <eliz@gnu.org>
1567
228482b2
EZ
1568 * xdisp.c (set_message_1): Force paragraph direction in echo area
1569 be left-to-right.
1570
8547874a
EZ
1571 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1572 when the click is on the header or mode line.
1573
1e2dddbe
EZ
15742010-11-25 Eli Zaretskii <eliz@gnu.org>
1575
1576 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1577 `cursor' property of the first character in overlay strings.
12365240 1578 (Bug#7474) (Bug#7481)
1e2dddbe 1579
50795d1f
JD
15802010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1581
1582 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1583 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
1584 (keyDown): Parse left and right keys separately (Bug#7458).
1585 Compare Left key masks exactly (Bug#7458).
50795d1f 1586
f8ab8c1f
EZ
15872010-11-23 Eli Zaretskii <eliz@gnu.org>
1588
1589 * intervals.c (temp_set_point_both): Define before calling, to
1590 avoid GCC warnings.
1591
2e8a4797
DN
15922010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1593
b29116ef
DN
1594 * nsmenu.m: Use #include <config.h> instead of "config.h".
1595
b932f8b1
DN
1596 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1597 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1598 Move declarations ...
1599 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1600 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1601 ... here.
1602
42c8bc9b
DN
1603 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1604 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1605 (gdb_pvec_type):
1606 * print.c (print_output_debug_flag):
1607 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1608 (safe_debug_print): New declaration.
1609
2e8a4797
DN
1610 * xterm.c:
1611 * systty.h:
1612 * sound.c: Include <sys/ioctl.h> unconditionally.
1613
b609f591
YM
16142010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1615
1616 * alloc.c (mark_maybe_object): Return early if given a Lisp
1617 integer (Bug#6301).
1618
731e263a
KB
16192010-11-21 Ken Brown <kbrown@cornell.edu>
1620
1621 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1622
b7d1e144
JD
16232010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1624
1625 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1626 Define (Bug#7458).
1627 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1628 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1629 NSRightControlKeyMask also (Bug#7458).
1630 (keyDown): Ditto (Bug#7458).
1631 (syms_of_nsterm): Defvar ns-right-command-modifier and
1632 ns-right-control-modifier (Bug#7458).
1633
b7982059
DN
16342010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1635
bee3419f
DN
1636 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1637 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1638
b7982059
DN
1639 * intervals.h (temp_set_point, temp_set_point_both):
1640 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1641
01664ed1
KB
16422010-11-20 Ken Brown <kbrown@cornell.edu>
1643
1644 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1645
7c2d713b
EZ
16462010-11-20 Eli Zaretskii <eliz@gnu.org>
1647
1648 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1649 \xNNNNNN for hex-code display of glyphless characters.
1650
d2bd5189
JD
16512010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1652
1653 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1654 Set important to ! vert_only.
1655 (xg_show_toolbar_item): Don't show label horizontally if
1656 tool item isn't important.
1657 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1658 xg_make_tool_item, or update important on existing tool item.
1659
1660 * keyboard.c (QCvert_only): New variable.
1661 (parse_tool_bar_item): Check for QCvert_only.
1662 (syms_of_keyboard): Initialize QCvert_only.
1663
1664 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1665
d9a95e67
EZ
16662010-11-20 Eli Zaretskii <eliz@gnu.org>
1667
1668 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1669 same in-line.
1670
b6557553
AS
16712010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1672
1673 * xfaces.c (lookup_face): Make static.
1674 * dispnew.c (copy_row_except_pointers): Likewise.
1675 * syntax.c (dec_bytepos): Likewise.
1676 (inc_bytepos): Remove.
1677 * dispextern.h (lookup_face): Remove declaration.
1678
f48fe1f0
EZ
16792010-11-19 Eli Zaretskii <eliz@gnu.org>
1680
1681 * xdisp.c (set_cursor_from_row): Display cursor after all the
1682 glyphs that come from an overlay. Don't overstep the last glyph
1683 when skipping glyphs from an overlay. (Bug#6687)
1684
654ef137
DN
16852010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1686
84dfc8a7
DN
1687 * alloc.c (refill_memory_reserve): Move declaration ...
1688 * lisp.h (refill_memory_reserve): ... here.
1689
94fa3833
DN
1690 * strftime.c (_strftime_copytm): Add declaration.
1691
dde990a0
DN
1692 * callproc.c (syms_of_callproc): Use intern_c_string.
1693
50c77428
DN
1694 Move declarations from .c files to .h files.
1695 * process.c (timers_run):
1696 * minibuf.c (quit_char):
1697 * lread.c (read_emacs_mule_char):
1698 * keyboard.c (minibuf_level, message_enable_multibyte)
1699 (pending_malloc_warning):
1700 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1701 (Qonly): Remove declarations.
1702 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1703 (Vselect_active_regions):
1704 * keyboard.h (timers_run): Add declarations.
1705
654ef137
DN
1706 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1707 (tm_diff): Convert definitions to standard C.
1708 (extra_args_spec_iso): Remove, unused.
1709
4a47c275 17102010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
1711
1712 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1713
1714 * config.in (HAVE_G_TYPE_INIT): New symbol.
1715
4a47c275 17162010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
1717
1718 * lread.c (Fload): Mention `load-in-progress' and
1719 `load-file-name'. (Bug#7346)
1720
86520d8c
EZ
1721 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1722 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1723 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1724 subprocesses. Use buffer_free only ifdef subprocesses.
1725
1726 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1727 the subprocesses version, not in the non-subprocesses one.
1728
794a4b6d
EZ
1729 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1730
146d267b
EZ
17312010-11-17 Eli Zaretskii <eliz@gnu.org>
1732
1733 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1734 lines on text-mode terminals. (bug#7417)
1735
fad0d565
SM
17362010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1737
1738 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1739 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1740
6b4bb703
KH
17412010-11-17 Kenichi Handa <handa@m17n.org>
1742
1743 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1744 change (set charset-ID list instead of charset-symbol list).
1745
9173a8fb
CY
17462010-11-16 Chong Yidong <cyd@stupidchicken.com>
1747
1748 * keyboard.c (make_lispy_position): For text area clicks, record Y
1749 pixel position relative to the text area, excluding header line.
1750 Also change X and Y to Lisp_Objects, not pointers; don't return
1751 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1752 buffer_posn_from_coords counting from the start of the text area.
1753 (Fposn_at_x_y, make_lispy_event): Callers changed.
1754
1755 * window.c (coordinates_in_window): Change X and Y to ints rather
1756 than pointers; don't return coordinates via pointers.
1757 (struct check_window_data): Change X and Y from pointers to ints.
1758 (window_from_coordinates): Remove args WX and WY; don't return
1759 coordinates via pointers.
1760 (Fcoordinates_in_window_p, window_from_coordinates):
1761 (check_window_containing, Fwindow_at): Callers changed.
1762 (window_relative_x_coord): New function.
1763
1764 * window.h (window_from_coordinates, window_relative_x_coord):
1765 Update prototypes.
1766
1767 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1768 the start of the text area.
1769
1770 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1771 call. Use window_relative_x_coord.
1772 (note_mouse_highlight): Change window_from_coordinates call.
1773
1774 * w32term.c (w32_read_socket):
1775 * msdos.c (dos_rawgetc):
1776 * xterm.c (handle_one_xevent): Likewise.
1777
d2762c86
DN
17782010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1779
1780 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1781 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1782 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1783 Convert definitions to standard C.
1784 * regex.c: Do not include <stdlib.h>, config.h does it.
1785 Include unistd.h.
1786 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1787 (regerror, regfree): Convert definitions to standard C.
1788 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1789 (__mktime_internal): Convert definitions to standard C.
1790
c2f0866a
DN
17912010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1792
42a7e7f1
DN
1793 * w32proc.c:
1794 * w32inevt.c:
1795 * w32heap.c:
1796 * w32.c: Remove config.h include guards.
1797
67802943
DN
1798 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1799 No code changes.
1800
f0e1af46
DN
1801 * process.c: Include <sys/ioctl.h> unconditionally,
1802 keyboard.c already does it.
1803
c2f0866a
DN
1804 * keyboard.c (pending_malloc_warning): Add const to match
1805 definition in alloc.c.
1806 (Fset_input_interrupt_mode): Simplify #ifdefs.
1807
92d3ab7e
DN
18082010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1809
12e610e8
DN
1810 Clean up systty.h macros.
1811 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1812 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1813 definition in all uses.
1814 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1815 * sysdep.c (discard_tty_input, child_setup_tty)
1816 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1817 * emacs.c (shut_down_emacs):
1818 * callproc.c (child_setup):
1819 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1820
92d3ab7e
DN
1821 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1822
a3e6bad4
CY
18232010-11-14 Chong Yidong <cyd@stupidchicken.com>
1824
1825 * w32fns.c (Fx_create_frame):
1826 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1827 resource here; it's now done at startup.
1828
5a232ffb
J
18292010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1830
1831 * xterm.c (set_wm_state): Add Qnil to final cons.
1832
1833 * xselect.c (x_send_client_event): Remove unused variables cons and
1834 size.
1835
24021b38
YM
18362010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1837
1838 * keyboard.c (modify_event_symbol) : Add const to array elements of
1839 arg NAME_TABLE.
1840 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1841 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1842 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1843 Add const to array elements.
1844 (scroll_bar_parts): Make static. Fix position of const.
1845
1846 * w32fns.c (lispy_function_keys): Add const to extern.
1847
1848 * w32inevt.c (lispy_function_keys): Likewise.
1849
afa42fe3
CY
18502010-11-14 Chong Yidong <cyd@stupidchicken.com>
1851
1852 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1853 resource here; it's now done at startup.
1854
53260a94
DN
18552010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1856
c865c575 1857 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 1858
c865c575 1859 Fix compilation on Solaris.
ff2e8052
DN
1860 * sysdep.c: Do not #include <term.h>.
1861 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1862
53260a94
DN
1863 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1864
933e29ff
J
18652010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1866
1867 * xterm.c (set_wm_state): Don't put Atom in cons, call
1868 make_fixnum_or_float on them first.
1869 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1870 Xatom_net_supported correctly.
1871
1872 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1873 (Fx_send_client_event): to here.
1874
a048073e
MR
18752010-11-13 Martin Rudalics <rudalics@gmx.at>
1876
1877 * window.c (Fwindow_use_time): New function.
1878
0eb025fb
EZ
18792010-11-13 Eli Zaretskii <eliz@gnu.org>
1880
1881 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1882 zero-width characters.
1883
1884 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1885
1886 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1887 box before drawing the glyphs inside it.
1888
1889 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1890
bba3e508
SM
1891 * dispextern.h (enum glyphless_display_method):
1892 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1893 All users changed.
0eb025fb 1894
bba3e508
SM
1895 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1896 Fix comments.
0eb025fb
EZ
1897 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1898 whitespace in "[]", to simulate a box. Don't use uninitialized
1899 variable `width'.
1900
c869cc37
JD
19012010-11-11 Julien Danjou <julien@danjou.info>
1902
2d9074ba
JD
1903 * xsettings.c (init_xsettings): Use already fetch atoms.
1904
1905 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1906 from dpyinfo.
1907
1908 * xselect.c (Fx_send_client_event): Split and create
1909 x_send_client_event.
1910
1911 * lisp.h: Do not EXFUN Fx_send_client_event.
1912
1913 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1914 from dpyinfo.
1915 (wm_supports): Use atoms from dpyinfo.
1916 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1917 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1918 (xembed_set_info): Use atoms from dpyinfo.
1919 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1920 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1921 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1922 Get all atoms in one round-trip.
1923 (set_wm_state): Use x_send_client_event rather than
1924 Fx_send_client_event, using Atom directly.
1925 (x_ewmh_activate_frame): Ditto.
1926 (x_set_sticky): Pass atoms to set_wm_state.
1927 (do_ewmh_fullscreen): Ditto.
1928
1929
1930 * xterm.h (x_display_info): Add Xatom_net_supported,
1931 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1932 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1933
c869cc37
JD
1934 * xfns.c (Fx_show_tip): Fix typo in docstring.
1935
1a4236ea
SM
19362010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1937
1938 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1939 it's not negative.
1940
3106121c
YM
19412010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1942
1943 * font.c (font_filter_properties): Add const to array elements of
1944 properties args.
1945
1946 * font.h (font_filter_properties): Likewise.
1947
1948 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1949 elements.
1950
1951 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1952
da1fec2b
MA
19532010-11-10 Michael Albinus <michael.albinus@gmx.de>
1954
1955 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1956 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1957 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1958 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1959 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1960
bd6bc222
GM
19612010-11-10 Glenn Morris <rgm@gnu.org>
1962
1963 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1964
c0098065
EZ
19652010-11-09 Eli Zaretskii <eliz@gnu.org>
1966
bd6bc222 1967 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 1968
d607b96b 19692010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
1970
1971 * image.c (free_image): Don't garbage the frame here, since this
1972 function can be called while redisplaying (Bug#7210).
1973 (uncache_image): Garbage the frame here (Bug#6426).
1974
d607b96b 19752010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 1976
d607b96b
SM
1977 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1978 parent is the root window. Check this after traversing window tree.
184765cc 1979
d607b96b 1980 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 1981
d607b96b 1982 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 1983
d607b96b
SM
1984 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1985 before traversing window tree (Bug#5721).
c2e124a9 1986
27f92be7
J
19872010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1988
66b16767
J
1989 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
1990
25f38310
SM
1991 * xdisp.c (note_mode_line_or_margin_highlight):
1992 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 1993
a971c0a7
EZ
19942010-11-06 Eli Zaretskii <eliz@gnu.org>
1995
1996 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
1997 adjust width of tool-tip frame to the width of text, excluding the
1998 stretch glyph at the beginning of R2L glyph rows.
1999
2000 * w32fns.c (Fx_show_tip): Likewise.
2001
80417b95
JD
20022010-11-06 Jan Djärv <jan.h.d@swipnet.se>
2003
2004 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 2005 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 2006
28118eb6
EZ
20072010-11-05 Eli Zaretskii <eliz@gnu.org>
2008
c1fc2d3a 2009 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
2010
2011 * term.c: Remove static mouse_face_* variables. All users
2012 changed.
2013 (term_show_mouse_face, term_clear_mouse_face)
2014 (fast_find_position, term_mouse_highlight): Functions deleted.
2015 (tty_draw_row_with_mouse_face): New function.
2016 (term_mouse_movement): Call note_mouse_highlight instead of
2017 term_mouse_highlight.
2018
bbf534ce
EZ
2019 * nsterm.m (ns_update_window_begin, ns_update_window_end)
2020 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
2021 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
2022 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
2023 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
2024 Replace Display_Info with Mouse_HLInfo everywhere where
2025 mouse_face_* members were accessed for mouse highlight purposes.
2026
2027 * xterm.c (x_update_window_begin, x_update_window_end)
2028 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
2029 (handle_one_xevent, x_free_frame_resources, x_term_init):
2030 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
2031 members were accessed for mouse highlight purposes.
2032
2033 * w32term.c (x_update_window_begin, x_update_window_end)
2034 (x_update_end, w32_read_socket, x_free_frame_resources)
2035 (w32_initialize_display_info): Replace Display_Info with
2036 Mouse_HLInfo everywhere where mouse_face_* members were accessed
2037 for mouse highlight purposes.
2038
2039 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
2040 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
2041 unless the frame is on a window-system.
c1fc2d3a 2042 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
2043 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
2044 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2045 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2046 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
2047 Replace Display_Info with Mouse_HLInfo everywhere where
2048 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 2049 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
2050 HAVE_WINDOW_SYSTEM conditional.
2051 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
2052 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
2053 (try_window_id) [HAVE_GPM || MSDOS]:
2054 Call x_clear_window_mouse_face.
d009ae66 2055 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
2056 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2057 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2058 calling draw_glyphs directly.
d009ae66
EZ
2059 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2060 (cursor_in_mouse_face_p, rows_from_pos_range)
2061 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2062 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2063 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2064 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2065 fragments.
2066 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2067 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2068 integer.
2069 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
2070 (x_consider_frame_title, tool_bar_lines_needed):
2071 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
2072 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2073 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2074 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2075 part.
d009ae66
EZ
2076
2077 * dispnew.c (mirror_make_current): Set Y coordinate of the
2078 mode-line and header-line rows.
c1fc2d3a
EZ
2079 (init_display): Setup initial frame's output_data for text
2080 terminal frames.
d009ae66 2081
c1fc2d3a
EZ
2082 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2083 its own definition on msdos.c.
d009ae66
EZ
2084
2085 * msdos.c (show_mouse_face, clear_mouse_face)
2086 (fast_find_position, IT_note_mode_line_highlight)
2087 (IT_note_mouse_highlight): Functions deleted.
2088 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2089 instead of IT_note_mouse_highlight.
2090 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
2091 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2092 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2093 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2094 where mouse_face_* members were accessed for mouse highlight
2095 purposes.
2096
2097 * msdos.h (initialize_msdos_display): Add prototype.
2098
2099 * frame.h (MOUSE_HL_INFO): New macro.
2100
2101 * lisp.h (Mouse_HLInfo): New data type.
2102
2103 * xterm.h (struct x_display_info):
2104 * w32term.h (struct w32_display_info):
2105 * nsterm.h (struct ns_display_info):
2106 * termchar.h (struct tty_display_info): Use it instead of
2107 mouse_face_* members.
2108
2109 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2110 1st argument.
2111 (frame_to_window_pixel_xy, note_mouse_highlight)
2112 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2113 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2114 HAVE_WINDOW_SYSTEM conditional.
2115 (draw_row_with_mouse_face): Declare prototype.
2116 (tty_draw_row_with_mouse_face): Declare prototype.
2117
6e8d7c47
EZ
21182010-11-05 Eli Zaretskii <eliz@gnu.org>
2119
bba3e508
SM
2120 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2121 Remove unused variables.
6e8d7c47 2122
f31ba3f0
AR
21232010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2124
2125 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2126 logic pointed out by Eli Zaretskii.
2127
448e17d6
LMI
21282010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2129
0c3a9a9f
GM
2130 * coding.c (coding-category-list): Refer to set-coding-system-priority
2131 instead of the obsolete set-coding-priority in the doc string.
448e17d6 2132
f31ba3f0 2133
3fdebbf9 21342010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
2135
2136 * nsfont.m (nsfont_draw): Correct previous patch to return
2137 correct value.
2138 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2139 don't change the method signature, change the return.
2140
21412010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
2142
2143 * nsfont.m (nsfont_draw)
2144 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 2145 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 2146
17c0c952
JD
21472010-11-03 Julien Danjou <julien@danjou.info>
2148
2149 * image.c (gif_load): Add support for transparency and specified
2150 :background.
2151
b18fad6d
KH
21522010-11-01 Kenichi Handa <handa@m17n.org>
2153
2154 * dispextern.h (lookup_glyphless_char_display): Extern it.
2155
2156 * termhooks.h (struct terminal): New member charset_list.
2157
2158 * coding.c (Fset_terminal_coding_system_internal): Set the
2159 `charset_list' member of struct terminal.
2160
a8039db1 2161 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
2162 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2163
2164 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2165 (lookup_glyphless_char_display): Set it->what at the end.
2166 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2167 (last_glyphless_glyph_merged_face_id): Make them non-static.
2168
a8039db1
JB
2169 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2170 Fix the arg with_background for font->driver->draw.
65b6b59a 2171
a8039db1 21722010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 2173
a8039db1
JB
2174 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2175 Surround chp by parentheses.
0269bd90 2176
a8039db1 21772010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
2178
2179 Implement various display methods for glyphless characters.
2180
2181 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2182 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2183 (Qzero_width): New variables.
2184 (THIN_SPACE_WIDTH): New macro.
2185 (lookup_glyphless_char_display): New funciton.
2186 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2187 (last_glyphless_glyph_merged_face_id): New variables.
2188 (get_next_display_element): Check glyphless characters.
2189 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2190 last_glyphless_glyph_face_id.
2191 (fill_glyphless_glyph_string): New function.
2192 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2193 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2194 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2195 (x_produce_glyphs): If a suitable font is not found, produce a
2196 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2197 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2198 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2199 Qzero_width.
2200 (Vglyphless_char_display): Declare it as a Lisp variable.
2201
2202 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
2203 (struct glyph): Change the size of the member "type" to 3.
2204 Add glyphless to the union slice and u.
b2cca856
KH
2205 (enum display_element_type): Add IT_GLYPHLESS.
2206 (enum glyphless_display_method): New enum.
2207 (struct it): New member glyphless_method.
2208 (Vglyphless_char_display): Extern it.
2209
2210 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2211 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2212
a8039db1 2213 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
2214 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2215
2216 * nsterm.m (ns_draw_glyph_string): Handle the case
2217 GLYPHLESS_GLYPH (the detail is not yet implemented).
2218
c8c59954
GM
22192010-10-31 Glenn Morris <rgm@gnu.org>
2220
80696982
GM
2221 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2222
c8c59954
GM
2223 * frame.c (syms_of_frame) <tool-bar-mode>:
2224 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2225
46eadc7a
CY
22262010-10-31 Chong Yidong <cyd@stupidchicken.com>
2227
2228 * xterm.c (x_connection_closed): Print informative error message
2229 when aborting on GTK. This requires using shut_down_emacs
2230 directly instead of Fkill_emacs.
2231
ffe75e6b
EZ
22322010-10-29 Eli Zaretskii <eliz@gnu.org>
2233
2234 * emacs.c (main): Call syms_of_filelock unconditionally.
2235
2236 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2237 clause, but keep part of it conditioned on CLASH_DETECTION.
2238
9d794026
GM
22392010-10-29 Glenn Morris <rgm@gnu.org>
2240
4f4f2973
GM
2241 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2242 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2243 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2244 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2245 Sync docs between X, W32, NS.
2246
9d794026
GM
2247 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2248 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2249
d46f6bbb
JB
22502010-10-26 Juanma Barranquero <lekktu@gmail.com>
2251
2252 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2253 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2254
2e35f1a2
EZ
22552010-10-26 Eli Zaretskii <eliz@gnu.org>
2256
2257 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 2258 zero or negative. (Bug#7281)
2e35f1a2 2259
8daaeda6
J
22602010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2261
2262 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2263
6a5c2175
GM
22642010-10-25 Glenn Morris <rgm@gnu.org>
2265
2266 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2267
7c051dd8
GM
22682010-10-24 Glenn Morris <rgm@gnu.org>
2269
2270 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2271 (Fx_window_property, Fx_file_dialog):
2272 * xfns.c (Fx_synchronize, Fx_change_window_property)
2273 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2274
23c261f5
CY
22752010-10-24 Chong Yidong <cyd@stupidchicken.com>
2276
2277 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2278
d414c713 22792010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
2280
2281 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2282
2283 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2284 Deprecate use as a boolean flag.
2285
947f5e01
JM
22862010-10-24 Jim Meyering <jim@meyering.net>
2287
2288 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2289
65807d73
GM
22902010-10-24 Glenn Morris <rgm@gnu.org>
2291
f5f25615
GM
2292 * w16select.c (syms_of_win16select) <selection-coding-system>:
2293 <next-selection-coding-system>:
2294 * w32select.c (syms_of_w32select) <selection-coding-system>:
2295 <next-selection-coding-system>:
3646b86d
GM
2296 Sync docs with select.el.
2297
46710489
GM
2298 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2299 Lisp version.
2300
ea883883
GM
2301 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2302 Sync doc with the xterm.c version.
2303
65807d73
GM
2304 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2305 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2306
f3d87560
GM
23072010-10-23 Glenn Morris <rgm@gnu.org>
2308
66c6abf0 2309 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 2310 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 2311 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 2312 <hourglass-delay>: Sync docs with Lisp.
f3d87560 2313
7b7e2c18
EZ
23142010-10-23 Eli Zaretskii <eliz@gnu.org>
2315
d1d6801e 2316 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
2317
2318 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2319 (mouse_face_from_string_pos): New function, replaces
2320 fast_find_string_pos.
2321 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
2322 (note_mode_line_or_margin_highlight): Support bidi-reordered
2323 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
2324 (note_mouse_highlight): When bidi reordering is turned on in a
2325 buffer, call next-single-property-change and
ef1b0ba7
SM
2326 previous-single-property-change with last argument nil.
2327 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 2328 glyph that stands for no text beyond the line end.
1f382a02
EZ
2329 (row_containing_pos): Don't return too early when CHARPOS is in a
2330 bidi-reordered continued line. Return immediately when the first
2331 hit is found in a line that is not continued, or when an exact
2332 match for CHARPOS is found.
d1d6801e
EZ
2333 (rows_from_pos_range): New function.
2334 (mouse_face_from_buffer_pos): Use it instead of calling
2335 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2336 function to support mouse highlight in bidi-reordered lines and
2337 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2338 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2339 that the former is always above the latter or identical to it.
1554d88e 2340 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
2341 (coords_in_mouse_face_p): New function, bidi-aware.
2342 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2343 Call it instead of comparing with mouse-face members of dpyinfo.
2344 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2345 usage of hpos and vpos.
544bbc31 2346
dee186b6
J
23472010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2348
2349 * xrdb.c: Include keyboard.h for MOTIF.
2350
2351 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2352 MOTIF (Bug#7263).
2353
2354 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
2355 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2356 Make ANSI prototypes.
dee186b6 2357
5fb59edb
GM
23582010-10-22 Glenn Morris <rgm@gnu.org>
2359
2360 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2361 Remove ccl and duplicate mouse.
2362
8b78d5e3
CY
23632010-10-21 Chong Yidong <cyd@stupidchicken.com>
2364
2365 * insdel.c (prepare_to_modify_buffer): Don't set
2366 saved-region-selection if modification hooks are disabled.
2367
b8a47412
CY
23682010-10-19 Chong Yidong <cyd@stupidchicken.com>
2369
2370 * cmds.c (Fdelete_char): Doc fix.
2371
ca3fa302 23722010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
2373
2374 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2375
ca3fa302 23762010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
2377
2378 Fix incorrect font metrics when the same font is opened with
2379 different pixelsizes.
2380
2381 * xftfont.c: Include composite.h.
2382 (xftfont_shape): New function.
2383 (syms_of_xftfont): Set xftfont_driver.shape.
2384
c978536f
JD
23852010-10-18 Julien Danjou <julien@danjou.info>
2386
2387 * frame.c (Fframe_pointer_visible_p):
2388 Add `frame-pointer-visible-p' to get the pointer visibility.
2389
4b2d9ec2
LMI
23902010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2391
2392 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2393 non-"EAGAIN"-like error to signal to Emacs that the socket should
2394 be closed.
2395
9cf66cf2
EZ
23962010-10-15 Eli Zaretskii <eliz@gnu.org>
2397
c3911ead
EZ
2398 * unexcoff.c (make_hdr): Fix prototype according to changes in
2399 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2400
9cf66cf2
EZ
2401 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2402
be98da05
TH
24032010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2404
2405 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2406 made building the X menu fail.
cc98b256 2407 (really-oldXMenu): Fix my previous fix.
be98da05 2408
220d91b8 24092010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
2410
2411 Fix handling of font properties on Windows (bug#6303).
2412 * font.c (font_filter_properties): New function, refactored from
2413 ftfont_filter_properties.
2414 * font.h (font_filter_properties): Declare.
2415 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2416 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2417 (w32font_filter_properties): New function.
2418 (w32font_driver): Add w32font_filter_properties.
2419
220d91b8 24202010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 2421
c0943d3d 2422 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
2423 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2424
24f981c9
JB
24252010-10-14 Juanma Barranquero <lekktu@gmail.com>
2426
2427 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2428 * w32font.c (w32_generic_family):
2429 * w32inevt.c (key_event):
2430 * w32menu.c (fill_in_menu):
2431 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2432 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2433 * w32term.c (w32_read_socket): Make static.
2434
850690cc
JB
24352010-10-13 Juanma Barranquero <lekktu@gmail.com>
2436
2437 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2438 prototypes; all callers changed.
2439
5e371708
JB
24402010-10-13 Juanma Barranquero <lekktu@gmail.com>
2441
2442 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2443 (OBJ2): New macro.
2444 (WIN32OBJ, FONTOBJ): Remove.
2445 (OBJ1): Redistribute object files with OBJ2.
2446 (LIBS, $(TEMACS)): Use TLIB2.
2447 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2448 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2449
2e288d54
JB
24502010-10-13 Juanma Barranquero <lekktu@gmail.com>
2451
2452 * emacs.c (Vdynamic_library_alist)
2453 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2454 Doc fix.
2455
2456 * lisp.h (Vdynamic_library_alist): Declare extern.
2457
2458 * image.c (Vimage_library_alist)
2459 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2460 (lookup_image_type): Use Vdynamic_library_alist.
2461 (Finit_image_library): Doc fix.
2462
aba1381b
DN
24632010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2464
2465 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2466 (lispdir): Remove trailing /, update all uses.
2467
4c14013d 24682010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
2469
2470 * nsterm.m (Qleft): Declare.
2471 (ns_right_alternate_modifier): New variable
2472 (NSRightAlternateKeyMask): New define.
2473 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2474 ns_right_alternate_modifier isn't Qleft.
2475 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2476 as emacs modifier for NSRightAlternateKeyMask.
2477 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2478
355cdaf3
LMI
24792010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2480
2481 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2482 gnutls is ready, return EAGAIN as the errno.
2483
4c620157
DN
24842010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2485
edfd76ce
DN
2486 * vm-limit.c:
2487 * unexhp9k800.c:
2488 * unexelf.c:
2489 * unexaix.c:
2490 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2491
a4daeecf
DN
2492 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2493 (PROFILING_LDFLAGS): Remove, not needed anymore.
2494
2cb72a75 2495 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
2496 (CRT_DIR): Move near potential user.
2497 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 2498
4c620157
DN
2499 * sysdep.c (LPASS8): Remove, unused.
2500 (emacs_ospeed): Change from being a global to a local in the only
2501 user: init_baud_rate.
2502
b845653d
LMI
25032010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2504
2505 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 2506 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 2507 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 2508 gnutls_read. This allows us to actually read lots of data from
b845653d 2509 the GnuTLS stream.
2e6c74c5
LMI
2510 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2511 According to the documentation, this is correct, and it seems to
2512 make things work.
b845653d 2513
3625b3e2
CY
25142010-10-09 Chong Yidong <cyd@stupidchicken.com>
2515
2516 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2517
8b1c619f
MA
25182010-10-08 Michael Albinus <michael.albinus@gmx.de>
2519
2520 * keyboard.c: Revert last change; it was not intended to be
2521 synchronized with the trunk.
2522
93d50df8
KH
25232010-10-08 Kenichi Handa <handa@m17n.org>
2524
2b7c9342 2525 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 2526
4628bef1 25272010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
2528
2529 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2530 (Fdbus_init_bus): ... here. (Bug#7113)
2531
4628bef1 25322010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
2533
2534 * buffer.c (before-change-functions, after-change-functions):
2535 Three-year overdue doc fix following 2007-08-13 change.
2536
4628bef1 25372010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
2538
2539 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2540 eol-format, inherit from the system's default.
2541 (complement_process_encoding_system): Make a new coding system
2542 inherit the original eol-format.
2543
4628bef1 25442010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
2545
2546 * coding.c (complement_process_encoding_system): New function.
2547
2548 * coding.h (complement_process_encoding_system): Extern it.
2549
2550 * callproc.c (Fcall_process): Complement the coding system for
2551 encoding arguments.
2552 (Fcall_process_region): Complement the coding system for encoding
2553 the input to the process.
2554
2555 * process.c (Fstart_process): Complement the coding system for
2556 encoding arguments.
2557 (send_process): Complement the coding system for encoding what
2558 sent to the process.
2559
4628bef1 25602010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
2561
2562 * xfont.c (xfont_open): Fix setting of font->average_width from
2563 :avgwidth property (Bug#7123).
2564
4628bef1 25652010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
2566
2567 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2568 is more portable.
2569
2570 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2571 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2572 has not defined SIGIO.
2573
389454fb
CY
25742010-10-08 Chong Yidong <cyd@stupidchicken.com>
2575
2576 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2577 draw the outermost line using the black relief, for legibility.
2578 Omit drawing the four corner pixels.
2579
51b403bd
CY
25802010-10-04 Chong Yidong <cyd@stupidchicken.com>
2581
2582 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2583 (read_key_sequence): Inline echo_prompt.
2584 (echo_dash): Add a dash only if key is continued (Bug#7137).
2585
3e6ae1a4
DN
25862010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2587
2588 Remove O_RDONLY, O_WRONLY definitions, not needed.
2589 * unexcoff.c:
2590 * lread.c:
2591 * fileio.c:
2592 * doc.c:
2593 * callproc.c:
2594 * alloc.c:
2595 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2596
c1ae068b
LMI
25972010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2598
2599 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2600
2601 * gnutls.c: Add property list symbol holders.
2602 (emacs_gnutls_handshake): Clarify how sockets are passed to
2603 GnuTLS.
2604 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2605 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2606 and keyfiles to be a list of file names. Default to "NORMAL" for
2607 the priority string. Improve logging.
2608
e2afe435
GM
26092010-10-03 Glenn Morris <rgm@gnu.org>
2610
2611 * fileio.c (Vdirectory_sep_char): Remove.
2612
dd5ecd6b
DN
26132010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2614
b5437a05
DN
2615 * termhooks.h: Remove #ifdef CONSP.
2616
4777478a
DN
2617 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2618
a3d5088d
DN
2619 Include <fcntl.h> unconditionally.
2620 * termcap.c:
2621 * sysdep.c:
2622 * lread.c:
2623 * keyboard.c:
2624 * filelock.c:
2625 * fileio.c:
2626 * doc.c:
2627 * callproc.c:
2628 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2629 does it.
2630
82719735
DN
2631 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2632
9de940b5
DN
2633 * sysdep.c (flush_pending_output): Remove code, does not do
2634 anything on any platform.
2635
57507bf8 2636 Remove unused code.
bba3e508
SM
2637 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2638 Remove select emulation, all systems support select.
57507bf8
DN
2639 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2640 * process.c (create_process): Remove #if 0 code.
2641
dd5ecd6b
DN
2642 Remove unused arguments for unexec.
2643 The third one is never used, and the last two are always passed as zero.
2644 * emacs.c (unexec): Add declaration.
2645 (Fdump_emacs): Only pass the first two arguments to unexec.
2646 Simplify #ifdef.
2647 * unexw32.c (unexec):
2648 * unexsol.c (unexec):
2649 * unexhp9k800.c (unexec):
2650 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2651 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2652 (find_section): Use const.
2653 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2654 (unexec_error): Declare it NO_RETURN.
2655 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2656 it as an argument, remove data_start and entry_address arguments, unused.
2657 (unexec): Remove bss_start, data_start and
2658 entry_address arguments.
2659 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2660 it as an argument, remove data_start and entry_address arguments, unused.
2661 (unexec): Remove bss_start, data_start and
2662 entry_address arguments.
2663
74f1829d
JB
26642010-10-03 Juanma Barranquero <lekktu@gmail.com>
2665
7f467e14
JB
2666 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2667
74f1829d
JB
2668 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2669 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2670 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2671 Fix typos in docstrings.
2672 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2673 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2674
6926550f
CY
26752010-10-03 Chong Yidong <cyd@stupidchicken.com>
2676
2677 * keyboard.c (command_loop_1): Make sure the mark is really alive
2678 before using it (Bug#7044).
2679
54b65f7b
JB
26802010-10-02 Juanma Barranquero <lekktu@gmail.com>
2681
2682 * makefile.w32-in (tags): Rename target to full-tags.
2683
383ebd15
EZ
26842010-10-02 Eli Zaretskii <eliz@gnu.org>
2685
2686 * emacs.c (main): Remove !WINDOWSNT conditional.
2687 (Fkill_emacs): Don't mention exemption on MS-Windows.
2688
9c524fcb
GM
26892010-10-02 Glenn Morris <rgm@gnu.org>
2690
3226d6ca
GM
2691 * character.c (Fchar_bytes): Remove obsolete function.
2692 (syms_of_character): Remove Schar_bytes.
2693
9c524fcb
GM
2694 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2695 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2696 in batch-mode.
2697 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2698 (kill-emacs-hook): Doc fix.
2699
1b217849
LMI
27002010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2701
2702 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 2703 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
2704 renamed to reflect that these are the libxml functions.
2705
54cc6a83
EZ
27062010-10-01 Eli Zaretskii <eliz@gnu.org>
2707
0ebf79de
EZ
2708 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2709 screen dimensions in tty->Wcm.
2710
54cc6a83
EZ
2711 * xdisp.c (set_cursor_from_row): When the row is truncated and
2712 point is outside the range of displayed characters, position the
2713 cursor inside the scroll margin. (Bug#6349)
2714
321401d1
DN
27152010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2716
4cacd822
DN
2717 Do not include stdlib.h and string.h, config.h does it.
2718 * xfont.c:
2719 * w32term.c:
2720 * w32reg.c:
2721 * w32inevt.c:
2722 * w32heap.c:
2723 * w32console.c:
2724 * w16select.c:
2725 * unexsol.c:
2726 * term.c:
2727 * sound.c:
2728 * scroll.c (m):
2729 * gtkutil.c:
2730 * font.c:
2731 * filelock.c:
2732 * fileio.c:
2733 * dosfns.c:
2734 * dbusbind.c:
2735 * bidi.c:
2736 * callproc.c:
2737 * process.c:
2738 * msdos.c:
2739 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2740
bba3e508
SM
2741 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2742 defines it.
0781e7ab 2743
9bf58201
DN
2744 * process.c: Move #include <pty.h> earlier.
2745 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2746 (pty_name): Move definition later.
2747
088dcc3e
DN
2748 * nsselect.m (syms_of_nsselect):
2749 * nsmenu.m (syms_of_nsmenu):
2750 * nsfns.m (syms_of_nsfns):
2751 * msdos.c (syms_of_msdos):
4cacd822 2752
088dcc3e
DN
2753 * image.c (syms_of_image):
2754 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2755
321401d1
DN
2756 * point.h: Remove, unused.
2757
73077a9a
EZ
27582010-10-01 Eli Zaretskii <eliz@gnu.org>
2759
2760 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2761 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2762 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2763
55e572ef
DN
27642010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2765
2766 * xml.c (parse_string): Use const.
2767
d4b6d95d
LMI
27682010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2769
ef1b0ba7
SM
2770 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2771 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
2772 the level to 8 to produce more useful backtraces for bug reports.
2773
e4b6db12
DN
27742010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2775
2776 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2777
1becef93
JB
27782010-09-30 Juanma Barranquero <lekktu@gmail.com>
2779
2780 * w32console.c (vga_stdcolor_name): Remove unused function;
2781 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2782
df7fcaff
LMI
27832010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2784
bac5cef8
LMI
2785 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2786 (Fgnutls_boot): Start the handshake.
2787 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
2788 (Fgnutls_boot): Remove some debugging messages.
2789 Change indentation throughout to use the Emacs style.
2790 (emacs_gnutls_handshake): Cast the fds to something that's
2791 possibly the expected length.
2792 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 2793
df7fcaff
LMI
2794 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2795
2796 * process.c (make_process): Set the gnutls_p field to zero by
2797 default.
2798 (read_process_output): Always call the gnutls_read function if the
2799 stream is a gnutls stream.
2800 (send_process): Ditto for writes.
2801
2802 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2803 or write anything until the state is GNUTLS_STAGE_READY.
2804 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2805
d585695f
EZ
28062010-09-29 Eli Zaretskii <eliz@gnu.org>
2807
af7ef32d
EZ
2808 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2809 NEUTRAL_DIR.
2810 (handle_invisible_prop, iterate_out_of_display_property)
2811 (next_element_from_buffer): If bidi_it.first_elt is set, call
2812 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2813 (Bug#7128)
2814
d585695f
EZ
2815 * print.c (print_object): Fix format string and argument types for
2816 printing a Lisp_Misc_Marker.
2817
2818 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2819 (load_overlay_strings, get_overlay_strings_1)
2820 (get_overlay_strings, forward_to_next_line_start)
2821 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2822 (get_next_display_element, next_element_from_string)
2823 (next_element_from_c_string, next_element_from_buffer)
2824 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2825 (message_dolog, message_log_check_duplicate, message2_nolog)
2826 (message3, message3_nolog, vmessage, set_message, set_message_1)
2827 (hscroll_window_tree, text_outside_line_unchanged_p)
2828 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2829 (find_last_unchanged_at_beg_row)
2830 (find_first_unchanged_at_end_row, row_containing_pos)
2831 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
2832 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2833 Use EMACS_INT for buffer and string positions.
d585695f
EZ
2834
2835 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2836 (row_containing_pos): Adjust prototype.
2837
2838 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2839 (message2_nolog, set_message): Adjust prototypes.
2840
a6f3211f
SM
28412010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2842
2843 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2844 (Fgnutls_boot): Use SDATA.
2845 (Fgnutls_handshake): Remove unused var `max_log_level'.
2846
e0720500
MA
28472010-09-27 Michael Albinus <michael.albinus@gmx.de>
2848
11a5af7c 2849 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
2850 (Bug#7113)
2851
d8a4b27a
J
28522010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2853
42d3022b
J
2854 * xgselect.c (xg_select): Clear file descriptors not set from
2855 rfds and wfds.
2856
d8a4b27a
J
2857 * process.c (wait_reading_process_output): Add missing FD_CLR
2858 for write_mask (must mirror connect_wait_mask).
2859
8ed70bf3
LMI
28602010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2861
2862 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2863 prefix.
2864 (Fgnutls_boot): Use changed process members. Use log level with a
2865 function parameter to set it. Bring back Emacs-level debugging
2866 messages at log level 1 and 2.
2867
2868 * process.c (make_process): Initialize gnutls_log_level.
2869
2870 * process.h: Add gnutls_log_level and rename x509_cred and
2871 anon_cred to have the gnutls_ prefix for consistency.
2872
2873 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2874
bedf4aab
JB
28752010-09-27 Juanma Barranquero <lekktu@gmail.com>
2876
2877 * w32.c (g_b_init_get_sid_identifier_authority)
2878 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2879 Remove, not used.
2880 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2881 (init_winsock): Remove useless assignment.
2882 (open_process_token, get_token_information, lookup_account_sid)
2883 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2884 (get_security_descriptor_owner, get_security_descriptor_group)
2885 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2886 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2887 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2888 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2889 (unc_volume_file_attributes, convert_from_time_t)
2890 (create_toolhelp32_snapshot, process32_first, process32_next)
2891 (open_thread_token, impersonate_self, revert_to_self)
2892 (get_process_memory_info, get_process_working_set_size)
2893 (global_memory_status, global_memory_status_ex, socket_to_fd)
2894 (shutdown_handler): Make static.
2895
08609ffd
MA
28962010-09-27 Michael Albinus <michael.albinus@gmx.de>
2897
2898 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2899 (xd_pending_messages): Functions removed.
2900 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2901 order to be compatible with add_read_fd. Determine bus from data,
2902 and call xd_read_message just for this bus.
2903 (xd_add_watch): Use xd_read_queued_messages as callback function.
2904 Add data.
2905
2906 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2907
d2e9d0bb
LMI
29082010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2909
ef1b0ba7 2910 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 2911 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 2912
4be9765d
KH
29132010-09-27 Kenichi Handa <handa@m17n.org>
2914
2915 These changes are to remove restriction on the number of glyphs in
2916 one composition.
2917
2918 * dispextern.h (struct glyph): Change the member "slice" to union.
2919 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 2920 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
2921
2922 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2923 instead of glyph->slice.
2924 (marginal_area_string): Likewise.
2925
2926 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2927 glyph->u.cmp.
2928 (append_composite_glyph): Likewise.
2929
2930 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2931 glyph->u.cmp.
2932 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2933 (append_composite_glyph): Likewise.
2934 (fill_image_glyph_string): Use glyph->slice.img instead of
2935 glyph->slice.
2936 (append_glyph, produce_image_glyph, append_stretch_glyph)
2937 (note_mouse_highlight): Likewise.
2938
3fad2ad2
J
29392010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2940
bf05eed6
J
2941 * process.c (add_keyboard_wait_descriptor)
2942 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
2943 (wait_reading_process_output): Don't pass write_mask to select
2944 if SELECT_CANT_DO_WRITE_MASK is defined.
2945 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 2946
3fad2ad2
J
2947 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2948 (delete_write_fd): Declare.
2949
2950 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2951 (write_mask): New variable.
ef1b0ba7 2952 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 2953 (fd_callback_info): New variable.
70e31436
JB
2954 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2955 New functions.
3fad2ad2
J
2956 (Fmake_network_process): FD_SET write_mask.
2957 (deactivate_process): FD_CLR write_mask.
2958 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
2959 check_connect removed. check_write is new. Remove references to gpm.
2960 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
2961 NON_BLOCKING_CONNECT) instead of Connecting.
2962 Loop over file descriptors and call callbacks in fd_callback_info
2963 if file descriptor is ready for I/O.
2964 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2965 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2966 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
2967 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2968 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
2969 (init_process): Initialize write_mask and fd_callback_info.
2970
2971 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2972
2973 * dbusbind.c: Include process.h.
2974 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2975 (xd_read_message_1): New functions.
70e31436
JB
2976 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2977 Handle watch for both read and write.
3fad2ad2
J
2978 (Fdbus_init_bus): Also register xd_toggle_watch.
2979 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2980 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2981 to dbus_connection_flush.
70e31436 2982 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
2983 Call xd_read_message_1 until status is COMPLETE.
2984
dce4c2ac
DN
29852010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2986
2987 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
2988 (init_tty): Reorder code to reduce the number of #ifdefs.
2989 No code changes.
dce4c2ac 2990
8af55556
TZ
29912010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
2992
2993 * process.h: Set up GnuTLS support.
2994
2995 * process.c (make_process, Fstart_process)
2996 (read_process_output, send_process): Set up GnuTLS support for
2997 process input/output file descriptors.
2998
2999 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
3000
3001 * gnutls.c: The source code for GnuTLS support in Emacs.
3002
3003 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
3004
3005 * config.in: Set up GnuTLS support.
3006
3007 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
3008 (obj, LIBES): Set up GnuTLS support.
3009
83e245c4
JB
30102010-09-26 Juanma Barranquero <lekktu@gmail.com>
3011
3012 * w32.c (get_emacs_configuration_options): Fix previous change.
3013
d24ec09a
CY
30142010-09-25 Chong Yidong <cyd@stupidchicken.com>
3015
3016 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
3017 alive before using it (Bug#6977).
3018
b7bdc47c
LMI
30192010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
3020
a952d5f3
LMI
3021 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
3022
3023 * dispextern.h: EMACS_INT/int fixup.
3024
3025 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
3026 fixup.
3027
b7bdc47c
LMI
3028 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
3029
41118bd3
EZ
30302010-09-25 Eli Zaretskii <eliz@gnu.org>
3031
2452438f
EZ
3032 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
3033 (Fselect_window, window_scroll_pixel_based)
3034 (window_scroll_line_based, Frecenter, Fset_window_configuration):
3035 Use EMACS_INT for buffer positions.
3036
3037 * textprop.c (validate_interval_range, interval_of)
3038 (property_change_between_p, Fadd_text_properties)
3039 (set_text_properties_1, Fremove_text_properties)
3040 (Fremove_list_of_text_properties, Ftext_property_any)
3041 (Ftext_property_not_all, copy_text_properties)
3042 (text_property_list, extend_property_ranges)
3043 (verify_interval_modification): Use EMACS_INT for buffer
3044 positions.
3045
f877c546
EZ
3046 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
3047 for buffer positions.
3048
3049 * process.c (read_process_output, send_process)
3050 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
3051 and string positions and size.
3052
da43f021
EZ
3053 * print.c (print_object, print_string, strout): Use EMACS_INT for
3054 string indices.
3055
3056 * minibuf.c (string_to_object): Use EMACS_INT for string position
3057 and size.
3058
3059 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3060
3061 * lread.c <read_from_string_index, read_from_string_index_byte>
3062 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3063 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3064 buffer positions and string length.
3065
41118bd3
EZ
3066 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3067 EMACS_INT.
3068 (echo_truncate, adjust_point_for_property, read_char)
3069 (gen_help_event, make_lispy_event, modify_event_symbol)
3070 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3071 for buffer positions and string length.
3072
3073 * keyboard.h (gen_help_event): Adjust prototype.
3074
3075 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3076
3077 * commands.h <last_point_position>: Declare EMACS_INT.
3078
3079 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3080 (truncate_echo_area): Accept EMACS_INT argument.
3081
3082 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3083
3084 * lisp.h (truncate_echo_area): Adjust prototype.
3085
3086 * composite.c (composition_adjust_point): Return EMACS_INT.
3087
3088 * composite.h (composition_adjust_point): Adjust prototype.
3089
ba3033ee
JB
30902010-09-25 Juanma Barranquero <lekktu@gmail.com>
3091
3092 * process.c (Fmake_network_process): When arg :host is 'local,
3093 use address 127.0.0.1, not name "localhost". (Bug#6781)
3094
4f3a2f8d
EZ
30952010-09-24 Eli Zaretskii <eliz@gnu.org>
3096
5816888b
EZ
3097 * indent.c (Fcurrent_indentation, indented_beyond_p)
3098 (compute_motion): Use EMACS_INT for buffer position variables.
3099
3100 * lisp.h (indented_beyond_p): Adjust prototype.
3101
3102 * buffer.c (overlay_strings): Return EMACS_INT.
3103
3104 * buffer.h (overlay_strings): Adjust prototype.
3105
3106 * region-cache.c (pp_cache): Adjust format to arguments.
3107
3108 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3109 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3110 (verror): Use EMACS_INT for size of allocated buffer.
3111
ace1712c
EZ
3112 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3113 positions.
3114
3115 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
3116 (set_cursor_from_row, find_first_unchanged_at_end_row):
3117 Use EMACS_INT for buffer positions.
ace1712c 3118
f5276b75 3119 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
3120
3121 * dispnew.c (increment_matrix_positions)
3122 (increment_row_positions, copy_glyph_row_contents)
3123 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3124 positions.
3125
3126 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
3127 (increment_matrix_positions, increment_row_positions):
3128 Adjust prototypes.
ace1712c
EZ
3129
3130 * data.c (Faref, Faset): Use EMACS_INT for string length and
3131 positions.
3132
3133 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3134 characters to insert.
3135
3136 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3137 position and size.
3138
4f3a2f8d
EZ
3139 * syntax.c (scan_words, update_syntax_table)
3140 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
3141 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3142 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
3143
3144 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3145
3146 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3147 positions.
3148
db063399
LMI
31492010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3150
f0812d35
LMI
3151 * scroll.c (calculate_scrolling, line_ins_del)
3152 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3153 conversion.
3154
f5c7fc27
LMI
3155 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3156 (region_cache_backward, region_cache_forward)
3157 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3158 conversion.
3159
db063399
LMI
3160 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3161
3162 * eval.c (verror): Fix EMACS_INT/int conversion.
3163
07914cd0 3164 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
3165 (print_preprocess, print_check_string_charset_prop)
3166 (print_object): Fix EMACS_INT/int conversion.
3167
3168 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3169
e6d4aefa
EZ
31702010-09-24 Eli Zaretskii <eliz@gnu.org>
3171
69481da7
EZ
3172 * callproc.c (Fcall_process): Use EMACS_INT for count of
3173 characters read from the subprocess.
3174
61bfec98
EZ
3175 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3176 positions.
3177 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3178 positions.
3179
145582a0
EZ
3180 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3181 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3182 length.
3183 (advance_to_char_boundary, Fset_buffer_multibyte)
3184 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3185 (overlay_touches_p, record_overlay_string, overlay_strings)
3186 (recenter_overlay_lists, fix_start_end_in_overlays)
3187 (modify_overlay, Fmove_overlay, report_overlay_modification)
3188 (evaporate_overlays): Use EMACS_INT for buffer positions.
3189
bba3e508
SM
3190 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3191 Adjust prototypes.
145582a0 3192
446470a9
EZ
3193 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3194 positions.
3195
e6d4aefa
EZ
3196 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3197 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3198 (Fsubstring_no_properties, substring_both, Ffillarray)
3199 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3200 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3201 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3202 (Fmd5): Use EMACS_INT for buffer and string positions and length
3203 variables and arguments.
3204
3205 * lisp.h (substring_both): Adjust prototype.
3206
eb652396
JB
32072010-09-24 Juanma Barranquero <lekktu@gmail.com>
3208
3209 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3210 * w32fns.c (clipboard_sequence_fn): Don't declare.
3211 (globals_of_w32fns): Don't initialize it.
3212
266a86bd 32132010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
3214
3215 * syntax.c (back_comment): Detect the case where a 1-char comment
3216 starter is also the 2nd char of a 2-char comment ender.
3217
266a86bd 32182010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
3219
3220 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3221
40283062
LMI
32222010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3223
db063399
LMI
3224 * eval.c (verror): EMACS_INT/int cleanup.
3225
faf8b5bc
LMI
3226 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3227 unwind_protect more than 2GB worth of functions.
3228
3229 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3230
40283062
LMI
3231 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3232 string and avoid compiler warnings.
3233 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3234 all users.
3235
3236 * lread.c (oblookup): EMACS_INT/int cleanup.
3237
3238 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3239
fe3537c3
EZ
32402010-09-23 Eli Zaretskii <eliz@gnu.org>
3241
3242 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3243
3244 * lisp.h (clip_to_bounds): Adjust prototype.
3245
3246 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3247
0350982f
LMI
32482010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3249
84c9ce05
LMI
3250 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3251
3252 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3253
3254 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3255 cleanup.
3256
0350982f
LMI
3257 * lisp.h: Change the definition of all marker.c functions that
3258 take and return buffer stuff to be EMACS_INT instead of int.
3259
3260 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3261 (buf_charpos_to_bytepos, bytepos_to_charpos)
3262 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3263 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3264 for all buffer positions.
3265
c50bd0d2
CY
32662010-09-23 Chong Yidong <cyd@stupidchicken.com>
3267
3268 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3269 (split_interval_right, find_interval, next_interval)
3270 (delete_node, delete_interval, interval_deletion_adjustment)
3271 (adjust_intervals_for_deletion, merge_interval_right)
3272 (merge_interval_left, graft_intervals_into_buffer)
3273 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3274
3275 * intervals.h (traverse_intervals): Update prototype.
3276
14162469
EZ
32772010-09-23 Eli Zaretskii <eliz@gnu.org>
3278
c098fdb8
EZ
3279 * indent.c (compute_motion): Use EMACS_INT for arguments to
3280 region_cache_forward.
3281
bba3e508
SM
3282 * region-cache.c (struct boundary, struct region_cache):
3283 Use EMACS_INT for positions.
c098fdb8
EZ
3284 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3285 (delete_cache_boundaries, set_cache_region)
3286 (invalidate_region_cache, know_region_cache)
bba3e508
SM
3287 (region_cache_forward, region_cache_backward, pp_cache):
3288 Use EMACS_INT for buffer positions.
c098fdb8
EZ
3289
3290 * region-cache.h (know_region_cache, invalidate_region_cache)
3291 (region_cache_forward, region_cache_backward): Adjust prototypes.
3292
3293 * search.c (string_match_1, fast_c_string_match_ignore_case)
3294 (looking_at_1, scan_buffer, scan_newline)
3295 (find_next_newline_no_quit, find_before_next_newline)
3296 (search_command, trivial_regexp_p, search_buffer, simple_search)
3297 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3298 and string positions and length.
3299
caefdbe7
EZ
3300 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3301 (find_before_next_newline): Adjust prototypes.
c098fdb8 3302
29cdc13e
EZ
3303 * editfns.c (transpose_markers, update_buffer_properties)
3304 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3305 (get_pos_property, Fconstrain_to_field)
3306 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3307 (Fchar_after, Fchar_before, Finsert_char)
3308 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
3309 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3310 Use EMACS_INT for buffer and string position variables.
c098fdb8 3311 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
3312
3313 * lisp.h (clip_to_bounds): Adjust prototype.
3314
e79123aa
EZ
3315 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3316 (balance_an_interval, split_interval_right, split_interval_left)
3317 (find_interval, next_interval, update_interval)
3318 (adjust_intervals_for_insertion, delete_node, delete_interval)
3319 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3320 (offset_intervals, merge_interval_right, merge_interval_left)
3321 (graft_intervals_into_buffer, adjust_for_invis_intang)
3322 (move_if_not_intangible, get_local_map, copy_intervals)
3323 (copy_intervals_to_string, compare_string_intervals)
3324 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 3325 and for interval tree size.
e79123aa
EZ
3326
3327 * intervals.h (traverse_intervals, split_interval_right)
3328 (split_interval_left, find_interval, offset_intervals)
3329 (graft_intervals_into_buffer, copy_intervals)
3330 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3331 (update_interval): Adjust prototypes.
3332
579c18d0
EZ
3333 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3334 Use EMACS_INT for buffer position variables and arguments.
3335
3336 * composite.c (get_composition_id, find_composition)
3337 (run_composition_function, compose_text)
3338 (composition_gstring_width, autocmp_chars)
3339 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3340 for buffer positions and string length variables and arguments.
3341
3342 * composite.h (get_composition_id, find_composition, compose_text)
3343 (composition_gstring_width): Adjust prototypes.
3344
3345 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3346
bba3e508
SM
3347 * xdisp.c (store_mode_line_noprop, display_mode_element):
3348 Use EMACS_INT for string positions.
579c18d0
EZ
3349
3350 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3351 position arguments.
3352
3353 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
3354
3355 * character.c (parse_str_as_multibyte, str_as_multibyte)
3356 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 3357 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
3358 (strwidth, lisp_string_width, multibyte_chars_in_text):
3359 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3360
3361 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 3362 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
3363 (c_string_width, strwidth, lisp_string_width):
3364 Adjust prototypes.
14162469 3365
579c18d0
EZ
3366 * font.c (font_intern_prop): Use EMACS_INT for string length
3367 variables.
3368
3369 * font.c (font_intern_prop): Use EMACS_INT for string length
3370 variables.
3371
14162469
EZ
3372 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3373 variables.
3374
3375 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3376 (Fmake_string): Protect against too large strings.
3377 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3378 (live_misc_p): Use ptrdiff_t instead of int for pointer
3379 differences.
3380 (string_bytes, check_sblock, check_string_free_list)
3381 (allocate_string_data, compact_small_strings, Fmake_string)
3382 (Fmake_bool_vector, make_string, make_unibyte_string)
3383 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
3384 (make_specified_string_string, Fmake_list, Fmake_vector):
3385 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3386 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3387 (Fpurecopy): Use EMACS_INT for string size.
3388 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3389 for vector size.
3390
3391 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3392 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
3393 (make_pure_string, string_bytes, check_point_in_composition):
3394 Adjust prototypes.
14162469 3395
c8a66ab8
EZ
33962010-09-22 Eli Zaretskii <eliz@gnu.org>
3397
3398 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3399 (check_translation): Use EMACS_INT for buffer positions and
3400 length.
3401
3402 * undo.c (record_marker_adjustment, record_delete)
3403 (record_change, record_point, record_insert)
3404 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3405 buffer positions.
3406
3407 * lisp.h (record_marker_adjustment, record_delete)
3408 (record_change, record_point, record_insert)
3409 (record_property_change, Fprimitive_undo): Adjust prototypes.
3410
38c54d9d
JB
34112010-09-22 Juanma Barranquero <lekktu@gmail.com>
3412 Eli Zaretskii <eliz@gnu.org>
3413
3414 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3415
413d18e7
EZ
34162010-09-22 Eli Zaretskii <eliz@gnu.org>
3417
3418 * minibuf.c (Fminibuffer_contents)
3419 (Fminibuffer_contents_no_properties)
3420 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3421 positions.
3422
3423 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3424 mark.
3425
3426 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3427 (allocate_string_data): Accept EMACS_INT for string length.
3428
3429 * editfns.c (Ffield_string, Ffield_string_no_properties)
3430 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3431 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3432 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3433 (Ffield_end): Use EMACS_INT for buffer positions.
3434
3435 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3436 point with mark.
3437
3438 * lisp.h (allocate_string_data, make_uninit_string)
3439 (make_uninit_multibyte_string, make_buffer_string)
3440 (make_buffer_string_both): Adjust prototypes.
3441
4b9832a6
CY
34422010-09-22 Chong Yidong <cyd@stupidchicken.com>
3443
3444 * xml.c: Switch to GNU indentation.
3445 (make_dom): Change parse tree format to match xml.el.
3446 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3447 (Fxml_parse_string_internal): Rename from xml-parse-string.
3448
86282aab
KH
34492010-09-22 Kenichi Handa <handa@m17n.org>
3450
3451 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3452 only if we are not at a composition.
3453 (set_iterator_to_next): Give it->end_charpos to
3454 composition_compute_stop_pos.
3455 (set_iterator_to_next, next_element_from_buffer): Likewise.
3456
3457 * dispnew.c (buffer_posn_from_coords): Fix position when the
3458 current display element is a grapheme cluster in bidi-reordered
3459 region.
3460
840b985a
AR
34612010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3462
3463 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3464 the regions may overlap.
3465
5bc88f4b
JB
34662010-09-21 Juanma Barranquero <lekktu@gmail.com>
3467
3468 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3469
92bc9a36
DN
34702010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3471
d19e096e
DN
3472 * emacs.c: Do not include sys/ioctl.h, not needed.
3473
92bc9a36
DN
3474 * doprnt.c: Do not include stdlib.h, config.h does it.
3475 Move #include before macro definition.
3476
15f844ac
DN
34772010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3478
48e24408
DN
3479 * Makefile.in (temacs): Link using $(CC) not $(LD).
3480 (LD_FIRSTFLAG): Define using autoconf.
3481 (LD): Remove.
3482
65539506
DN
3483 Remove HAVE_TERMIOS definitions.
3484 * s/usg5-4-common.h (HAVE_TERMIOS):
3485 * s/template.h (HAVE_TERMIOS):
3486 * s/gnu-linux.h (HAVE_TERMIOS):
3487 * s/darwin.h (HAVE_TERMIOS):
3488 * s/cygwin.h (HAVE_TERMIOS):
3489 * s/bsd-common.h (HAVE_TERMIOS):
3490 * s/aix4-2.h (HAVE_TERMIOS):
3491 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3492 defined on all non-MS platforms.
3493 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3494
15f844ac
DN
3495 * xterm.c (xt_action_hook): Use const.
3496
7d701334
JB
34972010-09-20 Juanma Barranquero <lekktu@gmail.com>
3498
3499 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3500 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3501 (gethostname) [!HAVE_SOCKETS]: Remove.
3502 (SOCK_REPLACE_HANDLE): Remove macro.
3503 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3504 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3505 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3506 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3507
f3ec267a
EZ
35082010-09-18 Eli Zaretskii <eliz@gnu.org>
3509
3510 * deps.mk (xml.o): Add dependencies.
3511
93acd23d
JB
3512 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3513 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
3514
3515 * bidi.c (bidi_paragraph_init): Accept an additional argument
3516 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3517 search back until a paragraph with a strong directional character
3518 is found, and use that to determine paragraph's base direction.
3519
3520 * dispextern.h (bidi_paragraph_init): Update prototype.
3521
69e847be
EZ
35222010-09-17 Eli Zaretskii <eliz@gnu.org>
3523
3524 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3525 of w32api >= 3.15. (Bug#6989)
3526
283357a7
LMI
35272010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3528
3529 * process.c (wait_reading_process_output): Don't message about
3530 accept-process-output unless the time limit really is zero.
3531
4ddb20d6
SM
35322010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3533
3534 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3535 int/Lisp_Object mixup).
3536
e24ad6dd
J
35372010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3538
3539 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3540 not HELP.
3541
fb0cf781
J
35422010-09-17 Stephen Berman <stephen.berman@gmx.net>
3543
3544 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3545 bar's pixel width to Lisp (Bug#7048).
3546
4ddb20d6
SM
35472010-09-14 Juanma Barranquero <lekktu@gmail.com>
3548
3549 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 3550
318a04c6
J
35512010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3552
3553 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3554 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3555
78a21772
KH
35562010-09-17 Kenichi Handa <handa@m17n.org>
3557
3558 * ftfont.c (ftfont_check_otf): Fix previous change.
3559
fa3f6039
KH
35602010-09-14 Kenichi Handa <handa@m17n.org>
3561
3562 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3563 existence of GSUB or GPOS.
3564
2b5491fa
JB
35652010-09-14 Juanma Barranquero <lekktu@gmail.com>
3566
3567 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3568
c97c655f
LMI
35692010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3570
ef1b0ba7 3571 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
3572 what it does.
3573 (parse_string): Return nil when the document can't be parsed.
3574
6664fc59 35752010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
3576
3577 * xterm.c (get_current_vm_state): New function.
3578 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3579 want_fullscreen so set_wm_state calls are few (Bug#7013).
3580 (x_handle_net_wm_state): Move code to get_current_vm_state and
3581 call that function.
3582
6664fc59 35832010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
3584
3585 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3586
6664fc59 35872010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
3588
3589 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3590 we may use designation or locking-shift.
3591
6664fc59 35922010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
3593
3594 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3595 sequence when the source is multibyte.
3596
1da70e99
AS
35972010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3598
6664fc59
JB
3599 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3600 Don't make first argument optional. Doc fix.
1da70e99 3601
26632d8d
LMI
36022010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3603
3604 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3605 parameters for the doc string.
3606
21fa8e37
LMI
36072010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3608
3609 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3610
5616cc54
SM
36112010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3612
3613 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3614 (syms_of_fns): Don't defsubr Sy_or_n_p.
3615 * lisp.h: Don't declare Fy_or_n_p.
3616 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3617
381408e2
LMI
36182010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3619
3620 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3621
36222010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3623
3624 * xml.c: New file.
3625 (Fhtml_parse_buffer): New function to interface to the libxml2
3626 html parsing function.
3627
733946e7
JB
36282010-09-05 Juanma Barranquero <lekktu@gmail.com>
3629
3630 * biditype.h: Regenerate.
3631
7574650a
AS
36322010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3633
3634 * nsimage.m (ns_load_image): Check argument types.
3635
3636 * image.c: Remove all uses of gcpro.
3637 (xpm_load): Check all lisp types.
3638 (pbm_load): Likewise.
3639 (png_load): Likewise.
3640 (jpeg_load): Likewise.
3641 (tiff_load): Likewise.
3642 (gif_load): Likewise.
3643 (imagemagick_load_image): Likewise.
3644 (imagemagick_load): Likewise.
3645 (svg_load): Likewise.
3646 (gs_load): Likewise.
3647
6e6b8e25
EZ
36482010-09-04 Eli Zaretskii <eliz@gnu.org>
3649
bba3e508
SM
3650 * w32uniscribe.c (uniscribe_shape): Update commentary.
3651 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
3652 hold them in the logical order.
3653 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3654 return glyph codes in the logical order.
3655
dbfe4532
AS
36562010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3657
3658 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 3659 (imagemagick_load_image): Fix type mismatch.
5e5992c2 3660 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 3661
6d7cc563
JD
36622010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3663
3664 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3665
3666 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3667
3668 * xselect.c: Remove declaration of cut-buffer objects and functions.
3669 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3670 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3671 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3672 (Fx_rotate_cut_buffers_internal): Remove.
3673 (syms_of_xselect): Remove defsubr of above.
3674 Remove intern of QCUT_BUFFERn.
3675
8f4e9110
SM
36762010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3677
3678 * cmds.c (Vblink_paren_function): Remove.
3679 (internal_self_insert): Make it insert N chars at a time.
3680 Don't call blink-paren-function.
3681 (Fself_insert_command): Adjust accordingly.
3682 (syms_of_cmds): Don't declare blink-paren-function.
3683
d419e1d9
KH
36842010-08-31 Kenichi Handa <handa@m17n.org>
3685
3686 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3687 characters.
3688
3689 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
3690 (produce_glyphs): Don't set it->char_to_display here.
3691 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
3692 (produce_special_glyphs): Set temp_it.char_to_display before
3693 calling produce_glyphs.
3694
3695 * xdisp.c (get_next_display_element): Set it->char_to_display
3696 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3697 characters.
3698 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3699 calling PRODUCE_GLYPHS.
3700 (append_space_for_newline): Save and store it->char_to_display.
3701 Set it->char_to_display before calling PRODUCE_GLYPHS.
3702 (extend_face_to_end_of_line): Set it->char_to_display before
3703 calling PRODUCE_GLYPHS.
3704 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3705 character to its byte value.
3706 (get_char_glyph_code): New function.
3707 (produce_stretch_glyph): Set it2.char_to_display too before
3708 calling x_produce_glyphs.
3709 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
3710 non-ASCII characters. Don't set it->char_to_display here.
3711 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 3712 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 3713
b819f760
SM
37142010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3715
3716 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3717
07fa68a7
CY
37182010-08-31 Chong Yidong <cyd@stupidchicken.com>
3719
3720 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3721
cd196f12
SM
37222010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3723
3724 * marker.c (Fcopy_marker): Make the first arg optional.
3725
49a752bb
KH
37262010-08-30 Kenichi Handa <handa@m17n.org>
3727
3728 * composite.c (composition_update_it): Fix computing of
3729 cmp_it->width.
3730
769ae9e1
KH
37312010-08-29 Kenichi Handa <handa@m17n.org>
3732
9e69cb05 3733 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 3734 corresponding bytes.
9e69cb05 3735
4520b858
J
37362010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3737
3738 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3739
fe50eb41
KH
37402010-08-26 Kenichi Handa <handa@m17n.org>
3741
3742 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3743 on calling composition_compute_stop_pos.
3744
f6aa6ec6
KH
37452010-08-25 Kenichi Handa <handa@m17n.org>
3746
9dfdbc0a
KH
3747 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3748 :otf.
3749
f6aa6ec6
KH
3750 * composite.c (composition_compute_stop_pos): Don't break
3751 composition at PT.
3752 (composition_reseat_it): Likewise. Fix calculation of character
3753 position starting a composition.
3754 (Fcomposition_get_gstring): Don't limit the number of components
3755 for automatic composition.
3756
ff94e32c
KH
37572010-08-25 Kenichi Handa <handa@m17n.org>
3758
3759 * composite.c (composition_compute_stop_pos): In forward search,
3760 pay attention to the possibility that some character after ENDPOS
3761 will be composed with charactrs before ENDPOS.
3762
1c409d0b
CY
37632010-08-24 Chong Yidong <cyd@stupidchicken.com>
3764
3765 * keyboard.c (command_loop_1): Don't clobber primary selection
3766 during handle-switch-frame (Bug#6872).
3767
0c372655
MA
37682010-08-23 Michael Albinus <michael.albinus@gmx.de>
3769
3770 * dbusbind.c: Accept UNIX domain sockets as bus address.
3771 (Fdbus_close_bus): New function.
3772 (Vdbus_registered_buses): New variable.
3773 (xd_initialize): Implement string as bus address.
3774 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3775 (Fdbus_get_unique_name, Fdbus_call_method)
3776 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3777 (Fdbus_method_error_internal, Fdbus_send_signal)
3778 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3779 check. This is done in xd_initialize_bus. Adapt doc string, if
3780 necessary.
3781 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3782 Vdbus_registered_buses.
3783 (Vdbus_registered_objects_table): Create hash.
3784
7133b7ee
JL
37852010-08-22 Juri Linkov <juri@jurta.org>
3786
3787 * keyboard.c (Fexecute_extended_command): Move reading a command name
3788 with `completing-read' to a new Elisp function `read-extended-command'.
3789 Call it to read a command to `function' (bug#5364, bug#5214).
3790
198a7a97
CY
37912010-08-22 Chong Yidong <cyd@stupidchicken.com>
3792
3793 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3794
b0126eac 37952010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
3796
3797 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3798 instead of SAFE_ALLOCA.
3799
b0126eac 38002010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
3801
3802 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3803 (Bug#6214).
3804
b0126eac 38052010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
3806
3807 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3808
b0126eac
CY
38092010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3810
3811 * doc.c (Fsnarf_documentation): Initialize skip_file before
3812 build-files test.
3813
692f3ddc 38142010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 3815
692f3ddc
JB
3816 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3817 New definitions.
b0126eac
CY
3818 (HAVE_TERMIO): Remove.
3819
5f2f0bc1
EZ
38202010-08-22 Eli Zaretskii <eliz@gnu.org>
3821
b613941b
EZ
3822 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3823
a583bbef
EZ
3824 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3825 for w32.
3826
3827 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3828 it's done in nt/config.nt.
3829
3830 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3831
5f2f0bc1
EZ
3832 * unexcoff.c (report_error, make_hdr, write_segment)
3833 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3834 Convert argument lists and prototypes to ANSI C.
3835 (make_hdr, write_segment): Remove unused variables.
3836 (unexec): Remove commented-out line. Initialize `new' to shut up
3837 compiler warnings.
3838
a7ebc409
DN
38392010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3840
3841 Simplify termio code.
3842 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3843 HAVE_TERMIO code is obsolete.
3844 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3845 * systty.h: Do not define HAVE_TCATTR.
3846 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3847 Do not define EMACS_HAVE_TTY_PGRP. Only define
3848 EMACS_GET_TTY_PGRP for !DOS_NT.
3849 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
3850 sys/ioctl.h and termios.h, systty.h does it.
3851 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
3852 (init_baud_rate): Remove HAVE_TERMIO code.
3853 (child_setup_tty): Remove HAVE_TERMIO code.
3854 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3855 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3856 (new_ltchars, new_tchars): Remove, unused.
3857 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
3858 code. Remove special casing for __mips__, it was a no-op.
3859 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
3860 (init_sys_modes): Remove HPUX special case.
3861 * process.c: Include stdlib.h unconditionally. Do not include
3862 fcntl.h, systty.h does it. Remove conditional code for
3863 HAVE_SERIAL, it is always true.
3864 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3865 always true when SIGNALS_VIA_CHARACTERS is true.
3866 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3867 !WINDOWSNT means HAVE_TERMIOS.
3868 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3869 conditional, which is true for all HAVE_TERMIOS systems.
3870 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3871 instead of HAVE_TERMIOS.
3872 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3873 EMACS_HAVE_TTY_PGRP.
3874 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3875 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3876 anyway.
3877
914f049b 38782010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
3879
3880 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3881 mirroring pixel positions.
3882
d931da8c
DN
38832010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3884
b5c76d0c
DN
3885 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3886 write only.
3887 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3888 malloc_sbrk_used, nothing uses them.
3889
74815588
DN
3890 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3891 defined, unconditionally defined in lisp.h.
3892
f5817d1c
DN
3893 * term.c: Do not include <termios.h>, systty.h does it.
3894
d931da8c
DN
3895 * s/unixware.h (HAVE_TCATTR):
3896 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3897 systty.h defines it when HAVE_TERMIOS is defined.
3898
ff2de6d2 38992010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 3900
b43c883c 3901 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 3902 terminals: add one-character offset for R2L lines.
b43c883c 3903
491a1546
EZ
3904 * emacs.c <emacs_version>: Add a comment regarding
3905 msdos/mainmake.v2's dependency on the syntax of this declaration.
3906
2396cbba
EZ
39072010-08-20 Eli Zaretskii <eliz@gnu.org>
3908
3909 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3910 position for R2L lines by mirroring the pixel position wrt the
3911 text are box. Improve commentary.
3912
7df6150a
AS
39132010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3914
3915 * image.c (imagemagick_clear_image): Remove debugging output.
3916
a2e5caf7
SM
39172010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3918
3919 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3920 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3921 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3922 self-insert-face.
3923 (syms_of_cmds): Initialize the new vars.
3924
20d60baf
JR
39252010-08-19 Jason Rumney <jasonr@gnu.org>
3926
cc477da7
JR
3927 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3928
20d60baf
JR
3929 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3930
2c0ac867
J
39312010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3932
3933 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3934
93352106
EZ
39352010-08-18 Eli Zaretskii <eliz@gnu.org>
3936
3937 * xterm.c (x_draw_bar_cursor):
3938 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3939 R2L, draw the bar cursor on its right rather than on its left.
3940
c785836d
SM
39412010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3942
0193499f
SM
3943 * eval.c (Fdefmacro): Only obey one declaration.
3944
c785836d
SM
3945 * casefiddle.c (casify_region): Setup gl_state.
3946
9cb728a5
J
39472010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3948
3949 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3950
e1e18511
J
39512010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3952
1d77b63e 3953 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 3954
64cb6c78
J
39552010-08-18 David De La Harpe Golden <david@harpegolden.net>
3956
3957 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3958 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3959 QPRIMARY => NXPrimaryPboard.
3960 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3961 NXPrimaryPboard => QPRIMARY.
3962 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3963 NXSecondaryPboard = SecondarySelection.
3964 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3965
0c9b8993
GM
39662010-08-18 Joakim Verona <joakim@verona.se>
3967
3968 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3969 defined:
3970 (imagemagick_image_p): New function to test for ImageMagic image.
3971 (imagemagick_load): New function to load ImageMagick image.
3972 (imagemagick_load_image): New function, helper for imagemagick_load.
3973 (imagemagick-types): New function.
3974 (Qimagemagick): New Lisp_object.
3975 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 3976
c3554f68
SM
39772010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3978
3979 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3980 is a string.
3981
1ff2e434
J
39822010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3983
3984 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3985 x_set_tool_bar_position handler.
3986
0cc56427
EZ
39872010-08-17 Eli Zaretskii <eliz@gnu.org>
3988
3989 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
3990 x_set_tool_bar_position handler, needed to support changes from
3991 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
3992
e45a249b
JD
39932010-08-16 Jan Djärv <jan.h.d@swipnet.se>
3994
921242c6
J
3995 * nsselect.m: include keyboard.h for QPRIMARY, remove its
3996 declaration (Bug#6863).
573d150b 3997 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 3998
e45a249b
JD
3999 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
4000
4001 * keyboard.h (QPRIMARY): Declare (Bug#6864).
4002
7c23dd44
CY
40032010-08-16 Chong Yidong <cyd@stupidchicken.com>
4004
4005 * keyboard.c (command_loop_1): Avoid setting selection twice,
4006 since it's done in deactivate-mark as well.
4007 (Vselect_active_regions): Change default to t. Replace `lazy'
4008 with non-default value `only', meaning only set PRIMARY for
4009 temporarily active regions.
4010
4011 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
4012 select-active-regions.
4013
0005830c
J
40142010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4015
4016 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
4017 isn't a string.
4018
603dfc72
AS
40192010-08-15 Andreas Schwab <schwab@linux-m68k.org>
4020
4021 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
4022
c25ce9d0
J
40232010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4024
c3554f68
SM
4025 * keyboard.c (parse_tool_bar_item): malloc buf.
4026 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
4027 new_lbl (Bug#6855).
c25ce9d0 4028
5872c762
EZ
40292010-08-14 Eli Zaretskii <eliz@gnu.org>
4030
b236615c
EZ
4031 * xterm.c (x_draw_stretch_glyph_string):
4032 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
4033 the cursor on the right edge of the stretch glyph.
4034
c3554f68
SM
4035 * xdisp.c (window_box_right_offset, window_box_right):
4036 Fix commentary.
b236615c 4037
5872c762
EZ
4038 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
4039 direction when point is inside a run of whitespace characters.
4040
4041 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
4042
e66f9a1b
JR
40432010-08-14 Jason Rumney <jasonr@gnu.org>
4044
4045 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
4046
79d6f59e
CY
40472010-08-14 Chong Yidong <cyd@stupidchicken.com>
4048
4049 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
4050
1c9b4129
JR
40512010-08-13 Jason Rumney <jasonr@gnu.org>
4052
4053 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4054 (MessageBoxW_Proc): New function typedef.
4055 (unicode-message-box): New function pointer.
4056 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
4057
2b4e6277
J
40582010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4059
4060 * frame.h (Qtool_bar_position): Declare.
4061
4062 * xfns.c (Fx_create_frame): Call x_default_parameter for
4063 Qtool_bar_position.
4064
94c97d85
EZ
40652010-08-13 Eli Zaretskii <eliz@gnu.org>
4066
8ee81892
EZ
4067 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4068 (report_error, report_error_1): Ditto.
4069 (write_segment): Remove "#if 0" unused code.
4070 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4071 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4072 (start_of_text): Remove unused function (was used only if NO_REMAP
4073 was NOT defined).
4074
891ef8f7
EZ
4075 * msdos.c (IT_set_face): Fix format string to match argument
4076 types.
4077 (IT_write_glyphs, IT_note_mode_line_highlight)
4078 (IT_set_frame_parameters): Remove unused variables.
4079 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4080 (IT_set_terminal_modes): Disambiguate expression in if clause.
4081 (Fmsdos_remember_default_colors): Return Qnil.
4082 (IT_set_frame_parameters): Add parens to disambiguate boolean
4083 expression for logging the cursor type to termscript.
4084 (keyboard_layout_list, keypad_translate_map)
4085 (grey_key_translate_map): Add braces in inner initializers.
4086 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4087 (dos_rawgetc): Remove unused label.
4088 (XMenuActivate): Add braces to remove ambiguous `else'.
4089 (dos_ttraw): Always return a value.
4090 (spawnve): Declare.
4091 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4092
4093 * dosfns.h (x_set_title): Declare.
4094
4095 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4096 Remove unused variables.
4097
4098 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4099 variables.
4100 (init_dosfns): Declare get_lim_data.
4101 (system_process_attributes): Declare Fget_internal_run_time.
4102
38e41e0e
EZ
4103 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4104 list to be consistent with menu.h.
4105
94c97d85
EZ
4106 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4107 warnings due to mixing of "char *" and "const char *".
4108
c5683ceb
SM
41092010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4110
4111 Introduce a new comment style "c" flag.
4112 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4113 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4114 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4115 (syntax_prefix_flag_p): New function.
4116 (Fstring_to_syntax): Understand new "c" flag.
4117 (Finternal_describe_syntax_value): Recognize new flag; use the
4118 SYNTAX_FLAGS_* macros.
4119 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4120 comment style to accomodate the new styles.
4121 (back_comment, forw_comment, Fforward_comment, scan_lists)
4122 (scan_sexps_forward): Update code to obey the new comment style flag.
4123
4124 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4125
4126 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4127
7aee76f4
J
41282010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4129
3a46642b
J
4130 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4131 first.
94dff98f 4132 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
4133
4134 * gtkutil.h (xg_check_special_colors): Declare.
4135
4136 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4137 (xg_create_frame_widgets): Connect theme name changes to
4138 style_changed_cb.
4139
42ca4633
J
4140 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4141 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4142 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 4143 string literal. file is const char*.
42ca4633
J
4144
4145 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4146 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4147 props. Free them at the end.
4148
4149 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4150
c5683ceb
SM
4151 * xrdb.c (get_system_app): Make path const and use char *p for
4152 non-const char.
42ca4633
J
4153
4154 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 4155 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
4156 char *.
4157 (button_names): Is const char *.
4158 (xdialog_show): error_name and pane_string is const.
4159
4160 * process.h (synch_process_death): Is const char*.
4161
4162 * w32menu.c (w32_menu_show):
4163 * nsmenu.m (ns_menu_show): error parameter is const char **.
4164
4165 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4166 is const char **.
4167
4168 * menu.c (Fx_popup_menu): error_name is const.
4169
4170 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4171 with unsigned char and XtPointer with void *.
4172
4173 * gtkutil.h: Replace widget_value with struct _widget_value.
4174 (enum button_type, struct _widget_value): Remove and use the one from
4175 keyboard.h.
4176
4177 * gtkutil.c (get_utf8_string): Always return an allocated string.
4178 Parameter is const.
4179 (create_dialog, xg_create_one_menuitem, create_menus)
4180 (xg_item_label_same_p, xg_update_menu_item): Free result from
4181 get_utf8_string.
4182 (xg_separator_p, xg_item_label_same_p): label is const.
4183
4184 * font.h (font_open_by_name): Make name const.
4185
4186 * font.c (font_open_by_name): Make name const.
4187
4188 * floatfns.c (matherr): Use a const char* variable for x->name.
4189
4190 * emacs.c (main): Pass char[] to putenv instead of literal.
4191
4192 * callproc.c (synch_process_death): Make const.
4193 (Fcall_process): Make signame const.
4194
9c5bd55a
J
4195 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4196 (addDisplayItemWithImage): Use const char*.
4197
4198 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4199 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4200
4201 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4202
4203 * keyboard.h (_widget_value): name, value and key are const char*.
4204
7aee76f4
J
4205 * unexmacosx.c (unexec_error): Use const char *.
4206
09d93395
DN
42072010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4208
4209 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4210 (font_parse_name, font_open_by_name):
09d93395 4211 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4212 (font_parse_name, font_open_by_name): Remove const.
09d93395 4213
671d409f
AS
42142010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4215
4216 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4217 definition.
4218
4219 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4220 * m/amdx86-64.h: Likewise.
4221 * m/arm.h: Likewise.
4222 * m/hp800.h: Likewise.
4223 * m/ia64.h: Likewise.
4224 * m/ibmrs6000.h: Likewise.
4225 * m/ibms390.h: Likewise.
4226 * m/intel386.h: Likewise.
4227 * m/iris4d.h: Likewise.
4228 * m/m68k.h: Likewise.
4229 * m/macppc.h: Likewise.
4230 * m/mips.h: Likewise.
4231 * m/sh3.h: Likewise.
4232 * m/sparc.h: Likewise.
4233 * m/template.h: Likewise.
4234 * m/vax.h: Likewise.
4235 * m/xtensa.h: Likewise.
4236 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4237 WORDS_BIG_ENDIAN.
4238 * lisp.h: Likewise.
4239 * md5.c: Likewise.
4240 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4241
8ea90aa3
DN
42422010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4243
4244 Use const char* instead of char*.
4245 Reduce the number of warnings with -Wwrite-strings.
4246 * xrdb.c (get_environ_db, get_system_name):
4247 * unexelf.c (find_section):
4248 * term.c (string_cost, string_cost_one_line, per_line_cost)
4249 (get_named_tty, init_tty):
4250 * sysdep.c (sys_subshell):
4251 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4252 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4253 * search.c (Freplace_match):
4254 * process.c (Fmake_network_process, send_process, init_process):
4255 * lread.c (Fload, init_lread):
4256 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4257 * keyboard.c (parse_tool_bar_item, struct event_head):
4258 * gtkutil.h (xg_get_font_name):
4259 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4260 (make_widget_for_menu_item, make_menu_item, create_menus)
4261 (xg_make_tool_item):
4262 * font.c (parse_matrix, font_parse_name):
4263 * floatfns.c (rounding_driver, float_error_fn_name):
4264 * filelock.c (get_boot_time_1, lock_file_1):
4265 * fileio.c (barf_or_query_if_file_exists, check_writable):
4266 * editfns.c (get_system_name, get_operating_system_release)
4267 (Fencode_time, Fset_time_zone_rule):
4268 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4269 * buffer.c (defvar_per_buffer): Use const.
4270
7815fe19 42712010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 4272
692f3ddc 4273 * charset.c: Include <stdlib.h>.
7a84eee5
KH
4274 (struct charset_sort_data): New struct.
4275 (charset_compare): New function.
692f3ddc 4276 (Fsort_charsets): New function.
7a84eee5
KH
4277 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4278
4279 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4280 number in CTEXT extended segment.
4281
7815fe19 42822010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
4283
4284 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4285 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4286
7815fe19 42872010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
4288
4289 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4290 (Fhash_table_size): Fix typos in docstrings.
4291 (Fmake_hash_table): Doc fix.
4292
7815fe19 42932010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
4294
4295 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4296 Doc fix (bug#5625).
4297
7815fe19 42982010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
4299
4300 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4301 the MSDOS definition.
4302
1b6d8cf0
DN
43032010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4304
675e2c69
DN
4305 Use const char* instead of char*.
4306 * xterm.c (x_create_toolkit_scroll_bar):
4307 * xfont.c (xfont_list_pattern):
4308 * xfns.c (x_default_scroll_bar_color_parameter)
4309 (xic_create_fontsetname, x_default_font_parameter)
4310 (x_screen_planes):
4311 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4312 (store_mode_line_string, decode_mode_spec, display_string):
4313 * menu.c (digest_single_submenu):
4314 * keymap.h (initial_define_key, initial_define_lispy_key):
4315 * keymap.c (initial_define_key, initial_define_lispy_key):
4316 * image.c (image_error, image_keyword):
4317 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4318 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4319 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4320 (ftfont_list, ftfont_match):
4321 * frame.c (frame_parm_table):
4322 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4323 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4324 (font_add_log, font_deferred_log):
4325 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4326 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4327 (font_add_log, font_deferred_log):
4328 * emacs.c (argmatch):
4329 * dispextern.h (struct it):
4330 * coding.c (ENCODE_DESIGNATION):
4331 * charset.c (define_charset_internal): Use const.
4332
25717ca1
DN
4333 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4334
c5683ceb
SM
4335 * xrdb.c: Remove include guard.
4336 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
4337 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4338 realloc->xrealloc instead of using #defines.
4339
efb41e21
EZ
43402010-08-08 Eli Zaretskii <eliz@gnu.org>
4341
cd21226d 4342 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
4343 * editfns.c (Fline_beginning_position, Fline_end_position):
4344 State in the doc strings that start and end of line are in the
4345 logical order.
cd21226d 4346
efb41e21
EZ
4347 * xdisp.c (display_line): Move the handling of overlay arrow after
4348 the call to find_row_edges. (Bug#6699)
4349
746812d9
CY
43502010-08-07 Chong Yidong <cyd@stupidchicken.com>
4351
4352 * keyboard.c (command_loop_1):
4353 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4354
9852377f
CY
43552010-08-07 Chong Yidong <cyd@stupidchicken.com>
4356
4357 * insdel.c (prepare_to_modify_buffer): Save active region text to
4358 Vsaved_region_selection.
4359
4360 * xselect.c (QPRIMARY): Move to keyboard.c.
4361
4362 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
4363 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4364 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 4365
0e9c8657
JB
43662010-08-07 Juanma Barranquero <lekktu@gmail.com>
4367
4368 * alloc.c (lisp_malloc):
4369 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4370 * charset.h (emacs_mule_charset):
4371 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4372 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4373 (bitch_at_user):
4374 * lisp.h (Fcheck_coding_system, Fget_text_property)
4375 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4376 Remove duplicate declarations.
4377
648801d1
DN
43782010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4379
32bc6709
DN
4380 * process.c: Simplify include logic.
4381
3ef1d108
DN
4382 * keyboard.h (quit_char): Add declaration.
4383 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
4384 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4385 Add declarations.
3ef1d108
DN
4386 * sysdep.c:
4387 * w32.c: Remove the above declarations.
4388
97ec208f
DN
4389 Remove extern declarations in .c files, .h files have them.
4390 * xterm.c:
4391 * xdisp.c:
97ec208f
DN
4392 * msdos.c:
4393 * image.c:
4394 * gtkutil.c:
4395 * fileio.c:
4396 * eval.c: Remove declarations.
4397
94eed851
DN
4398 * frame.c (frame_params): Make const.
4399
36e053eb
DN
4400 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4401
0e843971
DN
4402 * emacs.c (emacs_copyright, emacs_version): Make static.
4403 (Vinitial_window_system, Vauto_save_list_file_name)
4404 (Vinhibit_redisplay): Remove declarations.
4405 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4406 for AIX.
4407
648801d1
DN
4408 Use const for some arrays and functions.
4409 * xterm.h (xg_set_icon_from_xpm_data):
4410 * xfns.c (xg_set_icon_from_xpm_data):
4411 * term.c (fkeys):
4412 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4413 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4414 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4415 (frame.c frame_parms):
4416 * emacs-icon.h (gnu_xpm_bits):
4417 * callint.c (callint_argfuns): Use const.
4418
8646d999
J
44192010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4420
4421 * sysdep.c: Move include term.h last of includes (Bug#6812).
4422
cb4545ad
EZ
44232010-08-06 Eli Zaretskii <eliz@gnu.org>
4424
4425 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4426
4427 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4428
4429 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4430
da7e2be6
JB
44312010-08-06 Juanma Barranquero <lekktu@gmail.com>
4432
4433 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4434
3d608a86
J
44352010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4436
7908fb60
J
4437 * xterm.h (x_get_focus_frame): Declare.
4438
4439 * keyboard.h (poll_for_input_1): Unconditionally declare.
4440
4094bf36
J
4441 * nsterm.h (x_set_menu_bar_lines): Declare.
4442
4443 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4444
3d608a86
J
4445 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4446
4447 * window.c: Include menu.h.
4448
4449 * unexmacosx.c (print_region_list, print_regions)
4450 (build_region_list, find_emacs_zone_regions)
4451 (unexec_regions_merge, read_load_commands, dump_it)
4452 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4453
4454 * term.c: Check HAVE_SYS_IOCTL_H.
4455
686b968e 4456 * sysdep.c: Check HAVE_TERM_H.
3d608a86 4457
686b968e 4458 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
4459
4460 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4461 (ns_ring_bell, ns_defined_color, hide_hourglass)
4462 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4463 Convert to ANSI C prototypes.
4464 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4465 before code.
4466
4467 * nsterm.h : Include sysselect.h.
4468 (x_sync, x_get_focus_frame, x_set_mouse_position)
4469 (x_set_mouse_pixel_position, x_make_frame_visible)
4470 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4471 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4472 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4473 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 4474 Declare.
3d608a86
J
4475
4476 * nsmenu.m (popup_activated, name_is_separator)
4477 (syms_of_nsmenu): Convert to ANSI C prototypes.
4478 (runMenuAt): Prototypes and move declarations before code.
4479
4480 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4481
4482 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4483 prototypes.
4484
4485 * nsfns.m (have_menus_p, ns_display_info_for_name)
4486 (x_set_cursor_type, ns_appkit_version_str)
4487 (ns_appkit_version_int, ns_do_applescript)
4488 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4489 (syms_of_nsfns): Convert to ANSI C prototypes.
4490
4491 * menu.h (x_set_menu_bar_line): Declare.
4492 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4493
4494 * lisp.h (fmod_float): Declare.
4495
4496 * image.c (xpm_scan, xpm_make_color_table_v)
4497 (xpm_put_color_table_v, xpm_get_color_table_v)
4498 (xpm_make_color_table_h, xpm_put_color_table_h)
4499 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4500 (xpm_load): Convert to ANSI C prototypes.
4501
4502 * emacs.c: Include nsterm.h if HAVE_NS.
4503
4504 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4505
fce70521
DN
45062010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4507
4508 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4509 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4510 (socket_options): Use const char* for name.
4511
a11889ab
JB
45122010-08-06 Juanma Barranquero <lekktu@gmail.com>
4513
4514 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4515
4516 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4517 Don't declare xmalloc_widget_value and digest_single_submenu.
4518
4519 * w32font.c (Qlatin): Remove declaration.
4520
4521 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4522
c95b508f 4523 * dired.c (compile_pattern): Restore declaration.
a11889ab 4524
6254cdda
DN
45252010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4526
04bab72c
DN
4527 Remove extern declarations in .c files, .h files have them.
4528 * data.c:
4529 * dired.c:
4530 * editfns.c:
4531 * filelock.c:
4532 * fns.c:
4533 * font.c:
4534 * fontset.c:
4535 * frame.c:
4536 * fringe.c:
4537 * ftfont.c:
4538 * gtkutil.c:
4539 * indent.c:
4540 * keyboard.c:
4541 * keymap.c:
4542 * lread.c:
4543 * menu.c:
4544 * print.c:
4545 * search.c:
4546 * sound.c:
4547 * window.c:
4548 * xdisp.c:
4549 * xfaces.c:
4550 * xfns.c:
4551 * xfont.c:
4552 * xftfont.c:
4553 * xmenu.c:
4554 * xterm.c: Remove declarations.
4555
dff94ed5
DN
4556 Cleanup syssignal.h.
4557 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4558 (main_thread): Move down to remove #ifdef.
4559 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4560 Remove conditional definition following unconditional ones.
4561
99f3388e
DN
4562 * lisp.h: Remove HAVE_SHM code, unused.
4563 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4564 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4565 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4566 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4567 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4568 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4569 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4570 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4571 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4572 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4573 (Qwindow_scroll_functions, Vafter_load_alist)
4574 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4575 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4576 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4577 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4578 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4579 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4580 (initial_argv, last_nonmenu_event, load_in_progress)
4581 (noninteractive_need_newline, scroll_margin): Add declarations.
4582
bba3e508
SM
4583 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4584 Remove declarations, menu.h has them.
99f3388e
DN
4585 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4586 (Vinput_method_function, Qinput_method_function)
4587 (Qevent_symbol_element_mask, last_event_timestamp):
4588 * dispextern.h (Voverflow_newline_into_fringe):
4589 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4590 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4591 (syms_of_w32font, syms_of_nsfont):
4592 * fontset.h (find_font_encoding, Qlatin):
4593 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4594 (Vtool_bar_mode, set_frame_menubar):
4595 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4596 * xterm.h (Qx_gtk_map_stock):
4597 * keymap.h (meta_prefix_char): Add declarations.
4598
9f5dd6f2
DN
4599 * term.c: Remove dead code.
4600
6254cdda
DN
4601 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4602 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4603 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4604 which is what was there before BSD_PGRPS was removed.
4605
29cf3e20
EZ
46062010-08-05 Eli Zaretskii <eliz@gnu.org>
4607
4608 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4609
4610 * unexcoff.c: Renamed from unexec.c.
4611
aaa0a19a
SM
46122010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4613
4614 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4615
8d1d9587
JB
46162010-08-03 Johan Bockgård <bojohan@gnu.org>
4617
4618 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 4619 (Bug#6744)
8d1d9587 4620
9a747ba6
JD
46212010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4622
4d464ae4
JD
4623 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4624 to TRUE if depth of screen is < 16.
4625
ac01763e
JD
4626 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4627 USE_GTK_TOOLTIP.
e0d62a9b
JB
4628 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4629 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 4630 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
4631 USE_GTK_TOOLTIP.
4632 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4633
4634 * xterm.h (USE_GTK_TOOLTIP): New define.
4635 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4636
9a747ba6
JD
4637 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4638 to Control-D (Bug#6771).
4639
7b0815ba
JB
46402010-08-02 Juanma Barranquero <lekktu@gmail.com>
4641
4642 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4643 Wording by Drew Adams <drew.adams@oracle.com>.
4644
aa1859f5
J
46452010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4646
4647 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4648 ttip_lbl.
4649
4650 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4651 calling gtk_widget_queue_draw.
4652 (x_free_frame_resources): Call xg_free_frame_widgets.
4653
4654 * xfns.c (x_gtk_use_system_tooltips): New variable.
4655 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4656 new gtkutil tooltip functions to show the tooltip.
4657 (Fx_hide_tip): Call xg_hide_tooltip.
4658 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4659
4660 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4661 (xg_show_tooltip, xg_hide_tooltip): Declare.
4662
4663 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
4664 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4665 New functions.
aa1859f5
J
4666 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4667 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4668 Remove code that is commented out.
4669
76417ef4
SM
46702010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4671
4672 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4673
16041401
CY
46742010-07-31 Chong Yidong <cyd@stupidchicken.com>
4675
4676 * xselect.c (x_own_selection): Use list4.
4677
2c09a58f
DN
46782010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4679
4680 * buffer.c (Qwindow): Do not define, already defined in data.c.
4681 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4682
59df9fdd 46832010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 4684
59df9fdd
JB
4685 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4686 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4687 * config.in: Undef HAVE_DIRENT_H.
1c97e857 4688 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 4689 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 4690
1b231651
DN
46912010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4692
4693 Rename s/usg5-4.h -> s/usg5-4-common.h.
4694 * s/usg5-4.h: Rename file to ...
4695 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4696 * s/unixware.h:
4697 * s/sol2-6.h:
4698 * s/irix6-5.h: Update includes accordingly.
4699
bfeabdc3
JD
47002010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4701
2ebf1083
J
4702 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4703
bfeabdc3 4704 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
4705 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4706 Remove toolbar_height.
4707 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
4708 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4709 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4710 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4711
4712 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4713
4714 * xfns.c (x_set_tool_bar_position): New function.
4715 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4716 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 4717 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
4718
4719 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4720 and FRAME_TOOLBAR_LEFT_WIDTH.
4721
4722 * gtkutil.h (xg_change_toolbar_position): Declare.
4723
4724 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4725 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4726 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4727 (xg_create_frame_widgets): Create a hobox for placing widgets
4728 vertically. Use gtk_box_pack_start.
ef1b0ba7 4729 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
4730 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4731 (xg_update_frame_menubar, free_frame_menubar): Change to
4732 xg_height_or_width_changed.
4733 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4734 size correctly. Remove hardcoded 4, instead use handlebox size -
4735 toolbar size.
4736 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 4737 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
4738 (xg_pack_tool_bar): POS is a new parameter.
4739 Set orientation of tool bar based on pos.
4740 Only make handlebox_widget if NULL.
4741 Check if tool bar goes to vbox or hbox depending on pos.
4742 (xg_update_tool_bar_sizes): New function.
686b968e 4743 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
4744 height, call xg_update_tool_bar_sizes instead.
4745 (free_frame_tool_bar): Remove from hbox or vbox depending on
4746 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4747 (xg_change_toolbar_position): New function.
4748
4749 * frame.h (struct frame): Add tool_bar_position.
4750 (Qbottom): Declare.
4751
4752 * frame.c (Qtool_bar_position): New variable.
4753 (make_frame): Set tool_bar_position to Qtop.
4754 (frame_parms): Add tool-bar-position.
4755 (x_report_frame_params): Store tool_bar_position.
4756 (x_set_fringe_width): Reset wm size hint after fringe changes.
4757
26469a38
DN
47582010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4759
4760 Make lisp_time_argument declaration work on all systems.
4761 * lisp.h (lisp_time_argument): Move declaration ...
4762 * systime.h (lisp_time_argument): ... here
4763 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4764
8848b728
JD
47652010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4766
4767 * vm-limit.c (POINTER): Add typedef for it.
4768 (start_of_data): Change return type from POINTER to char *.
4769
4770 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4771 HAVE_WINDOW_SYSTEM.
4772
76fd1ee9
DN
47732010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4774
0441987e
DN
4775 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4776 Remove reference to __osf__, unused.
4777
56a000c7
DN
4778 * mem-limits.h: Remove duplicated includes.
4779 (NULL): Remove definition, unused.
4780 (POINTER): Remove definition.
4781 (start_of_data): Use char* in prototype, as the function
4782 definition does.
4783
e6cba650
DN
4784 Remove extern declarations from .c files, and them to .h files.
4785 * keyboard.h (Qhelp_echo, waiting_for_input)
4786 (input_available_clear_time, ignore_mouse_drag_p)
4787 (Vdouble_click_time, real_this_command, Vthis_original_command):
4788 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4789 (Voverriding_local_map_menu_flag):
4790 * lisp.h (Qinteractive_form, use_file_dialog)
4791 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4792 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4793 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4794 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4795 (Qfunction, debug_on_next_call, Qfield)
4796 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4797 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4798 (Qfile_directory_p, Qinsert_file_contents)
4799 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4800 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4801 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4802 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4803 (Qminibuffer_prompt)
4804 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4805 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4806 (gray_bitmap_bits, xic_create_fontsetname):
4807 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4808
4809 * xsmfns.c (Vuser_login_name):
4810 * xrdb.c (Vdouble_click_time):
4811 * xfaces.c (xic_create_fontsetname):
4812 * w32select.c (waiting_for_input):
4813 * print.c (minibuffer_auto_raise):
4814 * msdos.c (Qhelp_echo):
4815 * macros.c (real_this_command):
4816 * keymap.c (Voverriding_local_map):
4817 * xterm.c (poll_for_input_1, gray_bitmap_width)
4818 (gray_bitmap_height, gray_bitmap_bits;
4819 * xmenu.c ( Voverriding_local_map)
4820 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4821 (use_file_dialog, Xt_app_con):
4822 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4823 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4824 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4825 (Qtool_bar_lines, ignore_mouse_drag_p):
4826 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4827 (Qrear_nonsticky, nconc2):
4828 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4829 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4830 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4831 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4832 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4833 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4834 (gc_in_progress):
4835 * doc.c (Voverriding_local_map, Qremap):
4836 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4837 (Vcompletion_regexp_list):
4838 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4839 (Qcompletion_ignore_case):
4840 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4841 (Vhistory_length, Vthis_original_command, real_this_command)
4842 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4843 * image.c (Qrisky_local_variable):
4844 * fontset.c (QCname):
4845 * fns.c (minibuffer_auto_raise, QCname):
4846 * dispnew.c (char_ins_del_cost):
4847 * composite.c (font_fill_lglyph_metrics):
4848 * cmds.c (Qface, Vtranslation_table_for_input):
4849 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4850 * ccl.c (charset_unicode):
4851 * callproc.c (Vtemporary_file_directory):
4852 * buffer.c (emacs_strerror): Remove extern declarations.
4853
4854 * data.c (Qwindow): Make non-static, used from other files too.
4855 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4856
76fd1ee9
DN
4857 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4858 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4859 * s/usg5-4.h (COFF):
4860 * s/template.h:
4861 * s/msdos.h (COFF, NO_REMAP):
4862 * s/ms-w32.h (NO_REMAP):
4863 * s/hpux10-20.h (NO_REMAP):
4864 * m/sparc.h (SEGMENT_MASK):
4865 * m/m68k.h (NO_REMAP):
4866 * m/intel386.h (SEGMENT_MASK):
4867 * m/arm.h (NO_REMAP):
4868 * m/alpha.h (COFF):
4869 * m/template.h: Remove references to unused defines.
4870
8a52f00a
JD
48712010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4872
4873 * xsettings.c (Ftool_bar_get_system_style): Also check for
4874 Qtext_image_horiz.
4875
4876 * xdisp.c (Qtext_image_horiz): Define.
4877 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 4878 to documentation of tool-bar-style.
8a52f00a
JD
4879
4880 * lisp.h (Qtext_image_horiz): Declare.
4881
4882 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4883 style text_image_horiz.
4884
89dc303e
DN
48852010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4886
60799703
DN
4887 * emacs.c (Fkill_emacs): Remove return statement.
4888
37254dc1
DN
4889 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4890 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
4891 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4892 Remove local extern declarations.
37254dc1 4893
71c7345a
DN
4894 * xmenu.c: Do not included lwlib.h, not needed.
4895
6ba577cb
DN
4896 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4897
fdb183d6
DN
4898 * process.c: Move definitions earlier to minimize #ifdefs.
4899
4900 * xterm.h (x_get_customization_string, x_load_resources)
4901 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4902 (x_check_errors, x_property_data_to_lisp, defined_color)
4903 (xic_set_xfontset, x_defined_color): Use const.
4904
4905 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4906 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4907
4908 * xselect.c (selection_data_to_lisp_data)
4909 (x_property_data_to_lisp):
4910 * xrdb.c (x_get_string_resource, file_p)
4911 (x_get_customization_string, magic_file_p, search_magic_path)
4912 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4913 (x_get_string_resource): Use const.
4914
4915 * xfns.c: Include xlwmenu.h when USE_LUCID.
4916 (x_defined_color, xic_set_xfontset): Use const.
4917 (Fx_hide_tip): Remove local extern declaration.
4918
4919 * xfaces.c (Qmouse_face): Remove declaration.
4920 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 4921 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
4922
4923 * xdisp.c (do_mouse_tracking): Remove declaration.
4924 (add_to_log): Use const.
4925
4926 * minibuf.c (Qmouse_face): Remove declaration.
4927
4928 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4929
4930 * keyboard.h (do_mouse_tracking): Add declaration.
4931
4932 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4933 (QCdata, QCtype, Qcenter): Remove declarations.
4934
4935 * frame.c (x_get_resource_string, x_get_string_resource)
4936 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4937 (x_default_parameter): Use const.
4938
4939 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4940 (QCheight, QCsize, QCname): Remove declarations.
4941
4942 * emacs.c (main): Remove local extern declaration.
4943
4944 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4945 declarations.
4946
4947 * dispnew.c: Remove duplicate #include <unistd.h>.
4948 (update_window, update_frame_1, init_display): Remove local extern
4949 declarations.
4950
4951 * dispextern.h (add_to_log): Remove declaration.
4952 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4953 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4954
4955 * dired.c (scmp): Add const.
4956 (directory_files_internal): Remove local extern declaration.
4957
4958 * data.c (Finteractive_form): Use const.
4959
4960 * composite.c (syms_of_composite): Remove local extern declarations.
4961
4962 * charset.c (add_to_log): Remove declaration.
4963
4964 * character.c (strwidth, parse_str_to_multibyte): Add const.
4965
4966 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4967
4968 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4969
89dc303e 4970 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
4971 (Lisp_Subr): Make doc and intspec constant.
4972 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4973 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4974 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4975 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4976 (display_arg): Add declarations.
89dc303e 4977
0ed082fe 49782010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
4979
4980 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4981
0ed082fe
JB
4982 * window.c (Fwindow_height): Doc fix (bug#6518).
4983
49842010-07-27 Juanma Barranquero <lekktu@gmail.com>
4985
4986 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4987
ccaf0336
DN
49882010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
4989
977105dc
DN
4990 * keyboard.c (Ftop_level, Fexit_recursive_edit)
4991 (Fabort_recursive_edit): Remove return statements in NO_RETURN
4992 functions.
4993
f5ada890
DN
4994 * frame.h (Qtty_color_mode): Add declaration.
4995
ccaf0336
DN
4996 * lisp.h (Ftop_level, Fexit_recursive_edit)
4997 (Fabort_recursive_edit): Mark as NO_RETURN.
4998
dfe3c90f
KH
49992010-07-26 Kenichi Handa <handa@m17n.org>
5000
5001 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 5002 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 5003
7d383292
JB
50042010-07-26 Juanma Barranquero <lekktu@gmail.com>
5005
5006 * lread.c (unreadpure, mapatoms_1): Make static.
5007
da31e629
JB
50082010-07-25 Juanma Barranquero <lekktu@gmail.com>
5009
5010 * terminfo.c (tparam): Fix prototype of tparm.
5011
7bfa6d77
AS
50122010-07-25 Andreas Schwab <schwab@linux-m68k.org>
5013
dcc19aac
AS
5014 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
5015 find start of text segment.
5016 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
5017 is defined.
5018
7bfa6d77
AS
5019 * callproc.c (set_initial_environment): Avoid unbalanced braces.
5020
63f9a672
KB
50212010-07-25 Ken Brown <kbrown@cornell.edu>
5022
5023 * vm-limit.c (check_memory_limits): Fix previous change;
5024 accidentally reverted an earlier change.
5025
24933075
KB
50262010-07-25 Ken Brown <kbrown@cornell.edu>
5027
5028 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
5029 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
5030
361358ea
JB
50312010-07-25 Juanma Barranquero <lekktu@gmail.com>
5032
5033 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
5034 * dired.c (opendir, readdir): Fix prototypes.
5035 * editfns.c (w32_get_internal_run_time): Fix prototypes.
5036 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
5037 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
5038 (telldir): Remove declaration.
5039 * ralloc.c (real_morecore, __morecore): Fix prototypes.
5040 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
5041 * syssignal.h (strsignal): Fix prototype.
5042 * term.c (tparam): Fix prototype.
5043 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
5044 (term_get_fkeys): Set inside "#ifndef DOS_NT".
5045 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
5046 and __morecore.
5047 * w32gui.h (XParseGeometry): Fix prototype.
5048 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
5049 * w32term.c (my_set_focus): Declare inside #if 0.
5050 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
5051 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
5052 (drain_message_queue, get_next_msg, post_msg, parse_button)
5053 (ClipboardSequence_Proc): Fix prototypes.
5054 (wait_for_sync): Remove declaration.
5055
630b9592
JB
50562010-07-24 Juanma Barranquero <lekktu@gmail.com>
5057
5058 * w32fns.c (w32_to_x_color): Remove, unused.
5059
6a0d6611
AS
50602010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5061
5062 * lisp.h: Remove leftover P_.
5063
4e8608ff
DN
50642010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5065
5066 * ecrt0.c, unexalpha.c: Remove files, unused.
5067
c8197983
AS
50682010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5069
5070 * cmds.c (internal_self_insert): Make static.
5071 * lisp.h (internal_self_insert): Remove declaration.
5072
97b372d7
JB
50732010-07-23 Juanma Barranquero <lekktu@gmail.com>
5074
33ac0414
JB
5075 * alloc.c (free_float):
5076 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5077 * frame.c (delete_frame_handler):
5078 * ralloc.c (reorder_bloc):
5079 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5080 Remove unused static functions.
5081
94da8397
JB
5082 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5083 it is called only from NS code.
5084
2e6c8532
JB
5085 * w32term.c (my_set_focus): #ifdef away; it is called only from
5086 "#ifdef 0" code.
5087
97b372d7
JB
5088 * w32fns.c (x_edge_detection):
5089 * xfaces.c (may_use_scalable_font_p):
5090 Remove obsolete static declarations.
5091
7c3320d8
JB
50922010-07-20 Juanma Barranquero <lekktu@gmail.com>
5093
5094 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5095 (emacs_blocked_realloc, uninterrupt_malloc):
5096 * fringe.c (w32_reset_fringes):
5097 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5098 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5099 * sound.c (be2hs, do_play_sound):
5100 * vm-limit.c (get_lim_data, ret_lim_data):
5101 * w32term.c (x_free_frame_resources):
5102 * xfaces.c (x_create_gc, x_free_gc):
5103 Convert definitions to standard C.
5104
d5273788
SM
51052010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5106
5107 * eval.c (Feval, Ffuncall): Use the new names.
5108
5109 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5110 (DEFUN): Add braces around the union initialisation and use ## to
5111 specify the right union alternative and avoid a cast.
5112
8d16a259
JB
51132010-07-18 Juanma Barranquero <lekktu@gmail.com>
5114
5115 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5116
3b8eff32
CY
51172010-07-17 Chong Yidong <cyd@stupidchicken.com>
5118
5119 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5120
499322ce
J
51212010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5122
5123 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5124 is related to the menu bar (Bug#6499).
a628ad9d 5125 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 5126
f6003da5 51272010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
5128
5129 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5130
5131 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5132
5133 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5134 i.e. don't put back ButtonRelease (Bug#6608).
5135
5136 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5137 instead of Window. Call xg_event_is_for_menubar when
5138 USE_GTK (Bug#6499).
5139
5140 * gtkutil.h (xg_event_is_for_menubar): Declare.
5141
5142 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5143
f6003da5 51442010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
5145
5146 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5147 when it's the same as the old foreground. (Bug#6609)
5148
23243f29
J
51492010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5150
5151 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5152 widget is non-null (Bug#6645).
5153
2b23d2a6
AS
51542010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5155
01b564ff
AS
5156 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5157 Convert old-style definition.
5158
2b23d2a6
AS
5159 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5160 timestamp argument.
5161
c4affd2c
EZ
51622010-07-15 Eli Zaretskii <eliz@gnu.org>
5163
5164 * fringe.c (update_window_fringes): Restore mistakenly reverted
5165 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5166
cf28cebc
J
51672010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5168
5169 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5170 (SET_SAVED_KEY_EVENT): Remove (not used).
5171 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5172 remove size parameter.
5173 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5174 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5175 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5176 ButtonRelease.
6b2c4bd9
J
5177 (x_set_window_size_1): scroll_bar_actual_width is always
5178 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
5179
5180 * xdisp.c (pending_menu_activation): Remove extern declaration.
5181 (prepare_menu_bars): Remove setting of pending_menu_activation.
5182
5183 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
5184 (x_activate_menubar): Set popup_activated_flag for Xt also.
5185 Remove setting of pending_menu_activation.
cf28cebc
J
5186 (set_frame_menubar): Remove check of pending_menu_activation.
5187 Declare menubar_size before code. Correct spelling in comment.
5188
f6c1c771
KH
51892010-07-14 Kenichi Handa <handa@m17n.org>
5190
5191 * font.c (font_open_entity): Cancel previous change.
5192 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5193
20477505
EZ
51942010-07-13 Eli Zaretskii <eliz@gnu.org>
5195
77defa9a
EZ
5196 Remove subprocesses #ifdefs.
5197 * process.c <inhibit_sentinels>: Move to the common part.
5198 (Fwaiting_for_user_input_p): Move to the common part; return nil
5199 if async subprocesses aren't supported.
5200 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5201 MS-DOS. Remove "#ifdef subprocesses".
5202 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5203 (gettimeofday): Remove "#ifdef subprocesses".
5204 (wait_without_blocking): Remove function.
5205 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5206 Remove "#ifdef subprocesses".
5207 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5208 compiled on MS-DOS.
5209 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5210 wait_for_termination on MS-DOS.
5211 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5212 initialization of inhibit_sentinels.
5213 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5214 subprocesses" conditional.
5215 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5216 wait_for_termination, since `buffer' cannot be an integer when
5217 async subprocesses are not supported
5218 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5219 for ifdefing away the call to Fprocess_status.
5220
20477505
EZ
5221 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5222 away the entire body of the function.
5223
b3ffc17c
DN
52242010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5225
01faa934
DN
5226 Remove subprocesses #ifdefs from term.c.
5227 * process.c (add_keyboard_wait_descriptor)
5228 (delete_keyboard_wait_descriptor): Move to common section, do
5229 nothing when subprocesses is not defined.
a628ad9d
JB
5230 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5231 Remove subprocesses #ifdefs.
01faa934 5232
b3ffc17c
DN
5233 Convert maybe_fatal to standard C.
5234 * lisp.h (verror): Declare.
5235 * eval.c (verror): New function containing the code from ...
5236 (error): ... this. Call verror.
5237 * term.c (vfatal): New function containing the code from ...
5238 (fatal): ... this. Call vfatal.
5239 (maybe_fatal): Convert to standard C, use variable number of
5240 arguments. Declare as non-return.
5241 (init_tty): Fix maybe_fatal call.
5242
0521f580
DN
52432010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5244
5245 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5246 (_scroll_bar_note_movement): Convert definitions to standard C.
5247 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5248 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5249
ebd15611
DN
52502010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5251
5252 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5253 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5254 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5255 (xaw_jump_callback, xaw_scroll_callback)
5256 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
5257 (x_wm_set_size_hint, x_activate_timeout_atimer):
5258 Convert definitions to standard C.
ebd15611
DN
5259 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5260 (popup_activate_callback, popup_deactivate_callback)
5261 (menu_highlight_callback, menubar_selection_callback)
5262 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5263 (free_frame_menubar, popup_selection_callback, as)
5264 (create_and_show_popup_menu, dialog_selection_callback)
5265 (create_and_show_dialog):
5266 * xfns.c (hack_wm_protocols, x_window):
5267 * xfaces.c (x_update_menu_appearance):
5268 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5269 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5270 (set_frame_size, update_wm_hints, setup_frame_gcs)
5271 (update_various_frame_slots, update_from_various_frame_slots)
5272 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5273 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5274 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5275
de06a2dd
AS
52762010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5277
a628ad9d 5278 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 5279
fc549af9
EZ
52802010-07-12 Eli Zaretskii <eliz@gnu.org>
5281
5282 * process.c (setup_process_coding_systems): Move to the part
5283 shared by non-subprocesses systems, and make its body empty when
5284 subprocesses is not defined.
5285 (close_process_descs): Move to the part shared by non-subprocesses
5286 systems.
1408902e
EZ
5287 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5288 ANSI C.
fc549af9 5289
d5a3eaaf
AS
52902010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5291
5292 * editfns.c (transpose_markers): Convert old-style definition.
5293 * emacs.c (abort, shut_down_emacs, fixup_locale)
5294 (synchronize_system_time_locale)
5295 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5296 * floatfns.c (extract_float, matherr, init_floatfns)
5297 (syms_of_floatfns): Likewise.
5298 * fns.c (make_hash_table): Likewise.
5299 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5300 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5301 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5302 (ftfont_variation_glyphs): Likewise.
5303 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5304 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5305 * lread.c (read_filtered_event): Likewise.
5306 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5307 * process.c (wait_reading_process_output): Likewise.
5308 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5309 * search.c (search_buffer, boyer_moore): Likewise.
5310 * syntax.c (scan_sexps_forward): Likewise.
5311 * xdisp.c (try_scrolling): Likewise.
5312 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5313 (face_at_string_position): Likewise.
5314 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5315 * xselect.c (x_get_window_property, receive_incremental_selection)
5316 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5317 Likewise.
5318 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5319
6f704c76
DN
53202010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5321
ded80a25
DN
5322 * callproc.c (child_setup): Remove subprocesses conditional.
5323 Remove code dealing with SET_EMACS_PRIORITY, unused.
5324
49d937f4 5325 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
5326 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5327
5328 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5329 (__do_global_dtors, __main): Use void in definition.
5330 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5331 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5332 the only users from ...
5333 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5334 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5335 (HAVE_VOLATILE): Remove, unused.
5336
6f704c76
DN
5337 Convert more function definitions to standard C.
5338 * xdisp.c (window_box_edges, handle_single_display_spec)
5339 (display_string): Convert definition to standard C.
5340 * scroll.c (do_direct_scrolling, scrolling_1):
5341 * dispnew.c (allocate_matrices_for_frame_redisplay)
5342 (mirrored_line_dance):
5343 * coding.c (code_convert_string):
5344 * charset.c (map_charset_chars):
5345 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5346 (Fregister_ccl_program, Fregister_code_conversion_map):
5347 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5348 (head_table): Make static and const.
5349
e6cfa7c3
AS
53502010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5351
5352 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5353 (PROFILING_LDFLAGS): Set from substitution.
5354 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5355 CFLAGS last.
5356
892dd565
KH
53572010-07-12 Kenichi Handa <handa@m17n.org>
5358
6f2cdcd1
KH
5359 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5360 (shortlisp): Likewise.
5361
892dd565
KH
5362 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5363
5364 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5365 of FONT_ENTITY_INDEX.
5366 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5367 property, get the property value dynamically.
5368 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 5369 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 5370 return value changed.
bba3e508 5371 (syms_of_font): Adjust for the above change.
892dd565 5372
ae96d47a
AS
53732010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5374
c8fc18ee
AS
5375 * blockinput.h: Remove obsolete comment.
5376
89887d67
AS
5377 * lisp.h: Include <stddef.h>.
5378 (OFFSETOF): Don't define.
5379 (VECSIZE): Use offsetof instead of OFFSETOF.
5380 (PSEUDOVECSIZE): Likewise.
5381 * process.c (conv_sockaddr_to_lisp): Likewise.
5382 * alloc.c: Don't include <stddef.h>.
5383 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5384
ae96d47a
AS
5385 * process.c: Remove obsolete comment.
5386
635c0aa1
CY
53872010-07-11 Chong Yidong <cyd@stupidchicken.com>
5388
5389 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5390
a64df650
AS
53912010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5392
8966b757
AS
5393 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5394 index, rindex.
5395 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5396 * editfns.c (Fuser_full_name, Fformat): Likewise.
5397 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5398 * fileio.c (Ffile_symlink_p): Likewise.
5399 * filelock.c (current_lock_owner): Likewise.
5400 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5401 * fontset.c (fontset_pattern_regexp): Likewise.
5402 * lread.c (read1): Likewise.
5403 * sysdep.c (init_system_name): Likewise.
5404 * xfns.c (select_visual): Likewise.
5405 * s/hpux10-20.h (index, rindex): Don't define.
5406 * s/ms-w32.h (index): Likewise.
5407 * s/usg5-4.h: Likewise.
5408
cf237e27
AS
5409 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5410
a8fe7202
AS
5411 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5412 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5413 (egetenv): Likewise.
5414 * doprnt.c (doprnt): Likewise.
5415 * editfns.c (set_time_zone_rule, format2): Likewise.
5416 * emacs.c (decode_env_path): Likewise.
5417 * eval.c (signal_error, error): Likewise.
5418 * insdel.c (replace_range_2): Likewise.
5419 * keyboard.c (cmd_error_internal): Likewise.
5420 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5421 * print.c (write_string, write_string_1, print_error_message):
5422 Likewise.
5423 * vm-limit.c (warn_function, memory_warnings): Likewise.
5424 * xdisp.c (message1, message1_nolog, message_with_string)
5425 (vmessage, message, message_nolog): Likewise.
5426 * emacs.c: Remove duplicate declaration.
5427 * keyboard.h: Likewise.
5428 * lisp.h: Update prototypes.
5429
bb8e180f
AS
5430 * eval.c: Fix indentation problem.
5431
83380e65
AS
5432 * keyboard.c: Include "process.h"
5433
a64df650
AS
5434 * eval.c: Remove obsolete noinline declaration.
5435 * fns.c: Likewise.
5436
6a8033e1
KR
54372010-07-11 Ken Raeburn <raeburn@raeburn.org>
5438
5439 * doprnt.c (doprnt): Take a va_list argument instead of count and
5440 pointer.
5441 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 5442 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
5443 changed to take a va_list argument.
5444 (message): New variadic wrapper.
5445 (message_nolog): Now a variadic function, calling vmessage.
5446 * lisp.h: Include stdarg.h for va_list.
5447 (doprnt, error, message, message_nolog): Decls updated.
5448
462aa963
EZ
54492010-07-11 Eli Zaretskii <eliz@gnu.org>
5450
5451 * process.c (syms_of_process) <delete-exited-processes>: Define
5452 even if !subprocesses.
5453 (delete_exited_processes): Ditto.
5454
5455 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5456 (delete_exited_processes): Don't define.
5457
48104462
CY
54582010-07-10 Chong Yidong <cyd@stupidchicken.com>
5459
5460 * frame.c (make_frame): Initialize menu_bar_lines and
5461 tool_bar_lines members.
bba3e508
SM
5462 (make_initial_frame, make_terminal_frame):
5463 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
5464
5465 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5466
f388c88a
EZ
54672010-07-10 Eli Zaretskii <eliz@gnu.org>
5468
5469 * process.c: Reshuffle #include's. Condition some of the global
5470 and static variables on `subprocesses'.
5471 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5472 Leave only one implementation.
5473 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5474 (kill_buffer_processes, Flist_system_processes)
5475 (Fprocess_attributes, init_process, syms_of_process): Unify the
5476 implementations for with subprocesses and without them.
5477
723f5a07
J
54782010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5479
5480 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5481 correct size for Motif.
5482 (free_frame_menubar): Call x_set_window_size to update frame size.
5483
5484 * xfns.c (x_window): Set borderWidth to 0 for pane and
5485 EmacsFrame. Frame size calculation is wrong otherwise.
5486
2536a4b7
MA
54872010-07-09 Michael Albinus <michael.albinus@gmx.de>
5488
5489 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5490 allows to suppress errors when polling in Emacs' main loop.
5491 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5492 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5493 (Fdbus_method_error_internal, Fdbus_send_signal)
5494 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5495 (Fdbus_register_method): Use it. (Bug#6579)
5496
5842a27b
DN
54972010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5498
5499 * alloc.c: Convert DEFUNs to standard C.
5500 * buffer.c:
5501 * bytecode.c:
5502 * callint.c:
5503 * callproc.c:
5504 * casefiddle.c:
5505 * casetab.c:
5506 * category.c:
5507 * character.c:
5508 * charset.c:
5509 * chartab.c:
5510 * cmds.c:
5511 * coding.c:
5512 * composite.c:
5513 * data.c:
5514 * dbusbind.c:
5515 * dired.c:
5516 * dispnew.c:
5517 * doc.c:
5518 * dosfns.c:
5519 * editfns.c:
5520 * emacs.c:
5521 * eval.c:
5522 * fileio.c:
5523 * filelock.c:
5524 * floatfns.c:
5525 * fns.c:
5526 * font.c:
5527 * fontset.c:
5528 * frame.c:
5529 * fringe.c:
5530 * image.c:
5531 * indent.c:
5532 * insdel.c:
5533 * keyboard.c:
5534 * keymap.c:
5535 * lread.c:
5536 * macros.c:
5537 * marker.c:
5538 * menu.c:
5539 * minibuf.c:
5540 * msdos.c:
5541 * nsfns.m:
5542 * nsmenu.m:
5543 * nsselect.m:
5544 * print.c:
5545 * process.c:
5546 * search.c:
5547 * sound.c:
5548 * syntax.c:
5549 * term.c:
5550 * terminal.c:
5551 * textprop.c:
5552 * undo.c:
5553 * w16select.c:
5554 * w32console.c:
5555 * w32fns.c:
5556 * w32font.c:
5557 * w32menu.c:
5558 * w32proc.c:
5559 * w32select.c:
5560 * window.c:
5561 * xdisp.c:
5562 * xfaces.c:
5563 * xfns.c:
5564 * xmenu.c:
5565 * xselect.c:
5566 * xsettings.c:
5567 * xsmfns.c: Likewise.
5568
d568829b
EZ
55692010-07-08 Eli Zaretskii <eliz@gnu.org>
5570
5571 * process.c (kbd_is_on_hold, hold_keyboard_input)
5572 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5573
52214050
J
55742010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5575
5576 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5577 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5578 unless USE_LUCID.
5579
313d9eb2
DN
55802010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5581
a628ad9d
JB
5582 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5583 declaration.
d8825aa3 5584
295d0d8f
DN
5585 Clean up include guards.
5586 * tparam.c: Remove include guards for config.h, string.h and code
5587 that assumes #ifndef emacs.
5588 * termcap.c:
5589 * unexalpha.c:
5590 * sysdep.c:
5591 * filemode.c:
5592 * filelock.c:
5593 * bidi.c: Likewise.
5594
49d9e6b0
DN
5595 Remove prefix-args.c
5596 * prefix-args.c: Remove file.
5597 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5598 * Makefile.in (temacs${EXEEXT}): Remove references to
5599 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5600 (mostlyclean): Remove reference to prefix-args.
5601 (prefix-args): Remove.
5602
313d9eb2
DN
5603 Simplify cstart_of_data, start_of_code and related code.
5604 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5605 (start_of_data): Merge into start_of_data function.
5606 * sysdep.c (start_of_text): Remove. Move simplified versions of
5607 it in the only users: unexaix.c and unexec.c.
5608 (read_input_waiting): Remove local declaration of quit_char.
5609 (start, etext): Remove declarations.
5610 (start_of_data): Merge with the version in mem-limits.h and move
5611 to vm-limits.c.
5612 * vm-limit.c (start_of_data): Merged and simplified version of the
5613 code formerly in mem-limits.h and sysdep.c.
5614 * unexec.c (start): New declaration, moved from sysdep.c.
5615 (start_of_text): Simplified version of the code formerly in sysdep.c.
5616 * unexaix.c (start_of_text): Simplified version of the code
5617 formerly in sysdep.c.
5618 * m/alpha.h (HAVE_TEXT_START): Remove.
5619 (TEXT_START): Move ...
5620 * unexalpha.c (TEXT_START): ... here.
5621 * s/hpux10-20.h (TEXT_START): Remove.
5622 * s/darwin.h (TEXT_START):
5623 * m/mips.h (TEXT_START):
5624 * m/macppc.h (HAVE_TEXT_START):
5625 * m/m68k.h (TEXT_START):
5626 * m/iris4d.h (TEXT_START):
5627 * m/intel386.h (TEXT_START):
5628 * m/ibmrs6000.h (TEXT_START):
5629 * m/ia64.h (HAVE_TEXT_START):
5630 * s/msdos.h (TEXT_START): Likewise.
5631
72af86bd
AS
56322010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5633
5634 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5635 (overrun_check_free, xstrdup, allocate_string)
5636 (allocate_string_data, compact_small_strings, Fmake_string)
5637 (make_unibyte_string, make_multibyte_string)
5638 (make_string_from_bytes, make_specified_string, make_float)
5639 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5640 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5641 memcpy, memmove, memset, memcmp.
5642 * atimer.c (start_atimer, set_alarm): Likewise.
5643 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5644 (mmap_realloc, init_buffer_once): Likewise.
5645 * callint.c (Fcall_interactively): Likewise.
5646 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5647 (getenv_internal_1): Likewise.
5648 * casefiddle.c (casify_object): Likewise.
5649 * ccl.c (ccl_driver): Likewise.
5650 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5651 * charset.c (load_charset_map_from_file)
5652 (load_charset_map_from_file, load_charset_map_from_vector)
5653 (Fdefine_charset_internal): Likewise.
5654 * cm.c (Wcm_clear): Likewise.
5655 * coding.c (decode_eol, decode_coding_object)
5656 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5657 * data.c (Faset): Likewise.
5658 * dired.c (directory_files_internal, file_name_completion_stat):
5659 Likewise.
5660 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5661 (clear_glyph_row, copy_row_except_pointers)
5662 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5663 (save_current_matrix, restore_current_matrix)
5664 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5665 (mirror_line_dance, scrolling_window): Likewise.
5666 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5667 Likewise.
5668 * doprnt.c (doprnt): Likewise.
5669 * editfns.c (Fuser_full_name, make_buffer_string_both)
5670 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5671 * emacs.c (sort_args): Likewise.
5672 * eval.c (Fapply, Ffuncall): Likewise.
5673 * fileio.c (Ffile_name_directory, make_temp_name)
5674 (Fexpand_file_name, search_embedded_absfilename)
5675 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5676 (auto_save_error): Likewise.
5677 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5678 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5679 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5680 (Fmake_hash_table): Likewise.
5681 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5682 * ftfont.c (ftfont_text_extents): Likewise.
5683 * getloadavg.c (getloadavg): Likewise.
5684 * image.c (define_image_type, make_image, make_image_cache)
5685 (x_create_x_image_and_pixmap, xbm_image_p)
5686 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5687 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5688 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5689 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5690 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5691 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5692 Likewise.
5693 * indent.c (scan_for_column, compute_motion): Likewise.
5694 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5695 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5696 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5697 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5698 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5699 (store_user_signal_events, menu_bar_items, tool_bar_items)
5700 (process_tool_bar_item, append_tool_bar_item)
5701 (read_char_minibuf_menu_prompt, read_key_sequence)
5702 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5703 Likewise.
5704 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5705 Likewise.
5706 * lisp.h (STRING_COPYIN): Likewise.
5707 * lread.c (Fload, read1, oblookup): Likewise.
5708 * msdos.c (Frecent_doskeys): Likewise.
5709 * nsfns.m (Fx_create_frame): Likewise.
5710 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5711 Likewise.
5712 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5713 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5714 Likewise.
5715 * nsmenu.m (ns_update_menubar): Likewise.
5716 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5717 * print.c (print_unwind, printchar, strout, print_string)
5718 (print_error_message): Likewise.
5719 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5720 (Fmake_network_process, Fnetwork_interface_list)
5721 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5722 (init_process): Likewise.
5723 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5724 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5725 Likewise.
5726 * scroll.c (do_scrolling, do_direct_scrolling)
5727 (scrolling_max_lines_saved): Likewise.
5728 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5729 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5730 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5731 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5732 (emacs_set_tty): Likewise.
5733 * term.c (encode_terminal_code, calculate_costs)
5734 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5735 Likewise.
5736 * termcap.c (tgetst1, gobble_line): Likewise.
5737 * termhooks.h (EVENT_INIT): Likewise.
5738 * tparam.c (tparam1): Likewise.
5739 * unexalpha.c (unexec): Likewise.
5740 * unexec.c (write_segment): Likewise.
5741 * unexmacosx.c (unexec_write_zero): Likewise.
5742 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5743 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5744 * w32font.c (w32font_list_family, w32font_text_extents)
5745 (w32font_list_internal, w32font_match_internal)
5746 (w32font_open_internal, compute_metrics, Fx_select_font):
5747 Likewise.
5748 * w32menu.c (set_frame_menubar, add_menu_item)
5749 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5750 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5751 * w32uniscribe.c (uniscribe_list_family): Likewise.
5752 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5753 * window.c (make_window, replace_window, set_window_buffer)
5754 (Fsplit_window): Likewise.
5755 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5756 (add_to_log, message3, x_consider_frame_title)
5757 (append_space_for_newline, extend_face_to_end_of_line)
5758 (decode_mode_spec_coding, init_glyph_string): Likewise.
5759 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5760 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5761 (face_attr_equal_p, make_realized_face, make_face_cache)
5762 (free_realized_faces, lookup_named_face, smaller_face)
5763 (face_with_height, lookup_derived_face)
5764 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5765 (Finternal_set_font_selection_order, realize_default_face)
5766 (compute_char_face, face_at_buffer_position)
5767 (face_for_overlay_string, face_at_string_position, merge_faces):
5768 Likewise.
5769 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5770 (Fx_window_property, x_create_tip_frame)
5771 (Fx_backspace_delete_keys_p): Likewise.
5772 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5773 (xfont_text_extents): Likewise.
5774 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5775 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5776 * xselect.c (x_queue_event, x_get_window_property)
5777 (receive_incremental_selection): Likewise.
5778 * xsmfns.c (x_session_check_input): Likewise.
5779 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5780 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5781 Likewise.
5782 * character.h (BCOPY_SHORT): Removed.
5783 * config.in: Regenerate.
5784 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5785 * emacs.c (main) [PROFILING]: Don't declare
5786 dump_opcode_frequencies.
5787 * lisp.h (safe_bcopy): Remove declaration.
5788 (memset) [!HAVE_MEMSET]: Declare.
5789 (memcpy) [!HAVE_MEMCPY]: Likewise.
5790 (memmove) [!HAVE_MEMMOVE]: Likewise.
5791 (memcmp) [!HAVE_MEMCMP]: Likewise.
5792 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5793 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5794 Don't define.
5795 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5796 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5797 (BCOPY_DOWNWARD_SAFE): Don't define.
5798 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5799 (memcpy) [!HAVE_MEMCPY]: Define.
5800 (memmove) [!HAVE_MEMMOVE]: Define.
5801 (memcmp) [!HAVE_MEMCMP]: Define.
5802
cb768704
J
58032010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5804
5805 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
5806 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5807 New functions.
cb768704
J
5808 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5809 select on empty input mask.
5810 (init_process): Initialize kbd_is_on_hold to 0.
5811
5812 * process.h (hold_keyboard_input, unhold_keyboard_input)
5813 (kbd_on_hold_p): Declare.
5814
5815 * keyboard.c (input_available_signal): Declare.
5816 (kbd_buffer_nr_stored): New function.
5817 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5818 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5819 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5820 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5821 (tty_read_avail_input): If input is on hold, return.
5822 Don't read more that free slots in kbd_buffer (Bug#6571).
5823
3a8ce822
EZ
58242010-07-07 Eli Zaretskii <eliz@gnu.org>
5825
5826 * msdos.h:
5827 * msdos.c:
5828 * dosfns.c:
5829 * w16select.c: Convert function definitions to ANSI C.
5830
a628ad9d
JB
5831 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5832 Remove unused prototypes.
3a8ce822 5833
cf84bb53
JB
58342010-07-07 Juanma Barranquero <lekktu@gmail.com>
5835
5836 * coding.c, sysdep.c: Convert some more functions to standard C.
5837
1a4990fb
JB
58382010-07-07 Juanma Barranquero <lekktu@gmail.com>
5839
5840 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5841 (encode_coding_object): Use SPECPDL_INDEX.
5842 (syms_of_coding): Use DOS_NT.
5843
c0f2f16b
DN
58442010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5845
48fb6855
DN
5846 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5847
c0f2f16b
DN
5848 Make the function member of Lisp_Subr use standard C prototypes.
5849 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5850 (DECL_ALIGN): Add a cast for the function.
5851 * eval.c (Feval, Ffuncall): Use the proper type for each type
5852 function call.
5853
67aecef9
CY
58542010-07-06 Chong Yidong <cyd@stupidchicken.com>
5855
5856 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5857 fringe face id, so face-remapping-alist works (Bug#6091).
5858
b56ceb92
JB
58592010-07-06 Juanma Barranquero <lekktu@gmail.com>
5860
5861 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5862 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5863 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5864
7af07b96
AS
58652010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5866
5867 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5868 * lisp.h: Declare x_get_keysym_name.
5869 * keyboard.c (modify_event_symbol): Don't declare
5870 x_get_keysym_name here.
5871
69e24e34
DN
58722010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5873
5874 * ecrt0.c: Revert conversion to standard C.
5875
d3da34e0 58762010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
5877
5878 * vm-limit.c (memory_warnings):
5879 * keyboard.c (modify_event_symbol):
5880 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5881 (round2, emacs_rint):
5882 * process.c (send_process, old_sigpipe): Convert function
5883 definitions and declarations to standard C.
5884
58852010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
5886
5887 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5888 * xdisp.c: Convert function definitions to standard C.
5889
5890 * cm.c (cmputc): Arg C is now int, not char.
5891 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5892
00be444c
J
58932010-07-05 James Cloos <cloos@jhcloos.com>
5894
5895 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5896
5897 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5898 _NET_WM_ICON_NAME atoms.
5899
5900 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5901 and _NET_WM_ICON_NAME properties, too, matching what is
5902 done in the Gtk+ case.
5903
e4c8d29a
J
59042010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5905
ff919460
J
5906 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5907
e4c8d29a
J
5908 * xsmfns.c (SSDATA): New macro.
5909 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5910 passed to strlen/strcpy/strcat.
bba3e508
SM
5911 (create_client_leader_window): Surround with #ifndef USE_GTK.
5912 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
5913
5914 * xsettings.c (something_changedCB, parse_settings)
5915 (apply_xft_settings): Reformat prototype.
5916 (something_changedCB, init_gconf): Remove unused variable i.
5917 (read_settings): Remove unused variable long_len.
5918
5919 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5920 (xg_get_image_for_pixmap, create_dialog)
5921 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5922 (menuitem_highlight_callback, make_menu_item)
5923 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5924 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5925 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5926 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5927 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5928 (xg_tool_bar_item_expose_callback): Reformat prototype.
5929 (xg_update_menubar): GList *group => GSList *group.
5930 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5931 before use.
5932 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5933 to GTK_IMAGE (wimage).
5934
dd4c5104
DN
59352010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5936
898b4c5c
DN
5937 * atimer.c: Use "" instead of <> for local includes for
5938 consistency with the rest of the code.
5939
dd4c5104
DN
5940 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5941 * xrdb.c (get_system_name):
5942 * window.c (shrink_windows):
5943 * syntax.c (forw_comment):
5944 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5945 (ins_del_costs):
5946 * mem-limits.h (start_of_data):
5947 * lread.c (readevalloop):
5948 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5949 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5950 * frame.c (x_get_focus_frame):
5951 * floatfns.c (fmod_float):
5952 * fileio.c (choose_write_coding_system):
5953 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5954 (malloc_initialize_hook, sort_args, synchronize_locale):
5955 * doprnt.c (doprnt):
5956 * dired.c (compile_pattern):
5957 * data.c (fmod_float):
5958 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5959 (map_char_table_for_charset):
5960 * charset.c (define_charset_internal):
5961 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5962 to standard C.
5963
9a39b306 59642010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 5965 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
5966
5967 * lread.c (read1): Fix up last change to not mess up `c'.
5968
e6cb2cbb
JB
59692010-07-04 Juanma Barranquero <lekktu@gmail.com>
5970
5971 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5972
438105ed
JB
59732010-07-04 Juanma Barranquero <lekktu@gmail.com>
5974
5975 Fix prototypes.
5976
e5447b22 5977 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 5978 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
5979 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5980 arg, as required by internal_condition_case_1.
dcc7404b 5981 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
5982 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5983 (analyse_first): Fix "const const".
e5447b22 5984 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 5985 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 5986 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 5987
971de7fb
DN
59882010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
5989
5990 * alloc.c: Convert function definitions to standard C.
5991 * atimer.c:
5992 * bidi.c:
5993 * bytecode.c:
5994 * callint.c:
5995 * callproc.c:
5996 * casefiddle.c:
5997 * casetab.c:
5998 * category.c:
5999 * ccl.c:
6000 * character.c:
6001 * charset.c:
6002 * chartab.c:
6003 * cmds.c:
6004 * coding.c:
6005 * composite.c:
6006 * data.c:
6007 * dbusbind.c:
6008 * dired.c:
6009 * dispnew.c:
6010 * doc.c:
6011 * doprnt.c:
6012 * ecrt0.c:
6013 * editfns.c:
6014 * fileio.c:
6015 * filelock.c:
6016 * filemode.c:
6017 * fns.c:
6018 * font.c:
6019 * fontset.c:
6020 * frame.c:
6021 * fringe.c:
6022 * ftfont.c:
6023 * ftxfont.c:
6024 * gtkutil.c:
6025 * indent.c:
6026 * insdel.c:
6027 * intervals.c:
6028 * keymap.c:
6029 * lread.c:
6030 * macros.c:
6031 * marker.c:
6032 * md5.c:
6033 * menu.c:
6034 * minibuf.c:
6035 * prefix-args.c:
6036 * print.c:
6037 * ralloc.c:
6038 * regex.c:
6039 * region-cache.c:
6040 * scroll.c:
6041 * search.c:
6042 * sound.c:
6043 * strftime.c:
6044 * syntax.c:
6045 * sysdep.c:
6046 * termcap.c:
6047 * terminal.c:
6048 * terminfo.c:
6049 * textprop.c:
6050 * tparam.c:
6051 * undo.c:
6052 * unexelf.c:
6053 * window.c:
6054 * xfaces.c:
6055 * xfns.c:
6056 * xfont.c:
6057 * xftfont.c:
6058 * xgselect.c:
6059 * xmenu.c:
6060 * xrdb.c:
6061 * xselect.c:
6062 * xsettings.c:
6063 * xsmfns.c:
6064 * xterm.c: Likewise.
6065
ae492bec
EZ
60662010-07-03 Eli Zaretskii <eliz@gnu.org>
6067
76ea4cc9
EZ
6068 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6069 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
6070 `reverse' is specified in the frame parameters.
6071 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
6072 internal-set-lisp-face-attribute. Initialize screen colors from
6073 initial_screen_colors[] when f->default_face_done_p is zero,
6074 instead of depending on being called with default-frame-alist as
6075 the alist argument.
6076
6077 * xfaces.c (update_face_from_frame_parameter): Move out of
6078 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6079 with HAVE_WINDOW_SYSTEM.
6080
1e6255ae
EZ
6081 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6082 to menu-bar-mode, if not set in the frame parameters or in
6083 default-frame-alist.
6084
ae492bec
EZ
6085 * w32console.c (sys_tputs): Adjust argument list to prototype in
6086 term.c.
6087
3a35a84c
JB
60882010-07-03 Juanma Barranquero <lekktu@gmail.com>
6089
6090 * lisp.h (memory_warnings): Fix prototype.
6091
6092 * cm.h (evalcost): Fix prototype.
6093
6094 * cm.c (evalcost): Fix arg type.
6095
c532d349
DN
60962010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6097
6098 * term.c (term_clear_mouse_face, Fidentity):
6099 * syssignal.h (signal_handler_t):
6100 * lisp.h (memory_warnings):
6101 * coding.h (preferred_coding_system):
6102 * cm.h (evalcost):
6103 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6104
c0b36d46
EZ
61052010-07-02 Eli Zaretskii <eliz@gnu.org>
6106
6107 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6108 from prototypes.
6109
6110 * msdos.h (load_pixmap): Don't define away.
6111
383e0970
J
61122010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6113
f57e2426
J
6114 * lisp.h:
6115 * atimer.h: Remove define for P_.
6116
6117 * alloc.c: Remove __P and P_ from .c and .m files.
6118 * atimer.c:
6119 * buffer.c:
6120 * callint.c:
6121 * category.c:
6122 * charset.c:
6123 * chartab.c:
6124 * cm.c:
6125 * coding.c:
6126 * composite.c:
6127 * data.c:
6128 * dired.c:
6129 * dispnew.c:
6130 * doc.c:
6131 * editfns.c:
6132 * emacs.c:
6133 * eval.c:
6134 * fileio.c:
6135 * filelock.c:
6136 * fns.c:
6137 * font.c:
6138 * fontset.c:
6139 * frame.c:
6140 * ftfont.c:
6141 * ftxfont.c:
6142 * gmalloc.c:
6143 * gtkutil.c:
6144 * image.c:
6145 * indent.c:
6146 * intervals.c:
6147 * keyboard.c:
6148 * keymap.c:
6149 * lread.c:
6150 * marker.c:
6151 * menu.c:
6152 * minibuf.c:
6153 * print.c:
6154 * process.c:
6155 * scroll.c:
6156 * search.c:
6157 * sound.c:
6158 * strftime.c:
6159 * syntax.c:
6160 * sysdep.c:
6161 * term.c:
6162 * terminal.c:
6163 * textprop.c:
6164 * unexalpha.c:
6165 * w32console.c:
6166 * w32fns.c:
6167 * w32font.c:
6168 * w32menu.c:
6169 * w32term.c:
6170 * w32uniscribe.c:
6171 * window.c:
6172 * xdisp.c:
6173 * xfaces.c:
6174 * xfns.c:
6175 * xfont.c:
6176 * xftfont.c:
6177 * xmenu.c:
6178 * xselect.c:
6179 * xterm.c: Likewise.
6180
383e0970 6181 Remove P_ and __P macros.
f57e2426
J
6182 * atimer.h: Remove P_ and __P macros.
6183 * buffer.h:
383e0970
J
6184 * category.h:
6185 * ccl.h:
6186 * character.h:
6187 * charset.h:
6188 * cm.h:
6189 * coding.h:
6190 * composite.h:
6191 * dispextern.h:
6192 * disptab.h:
9e892c8d 6193 * dosfns.h:
383e0970
J
6194 * font.h:
6195 * fontset.h:
6196 * frame.h:
6197 * gtkutil.h:
6198 * indent.h:
6199 * intervals.h:
6200 * keyboard.h:
6201 * keymap.h:
6202 * lisp.h:
6203 * macros.h:
6204 * md5.h:
6205 * menu.h:
6206 * msdos.h:
6207 * nsterm.h:
6208 * puresize.h:
6209 * region-cache.h:
6210 * syntax.h:
6211 * syssignal.h:
6212 * systime.h:
6213 * termhooks.h:
9e892c8d 6214 * w32font.h:
383e0970
J
6215 * w32term.h:
6216 * widget.h:
6217 * window.h:
6218 * xgselect.h:
6219 * xsettings.h:
6220 * xterm.h: Likewise.
6221
98601119
DN
62222010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6223
d9170db5
DN
6224 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6225
98601119
DN
6226 Cleanup old code.
6227 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6228 * syssignal.h: Remove code for Lynx, not supported anymore.
6229 * vm-limit.c: Remove unused code the depends on emacs not being
6230 defined and NO_LIM_DATA being defined.
6231 * mem-limits.h: Remove dead code.
6232
1f984e12
J
62332010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6234
c49d071a
J
6235 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6236
9d5405ec
J
6237 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6238 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6239
7a18115b
J
6240 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6241 parameters, they are already absolute.
6242
a628ad9d
JB
6243 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6244 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 6245
a628ad9d 6246 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 6247
a628ad9d
JB
6248 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6249 Update FRAME_TOOLBAR_HEIGHT.
581a8100 6250
a628ad9d
JB
6251 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6252 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 6253
c1ef4455
CY
62542010-06-30 Chong Yidong <cyd@stupidchicken.com>
6255
bba3e508
SM
6256 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6257 Don't check default-frame-alist.
c1ef4455 6258
ce8f5a9a
AS
62592010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6260
6261 * process.c (create_process): Avoid using invalid file descriptors.
6262
6263 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6264
bf935339
J
62652010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6266
6267 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6268 Improve documentation. Return font regardless of use_system_font.
6269 (syms_of_xsettings): Improve documentation for font-use-system-font.
6270
7c33a057
CY
62712010-07-10 Chong Yidong <cyd@stupidchicken.com>
6272
2ec1b5ee
CY
6273 * xfaces.c (realize_face): Garbage the frame if a face is removed
6274 (Bug#6593).
6275
62762010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6277
6278 * keyboard.c: Remove duplicate <setjmp.h>.
6279 (read_key_sequence): Remove volatile qualifiers.
6280
62812010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6282
6283 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6284 (struct glyph_row): New members left_fringe_offset and
6285 right_fringe_offset.
6286
6287 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6288 specially.
6289 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6290 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6291
6292 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 6293 Take account of bitmap offset.
2ec1b5ee
CY
6294 (draw_window_fringes): Take account of window vscroll.
6295 (update_window_fringes): Likewise. Extend top-aligned top indicator
6296 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6297 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6298 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6299
63002010-07-04 Juanma Barranquero <lekktu@gmail.com>
6301
6302 * w32fns.c (Qtooltip): Declare.
6303 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6304
63052010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6306
6307 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6308 grab on just Press (Bug#6499).
6309
63102010-07-02 Chong Yidong <cyd@stupidchicken.com>
6311
6312 * frame.c (Qtooltip): New var.
6313 (delete_frame): Use it. Fix faulty if statement. Don't update
6314 mode line for tooltip frames. Suggested by Martin Rudalics.
6315
6316 * xfns.c (x_create_tip_frame):
6317 * w32fns.c (x_create_tip_frame): Use it.
6318
63192010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
6320
6321 * xftfont.c (xftfont_open): Check font width one by one also when
6322 spacing is dual.
6323
6324 * ftfont.c (ftfont_open): Ditto.
6325
6259c2ec
GM
63262010-06-30 Glenn Morris <rgm@gnu.org>
6327
a46007e9
GM
6328 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6329
6259c2ec
GM
6330 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6331
6332 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6333 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6334 * s/darwin.h (SYSTEM_MALLOC):
6335 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6336
5d1d3d04
J
63372010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6338
6339 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6340 (ns_get_screen): Don't assign integer to f.
6341 (Fx_display_color_cells): Declarations before statements.
6342
e547b051
J
63432010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6344
5fc8e5bc
J
6345 * xfns.c (x_default_font_parameter): Remove got_from_system
6346 (Bug#6526).
6347
e547b051 6348 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
6349 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6350 New defines based on what configure finds.
e547b051
J
6351
6352 * xterm.c (XTflash): Use gtk_widget_get_window.
6353 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6354 gtk_adjustment_get_page_size.
6355 (handle_one_xevent): Use gtk_widget_get_mapped.
6356 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6357 messages.
6358
6359 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6360
6361 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6362 HAVE_GTK_FILE_SELECTION_NEW.
6363
bba3e508
SM
6364 * gtkutil.c (xg_display_open, xg_display_close):
6365 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
6366 (xg_display_open): Return type is void.
6367 (gtk_widget_set_has_window)
6368 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6369 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6370 (gtk_adjustment_set_page_increment)
6371 (gtk_adjustment_get_step_increment): #define these if not found
6372 by configure.
6373 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
6374 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6375 Use gtk_widget_get_window.
e547b051
J
6376 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6377 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6378 (create_dialog): Use gtk_dialog_get_action_area and
6379 gtk_dialog_get_content_area.
6380 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6381 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6382 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
6383 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6384 Use g_object_ref and g_object_unref.
6385 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6386 Use gtk_widget_get_sensitive.
e547b051
J
6387 (xg_update_submenu): Use remove_submenu.
6388 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6389 properties instead to get old x and y position.
6390 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6391 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 6392 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
6393 (xg_get_tool_bar_widgets): New function.
6394 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6395 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6396 (toolbar_set_orientation): New #define based on if configure
6397 finds gtk_orientable_set_orientation.
6398 (xg_create_tool_bar): Call toolbar_set_orientation.
6399 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6400 instead of gtk_box_pack_start_defaults.
6401
b9229673
CY
64022010-06-28 Chong Yidong <cyd@stupidchicken.com>
6403
6404 * cmds.c (Fdelete_backward_char): Move into Lisp.
6405
bbc803b0
DN
64062010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6407
6408 * s/freebsd.h (BSD4_2): Remove redundant definition.
6409 bsd-common.h defines it already.
6410
6431f2e6
CY
64112010-06-27 Chong Yidong <cyd@stupidchicken.com>
6412
6413 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6414 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6415 tool-bar-mode, which are now set using these X resources at
6416 startup, to determine the defaults (Bug#2249).
6417
6418 * w32fns.c (Fx_create_frame):
6419 * nsfns.m (Fx_create_frame): Likewise.
6420
6421 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6422
8c079ebb
JB
64232010-06-24 Juanma Barranquero <lekktu@gmail.com>
6424
6425 * gtkutil.c (xg_update_scrollbar_pos):
6426 Avoid C99 mid-block variable declaration.
6427
e9b7ab96
JD
64282010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6429
bc869eca
JD
6430 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6431
2b7e356a 6432 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
6433
6434 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6435 if height is less than scroll bar min size.
6436 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6437
e9b7ab96
JD
6438 * xfns.c (x_default_font_parameter): Try to open font from system
6439 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6440
a628ad9d 64412010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
6442
6443 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6444
70c4cfbb
EZ
64452010-06-20 Eli Zaretskii <eliz@gnu.org>
6446
6447 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6448 most-positive-fixnum, be extra accurate when scrolling window
6449 start, to avoid missing the cursor line.
6450
ad5a12b5
EZ
64512010-06-19 Eli Zaretskii <eliz@gnu.org>
6452
6453 * xdisp.c (try_scrolling): Compute the limit for searching point
6454 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
6455 of 10 screen lines.
6456 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
6457 and
6458 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6459 for details.
6460
2a64315a 64612010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
6462
6463 * editfns.c (Fbyte_to_string): Pacify compiler.
6464
288cf4e9
SM
64652010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6466
6467 * lread.c (read1): Phase out old-style backquotes a bit more.
6468
6e6e5760
EZ
64692010-06-12 Eli Zaretskii <eliz@gnu.org>
6470
cbc4fd20
EZ
6471 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6472 bidimirror.h.
6473
6474 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6475
317fbf33
EZ
6476 * bidi.c (bidi_initialize): Remove explicit initialization of
6477 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 6478 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 6479 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
6480
6481 * biditype.h: New file.
6482
cbc4fd20
EZ
6483 * bidimirror.h: New file.
6484
6e6e5760
EZ
6485 * window.c (syms_of_window): Doc fix (bug#6409).
6486
4176cba2
RF
64872010-06-12 Romain Francoise <romain@orebokech.com>
6488
6489 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6490 ediff-hook.
6491
cb4bfcb5
GM
64922010-06-10 Glenn Morris <rgm@gnu.org>
6493
64c60c2f
GM
6494 * editfns.c (Fbyte_to_string): Pacify compiler.
6495
cb4bfcb5
GM
6496 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6497
2ec1b5ee
CY
64982010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6499
6500 * alloc.c (Fmake_byte_code): Don't access undefined argument
6501 (Bug#6517).
6502
65032010-06-25 Chong Yidong <cyd@stupidchicken.com>
6504
6505 * xdisp.c (next_element_from_image): Ensure that after-strings are
6506 read the next time we hit handle_stop (Bug#1336).
6507
65082010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6509
6510 * lread.c (read1): Signal error if #s is not followed by paren.
6511
65122010-06-19 Chong Yidong <cyd@stupidchicken.com>
6513
6514 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6515
6516 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6517
65182010-06-15 Glenn Morris <rgm@gnu.org>
6519
6520 * editfns.c (Fbyte_to_string): Pacify compiler.
6521
e454a4a3
SM
65222010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6523
6524 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6525 Check `object's type before accessing its guts.
6526
c1b1acc2
DN
65272010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6528
6529 * s/usg5-4.h: Fix previous change.
6530 Suggested by Lawrence Mitchell <wence@gmx.li>
6531
657d4c0b
AS
65322010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6533
6534 * minibuf.c (Fall_completions): Add more checks.
6535
9b27fd9f
JB
65362010-06-08 Juanma Barranquero <lekktu@gmail.com>
6537
6538 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6539
a99ebb40
DN
65402010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6541
d7c5d87d
DN
6542 * lread.c (X_OK): Remove, unused.
6543
0263a941
DN
6544 * dispnew.c: Remove obsolete comment.
6545
a99ebb40
DN
6546 Remove INCLUDED_FCNTL.
6547 * xterm.c (INCLUDED_FCNTL):
6548 * callproc.c (INCLUDED_FCNTL):
6549 * alloc.c (INCLUDED_FCNTL):
6550 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6551 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6552
13b5221f
MR
65532010-06-07 Martin Rudalics <rudalics@gmx.at>
6554
6555 * window.c (Fselect_window): Move `record_buffer' up to the
6556 beginning of this function, so the buffer gets recorded
6557 even if the selected window does not change.
6558 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6559
5220357f
JB
65602010-06-07 Juanma Barranquero <lekktu@gmail.com>
6561
6562 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6563 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6564
3085237c
DN
65652010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6566
6567 Remove BSTRING related code, all platforms define it.
6568 * s/usg5-4.h (BSTRING): Remove definition.
6569 * s/template.h (BSTRING):
6570 * s/msdos.h (BSTRING):
6571 * s/ms-w32.h (BSTRING):
6572 * s/hpux10-20.h (BSTRING):
6573 * s/gnu-linux.h (BSTRING):
6574 * s/darwin.h (BSTRING):
6575 * s/cygwin.h (BSTRING):
6576 * s/bsd-common.h (BSTRING):
6577 * s/aix4-2.h (BSTRING): Likewise.
6578 * sysdep.c: Remove code depending on BSTRING not being defined.
6579
409f2919
JB
65802010-06-05 Juanma Barranquero <lekktu@gmail.com>
6581
6582 Remove obsolete macro BASE_LEADING_CODE_P.
6583 * character.h (BASE_LEADING_CODE_P): Remove.
6584 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6585 * buffer.c (Fset_buffer_multibyte):
6586 * indent.c (scan_for_column, compute_motion):
6587 * insdel.c (count_combining_before, count_combining_after):
6588 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6589
087fc47a
JB
65902010-06-04 Juanma Barranquero <lekktu@gmail.com>
6591
6592 Turn `directory-sep-char' into a noop.
6593
6594 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6595 (DIRECTORY_SEP): Define unconditionally.
6596
6597 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6598
6599 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6600 call dostounix_filename directly.
6601
6602 * fileio.c (CORRECT_DIR_SEPS): Remove.
6603 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6604 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6605 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6606 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6607
6608 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6609 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6610
0eb7675e
AS
66112010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6612
a628ad9d
JB
6613 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6614 (Bug#6346)
0eb7675e 6615
78edd3b7
JB
66162010-06-03 Juanma Barranquero <lekktu@gmail.com>
6617
6618 * ccl.c (Fccl_program_p): Fix typo in docstring.
6619
eb697db5
DN
66202010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6621
6622 Move UNEXEC definition to autoconf.
6623 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6624 * s/sol2-10.h (UNEXEC):
6625 * s/irix6-5.h (UNEXEC):
6626 * s/hpux10-20.h (UNEXEC):
6627 * s/gnu-linux.h (UNEXEC):
6628 * s/darwin.h (UNEXEC):
6629 * s/cygwin.h (UNEXEC):
6630 * s/bsd-common.h (UNEXEC):
6631 * s/aix4-2.h (UNEXEC):
6632 * m/alpha.h (UNEXEC): Likewise.
6633 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6634
aa3830c4
JB
66352010-06-03 Juanma Barranquero <lekktu@gmail.com>
6636
6637 Remove obsolete pre-unicode2 macros.
6638 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6639 * composite.c (composition_reseat_it):
6640 * data.c (Faset):
6641 * fns.c (Ffillarray):
6642 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6643 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6644
d234d13e
JL
66452010-06-03 Juri Linkov <juri@jurta.org>
6646
6647 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6648 (Fswitch_to_buffer): Remove unused variable `err'.
6649
0d4bcf4d
GM
66502010-06-03 Glenn Morris <rgm@gnu.org>
6651
e23dc1e2
GM
6652 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6653
05b09564
GM
6654 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6655 now that AH_BOTTOM does it.
6656
824e2978
GM
6657 * m/hp800.h (HAVE_ALLOCA):
6658 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6659
0d4bcf4d
GM
6660 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6661 Remove NOT_C_CODE tests, it is always true now.
6662
c55d2abf
DN
66632010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6664
08a494a3
DN
6665 Fix config.h includes.
6666 * xsettings.c:
6667 * xgselect.c:
6668 * nsterm.m:
6669 * nsselect.m:
6670 * nsimage.m:
6671 * nsfont.m:
6672 * nsfns.m:
6673 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6674 other files do.
6675
75934b1d
DN
6676 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6677
9f32a766
DN
6678 * s/sol2-6.h: Remove obsolete comments.
6679
c55d2abf
DN
6680 Remove unnecessary alloca.h includes.
6681 * keymap.c: Do not include alloca.h, config.h does that.
6682 * sysdep.c: Likewise. Do not define fwrite, not used.
6683
06ac62b4
SM
66842010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6685
6686 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6687 the HAVE_TERMIO where it belongs (bug#6149).
6688
1ab8293c
SM
66892010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6690
6691 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6692 of bug#6305).
6693
6dcfd253
EZ
66942010-05-30 Eli Zaretskii <eliz@gnu.org>
6695
6696 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6697 state is always cached (bug#6306).
6698
6d26bbb2
EZ
66992010-05-29 Eli Zaretskii <eliz@gnu.org>
6700
06fa4a23
EZ
6701 Fix cursor motion in bidi-reordered continued lines.
6702 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6703 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
6704 over continuation lines in bidi-reordered buffers.
6705 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
6706 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6707
f5783df3
MA
67082010-05-28 Michael Albinus <michael.albinus@gmx.de>
6709
6710 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6711
7d56b2dd
KH
67122010-05-28 Kenichi Handa <handa@m17n.org>
6713
6714 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6715 Don't sheck SPEC if it is nil.
6716 (font_list_entities): Call font_delete_unmatched if
b925d231 6717 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 6718
e58d4ff7
GM
67192010-05-28 Glenn Morris <rgm@gnu.org>
6720
6721 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6722
f1a5d776
CY
67232010-05-27 Chong Yidong <cyd@stupidchicken.com>
6724
6725 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6726 whether to trash.
6727 (internal_delete_file, Frename_file): Callers changed.
6728 (delete_by_moving_to_trash): Doc fix.
6729 (Fdelete_directory_internal): Don't move to trash.
6730
6731 * callproc.c (delete_temp_file):
6732 * buffer.c (Fkill_buffer): Callers changed.
6733
6734 * lisp.h: Update prototype.
6735
f44a59e6
CY
67362010-05-27 Chong Yidong <cyd@stupidchicken.com>
6737
6738 * xdisp.c (redisplay_window): After redisplay, check if point is
6739 still valid before setting it (Bug#6177).
6740
81ac4f35
GM
67412010-05-27 Glenn Morris <rgm@gnu.org>
6742
6743 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6744 Convert comments to Makefile format.
6745
6746 * Makefile.in (bootstrap-clean): No more Makefile.c.
6747
ccd89fb3
GM
67482010-05-26 Glenn Morris <rgm@gnu.org>
6749
90278cb6
GM
6750 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6751 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6752
ccd89fb3
GM
6753 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6754 Remove.
6755 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6756
b7050583
KH
67572010-05-26 Kenichi Handa <handa@m17n.org>
6758
6759 * composite.c (composition_compute_stop_pos): Fix condition for
6760 backward scanning.
6761
e5458003
GM
67622010-05-25 Glenn Morris <rgm@gnu.org>
6763
c345fe90
GM
6764 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6765 Move before TEMACS_LDFLAGS.
6766 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6767 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6768
2e0689ab
GM
6769 * Makefile.in (NOT_C_CODE): No longer define.
6770 (config.h): No longer include.
6771
8009a5e8
GM
6772 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6773 variables it may reference.
6774
e5458003
GM
6775 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6776 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6777
10f72a37
KH
67782010-05-25 Kenichi Handa <handa@m17n.org>
6779
6780 * dispextern.h (struct composition_it): New members rule_idx and
6781 charpos.
6782
6783 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6784 that the character positions of IT point the last character of the
6785 current grapheme cluster.
6786 (next_element_from_composition): Don't change character positions
6787 of IT.
6788 (append_composite_glyph): Set glyph->charpos to
6789 it->cmp_it.charpos.
6790
6791 * composite.c (autocmp_chars): Change the first argument to RULE,
6792 and try composition with RULE only.
6793 (composition_compute_stop_pos): Record the index number of the
6794 composition rule in CMP_IT->rule_idx.
6795 (composition_reseat_it): Call autocmp_chars repeatedly until the
6796 correct rule of the composition is found.
6797 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6798 is at the last character of the current grapheme cluster when
6799 CMP_IT->reversed_p is nonzero.
6800
171eda53 68012010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 6802
171eda53
SM
6803 * editfns.c (Fbyte_to_string): New function.
6804
66a9f7f4
SM
68052010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6806
6807 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6808 Suggested by Masatake YAMATO <yamato@redhat.com>.
6809
d8c315d1
EZ
68102010-05-23 Eli Zaretskii <eliz@gnu.org>
6811
171eda53 6812 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 6813
f5b416d2 68142010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6815
6816 * s/netbsd.h: If terminfo is found, use it in preference to
6817 termcap. (Bug#6190) [Backport from trunk]
6818
0416466c
EZ
68192010-05-19 Eli Zaretskii <eliz@gnu.org>
6820
11117830 6821 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
6822
6823 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6824 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6825 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6826 and maxpos members instead of start.pos and end.pos, respectively.
6827
6828 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6829 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6830 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
6831 (try_window_reusing_current_matrix, try_window_id):
6832 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
6833 (init_from_display_pos, init_iterator): Use EMACS_INT for
6834 character and byte positions.
66a9f7f4 6835 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
6836 arguments for minimum and maximum buffer positions seen by
6837 display_line for this row. Don't use iterator to find the
6838 position following the maximum one; instead, increment the
11117830
EZ
6839 position found by display_line directly. Fix logic; eol_pos
6840 should be tested before the rest. Handle the case of characters
6841 delivered from display vector (bug#6036). Fix tests related to
6842 it->method. Handle the truncated_on_right_p rows.
6843 (RECORD_MAX_MIN_POS): New macro.
6844 (display_line): Use it to record the minimum and maximum buffer
6845 positions for glyphs in the row being assembled. Record the
6846 position of the newline that terminates the line. If word wrap is
6847 in effect, restore minimum and maximum positions seen up to the
6848 wrap point, when iterator returns to it.
6849 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6850 row and cursor not already at point. Restore original pre-bidi
6851 code for unidirectional buffers.
d36fe237
EZ
6852
6853 * dispnew.c (increment_row_positions, check_matrix_invariants):
6854 Increment and check row->start.pos and row->end.pos, in addition
6855 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6856
11117830
EZ
6857 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6858 Display truncated_on_left_p and truncated_on_right_p flags.
6859 Formatting fixes.
6860 (pmtxrows): Display the ordinal number of each row. Don't display
6861 rows beyond the last one.
6862
6863 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6864 it is not copied by bidi_copy_it.
6865
6e83d800
EZ
68662010-05-22 Eli Zaretskii <eliz@gnu.org>
6867
6868 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6869 (Bug#6237)
6870
110683ad
CY
68712010-05-22 Chong Yidong <cyd@stupidchicken.com>
6872
6873 * image.c (Fimage_flush): Rename from image-refresh.
6874
98fe5161
CY
68752010-05-21 Chong Yidong <cyd@stupidchicken.com>
6876
6877 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6878 just one window.
6879
6880 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6881 (clear_image_cache): If the number of cached images is unusually
6882 large, decrease the cache eviction delay (Bug#6230).
6883
e8752c66
GM
68842010-05-21 Glenn Morris <rgm@gnu.org>
6885
66dbf213
GM
6886 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6887 Move these rules to ns.mk.
6888 * ns.mk: New file.
6889
04384b2d
GM
6890 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6891
e8752c66
GM
6892 * Makefile.in (CANNOT_DUMP): New, set by configure.
6893 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6894
2e2bbddb
JL
68952010-05-20 Juri Linkov <juri@jurta.org>
6896
6897 * fileio.c (Fdelete_file): Change interative spec to use
6898 `read-file-name' like in `find-file-read-args' where the default
6899 value is `default-directory' instead of `buffer-file-name'.
6900 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6901
31c4aaf6
KR
69022010-05-20 Kevin Ryde <user42@zip.com.au>
6903
6904 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6905 (Voverriding_terminal_local_map, Vsystem_key_alist)
6906 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6907
9d5cf9b6
GM
69082010-05-20 Glenn Morris <rgm@gnu.org>
6909
6910 * Makefile.in (DEPDIR): New constant.
6911 (DEPFLAGS): Set with configure, not cpp.
6912 (MKDEPDIR): New, set by configure.
6913 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6914 (clean): Use $DEPDIR.
6915 (deps_frag): Include from configure.
6916 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6917 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6918
bba3e508
SM
6919 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6920 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 6921
7f34aec3
GM
69222010-05-19 Glenn Morris <rgm@gnu.org>
6923
d494e8f2
GM
6924 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6925
c1d0dcfd
GM
6926 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6927 (GNULIB_VAR): Remove.
6928 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6929
6930 * m/ibms390x.h (LINKER):
6931 * m/macppc.h (LINKER) [GNU_LINUX]:
6932 * s/aix4-2.h (ORDINARY_LINK):
6933 * s/cygwin.h (LINKER):
6934 * s/darwin.h (ORDINARY_LINK):
6935 * s/gnu.h (ORDINARY_LINK):
6936 * s/netbsd.h (LINKER):
6937 * s/usg5-4.h (ORDINARY_LINK):
6938 Move to configure.
6939
7f34aec3
GM
6940 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6941
754790b6
CY
69422010-05-18 Chong Yidong <cyd@stupidchicken.com>
6943
6944 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6945 prevent stack overflow if number of arguments is too large
6946 (Bug#6214).
6947
161e44d1
JB
69482010-05-18 Juanma Barranquero <lekktu@gmail.com>
6949
6950 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6951
be4ff9da
GM
69522010-05-18 Glenn Morris <rgm@gnu.org>
6953
9539dc5d
GM
6954 * s/gnu-linux.h: Combine two conditionals.
6955
6956 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
6957 $(POST_ALLOC_OBJ).
6958
40dc6bf4
GM
6959 * Makefile.in (RALLOC_OBJ): New, set by configure.
6960 (rallocobj): Replace with the previous variable.
6961 (otherobj): Use $RALLOC_OBJ.
6962
6963 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6964 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6965
be4ff9da
GM
6966 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6967 (gmallocobj, vmlimitobj): Replace with previous two variables.
6968 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6969
16455a85
GM
69702010-05-17 Glenn Morris <rgm@gnu.org>
6971
6972 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6973 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6974
5fdb7468
GM
69752010-05-16 Glenn Morris <rgm@gnu.org>
6976
7ca1f3f9
GM
6977 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6978
7541dad5
GM
6979 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6980
da53fab9
GM
6981 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6982 trailing "/".
6983
b02a6645
GM
6984 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6985 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6986
8877ca0f
GM
6987 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6988 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6989 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6990 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6991 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6992
5fdb7468
GM
6993 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6994 Remove ${STARTFLAGS}, nothing ever sets it.
6995
95adb4b1
DN
69962010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
6997
6998 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6999
676b6304
GM
70002010-05-16 Glenn Morris <rgm@gnu.org>
7001
9beab9ce
GM
7002 * Makefile.in (LIBX_BASE): Always define.
7003
8a95f0e7
GM
7004 * Makefile.in (LIBX_OTHER): Move out of cpp section.
7005
676b6304
GM
7006 * Makefile.in (LIBXT): Always define.
7007
6e546d18
GM
70082010-05-15 Glenn Morris <rgm@gnu.org>
7009
4235ca47 7010 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 7011
6e546d18
GM
7012 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
7013 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
7014
8c5ff6dd
KR
70152010-05-15 Ken Raeburn <raeburn@raeburn.org>
7016
560bb7ae 7017 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
7018 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
7019
8b4eb796
KR
7020 * emacs.c (main): Initialize initial-environment and
7021 process-environment before generating from env, not after.
7022
8c5ff6dd
KR
7023 Handle --version reasonably in CANNOT_DUMP configuration.
7024 * emacs.c (emacs_version, emacs_copyright): New string variables.
7025 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
7026 (syms_of_emacs): Defvar them, and initialize them from the C
7027 string variables.
7028 (main): If initialization hasn't been done, print initial version
7029 info from the C strings, instead of starting an interactive session.
7030
dbd3f723
EZ
70312010-05-15 Eli Zaretskii <eliz@gnu.org>
7032
d20e1419
EZ
7033 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
7034 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
7035 (bidi_paragraph_init): Remove redundant assertion that we are at
7036 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
7037
7038 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
7039 (syms_of_xdisp): Defsubr it.
7040
d36fe237
EZ
7041 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
7042
dbd3f723
EZ
7043 * Makefile.in: Fix MSDOS-related comments.
7044
02be533b
GM
70452010-05-15 Glenn Morris <rgm@gnu.org>
7046
1a82cca9
GM
7047 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
7048 (really-lwlib, really-oldXMenu): Always define.
7049 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
7050
3df7b338
GM
7051 * Makefile.in: Simplify cpp conditional.
7052
2b5f541b
GM
7053 * Makefile.in (${ns_appdir}): Simplify using umask.
7054
02be533b
GM
7055 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7056
4e2db1fe
SM
70572010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7058
7059 * eval.c (specbind): Remove left-over duplicate test.
7060 Disallow let-binding frame-local vars. Add comment.
7061
4b292a22
EZ
70622010-05-14 Eli Zaretskii <eliz@gnu.org>
7063
2fe72643 7064 Make the cache of bidi iterator states dynamically allocated.
1edbd309 7065 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
7066 (bidi_init_it): Call it.
7067 (bidi_cache_iterator_state): Enlarge the cache if needed.
7068
4e2db1fe 7069 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
7070 bidi_get_next_char_visually. All callers changed.
7071
82ebc97b
KH
70722010-05-14 Kenichi Handa <handa@m17n.org>
7073
7074 * dispextern.h (struct composition_it): New member reversed_p.
7075
7076 * composite.c (composition_compute_stop_pos): Search backward if
7077 ENDPOS < CHARPOS.
7078 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7079 Set CMP_IT->reversed_p.
b4b6e17e 7080 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 7081
4e2db1fe
SM
7082 * xdisp.c (set_iterator_to_next):
7083 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
7084 scanning backward. Call composition_compute_stop_pos if scan
7085 direction is changed.
7086 (next_element_from_buffer): Call composition_compute_stop_pos with
7087 negative ENDPOS if we are scanning backward.
7088 (next_element_from_composition): Pay attention to
7089 IT->cmp_it.reversed_p.
7090
0e5d7800
KH
70912010-05-14 Kenichi Handa <handa@m17n.org>
7092
560bb7ae 7093 * font.c (font_range): Return the range for the font found at first.
0e5d7800 7094
cb027b32
GM
70952010-05-14 Glenn Morris <rgm@gnu.org>
7096
177b0288
GM
7097 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7098
fbc00890
GM
7099 * Makefile.in (mktime, X11, register): Move undefs to configure.
7100
f14d1dfd
GM
7101 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7102 (MSDOS_X_OBJ): New variable.
7103 (MSDOS_SUPPORT_REAL): New constant.
7104 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7105 (obj): Use MSDOS_X_OBJ.
7106 (lisp): Use MSDOS_SUPPORT as a variable.
7107
11842bd8
GM
7108 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7109 (GPM_MOUSE_SUPPORT): Now it's a constant.
7110 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7111 not cpp.
7112
489d31a4 7113 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 7114 (ns_appresdir): Remove, unused.
e20f1f07 7115
489d31a4
GM
7116 * Makefile.in (SHELL): Move outside cpp section.
7117
cb027b32
GM
7118 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7119
5a903aa9
GM
71202010-05-13 Glenn Morris <rgm@gnu.org>
7121
3369c79f
GM
7122 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7123 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7124
d5e982a6
GM
7125 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7126 HAVE_WINDOW_SYSTEM must be too.
7127
6192e163
GM
7128 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7129 (lisp): Remove WINNT_SUPPORT.
7130
472c5d6b
GM
7131 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7132 Let configure set these variables (to empty) in this case as well.
7133
0116466b
GM
7134 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7135 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7136
5a903aa9
GM
7137 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7138 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7139 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7140 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7141 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 7142 the values output by configure.
5a903aa9
GM
7143 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7144
1a0d7c06
GM
71452010-05-12 Glenn Morris <rgm@gnu.org>
7146
b5457f14
GM
7147 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7148 (LINKER_WAS_SPECIFIED): Remove.
7149
1a0d7c06
GM
7150 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7151 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7152 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7153 * s/cygwin.h (LIB_GCC):
7154 * s/freebsd.h (LIB_GCC):
7155 * s/gnu-linux.h (LIB_GCC):
7156 * s/msdos.h (LIB_GCC):
7157 * s/netbsd.h (LIB_GCC):
7158 Move to configure.
7159
d1ddd1d0 71602010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
7161
7162 * ftfont.c: Fix incorrect parentheses of #if condition for
7163 definining M17N_FLT_USE_NEW_FEATURE.
7164
acddf8ae
GM
71652010-05-11 Glenn Morris <rgm@gnu.org>
7166
7167 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7168 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7169
ae5e04fa
EZ
71702010-05-10 Eli Zaretskii <eliz@gnu.org>
7171
7172 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7173 unibyte buffers. See
7174 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7175
7490175b
GM
71762010-05-10 Glenn Morris <rgm@gnu.org>
7177
97efb629
GM
7178 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7179 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7180 (LIBES): Use LIBS_SYSTEM as a variable.
7181 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7182 * s/aix4-2.h (LIBS_SYSTEM):
7183 * s/freebsd.h (LIBS_SYSTEM):
7184 * s/hpux10-20.h (LIBS_SYSTEM):
7185 * s/sol2-6.h (LIBS_SYSTEM):
7186 * s/unixware.h (LIBS_SYSTEM):
7187 Move to configure.
7188
7490175b
GM
7189 * s/aix4-2.h (MAIL_USE_LOCKF):
7190 * s/bsd-common.h (MAIL_USE_FLOCK):
7191 * s/darwin.h (MAIL_USE_FLOCK):
7192 * s/gnu-linux.h (MAIL_USE_FLOCK):
7193 * s/irix6-5.h (MAIL_USE_FLOCK):
7194 * s/template.h (MAIL_USE_FLOCK):
7195 Move to configure.
7196
0235128c 71972010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
7198
7199 * Version 23.2 released.
7200
0235128c 72012010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
7202
7203 * composite.c (autocmp_chars): Save point as marker before calling
7204 auto-composition-function (Bug#5984).
7205
7206 * lisp.h (restore_point_unwind): Add prototype.
7207
7208 * fileio.c (restore_point_unwind): Remove static attribute.
7209
0235128c 72102010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
7211
7212 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7213 new feature of libotf and m17n-flt.
0235128c
SM
7214 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7215 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
7216 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7217 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7218 that OUT is NULL. Use OTF_drive_gsub_with_log and
7219 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7220 OTF_drive_gpos.
7221 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
7222 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7223 Setup mflt_enable_new_feature and mflt_try_otf.
7224
4721152c
J
72252010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7226
7227 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7228
7229 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7230 box and toolbar (Bug #6139).
7231 (xg_create_tool_bar): Remove comment (Bug #6139).
7232 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7233 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7234
ee0a16cf
JB
72352010-05-08 Juanma Barranquero <lekktu@gmail.com>
7236
7237 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7238 Update dependencies.
7239
96d79611
EZ
72402010-05-08 Eli Zaretskii <eliz@gnu.org>
7241
7242 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7243 R2L lines.
7244
40c17879
GM
72452010-05-08 Glenn Morris <rgm@gnu.org>
7246
7b42b29f
GM
7247 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7248
40c17879
GM
7249 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7250 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7251 (termcapobj): Replace with TERMCAP_OBJ.
7252 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7253 (LIBES): Use LIBS_TERMCAP as a variable.
7254
7255 * s/freebsd.h (osreldate.h): No longer include, since this file
7256 does not use __FreeBSD_version any more.
7257
7258 * s/aix4-2.h (TERMINFO):
7259 * s/cygwin.h (TERMINFO):
7260 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7261 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7262 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7263 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7264 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7265 * s/irix6-5.h (TERMINFO):
7266 * s/netbsd.h (LIBS_TERMCAP):
7267 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7268 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7269 * s/usg5-4.h (TERMINFO):
7270 Move to configure.
7271
94b612ad
SM
72722010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7273
7274 * eval.c (unbind_to): Don't unbind a local binding into the global
7275 binding when the local binding disappeared. Inversely, don't unbind
7276 a global binding into a newly created local binding.
7277 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7278 can specify the frame to use, when applicable. Adjust callers.
7279
15e12598 72802010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 7281 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
7282
7283 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7284
f724825e
EZ
72852010-05-07 Eli Zaretskii <eliz@gnu.org>
7286
5cba3209
EZ
7287 * w32fns.c: Include w32.h.
7288 (Fw32_shell_execute): Decode the error message before passing it
7289 to `error'. (Bug#6126)
7290
d16bdfc3
EZ
7291 * msdos.c (dos_set_window_size):
7292 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7293 instead of `XSYMBOL (foo)->value'.
7294
59d93e87
EZ
72952010-05-07 Eli Zaretskii <eliz@gnu.org>
7296
9fdec8bc
EZ
7297 Fix the MS-DOS build, broken by autoconfiscation.
7298
7299 * Makefile.in: Don't use Make-style comments past the "start of
7300 cpp stuff" line.
7301 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7302
7303 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7304 edited directly by msdos/sed1v2.inp).
f724825e 7305
2f86b22b
GM
73062010-05-07 Glenn Morris <rgm@gnu.org>
7307
7308 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7309 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7310 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7311 move out of cpp section.
7312 * s/freebsd.h (LD_SWITCH_SYSTEM):
7313 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7314 * s/netbsd.h (LD_SWITCH_SYSTEM):
7315 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7316
49ebbd65
DN
73172010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7318
7319 Define LIB_STANDARD and START_FILES using autoconf.
7320 * s/usg5-4.h (LIB_STANDARD):
7321 * s/netbsd.h (START_FILES):
7322 * s/irix6-5.h (LIB_STANDARD):
7323 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7324 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7325 * s/freebsd.h (START_FILES):
7326 * s/darwin.h (START_FILES):
7327 * s/cygwin.h (START_FILES):
7328 * s/aix4-2.h (LIB_STANDARD):
7329 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7330 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7331 autoconf, not cpp.
7332
d43c06d6
DN
73332010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7334
28823648
DN
7335 Remove NEED_BSDTTY and NEED_UNISTD_H.
7336 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7337 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7338 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7339 <sys/ptyio.h> and <unistd.h>.
7340
aca00430
DN
7341 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7342
d43c06d6
DN
7343 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7344 * s/gnu.h (START_FILES): Remove empty definition.
7345
3e56b11d
JD
73462010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7347
7348 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7349
e3cf0cde
GM
73502010-05-06 Glenn Morris <rgm@gnu.org>
7351
7352 * Makefile.in (CPP, LN_S): Remove unused variables.
7353
774b9a60
SM
73542010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7355
7356 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7357
4ab92842
LM
73582010-05-05 Lawrence Mitchell <wence@gmx.li>
7359
7360 * m/sparc.h: Fix typo in earlier change.
7361
178f2507
SM
73622010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7363
7364 Misc tweaks.
7365 * eval.c (Fdefvaralias): Remove unintended nested if.
7366 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7367
80f00217 73682010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
7369
7370 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7371
ef03a4e6
DN
73722010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7373
58eb6cf0
DN
7374 Remove BSD_PGRPS.
7375 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7376 * s/gnu-linux.h (BSD_PGRPS): Remove.
7377 * term.c (dissociate_if_controlling_tty):
7378 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7379 (init_sys_modes, reset_sys_modes):
7380 * emacs.c (main):
7381 * callproc.c (Fcall_process, child_setup): Remove code depending
7382 on BSD_PGRPS.
7383
ef03a4e6
DN
7384 Remove POSIX_SIGNALS.
7385 * s/usg5-4.h (POSIX_SIGNALS):
7386 * s/netbsd.h (POSIX_SIGNALS):
7387 * s/msdos.h (POSIX_SIGNALS):
7388 * s/ms-w32.h (POSIX_SIGNALS):
7389 * s/hpux11.h (POSIX_SIGNALS):
7390 * s/gnu.h (POSIX_SIGNALS):
7391 * s/gnu-linux.h (POSIX_SIGNALS):
7392 * s/freebsd.h (POSIX_SIGNALS):
7393 * s/darwin.h (POSIX_SIGNALS):
7394 * s/cygwin.h (POSIX_SIGNALS):
7395 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7396 * s/unixware.h:
7397 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7398 * process.c (create_process):
7399 * syssignal.h:
7400 * sysdep.c (wait_for_termination, init_signals):
7401 * process.c (create_process):
7402 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7403 remove all code that assumes the contrary.
7404
49628785
GM
74052010-05-04 Glenn Morris <rgm@gnu.org>
7406
27a2cdfc
GM
7407 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7408 variable.
7409 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7410 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7411 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7412 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7413 LD_SWITCH_SYSTEM_tmp.
7414 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7415 New variables, set by configure.
7416
eb21eab5
GM
7417 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7418 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7419 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7420 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7421 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7422
49628785
GM
7423 * s/aix4-2.h (C_SWITCH_SYSTEM):
7424 * m/alpha.h (C_SWITCH_MACHINE):
7425 Move to configure.in.
7426 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7427 New variables, set by configure.
7428 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7429 $c_switch_machine and $c_switch_system.
7430
7dff330b
DN
74312010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7432
7433 * s/hpux10-20.h (LIB_STANDARD): New definition.
7434 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7435 on it, not used anymore.
7436
53967e09
CY
74372010-05-03 Chong Yidong <cyd@stupidchicken.com>
7438
7439 * eval.c (internal_condition_case_n): Rename from
7440 internal_condition_case_2.
7441 (internal_condition_case_2): New function.
7442
7443 * xdisp.c (safe_call): Use internal_condition_case_n.
7444
7445 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7446 (internal_delete_file, Frename_file): Callers changed.
7447
7448 * buffer.c (Fkill_buffer):
7449 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7450
7451 * lisp.h: Update prototypes.
7452
3dee6fdb
GM
74532010-05-03 Glenn Morris <rgm@gnu.org>
7454
7455 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7456 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7457 (LIBXT): Set with configure, not cpp.
7458 (LIBX): Remove.
7459 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7460
a101e0fb
DN
74612010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7462
7463 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7464 The FreeBSD is not needed, the default works, Solaris version is
7465 not needed, and the remaining case is not supported by configure.
7466
f63d0028
JD
74672010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7468
7469 * xsmfns.c (CHDIR_OPT): New define.
7470 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7471 restarting emacs.
7472
7473 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7474 shut_down_emacs.
7475
7476 * emacs.c (USAGE1): Mention --chdir.
7477 (main): Handle --chdir.
7478 (standard_args): Add --chdir.
7479 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7480 #5552).
7481
e4814a9f
DN
74822010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7483
cd03c74a
DN
7484 Remove LD_SWITCH_MACHINE.
7485 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7486 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7487
c3a398a1
DN
7488 Clean up IRIX code.
7489 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7490 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7491
87e7285c
DN
7492 Clean up AIX code.
7493 * m/ibmrs6000.inp: Remove file, unused.
7494 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7495 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7496 definition ...
7497 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7498
80f00217
JB
7499 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7500 unused.
e4814a9f 7501
59ca28de
EZ
75022010-05-01 Eli Zaretskii <eliz@gnu.org>
7503
197daef4
EZ
7504 Emulate POSIX_SIGNALS on MS-Windows.
7505
7506 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7507 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
7508
7509 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7510 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7511 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7512
80f00217
JB
7513 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7514 New stubs.
197daef4 7515
af7c7572
EZ
7516 Miscellaneous fixes of bidi display.
7517
59ca28de
EZ
7518 * xdisp.c (find_row_end): New function, refactored from display_line.
7519 (display_line): Use it.
017ea819
EZ
7520 (extend_face_to_end_of_line): In almost-filled rows, extend only
7521 if the row is R2L and not continued.
166e930d 7522 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 7523 Preserve overlay and string info in row->end.
166e930d
EZ
7524 (insert_left_trunc_glyphs): Support addition of left truncation
7525 glyphs to R2L rows.
b47e0dcf 7526 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
7527 glyph between adjacent windows. Fix a crash when a display string
7528 is continued to the next line. Don't return zero if cursor was
7529 found by `cursor' property of a display string.
b47e0dcf
EZ
7530 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7531 test for that explicitly.
59ca28de 7532
7acac9f4
GM
75332010-05-01 Glenn Morris <rgm@gnu.org>
7534
7535 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7536 for clarity.
7537 (OTHER_OBJ): Remove.
7538 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7539 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7540
45841e65
KK
75412010-05-01 Karel Klíč <kklic@redhat.com>
7542
7543 * fileio.c (Ffile_selinux_context): Context functions may return null.
7544
afc61943
DN
75452010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7546
80f00217 7547 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 7548
5a1bb006
GM
75492010-04-30 Glenn Morris <rgm@gnu.org>
7550
7551 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7552 (OTHER_OBJ): Define as a separate variable, for clarity.
7553
210af043
J
75542010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7555
7556 * xsettings.c: include limits.h and update file comment.
7557
0a7df391
GM
75582010-04-30 Glenn Morris <rgm@gnu.org>
7559
d5096f16
GM
7560 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7561 Set with configure, not cpp.
7562 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7563
7eb1ac33
GM
7564 * Makefile.in (mallocobj): Remove.
7565 (otherobj): Simplify using @OTHER_OBJ@.
7566
517d086b
GM
7567 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7568 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7569 Don't bother making nsgui.h dependency platform-specific.
7570
0a7df391
GM
7571 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7572
d6d23852
SM
75732010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7574
d2630aef
SM
7575 * process.c (read_process_output, exec_sentinel): Don't burp if the
7576 sentinel/filter kills the current buffer (bug#6060).
7577
f9dddf52 7578 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
7579 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7580 Remove unused var `args'.
7581 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7582 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7583 * doc.c (store_function_docstring): Use XSETCAR.
7584
f1e3642a
GM
75852010-04-28 Glenn Morris <rgm@gnu.org>
7586
faf535f8
GM
7587 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7588 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7589
c40f9449
GM
7590 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7591
658f86ca
GM
7592 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7593 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7594
bc0b5f61
GM
7595 * Makefile.in (FONT_OBJ): New, set by configure.
7596 (FONT_DRIVERS): Use $FONT_OBJ.
7597
294c50a0
GM
7598 * Makefile.in (LIBXMU): Set with configure, not cpp.
7599 * s/aix4-2.h (LIBXMU):
7600 * s/hpux10-20.h (LIBXMU):
7601 Remove definition, now set in configure.
7602
e6ec4e99
GM
7603 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7604
f1e3642a
GM
7605 * m/amdx86-64.h [i386]: Move this test to configure.in.
7606
c6ea2936
GM
76072010-04-27 Glenn Morris <rgm@gnu.org>
7608
8fdac2c3
GM
7609 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7610 * s/unixware.h (NEED_LIBW): Remove definition.
7611
986fb647
GM
7612 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7613 (TOOLKIT_LIBW): New, set by configure.
7614 (@X_TOOLKIT_TYPE@): No longer define it.
7615
c6ea2936
GM
7616 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7617 (MOTIF_LIBW): Set with configure, not cpp.
7618 * s/aix4-2.h (LIB_MOTIF):
7619 * s/gnu-linux.h (LIB_MOTIF):
7620 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7621
aaa36002
DN
76222010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7623
7624 Reduce CPP usage.
7625 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7626 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
7627 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7628 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 7629 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 7630
b678dd8b
GM
76312010-04-27 Glenn Morris <rgm@gnu.org>
7632
76cda504
GM
7633 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7634 since the defaults (set by the system file) are fine in most cases.
7635 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7636 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7637 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7638 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7639 Remove definitions, since they are set correctly in s/gnu-linux.h.
7640 * s/freebsd.h (START_FILES, LIB_STANDARD):
7641 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7642 * s/hpux10-20.h (START_FILES):
7643 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7644 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7645
b678dd8b
GM
7646 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7647 (MOTIF_LIBW): Use $LIBXP.
7648 (otherobj): Use $WIDGET_OBJ.
7649
9452ded1
DN
76502010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7651
7e10844c
DN
7652 * Makefile.in (LIBS_MACHINE): Remove, unused.
7653
9452ded1
DN
7654 Use autoconf instead of cpp for LIB_MATH.
7655 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7656 * s/cygwin.h (LIB_MATH): Likewise.
7657 * Makefile.in (LIB_MATH): Do not define with cpp.
7658 (LIBES): Use autoconf for LIB_MATH.
7659
fcebfc6a
KH
76602010-04-26 Kenichi Handa <handa@m17n.org>
7661
7662 * composite.c (Ffind_composition_internal): Fix the return value
7663 for an automatic composition.
7664
39e2ad1b
DN
76652010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7666
7667 Remove all NO_ARG_ARRAY uses.
7668 * fns.c (concat2, concat3, nconc2):
7669 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7670 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7671 * m/xtensa.h (NO_ARG_ARRAY):
7672 * m/template.h (NO_ARG_ARRAY):
7673 * m/sparc.h (NO_ARG_ARRAY):
7674 * m/sh3.h (NO_ARG_ARRAY):
7675 * m/mips.h (NO_ARG_ARRAY):
7676 * m/macppc.h (NO_ARG_ARRAY):
7677 * m/iris4d.h (NO_ARG_ARRAY):
7678 * m/intel386.h (NO_ARG_ARRAY):
7679 * m/ibms390x.h (NO_ARG_ARRAY):
7680 * m/ibms390.h (NO_ARG_ARRAY):
7681 * m/ibmrs6000.h (NO_ARG_ARRAY):
7682 * m/ia64.h (NO_ARG_ARRAY):
7683 * m/hp800.h (NO_ARG_ARRAY):
7684 * m/arm.h (NO_ARG_ARRAY):
7685 * m/amdx86-64.h (NO_ARG_ARRAY):
7686 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7687
adf4f59c
EZ
76882010-04-25 Eli Zaretskii <eliz@gnu.org>
7689
6bdf5d65
EZ
7690 * xdisp.c (display_line): Don't assume 2nd call to
7691 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
7692 (iterate_out_of_display_property): New function, body from pop_it.
7693 (pop_it): Use it.
adf4f59c 7694
dfbbda83
GM
76952010-04-24 Glenn Morris <rgm@gnu.org>
7696
7697 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7698 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7699 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7700 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7701
2d4018aa
EZ
77022010-04-24 Eli Zaretskii <eliz@gnu.org>
7703
a49884a6
EZ
7704 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7705 use `get_next_display_element' and `set_iterator_to_next' to
7706 advance to the next character, when looking for the character that
7707 begins the next row.
7708
76db6fcc 7709 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
7710 definition of "struct Lisp_Symbol".
7711
70eab5c1
GM
77122010-04-24 Glenn Morris <rgm@gnu.org>
7713
7714 * Makefile.in (CRT_DIR): New variable, set by configure.
7715 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7716 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7717
1ad4cc3d
DN
77182010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7719
e769f484
DN
7720 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7721
4196ff33
DN
7722 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7723
879b0ee4
DN
7724 Remove redundant flags.
7725 * s/freebsd.h (C_SWITCH_SYSTEM):
7726 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7727 * s/netbsd.h (C_SWITCH_SYSTEM):
7728 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7729 of these.
7730
03cbbcb8
DN
7731 Simplify m/intel386.h.
7732 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7733 user: ecrt0.c.
7734 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7735 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7736 the only user: s/unixware.h.
7737 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7738 from m/intel386.h.
bba3e508
SM
7739 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7740 Definitions moved here from m/intel386.h.
03cbbcb8 7741
1ad4cc3d
DN
7742 * m/mips.h: Remove #if 0 code.
7743
8785b888
EZ
77442010-04-23 Eli Zaretskii <eliz@gnu.org>
7745
728588cc
EZ
7746 Fix display of composed characters from L2R scripts in bidi buffers.
7747 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7748 After advancing IT past the composition, resync the bidi iterator
7749 with IT's position. (Bug#5977)
7750
a63f80b4
DN
77512010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7752
7753 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7754 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7755
ff5dec5c
SM
77562010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7757
7758 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7759
8785b888
EZ
77602010-04-23 Eli Zaretskii <eliz@gnu.org>
7761
58ccf243 7762 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
7763 * xdisp.c (pop_it): When the stack is popped after displaying
7764 from a string, bidi-iterate to exit from the text portion covered
7765 by the `display' property or overlay. (Bug#5988, bug#5920)
7766
feeb1604
DN
77672010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7768
8e324eb6
DN
7769 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7770 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7771
809fcaba
DN
7772 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7773 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7774
ed710380
DN
7775 Simplify STARTFILES definition.
7776 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7777 relying on Makefile.in to define it.
7778 * s/cygwin.h (START_FILES): Likewise.
7779 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7780
feeb1604
DN
7781 Clean up Solaris code.
7782 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7783 (LIB_MOTIF): Remove, configure takes care of this.
7784 (NOT_USING_MOTIF): Remove, unused.
7785 * xrdb.c: Remove #if 0-ed #include.
7786 (SYSV): Remove conditional for old SysV.
7787 * sysdep.c (closedir): Remove conditional code for Solaris,
7788 Solaris has closedir.
7789
a0d0b563
JD
77902010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7791
7792 * xsettings.c (read_and_apply_settings): Check if current_font is
7793 NULL before strcmp (Bug#6001).
7794
56bae7c7
DN
77952010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7796
7797 Clean up HP-UX files.
7798 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7799 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7800 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7801 * s/hpux10-20.h: ... to the only user, here.
7802
372b7a95
EZ
78032010-04-21 Eli Zaretskii <eliz@gnu.org>
7804
7805 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7806 use buffer-local values of paragraph-start and paragraph-separate.
7807 <paragraph_start_re, paragraph_separate_re>: Rename from
7808 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7809 (Bug#5992)
7810
f904c0f9
JD
78112010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7812
7813 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7814 current_tool_bar_style are new.
7815 (store_config_changed_event): Rename from store_font_changed_event.
7816 (XSETTINGS_TOOL_BAR_STYLE): New define.
7817 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7818 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7819 HAVE_XFT.
7820 (something_changedCB): store_font_changed_event is now
c4cc8b9a 7821 store_config_changed_event.
bba3e508
SM
7822 (parse_settings): Rename from parse_xft_settings.
7823 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 7824 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
7825 (apply_xft_settings): Take current settings as parameter. Do not
7826 call read_(xft)_settings.
7827 (read_and_apply_settings): New function.
bba3e508
SM
7828 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7829 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 7830 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
7831 Call read_and_apply_settings unconditionally.
7832 (xsettings_initialize): Call init_xsettings.
7833 (Ftool_bar_get_system_style): New function.
7834 (syms_of_xsettings): Define Qmonospace_font_name and
7835 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 7836 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 7837 dynamic-setting.
31a01b90 7838 Move misplaced HAVE_GCONF
f904c0f9
JD
7839
7840 * xsettings.h (Ftool_bar_get_system_style): Declare.
7841
7842 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7843 Qtext, Qboth, Qboth_horiz are new.
7844 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7845 Vtool_bar_style, tool_bar_max_label_size.
7846
7847 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7848
7849 * keyboard.c: QClabel is new.
7850 (parse_tool_bar_item): Take out QClabel from tool bar items.
7851 Try to construct a label if ther is no QClabel.
7852 (syms_of_keyboard): Intern :label as QClabel.
7853
7854 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7855 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7856 New.
7857
7858 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7859 dynamic-setting.el.
7860
7861 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7862 (xg_make_tool_item, xg_show_toolbar_item): New function.
7863 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7864 Call xg_make_tool_item to make a tool bar item.
7865 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7866
7867 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7868 into account for toolbars.
7869
c632dfda
JD
78702010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7871
7872 * data.c (make_blv): Declarations before code (Bug#5993).
7873
10efe302
GM
78742010-04-21 Glenn Morris <rgm@gnu.org>
7875
7876 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7877 Define using autoconf, not cpp.
7878 (LIBXSM): New variable, set by autoconf.
7879 (LIBXT): Use $LIBXSM.
7880
4285ac5a
DN
78812010-04-21 Dan Nicolaescu <local_user@dannlt>
7882
3ec759e7
DN
7883 Remove NOMULTIPLEJOBS, unused.
7884 * s/template.h (NOMULTIPLEJOBS):
7885 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7886
4285ac5a
DN
7887 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7888 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7889 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7890 detects -znocombreloc and passes it to the linker
7891 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7892
2807228d
GM
78932010-04-21 Glenn Morris <rgm@gnu.org>
7894
7895 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7896
574c05e2
KK
78972010-04-21 Karel Klíč <kklic@redhat.com>
7898
7899 * Makefile.in (LIBSELINUX_LIBS): New.
7900 (LIBES): Add $LIBSELINUX_LIBS.
7901 * eval.c, lisp.h (call7): New function.
7902 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7903 (Ffile_selinux_context, Fset_file_selinux_context):
7904 New functions.
7905 (Fcopy_file): New parameter preserve-selinux-context.
7906 (Frename_file): Preserve selinux context when renaming by copy-file.
7907
91eac4bb 79082010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 7909 Eli Zaretskii <eliz@gnu.org>
91eac4bb 7910
50426a04
JB
7911 Don't depend on cm.c or termcap.c on Windows, use stubs.
7912 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7913 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7914 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7915 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7916 (sys_tputs, sys_tgetstr): New stubs.
7917 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7918 (tputs, tgetstr): New; define to sys_*.
91eac4bb 7919
938efb77
JB
79202010-04-20 Juanma Barranquero <lekktu@gmail.com>
7921
7922 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7923
b4bf28b7
SM
79242010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7925
8b1e1112
SM
7926 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7927 Just signal a warning rather than an error when inside a let.
7928 (Fmake_variable_frame_local): Add the same test.
7929
933ac235
SM
7930 * font.c (syms_of_font): Make the style table vars read-only.
7931
b4bf28b7
SM
7932 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7933 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7934
7935 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7936
93d68d0c
EZ
79372010-04-20 Eli Zaretskii <eliz@gnu.org>
7938
7939 Fix R2L paragraph display on TTY.
7940
7941 * xdisp.c (unproduce_glyphs): New function.
7942 (display_line): Use it when produced glyphs are discarded from R2L
7943 glyph rows.
7944 (append_composite_glyph): In R2L rows, prepend the glyph rather
7945 than appending it.
7946
7947 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7948 rather than append it. Set up the resolved_level and bidi_type
7949 attributes of the appended glyph.
283ccc18
EZ
7950 (produce_special_glyphs): Mirror the backslash continuation
7951 character in R2L lines.
93d68d0c 7952
283ccc18 7953 Implement display of R2L paragraphs in GUI sessions.
26cdf528 7954
283ccc18
EZ
7955 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7956 append_stretch_glyph.
bba3e508
SM
7957 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7958 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
7959 (append_stretch_glyph): In reversed row, prepend the glyph rather
7960 than append it. Set resolved_level and bidi_type of the glyph.
7961 (extend_face_to_end_of_line): If the row is reversed, prepend a
7962 stretch glyph whose width is such that the rightmost glyph will be
7963 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
7964 TTY frames in testing whether a line needs face extension.
7965 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
7966 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7967 region face.
bba3e508
SM
7968 (set_cursor_from_row, display_line):
7969 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 7970 row->continuation_lines_width.
283ccc18
EZ
7971 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7972 are at ZV. Fixes a crash when reseated to ZV by
7973 try_window_reusing_current_matrix.
45903529
EZ
7974 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7975 which happens with R2L glyph rows. Fixes a crash when inserting a
7976 character at end of an R2L line.
283ccc18
EZ
7977 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7978 treat them as having zero-width characters. Improve comments.
7979 Don't reverse pos_before and pos_after for reversed glyph rows.
7980 Set cursor.x to negative value when the cursor might be on the
7981 left fringe.
7982 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7983 left fringe, not the right one.
f951a506
EZ
7984 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7985 (erase_phys_cursor): For reversed cursor_row, support cursor on
7986 the left fringe.
7987
283ccc18
EZ
7988 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7989 of continuation indicators on the fringes.
7990 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7991 left fringe.
7992
f951a506
EZ
7993 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7994 draw cursor on the left fringe.
7995
7996 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7997 cursor on the left fringe.
7998
f951a506
EZ
7999 * dispnew.c (update_text_area): Handle reversed desired rows when
8000 the cursor is on the left fringe.
8001 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
8002 below, not by 0, for when the cursor is on the left fringe.
8003
3bb49aaf
JD
80042010-04-20 Jan Djärv <jan.h.d@swipnet.se>
8005
8006 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
8007 widget is a scrollbar.
8008
c0be27fd
KH
80092010-04-20 Kenichi Handa <handa@m17n.org>
8010
8011 * charset.c (char_charset): Consider Vcharset_non_preferred_head
8012 only when the arg CHARSET_LIST is nil.
8013
ce5b453a
SM
80142010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8015
8016 Make variable forwarding explicit rather the using special values.
8017 Basically, this makes the structure of buffer-local values and object
8018 forwarding explicit in the type of Lisp_Symbols rather than use
8019 special Lisp_Objects for that. This tends to lead to slightly more
8020 verbose code, but is more C-like, simpler, and makes it easier to make
8021 sure we handled all cases, among other things by letting the compiler
8022 help us check it.
8023 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
8024 Removing forwarding objects.
8025 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
8026 (struct Lisp_Symbol): Make the various forms of variable-forwarding
8027 explicit rather than hiding them inside Lisp_Object "values".
8028 (XFWDTYPE): New macro.
8029 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
8030 (XBUFFER_LOCAL_VALUE): Remove.
8031 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
8032 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
8033 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
8034 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
8035 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
8036 Remove the Lisp_Misc_* header.
8037 (struct Lisp_Buffer_Local_Value): Redefine.
8038 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
8039 (struct Lisp_Misc_Any): Add filler to get the right size.
8040 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
8041 Lisp_Intfwd.
8042 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
8043 (DEFVAR_KBOARD): Allocate a forwarding object.
8044 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
8045 (let_shadows_global_binding_p): New function.
8046 (union Lisp_Val_Fwd): New type.
8047 (make_blv): New function.
8048 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
8049 (store_symval_forwarding, swap_in_global_binding, Fboundp)
8050 (swap_in_symval_forwarding, find_symbol_value, Fset)
8051 (let_shadows_buffer_binding_p, set_internal, default_value)
8052 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
8053 (Fkill_local_variable, Fmake_variable_frame_local)
8054 (Flocal_variable_p, Flocal_variable_if_set_p)
8055 (Fvariable_binding_locus):
8056 * xdisp.c (select_frame_for_redisplay):
8057 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8058 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8059 * frame.c (store_frame_param):
8060 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8061 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8062 value structure.
8063 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8064 (clone_per_buffer_values): Only adjust markers into the current buffer.
8065 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8066 (Fbuffer_local_value, set_buffer_internal_1)
8067 (swap_out_buffer_local_variables):
8068 Adapt to the new symbol value structure.
8069 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8070 (defvar_per_buffer): Take a new arg for the fwd object.
8071 (buffer_lisp_local_variables): Return a proper alist (different fix
8072 for bug#4138).
8073 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8074 (Fgarbage_collect): Don't handle buffer_defaults specially.
8075 (mark_object): Handle new symbol value structure rather than the old
8076 special Lisp_Misc_* objects.
8077 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8078 * term.c (set_tty_color_mode):
8079 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8080 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8081 a buffer_local_flags.
8082 * print.c (print_object): Get rid of impossible forwarding objects.
8083
fd3998ff
EZ
80842010-04-19 Eli Zaretskii <eliz@gnu.org>
8085
8086 * bidi.c (bidi_get_type, bidi_get_category)
8087 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
8088 (bidi_type_of_next_char, bidi_level_of_next_char):
8089 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 8090
e42cd1a7
JB
80912010-04-19 Juanma Barranquero <lekktu@gmail.com>
8092
8093 * dired.c (Ffile_attributes): Fix typo in docstring.
8094
6e104790 80952010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
8096
8097 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8098 NSInteger (Bug#5811).
8099
6e104790 81002010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
8101
8102 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8103 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8104
6e104790 81052010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
8106
8107 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8108
6e104790
SM
81092010-04-19 Chong Yidong <cyd@stupidchicken.com>
8110
8111 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8112 terminal frames (Bug#5837).
8113
37dcfea0
EZ
81142010-04-19 Eli Zaretskii <eliz@gnu.org>
8115
d1da276f
EZ
8116 * .gdbinit (xsubchartable): New command.
8117
37dcfea0
EZ
81182010-04-19 Eli Zaretskii <eliz@gnu.org>
8119
8120 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 8121 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
8122 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8123 and
8124 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8125
e9515805
SM
81262010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8127
8128 * alloc.c (Fpurecopy): Hash-cons if requested.
8129 (syms_of_alloc): Update purify-flag docstring.
8130
22aa44a8
JD
81312010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8132
8133 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8134 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8135
ebb5722e
EZ
81362010-04-17 Eli Zaretskii <eliz@gnu.org>
8137
8138 Fix a crash when an NSM character is inserted at BEGV.
8139
8140 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8141 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8142 NEUTRAL_B or UNKNOWN_BT.
8143
0f4442ef
EZ
81442010-04-16 Eli Zaretskii <eliz@gnu.org>
8145
8146 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8147 other rows with cursor unless they are different from this row and
8148 this row is part of a continued line. (Bug#5943)
8149
7d4e45f8
DN
81502010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8151
8152 * s/freebsd.h: Restore osreldate.h include.
8153 Suggested by Naohiro Aota.
8154
5ba5ec85
J
81552010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8156
8157 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8158
20af301d
CY
81592010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8160
8161 * s/cygwin.h: Avoid linking against static libgcc.
8162
a4b000fb
JL
81632010-04-15 Juri Linkov <juri@jurta.org>
8164
8165 * window.c: Add Qscroll_command.
8166 Remove Vscroll_preserve_screen_position_commands.
8167 (window_scroll_pixel_based, window_scroll_line_based): Check the
8168 `scroll-command' property on the last command instead of searching
8169 the last command in Vscroll_preserve_screen_position_commands.
8170 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8171 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8172 (scroll-preserve-screen-position): Doc fix.
8173 (Vscroll_preserve_screen_position_commands): Remove variable.
8174
bc319ba4
DN
81752010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8176
6bb24457
DN
8177 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8178
19d4c244
DN
81792010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8180
8181 Reduce cpp use in Makefile.in.
8182 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8183 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8184 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8185 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8186 (CRT0_COMPILE): Remove, inline it in the only user.
8187
32129746
JL
81882010-04-14 Juri Linkov <juri@jurta.org>
8189
8190 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8191 `scroll-up-command' and `M-v' from `scroll-down' to
8192 `scroll-down-command'.
8193
9013a7f8
JL
81942010-04-14 Juri Linkov <juri@jurta.org>
8195
8196 * window.c (Vscroll_preserve_screen_position_commands): New variable
8197 with the default value as the list of Qscroll_down and Qscroll_up.
8198 (window_scroll_pixel_based, window_scroll_line_based): Search the
8199 last command in the list Vscroll_preserve_screen_position_commands
8200 instead of comparing with Qscroll_up and Qscroll_down.
8201
4bef8d26
JD
82022010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8203
92848133
JD
8204 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8205 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8206 does that.
8207
4bef8d26
JD
8208 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8209 to zero.
8210
58b963f7
SM
82112010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8212
84164a0d
SM
8213 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8214
2b0a91e7
SM
8215 Try to solve the problem of spurious EOF chars in long lines of text
8216 sent to interactive subprocesses.
8217 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8218 (system_process_attributes): Remove unused var `ttotal'.
8219 * process.c (send_process): Don't bother breaking long line with EOF
8220 chars when talking to ttys any more.
8221 (wait_reading_process_output): Output a warning when called in such
8222 a way that it could block without being interruptible.
8223
58b963f7
SM
8224 Try to detect file modification within the same second.
8225 * buffer.h (struct buffer): New field modtime_size.
8226 * buffer.c (reset_buffer): Initialize it.
8227 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8228 (Fverify_visited_file_modtime): Check it.
8229 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8230 (Fset_visited_file_modtime): Set (or clear) it.
8231
01f5787b
SM
82322010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8233
8234 * process.c (status_notify): Remove unused var `ro'.
8235
83725342
JD
82362010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8237
8238 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8239 more than one visual (Bug#5938).
8240
b9465836
DN
82412010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8242
50426a04
JB
8243 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8244 Undefine.
b9465836 8245
8d9c8ece
DN
82462010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8247
b1f52161
DN
8248 Remove C_SWITCH_SYSTEM_TEMACS.
8249 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8250 (malloc, realloc, free): Use emacs, not temacs for conditional
8251 definition.
8252
8253 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8254 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8255
8d9c8ece
DN
8256 Use autoconf, not cpp for some variables.
8257 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8258 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8259 (ALL_CFLAGS): Use them as make variables.
8260 (really-lwlib, really-oldXMenu): Do not pass them.
8261
1ecb2d3f
JD
82622010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8263
8264 * xmenu.c (apply_systemfont_to_dialog): New.
8265 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8266
3a4fa2f2
SM
82672010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8268
97e53006
SM
8269 * process.c (exec_sentinel): Preserve current-buffer.
8270
3a4fa2f2
SM
8271 * process.c (read_process_output): Move the save-current-buffer to
8272 apply to both the filter and the non-filter branches.
8273
88df7221
DN
82742010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8275
8276 * s/msdos.h (UNEXEC): New definition.
8277
5634ff85
YM
82782010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8279
6eff5c3d
YM
8280 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8281 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8282
8283 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8284 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8285 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8286 TRY_WINDOW_CHECK_MARGINS.
8287
8288 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
8289 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8290 width only when it is for padding.
5634ff85 8291
b13aef54
J
82922010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8293
8294 * xfns.c (Fx_show_tip): Call try_window in a loop until
8295 fonts_changed_p is zero (Bug#2423).
8296
21d28484
EZ
82972010-04-08 Eli Zaretskii <eliz@gnu.org>
8298
8299 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8300 the end of TEXT_AREA. (Bug#5856)
8301
0269ef77
JD
83022010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8303
8304 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8305 HAVE_GCONF.
8306
5930fe97
EZ
83072010-04-08 Eli Zaretskii <eliz@gnu.org>
8308
8309 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8310 prev.orig_type, for resolving type of NSM. (Bug#5858)
8311
99852628
JD
83122010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8313
8314 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8315 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8316 in current_font.
8317 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
8318 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8319 New functions.
8320 (syms_of_xsettings): Initialize current_font.
8321 defsubr Sfont_get_system_normal_font.
99852628 8322
686b968e
JB
8323 * xsettings.h (Ffont_get_system_normal_font)
8324 (xsettings_get_system_normal_font): Declare.
99852628
JD
8325
8326 * xfns.c (extern xlwmenu_default_font): Remove.
8327 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8328 to xlwmenu.c.
8329
8330 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8331 menu items in UTF-8.
8332
8333 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8334 (apply_systemfont_to_menu): New function.
bba3e508
SM
8335 (set_frame_menubar, create_and_show_popup_menu):
8336 Call apply_systemfont_to_menu.
99852628 8337
7fc874c4
J
83382010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8339
8340 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8341 FRAME_LINE_TO_PIXEL_Y.
8342
8343 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8344 pixelwidth/height.
8345
863bf481
DN
83462010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8347
5e5a3b92
DN
8348 Simplify code for HP machines.
8349 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8350 for GNU_LINUX, not needed.
8351 (UNEXEC, NEED_BSDTTY): Move definitions...
8352 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8353
863bf481
DN
8354 * m/iris4d.h (UNEXEC): Move definition ...
8355 * s/irix6-5.h (UNEXEC): ... here.
8356
3e6bec3b
JD
83572010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8358
8359 * xfns.c (set_machine_and_pid_properties): New function.
8360 (Fx_create_frame): Call set_machine_and_pid_properties.
8361
2912322b
SM
83622010-04-03 Eli Zaretskii <eliz@gnu.org>
8363
bba3e508
SM
8364 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8365 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
8366 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8367
2912322b
SM
8368 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8369 in this function. (Bug#5703)
8370
83712010-04-03 Chong Yidong <cyd@stupidchicken.com>
8372
8373 * nsterm.h: Fix last change.
8374
c435b432
DN
83752010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8376
a568f507
DN
8377 * m/intel386.h (NO_REMAP): Move definition ...
8378 * s/msdos.h (NO_REMAP): ... here.
8379
4cd9f6c2
DN
8380 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8381
c435b432
DN
8382 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8383 used on those platforms.
8384
42a2c622
DN
83852010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8386
8387 Remove extern errno declarations.
8388 * xterm.c:
8389 * xrdb.c:
8390 * w32term.c:
8391 * unexec.c:
8392 * unexaix.c:
8393 * sysdep.c:
8394 * process.c:
8395 * lread.c:
8396 * keyboard.c:
8397 * floatfns.c:
8398 * filelock.c:
8399 * fileio.c:
8400 * emacs.c (main):
8401 * ecrt0.c:
8402 * dispnew.c:
8403 * callproc.c:
8404 * buffer.c: Remove errno extern declarations.
8405 * s/netbsd.h (NEED_ERRNO): Remove.
8406
8224f93d
DN
84072010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8408
8409 Remove all uses of LIBX11_SYSTEM.
8410 * Makefile.in (LIBX11_SYSTEM): Remove.
8411 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8412 instead.
8413
814062c7
EZ
84142010-04-01 Eli Zaretskii <eliz@gnu.org>
8415
ed68db4d
EZ
8416 Remove support for DJGPP v1.x (bug#5813).
8417
8418 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
8419 * s/msdos.h:
8420 * unexec.c (make_hdr, copy_text_and_data):
8421 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 8422 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
8423 (IT_set_terminal_modes, __write, _rename, gethostname)
8424 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8425 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8426 the value of __DJGPP__.
ed68db4d
EZ
8427 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8428 compatibility code.
8224f93d
DN
8429 * lread.c:
8430 * gmalloc.c (memalign):
8431 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8432 * emacs.c (main):
8433 * dosfns.c (init_dosfns):
ed68db4d
EZ
8434 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8435
52f4d8d5
EZ
84362010-04-01 Eli Zaretskii <eliz@gnu.org>
8437
814062c7
EZ
8438 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8439 string with `cursor' property comes from an `after-string'
8440 overlay. (Bug#5816)
8441
0dc2e11d
GM
84422010-04-01 Glenn Morris <rgm@gnu.org>
8443
8444 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8445 Define as Makefile variables.
8446 (LIBX): Use above variables rather than directly using autoconf.
8447
1d29df59
DN
84482010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8449
8450 Clean up BSD_SYSTEM use.
8451 * xterm.c:
8452 * process.c:
8453 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8454 for including <sys/ioctl.h>.
8455 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8456 code is only used for MSDOS.
8457
1546c559
JL
84582010-03-31 Juri Linkov <juri@jurta.org>
8459
8460 * image.c: Add `Qextension_data'.
8461 (syms_of_image): Initialize and staticpro `Qextension_data'.
8462 (Fimage_metadata): Rename from `Fimage_extension_data'.
8463 (gif_load): Put GIF extension data to the property
8464 `Qextension_data'.
8465
6521c534
CY
84662010-03-31 Chong Yidong <cyd@stupidchicken.com>
8467
8468 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8469 * nsterm.h: Fix prototype.
8470
52c30783
EZ
84712010-03-31 Eli Zaretskii <eliz@gnu.org>
8472
8473 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8474 trailing whitespace in right-to-left rows.
8475
855a0da7
SM
84762010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8477
8478 Get rid of the direct_output optimizations.
8479 * keyboard.c (nonundocount): Remove extern declaration.
8480 (command_loop_1): Remove brittle optimisation for cheap and
8481 common operations.
8482 * xdisp.c (redisplay_internal): Don't bother checking
8483 redisplay_performed_directly_p any more.
8484 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8485 any more.
8486 * dispnew.c (redisplay_performed_directly_p)
8487 (direct_output_for_insert, direct_output_forward_char):
8488 * dispextern.h (redisplay_performed_directly_p)
8489 (direct_output_for_insert, direct_output_forward_char): Remove.
8490 * cmds.c (nonundocount): Make it static.
8491
85738751 84922010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
8493
8494 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8495
85738751 84962010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
8497
8498 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8499 invisible (Bug#5766).
8500
85738751 85012010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 8502
855a0da7
SM
8503 * xdisp.c (x_consider_frame_title, update_window_cursor):
8504 Remove HAVE_NS conditionals.
194d44e7 8505 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
8506
8507 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8508 filename for the title.
8509 (ns_set_doc_edited): Do nothing if the selected window is a
8510 minibuffer window.
8511
8512 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8513 ns_set_doc_edited.
8514
8515 * nsterm.m: Remove unneeded prototype.
8516
85738751 85172010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
8518
8519 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8520 in the DOC file. (Bug#5336)
8521
85738751 85222010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
8523
8524 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8525
75d1428c
SM
85262010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8527
8528 * window.c (keys_of_window): Remove redundant/overridden bindings.
8529
82043cfb
EZ
85302010-03-30 Eli Zaretskii <eliz@gnu.org>
8531
8532 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8533 Restore original behavior when the iterator is not bidi_p.
8534
b5dd0ae7
DN
85352010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8536
8537 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8538
bd924a5d
EZ
85392010-03-30 Eli Zaretskii <eliz@gnu.org>
8540
8541 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8542 are outside the range of cached character positions.
8543
3580374b
JB
85442010-03-30 Juanma Barranquero <lekktu@gmail.com>
8545
8546 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8547
a7b02820
EZ
85482010-03-30 Eli Zaretskii <eliz@gnu.org>
8549
8550 Initial support for bidirectional editing.
8551
8552 * Makefile.in (obj): Include bidi.o.
8553 (bidi.o): New target.
8554
8555 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8556 ($(BLD)/bidi.$(O)): New target.
8557
8558 * bidi.c: New file.
8559
8560 * buffer.h (struct buffer): New members bidi_display_reordering
8561 and bidi_paragraph_direction.
8562
8563 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8564 and bidi_paragraph_direction.
8565 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8566 and bidi-paragraph-direction.
8567 (Fbuffer_swap_text): Swap the values of
8568 bidi_display_reordering and bidi_paragraph_direction.
8569
8570 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8571 (bidi_type_t, bidi_dir_t): New types.
8572 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8573 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8574 prev_stop, base_level_stop, and eol_pos.
8575 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8576 (IT_STACK_SIZE): Enlarge to 5.
8577 (struct glyph_row): New member reversed_p.
8578 <string_buffer_position>: Update prototype.
8579 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8580 glyph_row if bidi_it.paragraph_dir == R2L.
8581 (struct glyph): New members resolved_level and bidi_type.
8582
8583 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8584 processing or buffer's direction is right-to-left.
8585 (prepare_desired_row): Preserve the reversed_p flag.
8586 (row_equal_p): Compare the reversed_p attributes as well.
8587
bba3e508
SM
8588 * xdisp.c (init_iterator): Initialize it->bidi_p.
8589 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
8590 buffer's value of bidi_paragraph_direction.
8591 (reseat_1): Initialize bidi_it.first_elt.
8592 (set_iterator_to_next, next_element_from_buffer): Use the value of
8593 paragraph_embedding to determine the paragraph direction.
8594 (set_iterator_to_next): Under bidi reordering, call
8595 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8596 new_paragraph flag is set in the bidi iterator.
8597 (next_element_from_buffer): If bidi_it.first_elt is set,
8598 initialize paragraph direction and find the first character to
8599 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
8600 prime the bidi iterator starting at the line's beginning.
8601 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
8602 non-linearity of the bidi iteration. Likewise for when we back up
8603 beyond the previous stop_charpos. When moving across stop_charpos,
8604 record it in prev_stop.
8605 (display_line): Set row->end and it->start for the next row to the
8606 next character in logical order. Always extend reversed_p rows to
8607 the end of line, even if they end at ZV. Copy the reversed_p flag
8608 to the next glyph row. Keep calling set_cursor_from_row for
8609 bidi-reordered rows even if we already have a possible candidate
8610 for cursor position. Set row_end after all the row's glyphs have
8611 been produced, by looping over the glyphs. Record the position
8612 after EOL in it->eol_pos, and use it to set end_pos of the last
8613 row produced for a continued line.
8614 <Qright_to_left, Qleft_to_right>: New variables.
8615 (syms_of_xdisp): Initialize and staticpro them.
8616 (string_buffer_position_lim): New function.
8617 (string_buffer_position): Most of code moved to
8618 string_buffer_position_lim. Last argument and return value are
8619 now EMACS_INT; all callers changed.
8620 (set_cursor_from_row): Rewritten to support bidirectional text and
8621 reversed glyph rows.
bba3e508
SM
8622 (text_outside_line_unchanged_p, try_window_id):
8623 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
8624 paragraph direction can be affected by the change.
8625 (append_glyph, append_composite_glyph)
8626 (produce_image_glyph, append_stretch_glyph): Set the
8627 resolved_level and bidi_type members of each glyph.
8628 (append_glyph): If the glyph row is reversed, prepend the glyph
8629 rather than appending it.
8630 (handle_stop_backwards): New function.
8631 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8632 (reseat): call handle_stop_backwards to recompute prev_stop and
8633 base_level_stop for the new position.
8634 (handle_invisible_prop): Under bidi iteration, skip invisible text
8635 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8636 paragraph direction. Update IT->prev_stop after skipping
8637 invisible text.
8638 (move_it_in_display_line_to): New variables prev_method
8639 and prev_pos. Compare for strict equality in
8640 BUFFER_POS_REACHED_P.
8641 (try_cursor_movement): Examine all the candidate rows that occlude
8642 point, to return the best match. If rows are bidi-reordered
8643 and point moved backwards, back up to the row that is not a
8644 continuation line, and start looking for a suitable row from
8645 there.
8646
8647 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8648 rather than appending, if the glyph_row's reversed_p flag is set.
8649 Set the resolved_level and bidi_type members of each glyph.
8650
8651 * .gdbinit (pbiditype): New command.
8652 (pgx): Use it to display bidi level and type of the glyph.
8653 (pitx): Display some bidi information about the iterator.
8654 (prowlims, pmtxrows): New commands.
8655
32a8894e
DN
86562010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8657
8658 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8659 * s/usg5-4.h (LIBS_DEBUG):
8660 * s/irix6-5.h (C_DEBUG_SWITCH):
8661 * s/gnu-linux.h (LIBS_DEBUG):
8662 * s/darwin.h (LIBS_DEBUG):
8663 * s/bsd-common.h (LIBS_DEBUG):
8664 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8665 * m/iris4d.h (LIBS_DEBUG):
8666 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8667
8668 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8669 (LIBS_DEBUG): Remove definition.
8670
649dbf36
CY
86712010-03-27 Chong Yidong <cyd@stupidchicken.com>
8672
8673 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8674 Windows.
8675
cad4261f
YM
86762010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8677
8678 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8679 `connect' (Bug#5723).
8680
cd591dbc
HE
86812010-03-25 Helmut Eller <eller.helmut@gmail.com>
8682
8683 * process.c (Fmake_network_process): Call `select' for interrupted
8684 `connect' rather than creating new socket (Bug#5173).
8685
e867cb5d 86862010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
8687
8688 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8689
8690 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8691
8692 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8693
e867cb5d 86942010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
8695
8696 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8697 XLoadQueryFont.
8698
e867cb5d 86992010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
8700
8701 * coding.c (decode_coding_ccl): Fix previous change for the
8702 multibyte case.
fb608df3
KH
8703 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8704 case that the output buffer is fullfilled.
8705 (encode_coding): Setup ccl program here.
fbdc1721 8706
5845f0ed
DN
87072010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8708
814fb708
DN
8709 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8710
5845f0ed
DN
8711 Simplify LIBS_MACHINE definitions.
8712 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8713 * m/iris4d.h (LIBS_MACHINE): Likewise.
8714 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8715 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 8716 * s/netbsd.h: Remove commented out code.
5845f0ed 8717
b7064064
DN
87182010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8719
df7734b2
DN
8720 Remove dead code dealing with POSIX_SIGNALS.
8721 * atimer.c (set_alarm): Remove dead code, all USG systems define
8722 POSIX_SIGNALS.
8723 * data.c (arith_error): Likewise.
8724 * keyboard.c (input_available_signal, handle_user_signal)
8725 (interrupt_signal): Likewise.
8726 * process.c (sigchld_handler): Likewise.
8727 (create_process): Remove if 0 code. Remove HPUX conditional when
8728 !defined (POSIX_SIGNALS), it cannot be true.
8729 * syssignal.h: Remove USG5_4 and USG conditionals when
8730 !POSIX_SIGNALS, they cannot be true.
8731
b7064064
DN
8732 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8733 NO_SOCK_SIGIO, not used anymore.
8734
55da5ee3
DN
87352010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8736
0be96e3a
DN
8737 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8738 support vax on BSDs.
8739
55da5ee3
DN
8740 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8741 * s/aix4-2.h (ORDINARY_LINK): ... here.
8742
c0282183
AS
87432010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8744
82c3d67a
AS
8745 * Makefile.in (abs_builddir): Define.
8746 (bootstrap_exe): Use it.
8747 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 8748
3613edce
SM
87492010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8750
8751 * Makefile.in (bootstrap_exe): Use an absolute name.
8752
7f110ddc
DN
87532010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8754
22e87574
DN
8755 Remove support for old GNU/Linux using libc version 5.
8756 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8757 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8758
05a670e6
DN
8759 Consolidate redundant definitions in s/bsd-common.h.
8760 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8761 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8762 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8763 doing it in all files that include this one.
8764 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8765 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8766 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8767 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8768 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8769 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8770 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8771 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8772 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8773
2968f561
DN
8774 Consolidate redundant definitions.
8775 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8776 it's undefined in all files that include this one.
8777 (POSIX_SIGNALS): Define here instead of doing it in all files that
8778 include this one.
8779 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8780 (POSIX_SIGNALS): Do not define.
8781 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8782 (POSIX_SIGNALS): Do not define.
8783 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8784 (POSIX_SIGNALS): Do not define.
8785
15d25dc0
DN
8786 Remove support for old UNIX System V systems.
8787 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8788 * s/usg-5-4-2.h: Remove.
8789
07e339e4
DN
8790 Remove support for Solaris on PPC and for old versions.
8791 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8792 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8793 that cancel each other.
8794 * s/sol2-3.h:
8795 * s/sol2-4.h:
8796 * s/sol2-5.h: Remove.
8797 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8798 (NO_REMAP): Remove, unused.
8799 (UNEXEC): Move definition ...
8800 * s/aix4-2.h (UNEXEC): ... here.
8801
7f110ddc
DN
8802 * s/openbsd.h: Remove support for non-ELF and for systems that do
8803 not support shared libraries.
8804 * s/netbsd.h:
8805 * s/freebsd.h: Likewise.
8806
605f35cd
DN
88072010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8808
8809 Remove non-working support for lynxos 3.0.
8810 * s/lynxos.h: Remove file.
8811
8812 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8813 COFF_BSD_SYMBOLS, nothing defines it anymore.
8814
aed71cf4
DN
88152010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8816
8817 Remove obsolete uses of HAVE_SHM.
8818 * emacs.c (standard_args):
8819 (Fdump_emacs):
8820 (syms_of_emacs): Remove code depending on HAVE_SHM.
8821
8822 * alloc.c: Remove HAVE_SHM dependent definition.
8823
8824 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8825
aded53ff
GM
88262010-03-18 Glenn Morris <rgm@gnu.org>
8827
17284745
GM
8828 * emacs.c (USAGE4): Hard-code bug address.
8829 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8830 (bug_reporting_address): Remove.
8831 (main): Don't call bug_reporting_address.
8832
aded53ff
GM
8833 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8834 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8835
303500aa
CY
88362010-03-15 Chong Yidong <cyd@stupidchicken.com>
8837
8838 * xfns.c (Fx_create_frame):
8839 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8840 on left.
8841
cef3058f
CY
88422010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8843
8844 * editfns.c (Fformat): Account for string precision when computing
8845 field width (Bug#5710).
8846
a647d59d
CY
88472010-03-12 Chong Yidong <cyd@stupidchicken.com>
8848
4fa42018
CY
8849 * xfns.c (Fx_create_frame): Set default to Qright.
8850
a647d59d
CY
8851 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8852 all window systems.
8853
6da23aaa
EZ
88542010-03-12 Eli Zaretskii <eliz@gnu.org>
8855
a96f6398 8856 These changes remove termcap.c from the build on Posix platforms.
83d02def 8857 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
8858 (MSDOS_OBJ): ...to here.
8859 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8860 now identical to when LIBS_TERMCAP is defined.
8861
8862 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8863
8864 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8865
a96f6398 8866 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 8867
288f9fc0
CY
88682010-03-10 Chong Yidong <cyd@stupidchicken.com>
8869
8870 * Branch for 23.2.
8871
d48cd3f4
SM
88722010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8873
8874 Cleanup setup of gl_state in various parts of the code.
8875 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8876 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8877 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8878 (skip_chars):
8879 * regex.c (regex_compile): Use it.
8880 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8881 it's now set in regex_compile when/if we need it.
8882
618db430
SM
88832010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8884
c0335e02
SM
8885 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8886 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8887 (QUIT): Use it to consolidate code and remove redundancy.
8888 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8889
254c06a8
SM
8890 * regex.c (regex_compile): Setup gl_state as well.
8891
618db430
SM
8892 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8893 (in_classes): Use CONSP before XCAR/XCDR.
8894
233f0c9f
CY
88952010-03-03 Chong Yidong <cyd@stupidchicken.com>
8896
8897 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8898 definitions, so that keyboard macros are correctly handled
8899 (Bug#5481).
8900
75f80e63
EZ
89012010-03-02 Eli Zaretskii <eliz@gnu.org>
8902
8903 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8904 text that could be relocated inside the call to emacs_mule_char.
8905 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8906 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8907
dcfb9bc4
KH
89082010-03-02 Kenichi Handa <handa@m17n.org>
8909
fc9a17bc
KH
8910 * character.c (parse_str_as_multibyte): Fix handling of the
8911 multibyte form of raw-bytes.
8912 (str_as_multibyte): Likewise.
8913
dcfb9bc4
KH
8914 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8915 form of raw-bytes.
8916
412c01b6
CY
89172010-02-28 Chong Yidong <cyd@stupidchicken.com>
8918
8919 * charset.c (load_charset_map_from_file)
8920 (load_charset_map_from_vector): Zero out allocated
8921 charset_map_entries before using them.
8922
df7e1ea0
AS
89232010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8924
8925 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8926
fe69a722
CY
89272010-02-27 Chong Yidong <cyd@stupidchicken.com>
8928
4ed28cf4
CY
8929 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8930 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 8931
7379cfce
KH
89322010-02-26 Kenichi Handa <handa@m17n.org>
8933
f88cc4d6
KH
8934 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8935
7379cfce
KH
8936 * xdisp.c (reseat_to_string): Fix previous change.
8937
cf2fdcfb
CY
89382010-02-26 David Reitter <david.reitter@gmail.com>
8939
8940 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8941 Lisp_Object (Bug#4736).
8942
cc6c7c75
KH
89432010-02-25 Kenichi Handa <handa@m17n.org>
8944
8945 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8946
32e737d7
JD
89472010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8948
8949 * xterm.c (XTflash): Move declarations before statements.
8950
8951 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8952 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8953 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8954 (xg_create_tool_bar): Remove unused variables.
8955 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 8956 (xg_create_frame_widgets): Remove variable grav.
32e737d7 8957
676cae9f
CY
89582010-02-21 Chong Yidong <cyd@stupidchicken.com>
8959
8960 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8961
886cc2b8
SM
89622010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8963
8964 * term.c (fatal): Add a final \n if needed (bug#5596).
8965
ddb2d8e2
CY
89662010-02-18 Chong Yidong <cyd@stupidchicken.com>
8967
8968 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8969
2a4f8d3d
GM
89702010-02-18 Glenn Morris <rgm@gnu.org>
8971
8972 * callint.c (Finteractive): Doc fix.
8973
ebaf11b6
KH
89742010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8975
886cc2b8
SM
8976 * coding.c (record_conversion_result):
8977 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
8978 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8979 memory allocation error.
8980
d0396581
KH
89812010-02-17 Kenichi Handa <handa@m17n.org>
8982
886cc2b8
SM
8983 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8984 Fix for the case that the output buffer is fullfilled.
d0396581
KH
8985 (decode_coding): Setup ccl program here. Keep looping when the
8986 decoder stopped because the output buffer is
8987 fullfilled (bug#5534).
8988
8989 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8990
98599f74
JD
89912010-02-13 Jan Djärv <jan.h.d@swipnet.se>
8992
471e4f04 8993 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 8994 bug #5571.
886cc2b8 8995 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 8996 overdrawn.
98599f74 8997
182659ae
JD
89982010-02-10 Jan Djärv <jan.h.d@swipnet.se>
8999
9000 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
9001 doing_interact here.
9002 (ice_connection_closed): New function.
9003 (x_session_check_input, smc_die_CB, ice_io_error_handler)
9004 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
9005 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
9006 returns I/O error.
9007 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
9008 bug #5512.
9009
9be32c4e 90102010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
9011
9012 * nsfont.m (nsfont_open): The system's value for the font descent
9013 is negative, so round it down to avoid clipping.
9014
a2f3eb19
CY
90152010-02-06 Chong Yidong <cyd@stupidchicken.com>
9016
9017 * charset.c (load_charset_map_from_file)
9018 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 9019 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 9020
3088147c
CY
90212010-02-05 Chong Yidong <cyd@stupidchicken.com>
9022
9023 * charset.c (load_charset_map_from_file): Allocate large
9024 charset_map_entries structure on the heap rather than the stack.
9025 (Bug#5526).
9026
b57d9029
KH
90272010-01-31 Kenichi Handa <handa@m17n.org>
9028
9029 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 9030 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 9031
c67d885b
CY
90322010-01-31 Chong Yidong <cyd@stupidchicken.com>
9033
9034 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
9035 <deactivated@gmail.com> (Bug#3605).
9036
8fab2362
CY
90372010-01-31 David De La Harpe Golden <david@harpegolden.net>
9038
9039 * fileio.c (Frename_file): Correctly rename symlinks to
9040 directories (Bug#5496).
9041
cb2a62f2
CY
90422010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
9043
9044 * nsterm.m (ns_ring_bell): Handle visible bell like X.
9045
944c7a26
AS
90462010-01-30 Andreas Schwab <schwab@linux-m68k.org>
9047
9048 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
9049
c024ac08
CY
90502010-01-29 Chong Yidong <cyd@stupidchicken.com>
9051
9052 * frame.c (DEFAULT_ROWS): Change default to 35.
9053
9054 * xfns.c (x_default_font_parameter): Change default XFT font to
9055 monospace-10 (Bug#3643).
9056
af93af83
EZ
90572010-01-29 Eli Zaretskii <eliz@gnu.org>
9058
9059 * w32inevt.c (key_event): Remove unnecessary comparison of
9060 event->uChar.AsciiChar with 128.
9061
ca0eb708
CY
90622010-01-28 Chong Yidong <cyd@stupidchicken.com>
9063
b242dbfc
CY
9064 * fileio.c (Frename_file): Fix last change (Bug#5487).
9065
ca0eb708
CY
9066 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9067
9068 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9069
45d45af5
JD
90702010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9071
9072 * xfns.c (Fx_create_frame): Remove window size matching code from
9073 2010-01-15.
a73f9c9d 9074 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 9075
7e233730
JR
90762010-01-27 Jason Rumney <jasonr@gnu.org>
9077
9078 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 9079 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 9080
86e893e3
KH
90812010-01-27 Kenichi Handa <handa@m17n.org>
9082
9083 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 9084 pattern string (Bug#4209).
86e893e3 9085
8719abec
CY
90862010-01-27 David De La Harpe Golden <david@harpegolden.net>
9087
9088 * fileio.c (Frename_file): Call copy-directory and
9089 delete-directory for directories, in order to handle cross-device
9090 renaming (Bug#3353).
9091
844794c8
JD
90922010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9093
aa3e13b5 9094 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 9095 sizes 24 and 10. Bug #3643.
844794c8 9096
bd4b5750
SM
90972010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9098
8dc1adf6 9099 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
9100 * keymap.c (shadow_lookup): Add `remap' arg.
9101 (describe_map, describe_vector): Update calls to shadow_lookup.
9102 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9103 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
9104 perform remapping during shadow_lookup check of remapped_sequences.
9105
285d07e2
CY
91062010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9107
9108 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9109 png_check_sig, which has been removed in libpng 1.4.
9110
c6d09b8d
CY
91112010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9112
9113 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9114 lacks this header file).
9115
3d782998
YM
91162010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9117
9118 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9119 as in Emacs 22.
9120
2aff7c53
YM
91212010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9122
9123 * lisp.h (make_pure_string): String pointer arg now points to const.
9124
9125 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9126 args now point to const.
9127
74327f7a
EZ
91282010-01-22 Eli Zaretskii <eliz@gnu.org>
9129
9130 * lread.c (Fload): Don't treat files without .elc extension as
9131 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9132 them. (bug#5303)
9133
4d1e6632
KH
91342010-01-20 Kenichi Handa <handa@m17n.org>
9135
9136 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9137 treat the source as actual byte sequence.
9138
1fdede8f
AM
91392010-01-19 Alan Mackenzie <acm@muc.de>
9140
9141 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 9142 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
9143 `signal_after_change_p' to `coherent_change_p', and make the
9144 invocation of `modify_region' conditional on it.
9145
67477f30
JD
91462010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9147
9148 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9149 for debug purpose.
9150 (syms_of_xsettings): Declare xft-settings.
9151
244b023e
CY
91522010-01-18 Chong Yidong <cyd@stupidchicken.com>
9153
9154 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9155
617364fe
CY
91562010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9157
9158 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9159
4fe22cdf
CY
91602010-01-16 Chong Yidong <cyd@stupidchicken.com>
9161
9162 * emacs.c (standard_args): Adjust arg priorities to reflect how
9163 they are processed in startup.el.
9164
e118d2be
AS
91652010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9166
9167 * Makefile.in (lisp, shortlisp): Update.
9168
523ae620
SM
91692010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9170
9171 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9172 code, link the new kboard into all_kboard before running Lisp code,
9173 and protect the new terminal with GCPRO (Bug#5365).
9174 (x_term_init): Remove unused var `atom'.
9175 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9176
f0d13888
JD
91772010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9178
9179 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9180 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9181 to find out usable size of the desktop. Don't make frames larger than
ac146f82 9182 this. Bug #3643.
f0d13888 9183
cc320f07
KH
91842010-01-15 Kenichi Handa <handa@m17n.org>
9185
9186 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9187
7ffdf101
CY
91882010-01-15 Chong Yidong <cyd@stupidchicken.com>
9189
9190 * nsterm.m (Qnone): Define.
9191
9192 * nsfns.m (Qnone): Move definition to nsterm.m.
9193
d12bd917
KH
91942010-01-14 Kenichi Handa <handa@m17n.org>
9195
9196 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9197 systems.
9198
d9a7c140
KH
91992010-01-14 Kenichi Handa <handa@m17n.org>
9200
9201 Make auto-composition work on all buffers even if they are
9202 fundamental mode.
9203
9204 * composite.c (Vauto_composition_mode): New variable.
9205 (composition_compute_stop_pos): Check Vauto_composition_mode
9206 instead of Vauto_composition_function.
9207 (composition_adjust_point, Ffind_composition_internal): Likewise.
9208 (syms_of_composite): Declare Lisp variable
9209 "auto-composition-mode" here.
9210
63286bb2
CY
92112010-01-13 Chong Yidong <cyd@stupidchicken.com>
9212
9213 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9214 during call to vendor-specific-keysyms (Bug#5365).
9215
c2623ee7
YM
92162010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9217
9218 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9219 Call SIGNAL_THREAD_CHECK (Bug#5333).
9220
9221 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9222 Call SIGNAL_THREAD_CHECK.
9223
0b5397c2
SM
92242010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9225
9226 Try to fix bug#5314. This is probably not the final word, tho.
9227 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9228 recent-auto-save-p as a side-effect.
9229 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9230 * buffer.c (Fkill_buffer, reset_buffer):
9231 * editfns.c (Fsubst_char_in_region):
9232 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9233 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9234
dc954cb2
KH
92352010-01-13 Kenichi Handa <handa@m17n.org>
9236
9237 Display buffer name, etc. in mode line by composing correctly.
9238
9239 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9240 STRING is not nil.
0b5397c2 9241 (display_mode_element): Adjust for the change of
dc954cb2
KH
9242 decode_mode_spec and display_line.
9243 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9244 (display_string): Handle the case that STRING is non-null and
9245 LISP_STRING is not nil.
9246
0b5397c2
SM
9247 * xterm.c (x_draw_composite_glyph_string_foreground):
9248 Pay attention to s->face->overstrike.
dc954cb2
KH
9249
9250 * composite.c (composition_reseat_it): Don't check PT if STRING is
9251 non nil.
9252
4a00eaca
YM
92532010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9254
9255 * keyboard.c (read_char): Don't apply previous change when current
9256 buffer is unchanged by command execution.
9257
60abb287
JD
92582010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9259
9260 * keyboard.c (read_char): Return after executing from special map.
9261
893db5bc
GM
92622010-01-12 Glenn Morris <rgm@gnu.org>
9263
9264 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9265 bug-gnu-emacs rather than emacs-pretest-bug.
9266
4d03ece0
CY
92672010-01-11 Chong Yidong <cyd@stupidchicken.com>
9268
9269 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9270 initializing the Lisp variables that depend on them.
9271
1df47e38
YM
92722010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9273
9274 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9275 Clear areas that will not be updated after change of menu bar lines.
9276 Clear the menu bar window's current matrix when the window gets empty.
9277
2f1c6384
CY
92782010-01-09 Chong Yidong <cyd@stupidchicken.com>
9279
e398c61c
CY
9280 * intervals.h, textprop.c (extend_property_ranges): Return value
9281 and args changed. Discard properties that begin at or after the
9282 new end (Bug#5306).
9283
9284 * editfns.c (Fformat): Caller changed.
9285
e5a29a10
CY
9286 * nsterm.m (ns_set_default_prefs): Delete function.
9287 (syms_of_nsterm): Initialize ns_command_modifier,
9288 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9289 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9290
2f1c6384
CY
9291 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9292 position (Bug#4040).
9293
d427a9fa
EZ
92942010-01-09 Eli Zaretskii <eliz@gnu.org>
9295
9296 * editfns.c (Ffloat_time): Doc fix.
9297
21b9df2f
JD
92982010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9299
9300 * xfns.c (Fx_create_frame): Don't create frame larger than display
9301 by default bug#3643.
9302
4b00d3b1
YM
93032010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9304
9305 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9306 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9307 windows above internal border.
9308
9309 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9310 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9311 windows above internal border.
9312
9313 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9314 tool bar windows specially.
9315
9316 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9317
9318 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9319 specially.
9320 (XTflash): Take account of menu bar height.
9321
9322 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9323 specially.
9324
5075d853
JD
93252010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9326
ac146f82 9327 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
9328 also be true before we can return early (bug #5339).
9329
474217c8
CY
93302010-01-06 David Reitter <david.reitter@gmail.com>
9331
9332 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9333 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9334 (Bug#3233).
9335
c0e6d47d
JD
93362010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9337
d0cf45b7
JD
9338 * font.c (font_open_entity): Enable chache and call cached_font_ok
9339 for the driver if defined.
9340 (QCuser_spec): New symbol.
9341 (font_spec_from_name): Save name as user-spec.
9342 (font_load_for_lface): Keep user-spec instead of name.
9343 (font_open_by_name): Save name as user-spec.
9344 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 9345 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
9346
9347 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9348 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9349 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9350
9351 * font.h (struct font_driver): Add cached_font_ok.
9352
c0e6d47d
JD
9353 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9354
7c583cd8
JD
93552010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9356
9357 * xterm.c (x_new_font): Move code for setting rows/cols before
9358 resizing ...
ac146f82 9359 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
9360
9361 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
9362 (xg_frame_resized, xg_frame_set_char_size):
9363 Call xg_clear_under_internal_border.
7c583cd8 9364 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 9365
03f77f0a
CY
93662010-01-05 Chong Yidong <cyd@stupidchicken.com>
9367
9368 * keyboard.c (read_key_sequence): Catch keyboard switch after
9369 making a new tty frame (Bug#5095).
9370
2a1ef5be
KH
93712010-01-05 Kenichi Handa <handa@m17n.org>
9372
9373 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9374
e3eb1dae
SM
93752010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9376
9377 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9378 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9379 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9380
777013f2
MA
93812010-01-03 Michael Albinus <michael.albinus@gmx.de>
9382
9383 * dbusbind.c (xd_add_watch): Improve debug message.
9384 (xd_remove_watch): Improve debug message. If DATA is the session
9385 bus, unset D-Bus session environment.
9386 (Fdbus_init_bus): Pass the bus as argument to
9387 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 9388
8932b1c2
CY
93892010-01-01 Chong Yidong <cyd@stupidchicken.com>
9390
87231e2c
CY
9391 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9392
4801c5fa
CY
9393 * lread.c (syms_of_lread): Make it clearer that these are the
9394 names of loaded files (Bug#5068).
9395
8932b1c2
CY
9396 * eval.c (run_hook_with_args): Handle the case where the global
9397 value has the obsolete single-function form (Bug#5026).
9398
11e3c684
CY
93992009-12-27 Chong Yidong <cyd@stupidchicken.com>
9400
9401 * minibuf.c (Fall_completions): Minor optimization.
9402
5b28ce35
EZ
94032009-12-26 Eli Zaretskii <eliz@gnu.org>
9404
5ce6e4f4
JB
9405 * .gdbinit (pgx): Fix display of composite glyphs.
9406 Display cmp.from and cmp.to as well.
9407 (pitx): Fix last change.
5b28ce35 9408
bcffff46
KH
94092009-12-25 Kenichi Handa <handa@m17n.org>
9410
9411 * composite.h (composition_adjust_point): Update prototype.
9412
9413 * composite.c (composition_reseat_it): Don't make a composition
9414 spanning over point.
9415 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9416 composable characters.
9417 (composition_adjust_point): New arg NEW_PT. Callers changed.
9418
9419 * keyboard.c (command_loop_1): Force redisplay if the last point
9420 was within a composition.
9421 (adjust_point_for_property): Don't adjust point for automatic
9422 composition when called after buffer modification.
9423
3f670e9a
EZ
94242009-12-19 Eli Zaretskii <eliz@gnu.org>
9425
5ce6e4f4
JB
9426 * .gdbinit (pitx): Don't use enum names, use their values.
9427 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
9428 (pgx): Don't use enum names, use their values.
9429 (pitmethod): New helper command.
9430 (pitx): Use it to display iteration method.
9431 (pgrowit): New command.
9432
ad903955
EZ
9433 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9434
3f670e9a
EZ
9435 Update dependencies in Makefile.in.
9436
9437 * Makefile.in (alloc.o): Depend on termhooks.h.
9438 (atimer.o): Depend on blockinput.h.
9439 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9440 and frame.h.
9441 (callint.o): Depend on systime.h, coding.h, and composite.h.
9442 (callproc.o): Depend on buffer.h.
9443 (casefiddle.o): Don't depend on charset.h.
9444 (casetab.o): Depend on character.h.
9445 (ccl.o): Depend on composite.h.
9446 (chartab.o): Depend on ccl.h.
9447 (cm.o): Depend on dispextern.h.
9448 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9449 (coding.o): Don't depend on $(INTERVALS_H).
9450 (composite.o): Don't depend on dispextern.h explicitly (it's in
9451 $(INTERVALS_H)). Depend on ccl.h.
9452 (data.o): Depend on systime.h, coding.h, composite.h,
9453 dispextern.h, font.h, and ccl.h.
9454 (dired.o): Depend on composite.h.
9455 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9456 composite.h (it's in $(INTERVALS_H)).
9457 (doc.o): Depend on systime.h, coding.h, and composite.h.
9458 (editfns.o): Don't depend explicitly on dispextern.h.
9459 (emacs.o): Depend on frame.h and coding.h.
9460 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9461 (fileio.o): Depend on frame.h and commands.h. Don't depend
9462 explicitly on dispextern.h.
9463 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9464 composite.h.
9465 (fns.o): Don't depend on termhooks.h.
9466 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9467 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9468 coding.h, $(INTERVALS_H), window.h, xterm.h.
9469 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9470 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9471 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9472 fontset.h, ccl.h, and ftfont.h.
9473 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9474 (gtkutil.o): Depend on dispextern.h and composite.h.
9475 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9476 termhooks.h, and ccl.h.
9477 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9478 (intervals.o): Depend on systime.h and coding.h.
9479 (keyboard.o): Depend on composite.h and coding.h.
9480 (keymap.o): Depend on coding.h and frame.h.
9481 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9482 (macros.o): Depend on systime.h, coding.h, and composite.h.
9483 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9484 and atimer.h.
9485 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9486 dispextern.h explicitly.
0b5397c2
SM
9487 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9488 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
9489 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9490 (regex.o): Don't depend on charset.h.
9491 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9492 (search.o): Don't depend explicitly on composite.h.
9493 (sound.o): Depend on atimer.h and systime.h.
9494 (syntax.o): Don't depend explicitly on composite.h.
9495 (sysdep.o): Depend on coding.h and composite.h.
9496 (term.o): Depend on xterm.h and buffer.h.
9497 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9498 (textprop.o): Don't depend on dispextern.h explicitly.
9499 (undo.o): Depend on dispextern.h.
9500 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9501 dispextern.h and composite.h explicitly.
9502 (xdisp.o): Depend on ccl.h.
9503 (xfaces.o): Depend on coding.h and ccl.h.
9504 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9505 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9506 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9507 ftfont.h.
9508 (xgselect.o): New dependency.
9509 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9510 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9511 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9512 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9513 (xsmfns.o): Depend on frame.h and dispextern.h.
9514 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9515 sysselect.h.
9516
7a6f7fea
AS
95172009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9518
9519 * font.c (Fclear_font_cache): Pass correct cache argument to
9520 font_clear_cache.
9521
f4c21026
AS
95222009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9523
9524 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9525 twice.
9526
f7ab0997
CY
95272009-12-15 Chong Yidong <cyd@stupidchicken.com>
9528
9529 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9530 calling file-remote-p. Reported by Jim Meyering.
9531
fa8e045a
MA
95322009-12-15 Michael Albinus <michael.albinus@gmx.de>
9533
9534 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 9535 avoid compiler warnings. (Bug #5217)
fa8e045a 9536
a63dba42
KH
95372009-12-14 Kenichi Handa <handa@m17n.org>
9538
9539 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9540 in 8-bit encoding.
9541
5ce6e4f4 95422009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
9543
9544 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9545 tooltip windows.
9546
223e5fc6
JD
95472009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9548
36acb2a7
JD
9549 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9550 Xatom_net_window_type.
9551
9552 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9553 Xatom_net_window_type.
9554
b8f00677
JD
9555 * xterm.c (my_log_handler): New function.
9556 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 9557 so we can filter out buggy messages. (Bug #5120).
b8f00677 9558
e5f0bc9a
JD
9559 * xterm.c (xg_scroll_callback): Parameter list changed,
9560 use parameter GtkScrollType to determine scroll/line/page.
9561 Only allow dragging if a button < 4 is grabbed (bug #5177).
9562 (xg_end_scroll_callback): New function.
9563 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9564 xg_create_scroll_bar.
9565
9566 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9567 (scroll_end_callback): Remove.
9568 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9569 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 9570 bug #5177.
e5f0bc9a
JD
9571 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9572 bug #5177.
9573
9574 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9575 (xg_create_scroll_bar): Add GCallback end_callback.
9576
223e5fc6
JD
9577 * xftfont.c (QClcdfilter): New variable.
9578 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9579 (syms_of_xftfont): Initialize QClcdfilter.
9580
3c055b77
JD
95812009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9582
9583 * xsettings.c (struct xsettings): Add member seen.
9584 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 9585 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
9586 (apply_xft_settings): Only update Xft settings with what member seen
9587 indicates as new.
9588
05fe33ff
EZ
95892009-12-12 Eli Zaretskii <eliz@gnu.org>
9590
c4cc8b9a 9591 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
9592 (struct glyph): Use EMACS_INT for charpos.
9593 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9594 region_beg_charpos, region_end_charpos,
9595 redisplay_end_trigger_charpos, and also for
9596 iterator_stack_entry.end_charpos and
9597 iterator_stack_entry.stop_charpos.
9598
e8d7886a
JD
95992009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9600
5ce6e4f4 9601 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
9602 (xg_create_scroll_bar): Call scroll_end_callback on button release
9603 event (bug #5177).
9604 (xg_event_is_for_scrollbar): != replaced with ==.
9605
d0db2ec8
KH
96062009-12-12 Kenichi Handa <handa@m17n.org>
9607
9608 * ftfont.c (struct ftfont_info): New member matrix.
9609 (ftfont_open): Setup xftfont_info->matrix.
9610 (MFLTFontFT): New member matrix.
9611 (FLOOR, CEIL, ROUND): New macros.
9612 (ftfont_get_metrics): Handle matrix transformation.
9613 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9614
9615 * xftfont.c (struct xftfont_info): New member matrix.
9616 (xftfont_open): Setup xftfont_info->matrix.
9617
96182009-12-10 Kenichi Handa <handa@m17n.org>
9619
9620 * xdisp.c (append_space_for_newline): Consider face-remapping.
9621
2cc7b62f
AS
96222009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9623
b87dd913
AS
9624 * xsettings.c: Include "keyboard.h".
9625
eba5eb94
AS
9626 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9627
2cc7b62f
AS
9628 Fix implicit function declarations.
9629 * cmds.c: Include "frame.h".
9630 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9631 * frame.h: Move declaration of delete_frame outside of
9632 HAVE_WINDOW_SYSTEM.
9633
a4ef73c8
CY
96342009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9635
9636 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9637
9638 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9639 GTK builds.
9640
944a300c
AS
96412009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9642
9643 * unexelf.c (unexec): Don't search for .data twice.
9644
022eef62
CY
96452009-12-05 Chong Yidong <cyd@stupidchicken.com>
9646
426ac949
CY
9647 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9648 if push failed.
9649 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9650 of push_display_prop (Bug#5000).
9651
022eef62
CY
9652 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9653 value of font_list_entities (Bug#5085).
9654
be95bee9
JB
96552009-12-04 Juanma Barranquero <lekktu@gmail.com>
9656
9657 Fix `string-to-number' to deal consistently with integers and floats.
9658 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9659 trailing characters, not just whitespace.
9660 (read1): Pass new arg 0 to keep old behavior.
9661 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9662 trailing chars, as it is already done for integers. Doc fixes.
9663 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9664
24c2d7ce
EZ
96652009-12-04 Eli Zaretskii <eliz@gnu.org>
9666
0b5397c2
SM
9667 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9668 Delete unused enumeration value.
24c2d7ce 9669
7e694795
EZ
96702009-12-03 Eli Zaretskii <eliz@gnu.org>
9671
9672 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9673
84b31826
SM
96742009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9675
9676 * process.c (Fmake_network_process): Fix up the tests for
9677 "connectionless socket", so they DTRT for seqpacket sockets as well.
9678
f00c449b
SM
96792009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9680
9681 * process.c (Qseqpacket): New symbol.
9682 (HAVE_SEQPACKET): New macro.
9683 (Fmake_network_process): Accept new :type `seqpacket'.
9684 (init_process): Add `seqpacket' feature when applicable.
9685 (syms_of_process): Initialize Qseqpacket.
9686
8096a0ff
YM
96872009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9688
9689 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9690 if entity is Qnil.
9691
3e0de07f
SM
96922009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9693
9694 * print.c (print_preprocess): Preprocess the key_and_value table of
9695 hashtables, even tho they're "hidden" (bug#5082).
9696
abeafb2a
JD
96972009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9698
9699 * frame.c (frame_make_pointer_invisible)
9700 (frame_make_pointer_visible): Declare f before statements.
9701
4bf47195
EZ
97022009-11-28 Eli Zaretskii <eliz@gnu.org>
9703
9704 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9705 omitted dependencies on lisp.h.
9706
c525b3f2
JD
97072009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9708
ece2d4ed
JD
9709 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9710 is NULL.
9711
9712 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9713
9714 * frame.c (frame_make_pointer_invisible)
3e0de07f 9715 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
9716 frame.
9717
c525b3f2
JD
9718 * search.c (simple_search): Remove warning by making *p const.
9719
2f00e299
DN
97202009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9721
9722 * xdisp.c (power_letter): Remove duplicate const.
9723
084b049b
JD
97242009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9725
a1fadc6f
JD
9726 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9727
5ce6e4f4 9728 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
9729 defaults (bug #5025).
9730
28259cac
SM
97312009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9732
9733 * insdel.c (adjust_markers_for_delete): Move it in the
9734 right direction! (bug#4803)
9735
e8e14166
YM
97362009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9737
9738 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9739
9740 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9741
86677b58
GM
97422009-11-24 Glenn Morris <rgm@gnu.org>
9743
9744 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9745
581e51e8
JD
97462009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9747
cfc86c7a
JD
9748 * Makefile.in: Must create deps for ecrt0.o in its rule.
9749
581e51e8
JD
9750 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9751 because that is what Gtk+ font dialog understands.
9752
9753 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9754 of Fcopy_sequence.
9755 (font_open_by_name): Put name given into QCname for font-object returned.
9756
9757 * frame.c (x_set_font): Save original font name as frame parameter
9758 font-parameter.
9759
9760 * xsettings.c (set_default_xft_settings): New function.
9761 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9762 is found.
9763
8b264ecb
AS
97642009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9765
9766 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9767 searching backwards through multibyte buffer.
9768
872870b2
JD
97692009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9770
9771 * xterm.c: #include xgselect.h.
9772 (x_initialize): Call xgselect_initialize.
9773
9774 * xsettings.c (something_changedCB): C++ comments => C comments.
9775 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9776 does that now.
9777
9778 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9779 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9780 (scroll_bar_button_cb): Remove.
5ce6e4f4 9781 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
9782 event.
9783 (xg_create_scroll_bar): Don't bind button-press-event and
9784 button-release-event.
9785
9786 * process.c: Include xgselect.h if defined (USE_GTK) ||
9787 defined (HAVE_GCONF).
9788 (wait_reading_process_output): Call xg_select for the same condition.
9789
9790 * xgselect.c (xg_select): New function to better integrate with
9791 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9792
9793 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9794
9795 * Makefile.in (XOBJ): Add xgselect.o.
9796
62a6e103
AS
97972009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9798
0b5397c2
SM
9799 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9800 Remove ignored second argument. All callers changed.
62a6e103
AS
9801 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9802 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9803 * xdisp.c (string_char_and_length): Likewise.
9804
b0ca0f33
DN
98052009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9806
9807 * xterm.c (x_new_font):
9808 * print.c (print_object):
9809 * cmds.c (Fself_insert_command): Move declarations before statements.
9810
dd5a6279
CY
98112009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9812
9813 * s/cygwin.h: Remove unneeded linker flags.
9814
4a8e097d
JD
98152009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9816
0d1d0d26
JD
9817 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9818
9819 * xsettings.h: Declare xsettings_get_system_font.
9820
9821 * xsettings.c (xsettings_get_system_font): New function.
9822 (init_gconf): No use initiating gconf unless we have Xft also.
9823 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9824 HAVE_GCONF.
9825
4a8e097d
JD
9826 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9827 add a blank entry so it doesn't collapse into nothing.
9828
8ab1650e
SM
98292009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9830
9831 * lread.c (Funintern): Comment out last change.
9832
82c602f0
RS
98332009-11-19 Richard Stallman <rms@gnu.org>
9834
9835 * lread.c (Funintern): Error if symbol is t or nil.
9836
87e32266
SM
98372009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9838
9839 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9840 representation of Lisp integers.
9841 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9842
1b9ac145
AS
98432009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9844
9845 * lisp.h: Remove declaration of Ffont_get_system_font.
9846 * xfns.c: Move include of "xsettings.h".
9847 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9848
dfb3c4c6
JD
98492009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9850
87e32266
SM
9851 * xsettings.c (something_changedCB, Ffont_get_system_font):
9852 Check use_system_font.
dfb3c4c6
JD
9853 (syms_of_xsettings): DEFVAR font-use-system-font.
9854
9370c1d8
AS
98552009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9856
25fe851a
AS
9857 * xfns.c (x_default_font_parameter): Remove dead assignment.
9858
9370c1d8
AS
9859 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9860
637fa988
JD
98612009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9862
87e32266 9863 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 9864 not have FC_LCD_*. #define them if not there.
a6eb20d8 9865
87e32266 9866 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 9867
637fa988
JD
9868 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9869
9870 * xterm.c (handle_one_xevent): Call xft_settings_event for
9871 ClientMessage, PropertyNotify and DestroyNotify.
9872 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9873 Call xsettings_initialize.
9874
9875 * xftfont.c (xftfont_fix_match): New function.
9876 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9877 Call xftfont_fix_match after XftFontMatch.
9878
9879 * xfont.c (xfont_driver): Initialize all members.
9880
87e32266
SM
9881 * xfns.c (x_default_font_parameter):
9882 Try font from Ffont_get_system_font.
637fa988
JD
9883 Do not get font from x_default_parameter if we got one from
9884 Ffont_get_system_font.
87e32266 9885 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
9886
9887 * w32font.c (w32font_driver): Initialize all members.
9888
9889 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9890
9891 * lisp.h: Declare syms_of_xsettings.
9892
87e32266
SM
9893 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9894 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
9895
9896 * ftfont.c (ftfont_filter_properties): New function.
9897
9898 * frame.c (x_set_font): Remove unused variable lval.
9899
87e32266 9900 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
9901
9902 * font.c (font_put_extra): Don't return if val is nil, it means
9903 boolean option is off.
9904 (font_parse_fcname): Collect all extra properties in extra_props
9905 and call filter_properties for all drivers with extra_props and
9906 font as parameter.
87e32266
SM
9907 (font_open_entity): Do not use cache, it does not pick up new
9908 fontconfig settings like hinting.
637fa988
JD
9909 (font_load_for_lface): If spec had a name in it, store it in entity.
9910
a73f9c9d 9911 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
9912
9913 * config.in: HAVE_GCONF is new.
9914
9915 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9916 xsettings.o is new.
9917
5a942932
KH
99182009-11-17 Kenichi Handa <handa@m17n.org>
9919
9920 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9921 back to the default font in case that no suitable font is found.
9922
b7c7a4d1
SM
99232009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9924
9925 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9926 Suggested by Chad Brown <yandros@mit.edu>.
9927 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9928
072f1e39
JD
99292009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9930
9931 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9932
5d1e70a2
AS
99332009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9934
87e32266 9935 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 9936
a53cfbe5
JD
99372009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9938
473a99b7
JD
9939 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9940 has a parent.
9941
a53cfbe5 9942 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 9943 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
9944
9945 * config.in: Generated (AUTO_DEPEND).
9946
f04bb9b2
MA
99472009-11-13 Michael Albinus <michael.albinus@gmx.de>
9948
b7c7a4d1 9949 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
9950 Vdbus_registered_functions_table, because it contains also
9951 properties. Fix docstring.
b7c7a4d1 9952 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 9953
8f11f7ec
SM
99542009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9955
9956 * alloc.c (mark_object): Don't reprocess marked strings.
9957 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9958 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9959
8a605fe8
KH
99602009-11-13 Kenichi Handa <handa@m17n.org>
9961
8f11f7ec 9962 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
9963 semantics of Vword_combining_categories.
9964 (Vword_combining_categories): Describe the slight change of the
9965 semantics.
9966
241c4680
EZ
99672009-11-13 Eli Zaretskii <eliz@gnu.org>
9968
9969 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9970
9971 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9972
5d58e44c
SM
99732009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9974
9975 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9976
5e13f9d3
JB
99772009-11-12 Juanma Barranquero <lekktu@gmail.com>
9978
9979 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9980
cf54c754
DR
99812009-11-11 David Reitter <david.reitter@gmail.com>
9982
9983 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9984 variables to fix 2009-11-09 change.
9985
a4ada374
DN
99862009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9987
91433552
DN
9988 * process.c (ifflag_def): Make flag_sym constant.
9989 (Fnetwork_interface_info): Use a constant pointer.
9990 (ifflag_table):
9991 * xfns.c (cursor_bits):
9992 * xdisp.c (power_letter):
9993 * termcap.c (speeds, esctab):
9994 * sysdep.c (baud_convert):
9995 * keyboard.c (lispy_accent_codes, modifier_names):
9996 * image.c (xbm_format, xpm_format, pbm_format, png_format)
9997 (jpeg_format, tiff_format, gif_format, svg_format)
9998 (interlace_start, interlace_increment, gs_format):
9999 * gtkutil.c (separator_names):
10000 * fringe.c (swap_nibble):
10001 * fns.c (base64_value_to_char, base64_char_to_value):
10002 * fileio.c (make_temp_name_tbl):
10003 * coding.c (suffixes): Make constant.
10004
f4265f6c
DN
10005 * frame.c (make_initial_frame):
10006 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
10007 build_string.
10008 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
10009
04420943
DN
10010 * s/freebsd.h:
10011 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
10012
0a5d24ae
DN
10013 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
10014 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
10015
a4ada374
DN
10016 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
10017 * xterm.c (syms_of_xterm):
10018 * xfaces.c (syms_of_xfaces):
10019 * xdisp.c (syms_of_xdisp):
10020 * lread.c (syms_of_lread):
10021 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
10022 build_string.
91433552 10023
a4ada374
DN
10024 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
10025
af98fc7f
SM
100262009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10027
8ab1650e 10028 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 10029
e90292a9
JD
100302009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10031
10032 * keyboard.h: Declare timer_check.
10033
10034 * keyboard.c (timer_check_2): New function that does what the old
10035 timer_check did.
10036 (timer_check): Call timer_check_2 until -1 or a non-zero time is
10037 returned, i.e. don't return -1 with timers pending.
10038
10039 * process.c: Remove extern declaration of timer_check.
10040
10041 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
10042 even if timer_check returned -1.
10043
af98fc7f
SM
10044 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
10045 xg_dialog_data.
e90292a9
JD
10046 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
10047 the event loop.
10048 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
10049 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
10050 Destroy the dialog after xg_dialog_run.
10051
045b83c0
SM
100522009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10053
10054 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10055
1fb99a3a
JD
100562009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10057
10058 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10059
04e452cb
JB
100602009-11-09 Juanma Barranquero <lekktu@gmail.com>
10061
10062 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10063
ef7417fd
SM
100642009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10065
10066 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10067 w32menu.c, and nsmenu.m.
10068 Simplify the obsolete case where position is nil.
10069 (cleanup_popup_menu): New function, moved from nsmenu.m.
10070 (struct skp): Remove slot `notreal'.
10071 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10072 adjust callers.
10073 (single_menu_item): Adjust call to parse_menu_item.
10074 (syms_of_menu): Defsubr x-popup-menu.
10075 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10076 (keymap_panes): Don't export any more.
10077 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10078 (xmenu_show): Declare.
10079 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10080 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10081 * keyboard.h (parse_menu_item): Update declaration.
10082 * xmenu.c (Fx_popup_menu): Remove.
10083 (syms_of_xmenu): Don't defsubr x-popup-menu.
10084 * w32menu.c (Fx_popup_menu): Remove.
10085 (syms_of_w32menu): Don't defsubr x-popup-menu.
10086 * nsmenu.m (cleanup_popup_menu): Remove.
10087 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10088 moved to menu.c's Fx_popup_menu.
10089 (Fx_popup_menu): Remove.
10090 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10091 menu_items (it's done in menu.c already).
10092
424d6179
SM
100932009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10094
10095 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10096 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10097
c0df13a6 100982009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
10099
10100 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 10101 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
10102 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10103 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10104
2de9f71c
SM
101052009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10106
10107 Let integers use up 2 tags to give them one extra bit and thus double
10108 their range.
10109 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10110 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10111 New macros.
10112 (enum Lisp_Type): Use them. Give explicit values.
10113 (Lisp_Type_Limit): Remove.
10114 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10115 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10116 Pay attention to USE_2_TAGS_FOR_INTS.
10117 (INTEGERP): Use LISP_INT_TAG_P.
10118 * fns.c (internal_equal): Simplify the default case.
10119 (sxhash): Use case_Lisp_Int.
10120 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10121 any more.
10122 (Ftype_of): Use case_Lisp_Int.
10123 (store_symval_forwarding): Take into account the fact that Ints can
10124 now have more than one tag.
10125 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 10126 (buffer_slot_type_mismatch):
2de9f71c
SM
10127 * xfaces.c (face_attr_equal_p):
10128 * print.c (print_object):
10129 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10130 Use case_Lisp_Int.
10131
323637a2
EZ
101322009-11-06 Eli Zaretskii <eliz@gnu.org>
10133
7ac65b38
EZ
10134 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10135
323637a2
EZ
10136 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10137 warning.
10138
e511451f
JD
101392009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10140
10141 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10142
10143 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10144
10145 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10146 ButtonPressRelease and MotionNotify (bug#4870).
10147
5e2327cf
DN
101482009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10149
5adc433e
DN
10150 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10151
d67b4f80
DN
10152 * xterm.c (syms_of_xterm):
10153 * xselect.c (syms_of_xselect):
10154 * xmenu.c (syms_of_xmenu):
10155 * xfns.c (syms_of_xfns):
10156 * xfaces.c (syms_of_xfaces):
10157 * xdisp.c (syms_of_xdisp):
10158 * window.c (syms_of_window):
10159 * w32fns.c (syms_of_w32fns):
10160 * undo.c (syms_of_undo):
10161 * textprop.c (syms_of_textprop):
10162 * terminal.c (syms_of_terminal):
10163 * syntax.c (syms_of_syntax):
10164 * sound.c (syms_of_sound):
10165 * search.c (syms_of_search):
10166 * print.c (syms_of_print):
10167 * minibuf.c (syms_of_minibuf):
10168 * macros.c (syms_of_macros):
10169 * keymap.c (syms_of_keymap, initial_define_key)
10170 (initial_define_lispy_key):
10171 * keyboard.c (syms_of_keyboard):
10172 * insdel.c (syms_of_insdel):
10173 * image.c (syms_of_image):
10174 * fringe.c (syms_of_fringe):
10175 * frame.c (syms_of_frame):
10176 * fontset.c (syms_of_fontset):
10177 * fns.c (syms_of_fns):
10178 * fns.c (syms_of_fns):
10179 * fileio.c (syms_of_fileio):
10180 * fileio.c (syms_of_fileio):
10181 * eval.c (syms_of_eval):
10182 * doc.c (syms_of_doc):
10183 * dispnew.c (syms_of_display):
10184 * dired.c (syms_of_dired):
10185 * dbusbind.c (syms_of_dbusbind):
10186 * data.c (syms_of_data):
10187 * composite.c (syms_of_composite):
10188 * coding.c (syms_of_coding):
10189 * cmds.c (syms_of_cmds):
10190 * charset.c (define_charset_internal, syms_of_character):
10191 * ccl.c (syms_of_ccl):
10192 * category.c (syms_of_category, init_category_once):
10193 * casetab.c (syms_of_casetab):
10194 * casefiddle.c (syms_of_casefiddle):
10195 * callint.c (syms_of_callint):
10196 * bytecode.c (syms_of_bytecode):
10197 * buffer.c (keys_of_buffer, syms_of_buffer):
10198 * alloc.c (syms_of_alloc):
10199 * process.c (syms_of_process, init_process):
10200 * lread.c (syms_of_lread, init_obarray):
10201 * font.c (build_style_table):
10202 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10203 intern_c_string, calls to make_pure_string with
10204 make_pure_c_string. Use pure_cons instead of Fcons.
10205
5e2327cf
DN
10206 * process.c (socket_options): Make it const.
10207 (set_socket_option, init_process): Use a const pointer.
10208
10209 * lread.c (intern_c_string): New function.
10210 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10211 (defvar_int): Uset it. Make the name const char*.
10212
10213 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10214 (defvar_int): Update prototypes.
10215 (DEFUN, EXFUN): Support for prototypes is now required.
10216 (intern_c_string): New prototype.
10217 (struct Lisp_Subr): Make symbol_name constant.
10218
10219 * font.c (struct table_entry): Remove unused member. Make NAMES
10220 constant.
10221 (weight_table, slant_table, width_table): Make constant.
10222
10223 * emacs.c (struct standard_args): Make name and longname constant.
10224
10225 * character.h (DEFSYM): Use intern_c_string.
10226
a56eaaef
DN
102272009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10228
10229 * alloc.c (make_pure_c_string): New function.
10230
10231 * eval.c (Fautoload): Purecopy all arguments.
10232
f6a07420
KH
102332009-11-05 Kenichi Handa <handa@m17n.org>
10234
10235 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10236 the buffer in case of replace.
10237
5d28d4b1
DN
102382009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10239
10240 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10241
b349d111
SM
102422009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10243
d528b1ce
SM
10244 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10245 when applicable (bug#4851).
10246
b349d111
SM
10247 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10248 (P_): Support for prototypes is now required.
10249
c38eb027
CY
102502009-10-31 Chong Yidong <cyd@stupidchicken.com>
10251
10252 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10253 (Bug#4827).
10254
0405f8d9
EZ
102552009-10-30 Eli Zaretskii <eliz@gnu.org>
10256
d528b1ce 10257 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 10258
ca0a881a
DN
102592009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10260
10261 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10262
d528b1ce
SM
10263 * lread.c (Fload): Purecopy the file name when building
10264 Vpreloaded_file_list.
ca0a881a 10265
47e0e0e4
JR
102662009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10267
10268 * w32fns.c (syms_of_w32fns): Change default value of
10269 w32-scroll-lock-modifier to nil. (Bug#2827)
10270
057bce6f
JB
102712009-10-26 Juanma Barranquero <lekktu@gmail.com>
10272
782a943e 10273 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 10274
242bc74c
AS
102752009-10-26 Andreas Schwab <schwab@redhat.com>
10276
10277 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10278
522d013a
JB
102792009-10-26 Juanma Barranquero <lekktu@gmail.com>
10280
10281 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10282 For delta < 0, skip check that only makes sense when the mini-window
10283 is going to be enlarged. (Bug#4534)
10284
18060980
CY
102852009-10-25 Chong Yidong <cyd@stupidchicken.com>
10286
10287 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10288 string in menu maps (Bug#4471).
10289
fec8f0fe
CY
102902009-10-24 Chong Yidong <cyd@stupidchicken.com>
10291
10292 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10293 FRAME_NS_VIEW on terminal frames (Bug#4765).
10294
10d66ec0
AS
102952009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10296
1cae01f7
AS
10297 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10298 DBUS_TYPE_UINTnn separately to get proper sign extension.
10299
58a12889
AS
10300 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10301 can properly handle unsigned types.
d528b1ce 10302 (make_uid, make_gid): Remove.
58a12889 10303
987c9327
AS
10304 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10305 types again.
10306
522d013a 10307 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
10308 (system_process_attributes): Likewise.
10309
905a9ed3
DN
103102009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10311
10312 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10313
10314 * eval.c (Fautoload): Purecopy the filename. Simplify.
10315
10316 * category.c (Fdefine_category): Purecopy docstring.
10317
a599b3e8
AS
103182009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10319
7b792fc9
AS
10320 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10321
a599b3e8
AS
10322 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10323
b35ac83e
CY
103242009-10-23 Chong Yidong <cyd@stupidchicken.com>
10325
10326 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10327 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10328 (Bug#4775).
10329
e8903e00
SM
103302009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10331
10332 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10333 (init_fileio_once):
10334 * lisp.h (init_fileio_once): Remove.
10335 * emacs.c (main): Don't call init_fileio_once.
10336
8f43cbf3
DN
103372009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10338
10339 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10340
26898943
AS
103412009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10342
10343 * doprnt.c (doprnt): Fix overflow check.
10344
5c646d5a
JD
103452009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10346
3132a7ea
JD
10347 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10348
5c646d5a
JD
10349 * xterm.h (x_wait_for_event): Declare it.
10350
10351 * xterm.c (pending_event_wait): New variable.
10352 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10353 see pending_event_wait.eventtype.
10354 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
10355 (x_new_font): Call change_frame_size with new rows/columns before we
10356 try to resize the frame.
5c646d5a 10357 (x_wait_for_event): New function.
d528b1ce
SM
10358 (x_set_window_size_1): Don't change gravity unless change_gravity
10359 is set.
5c646d5a
JD
10360 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10361 don't change frame size, instead wait for the ConfigureNotify.
10362 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10363 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10364 (x_initialize): Initialize pending_event_wait.
10365
10366 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10367 size.
10368
10369 * widget.c (EmacsFrameSetValues): Add comment.
10370 (EmacsFrameSetCharSize): Just call x_set_window_size.
10371
10372 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10373 x_wait_for_event.
d528b1ce 10374 (flush_and_sync): Remove again.
5c646d5a
JD
10375 (xg_get_font_name): Suggest monospace if no previous font is known.
10376
e9c1637d
SM
103772009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10378
10379 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 10380 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 10381
5a72cccb
YM
103822009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10383
10384 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10385 processing pending events when event is filtered for input method.
ab04798f 10386 (Bug#3681)
5a72cccb 10387
2629aa37
JB
103882009-10-20 Juanma Barranquero <lekktu@gmail.com>
10389
10390 * fns.c: Add #endif accidentally removed in previous change.
10391
c3417a74
DN
103922009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10393
10394 * fns.c: Remove code for unsupported system: MAC_OS.
10395 * image.c: Likewise. Include setjmp.h.
10396
9685cef2
JD
103972009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10398
10399 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10400 pixel -1 (bug #4742).
10401
d7306fe6
DN
104022009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10403
019d2c4c
DN
10404 * process.c (create_pty): Remove conditionals for no longer
10405 supported systems: UNIPLUS and RTU.
10406
ee6bacd4
DN
10407 * xterm.c:
10408 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10409
d7306fe6
DN
10410 * alloc.c: Do not define struct catchtag.
10411 * eval.c: Move struct catchtag definition ...
10412 * lisp.h: ... here.
10413
10414 * image.c: Move png.h #include earlier to avoid warnings.
10415
10416 * xterm.c:
10417 * xsmfns.c:
10418 * xselect.c:
10419 * xrdb.c:
10420 * xmenu.c:
10421 * xftfont.c:
10422 * xfont.c:
10423 * xfns.c:
10424 * xfaces.c:
10425 * xdisp.c:
10426 * window.c:
10427 * widget.c:
10428 * w32xfns.c:
10429 * w32uniscribe.c:
10430 * w32term.c:
10431 * w32select.c:
10432 * w32reg.c:
10433 * w32proc.c:
10434 * w32menu.c:
10435 * w32inevt.c:
10436 * w32heap.c:
10437 * w32font.c:
10438 * w32fns.c:
10439 * w32console.c:
10440 * w32.c:
10441 * w16select.c:
10442 * vm-limit.c:
10443 * unexsol.c:
10444 * unexec.c:
10445 * unexcw.c:
10446 * unexaix.c:
10447 * undo.c:
10448 * tparam.c:
10449 * textprop.c:
10450 * terminfo.c:
10451 * terminal.c:
10452 * termcap.c:
10453 * term.c:
10454 * syntax.c:
10455 * sound.c:
10456 * sheap.c:
10457 * search.c:
10458 * scroll.c:
10459 * region-cache.c:
10460 * regex.c:
10461 * ralloc.c:
10462 * process.c:
10463 * print.c:
b024548b
DN
10464 * nsterm.m:
10465 * nsselect.m:
10466 * nsmenu.m:
10467 * nsimage.m:
10468 * nsfont.m:
10469 * nsfns.m:
d7306fe6
DN
10470 * msdos.c:
10471 * minibuf.c:
10472 * menu.c:
10473 * marker.c:
10474 * macros.c:
10475 * keymap.c:
10476 * keyboard.c:
10477 * intervals.c:
10478 * insdel.c:
10479 * indent.c:
10480 * gtkutil.c:
10481 * ftxfont.c:
10482 * ftfont.c:
10483 * fringe.c:
10484 * frame.c:
10485 * fontset.c:
10486 * font.c:
10487 * fns.c:
10488 * floatfns.c:
10489 * filelock.c:
10490 * fileio.c:
10491 * emacs.c:
10492 * editfns.c:
10493 * dosfns.c:
10494 * doprnt.c:
10495 * doc.c:
10496 * dispnew.c:
10497 * dired.c:
10498 * dbusbind.c:
10499 * data.c:
10500 * composite.c:
10501 * coding.c:
10502 * cmds.c:
10503 * cm.c:
10504 * chartab.c:
10505 * charset.c:
10506 * character.c:
10507 * ccl.c:
10508 * category.c:
10509 * casetab.c:
10510 * casefiddle.c:
10511 * callproc.c:
10512 * callint.c:
10513 * bytecode.c:
10514 * buffer.c:
10515 * atimer.c: Include setjmp.h. (Bug#4643)
10516
fd5f21e6
SM
105172009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10518
4c0354d7
SM
10519 Remove leftover table unibyte_to_multibyte_table.
10520 * character.c (unibyte_to_multibyte_table): Remove.
10521 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10522 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10523 * character.h (UNIBYTE_TO_CHAR): New macro.
10524 (MAKE_CHAR_MULTIBYTE): Use it.
10525 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10526 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10527 (message_dolog, set_message_1):
10528 * search.c (Freplace_match):
10529 * editfns.c (Fcompare_buffer_substrings):
10530 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10531 (concat):
10532 * insdel.c (copy_text, count_size_as_multibyte):
10533 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10534 * term.c (produce_glyphs):
10535 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10536 * regex.c (RE_CHAR_TO_MULTIBYTE):
10537 * cmds.c (internal_self_insert):
10538 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10539
fd5f21e6
SM
10540 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10541
4418646e
DN
105422009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10543
10544 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10545
35f5c1d2
JB
105462009-10-16 Juanma Barranquero <lekktu@gmail.com>
10547
10548 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10549
a0cd8f6b
AR
105502009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10551
10552 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10553 still needed under Tiger.
10554
10555 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10556
10557 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10558 __Apple__.
10559
10560 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10561
01a8d3fa
KH
105622009-10-15 Kenichi Handa <handa@m17n.org>
10563
10564 * print.c (print_object): Escape a symbol like "2E10" too.
10565
bf6c75c9 105662009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
10567
10568 Cleanups and changes for 64-bit compile under Snow Leopard.
10569 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
10570
10571 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10572
c5959062 10573 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
10574 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10575 cast argument.
10576 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 10577 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
10578
10579 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10580
10581 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10582 where appropriate.
10583
10584 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10585 where appropriate.
6e4780c5
JB
10586 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10587 Use stringWithUTF8String.
bf6c75c9
AR
10588 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10589
6e4780c5
JB
10590 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10591 Add formal protocol mention to inheritance.
bf6c75c9
AR
10592 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10593
6e4780c5
JB
10594 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10595 Fix printf format.
bf6c75c9
AR
10596 (ns_query_color): Use CGFloat where appropriate.
10597 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 10598 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
10599 argument.
10600
3d87f118
AR
10601 * config.in (NS_HAVE_NSINTEGER): Drop.
10602
a95c8102
AR
10603 * dbusbind.c (dbus-method-return-internal)
10604 (dbus-method-error-internal): Use long format in printf, and cast
10605 argument.
10606
10607 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10608 in printf, and cast argument.
10609
6873acca 10610 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
10611 cast argument.
10612
9ec6f100
GM
106132009-10-11 Glenn Morris <rgm@gnu.org>
10614
10615 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10616
5be883cd
JD
106172009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10618
10619 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10620 menu bar with a small width so it doesn't enlarge the frame.
10621
d7a39b51
JB
106222009-10-08 Juanma Barranquero <lekktu@gmail.com>
10623
10624 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10625
0c2b6f8e
GM
106262009-10-06 Glenn Morris <rgm@gnu.org>
10627
10628 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10629 SOME_MACHINE_LISP (this enters indirectly via DOC).
10630
e02131a2
EZ
106312009-10-05 Eli Zaretskii <eliz@gnu.org>
10632
10633 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10634
b4744254
EZ
106352009-10-04 Eli Zaretskii <eliz@gnu.org>
10636
10637 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10638 Doc fix.
10639
dbf64827
JB
106402009-10-03 Martin Rudalics <rudalics@gmx.at>
10641
10642 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10643
e9a0aef8
MA
106442009-10-02 Michael Albinus <michael.albinus@gmx.de>
10645
d528b1ce 10646 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
10647 used anymore outside fileio.c.
10648
10649 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10650
64eb2b56
JB
106512009-10-01 Juanma Barranquero <lekktu@gmail.com>
10652
10653 * lisp.h (Qdelete_directory_internal):
10654 Declare, instead of Qdelete_directory.
10655
10656 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10657
9d28c33e
SM
106582009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10659
10660 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10661
9d8f3bd9
MA
106622009-10-01 Michael Albinus <michael.albinus@gmx.de>
10663
9d28c33e 10664 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
10665 Fdelete_directory. It is not a command anymore. It has no file
10666 name handler.
10667
9694740b
SM
106682009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10669
10670 * xdisp.c (get_next_display_element): Use an enum in last change.
10671
748e162f
KH
106722009-09-28 Kenichi Handa <handa@m17n.org>
10673
9694740b 10674 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
10675 unibyte_display_via_language_environment in handling
10676 Vnobreak_char_display.
10677
17efd58d
AR
106782009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10679
10680 * nsterm.h (ns_app_name): New extern variable.
10681
10682 * nsterm.m (ns_app_name): New variable.
10683 (ns_term_init): Set and use it.
10684 (ns_term_shutdown): Use it.
10685
10686 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10687 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10688
10689 * nsfns.m (ns_set_name_iconic, ns_set_name)
10690 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10691 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10692
9694740b
SM
10693 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10694 Remove double-casting in client_data comparison.
31c2d412 10695
3208cb35
YM
106962009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10697
10698 * keyboard.c (make_lispy_event): Remember last wheel direction.
10699 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10700
b7d552d6
GM
107012009-09-26 Glenn Morris <rgm@gnu.org>
10702
10703 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10704 internal.elc. Add term/pc-win.elc.
10705 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10706 term/x-win.elc.
10707 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10708 term/w32-win.elc.
10709 (NS_SUPPORT): New.
10710 (lisp): Add NS_SUPPORT.
10711 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10712
4ff670a8
DR
107132009-09-25 David Reitter <david.reitter@gmail.com>
10714
10715 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10716 on Mac OS X 10.6+ (bug#4513).
10717
feabfb6c
JB
107182009-09-24 Juanma Barranquero <lekktu@gmail.com>
10719
10720 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
10721 some parts of Emacs code (like font selection) don't grok them.
10722 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 10723
de59072a
AS
107242009-09-24 Andreas Schwab <schwab@redhat.com>
10725
10726 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10727
a489517b
JB
107282009-09-24 Juanma Barranquero <lekktu@gmail.com>
10729
10730 * dired.c (Fdirectory_files): Fix typo in docstring.
10731
0592970c
AR
107322009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10733
10734 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10735 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10736 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10737 under GNUstep.
10738 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10739
10740 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10741 glyph advancement.
10742
48e8a88b
AR
107432009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10744
10745 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 10746 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
10747
10748 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10749 deleted (bug #4492).
10750
e14f0a78
AR
10751 * nsfont.m (Vns_reg_to_script): New lisp variable.
10752 (syms_of_nsfont): Declare it.
10753 (ns_registry_to_script): New function.
10754 (ns_get_req_script): Call it.
10755 (ns_findfonts): Don't give up on non-unicode registry.
10756
10757 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10758
5b650faa
SM
107592009-09-20 Tom Tromey <tromey@redhat.com>
10760
10761 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10762 batch mode (bug#4228).
10763
a489517b 107642009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
10765
10766 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 10767 carefully. (Bug #4339)
0bae4e09 10768
fcfe06f3
CY
107692009-09-18 Chong Yidong <cyd@stupidchicken.com>
10770
d798ba87 10771 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 10772
31642728
AR
107732009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10774
10775 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
10776 (main) [HAVE_NS]: Don't process --no-init-file option.
10777 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
10778
10779 * nsterm.h (ns_no_defaults): Remove.
10780
10781 * nsterm.m (ns_no_defaults): Remove.
10782 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10783 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
10784 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10785 don't update the NSWindow itself.
bba3e508
SM
10786 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10787 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
10788
10789 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10790 ns_use_qd_smoothing.
10791
10792 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10793 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 10794 (x-close-connection): Drop PSFlush() under OS X.
a489517b 10795 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 10796
8686ac71
JB
107972009-09-17 Juanma Barranquero <lekktu@gmail.com>
10798
10799 * emacs.c (inhibit_x_resources): New variable.
10800 (main) [HAVE_NS]: Don't process --quick command line option.
10801 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10802
10803 * lisp.h (inhibit_x_resources): Declare it extern.
10804
10805 * w32reg.c (x_get_string_resource):
10806 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10807
e227ba05
EZ
108082009-09-17 Eli Zaretskii <eliz@gnu.org>
10809
362654a6
JB
10810 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10811 Add lisp/term/internal.elc.
e227ba05 10812
742d40e8
SM
108132009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10814
10815 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10816 (bug#4461).
10817
005bd5a2
DN
108182009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10819
10820 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10821
10822 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10823 (OBJECTS_MACHINE): Remove, unused.
10824
f9af9719
SM
108252009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10826
10827 * frame.c (x_get_resource_string): Remove unused.
10828
0307c7d2
JD
108292009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10830
10831 * xterm.c (x_new_font): Call change_frame_size before calling
10832 x_set_window_size, in case frame size won't change.
10833
10834 * frame.c (x_set_font): Remove dead code.
10835
428b13d6
SM
108362009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10837
10838 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10839
5766c380
SM
108402009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10841
10842 * lread.c (Fload): Don't output a message after loading an obsolete
10843 package any more (done in Lisp now).
10844
2fd0161b
CY
108452009-09-12 Chong Yidong <cyd@stupidchicken.com>
10846
10847 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10848
bc5e75b6
SM
108492009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10850
10851 * keymap.c (Fwhere_is_internal): Use nconc2.
10852
c31c985e
AM
108532009-09-11 Alan Mackenzie <acm@muc.de>
10854
10855 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10856 batch mode.
10857
78012bd2
AS
108582009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10859
10860 * xdisp.c (display_mode_element): Detect cycles.
10861
9d889332
SM
108622009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10863
10864 * keymap.c (where_is_internal): Don't erroneously return nil right after
10865 filling the cache.
10866 (where_is_internal_1): Fix up typo.
10867
7ab5d780
GM
108682009-09-11 Glenn Morris <rgm@gnu.org>
10869
10870 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10871 share a common doc-string.
10872
5238a749
SM
108732009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10874
66d77eda
SM
10875 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10876 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10877
5238a749
SM
10878 * keymap.c (QCadvertised_binding): New constant.
10879 (syms_of_keymap): Initialize it.
10880 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10881 if applicable.
10882
19f48442
SM
108832009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10884
50d4ba39
SM
10885 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10886 (parse_menu_item): Streamline since bindings are recomputed all the
10887 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10888 more and don't support lmenu's menu-alias any more either.
10889
a88a5372
SM
10890 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10891 (where_is_internal): Strip it down to only traverse the keymaps.
10892 Move the cache handling from Fwhere_is_internal to here.
10893 (Fwhere_is_internal): Move the handling of remapping and the choice of
10894 the best binding from where_is_internal to here.
10895 Unify the cached/noncached paths, so remapping is also handled
10896 correctly when the cache is used, and so the cache can be used to
10897 speed up remap-handling when applicable.
10898 Give preference to non-remapped bindings.
10899 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10900 non-remapped bindings.
10901 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10902 command remapping.
10903
19f48442
SM
10904 * xdisp.c (display_mode_element): Move list length limit from 50 to
10905 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10906
599498c3 109072009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
10908
10909 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10910
f9b7b5ac
SM
109112009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10912
a53af587
JB
10913 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10914 (Bug#4334)
10915
f9b7b5ac
SM
10916 * keymap.c (where_is_internal): Filter out shadowed remappings.
10917 Assume that where_is_internal returns unshadowed bindings to simplify
10918 the code and get rid of the gotos. Use ASIZE.
10919
04f4b72d
JD
109202009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10921
4da146f2
JD
10922 * xterm.c (x_focus_changed): If we get a focusout and pointer
10923 is invisible, make it visible.
10924
04f4b72d
JD
10925 * xterm.h: Remove condition for declaration of
10926 x_*_window_to_frame.
10927
7cef7ce3
SM
109282009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10929
10930 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10931 initial terminal as well.
10932
a54fa5b7
JD
109332009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10934
10935 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 10936 x_menubar_window_to_frame.
a54fa5b7 10937
50426a04 10938 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
10939 (XTmouse_position): Do not return valid positions
10940 for clicks in the menubar and the toolbar for Gtk+.
10941
10942 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10943 if the widget for the event has the same top level as a frame,
10944 return the frame.
10945 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10946 internal windows, bug #4122.
10947 (x_non_menubar_window_to_frame): Remove.
10948
5a021dd0
GM
109492009-09-02 Glenn Morris <rgm@gnu.org>
10950
10951 * buffer.c (default-major-mode): Move most of the doc from here...
10952 (major-mode): ... to here.
10953
548fe2f3
NR
109542009-08-30 Nick Roberts <nickrob@snap.net.nz>
10955
10956 * process.c (wait_reading_process_output): Keep the descriptor
10957 when pty is used by a non-child process, e.g., in I/O buffer of
10958 GDB this allows inferior to be restarted.
10959
e0840eef
EZ
109602009-08-29 Eli Zaretskii <eliz@gnu.org>
10961
10962 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10963 both branches into one.
10964
82e98df4
SM
109652009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10966
10967 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10968 (main): Use enable-multibyte-characters rather than
10969 default-enable-multibyte-characters. Output a warning message when
10970 running a unibyte session.
10971
890617cb
YM
109722009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10973
10974 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10975 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10976 (copy_data_segment): Also copy __program_vars section.
10977 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10978 (dump_it) [LC_DYLD_INFO]: Use it.
10979
10980 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10981
e7adeadc
EZ
109822009-08-28 Eli Zaretskii <eliz@gnu.org>
10983
10984 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10985 $(SRC)/buildobj.h.
ef1b0ba7 10986 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
10987 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10988 $(SRC)/buildobj.h.
10989 (clean): Add buildobj.h.
10990
3ed8bbdc
TZ
109912009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
10992
10993 * print.c (print_object): Set escapeflag to 1 when printing
10994 hashtable keys and values.
10995
155a6764
SM
109962009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
10997
10998 * lread.c (read_integer): Use doubles (and potentially return a float
10999 number) as we do in string-to-number.
11000 (read1): Use strtol to read integers, signal errors on strtol's
11001 overflow and use floats if strtol's output is too large for
11002 Elisp integers.
11003
877610de
EZ
110042009-08-27 Eli Zaretskii <eliz@gnu.org>
11005
11006 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
11007 (make-buildobj-SH): Fix last change.
11008 (SRC): Move to before where it's first used.
11009
ef73e7be
KH
110102009-08-27 Kenichi Handa <handa@m17n.org>
11011
550c8289
KH
11012 * process.c (send_process): Use encode_coding_object instead of
11013 encode_coding_string to perform eol-conversion even if the string
11014 is unibyte.
11015
60afa08d
KH
11016 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
11017 character.
11018
ef73e7be 11019 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 11020 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 11021
7b3a82d7
DN
110222009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
11023
5654bf63
DN
11024 * callproc.c (Fcall_process): Remove always true #if.
11025
7b3a82d7
DN
11026 * lisp.h: Replace #if 0 code for checking with text pointing to
11027 the --enable-checking configure flag.
11028
11029 * emacs.c (main): Mention the --enable-profiling configure flag
11030 instead of using CFLAGS.
11031
878bde49
KR
110322009-08-26 Ken Raeburn <raeburn@raeburn.org>
11033
11034 * Makefile.in (buildobj.h): New target.
11035 (doc.o): Depend on it.
11036 (temacs${EXEEXT}): Don't generate buildobj.lst.
11037 (mostlyclean): Delete buildobj.h, not buildobj.lst.
11038 * makefile.w32-in ($(SRC)/buildobj.h): New target.
11039 ($(BLD)/doc.$(O)): Depend on it.
11040 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
11041 provided by Eli Zaretskii.)
11042 ($(TEMACS)): Don't generate buildobj.lst.
11043 * doc.c: Include buildobj.h.
11044 (buildobj): New static variable.
11045 (Fsnarf_documentation): Use it, instead of opening and reading
11046 buildobj.lst.
11047
1574224c
MA
110482009-08-25 Michael Albinus <michael.albinus@gmx.de>
11049
11050 * dbusbind.c (Fdbus_call_method)
11051 (Fdbus_call_method_asynchronously): Use English numeric format for
11052 timeout values in doc string.
11053
d9da2f45
KH
110542009-08-25 Kenichi Handa <handa@m17n.org>
11055
ef73e7be
KH
11056 * alloc.c (mark_char_table): New function.
11057 (mark_object): Use mark_char_table for a char-table.
11058
d9da2f45
KH
11059 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11060 (CHAR_TABLE_REF): Use it.
11061
c8edcc01
KR
110622009-08-23 Ken Raeburn <raeburn@raeburn.org>
11063
11064 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11065 before invoking the newly build emacs to check for load-path
11066 shadowing.
11067
7763401b
GM
110682009-08-22 Glenn Morris <rgm@gnu.org>
11069
11070 * Makefile.in (bootstrap_exe): New variable.
11071 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11072 Use ${bootstrap_exe}.
11073
729eadda
EZ
110742009-08-22 Eli Zaretskii <eliz@gnu.org>
11075
11076 * coding.h (encode_coding_string): Don't encode unibyte strings.
11077 (Bug#4047)
11078
eb4c6ace
MA
110792009-08-22 Michael Albinus <michael.albinus@gmx.de>
11080
11081 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11082
11083 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11084 intended as hotfix only.
11085 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11086
36e34d1b
AR
110872009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11088
11089 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
11090 change, and clean up loose ends in the code left by it.
11091 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
11092 yet another X11 format (rgb:r/g/b) for compatibility.
11093 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11094 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11095
f983eb8a
SM
110962009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11097
11098 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11099
3f56d3c6
MA
111002009-08-20 Michael Albinus <michael.albinus@gmx.de>
11101
11102 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11103 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11104 (xd_initialize, xd_pending_messages): Check, whether
11105 $DBUS_SESSION_BUS_ADDRESS is set.
11106
fb641d68
YM
111072009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11108
11109 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11110
11111 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11112
cf59a374
GM
111132009-08-20 Glenn Morris <rgm@gnu.org>
11114
11115 * emacs.c (system-type): Doc fix.
11116
1373f3be
SM
111172009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11118
11119 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11120 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11121
058ed861
MA
111222009-08-18 Michael Albinus <michael.albinus@gmx.de>
11123
1373f3be
SM
11124 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11125 New functions.
058ed861
MA
11126 (xd_initialize): Revert change from 2009-08-16.
11127
563a866e 111282009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
11129
11130 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 11131 font-group vector, return nil.
5fc05db0 11132
e42bdf01
CY
111332009-08-17 Chong Yidong <cyd@stupidchicken.com>
11134
11135 * process.c (status_notify): Don't perform redisplay.
11136 (Fdelete_process, list_processes_1, process_send_signal):
11137 Expliticly perform redisplay.
11138 (wait_reading_process_output): Always check process status, but
11139 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11140
4230ab74
KR
111412009-08-17 Ken Raeburn <raeburn@raeburn.org>
11142
1373f3be 11143 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
11144 (XFLOAT_INIT): New macro for storing a float value.
11145 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11146 * fns.c (sxhash): Copy out the value of a float in order to
11147 examine its bytes.
11148 * dbusbind.c (xd_append_arg): Likewise.
11149
4230ab74
KR
11150 * emacs.c (main): Don't call syms_of_data twice.
11151
a0645cdd
MA
111522009-08-16 Michael Albinus <michael.albinus@gmx.de>
11153
11154 * dbusbind.c (xd_initialize): Add connection file descriptor to
11155 input_wait_mask, in order to let select() detect, whether a new
11156 message has been arrived.
ca4f31ea 11157 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 11158
485db0ba
MA
111592009-08-15 Michael Albinus <michael.albinus@gmx.de>
11160
1373f3be
SM
11161 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11162 New functions.
485db0ba
MA
11163
11164 * lisp.h (xd_pending_messages): Declare.
11165
11166 * keyboard.c (readable_events): Call xd_pending_messages.
11167
b5b98ff4
CY
111682009-08-15 Chong Yidong <cyd@stupidchicken.com>
11169
1373f3be 11170 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 11171
f8354c6e
CY
11172 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11173
b5b98ff4
CY
11174 * buffer.c (set_buffer_internal_1)
11175 (swap_out_buffer_local_variables): Check for unbound local
11176 variables (Bug#4138).
11177
8b9fc636
EZ
111782009-08-14 Eli Zaretskii <eliz@gnu.org>
11179
11180 * process.c (create_pty): Fix last change.
11181
ce959360
CY
111822009-08-13 Chong Yidong <cyd@stupidchicken.com>
11183
11184 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11185 (xbm_load_image): Caller changed.
64b807c9 11186 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 11187
c7baf7e9
NR
111882009-08-13 Nick Roberts <nickrob@snap.net.nz>
11189
11190 * process.c (create_pty): New function.
11191 (Fstart_process): Use it to allow Emacs to just associate a pty
11192 with the buffer. See associated change in gdb-mi.el.
11193 (list_processes_1): Deal with no program name.
11194 (start_process_unwind): Use pid == -2 to mean no process.
11195
1ac9108a
SM
111962009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11197
11198 * cmds.c (nonundocount): New global variable.
11199 (keys_of_cmds): Initialize it.
11200 (Fself_insert_command): Use it to combine upto 20 sequential chars
11201 into a single undo entry, just like the Qself_insert_command code in
11202 keyboard.c does.
11203 Call frame_make_pointer_invisible, also like the Qself_insert_command
11204 code in keyboard.c does.
11205 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11206 than its own local replacement for it.
11207
e267324c
KR
112082009-08-10 Ken Raeburn <raeburn@raeburn.org>
11209
1ac9108a 11210 * fns.c (concat): Don't re-set string length to its current value.
77437343 11211
1ac9108a
SM
11212 * coding.h (decode_coding_string, encode_coding_string):
11213 Use SBYTES macro.
f0bed503 11214
1ac9108a 11215 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
11216 (doprnt): Merge with doprnt1, discarding lispstrings code.
11217 * lisp.h (doprnt_lisp): Don't declare.
11218
416e006d
JL
112192009-08-07 Juri Linkov <juri@jurta.org>
11220
11221 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11222
6f7d5780
DN
112232009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11224
11225 * print.c (syms_of_print): Undo previous change.
11226
f19a0f5b
TZ
112272009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11228
11229 * lread.c (read1, syms_of_lread): Read hashtables back from the
11230 readable format.
11231
11232 * print.c (print_preprocess, print_object): Print hashtables fully
11233 and readably.
11234 (syms_of_print): Provide 'hashtable-print-readable.
11235
b9173dc2
AR
112362009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11237
11238 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11239 no family set.
11240 (nsfont_open): Handle case when entity has no family.
11241
1586503c
AR
112422009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11243
11244 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11245 element, not a list, for match case.
11246
087048cd
KH
112472009-07-28 Kenichi Handa <handa@m17n.org>
11248
11249 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11250 rigidly.
11251
11252 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11253 font_parse_xlfd. Check font properties more rigidly.
11254
780c2506
DN
112552009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11256
31fd7c5c
JB
11257 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11258 bsd-common.h.
780c2506 11259
a8c0cc18
KH
112602009-07-27 Kenichi Handa <handa@m17n.org>
11261
11262 * xfaces.c (face_with_height): Call font_clear_prop.
11263
4fbe2306
CY
112642009-07-26 Chong Yidong <cyd@stupidchicken.com>
11265
111d9af3
CY
11266 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11267
11268 * xterm.c (x_term_init): Use Qx.
11269
4fbe2306
CY
11270 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11271
1ac9108a 11272 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
11273 (ns_get_color): Revert 2009-07-16 change.
11274
beb0b7f9
EZ
112752009-07-25 Eli Zaretskii <eliz@gnu.org>
11276
11277 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 11278 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 11279
2baf5e76
KR
112802009-07-25 Ken Raeburn <raeburn@raeburn.org>
11281
1ac9108a
SM
11282 * coding.h (decode_coding_string, encode_coding_string):
11283 Use SCHARS macro.
8890e5f5 11284
2baf5e76 11285 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 11286 (load_depth): Delete.
2baf5e76
KR
11287 (Qload_in_progress): New variable.
11288 (load_unwind): Don't reference load_depth or load_in_progress.
11289 (Fload): Likewise; specbind Qload_in_progress instead.
11290 (init_lread): Don't initialize load_depth.
11291 (syms_of_lread): Initialize and protect Qload_in_progress.
11292
1395c6f5
AR
112932009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11294
11295 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11296
4e2f36cf
AR
112972009-07-23 Yavor Doganov <yavor@gnu.org>
11298
11299 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11300
5dd9a6f7
AR
113012009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11302
11303 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
11304 Bugs 3792, 3720, 2402.
11305 (ns_lookup_indexed_color): Check for bad index.
11306 (ns_index_color): Init unused slot to 0.
11307 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11308 Bug 3714, possibly 3082.
5dd9a6f7 11309
c902b920
JR
113102009-07-22 Jason Rumney <jasonr@gnu.org>
11311
1ac9108a
SM
11312 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11313 Position IME window at cursor (Bug#2570).
c902b920
JR
11314 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11315 (globals_of_w32fns): Dynamically load functions required above.
11316
11317 * w32term.c (w32_draw_window_cursor): Send message to reposition
11318 any IME window.
11319
090101cf
CY
113202009-07-21 Chong Yidong <cyd@stupidchicken.com>
11321
11322 * fileio.c: Revert 2009-07-16 changes.
11323 (Vauto_save_include_big_deletions): New variable.
11324 (Fdo_auto_save): Disable auto-save only if
11325 auto-save-include-big-deletions is nil.
11326
e6583e3d
CY
113272009-07-21 Chong Yidong <cyd@stupidchicken.com>
11328
11329 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11330 the overflowed pixels into account (Bug#3879).
11331
ece435a5
KR
113322009-07-21 Ken Raeburn <raeburn@raeburn.org>
11333
11334 * lread.c (load_depth): New variable.
11335 (Fload, load_unwind, init_lread): Set it to the load recursion
11336 depth; set load_in_progress as a simple boolean based on the
11337 current load_depth. (Bug#3892)
11338
40b2d973
AR
113392009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11340
11341 * nsfont.m (ns_has_attribute): Remove.
11342 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11343
10be7e0d
JL
113442009-07-18 Juri Linkov <juri@jurta.org>
11345
11346 * process.c (Fset_process_query_on_exit_flag): Mention killing
11347 a buffer in docstring.
11348
fa055055
KH
113492009-07-17 Kenichi Handa <handa@m17n.org>
11350
11351 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11352
042f7b69
YM
113532009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11354
11355 * nsfns.m (Fns_set_alpha): Remove function.
11356 (syms_of_nsfns): Don't defsubr it.
11357
11358 * nsterm.m (ns_get_color): Remove incompatible color formats.
11359 (ns_color_to_lisp): Generate #rrggbb color format string.
11360
4be941e3
RS
113612009-07-16 Richard Stallman <rms@gnu.org>
11362
11363 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11364 (Fset_buffer_auto_saved): Handle save_length = -2.
11365
4e6b227d
CY
113662009-07-16 Chong Yidong <cyd@stupidchicken.com>
11367
11368 * xterm.c (Qx_gtk_map_stock): New var.
11369
11370 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11371 of calling intern each time.
11372
a1856973
YM
113732009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11374
11375 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11376 does tiling.
11377
11378 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11379
497e54d8
KH
113802009-07-14 Kenichi Handa <handa@m17n.org>
11381
72d36834
KH
11382 * font.c (font_vconcat_entity_vectors): New function.
11383 (struct font_sort_data): New member font_driver_preference.
11384 (font_compare): Check font_driver_preference.
11385 (font_sort_entities): The format of the first argument changed.
11386 (font_delete_unmatched): Likewise.
11387 (font_list_entities): The return type changed.
11388 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
11389 (font_find_for_lface): Adjuste for the above changes.
11390 Don't suppress the checking of C even if the repertory supports it.
11391 (Flist_fonts): Adjust for the above changes.
72d36834 11392
1ac9108a
SM
11393 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11394 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
11395 Reject a font who has adstyle property that is different from a
11396 langname derived from registry property.
1ac9108a 11397 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 11398
b6046155
EZ
113992009-07-13 Eli Zaretskii <eliz@gnu.org>
11400
11401 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11402 local copy of dirfilename.
11403
fb6b6049
KH
114042009-07-13 Kenichi Handa <handa@m17n.org>
11405
e2402a5e
KH
11406 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11407 against max_char.
11408
fb6b6049
KH
11409 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11410 calling XSYMBOL (sym).
11411
65156807
EZ
114122009-07-11 Eli Zaretskii <eliz@gnu.org>
11413
1ac9108a
SM
11414 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11415 New function.
11416 (directory_files_internal) [WINDOWSNT]:
11417 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
11418 the filesystem of the directory is fast or slow.
11419
11420 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11421 file name.
11422 (is_slow_fs): New function.
11423 (stat): Use it to determine whether to issue more system calls to
11424 get accurate file attributes, when w32-get-true-file-attributes is
11425 `local'.
11426
e0ab5fcf
JD
114272009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11428
11429 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 11430 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
11431 parameter font-parameter as default to the font dialog.
11432
784ceded
KH
114332009-07-10 Kenichi Handa <handa@m17n.org>
11434
11435 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11436
fb8edc0b
EZ
114372009-07-09 Eli Zaretskii <eliz@gnu.org>
11438
1ac9108a 11439 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 11440
fb8edc0b
EZ
11441 * w32.c (stat): Treat UNC file names as residing on remote
11442 drives. (Bug#3542)
11443
635c75b1
KH
114442009-07-09 Kenichi Handa <handa@m17n.org>
11445
11446 * fontset.c (fontset_find_font): Fix previous change.
11447
c1d5ce94
MA
114482009-07-08 Michael Albinus <michael.albinus@gmx.de>
11449
11450 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11451 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11452 error flag.
11453
edb61b39
KH
114542009-07-08 Kenichi Handa <handa@m17n.org>
11455
374bf7e4
KH
11456 * fontset.c (fontset_find_font): Fix the logic of handling
11457 charset_matched.
11458 (font_for_char): Delete unused var.
11459 (generate_ascii_font_name): Delete it.
11460
edb61b39
KH
11461 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11462
11463 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11464 (encode_coding_sjis): Fix the code range check.
11465
0f3f018c
CY
114662009-07-07 Chong Yidong <cyd@stupidchicken.com>
11467
11468 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11469 (Fexpand_file_name): Copy string data properly (Bug#3772).
11470
fcaf6f3a
JD
114712009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11472
11473 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11474 first MapNotify.
11475
6809ca75
KH
114762009-07-07 Kenichi Handa <handa@m17n.org>
11477
11478 * character.h (unibyte_has_multibyte_table): Delete extern.
11479 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11480
11481 * charset.c (Fset_charset_priority): Update charset_unibyte.
11482 (syms_of_charset): Initialize charset_unibyte.
11483
11484 * character.c (unibyte_has_multibyte_table): Delete it.
11485 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11486 charset_unibyte.
11487 (multibyte_char_to_unibyte_safe): Likewise.
11488 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11489
1ac9108a 11490 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
11491 (x_produce_glyphs): Likewise.
11492
11493 * .gdbinit (xcharset): Fix the treating $arg0.
11494
ad9e2d54
EZ
114952009-07-04 Eli Zaretskii <eliz@gnu.org>
11496
11497 Emulation of `getloadavg' on MS-Windows.
50426a04 11498 * w32.c: Include float.h.
ad9e2d54
EZ
11499 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11500 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11501 (get_native_system_info, get_system_times): New functions.
11502 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11503 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11504 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11505 g_b_init_get_system_times, and num_of_processors.
11506
0a3472c7
JR
115072009-07-03 Jason Rumney <jasonr@gnu.org>
11508
11509 * w32term.c (w32_initialize): Use standard types.
11510
80904120
EZ
115112009-07-03 Eli Zaretskii <eliz@gnu.org>
11512
11513 * dired.c (Ffile_attributes): Decode user and group names by the
11514 locale's encoding. (Bug#3443)
11515
6978862d
DN
115162009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11517
f8d23104
DN
11518 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11519 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11520
11521 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11522
11523 * term.c (init_tty): Remove spurious #ifdef.
11524
6978862d
DN
11525 * m/mips.h: Mention this file is also used for netbsd.
11526 * m/pmax.h: Remove file.
11527
e044e4fc
JD
115282009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11529
11530 * xterm.h (struct x_display_info): Add invisible_cursor.
11531 (struct x_output): Add current_cursor.
11532
11533 * xterm.c (XTtoggle_invisible_pointer): New function.
11534 (x_define_frame_cursor): Don't define cursor if invisible or the
11535 same as before. Set current_cursor.
11536 (x_create_terminal): Set toggle_invisible_pointer_hook.
11537
11538 * xfns.c (make_invisible_cursor): New function.
11539 (x_set_mouse_color): Call make_invisible_cursor.
11540 Set current_cursor.
11541 (x_window): Set current_cursor.
11542
11543 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11544
11545 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11546 inserting a character.
11547 (read_avail_input): Call frame_make_pointer_visible.
11548
11549 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
11550 (frame_make_pointer_invisible, frame_make_pointer_visible):
11551 New functions.
e044e4fc
JD
11552 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11553
11554 * frame.h: Declare frame_make_pointer_invisible and
11555 frame_make_pointer_visible.
11556 (struct frame): Add pointer_invisible.
11557
574c8efa
JD
115582009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11559
7b507248
JD
11560 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11561 frame isn't visible.
11562 (xg_frame_resized): If width/height is -1, get size of window
11563 from X server.
11564
11565 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11566 for MapNotify.
11567
835bdaa7 11568 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 11569 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 11570 (flush_and_sync): Reintroduce.
574c8efa 11571
3f1c6666 115722009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 11573
31fd7c5c 11574 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
11575
11576 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11577 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11578
11579 * frame.h: Declare Qsticky.
11580
cad9ef74
JD
11581 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11582
11583 * nsfns.m (ns_frame_parm_handlers): Ditto.
11584
11585 * frame.c: Declare Qsticky.
11586 (frame_parms): Add sticky.
11587
11588 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11589
11590 * xterm.h: Declare x_set_sticky.
11591
11592 * xterm.c (x_set_sticky): New function.
11593
69b16610
JD
11594 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11595 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11596 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
11597
11598 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11599
11600 * frame.c: Qmaximized is new.
11601 (x_set_frame_parameters): Do not handle fullscreen specially.
11602 Only set width and height if explicitly set.
11603 (x_set_fullscreen): Handle Qmaximized.
11604 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11605 (syms_of_frame): Initialize Qmaximized.
11606
1ac9108a
SM
11607 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11608 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
11609
11610 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
11611 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11612 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
11613 set gravity to NorthWestGravity when USE_GTK.
11614 (set_wm_state): New function.
31fd7c5c 11615 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
11616 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11617 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 11618 or the case when no window manager is running. That means remove calls
3f1c6666
JD
11619 to x_real_positions and x_fullscreen_adjust.
11620
11621 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11622 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11623 flush_and_sync.
11624 (xg_height_changed): New function.
11625 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
11626 and gtk_window_set_policy. Set frame gravity after parsing the
11627 geometry string.
3f1c6666
JD
11628 (xg_update_frame_menubar, free_frame_menubar)
11629 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11630 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11631 Remove calls to xg_frame_set_char_size.
11632
fd503d99
KH
116332009-07-01 Kenichi Handa <handa@m17n.org>
11634
11635 * keyboard.c (decode_keyboard_code): New function.
11636 (tty_read_avail_input): Decode the input bytes if necessary.
11637
1ac9108a
SM
11638 * coding.c (setup_coding_system):
11639 Initialize coding->carryover_bytes to 0.
fd503d99
KH
11640 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11641 use Qno_conversion.
11642
24ed93fb
YM
116432009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11644
11645 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11646
99061dfc
CY
116472009-06-30 Chong Yidong <cyd@stupidchicken.com>
11648
1ac9108a 11649 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 11650
ff90fbde
JR
116512009-06-30 Jason Rumney <jasonr@gnu.org>
11652
11653 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11654 is already loaded.
11655 Set user model ID if supported (bug#1849).
11656
5f445726
JM
116572009-06-29 Jim Meyering <meyering@redhat.com>
11658
11659 Remove useless if-before-xfree test.
11660 * nsfont.m (nsfont_close): Remove useless test.
11661 * term.c (delete_tty): Likewise.
11662 * w32.c (system_process_attributes): Likewise.
11663 * w32font.c (w32font_close): Likewise.
11664 * xfaces.c (x_free_gc): Likewise.
11665 * xselect.c (buffer): Likewise.
11666
b9607587
AS
116672009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11668
11669 * process.c (send_process): Keep decoded string in a local
11670 variable and protect it from GC. (Bug#3521)
11671
89ba96f4
EZ
116722009-06-28 Eli Zaretskii <eliz@gnu.org>
11673
11674 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11675 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11676
098a1589
CY
116772009-06-28 Chong Yidong <cyd@stupidchicken.com>
11678
485422be
CY
11679 * xdisp.c (start_display, handle_face_prop)
11680 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
11681 (redisplay_window, try_window_id, produce_image_glyph):
11682 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 11683
098a1589
CY
11684 * xterm.c (x_update_window_begin, x_new_focus_frame)
11685 (x_scroll_bar_handle_click, handle_one_xevent)
11686 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11687 (x_make_frame_visible, x_make_frame_invisible)
11688 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11689 code chunks that are now obsolete.
11690
78c38319
MA
116912009-06-28 Michael Albinus <michael.albinus@gmx.de>
11692
11693 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11694 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11695 for hours, when optimzation is enabled.
11696 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11697 (xd_read_message): Make them static.
11698
4189ed40
CY
116992009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11700
11701 * term.c (turn_on_face): Allow simultaneously bold and dim
11702 terminal faces (Bug#3530).
11703
cd9b5e16
CY
117042009-06-27 Chong Yidong <cyd@stupidchicken.com>
11705
4e23bedb
CY
11706 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11707
cd9b5e16
CY
11708 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11709 truncation glyphs (Bug#3686).
11710
07cc3c35
GM
117112009-06-27 Glenn Morris <rgm@gnu.org>
11712
11713 * m/pmax.h: Restore file, with only netbsd portions.
11714
31fd7c5c 117152009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 11716
cd9b5e16 11717 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 11718
42d4a64f
KH
117192009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11720
11721 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11722 the arg FORCE_SYMBOL.
11723
930fe55b 117242009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
11725
11726 * fontset.c (fontset_find_font): When a usable rfont_def is found
11727 in a fallback font-group, make it the first element of the group.
11728
57ebc3fd
CY
117292009-06-24 Chong Yidong <cyd@stupidchicken.com>
11730
11731 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11732
f084f942
KH
117332009-06-24 Kenichi Handa <handa@m17n.org>
11734
11735 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11736 set for C.
11737 (fontset_font): Record the availability of a font for C both in
11738 the realized fontsets of the current one and the default one.
11739
2f686c87
DN
117402009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11741
11742 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11743 conditional, it is always defined on AIX.
11744
666e158e
MB
117452009-06-23 Miles Bader <miles@gnu.org>
11746
11747 * window.c (Vrecenter_redisplay): New variable.
11748 (syms_of_window): Initialize it.
11749 (Qtty): New extern declaration.
11750 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11751
c6da7cd2
JM
117522009-06-23 Jim Meyering <meyering@redhat.com>
11753
1ac9108a
SM
11754 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11755 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 11756 pointer dereferences are guaranteed to be valid.
c6da7cd2 11757
678dca3d
KH
117582009-06-23 Kenichi Handa <handa@m17n.org>
11759
74d75424
KH
11760 * emacs.c (main): Call init_font ().
11761
11762 * font.h (Vfont_log): Extern it.
11763 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11764
11765 * font.c (font_sort_entities, font_list_entities)
11766 (font_matching_entity, font_open_entity)
11767 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11768 (Vfont_log): Delete static.
11769 (font_log_env_checked): Delete this variable.
11770 (font_add_log): Don't check font_log_env_checked.
11771 (font_deferred_log): Check Vfont_log.
11772 (init_font): New function.
11773
678dca3d
KH
11774 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11775
11776 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11777
11778 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11779
11780 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11781
11782 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11783 (face_for_char): Don't call font_deferred_log here.
11784 (font_for_char): Likewise.
11785
8a668709
CY
117862009-06-22 Chong Yidong <cyd@stupidchicken.com>
11787
9a01ee33
CY
11788 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11789 rather than its background_width for drawing the overline and
11790 underline (Bug#489).
11791
11792 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11793 rather than its background_width for drawing the overline and
11794 underline (Bug#489).
ec7c9926
CY
11795 (xg_default_icon_file): New variable.
11796 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11797 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 11798
8a668709
CY
11799 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11800 (load_overlay_strings): Remove externs.
11801 (fast_find_position): Function deleted.
11802 (mouse_face_from_buffer_pos): New function, based on
11803 fast_find_position. Correctly handle before-strings,
11804 display-strings, and after-strings (Bug#1220).
11805 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11806
4d4c02d8
CY
118072009-06-21 Chong Yidong <cyd@stupidchicken.com>
11808
1ac9108a 11809 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
11810 (move_it_in_display_line_to, move_it_in_display_line_to)
11811 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11812
70243478
CY
118132009-06-21 Chong Yidong <cyd@stupidchicken.com>
11814
11815 * Branch for 23.1.
11816
13087e59
JR
118172009-06-21 Jason Rumney <jasonr@gnu.org>
11818
11819 * w32term.c (keyboard_codepage): New static variable.
11820 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11821 (w32_read_socket) [WM_CHAR]: Use it to decode character
11822 input (bug#3237).
11823 (w32_initialize): Initialize it.
11824 (codepage_for_locale): New function.
11825
4735b74e
KR
118262009-06-20 Ken Raeburn <raeburn@raeburn.org>
11827
11828 * process.c (status_message): Pass Faset index argument as a lisp
11829 object, so as to work with USE_LISP_UNION_TYPE.
11830
0e727afa
YM
118312009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11832
11833 * coding.c (Ffind_coding_systems_region_internal):
11834 Cache checked characters.
11835
cf299835
KH
118362009-06-18 Kenichi Handa <handa@m17n.org>
11837
1ac9108a 11838 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 11839
90f20d94
AS
118402009-06-18 Andreas Schwab <aschwab@redhat.com>
11841
11842 * xdisp.c (redisplay_internal): Check that the frame is still
11843 live after redisplay of its windows.
11844 (redisplay_windows): Check that the window is still live.
11845
7f1faf1c
KH
118462009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11847
11848 * coding.c (detect_coding_utf_16): Fix previous change.
11849
cc13543e
KH
118502009-06-16 Kenichi Handa <handa@m17n.org>
11851
11852 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11853 UTF-16 by checking the dispersion of Eth and Oth bytes.
11854
977b85f4
AS
118552009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11856
11857 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11858
66bd43d1
KH
118592009-06-15 Kenichi Handa <handa@m17n.org>
11860
11861 * process.c (status_message): Fix previous change. Be sure to
11862 decode a localized string.
11863
cb5ca9c5
YM
118642009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11865
11866 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11867 add comment explaining why.
11868
ec7709ba 118692009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 11870
ec7709ba 11871 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 11872
4b7f335c
AR
118732009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11874
11875 * nsfont.m (ns_attribute_value): Remove.
11876 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11877 (ns_has_attribute): Shrink the normal range.
11878 (ns_findfonts): Don't worry about requested spec in determining
11879 need for synthItal.
e41820ee 11880 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 11881
73b26103
SZ
118822009-06-14 Seiji Zenitani <zenitani@mac.com>
11883
11884 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11885
5753e4da
KH
118862009-06-11 Kenichi Handa <handa@m17n.org>
11887
11888 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11889 overhang for the static composition case.
11890
3561b671
KH
118912009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11892
5753e4da
KH
11893 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11894 overhang for the automatic composition case.
11895
3561b671
KH
11896 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11897 composition case.
11898
852bbd41
CY
118992009-06-10 Chong Yidong <cyd@stupidchicken.com>
11900
11901 * xdisp.c (get_next_display_element): When handling wrap-prefix
11902 and line-prefix, treat \n as a control character (bug#3502).
11903
9903d1e6
KH
119042009-06-10 Kenichi Handa <handa@m17n.org>
11905
11906 * font.c (font_parse_family_registry): Fix for one-char foundry.
11907 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11908
0bcbaaaa
CY
119092009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11910
11911 * process.c (status_message): Fix handling of multibyte signal
11912 string (Bug#3499).
11913
40aa3f13
JM
119142009-06-09 Jim Meyering <meyering@redhat.com>
11915
1f80c7e2
CY
11916 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11917 color name is missing.
40aa3f13 11918
72d51285
KH
119192009-06-09 Kenichi Handa <handa@m17n.org>
11920
11921 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11922 FROM-CODE and TO-CODE are codepoints of CHARSET.
11923
c1d04d84
AR
119242009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11925
11926 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11927
119282009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11929
11930 Changes to support :script/:lang/:otf in NS font driver.
11931 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11932 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11933 indicate not part of font driver interface, and change callers.
11934 (ns_get_family): Remove pointless null check.
11935 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11936 ns_spec_to_descriptor, ns_descriptor_to_entity.
11937 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11938 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11939 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11940 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11941 (ns_get_req_script, ns_accumulate_script_ranges)
11942 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11943 New functions.
11944 (nsfont_list, nsfont_match): Use ns_findfonts.
11945 (nsfont_open): Use font descriptor instead of traits.
11946 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11947 (dump_glyphstring): Rename to ns_dump_glyphstring.
11948
c7eb9816
AR
11949 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11950
c1d04d84
AR
11951 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11952
11953 * fontset.c (fontset_from_font): Remove NS-specific code.
11954
ec7709ba 119552009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
11956
11957 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11958 nonactive windows.
11959
31fd7c5c 119602009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 11961
1ac9108a 11962 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 11963
68852c13 119642009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
11965
11966 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11967
6756cd1d
CY
119682009-06-07 Chong Yidong <cyd@stupidchicken.com>
11969
11970 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11971 account for the overflowing of newlines into the last glyph on the
11972 display line (Bug#3482).
11973
28bf482a
DR
119742009-06-05 David Reitter <david.reitter@gmail.com>
11975
ec7709ba
JB
11976 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11977 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
11978 Fns_selection_exists_p, Fns_selection_owner_p.
11979
fdb55376
JR
119802009-06-03 Jason Rumney <jasonr@gnu.org>
11981
11982 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11983 available. (Bug#3379)
11984
05129fbe
KH
119852009-05-29 Kenichi Handa <handa@m17n.org>
11986
1ac9108a
SM
11987 * coding.c (get_translation_table):
11988 Check Venable_character_translation.
05129fbe 11989
ec7709ba 119902009-05-26 David Reitter <david.reitter@gmail.com>
15891144 11991
ec7709ba
JB
11992 * nsterm.m (ns_raise_frame): Only raise frame if visible.
11993 (x_make_frame_visible): Move frame to front rather than calling
15891144 11994 ns_raise_frame().
ec7709ba 11995 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 11996 isn't key window.
ec7709ba 11997 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
11998 drawRect may be called by NSView even if the frame is hidden.
11999
ec7709ba
JB
12000 * nsfns.m (Fx_create_frame): Follow other ports in
12001 determining visibility; default to t. Ensure async_visible is set.
15891144 12002
21f73755
EZ
120032009-05-23 Eli Zaretskii <eliz@gnu.org>
12004
12005 * dired.c (Ffile_attributes): Doc fix.
12006
34001e41
CY
120072009-05-22 Chong Yidong <cyd@stupidchicken.com>
12008
12009 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
12010
46306a17
SM
120112009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
12012
12013 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
12014 and xfont_scratch_props.
12015 (syms_of_xfont): Do it here instead.
12016 (xfont_find_ccl_program): Delete, unused.
12017 (xfont_open): Delete unused var `i'.
12018
ef6e0694
KH
120192009-05-21 Kenichi Handa <handa@m17n.org>
12020
12021 * fontset.c (Qlatin): Don't make it static.
12022
46306a17
SM
12023 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
12024 New functions.
ef6e0694
KH
12025 (xfont_scripts_cache, xfont_scratch_props): New variables.
12026 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
12027 (xfont_list_pattern): Argument changed. Callers changed.
12028 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
12029 (xfont_list): Don't reject a font spec with :script property.
12030 (xfont_has_char): Fix setting of encoding.
12031 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
12032 xfont_scratch_props.
12033
120342009-05-19 Kenichi Handa <handa@m17n.org>
12035
46306a17 12036 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
12037 Callers changed.
12038
120392009-05-18 Kenichi Handa <handa@m17n.org>
12040
12041 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
12042
ac71ced7
SM
120432009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12044
12045 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
12046 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
12047
1c6d1051
YM
120482009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12049
12050 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
12051 (x_delete_terminal): Dissociate resource database from display and
12052 then call XrmDestroyDatabase before closing display.
12053
9b9b779c
AR
120542009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12055
12056 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
12057 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12058 whether selected frame is viable before raising it (based on patch
12059 by David Reitter), and improve commentary.
12060 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 12061
cccd42d5
KH
120622009-05-15 Kenichi Handa <handa@m17n.org>
12063
12064 * font.c (Ffont_spec): Check arguments.
12065
337fbd17
CY
120662009-05-14 Chong Yidong <cyd@stupidchicken.com>
12067
12068 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12069 weight when testing attributes (Bug#3282).
12070
47a6002f
JD
120712009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12072
12073 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12074 what we expect to get in the next ConfigureNotify event.
12075
9cb363db
YM
12076 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12077 before Xft one (Bug#1696).
12078
b9126609
CY
120792009-05-07 David Reitter <david.reitter@gmail.com>
12080
12081 * nsfns.m (Fx_display_planes): Compute bitplanes using
12082 NSBitsPerPixelFromDepth (Bug#3207).
12083
27a69fd9
CY
120842009-05-10 Chong Yidong <cyd@stupidchicken.com>
12085
12086 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12087
00f37552
TTN
120882009-05-10 Ulrich Mueller <ulm@gentoo.org>
12089
12090 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12091
2d82a920
DR
120922009-05-07 David Reitter <david.reitter@gmail.com>
12093
ec7709ba
JB
12094 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12095 Respect mouse face background.
2d82a920 12096
46b0d52d
DR
120972009-05-07 David Reitter <david.reitter@gmail.com>
12098
ec7709ba
JB
12099 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12100 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
12101 in ns_update_begin and ns_update_end.
12102
ce1b23bb
SM
121032009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12104
5996e1b7
SM
12105 * nsfns.m (ns_get_screen): Rewrite.
12106 Don't presume selected-frame is of type `ns'.
12107
ba98e3a0
SM
12108 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12109 all drivers.
12110
ce1b23bb
SM
12111 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12112
bcda200f
YM
121132009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12114
12115 * keyboard.h (add_user_signal): Fix typo in extern.
12116
12117 * lisp.h (add_user_signal): Remove extern.
12118
12119 * unexelf.c (unexec): Consider a section to precede the .bss section
12120 if its addresses overlap that of .bss.
12121 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12122 instead of dumping process.
12123
864660a2
SM
121242009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12125
12126 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12127
50da4e56
SM
121282009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12129
12130 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12131
51520a1a
DN
121322009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12133
12134 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12135 any statements.
12136
409ea3a1
AS
121372009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12138
59c4c60f
AS
12139 * process.c (read_process_output): Make sure the current buffer is
12140 always restored.
12141
409ea3a1
AS
12142 * coding.c (record_conversion_result): Don't modify
12143 Vlast_code_conversion_error for successful result.
12144 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12145
56f00ed2
KH
121462009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12147
12148 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 12149 (load_charset_map): Remove unnecessary code.
56f00ed2 12150
4491c9d2
DR
121512009-04-30 David Reitter <david.reitter@gmail.com>
12152
35f5b128 12153 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
12154 through f24.
12155
6970f632
CY
121562009-04-30 Chong Yidong <cyd@stupidchicken.com>
12157
12158 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12159
12160 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12161 face_at_buffer_position.
12162 (face_before_or_after_it_pos, get_next_display_element)
12163 (note_mouse_highlight): Update face_at_buffer_position call.
12164
12165 * term.c (term_mouse_highlight):
12166 * msdos.c (IT_note_mouse_highlight):
12167 * fontset.c (Finternal_char_font):
35f5b128 12168 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
12169
12170 * dispextern.h (face_at_buffer_position): Update prototype.
12171
0c616f63
KH
121722009-04-30 Kenichi Handa <handa@m17n.org>
12173
35f5b128 12174 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 12175
ad3aaf33
AS
121762009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12177
12178 * callproc.c (Fcall_process): Fix GC protection. Make sure
12179 current buffer is always restored.
12180
c3c963a0
YM
121812009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12182
12183 * atimer.c (init_atimer): Also clear stopped_atimers.
12184
12185 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12186
7e3386cb
YM
12187 * process.c (create_process): Clean up merger residues of
12188 2008-07-17 change.
12189
91f68422
CY
121902009-04-29 Ulrich Mueller <ulm@gentoo.org>
12191
12192 * lread.c (Vread_circle): New variable.
12193 (read1): Disable recursive read if Vread_circle is nil.
12194
24b34550
KH
121952009-04-29 Kenichi Handa <handa@m17n.org>
12196
12197 * fontset.h (set_default_ascii_font): Delete extern.
12198
12199 * fontset.c (set_default_ascii_font): Delete this unused function.
12200
12201 * frame.c (x_set_font): When ARG is a font-object, check if the
12202 font-object matches with the ASCII font-spec of the frame's
9c358bda 12203 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 12204
77bf07e1
AS
122052009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12206
12207 * fns.c (Flocale_info): Protect vector from GC during decoding.
12208
12209 * process.c (Fstart_process): Protect argv strings from GC during
12210 encoding.
12211
2c55aacf
AS
122122009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12213
12214 * sysdep.c: Include <ctype.h>.
12215
b892d3c9
DR
122162009-04-27 David Reitter <david.reitter@gmail.com>
12217
35f5b128 12218 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
12219 Remove commented-out code.
12220
9d0644c4
JB
122212009-04-26 Johan Bockgård <bojohan@gnu.org>
12222
12223 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12224
b7053016
JR
122252009-04-25 Jason Rumney <jasonr@gnu.org>
12226
12227 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12228
4e8231f3
YM
122292009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12230
12231 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12232 Swap bytes in short integer if fringe bitmap width > 8.
12233
493dcf2c
KH
122342009-04-23 Kenichi Handa <handa@m17n.org>
12235
12236 * xfaces.c (Fx_list_fonts): If a font size is specified in
12237 PATTERN, set it in returned scalable fonts.
12238
401e9e57
CY
122392009-04-22 Chong Yidong <cyd@stupidchicken.com>
12240
708e05dc
CY
12241 * keyboard.c (Fset_input_meta_mode): Doc fix.
12242
12243 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12244
1ac9108a 12245 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
12246
12247 * coding.c (Fterminal_coding_system): Doc fix.
12248
12249 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12250 (Fx_display_pixel_height, Fx_display_planes)
12251 (Fx_display_color_cells, Fx_server_max_request_size)
12252 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12253 (Fx_display_mm_height, Fx_display_mm_width)
12254 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
12255 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12256 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
12257 (check_x_display_info): Handle terminal objects instead of
12258 terminal ids.
12259
401e9e57
CY
12260 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12261 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
12262 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12263 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 12264
df80c7f0
KH
122652009-04-21 Kenichi Handa <handa@m17n.org>
12266
5a8f12af 12267 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 12268 (font_score): Check AVGWIDTH too.
908567ef 12269
df80c7f0
KH
12270 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12271 worst case.
1ac9108a
SM
12272 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12273 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 12274
705af33f
JR
122752009-04-19 Jason Rumney <jasonr@gnu.org>
12276
12277 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 12278 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
12279
12280 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12281 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12282 get_phys_cursor_geometry.
12283
b71ac3dd 12284 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
12285 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12286 using get_phys_cursor_geometry.
12287
12288 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12289 correctly calculated.
12290
dc2933eb
JD
122912009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12292
1ac9108a
SM
12293 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12294 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
12295 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12296 is deprecated.
12297
973e7849
AS
122982009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12299
12300 * font.c (font_put_frame_data): Use xfree instead of free.
12301
314d66f4
JB
123022009-04-17 Juanma Barranquero <lekktu@gmail.com>
12303
12304 * w32font.c (Qja, Qko): Remove declarations.
12305 (syms_of_w32font): Don't DEFSYM them.
12306
cf702558
CY
123072009-04-17 Chong Yidong <cyd@stupidchicken.com>
12308
12309 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12310
12311 * font.h (Qja, Qko): Extern them.
12312
12313 * ftfont.c (Qja, Qko): Remove declarations.
12314
12315 * xfont.c (Qja, Qko): Remove declarations.
12316
b50504f5
KH
123172009-04-17 Kenichi Handa <handa@m17n.org>
12318
bde25748
KH
12319 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12320 string from a vector to handle Latin-1 characters correctly.
12321
b50504f5
KH
12322 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12323 entity even if the cache hits.
12324
f4646fff
AS
123252009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12326
12327 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 12328 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 12329
e7deaab0
AS
12330 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12331 * lisp.h: Adjust prototypes.
12332
0a0e7d49
CY
123332009-04-16 Chong Yidong <cyd@stupidchicken.com>
12334
12335 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12336 change (Bug#3003).
12337
3c908a57
KH
123382009-04-16 Kenichi Handa <handa@m17n.org>
12339
1ac9108a 12340 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
12341
12342 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12343 adstyle.
12344
12345 * ftfont.c (Qja, Qko): Don't make them static.
12346 (enum ftfont_cache_for): New enum.
12347 (fc_charset_table): Undo the previous change.
12348 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
12349 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12350 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
12351 non-scarable font, try to get AVERAGE_WIDTH.
12352 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12353 Change ft_face_cache from a list of a hash-table. Don't check
12354 `ja' and `ko' adstyle here.
12355 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12356 FTFONT_CACHE_FOR_CHARET.
12357 (ftfont_get_charset): Undo the previous change.
1ac9108a 12358 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
12359 (ftfont_close): Likewise.
12360 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12361
12362 * font.c (font_sort_entites): Change the meaning of the arg
12363 BEST-ONLY. Don't optimize for VEC of lenght 1.
12364 (font_select_entity): Just return the value of font_sort_entites.
12365
12366 * xfaces.c (merge_face_vectors): Reflect font properties in
12367 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12368 font_clear_prop if a face attribute doesn't change.
12369
3c908a57
KH
12370 * charset.h (charset_ksc5601): Extern it.
12371
12372 * charset.c (charset_ksc5601): New variable.
12373 (Fdefine_charset_internal): Set charset_ksc5601.
12374 (init_charset_once): Initialize charset_ksc5601 to -1.
12375
d65859c3
DN
123762009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12377
12378 * fileio.c (history_delete_duplicates): Remove unused declaration.
12379
12380 * callint.c (history_delete_duplicates): New declaration.
12381 (Fcall_interactively): Remove command history duplicates when
12382 history_delete_duplicates is true.
12383
3ba010e5
EZ
123842009-04-14 Eli Zaretskii <eliz@gnu.org>
12385
12386 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12387
06f19b91
KH
123882009-04-14 Kenichi Handa <handa@m17n.org>
12389
12390 * font.c (Ffont_info): Fix docstring. Fix the second element of
12391 the returned value (bug#2949).
12392
2cce8bfc
CY
123932009-04-14 Chong Yidong <cyd@stupidchicken.com>
12394
12395 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12396
d156542d
KH
123972009-04-14 Kenichi Handa <handa@m17n.org>
12398
12399 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12400 encoding charset is ascii_compatible.
12401
12402 * charset.c (Fdefine_charset_internal): Make charset
12403 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12404 code_offset is 0, and covers all ASCII characters.
12405
86fa089e
SM
124062009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12407
12408 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12409 (ns_string_to_pasteboard_internal):
12410 * nsmenu.m (process_dialog):
12411 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12412 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12413 * lisp.h (Fx_load_color_file): Declare.
12414
a8a3728b
KH
124152009-04-13 Kenichi Handa <handa@m17n.org>
12416
1ac9108a 12417 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
12418 (font_select_entity): Suppress the code to optimize for the same
12419 kind of fonts.
12420 (font_load_for_lface): Get a font that supports at least ASCII
12421 characters.
12422
12423 * ftfont.c (Qja, Qko): New variables.
12424 (fc_charset_table): Delete uniquifier data for iso8859-1.
12425 (ftfont_get_latin1_charset): New function.
12426 (get_adstyle_property): New function.
12427 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12428 bitmap fonts.
12429 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12430 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12431 `ko' or `ja'.
12432 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 12433 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
12434 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12435 property.
12436 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12437 (syms_of_ftfont): DEFSYM Qja and Qko.
12438
483670b5
KH
124392009-04-09 Kenichi Handa <handa@m17n.org>
12440
12b55765
KH
12441 * charset.c (map_charset_chars): For a charset of `superset'
12442 method, fix calculation of code range.
12443
483670b5
KH
12444 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12445 from the list of extra properties.
12446 (font_clear_prop): Be sure to delete `:name' font property.
12447
57d3b93b
KH
124482009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12449
b4b2c2ca
YM
12450 * dispnew.c (redraw_overlapping_rows): Fix detection of
12451 overlapping for topmost and bottommost rows.
12452
1ac9108a 12453 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 12454
472c3609
JR
124552009-04-06 Jason Rumney <jasonr@gnu.org>
12456
12457 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12458
ab193662
KH
124592009-04-06 Kenichi Handa <handa@m17n.org>
12460
12461 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12462
12463 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12464
0c26f026
KH
124652009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12466
12467 * ftfont.c (ftfont_open): Fix checking of the return value of
12468 FT_Load_Char. Fix setting font->underline_thickness.
12469
e173bbce
CY
124702009-04-04 Chong Yidong <cyd@stupidchicken.com>
12471
12472 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12473 (Fterminal_parameters, Fterminal_parameter)
12474 (Fset_terminal_parameter): In doc string, refer to terminal
12475 objects rather than terminal ids.
12476
693a2698
EZ
124772009-04-04 Eli Zaretskii <eliz@gnu.org>
12478
12479 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12480 ret_lim_data. (Bug#2867)
12481
d5221487
CY
124822009-04-03 Chong Yidong <cyd@stupidchicken.com>
12483
12484 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12485 so they don't get wider than the window, matching 2006-01-23
12486 change to the partner function in xdisp.c (Bug#2800).
12487
223509a3
KH
124882009-04-03 Kenichi Handa <handa@m17n.org>
12489
12490 * print.c (print_object): Make each lowest sub_char_table start a
12491 new line (Bug#2866).
12492
74fcd0b1
KH
124932009-04-02 Kenichi Handa <handa@m17n.org>
12494
12495 * fontset.c (fontset_font): Record no-font when a fontset
12496 explicitly tells not to try another font-specs.
12497
c542407d
SM
124982009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12499
12500 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12501
e3869731
KH
125022009-03-30 Kenichi Handa <handa@m17n.org>
12503
d8d2f142
KH
12504 * fontset.c (fontset_from_font): Specify only registry in a
12505 font-spec for all characters supported by that registry.
12506
e3869731
KH
12507 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12508 even if HAVE_M17N_FLT is not defined.
12509
5da5f805
CY
125102009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12511
12512 * ftfont.c: Conditionalize prototyping and use of
12513 ftfont_variation_glyphs.
12514
ab226c50
SM
125152009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12516
9628fed7
SM
12517 * frame.c (delete_frame): Work around compiler bug.
12518
12519 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12520 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12521 Some more EMACS_INT.
12522 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12523
12524 * xdisp.c (dump_glyph): Fix typo.
12525
ae19ba7c
SM
12526 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12527 (adjust_markers_gap_motion, adjust_markers_for_delete)
12528 (adjust_markers_for_insert, adjust_point)
12529 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12530 (make_gap, copy_text, count_size_as_multibyte, insert)
12531 (insert_and_inherit, insert_before_markers)
12532 (insert_before_markers_and_inherit, insert_1)
12533 (count_combining_before, count_combining_after, insert_1_both)
12534 (insert_from_string, insert_from_string_before_markers)
12535 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12536 (insert_from_buffer_1, adjust_after_replace)
12537 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12538 (replace_range_2, del_range, del_range_1, del_range_byte)
12539 (del_range_both, del_range_2, modify_region)
12540 (prepare_to_modify_buffer, signal_before_change)
12541 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12542 for buffer positions and sizes.
12543 * lisp.h: Adjust prototypes accordingly.
12544
12545 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12546 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12547 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12548
ab226c50
SM
12549 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12550
46dfb8fb
JD
125512009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12552
12553 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12554 lines and columns so we keep the same pixel height and width.
12555
12556 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12557 the property _NET_WM_STATE has changed.
46dfb8fb
JD
12558 (x_handle_net_wm_state): New function to update frame parameter
12559 fullscreen.
12560 (x_term_init): Initialize atoms for _NET_WM_STATE.
12561
12562 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12563
d347e494
SM
125642009-03-27 Kevin Ryde <user42@zip.com.au>
12565
12566 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12567 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12568 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12569 (Fgpm_mouse_stop): Pass that new parameter.
12570 * termhooks.h (close_gpm): Adjust prototype.
12571
84db11d6
SM
125722009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12573
c95a5008
SM
12574 * lisp.h (Fx_focus_frame): Declare.
12575
84db11d6
SM
12576 * callint.c (Fcall_interactively): For '^' just delegate the work to
12577 handle-shift-selection.
12578 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12579
0a1958d6
CY
125802009-03-24 Chong Yidong <cyd@stupidchicken.com>
12581
0bfdff23
CY
12582 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12583
0a1958d6
CY
12584 * data.c (Qinteractive_form): New variable.
12585 (Finteractive_form): Use it.
12586
12587 * eval.c (Fcommandp): Use Qinteractive_form.
12588
58aec0d6
JR
125892009-03-24 Jason Rumney <jasonr@gnu.org>
12590
12591 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12592 Calculate total size precisely. Decode environment variables
12593 before substituting. (Bug#38)
12594
553dd618
KH
125952009-03-24 Kenichi Handa <handa@m17n.org>
12596
12597 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 12598 encoding (Bug#2722).
553dd618 12599
c39ea606
JD
126002009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12601
12602 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12603 that gdpy is set.
12604
bc9b2b5e
AM
126052009-03-22 Alan Mackenzie <acm@muc.de>
12606
12607 * callint.c (Finteractive): Clarify the doc string - even
12608 promptless elements need \n separators.
12609
9f995a76
JR
126102009-03-22 Jason Rumney <jasonr@gnu.org>
12611
12612 * w32term.c (syms_of_w32term): Doc fix for
12613 x-use-underline-position-properties.
12614
22749e9a
EZ
126152009-03-21 Eli Zaretskii <eliz@gnu.org>
12616
12617 * w32.c (getpwuid): Change argument type to unsigned.
12618 (struct w32_id): Change type of `rid' member to unsigned.
12619 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12620 argument ID to unsigned. All callers changed.
12621 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12622
e00553bf
EZ
126232009-03-20 Eli Zaretskii <eliz@gnu.org>
12624
12625 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12626 negative, produce a float value.
12627
12628 * dired.c (make_uid, make_gid): New functions.
12629 (Ffile_attributes): Use them to avoid negative UID and GID.
12630
f761d6b6
JB
126312009-03-20 Juanma Barranquero <lekktu@gmail.com>
12632
12633 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12634 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12635 Fix typos in docstrings.
12636
d507f8d7
KH
126372009-03-19 Kenichi Handa <handa@m17n.org>
12638
12639 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
12640 changed, use font_load_for_lface to get a new font object.
12641 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
12642
12643 * frame.c (x_set_font): Handle the case that ARG is a cons.
12644
c68845e0
GM
126452009-03-19 Glenn Morris <rgm@gnu.org>
12646
12647 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12648
bfa49dd1
CY
126492009-03-19 Chong Yidong <cyd@stupidchicken.com>
12650
12651 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12652
8458d4c1
KH
126532009-03-19 Kenichi Handa <handa@m17n.org>
12654
12655 * charset.c (load_charset_map_from_file): When a mapfile can't be
12656 loaded, signal an error.
12657
78e7d1fe
EZ
126582009-03-18 Eli Zaretskii <eliz@gnu.org>
12659
12660 * dired.c (Ffile_attributes): Make sure UID and GID are always
12661 positive, even if the value is too large for a positive EMACS_INT.
12662 Doc fix.
12663
12664 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12665
5da9fdfa
YM
126662009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12667
12668 * xmenu.c (xdialog_show): Move Fredisplay call ...
12669 (Fx_popup_dialog): ... here.
12670
7519c40d
SM
126712009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12672
12673 * dired.c (file_name_completion): Disable the first optimization just
12674 installed, since it is not implemented correctly.
12675
2cd298e2
SM
126762009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12677
12678 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 12679 only if the entry can affect bestmatch.
2cd298e2
SM
12680 Stop the search early, as Ftry_completion already does.
12681
48d37adf
CY
126822009-03-17 Chong Yidong <cyd@stupidchicken.com>
12683
e10c9c93 12684 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 12685
9286b16a
CY
126862009-03-15 Chong Yidong <cyd@stupidchicken.com>
12687
12688 * keyboard.c (parse_menu_item): Don't display remappings as menu
12689 equivalent bindings (Bug#788).
12690
f7b146dc
JR
126912009-03-15 Jason Rumney <jasonr@gnu.org>
12692
12693 * w32term.h (WM_EMACS_PAINT): New message.
12694 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12695 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12696 before passing to lisp thread. (Bug#950)
12697
f761d6b6 126982009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 12699
d93f9575
CY
12700 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12701 variable as it was never reset.
12702 (ns_term_init): Remove initialization of Lisp-settable defaults
12703 and ns_expand_space.
12704 (-setPanelFromDefaultValues): Remove ns_expand_space.
12705 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12706 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
12707 i.e. no additional spacing, similar to Carbon port.
12708
d93f9575
CY
12709 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12710 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 12711
305018ec
JD
127122009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12713
12714 * sound.c (alsa_configure): Remove call to deprecated
12715 snd_pcm_sw_params_set_xfer_align.
12716
f761d6b6 127172009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
12718
12719 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12720 after clicking in a detached tool bar.
12721 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12722
46e722a9
SM
127232009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12724
348db3dd
SM
12725 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12726 int/Lisp_Object mixup).
46e722a9 12727
a3d16f39
KH
127282009-03-13 Kenichi Handa <handa@m17n.org>
12729
12730 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 12731 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
12732 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12733 (set_fontset_font): Change ARG to a vector. Handle range_list in
12734 ARG correctly.
12735 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 12736 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
12737 the above change.
12738 (fontset_from_font): Fix previous change.
fe24f56a 12739 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
12740 entry. If FONTSET is the default fontset, don't set the extra
12741 slot of the returning char-table.
12742
b066e6b6
JB
127432009-03-12 Juanma Barranquero <lekktu@gmail.com>
12744
12745 * nsfns.m (Fx_close_connection): Doc fix.
12746 (Fns_do_applescript): Reflow docstring.
12747 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12748 (Fx_display_pixel_width, Fx_display_pixel_height)
12749 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12750 Fix typos in docstrings.
12751 (Fns_set_alpha): Fix typos in error messages.
12752
d472514e 127532009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 12754
d472514e 12755 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
12756 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12757 were used for such events.
12758
d472514e
JB
12759 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12760 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 12761
d472514e 12762 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
12763 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12764
fb930676
KH
127652009-03-11 Kenichi Handa <handa@m17n.org>
12766
ff85581a
KH
12767 * font.h (font_open_by_spec): Extern it.
12768
c50b7e98
KH
12769 * font.c (font_open_by_spec): New function.
12770 (font_open_by_name): Use font_open_by_spec.
12771
fb930676
KH
12772 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12773 fontset of the frame.
12774
12775 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12776 modify the default font of frames that use this fontset.
12777 (num_auto_fontsets): New variable.
12778 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12779 name. Be sure to set FONTSET_ASCII to the correct font name.
12780 (update_auto_fontset_alist): New function.
12781
df4e8455
JB
127822009-03-11 Juanma Barranquero <lekktu@gmail.com>
12783
12784 * makefile.w32-in: Update dependencies.
12785
0a375797
AR
127862009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12787
12788 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12789
61313fa3
SM
127902009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12791
12792 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12793
b55103fb
CY
127942009-03-10 Chong Yidong <cyd@stupidchicken.com>
12795
12796 * lread.c (Feval_buffer): Doc fix.
12797
dde2559c
KH
127982009-03-09 Kenichi Handa <handa@m17n.org>
12799
12800 * charset.c (Qfile_name_handler_alist): Extern it.
12801 (load_charset_map_from_file): Temporarily bind
12802 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12803
df4e8455 128042009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 12805
47f588bb
GM
12806 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12807 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 12808
4ddf94bd
AR
128092009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12810
4c9bdfc2
AR
12811 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12812 (x_set_window_size): Change back to calculated method of setting
12813 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
12814 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12815 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12816
fe41ae9e
AR
12817 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12818
4c9bdfc2
AR
12819 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12820 accelerator in parens under GNUstep.
12821
825d0875
KH
128222009-03-06 Kenichi Handa <handa@m17n.org>
12823
12824 These changes are to detect incorrect composition sequence without
f3b3be74 12825 looking ahead the source. (Bug#2370)
825d0875
KH
12826
12827 * coding.h: Include "composite.h".
12828 (enum compisition_state): New enum.
12829 (struct compisition_status): New struct.
12830 (struct iso_2022_spec): New member cmp_status.
12831 (struct emacs_mule_spec): New struct.
12832 (struct coding_system): New members ctext_extended_segment_len and
12833 embedded_utf_8. Change the union member
12834 spec.emacs_mule_full_support to spec.emacs_mule.
12835
12836 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12837 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 12838 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
12839 (ADD_COMPOSITION_DATA): New arg nbytes.
12840 (emacs_mule_char): New arg cmp_status.
12841 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12842 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12843 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12844 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12845 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12846 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12847 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12848 (EMACS_MULE_COMPOSITION_END): New macro.
12849 (emacs_mule_finish_composition): New function.
12850 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12851 (decode_coding_emacs_mule): Avoid long looking ahead while
12852 handling composition.
12853 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12854 (ENCODE_COMPOSITION_RULE): New macro.
12855 (finish_composition): New function.
12856 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12857 (DECODE_COMPOSITION_START): New implementation.
12858 (DECODE_COMPOSITION_END): Likewise.
12859 (STORE_COMPOSITION_RULE): New macro.
12860 (decode_coding_iso_2022): Avoid long looking ahead while handling
12861 composition, CTEXT extended segment, and embedded UTF-8.
12862 (setup_coding_system): For a coding of type iso-2022, reset
12863 CODING_ISO_EXTSEGMENT_LEN (coding) and
12864 CODING_ISO_EMBEDDED_UTF_8 (coding).
12865 (get_translation): Delete arguments last_block, from_nchars,
12866 to_nchars. Callers changed.
12867 (produce_chars): Don't modify charbuf. Adjusted for the change of
12868 get_translation.
98a326f7 12869 (produce_composition): Adjust for the new annotation sequence.
825d0875 12870 (handle_composition_annotation): Likewise.
98a326f7 12871 (consume_chars): Adjust for the change of get_translation.
825d0875 12872
ccbc4452
AR
128732009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12874
4ddf94bd 12875 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 12876
988a7ddb
KH
128772009-03-05 Kenichi Handa <handa@m17n.org>
12878
12879 * font.c (font_select_entity): New function.
12880 (font_find_for_lface): Use font_select_entity to select a font.
12881
12882 * fontset.c (fontset_find_font): If a font found without
a8a3728b 12883 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
12884 font with C restriction.
12885
98a326f7 128862009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 12887
be1bce46 12888 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 12889
10ea2b82
JR
128902009-03-04 Jason Rumney <jasonr@gnu.org>
12891
2c93b248 12892 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 12893 characters that have already been read. (Bug#2569)
2c93b248 12894
10ea2b82
JR
12895 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12896 Log an error message if check_image_size failed.
12897 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 12898 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 12899
71a0c011
EZ
129002009-03-02 Eli Zaretskii <eliz@gnu.org>
12901
12902 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12903 when decoding process output.
12904
2f63bba8
RS
129052009-03-01 Richard M Stallman <rms@gnu.org>
12906
12907 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12908
12909 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12910
0a9564cb
EZ
129112009-02-28 Eli Zaretskii <eliz@gnu.org>
12912
12913 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12914 (decode_coding_emacs_mule, decode_coding_iso_2022)
12915 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12916 (decode_coding_raw_text, decode_coding_charset)
12917 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12918 Honor inhibit-eol-conversion. (Bug #2186)
12919
449148b3
JR
129202009-02-28 Jason Rumney <jasonr@gnu.org>
12921
12922 * coding.c (detect_coding_charset): If not checking latin extra,
12923 fail on characters between 0x80 and 0xA0. (Bug#2354)
12924
a4aee864
EZ
129252009-02-28 Eli Zaretskii <eliz@gnu.org>
12926
12927 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 12928 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 12929
d88bee5a
GM
129302009-02-27 Glenn Morris <rgm@gnu.org>
12931
12932 * callint.c (Finteractive): Doc fix.
12933
a808f22d
KH
129342009-02-27 Kenichi Handa <handa@m17n.org>
12935
12936 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12937
caf8d60c
CY
129382009-02-27 Chong Yidong <cyd@stupidchicken.com>
12939
12940 * font.c (font_style_to_value): Set value for unknown symbols to
12941 100 instead of 255.
b61137ea
CY
12942 (weight_table, slant_table, width_table): Treat "unspecified" as
12943 the default value.
caf8d60c 12944
1a0de25c
JB
129452009-02-26 Juanma Barranquero <lekktu@gmail.com>
12946
12947 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12948
8fc45744
JB
129492009-02-25 Juanma Barranquero <lekktu@gmail.com>
12950
107bd7d1
JB
12951 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12952 error as soon as a recursive load is detected.
8fc45744 12953
f097e223
AR
129542009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12955
12956 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12957 before caching.
12958
8810a12f
KH
129592009-02-24 Kenichi Handa <handa@m17n.org>
12960
12961 * fontset.c (fontset_find_font): Fix the condition for checking
12962 unavailable font.
12963
2c7d1565
GM
129642009-02-24 Glenn Morris <rgm@gnu.org>
12965
12966 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12967 whitespace that confuses documentation.
12968
a20878b6
MB
129692009-02-23 Miles Bader <miles@gnu.org>
12970
12971 * process.c (Flist_system_processes, Fprocess_attributes)
12972 (syms_of_process): Rename `system-process-attributes' to
12973 `process-attributes'.
12974
b3b58c01
AS
129752009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12976
1b3b981b
AS
12977 * coding.h (struct coding_system): Make safe_charsets a pointer to
12978 unsigned char.
12979 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12980 being 255.
12981 (SAFE_CHARSET_P): Likewise.
12982 (setup_iso_safe_charsets): Properly setup safe_charsets.
12983 (Fdefine_coding_system_internal): Likewise.
12984 (setup_coding_system): Likewise. Remove unneeded casts.
12985 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
12986 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12987 Remove unneeded casts.
1b3b981b 12988
b3b58c01
AS
12989 * insdel.c (del_range_2): Don't modify gap contents when called
12990 from decode_coding_object. (Bug#1809)
12991
0b6f228c
CY
129922009-02-21 Chong Yidong <cyd@stupidchicken.com>
12993
12994 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12995 Qfont_object.
12996 (Ftype_of): Recognize font objects.
12997
12998 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12999
bba3e508
SM
13000 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
13001 Definitions moved to data.c.
0b6f228c 13002
52f8870b
AR
130032009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13004
13005 * nsterm.m (x_make_frame_invisible): Unset async_visible,
13006 async_iconified. Based on a patch by Christian Lynbech
13007 <christian.lynbech@tieto.com>.
13008 (EmacsView-windowDidMiniaturize:): Unset async_visible.
13009
7087d5e9
GM
130102009-02-20 Glenn Morris <rgm@gnu.org>
13011
13012 * syntax.c (Fskip_chars_forward): Fix doc typo.
13013
41d2ceef
CY
130142009-02-20 Chong Yidong <cyd@stupidchicken.com>
13015
13016 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
13017
1a3b7ca6
CY
130182009-02-19 Chong Yidong <cyd@stupidchicken.com>
13019
13020 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
13021
73cce38d
KH
130222009-02-19 Kenichi Handa <handa@m17n.org>
13023
13024 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 13025 Don't overflow coding->carryover. (Bug#2370)
73cce38d 13026
a51092ee
DN
130272009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
13028
13029 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
13030
c423ecca
KH
130312009-02-18 Kenichi Handa <handa@m17n.org>
13032
13033 * font.c (font_check_otf_features): Fix handling of `nil' element.
13034 (Ffont_spec): Describe :lang and :otf in the docstring.
13035
4c1958f4
AS
130362009-02-16 Andreas Schwab <schwab@suse.de>
13037
13038 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
13039 string.
13040
5704f39a
KH
130412009-02-16 Kenichi Handa <handa@m17n.org>
13042
13043 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 13044 (Bug#1723)
5704f39a 13045
8f0085aa
CY
130462009-02-14 Chong Yidong <cyd@stupidchicken.com>
13047
a057d86a 13048 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
13049
13050 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
13051 (handle_line_prefix): Suppress wrapping of wrap prefixes.
13052
aff01dd9
EZ
130532009-02-14 Eli Zaretskii <eliz@gnu.org>
13054
13055 * msdos.c (MAX_SCREEN_BUF): New macro.
13056 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13057 Encode the entire run of glyphs sharing the same face, instead of
13058 doing that one glyph at a time (fixes a bug with displaying
13059 double-size characters).
13060
ba301db3
AR
130612009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13062
13063 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13064
13065 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13066 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 13067 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
13068
13069 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 13070 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 13071
51d861de
SM
130722009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13073
ac146f82 13074 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
13075 invisible areas.
13076
7fed8996
JR
130772009-02-12 Jason Rumney <jasonr@gnu.org>
13078
631ea4fb
JR
13079 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13080 (add_font_entity_to_list): Call check_face_name even when family
13081 is unspecified.
13082
cb4a3e42
JR
13083 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13084 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 13085 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 13086
7fed8996 13087 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 13088 raster fonts. (Bug#2219)
7fed8996 13089
895416e3
KH
130902009-02-12 Kenichi Handa <handa@m17n.org>
13091
13092 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13093 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13094 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 13095 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13096 (find_automatic_composition): While looking forward and backward,
13097 check static composition. Fix where to stop looking forward.
13098 (composition_adjust_point): Fix checking of static composition.
13099 (Fcomposition_get_gstring): Pay attention to
1dacf998 13100 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13101
13102 * lisp.h (fast_looking_at): Extern it.
13103
13104 * search.c (fast_looking_at): New function.
13105
51d861de 13106 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
13107 <struct glyph>.u.cmp.to.
13108 (append_composite_glyph): Likewise.
13109
51d861de 13110 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
13111 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13112 composition.
51d861de 13113 (append_composite_glyph): Adjust for the change of
895416e3
KH
13114 <strcut glyph>.u.cmp.to.
13115
8510724d
JB
131162009-02-11 Juanma Barranquero <lekktu@gmail.com>
13117
13118 * casetab.c (init_casetab_once):
13119 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13120 * font.c (font_update_lface):
13121 * fontset.c (Fnew_fontset):
13122 * ftfont.c (ftfont_drive_otf):
13123 * xfont.c (xfont_open):
13124 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13125
294fa707
SM
131262009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13127
13128 * fileio.c (Fwrite_region): !NILP -> CONSP.
13129
b5bfebec
AS
131302009-02-10 Andreas Schwab <schwab@suse.de>
13131
13132 * process.c (send_process): Properly relocate pointer into data
adab88bd 13133 when using encoded data. (Bug#2272)
b5bfebec 13134
cb84a2be
KH
131352009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13136
13137 * coding.c (detect_coding_charset): Fix previous change.
13138
89e09428
JR
131392009-02-08 Jason Rumney <jasonr@gnu.org>
13140
13141 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 13142 disappeared while hourglass was displayed. (Bug #2193)
89e09428 13143
4470a277
AS
131442009-02-07 Andreas Schwab <schwab@suse.de>
13145
13146 * unexelf.c (unexec): Fix error message.
13147
3175b12a
AR
131482009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13149
13150 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 13151 when modal window is active. (Bug #2152)
3175b12a
AR
13152 (applicationShouldTerminate:): Remove now-unneeded while loop
13153 around NSRunAlertPanel.
13154
13155 * nsmenu.m (popupSession): New file-global variable.
13156 (pop_down_menu): End the popupSession before closing dialog.
13157 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13158 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13159 don't query NSApp for events (just sleep instead).
13160
8434d0b8
EZ
131612009-02-07 Eli Zaretskii <eliz@gnu.org>
13162
51d861de
SM
13163 * coding.c (syms_of_coding) <translation-table-for-input>:
13164 Modify doc string to discourage use for character code unification.
8434d0b8 13165
aa82edfd
CY
131662009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13167
13168 * atimer.c (run_timers): Update pending_atimers.
13169
2d283c7c
CY
131702009-02-06 Chong Yidong <cyd@stupidchicken.com>
13171
eb306cab
CY
13172 * image.c (svg_load_image): Fix last change.
13173
2d283c7c
CY
13174 * xfns.c (Fx_create_frame): Signal an error if no font is
13175 found (Bug#2147).
13176
4d8e170e
JB
131772009-02-05 Juanma Barranquero <lekktu@gmail.com>
13178
13179 * character.c (syms_of_character) <script-representative-chars>:
13180 Fix typo in docstring.
13181
c96169a0
AR
131822009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13183
13184 * nsmenu.m (pop_down_menu): New function.
13185 (ns_popup_dialog): Call it on unwind.
13186 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13187 call timer_check() (Bug#2154).
13188 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13189 handling_signal is set.
13190 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13191
31fd7c5c 13192 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
13193
13194 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13195
13196 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13197
51d861de
SM
13198 * keyboard.c (poll_for_input_1, handle_async_input):
13199 Set handling_signal under HAVE_NS.
c96169a0 13200
aacd8ba1
GM
132012009-02-04 Glenn Morris <rgm@gnu.org>
13202
13203 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13204
4cb75c4b
KH
132052009-02-04 Kenichi Handa <handa@m17n.org>
13206
13207 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13208
13209 * charset.c (Fchar_charset): New optional arg restriction.
13210
13211 * coding.h (coding_system_charset_list): Extern it.
13212
13213 * coding.c (coding_system_charset_list): New function.
13214
13215 * composite.c: Include coding.h and termhooks.h.
13216 (composition_gstring_p): Fix for the terminal case.
13217 (composition_gstring_width): Likewise.
13218 (fill_gstring_body): Likewise.
13219 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13220 the frame.
13221 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13222 is within a composition.
867d4bb3 13223 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
13224
13225 * term.c (encode_terminal_code): Fix handling of composition.
13226 (produce_composite_glyph): For static composition, get pixel_width
13227 from struct composition.
13228
826ba17e
AS
132292009-02-02 Andreas Schwab <schwab@suse.de>
13230
13231 * unexelf.c (unexec): Handle unaligned bss offset.
13232
8ad093db
AR
132332009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13234
13235 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13236 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 13237
8ad093db
AR
13238 * keyboard.c (handle_interrupt): Don't call
13239 quit_throw_to_read_char() under NS.
d0a76a6e 13240
8ad093db
AR
13241 * blockinput.h: Remove NS-specific code.
13242
4d18a7a2
DN
132432009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13244
db878925
DN
13245 * dispnew.c (window_change_signal): Don't try to get the size of a
13246 suspended tty frame.
13247 * term.c (Fresume_tty): Resize if the size has changed while the
13248 tty was suspended.
13249
4d18a7a2
DN
13250 * alloc.c (mark_stack): Properly conditionalize previous change.
13251
8984df7c
JB
132522009-01-30 Juanma Barranquero <lekktu@gmail.com>
13253
13254 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13255 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13256 Remove; this code is not used on Windows.
13257
75f4f1ac
EZ
132582009-01-30 Eli Zaretskii <eliz@gnu.org>
13259
13260 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13261 EOLs that also has stray ^M characters.
13262
07a1e794
JB
132632009-01-30 Juanma Barranquero <lekktu@gmail.com>
13264
13265 * atimer.c (run_timers, alarm_signal_handler):
13266 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13267 * w32inevt.c (w32_console_read_socket):
13268 * w32term.c (w32_read_socket):
13269 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13270
a8b11cc9
CY
132712009-01-30 Chong Yidong <cyd@stupidchicken.com>
13272
13273 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13274 Initialize it as a relative filename pattern.
13275 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13276 (Fcall_process_region): Simplify temp file creation using
13277 temporary-file-directory.
13278
c279587b
EZ
132792009-01-29 Eli Zaretskii <eliz@gnu.org>
13280
13281 * msdos.c: Rename pending_signals to msdos_pending_signals.
13282 (sig_suspender, sigprocmask): Adjust.
13283
a8fe3242
CY
132842009-01-29 Chong Yidong <cyd@stupidchicken.com>
13285
13286 * keyboard.c (pending_signals): New var.
13287 (poll_for_input, input_available_signal, init_keyboard): Set it.
13288 (process_pending_signals): New function.
13289
13290 * lisp.h (QUIT): Check pending_signals instead of
13291 interrupt_input_pending. Use process_pending_signals.
13292
51d861de 13293 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 13294
51d861de 13295 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
13296
13297 * sysdep.c (emacs_write): Use process_pending_signals.
13298
13299 * xterm.c (XTread_socket): Update pending_signals.
13300
13301 * w32term.c (w32_read_socket): Update pending_signals.
13302
13303 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13304
6570a1c4
KH
133052009-01-29 Kenichi Handa <handa@m17n.org>
13306
13307 * xftfont.c (xftfont_has_char): New function.
13308 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13309
d72a4afa
AR
133102009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13311
13312 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13313 under GNUstep.
13314 (ns_query_color): New declaration.
13315
13316 * nsterm.m (ns_confirm_quit): New variable.
13317 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13318 (EmacsApp-applicationShouldTerminate:): Use it.
13319 (EmacsPrefsController): Let user set it.
13320 (ns_query_color): New function.
13321 (ns_defined_color): Use it.
13322 (ns_initialize): Drop.
13323 (ns_term_init): Add two lines from ns_initialize(), and set
13324 input_interrupt_mode to nil.
13325
13326 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 13327 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 13328
9fe78804
KH
133292009-01-28 Kenichi Handa <handa@m17n.org>
13330
13331 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
13332 (fontset_get_font_group): Remember that no font-group is specified
13333 for C.
9fe78804 13334
fa57de36
CY
133352009-01-27 Chong Yidong <cyd@stupidchicken.com>
13336
930600e9
CY
13337 * fns.c (concat): Check for string overflow (bug#1787).
13338
fa57de36
CY
13339 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13340 Quadruple undo limits (bug#1501).
13341
7179ce7b
KH
133422009-01-27 Kenichi Handa <handa@m17n.org>
13343
13344 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13345 directly use GT_Get_Char_index.
13346
13347 * xftfont.c (struct xftfont_info): New member `index'.
13348
13349 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 13350 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 13351
5be8fcc0
CY
133522009-01-26 Kenichi Handa <handa@m17n.org>
13353
13354 * fontset.c (fontset_find_font): Fix handling of non-cons return
13355 value of fontset_get_font_group.
13356 (fontset_font): Revert last change.
13357
19ae3e61
JR
133582009-01-26 Jason Rumney <jasonr@gnu.org>
13359
13360 * w32font.c (w32font_list_internal): Return quickly if registry is
13361 unknown. Simplify final return.
13362 (add_font_entity_to_list): Break complex logic down into more
13363 manageable chunks. Move unknown registry check to
13364 w32font_list_internal.
13365
8612b71a
AR
133662009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13367
13368 Changes to remove Feval calls from GUI under NS.
13369
d8038940
JB
13370 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13371 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
13372 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13373
13374 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13375 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13376 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13377 instead of NON_ASCII_KEYSTROKE_EVENT.
13378 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13379 (EmacsApp-applicationShouldTerminate:): Query user.
13380 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13381 instead of Feval.
13382
13383 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13384
13385 * keyboard.c (kbd_buffer_get_event): Check for it.
13386 (keys_of_keyboard): Define lispy keys for
13387 ns-put/unput-working-text.
13388
13389 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13390 versions.
13391 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13392
6288ae55
CY
133932009-01-25 Chong Yidong <cyd@stupidchicken.com>
13394
13395 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 13396 setting current_buffer directly. (Bug#2044)
6288ae55 13397
289e7f8f
CY
133982009-01-24 Chong Yidong <cyd@stupidchicken.com>
13399
5ce87308 13400 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 13401 any work. (Bug#1952, bug#1990).
5ce87308 13402
64cc3cf6 13403 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 13404
b3243e6f
AR
134052009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13406
13407 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
13408 (ns_no_defaults): New declaration.
13409 (main): Use it.
e0d2e69a 13410
d900b2af 13411 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 13412
d900b2af 13413 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 13414
d900b2af
AR
13415 * nsterm.m (ns_no_defaults): New variable.
13416 (ns_initialize): Don't read defaults when ns_no_defaults.
13417 (EmacsView-readSelectionFromPasteboard:)
13418 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 13419 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
13420 (ns_dumpglyphs_stretch): New function.
13421 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 13422 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 13423
e0d2e69a
AR
13424 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13425
3ac71f5d
CY
134262009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13427
13428 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13429 call for Sparc64.
13430
3fe53a83
AR
134312009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13432
13433 * nsfns.m:
13434 * nsgui.h:
13435 * nsmenu.m:
13436 * nsselect.m:
13437 * nsterm.h:
13438 * nsterm.m: Remove '23' comments that indicated code added during
13439 update from emacs-20 -> emacs-23.
13440
10f87c6f 134412009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
13442
13443 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 13444 ns_alternate_modifier. (Bug#1217)
a3b53a85 13445
c7cef62d
AR
13446 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13447 Display all shortcuts, including those w/o super modifier.
13448
575fb8bd
AR
13449 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13450
918b848b
CY
134512009-01-22 Chong Yidong <cyd@stupidchicken.com>
13452
13453 * fileio.c (Vwrite_region_post_annotation_function)
13454 (Vwrite_region_annotation_buffers): New vars.
13455 (build_annotations_unwind): Just reset
13456 Vwrite_region_annotation_buffers.
13457 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13458 Call write-region-post-annotation-function.
13459 (build_annotations): Add to Vwrite_region_annotation_buffers if
13460 buffer changes.
13461
a39e2539
AR
134622009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13463
13464 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13465 Tiger.
51d861de
SM
13466 * nsfns.m (ns_do_applescript):
13467 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 13468
35ed44db
AR
134692009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13470
13471 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13472
cbe0b5bf
AR
134732009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13474
13475 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 13476
6049d3a0
AR
13477 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13478
13479 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
13480 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13481 handle Ctrl-tab. (Bug#1841)
13482 (ns_get_color): Use unsigned long long for scanned hex string value.
13483 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 13484 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 13485 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 13486 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 13487 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 13488 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 13489 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 13490
d3810c21 13491 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 13492 DPI. (Bug#1316)
d3810c21
AR
13493 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13494 values in onTiger section.
4c7077c3 13495
e301e634
CY
134962009-01-19 Chong Yidong <cyd@stupidchicken.com>
13497
7f82490b
CY
13498 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13499 Check return value of font_spec_from_name.
64cc3cf6 13500 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
13501
13502 * font.c (font_spec_from_name): Return Qnil if font name could not
13503 be parsed.
13504 (font_parse_name): Treat a `?' character as part of an XLFD.
13505
e301e634
CY
13506 * fns.c (Fsubstring): Doc fix.
13507
1c0db158
KH
135082009-01-19 Kenichi Handa <handa@m17n.org>
13509
51d861de 13510 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
13511 (ftfont_list): Likewise.
13512
acf20901
JB
135132009-01-18 Juanma Barranquero <lekktu@gmail.com>
13514
fff4e459
JB
13515 * dbusbind.c (Fdbus_register_signal):
13516 * process.c (conv_sockaddr_to_lisp):
13517 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13518
acf20901
JB
13519 * callproc.c (Fgetenv_internal): Doc fix.
13520
e7abcdfb
CY
135212009-01-16 Chong Yidong <cyd@stupidchicken.com>
13522
13523 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13524 it is not even used.
13525
b60861e6
GM
135262009-01-16 Glenn Morris <rgm@gnu.org>
13527
13528 * font.c (Ffont_variation_glyphs): Silence compiler.
13529
8db52afe
JB
135302009-01-15 Juanma Barranquero <lekktu@gmail.com>
13531
13532 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13533 Reported by David Robinow <drobinow@gmail.com>.
13534
4cddb209
KH
135352009-01-15 Kenichi Handa <handa@m17n.org>
13536
51d861de 13537 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 13538
f247f67b
JR
135392009-01-14 Jason Rumney <jasonr@gnu.org>
13540
13541 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 13542 never a fontset. (Bug#1562)
f247f67b 13543
f56a4450
KH
135442009-01-14 Kenichi Handa <handa@m17n.org>
13545
13546 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 13547 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 13548
4e99855e
CY
135492009-01-13 Chong Yidong <cyd@stupidchicken.com>
13550
13551 * font.c (font_clear_prop): If clearing the family, clear the font
13552 width index too.
13553
fff4e459 13554 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 13555
24f01470
JB
135562009-01-12 Juanma Barranquero <lekktu@gmail.com>
13557
13558 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13559 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13560 functions, use sizeof.
13561
a41240a3
MR
135622009-01-12 Martin Rudalics <rudalics@gmx.at>
13563
13564 * keyboard.c (read_char): Fix case where last_nonmenu_event
13565 returned a bad value with submenus. (Bug#447)
13566
944636b8
CY
135672009-01-12 Chong Yidong <cyd@stupidchicken.com>
13568
13569 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13570 family, clear the font width index too.
13571
0dad7c6f
JR
135722009-01-11 Jason Rumney <jasonr@gnu.org>
13573
13574 * keyboard.c (cmd_error_internal): Exit when errors occur before
13575 frame creation and not in daemon mode. (Bug#1836)
13576
7c2363af
CY
135772009-01-10 Chong Yidong <cyd@stupidchicken.com>
13578
13579 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13580 of a display vector, backtrack.
13581 (try_window_reusing_current_matrix): Check glyph type before
13582 referencing charpos member.
13583
97b1b294
EZ
135842009-01-10 Eli Zaretskii <eliz@gnu.org>
13585
13586 Fix Bug #876:
13587
13588 * coding.c (inhibit_null_byte_detection): New variable.
13589 (detect_coding, detect_coding_system): Don't pay attention to null
13590 bytes if inhibit_null_byte_detection is non-zero.
51d861de 13591 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
13592 <inhibit-iso-escape-detection>: Doc fix.
13593
4624b6e3
JR
135942009-01-09 Jason Rumney <jasonr@gnu.org>
13595
13596 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 13597 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
13598 Only report Unicode Plane 2 fonts as unicode-sip.
13599
323b840c
CY
136002009-01-09 Chong Yidong <cyd@stupidchicken.com>
13601
51d861de
SM
13602 * xfaces.c (Fx_font_family_list): Delete function.
13603 Move compatibility version to faces.el.
323b840c 13604
51d861de 13605 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 13606
eba7400d
MR
136072009-01-09 Martin Rudalics <rudalics@gmx.at>
13608
13609 * frame.c (x_set_frame_parameters): Remember requested value for
13610 fullscreen before it's reset by the parameter handler.
13611
4b09796d
GM
136122009-01-09 Glenn Morris <rgm@gnu.org>
13613
13614 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 13615 (last_command_event): ... and update all users.
4b09796d
GM
13616 (last_input_char): For clarity, rename to...
13617 (last_input_event): ... and update all users.
13618 (last-command-char, last-input-char): Move to subr.el as aliases.
13619 * cmds.c, commands.h: Update for last_command_char rename.
13620
14ccea62
CY
136212009-01-08 Chong Yidong <cyd@stupidchicken.com>
13622
51d861de 13623 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 13624
5f004711
JR
136252009-01-08 Jason Rumney <jasonr@gnu.org>
13626
13627 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13628 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13629 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13630 Don't declare.
fff4e459 13631 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
13632 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13633
b71f6f73
KH
136342009-01-07 Kenichi Handa <handa@m17n.org>
13635
50b06221 13636 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 13637 remember the coding system used for decoding in
50b06221
KH
13638 coding_system (Bug#1039).
13639
b71f6f73 13640 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 13641 breaking the loop. (Bug#870)
b71f6f73
KH
13642 (decode_coding_utf_16, decode_coding_emacs_mule)
13643 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13644 (decode_coding_charset): Likewise.
13645
56f668f7
MR
136462009-01-05 Martin Rudalics <rudalics@gmx.at>
13647
13648 * frame.c (x_set_frame_parameters): Make sure height (width) get
13649 applied when fullwidth (fullheight) is set. (Bug#1522)
13650
5da9424d
JB
136512009-01-04 Juanma Barranquero <lekktu@gmail.com>
13652
13653 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13654 (utc_base): Declare as ULONGLONG, not long double.
13655 (convert_time_raw): Delete.
13656 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13657 (initialize_utc_base): New function.
13658 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13659 (convert_from_time_t): Use initialize_utc_base; compute result with
13660 64-bit arithmetic.
13661 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13662
c4605e09
EZ
136632009-01-03 Eli Zaretskii <eliz@gnu.org>
13664
9acef61c 13665 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
13666 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13667 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13668 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13669 [!subprocesses]: Define.
13670 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13671 (Flist_system_processes, Fsystem_process_attributes)
13672 [!subprocesses]: Call list_system_processes and
13673 system_process_attributes instead of returning Qnil.
13674
9acef61c
JB
13675 * dosfns.c (system_process_attributes, list_system_processes):
13676 New functions.
c4605e09
EZ
13677
13678 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13679
13680 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13681 Don't use the default (no-op) implementation.
13682
8b7d0a16
JR
136832009-01-03 Jason Rumney <jasonr@gnu.org>
13684
a6d46bc1
JR
13685 * keyboard.c (parse_modifiers_uncached): Wheel events are
13686 clicks (bug#687).
13687
8b7d0a16
JR
13688 * w32term.c (x_query_colors, x_query_color): New functions.
13689
13690 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13691 (svg_load_image): Cast returned pointers from dynamically loaded
13692 functions. Eliminate W32 specific code.
13693
bfe11752
DN
136942009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13695
89e2438a
DN
13696 * nsfns.m (x_set_foreground_color, x_set_background_color)
13697 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13698 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13699 x_ prefix instead of ns_. Update references.
13700 (syms_of_nsfns): Add a FIXME comment.
13701
13702 * nsterm.m (x_set_cursor_type): New prototype.
13703 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13704
bfe11752
DN
13705 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13706 for Solaris instead of incorrectly providing Qutime and Qcutime.
13707
031da700
EZ
137082009-01-02 Eli Zaretskii <eliz@gnu.org>
13709
13710 * w32.c (process_times): Compute sum of utime and stime.
13711 (system_process_attributes): Add Qtime to the alist.
13712
13713 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13714 and add them to the alist.
13715
13716 * process.c (top level) <Qtime, Qctime>: New variables.
13717 (syms_of_process): staticpro them.
13718 (Fsystem_process_attributes): Add their documentation to the doc
13719 string.
13720
13721 * process.h: Declare Qtime and Qctime.
13722
df23bf08
JR
137232009-01-02 Jason Rumney <jasonr@gnu.org>
13724
9acef61c 13725 * image.c (Qgobject): New symbol.
df23bf08
JR
13726 (syms_of_image): Initialize it.
13727 (init_svg_functions): Load some functions from gobject library.
13728
5bbdf7aa
DN
137292009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13730
13731 * frame.c (make_terminal_frame): Remove redundant code and useless
13732 block.
13733
63136da6
AS
137342009-01-01 Andreas Schwab <schwab@suse.de>
13735
13736 * process.c (conv_sockaddr_to_lisp): Add workaround for
13737 getsockname bug on BSD.
13738
9ef69046
CY
137392009-01-01 Chong Yidong <cyd@stupidchicken.com>
13740
d6fafbe0
CY
13741 * xfns.c (x_create_tip_frame): Set border width of the X window.
13742
51d861de 13743 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 13744
f9c34147
JR
137452009-01-01 Jason Rumney <jasonr@gnu.org>
13746
9acef61c 13747 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
13748 Don't block input, as per earlier xterm.c changes.
13749
f5497e45
AR
137502008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13751
13752 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13753 (ns_appkit_version_int): New function.
13754 (x-server-version): Use ns_appkit_version_int and follow 21+
13755 convention of returning 3 integers.
13756
c19cab20
KH
137572008-12-30 Kenichi Handa <handa@m17n.org>
13758
13759 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13760 (CHAR_SURROGATE_PAIR_P): New macro.
13761
13762 * font.h (struct font_driver): New member get_variation_glyphs.
13763
9acef61c 13764 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
13765 (Ffont_variation_glyphs): New function.
13766 (syms_of_font): Defsubr it.
13767
13768 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13769 ftfont_variation_glyphs.
13770 (setup_otf_gstring): New function.
13771 (ftfont_drive_otf): Use it.
13772 (ftfont_shape_by_flt): Handle variation selector.
13773 (ftfont_variation_glyphs): New function.
13774
28cd591f
MR
137752008-12-30 Martin Rudalics <rudalics@gmx.at>
13776
13777 * frame.c (Vemacs_iconified): Remove.
13778
7f714baf
JR
137792008-12-30 Jason Rumney <jasonr@gnu.org>
13780
13781 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 13782 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 13783
9d2d22ab
CY
137842008-12-30 Chong Yidong <cyd@stupidchicken.com>
13785
13786 * indent.c (Fvertical_motion): Don't advance iterator if we have
13787 reseated to the desired position.
13788
13789 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13790 checking for pos match.
13791
545312c2
KH
137922008-12-30 Kenichi Handa <handa@m17n.org>
13793
1ede3eb6
KH
13794 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13795 just get the low 8-bit of the code.
13796
545312c2
KH
13797 * font.c (font_intern_prop): Validate str as multibyte.
13798
bd7bbf29
DN
137992008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13800
31e0750e
DN
13801 * dispextern.h (struct face): Move lface and hash from the middle
13802 of bitfields.
13803
bd7bbf29
DN
13804 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13805
b5672e7c
DN
138062008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13807
13808 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13809 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13810 instead of intervals.h.
13811
d704470f
AS
138122008-12-26 Andreas Schwab <schwab@suse.de>
13813
13814 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13815 cons.
13816
54b33868
MR
138172008-12-26 Martin Rudalics <rudalics@gmx.at>
13818
13819 * textprop.c (Qminibuffer_prompt): New variable.
13820 (syms_of_textprop): Initialize it.
13821 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13822 in minibuffer-prompt face. (Bug#1662)
13823
40b615d6
JR
138242008-12-25 Jason Rumney <jasonr@gnu.org>
13825
13826 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13827
baae5c2d
JR
138282008-12-24 Jason Rumney <jasonr@gnu.org>
13829
13830 * ralloc.c (r_alloc_reset_variable): New function.
13831
13832 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 13833 record of what points where. (Bug#716)
baae5c2d 13834
a9051c88
DN
138352008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13836
13837 * minibuf.c (read_minibuf): Follow the non-interactive case when
13838 running as a daemon, before detaching.
13839
8b146312
AS
138402008-12-22 Andreas Schwab <schwab@suse.de>
13841
13842 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13843 * gtkutil.c (free_widget_value): Use xfree instead of free.
13844
56f2de10
MR
138452008-12-22 Martin Rudalics <rudalics@gmx.at>
13846
13847 * frame.c (delete_frame): New function derived from
13848 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13849 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13850 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13851 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13852 * frame.h: Extern delete_frame.
13853 * window.c (window_loop):
13854 * terminal.c (delete_terminal):
13855 * xterm.c (x_connection_closed):
13856 * xfns.c (Fx_hide_tip):
9acef61c 13857 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 13858
1fc200d6
JR
138592008-12-21 Jason Rumney <jasonr@gnu.org>
13860
13861 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13862 when character maps to .notdef character.
13863
5e252df2
SM
138642008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13865
13866 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13867
99b72cc4
JR
138682008-12-20 Jason Rumney <jasonr@gnu.org>
13869
13870 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 13871 a graphical frame on Windows. (Bug#1325)
99b72cc4 13872
acc49a52
JD
138732008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13874
13875 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13876
6ea15123
CY
138772008-12-20 Chong Yidong <cyd@stupidchicken.com>
13878
13879 * minibuf.c (Fread_buffer): Doc fix.
13880
b2dab6c8
JR
138812008-12-20 Jason Rumney <jasonr@gnu.org>
13882
54ea0c87 13883 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 13884 server name in UNC paths. (Bug#719)
54ea0c87 13885
b2dab6c8 13886 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 13887 charbuf. (Bug#1035)
b2dab6c8 13888
6d1921be
DN
138892008-12-19 Daniel Engeler <engeler@gmail.com>
13890
13891 * sysdep.c (serial_configure): Fix typo.
13892
53934c98
DN
138932008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13894
13895 * sysdep.c: Include alloca.h.
f4f634e8
DN
13896 (system_process_attributes): Add implementation for Solaris.
13897
13898 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 13899
06e111a6
DN
139002008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13901
13902 Reorganize implementation of Flist_system_processes and
13903 Fsystem_process_attributes. No functional changes.
13904 * process.c: Don't #include pwd.h, grp.h and limits.h.
13905 (Flist_system_processes): Just call list_system_processes.
13906 (Fsystem_process_attributes): Just call system_process_attributes.
13907 (procfs_list_system_processes, time_from_jiffies)
13908 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13909 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13910
13911 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13912 (list_system_processes): Rename from
13913 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13914 Provide a do nothing implementation.
13915 (system_process_attributes): Rename from
13916 procfs_list_system_processes.
13917 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 13918 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
13919
13920 * w32.c (list_system_processes): Rename from
13921 w32_list_system_processes.
13922 (system_process_attributes): Rename from
13923 w32_system_process_attributes.
13924
13925 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13926
13927 * process.h (w32_list_system_processes)
13928 (w32_system_process_attributes): Remove.
362654a6
JB
13929 (list_system_processes, system_process_attributes):
13930 New prototypes.
06e111a6 13931
6a705b23
KH
139322008-12-19 Kenichi Handa <handa@m17n.org>
13933
13934 * xfont.c (xfont_decode_coding_xlfd): New function.
13935 (xfont_encode_coding_xlfd): New function.
13936 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13937 (xfont_list): Decode and encode XLFD by iso-8859-1.
13938 (xfont_match): Likewise.
13939 (xfont_list_family): Likewise.
13940 (xfont_open): Likewise.
13941
d66c0241 13942 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
13943 names are utf-8.
13944
d66c0241 13945 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
13946 names are utf-8.
13947
5a130941
JD
139482008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13949
13950 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13951 changed.
bfd20325
JD
13952 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13953 clicked on a detached tool bar button.
5a130941 13954
fd95644b
DN
139552008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13956
13957 * emacs.c (main): Print and error and exit when no data is read
13958 from the pipe.
13959
e6eee6ae
JR
139602008-12-17 Jason Rumney <jasonr@gnu.org>
13961
13962 * w32font.c (w32font_has_char): Always return -1.
13963
a35dd56b
KH
139642008-12-16 Kenichi Handa <handa@m17n.org>
13965
13966 * font.c (font_open_entity): Fix previous change.
13967
0e3635c2
DN
139682008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13969
13970 * process.c: Include <limits.h>.
13971
d4835507 139722008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
13973
13974 * font.c (font_update_drivers): Fix mistake in reconstructing the
13975 driver list.
13976
139772008-12-16 Chong Yidong <cyd@stupidchicken.com>
13978
13979 * font.c (font_clear_cache): Fix format of font cache data.
13980
e2cbc401
CY
139812008-12-15 Chong Yidong <cyd@stupidchicken.com>
13982
13983 * xftfont.c (xftfont_open): Free Xft font pattern if
13984 XftFontOpenPattern fails.
13985
13986 * xterm.c (x_free_frame_resources): Remove extraneous call to
13987 free_frame_faces.
13988
b131d535
CY
139892008-12-13 Chong Yidong <cyd@stupidchicken.com>
13990
13991 * xterm.c (x_delete_display): Move xim_close_dpy call to
13992 x_delete_terminal.
13993 (x_delete_terminal): Call xim_close_dpy.
13994
e6df5336
JR
139952008-12-13 Jason Rumney <jasonr@gnu.org>
13996
13997 * w32font.c (intern_font_name): New function.
13998 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13999 (w32font_open_internal, Fx_select_font): Decode font name.
14000 (fill_in_logfont, list_all_matching_fonts): Encode font name.
14001
14002 * w32font.h (intern_font_name): Declare new function.
14003
14004 * w32uniscribe.c (add_opentype_font_name_to_list):
14005 Use intern_font_name.
14006
20d68145
CY
140072008-12-13 Chong Yidong <cyd@stupidchicken.com>
14008
9f2554de
CY
14009 * frame.c (Fdelete_frame): Call free_font_driver_list.
14010
3d9bec9a
CY
14011 * font.c (free_font_driver_list): Implement missing function.
14012
20d68145
CY
14013 * w32term.c (w32_term_init): Don't initialize the image cache
14014 here; it will be done in init_frame_faces.
14015
14016 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
14017 (struct x_display_info): Remove unused member null_pixel.
14018 New member xim_callback_data.
20d68145
CY
14019
14020 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
14021 (xim_initialize): Save pointer to callback function data.
14022 (xim_close_dpy): Free callback function data. Call XCloseIM,
14023 reverting 2008-11-04 change by David Smith.
14024 (x_term_init): Don't initialize the image cache here; it will be
14025 done in init_frame_faces. Remove ancient "null_pixel" cruft.
14026 (x_delete_display): Free x_dnd_atoms member.
14027
96f9306b
KH
140282008-12-13 Kenichi Handa <handa@m17n.org>
14029
ef1b0ba7 14030 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 14031 Argument type changed. Handle a font-spec too.
96f9306b 14032 (font_score): Check Vface_font_rescale_alist.
6dec9044 14033 (font_open_entity): Likewise. (Bug#1547)
96f9306b 14034
ef1b0ba7 14035 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 14036
8d5b4964
CY
140372008-12-13 Chong Yidong <cyd@stupidchicken.com>
14038
14039 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
14040
e6df5336
JR
140412008-12-12 Jason Rumney <jasonr@gnu.org>
14042
bba3e508
SM
14043 * w32fns.c (x_display_info_for_name, Fx_open_connection):
14044 Set Vwindow_system_version to the real w32 major version.
e6df5336 14045
97c6058a
DN
140462008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
14047
14048 * term.c (init_tty): Move setting the terminal name before the
14049 potential user: maybe_fatal.
14050
ec4e88d7
CY
140512008-12-11 Chong Yidong <cyd@stupidchicken.com>
14052
ef1b0ba7 14053 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 14054 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 14055
b4233ec9
JR
140562008-12-11 Jason Rumney <jasonr@gnu.org>
14057
8ec71e23 14058 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 14059 SYMBOL_CHARSET. (Bug#547)
8ec71e23 14060
b4233ec9 14061 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 14062 size for surrogates. (Bug#1096, bug#872)
b4233ec9 14063
011a0143
JB
140642008-12-11 Juanma Barranquero <lekktu@gmail.com>
14065
14066 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14067
3c309f34
JB
140682008-12-11 Juanma Barranquero <lekktu@gmail.com>
14069
14070 * process.c (Fsystem_process_attributes, syms_of_process):
14071 Fix typo in name of Ssystem_process_attributes.
14072 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14073
fedc6ab5
JB
140742008-12-11 Juanma Barranquero <lekktu@gmail.com>
14075
14076 * syntax.c (Fmodify_syntax_entry): Doc fix.
14077
ba3de0e8
JB
140782008-12-10 Juanma Barranquero <lekktu@gmail.com>
14079
14080 * font.c (Ffont_spec): Move usage to end of docstring.
14081
174f1c74
JR
140822008-12-10 Jason Rumney <jasonr@gnu.org>
14083
14084 * w32font.c (Qcham): New symbol.
14085 (font_supported_scripts): Add cham, and comments for other new
14086 scripts in bitfield from OpenType spec.
9d32f818
JR
14087 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14088 contain characters beyond the bmp.
174f1c74 14089
7b649478
KH
140902008-12-10 Kenichi Handa <handa@m17n.org>
14091
14092 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 14093 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
14094 Qunicode_sip.
14095
2133e2d1
JB
140962008-12-10 Juanma Barranquero <lekktu@gmail.com>
14097
14098 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14099 (Fcoding_system_put): Use QCdefault_char.
14100 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14101
9af886ee
CY
141022008-12-09 Chong Yidong <cyd@stupidchicken.com>
14103
74d819eb
CY
14104 * xftfont.c (syms_of_xftfont): Fix typo.
14105
4ccfa1c0 14106 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 14107
7c19d3ae
DN
141082008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14109
14110 * emacs.c (main): Close daemon_pipe on exec.
14111
567826bb
CY
141122008-12-08 Chong Yidong <cyd@stupidchicken.com>
14113
14114 * termchar.h (struct tty): New members termcap_term_buffer and
14115 termcap_strings_buffer.
14116
14117 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 14118 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
14119 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14120 All callers changed.
14121 (init_tty): Store termcap data and string buffers in new struct
14122 tty members termcap_term_buffer and termcap_strings_buffer.
14123 (delete_tty): Free them.
4ccfa1c0 14124 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 14125
aa96c42b
SZ
141262008-12-07 Seiji Zenitani <zenitani@mac.com>
14127
14128 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 14129 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 14130
b7e1d896
CY
141312008-12-06 Chong Yidong <cyd@stupidchicken.com>
14132
14133 * coding.c (make_conversion_work_buffer): Disable buffer
14134 modification hooks in the work buffer.
14135
b5ec91a5
EZ
141362008-12-05 Eli Zaretskii <eliz@gnu.org>
14137
14138 * process.c (procfs_system_process_attributes): If `nread' has a
14139 negative value, assign zero to it.
14140
a5d2a52b
CY
141412008-12-05 Chong Yidong <cyd@stupidchicken.com>
14142
68c5540b 14143 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 14144
7bf1bb21
KH
141452008-12-05 Kenichi Handa <handa@m17n.org>
14146
14147 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14148 second character is a combining character.
14149
2fdc7d00
EZ
141502008-12-05 Eli Zaretskii <eliz@gnu.org>
14151
14152 * process.c (procfs_system_process_attributes): Don't use cmd,
14153 cmdsize, and q without initializing them first.
14154
bf6bfba8
JR
141552008-12-04 Jason Rumney <jasonr@gnu.org>
14156
14157 * w32font.c (w32font_draw): Initialize orig_clip before getting
14158 it, and delete it when finished.
14159
a3b1a468
DN
141602008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14161
14162 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14163 case when running as a daemon before detaching.
14164
8b8be8eb
JB
141652008-12-03 Juanma Barranquero <lekktu@gmail.com>
14166
805f2638 14167 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 14168
b1bde622
KH
141692008-12-03 Kenichi Handa <handa@m17n.org>
14170
e500c47d
KH
14171 * font.c (font_at): Set `multibyte' at first.
14172
ca516334
KH
14173 * coding.c (decode_coding_charset): Check type of an element of
14174 vector VALIDS.
7bf1bb21 14175 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 14176
4ccfa1c0 14177 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
14178 (font_for_char): Likewise.
14179
1e5ecd37
CY
141802008-12-03 Chong Yidong <cyd@stupidchicken.com>
14181
d5b01609 14182 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
14183 (font_update_lface): Handle fonts with corrupted size specs,
14184 i.e. non-int and non-float.
d5b01609 14185
11e3a6e4 14186 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 14187 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 14188 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 14189
ab06788b
CY
14190 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14191
1e5ecd37 14192 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 14193 underline_minimum_offset for underline position.
1e5ecd37 14194
63c125ab
DN
141952008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14196
14197 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14198
14199 * character.c (c_string_width): Specify the type for LEN.
14200
3a8406e1
KH
142012008-12-03 Kenichi Handa <handa@m17n.org>
14202
4ccfa1c0 14203 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 14204 (decode_coding_utf_8): Likewise.
4ccfa1c0 14205 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 14206 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 14207
651df7d9
CY
142082008-12-02 Chong Yidong <cyd@stupidchicken.com>
14209
14210 * keyboard.c (make_lispy_position): Only use PT if the selected
14211 window is current.
14212
1f625c6c
AS
142132008-12-02 Andreas Schwab <schwab@suse.de>
14214
f7741ce9
AS
14215 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14216
1f625c6c
AS
14217 * doprnt.c (doprnt1): Fix size of charbuf.
14218
92bc2678
CY
142192008-12-02 Chong Yidong <cyd@stupidchicken.com>
14220
14221 * keyboard.c (timer_check): Revert last change.
14222
93b9e8cc
JB
142232008-12-02 Juanma Barranquero <lekktu@gmail.com>
14224
14225 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14226
fd7a37d5
JB
142272008-12-01 Juanma Barranquero <lekktu@gmail.com>
14228
14229 * makefile.w32-in: Update dependencies.
14230 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14231
c115043b
AS
142322008-12-01 Andreas Schwab <schwab@suse.de>
14233
14234 * font.c (register_font_driver): Use xmalloc.
14235 (font_put_frame_data): Likewise.
14236
f5668d2a
CY
142372008-12-01 Chong Yidong <cyd@stupidchicken.com>
14238
860d96be
CY
14239 * xfaces.c (realize_x_face): Make abort condition clearer.
14240
f5668d2a
CY
14241 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14242
379c17e7
CY
142432008-11-30 Chong Yidong <cyd@stupidchicken.com>
14244
14245 * keyboard.c (timer_check): After a timer runs, ensure that the
14246 selected window's buffer is current.
14247
35f36d65
JB
142482008-11-30 Juanma Barranquero <lekktu@gmail.com>
14249
f952c61c
JB
14250 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14251 It was accidentally restored by the Unicode merge.
14252
35f36d65
JB
14253 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14254
b23077df
JB
142552008-11-29 Juanma Barranquero <lekktu@gmail.com>
14256
14257 * w32proc.c: Include "coding.h".
14258 (Fw32_short_file_name): Encode filename passed to Windows API.
14259 (Fw32_long_file_name): Encode filename passed to Windows API and
14260 decode back the result. (Bug#1433)
14261
b8ebe9dd
KH
142622008-11-29 Kenichi Handa <handa@m17n.org>
14263
8cc53f96
KH
14264 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14265 not before accessing it.
14266
b8ebe9dd
KH
14267 * charset.c (Fdefine_charset_internal): After calculating
14268 min_char, max_char, and fastmap, copy the charset structure again.
14269 (encode_char): Fix the previous change.
14270
59bc82c0
SZ
142712008-11-28 Seiji Zenitani <zenitani@mac.com>
14272
14273 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14274
14275 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14276
14277 * nsterm.m (x_set_frame_alpha): New function.
14278
32247e3d
EZ
142792008-11-27 Eli Zaretskii <eliz@gnu.org>
14280
14281 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14282
b003e5ff
JB
142832008-11-27 Juanma Barranquero <lekktu@gmail.com>
14284
14285 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14286 pointer to check_face_name.
14287
708550f5
KH
142882008-11-27 Kenichi Handa <handa@m17n.org>
14289
14290 * category.h (SET_CATEGORY_SET): Call set_category_set.
14291 (set_category_set): Extern it.
14292
14293 * category.c (hash_get_category_set): New function.
bba3e508 14294 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
14295 char_table_ref_and_range. Call hash_get_category_set to get a
14296 category set to store in the table.
14297
14298 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14299 Funify_charset.
14300
2ae37cf0 14301 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
14302 (DECODE_CHAR): Check if the decoder vector is ready.
14303 (ENCODE_CHAR): Check if the encoder char-table is ready.
14304 (maybe_unify_char): Extern it.
14305
14306 * charset.c (Vchar_unified_charset_table): Delete it.
14307 (inhibit_load_charset_map): New variable.
14308 (temp_charset_work): New variable.
14309 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14310 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14311 New macros.
bba3e508
SM
14312 (load_charset_map): Meaning of control_flag changed.
14313 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
14314 temp_charset_work.
14315 (load_charset): New argument control_flag.
14316 (map_charset_for_dump): New function.
14317 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14318 map_charset_for_dump.
14319 (Fdefine_charset_internal): If the charset method is MAP, load
14320 mapping tables by calling load_charset.
14321 (Funify_charset): Don't load a mapping table but directly set
14322 Vchar_unify_table.
14323 (maybe_unify_char): New function.
14324 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14325 Handle the case of inhibit_load_charset_map being nonzero.
14326 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14327 Handle the case of inhibit_load_charset_map being nonzero.
14328 (Fclear_charset_maps): Just free temp_charset_work.
14329 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14330 variable.
14331
bba3e508 14332 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
14333 change of char_table_ref_and_range.
14334 (char_table_ref_and_range): Change the meaning of argument FROM
14335 and TO. Now the caller must provide initial values for *FROM
14336 and *TO.
14337
bba3e508 14338 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
14339 char_table_ref_and_range.
14340 (fontset_get_font_group): Likewise.
14341 (Ffontset_info): Likewise.
14342
bba3e508 14343 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
14344 char_table_ref_and_range. For char-table, put boundary between
14345 non-ASCII and 8-bit characters.
14346
14347 * print.c (print_object): For bool-vector, delete unnecessary
14348 check of ASCII_BYTE_P.
14349
9196133b
JR
143502008-11-26 Jason Rumney <jasonr@gnu.org>
14351
14352 * w32font.c (w32font_open_internal): Don't include external
9acef61c 14353 leading in font height. (Bug#879)
9196133b 14354
9f688acf
GM
143552008-11-26 Glenn Morris <rgm@gnu.org>
14356
14357 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14358 redefinition with ifdef. (Bug#1383)
14359
90d19aff
AR
143602008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14361
14362 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14363
4ccfa1c0 143642008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
14365
14366 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14367 New EmacsView methods.
14368 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14369 Fixes bug #1048,1357,1414.
14370
143712008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14372
14373 Fix bug #1362.
14374 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14375 is not an indexed color.
14376 * nsterm.m (free_indexed_color): Add argument checking.
14377 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14378
e7d5ecb3
CY
143792008-11-24 Chong Yidong <cyd@stupidchicken.com>
14380
14381 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14382 Document confirm-after-completion value for
14383 minibuffer-completion-confirm.
14384
c285743c
JR
143852008-11-24 Jason Rumney <jasonr@gnu.org>
14386
14387 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14388 warning.
14389
b0857706
JR
143902008-11-23 Jason Rumney <jasonr@gnu.org>
14391
14392 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14393 restored before returning.
14394
14395 * w32font.c (check_face_name): New function.
14396 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 14397 fonts. (Bug#642)
b0857706 14398
ee50ff07
MR
143992008-11-22 Martin Rudalics <rudalics@gmx.at>
14400
14401 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14402 confirm-nonexistent-file-or-buffer in doc-string.
14403
b8ff72fa
SM
144042008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14405
14406 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14407 Fix copy/paste typo. Add checks.
14408
cee53ed4
KH
144092008-11-21 Kenichi Handa <handa@m17n.org>
14410
14411 * coding.c (detect_coding_iso_2022): Reject invalid composition
14412 sequence.
14413 (DECODE_COMPOSITION_START): If the current source is the last
14414 block, and the current composition doesn't end, regard this
14415 sequence as invalid.
14416 (decode_coding_iso_2022): Handle invalid composition sequence.
14417
f6ef1e65
MR
144182008-11-20 Martin Rudalics <rudalics@gmx.at>
14419
14420 * window.c (coordinates_in_window): Don't return
14421 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14422 line when the window is not the rightmost one. (Bug#1372)
14423
e08b1705
MR
144242008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14425
14426 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14427
ad98e89f
EZ
144282008-11-15 Eli Zaretskii <eliz@gnu.org>
14429
14430 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14431 and bright_bg if noninteractive is non-zero.
14432
fb098a4b
CY
144332008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14434
14435 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14436 x_draw_glyph_string_background.
14437
14438 * w32term.c (x_draw_glyph_string): Likewise.
14439
ce952b6e
CY
144402008-11-15 Chong Yidong <cyd@stupidchicken.com>
14441
14442 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14443 the next glyph string once past the overhang width.
14444
14445 * nsterm.m (ns_draw_glyph_string): Likewise.
14446
14447 * w32term.c (x_draw_glyph_string): Likewise.
14448
26ea7079
CY
144492008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14450
14451 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14452 double file close.
14453
1c33c906
MR
144542008-11-14 Martin Rudalics <rudalics@gmx.at>
14455
14456 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14457 dedicated status of window before attempting to display another
14458 buffer in it.
14459
8fc29035
JB
144602008-11-14 Juanma Barranquero <lekktu@gmail.com>
14461
14462 * msdos.c (Fmsdos_long_file_names):
14463 (syms_of_msdos) <dos-unsupported-char-glyph>:
14464 * dosfns.c (Fint86): Fix typos in docstrings.
14465
55fb4286
EZ
144662008-11-14 Eli Zaretskii <eliz@gnu.org>
14467
14468 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14469
3fda0315
KY
144702008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14471
14472 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14473
7e849c17
CY
144742008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14475
14476 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14477
14478 * frame.h: Negative alpha means "don't touch".
14479
14480 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14481
14482 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14483
b9fd67bd
DN
144842008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14485
14486 * hftctl.c:
14487 * chpdef.h:
14488 * acldef.h: Remove files used only for systems no longer supported.
14489
14490 * Makefile.in: Fix .o alphabetical ordering.
14491 (hftctl.o): Remove dependency, file removed.
14492 (keymap.o, print.o): Depend on charset.h.
14493
d5998e03
KH
144942008-11-10 Kenichi Handa <handa@m17n.org>
14495
2ae37cf0 14496 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 14497
be70e183
CY
144982008-11-08 Chong Yidong <cyd@stupidchicken.com>
14499
14500 * dired.c (file_name_completion): If completion_ignore_case is
14501 enabled, ignore case when checking completion-regexp-list.
14502
7cf94eac
EZ
145032008-11-08 Eli Zaretskii <eliz@gnu.org>
14504
14505 * vm-limit.c (get_lim_data): Fix last change.
14506
ee107a89
KH
145072008-11-08 Kenichi Handa <handa@m17n.org>
14508
14509 * character.c (Fget_byte): New function.
14510 (syms_of_character): Defsubr Fget_byte.
14511
5fd15622
CY
145122008-11-07 Chong Yidong <cyd@stupidchicken.com>
14513
14514 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14515 cursor position is valid after scrolling.
14516
13d62fad
JB
145172008-11-06 Juanma Barranquero <lekktu@gmail.com>
14518
14519 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14520
a1dd2936
GM
145212008-11-06 Glenn Morris <rgm@gnu.org>
14522
14523 * xterm.c (handle_one_xevent): Don't let popup menus cause
14524 mouse-autoselect-window related window switching. (Bug#1261)
14525
860cd236
CY
145262008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14527
14528 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14529
653a3150
AS
145302008-11-04 Andreas Schwab <schwab@suse.de>
14531
14532 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14533
870f5cac
CY
145342008-11-03 Chong Yidong <cyd@stupidchicken.com>
14535
14536 * xfns.c (Fx_wm_set_size_hint): New function.
14537
1e02f3cb
MR
145382008-11-03 Martin Rudalics <rudalics@gmx.at>
14539
14540 * textprop.c (Fprevious_single_char_property_change): Return 0
14541 when there's no change in a string. (Bug#1301)
14542
e630dfc6
MR
145432008-11-02 Martin Rudalics <rudalics@gmx.at>
14544
14545 * frame.c (do_switch_frame): New argument NORECORD passed to
14546 Fselect_window.
14547 (Fselect_frame): New argument NORECORD passed to
14548 do_switch_frame.
14549 (Fset_frame_selected_window): New argument NORECORD passed to
14550 Fselect_frame.
14551 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14552 in call of do_switch_frame.
14553 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14554 Handle NORECORD argument in call of Fselect_frame.
14555 * lisp.h (do_switch_frame, Fselect_frame)
14556 (Fset_frame_selected_window): Adjust declarations.
14557 * window.c (select_frame_norecord): New function.
14558 (run_window_configuration_change_hook): Use it and call
14559 Fselect_frame with NORECORD set.
14560 (Fselect_window): Pass NORECORD to Fselect_frame.
14561 (Fset_window_configuration): Handle NORECORD argument in call of
14562 do_switch_frame.
14563 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14564 Fset_frame_selected_window.
14565 * keyboard.c (command_loop_1): Handle NORECORD in call of
14566 Fselect_frame (currently ifdefd).
14567
9020b223
GM
145682008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14569
14570 * emacs.c (USAGE2): Untabify.
14571
793ffee8
SM
145722008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14573
14574 * composite.c (fill_gstring_header): Fix copy/paste typo.
14575
ab6d1131
MR
145762008-10-31 Martin Rudalics <rudalics@gmx.at>
14577
14578 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14579 (Fother_window): Rename argument and rewrite doc-string.
14580 (select_window_norecord): Fix return value. (Bug#1276)
14581
601a9cf1
JB
145822008-10-30 Juanma Barranquero <lekktu@gmail.com>
14583
14584 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14585 new frames overriding foreground for tooltips. Based on similar patch
14586 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14587
813b0652
CY
145882008-10-29 Chong Yidong <cyd@stupidchicken.com>
14589
14590 * emacs.c (Fdaemon_initialized): Initialize nfd.
14591
4414f58f
MR
145922008-10-29 Martin Rudalics <rudalics@gmx.at>
14593
14594 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14595 (Fwindow_text_height): Clarify doc-strings.
14596 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14597 doc-string of window-scroll-functions.
14598
ecdcaa09
RS
145992008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14600
14601 * category.c (syms_of_category): Fix typo in docstring.
14602
23fe745a
JB
146032008-10-28 Juanma Barranquero <lekktu@gmail.com>
14604
14605 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14606 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14607 Fix typos in docstrings.
14608
ff808935
DN
146092008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14610
14611 * emacs.c (daemon_pipe): Make non-static.
14612 (IS_DAEMON): Move definition ...
14613 * lisp.h (IS_DAEMON): ... here.
14614 (daemon_pipe): Declare.
14615 (is_daemon): Remove.
14616 * dispnew.c (init_display): Use IS_DAEMON.
14617
fc012771
SM
146182008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14619
14620 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14621 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14622
14623 * emacs.c (is_daemon): Remove.
14624 (main): Don't set is_daemon.
14625 (IS_DAEMON): New macro.
14626 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 14627 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
14628 parent exits.
14629 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14630
d8bdbe6f
CY
146312008-10-27 Chong Yidong <cyd@stupidchicken.com>
14632
d1a072bf
CY
14633 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14634 over-sized glyph, draw it with the default glyph width.
14635
e2e325aa
CY
14636 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14637 glyph, draw it with the default glyph width.
14638
14639 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14640 glyph, draw it with the default glyph width.
14641
d8bdbe6f
CY
14642 * xdisp.c (try_scrolling): When computing the distance from the
14643 scroll margin to PT, try moving some distance past the window
14644 bottom before giving up.
14645
7bfac547
MR
146462008-10-27 Martin Rudalics <rudalics@gmx.at>
14647
14648 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14649 (Fset_window_buffer): Explain in doc-string that a window can be
14650 "strongly" dedicated to its buffer.
14651
4ff029f6
DN
146522008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14653
14654 * emacs.c (daemon_name): New variable.
14655 (main): Deal with --daemon=SERVER_NAME.
14656 (Fdaemonp): Return a name if one was passed to --daemon.
14657
5790ef40
DN
146582008-10-26 Romain Francoise <romain@orebokech.com>
14659
f9bd0df9 14660 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
14661 (main): Create a pipe before forking, make the parent exit only after
14662 the child has closed its end of the pipe. Move closing the
14663 descriptors ...
14664 (Fdaemon_initialized): ... here. New function.
14665
f5385255
SM
146662008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14667
4d632321
SM
14668 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14669 the previous unoptimized table.
14670
f5385255
SM
14671 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14672 the distinction between non-nil and non-t value of `dedicated'.
14673
6c56a0f3
CY
146742008-10-25 Chong Yidong <cyd@stupidchicken.com>
14675
14676 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 14677 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 14678
fec89261
MR
146792008-10-25 Martin Rudalics <rudalics@gmx.at>
14680
14681 * window.c (Fget_buffer_window, Fdelete_windows_on)
14682 (Freplace_buffer_in_windows): Make buffer argument optional and
14683 rename to buffer_or_name.
14684
34fcddd0
CY
146852008-10-24 Chong Yidong <cyd@stupidchicken.com>
14686
f5385255
SM
14687 * xdisp.c (handle_single_display_spec, handle_display_prop):
14688 Undo 2005-05-16 change.
34fcddd0
CY
14689 (handle_stop): Pop iterator if it's loaded with an empty string.
14690 (get_overlay_strings_1): Don't save iterator if it's loaded with
14691 an empty string (bug#1201).
14692
064766f2
KH
146932008-10-24 Kenichi Handa <handa@m17n.org>
14694
14695 * ftfont.c (ftfont_otf_features): Fix previous change.
14696 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14697 calling ftfont_otf_features.
14698
f9bd0df9 146992008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
14700
14701 * font.c (font_match_p): Fix for the case that a vector of
14702 characters is in script-representative-chars.
14703
1dae9197
MA
147042008-10-24 Michael Albinus <michael.albinus@gmx.de>
14705
14706 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 14707 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
14708 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14709 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 14710 macro. (Bug#1186)
1dae9197 14711
f9bd0df9 147122008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
14713
14714 * s/sol2-10.h: New file.
14715
878a4584
JB
147162008-10-23 Juanma Barranquero <lekktu@gmail.com>
14717
14718 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14719 poor beast has survived 9+ years and the jump from xterm.c!).
14720
cd265ca6
MR
147212008-10-23 Martin Rudalics <rudalics@gmx.at>
14722
14723 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14724 Reword doc-string.
f5385255 14725 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 14726
472a4dc9
JB
147272008-10-23 Juanma Barranquero <lekktu@gmail.com>
14728
14729 * character.c (syms_of_character) <script-representative-chars>:
14730 <unicode-category-table>: Doc fixes.
14731
159bd5a2
NF
147322008-10-23 Noah Friedman <friedman@splode.com>
14733
14734 * coding.c (make_conversion_work_buffer): Check that
14735 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14736 Fget_buffer_create.
14737
49f9c344
KH
147382008-10-23 Kenichi Handa <handa@m17n.org>
14739
14740 * font.c (font_add_log): Check the values of extra properties.
14741
12bb3111
MR
147422008-10-22 Martin Rudalics <rudalics@gmx.at>
14743
14744 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14745 Reword doc-string.
14746 (Fset_window_parameter): Use NILP.
14747 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 14748 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 14749
bbeb4e99
JB
147502008-10-22 Juanma Barranquero <lekktu@gmail.com>
14751
14752 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14753
147542008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
14755
14756 * nsfns.m (ns_appkit_version): New function.
14757 (x-server-version): Use it.
14758 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14759 (x-server-vendor): Don't check_ns().
14760
14761 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14762
a9b555d3
JB
147632008-10-22 Juanma Barranquero <lekktu@gmail.com>
14764
14765 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14766 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14767
4626499f
KH
147682008-10-22 Kenichi Handa <handa@m17n.org>
14769
e3681952
KH
14770 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14771 scripts.
14772
4626499f
KH
14773 * category.c (word_boundary_p): Check scripts instead of charset.
14774 Handle nil value in word-separating-categories and
14775 word-combining-categories.
14776 (syms_of_category): Fix docstrings of word-separating-categories
14777 and word-combining-categories.
14778
1560f91a
EZ
147792008-10-21 Eli Zaretskii <eliz@gnu.org>
14780
14781 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14782 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14783
f4668441
MR
147842008-10-21 Martin Rudalics <rudalics@gmx.at>
14785
14786 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14787 Rename arg "buffer" to "buffer_or_name".
14788 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14789 it optional.
14790 (no_switch_window): Remove since the return value is not used.
a9b555d3 14791 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
14792 Consider window as dedicated when Fwindow_dedicated_p returns a
14793 non-nil value.
14794 * lisp.h: Remove prototype for no_switch_window.
14795
fd75ddb2
JD
147962008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14797
14798 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 14799 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 14800
07295713
KH
148012008-10-21 Kenichi Handa <handa@m17n.org>
14802
14803 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14804 check Vlatin_extra_code_table.
14805
712adc82
EZ
148062008-10-20 Eli Zaretskii <eliz@gnu.org>
14807
14808 * fileio.c (Fset_file_modes): Doc fix.
14809
f549eb0b
MA
148102008-10-19 Michael Albinus <michael.albinus@gmx.de>
14811
14812 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14813 in arrays.
14814
aac0c6e3
MR
148152008-10-19 Martin Rudalics <rudalics@gmx.at>
14816
14817 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14818 Mention kill-buffer in doc-string.
14819 (Fset_window_buffer): Reinsert tem check removed in last commit.
14820 (Fenlarge_window, Fshrink_window): Have argument names and
14821 doc-string follow Elisp manual more closely.
14822
148232008-10-18 Eli Zaretskii <eliz@gnu.org>
14824
14825 * fileio.c (Fset_file_modes): Doc fix.
14826
148272008-10-18 Martin Rudalics <rudalics@gmx.at>
14828
14829 * window.c (Fwindow_width, Fset_window_start)
14830 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
14831 (Fdelete_windows_on, Freplace_buffer_in_windows):
14832 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
14833 (Fwindow_dedicated_p): Make window argument optional.
14834 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14835 (Fset_window_buffer): Respect any non-nil dedicated value for
14836 window. Rename "buffer" argument to "buffer_or_name".
14837
148382008-10-18 Ulrich Mueller <ulm@gentoo.org>
14839
14840 * m/sh3.h: New file, machine description for SuperH.
14841
148422008-10-17 Martin Rudalics <rudalics@gmx.at>
14843
14844 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14845
148462008-10-17 Kenichi Handa <handa@m17n.org>
14847
14848 * ftfont.c (ftfont_otf_features): Fix indexing
14849 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14850
148512008-10-16 Magnus Henoch <mange@freemail.hu>
14852
14853 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14854 (Fdbus_call_method_asynchronously): Ditto.
14855 This change makes C-h f display the argument list.
14856
148572008-10-16 Chong Yidong <cyd@stupidchicken.com>
14858
14859 * fileio.c (Fexpand_file_name): Doc fix.
14860
14861 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14862 of :foreground and :background equivalent to unspecified (20.x
14863 compatibility).
14864
148652008-10-15 Eli Zaretskii <eliz@gnu.org>
14866
14867 * buffer.c (syms_of_buffer): Doc fix.
14868
148692008-10-14 Kenichi Handa <handa@m17n.org>
14870
14871 * font.c (font_clear_prop): When clearing font width, clear the
14872 average width field too.
14873
148742008-10-12 Andreas Schwab <schwab@suse.de>
14875
14876 * ftfont.c (ftfont_shape_by_flt): Make static.
14877 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14878
14879 * font.c: Don't include <m17n-flt.h>.
14880
148812008-10-10 Eli Zaretskii <eliz@gnu.org>
14882
14883 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14884
148852008-10-09 Eli Zaretskii <eliz@gnu.org>
14886
14887 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14888 away code.
14889
148902008-10-09 Chong Yidong <cyd@stupidchicken.com>
14891
14892 * dispnew.c (update_text_area): Avoid looping due to large glyph
14893 overhangs (bug#1070).
14894
148952008-10-09 Kenichi Handa <handa@m17n.org>
14896
14897 * fontset.c (face_for_char): If face->fontset is negative, just
14898 return ascii_face.
14899
f5385255
SM
14900 * font.c (font_delete_unmatched): Fix previous change.
14901 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
14902
149032008-10-09 Martin Rudalics <rudalics@gmx.at>
14904
14905 * frame.c (Fraise_frame): On text-only terminals select frame in
14906 order to make it visible. (Bug#1061)
14907
149082008-10-08 Chong Yidong <cyd@stupidchicken.com>
14909
14910 * fontset.c (fontset_find_font): Check frame validity.
14911
149122008-10-07 Chong Yidong <cyd@stupidchicken.com>
14913
a9b555d3 14914 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
14915 (xg_display_close): Allow Emacs to close all displays (bug#985).
14916
149172008-10-06 Andreas Schwab <schwab@suse.de>
14918
f5385255 14919 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
14920
149212008-10-06 Chong Yidong <cyd@stupidchicken.com>
14922
f5385255 14923 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 14924
a9b555d3 14925 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
14926
14927 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14928 during initialization.
14929
149302008-10-04 Eli Zaretskii <eliz@gnu.org>
14931
14932 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14933 whole thing on MSDOS frames as well as on a TTY.
14934
14935 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14936 well as for TTY.
14937 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14938 well as on a TTY.
14939
14940 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14941 as well as for TTY.
14942
14943 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14944
14945 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14946 MSDOS frames as well.
14947
149482008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14949
14950 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14951 correct arguments.
b71ac3dd 14952 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
14953
149542008-10-03 Glenn Morris <rgm@gnu.org>
14955
14956 * emacs.c (USAGE1): Add --daemon.
14957
149582008-10-02 Eli Zaretskii <eliz@gnu.org>
14959
14960 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14961 100, so it's in percents as advertised.
14962
149632008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14964
14965 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14966 (ns_output.current_cursor, ns_output.desired_cursor)
14967 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14968 (FRAME_NEW_CURSOR_COLOR): Remove.
14969
14970 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 14971 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
14972 enumeration (HOLLOW_BOX_CURSOR, etc.).
14973
14974 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14975 (draw_window_cursor): Simplify code.
f5385255
SM
14976 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14977 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 14978 updates manually.
a9b555d3
JB
14979 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14980 Use core Emacs cursor types.
aac0c6e3 14981
b8ff72fa 14982 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
14983
149842008-10-02 Martin Rudalics <rudalics@gmx.at>
14985
14986 * process.c (Faccept_process_output): Fix doc-string.
14987
149882008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
14989
14990 * gmalloc.c (__sbrk): Also define for uClibc.
14991
14992 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14993 for uClibc.
14994
149952008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14996
14997 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14998 styles.
14999 (nsfont_open): Reenable the cache.
15000
150012008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15002
15003 * font.c (font_matching_entity): Reflect ATTRS in font selection.
15004 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
15005
150062008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
15007
15008 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
15009 a suspended terminal.
15010
150112008-09-30 Michael Albinus <michael.albinus@gmx.de>
15012
15013 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
15014
150152008-09-30 Eli Zaretskii <eliz@gnu.org>
15016
15017 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
15018
150192008-09-30 Chong Yidong <cyd@stupidchicken.com>
15020
15021 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
15022 in a continued line coincides with a line beginning.
15023
150242008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15025
15026 * nsfont.m (nsfont_trait_distance): Fix bug.
15027 (nsfont_list): Return a list rather than a vector (syncs with Handa
15028 changes of 2008-05-14).
15029 (nsfont_open): Improve logging.
15030
150312008-09-29 Andreas Schwab <schwab@suse.de>
15032
15033 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
15034
150352008-09-28 Martin Rudalics <rudalics@gmx.at>
15036
15037 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
15038 name as char-resolve-modifiers.
15039 Reported by: Markus Triska <markus.triska@gmx.at>
15040
150412008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15042
15043 * dispnew.c (init_display): Return earlier when running as a daemon.
15044
150452008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15046
15047 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
15048
150492008-09-27 Eli Zaretskii <eliz@gnu.org>
15050
15051 * composite.c (Fcomposition_get_gstring)
15052 (Fcompose_region_internal, Fcompose_string_internal)
15053 (Ffind_composition_internal): Doc fix.
15054 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15055 (syms_of_composite) <auto-composition-function>: Doc fix.
15056 (syms_of_composite) <composition-function-table>: Doc fix.
15057
150582008-09-25 Chong Yidong <cyd@stupidchicken.com>
15059
15060 * search.c (wordify): New argument for lax word-ends.
15061 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15062
150632008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15064
15065 * lisp.h (is_daemon): Declare.
15066 * dispnew.c (init_display): Do not try to initialize the terminal
15067 when running as a daemon.
15068
150692008-09-22 Chong Yidong <cyd@stupidchicken.com>
15070
15071 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15072 x_display_pixel_height.
15073
150742008-09-22 Martin Rudalics <rudalics@gmx.at>
15075
15076 * undo.c (record_point): Don't call Fundo_boundary for first
15077 change. (Bug#731)
15078
150792008-09-22 Juanma Barranquero <lekktu@gmail.com>
15080
15081 * emacs.c (Fdaemonp): Doc fix.
15082
150832008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15084
15085 * emacs.c (main): Place #ifdef in the proper place.
15086
150872008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15088
15089 * emacs.c (standard_args): Add --daemon.
15090 (main): Disconnect from the terminal when --daemon is passed.
15091 (is_daemon): New variable.
15092 (Fdaemonp): New function.
15093 (syms_of_emacs): Defsubr it.
15094
150952008-09-20 Chong Yidong <cyd@stupidchicken.com>
15096
15097 * xdisp.c (get_next_display_element): Handle string display
15098 correctly when checking for the end of a box run.
15099
151002008-09-20 Glenn Morris <rgm@gnu.org>
15101
15102 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15103 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15104 (Frename_file): Avoid copying to trash if a rename involves
15105 a delete. (Bug#964).
15106
151072008-09-20 Eli Zaretskii <eliz@gnu.org>
15108
15109 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15110 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15111 frames as well as termcap frames.
15112 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15113 get_named_tty.
15114
151152008-09-19 Eli Zaretskii <eliz@gnu.org>
15116
15117 * process.c (procfs_system_process_attributes): Fix cmdline in
15118 case /proc/PID/cmdline is empty.
15119
15120 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15121 x_display_pixel_height.
15122
151232008-09-19 Juanma Barranquero <lekktu@gmail.com>
15124
15125 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15126
15127 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15128 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15129
151302008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15131
15132 * dispextern.h (struct it): Move line_wrap away from the middle of
15133 bitfields. Move voffset in struct iterator_stack_entry after the
15134 bitfields. Move tab_width near after another short.
15135
151362008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15137
15138 * frame.h (struct frame): Move alpha from the middle of bitfields.
15139
15140 * window.h (struct window): Move frozen_window_start_p after the
15141 rest of the bitfields to reduce padding.
15142
151432008-09-18 Chong Yidong <cyd@stupidchicken.com>
15144
15145 * xterm.h (x_display_info): Remove `height' and `width' members.
15146
15147 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15148
15149 * w32term.h (w32_display_info): Remove `height', `width',
15150 `height_in', and `width_in' members.
15151
b8ff72fa
SM
15152 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15153 New functions.
aac0c6e3
MR
15154 (x_calc_absolute_position): Use them.
15155 (x_term_init): Omit removed `height' and `width' members.
15156
b8ff72fa
SM
15157 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15158 New functions.
aac0c6e3
MR
15159 (w32_read_socket, x_calc_absolute_position): Use them.
15160 (w32_initialize_display_info, w32_term_init): Omit removed members
15161 of w32_display_info.
15162
b8ff72fa
SM
15163 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15164 New functions.
15165 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 15166
b8ff72fa
SM
15167 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15168 New functions.
aac0c6e3
MR
15169 (x_calc_absolute_position): Use them.
15170 (x_term_init): Omit removed `height' and `width' members.
15171
15172 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
15173 (compute_tip_xy):
15174 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
15175 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15176 x_display_pixel_width.
15177
151782008-09-18 Kenichi Handa <handa@m17n.org>
15179
15180 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15181 (composition_compute_stop_pos): Fix handling of static composition.
15182 (Fcomposition_get_gstring): Check FROM and TO at first.
15183
151842008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15185
46e722a9 15186 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
15187 mixup (YAILOM).
15188
151892008-09-17 Chong Yidong <cyd@stupidchicken.com>
15190
15191 * indent.c (Fvertical_motion): Use position reported by iterator
15192 instead of PT for determining screen motion (bug#943).
15193
151942008-09-17 Romain Francoise <romain@orebokech.com>
15195
15196 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15197
151982008-09-17 Kenichi Handa <handa@m17n.org>
15199
15200 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15201
15202 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15203 if necessary.
15204
152052008-09-16 Kenichi Handa <handa@m17n.org>
15206
15207 * coding.c (make_conversion_work_buffer): Avoid calling
15208 Fget_buffer_create if it is not necessary.
15209
152102008-09-15 Martin Rudalics <rudalics@gmx.at>
15211
15212 * window.c (Fselect_window): Don't update window_select_count and
15213 use_time when norecord is not nil.
15214
152152008-09-14 Kenichi Handa <handa@m17n.org>
15216
15217 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15218 specpdl_ptr.
15219
152202008-09-12 Kenichi Handa <handa@m17n.org>
15221
15222 * indent.c (scan_for_column): Don't handle automatic composition
15223 if the current buffer is not associated with a window.
15224
15225 * composite.c (composition_reseat_it): If the current buffer is
15226 not associated with a window, ignore the automatic composition.
15227 (find_automatic_composition): Likewise.
15228
152292008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15230
15231 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15232 (Fgpm_mouse_stop): Use it.
15233 * termhooks.h (close_gpm): Declare.
15234 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15235 connection if Gpm_GetEvent fails.
15236
15237 * window.c (set_window_buffer): Always preserve current-buffer.
15238
152392008-09-12 Glenn Morris <rgm@gnu.org>
15240
15241 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15242
152432008-09-11 Glenn Morris <rgm@gnu.org>
15244
15245 * charset.c (charset-map-path): Doc fix.
15246
152472008-09-10 Kenichi Handa <handa@m17n.org>
15248
15249 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15250
15251 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15252 compose a grapheme cluster with the preceding base glyph.
15253
15254 * composite.c (composition_compute_stop_pos): Fix previous change.
15255 Reset cmp_it->id to -1 at first.
15256
152572008-09-10 Glenn Morris <rgm@gnu.org>
15258
15259 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15260
152612008-09-09 Chong Yidong <cyd@stupidchicken.com>
15262
15263 * keyboard.c (read_key_sequence): Reapply translation maps when
15264 switching keyboards.
15265
152662008-09-09 Kenichi Handa <handa@m17n.org>
15267
15268 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15269 characters.
15270
15271 * composite.c (FORWARD_CHAR): Fix calculation
15272 of (POSITION).pos_byte.
15273 (composition_compute_stop_pos): Limit the search of composition to
15274 at most 500 characters ahead. If we reach the limit or find a
15275 newline, set cmp_it->ch to -2 and return 0.
15276 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15277
152782008-09-08 Kenichi Handa <handa@m17n.org>
15279
15280 * indent.c (Fvertical_motion): Be sure to set
15281 it_overshoot_expected if it.cmp_it.id is non-negative.
15282
152832008-09-07 Andreas Schwab <schwab@suse.de>
15284
15285 * callproc.c (Fcall_process): Don't hold references to string data
15286 across garbage collection. Move initialisation of new_argv down
15287 to avoid compiler bug.
15288
152892008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15290
15291 * process.c (Fsystem_process_attributes): Doc fix.
15292
152932008-09-07 Chong Yidong <cyd@stupidchicken.com>
15294
15295 * callproc.c (Fcall_process): Canonicalize current directory name.
15296
15297 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15298 iterator advances to the next line if the current line ends in a
15299 continued tab.
15300
153012008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15302
15303 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15304 member to point to cmp_from.
15305
15306 * xdisp.c: Doc fix for references to gidx data member.
15307
153082008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15309
15310 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15311
153122008-09-07 Kenichi Handa <handa@m17n.org>
15313
15314 * composite.c (FORWARD_CHAR): Check STOP after
15315 incrementing (POSITION).pos.
15316
153172008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15318
15319 * process.c (Fsystem_process_attributes): Doc fix.
15320
153212008-09-06 Chong Yidong <cyd@stupidchicken.com>
15322
15323 * keyboard.c (Ftop_level): Doc fix.
15324
153252008-09-06 Eli Zaretskii <eliz@gnu.org>
15326
15327 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15328 minibuffer, don't let lower part of menu invade the echo area.
15329
15330 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15331 "char *q" to access menu text and advance through it. Revert the
15332 change that displayed ">" instead of ASCII character 0x10.
15333
153342008-09-05 Eli Zaretskii <eliz@gnu.org>
15335
15336 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15337 toggle boxes and radio buttons on MS-DOS as well.
15338
153392008-09-05 Kenichi Handa <handa@m17n.org>
15340
15341 * composite.c (autocmp_chars): Check lookback count.
15342 (composition_compute_stop_pos): Set cmp_it->lookback.
15343 (composition_reseat_it): Check lookback count.
15344 (struct position_record): New struct.
15345 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15346 (find_automatic_composition): New function.
15347 (composition_adjust_point): Use find_automatic_composition.
15348
15349 * dispextern.h (struct composition_it): New member lookback.
15350
153512008-09-02 Chong Yidong <cyd@stupidchicken.com>
15352
15353 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15354 if moving by a single line.
15355
153562008-09-02 Andreas Schwab <schwab@suse.de>
15357
15358 * xterm.c (x_delete_display): Fix merge error.
15359
15360 * fileio.c (Fexpand_file_name): Remove unused variables.
15361
153622008-09-02 Eli Zaretskii <eliz@gnu.org>
15363
15364 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15365 storage on all platforms, not just on DOS_NT.
15366
153672008-09-02 Jason Rumney <jasonr@gnu.org>
15368
b8ff72fa
SM
15369 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15370 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
15371
153722008-09-01 Chong Yidong <cyd@stupidchicken.com>
15373
15374 * xfaces.c (Finternal_set_alternative_font_family_alist)
15375 (Finternal_set_alternative_font_registry_alist): Properly copy
15376 entire alist structure.
15377
153782008-09-01 Kenichi Handa <handa@m17n.org>
15379
d66c0241 15380 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 15381 representative chars of the script is a vector.
d66c0241
JB
15382 (ftfont_list): Handle the case where the representative chars of
15383 the script is a vector.
aac0c6e3
MR
15384
15385 * character.c (syms_of_character): Docstring of
15386 script-representative-chars fixed.
15387
153882008-08-31 Eli Zaretskii <eliz@gnu.org>
15389
15390 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15391 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15392 the menu. Allocate larger buffer for `text', to account for
15393 possible ^C characters.
15394
153952008-08-31 Martin Rudalics <rudalics@gmx.at>
15396
15397 * xdisp.c (prepare_menu_bars): Don't call
15398 Vwindow_size_change_functions with arg Qt.
15399
154002008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15401
15402 * font.h (font_range):
15403 * fileio.c (report_file_error):
46e722a9
SM
15404 * composite.c (composition_update_it): Yet another int/Lisp_Object
15405 mixup (YAILOM).
aac0c6e3
MR
15406
154072008-08-30 Glenn Morris <rgm@gnu.org>
15408
15409 * data.c (Fmake_variable_frame_local): Doc fix.
15410
15411 * frame.c (Fmodify_frame_parameters): Doc fix.
15412
154132008-08-30 Eli Zaretskii <eliz@gnu.org>
15414
15415 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15416 needed by GetTokenInformation.
15417 (w32_system_process_attributes): Check return values of all system
15418 APIs.
15419
15420 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15421 only when the state changes.
15422 (IT_update_begin, IT_update_end): Add termscript trace.
15423
15424 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15425 clipboard is unavailable. Set dst to NULL if it doesn't point to
15426 malloc'ed data.
15427 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15428 passing random values to xfree.
15429
15430 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 15431 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
15432
154332008-08-29 Jason Rumney <jasonr@gnu.org>
15434
15435 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15436
154372008-08-29 Eli Zaretskii <eliz@gnu.org>
15438
15439 * composite.c (fill_gstring_body): Avoid compiler warnings.
15440
15441 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15442 LGLYPH_SET_CODE to avoid compiler warnings.
15443
2ae37cf0 15444 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
15445
15446 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15447
15448 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15449 LGLYPH_SET_CODE.
15450
154512008-08-29 Kenichi Handa <handa@m17n.org>
15452
15453 * fileio.c (report_file_error): Don't downcase the first character
15454 of errstring if it is still unibyte.
15455
154562008-08-29 Kenichi Handa <handa@m17n.org>
15457
15458 These changes are to re-implement the automatic composition so
15459 that it doesn't use text properties.
15460
15461 * Makefile.in (ftfont.o): Depend on composite.h.
15462 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15463
15464 * character.h (Vunicode_category_table): Extern it.
15465
15466 * character.c (Vunicode_category_table): New variable.
15467 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15468
15469 * chartab.c (optimize_sub_char_table): Perform more greedy
15470 optimization.
15471
b8ff72fa
SM
15472 * composite.h (enum composition_method):
15473 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
15474 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15475 (Vcomposition_function_table): Extern it.
15476 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15477 (composition_gstring_put_cache, composition_gstring_from_id)
15478 (composition_gstring_p, composition_gstring_width)
15479 (composition_compute_stop_pos, composition_reseat_it)
15480 (composition_update_it, composition_adjust_point): Extern them.
15481 (Fcomposition_get_gstring): EXFUN it.
15482
d66c0241 15483 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
15484 (Vcomposition_function_table)
15485 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
15486 (gstring_hash_table, gstring_work, gstring_work_headers):
15487 New variables.
aac0c6e3
MR
15488 (gstring_lookup_cache, composition_gstring_put_cache)
15489 (composition_gstring_from_id, composition_gstring_p)
15490 (composition_gstring_width, fill_gstring_header)
15491 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15492 (composition_reseat_it, composition_update_it)
b8ff72fa 15493 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
15494 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15495 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 15496 Defsubr composition_get_gstring.
aac0c6e3
MR
15497
15498 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15499 cmp_id.
15500 (struct glyph_string): Delete the member gidx. New members
15501 cmp_id, cmp_from, and cmp_to.
15502 (enum it_method): Delete GET_FROM_COMPOSITION.
15503 (struct composition_it): New struct.
15504 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15505 Delete c, len, cmp_id, cmp_len in u.comp.
15506
15507 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 15508 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 15509 (enum lglyph_indices): Likewise.
b8ff72fa 15510 (font_range): Adjust extern.
aac0c6e3
MR
15511 (font_fill_lglyph_metrics): Extern it.
15512
15513 * font.c (QCf): New variable.
15514 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15515 (font_prepare_composition): Delete this function.
15516 (font_range): Type and arguments changed.
15517 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15518 (font_fill_lglyph_metrics): New function.
b8ff72fa 15519 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 15520 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
15521 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15522 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
15523
15524 * fontset.h (font_for_char): Extern it.
15525
15526 * fontset.c (font_for_char): New function.
15527
15528 * ftfont.c: Include composite.h.
15529 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 15530 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
15531
15532 * indent.c: Include composite.h and dispextern.h.
15533 (check_composition): Delete this function.
15534 (scan_for_column): Handle composition by
15535 composition_compute_stop_pos, composition_reseat_it, and
15536 composition_update_it.
15537 (compute_motion): Likewise.
15538 (Fvertical_motion): Fix checking of composition.
15539
15540 * keyboard.c (adjust_point_for_property): Check composition by
15541 composition_adjust_point.
15542
b8ff72fa 15543 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
15544 struct glyph_string.
15545
b8ff72fa
SM
15546 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15547 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
15548 struct glyph.
15549 (produce_composite_glyph): Likewise.
15550
b8ff72fa
SM
15551 * w32term.c (x_draw_composite_glyph_string_foreground):
15552 Adjust for the change of struct glyph_string.
aac0c6e3
MR
15553 (x_draw_glyph_string): Likewise.
15554
15555 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15556 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15557
15558 * xdisp.c: Include font.h.
15559 (it_props): Delete the entry for Qauto_composed.
15560 (init_iterator): Initialize it->cmp_it.id to -1.
15561 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 15562 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
15563 (handle_auto_composed_prop): Delete it.
15564 (handle_composition_prop): Handle only static composition.
15565 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15566 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 15567 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
15568 (pop_it): Likewise.
15569 (get_next_element): Delete next_element_from_composition.
15570 (CHAR_COMPOSED_P): New macro.
15571 (get_next_display_element): For automatic composition, get a face
15572 from the font in the glyph-string.
15573 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 15574 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
15575 (next_element_from_string): Check if the character at the current
15576 position is composed by CHAR_COMPOSED_P.
15577 (next_element_from_buffer): Likewise.
d66c0241
JB
15578 (next_element_from_composition): Adjust for the change of struct it.
15579 Update it->cmp_it.
b8ff72fa
SM
15580 (dump_glyph): Adjust for the change of struct glyph.
15581 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
15582 it and struct glyph. Don't handle automatic composition here.
15583 (fill_gstring_glyph_string): New function.
15584 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 15585 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
15586 (BUILD_GSTRING_GLYPH_STRING): New macro.
15587 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15588 automatic composition.
b8ff72fa 15589 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 15590 struct glyph.
b8ff72fa 15591 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 15592
b8ff72fa 15593 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
15594 the change of struct glyph_string.
15595 (x_draw_glyph_string): Likewise.
15596
155972008-08-29 Glenn Morris <rgm@gnu.org>
15598
15599 * buffer.c (word-wrap): Doc fix.
15600 * xdisp.c (truncate-partial-width-windows): Doc fix.
15601 Increase default to 50.
15602
156032008-08-29 Chong Yidong <cyd@stupidchicken.com>
15604
15605 * xdisp.c (update_tool_bar_unwind): New function.
15606 (update_tool_bar): Temporarily set selected frame before building
15607 tool-bar items.
15608
156092008-08-28 Michael Albinus <michael.albinus@gmx.de>
15610
15611 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15612 snprintf, respectively.
15613 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15614
156152008-08-28 Chong Yidong <cyd@stupidchicken.com>
15616
15617 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15618 LDFLAGS to GNUstep CC invocation.
15619
156202008-08-27 Chong Yidong <cyd@stupidchicken.com>
15621
15622 * indent.c (Fvertical_motion): Revert last change. Handle the
15623 general case where we are moving forward, and PT spans multiple
15624 screen lines.
15625
15626 * eval.c (find_handler_clause): Temporarily increase
15627 max-lisp-eval-depth while printing the backtrace buffer, to
15628 guarantee that help-mode code can run.
15629
156302008-08-27 Eli Zaretskii <eliz@gnu.org>
15631
15632 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15633 colors under -rv.
15634 (IT_set_frame_parameters): Don't swap foreground and background
15635 colors if `(reverse . t)' is present in the frame properties.
15636 (internal_terminal_init): Call init_frame_faces only for the
15637 initial frame.
15638
156392008-08-27 Andreas Schwab <schwab@suse.de>
15640
15641 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15642
156432008-08-27 Andreas Schwab <schwab@suse.de>
15644
15645 * search.c (search_buffer): Set char_base to zero only at the end.
15646
156472008-08-27 Kenichi Handa <handa@m17n.org>
15648
b8ff72fa 15649 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
15650
156512008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15652
15653 * xterm.c (x_term_init): Temporarily hide the partially
15654 initialized terminal while calling vendor-specific-keysyms.
15655
156562008-08-26 Eli Zaretskii <eliz@gnu.org>
15657
15658 * msdos.c (internal_terminal_init): Most initializations done only
15659 once, especially initial_screen_colors[] and termscript open.
15660
156612008-08-26 Chong Yidong <cyd@stupidchicken.com>
15662
15663 * eval.c (Fcondition_case): Doc fix.
15664
15665 * widgetprv.h (EmacsFramePart): Change font member to the new font
15666 struct.
15667
15668 * widget.c: Include character.h and font.h for XSETFONT.
15669 (setup_frame_gcs): Compute X font id from font struct, just once.
15670
156712008-08-26 Eli Zaretskii <eliz@gnu.org>
15672
15673 * term.c (get_named_tty): Fix last change.
15674
156752008-08-26 Chong Yidong <cyd@stupidchicken.com>
15676
15677 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 15678 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
15679
156802008-08-25 Eli Zaretskii <eliz@gnu.org>
15681
15682 * frame.c (do_switch_frame): Mark previously displayed frame as
15683 obscured for FRAME_MSDOS_P frames as well.
15684
156852008-08-24 Eli Zaretskii <eliz@gnu.org>
15686
15687 * frame.c (make_terminal_frame): Initialize f->terminal,
15688 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15689 Set the top frame to newly created frame.
15690 (Fmake_terminal_frame): Reuse the_only_display_info.
15691
15692 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15693 estimating available memory.
15694
b97439ce 156952008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
15696
15697 * nsterm.m (ns_draw_window_cursor): Don't call
15698 NSDisableScreenUpdates and NSEnableScreenUpdates on
15699 non-NS_IMPL_COCOA systems.
15700
157012008-08-23 Andreas Schwab <schwab@suse.de>
15702
15703 * process.c (procfs_system_process_attributes): Fix use of
15704 uninitialized variables.
15705
157062008-08-23 Eli Zaretskii <eliz@gnu.org>
15707
15708 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15709
15710 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15711 calling tty-set-up-initial-frame-faces.
15712
b8ff72fa
SM
15713 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15714 Allow MSDOS frames along with X frames.
aac0c6e3
MR
15715
15716 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15717 addition to output_termcap.
15718
15719 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15720
15721 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15722 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15723 highlight.
15724
15725 * process.c [!subprocesses]: Define QCname.
15726 (syms_of_process): Intern and staticpro it.
15727
15728 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
15729 Adjust for changes in encoding/decoding routines.
15730 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
15731 encode_coding and decode_coding.
15732
b8ff72fa 15733 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
15734
15735 * dosfns.c: Include frame.h before termhooks.h.
15736 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15737 variable termscript.
15738
15739 * s/msdos.h (USER_FULL_NAME): Define.
15740 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15741
15742 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15743 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15744 pw->pw_gecos.
15745
15746 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15747 SELECTED_FRAME as additional (1st) argument.
15748 (tty_read_avail_input): Handle output_msdos_raw in
15749 addition to output_termcap.
15750
15751 * msdos.c: Include frame.h before termhooks.h.
15752 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15753 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15754 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15755 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15756 (IT_set_terminal_modes, IT_reset_terminal_modes)
15757 (IT_set_frame_parameters): Use tty->termscript instead of a global
15758 variable termscript.
15759 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15760 global variable terminal_coding. Don't refer to
15761 Vnonascii_translation_table.
15762 (internal_terminal_init): Set Vwindow_system in current_kboard.
15763 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15764 Announce date and time of session start, if termscript is open.
15765 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
15766 term.c:init_tty). Open termscript only of not already open.
15767 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
15768 here instead of dos_ttraw. Don't initialize display if this is an
15769 initial tty. Don't set FRAME_FONT.
15770 (Vwindow_system_version): Bump to 23.
15771 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15772 is available, set up mouse_position_hook.
15773 (dos_ttraw, IT_set_terminal_modes): If called with initial
15774 terminal, do nothing.
15775 (IT_set_frame_parameters): Handle the Qtty_type frame
15776 parameter by calling internal_terminal_init.
15777 (dos_set_window_size, show_mouse_face)
15778 (clear_mouse_face, IT_note_mode_line_highlight)
15779 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15780 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15781 (initialize_msdos_display): New function.
15782 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15783 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15784 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15785 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 15786 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
15787 (request_sigio, unrequest_sigio): Don't define, now defined on
15788 sysdep.c.
15789 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15790
15791 * term.c [MSDOS]: Include msdos.h.
15792 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15793 conditional to DOS_NT. Allow only one call to this function in a
15794 session. Don't allocate a new struct tty_display_info; instead,
15795 reuse the_only_display_info. Call get_tty_size to get screen
15796 dimensions. Call init_baud_rate to set bad_rate.
15797 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15798 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 15799 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
15800 (get_tty_terminal, get_named_tty, Ftty_type)
15801 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15802 output_termcap.
b8ff72fa
SM
15803 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15804 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 15805 only when subprocesses are supported.
aac0c6e3
MR
15806
15807 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15808 f->output_data.x.
15809 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15810 terminal devices.
15811
5582fbc7 15812 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
15813 x_output.
15814 (FRAME_FONT): Use output_data.tty.
15815 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
15816 (struct x_display_info): Rename from display_info. Update all users in
15817 msdos.c.
aac0c6e3 15818 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 15819 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
15820 (dos_ttraw): Update prototype.
15821
15822 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15823 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15824
158252008-08-23 Jason Rumney <jasonr@gnu.org>
15826
15827 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15828 (fn_TIFFSetDirectory): New library function used.
15829 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15830 (tiff_load): Use :index to select among multiple images. Set count
15831 property when multiple images exist.
15832 (gif_format): Use :index, not :image.
15833
158342008-08-23 Chong Yidong <cyd@stupidchicken.com>
15835
15836 * xdisp.c (try_scrolling): Check INT_MAX instead of
15837 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15838 to obtain INT_MAX.
15839
158402008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15841
15842 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15843
158442008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15845
15846 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15847 GNUstep library location.
15848
158492008-08-21 Chong Yidong <cyd@stupidchicken.com>
15850
15851 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15852 before using it.
15853
15854 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15855
158562008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15857
15858 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15859 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15860 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15861 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15862 (EmacsApp-cursor_blink_handler): Remove declaration.
15863 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15864 match 01 Feb 2008 changes in xterm.c.
15865 (ns_read_socket): Add cast to avoid warning.
15866 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15867 GNUstep.
15868
158692008-08-20 Chong Yidong <cyd@stupidchicken.com>
15870
15871 * xselect.c (x_get_foreign_selection): Return nil if desired
15872 selection could not be obtained, instead of signalling an error.
15873
158742008-08-20 David Reitter <david.reitter@gmail.com>
15875
15876 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15877 * nsterm.m: Remove ns-specific code for cursor blinking.
15878 (ns_draw_window_cursor): Clear cursor properly rather than
15879 redrawing the area. Respect width of bar cursors.
15880 These changes enable the use of generic blink-cursor-mode and
15881 generic cursor types in NS and support smooth cursor movements (do
15882 not blink off after command).
15883 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15884 Nextstep, too.
15885
158862008-08-19 Kenichi Handa <handa@m17n.org>
15887
15888 * font.c (Vfont_log_deferred): New variable.
15889 (font_add_log): Check Vfont_log_deferred.
15890 (font_deferred_log): New function.
15891
15892 * font.h (font_deferred_log): Extern it.
15893
15894 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15895 for sorting.
15896 (face_for_char): Use deferred log.
15897
158982008-08-18 Kenichi Handa <handa@m17n.org>
15899
15900 * fontset.c (face_for_char): Add font log.
15901
15902 * font.c (font_add_log): Add the font properties :script, :lang,
15903 and :otf in the log.
15904
159052008-08-17 Chong Yidong <cyd@stupidchicken.com>
15906
15907 * xdisp.c: Remove dead code.
15908 (handle_invisible_prop, next_overlay_string): Defer call to
15909 setup_for_ellipsis.
15910 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15911
159122008-08-15 Chong Yidong <cyd@stupidchicken.com>
15913
15914 * xfaces.c (lookup_derived_face): Properly handle possible zero
15915 return value of get_lface_attributes.
15916 (merge_faces): Don't tell lookup_derived_face to signal an error
15917 if face is not found.
15918
15919 * dired.c (Fdirectory_files): Doc fix.
15920
15921 * process.c (make_process): Initialize kill_without_query struct
15922 member.
15923
159242008-08-15 Eli Zaretskii <eliz@gnu.org>
15925
15926 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15927 Alternative calculation of totphys for Visual Studio 6.
15928
15929 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15930
15931 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15932 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15933 All users changed.
15934 (stat): Only root directory passed to GetDriveType. Allow RAM
15935 disk as well as local fixed disk when w32-get-true-file-attributes
15936 is set to `local'.
15937 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15938 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15939 (w32_cached_id, w32_add_to_cache): New functions.
15940 (get_name_and_id): Look account names in the cache before calling
15941 lookup_account_sid.
15942 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15943 New initialization flags.
15944 (globals_of_w32): Initialize them to zero.
15945 (w32_system_process_attributes): Use w32_cached_id and
15946 w32_add_to_cache.
15947
159482008-08-14 Lawrence Mitchell <wence@gmx.li>
15949
15950 * lread.c (Fread_char, Fread_char_exclusive): If no character
15951 event is read before timeout is reached, return nil, rather than
15952 converting to a number.
15953
159542008-08-14 Chong Yidong <cyd@stupidchicken.com>
15955
15956 * fns.c (use_dialog_box): Doc fix.
15957
15958 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15959 on OS X.
15960
159612008-08-13 Chong Yidong <cyd@stupidchicken.com>
15962
15963 * frame.c (Qns_parse_geometry): New var.
15964 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15965
159662008-08-11 Chong Yidong <cyd@stupidchicken.com>
15967
15968 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15969 space character in calculating tabs.
15970
159712008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15972
15973 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15974
159752008-08-10 Glenn Morris <rgm@gnu.org>
15976
15977 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15978 silence gcc "limited range of data type" warnings in some
15979 make_fixnum_or_float calls.
15980
159812008-08-09 Eli Zaretskii <eliz@gnu.org>
15982
15983 * w32.c (w32_system_process_attributes): If the process does not
15984 exist, return nil.
15985
15986 * w32.c: Include thelp32.h, psapi.h and coding.h.
15987 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15988 declarations.
15989 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15990 (Process32Next_Proc): New typedefs.
15991 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15992 (g_b_init_process32_next, g_b_init_open_thread_token)
15993 (g_b_init_impersonate_self, g_b_init_revert_to_self)
15994 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15995 (g_b_init_get_process_working_set_size)
15996 (g_b_init_global_memory_status_ex): New static variables.
15997 (globals_of_w32): Initialize them.
15998 (create_toolhelp32_snapshot, process32_first, process32_next)
15999 (open_thread_token, impersonate_self, revert_to_self)
16000 (get_process_memory_info, get_process_working_set_size)
16001 (global_memory_status, global_memory_status_ex): New wrapper
16002 functions.
16003 (w32_list_system_processes, w32_system_process_attributes)
16004 (enable_privilege, restore_privilege, ltime, process_times):
16005 New functions.
16006 (convert_time_raw): New function.
16007 (convert_time): Remove conversion of FILETIME into time in 100
16008 nsec units, call convert_time_raw instead.
16009
16010 * process.h (w32_list_system_processes, w32_system_process_attributes):
16011 Add prototypes.
16012 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
16013 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
16014 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
16015 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
16016
16017 * process.c (Fsystem_process_attributes): Doc fix.
16018
160192008-08-08 Chong Yidong <cyd@stupidchicken.com>
16020
16021 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
16022 a continued multi-char glyph; if so, advance to the actual glyph.
16023
160242008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
16025
16026 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
16027
16028 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
16029 (.m.o): Use it.
16030 * config.in: Regenerate.
16031
160322008-08-07 Chong Yidong <cyd@stupidchicken.com>
16033
16034 * xdisp.c (redisplay_window): Revert last change.
16035 (try_window): Check bottom scroll margin too.
16036
160372008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16038
16039 * config.in: Regenerate.
16040
16041 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
16042 -list-load-path-shadows'.
16043 (nsgui.h): Reduce number of things depending on it.
16044
160452008-08-06 Chong Yidong <cyd@stupidchicken.com>
16046
16047 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
16048 instead of window-end which does the wrong thing at eob.
16049 (try_cursor_movement): Minor optimization.
16050 (redisplay_window): If scroll margin is defined, don't assume
16051 window doesn't need scrolling.
16052
160532008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16054
16055 * config.in: Regenerate.
16056
16057 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16058 (mostlyclean): Don't delete *.d under NS.
16059
16060 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16061
160622008-08-06 Kenichi Handa <handa@m17n.org>
16063
16064 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16065
160662008-08-06 Andreas Schwab <schwab@suse.de>
16067
16068 * config.in: Regenerate.
16069
160702008-08-05 Chong Yidong <cyd@stupidchicken.com>
16071
16072 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16073 forcing a window start.
16074
16075 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16076 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16077
160782008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16079
16080 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16081 argument.
16082
160832008-08-05 Juanma Barranquero <lekktu@gmail.com>
16084
16085 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16086 <scroll-down-aggressively, before-change-functions>:
16087 <after-change-functions>: Reflow docstrings.
16088
160892008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 16090 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
16091
16092 Dock menu customization, based on a patch by Ken Raeburn, plus some
16093 other fixes.
16094 * nsmenu.m (dockMenu): New variable.
16095 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16096
16097 * nsterm.h (dockMenu): Declare.
16098
16099 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16100 (ns_term_init): Initialize dockMenu.
16101 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16102 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16103 left.
16104
16105 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16106
161072008-08-04 Chong Yidong <cyd@stupidchicken.com>
16108
16109 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16110
16111 * config.in: Regenerate.
16112
161132008-08-04 Seiji Zenitani <zenitani@mac.com>
16114
16115 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16116
161172008-08-04 Chong Yidong <cyd@stupidchicken.com>
16118
16119 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16120
161212008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16122
16123 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16124
16125 * keyboard.h: Comment an #endif.
16126
16127 * lisp.h (have_menus_p): Adjust comment.
16128
16129 * menu.c (find_and_return_menu_selection): Fix comparison with
16130 client_data.
16131
16132 * nsmenu.m (popup_activated_flag): New variable.
16133 (popup_activated): New function.
16134 (menu-or-popup-active-p): New exported lisp definition.
16135 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16136 when popup done.
16137 (ns_popup_dialog): Set popup_activated_flag.
16138
16139 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16140 version for GNUstep (handled by conditional typedef in nsterm.m).
16141 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16142 in rgb.txt).
16143
16144 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16145
16146 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16147
16148 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16149
16150 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16151 shortcircuit if popup_activated like GTK and X toolkit.
16152
16153 * m/inter386.h: Change DARWIN to DARWIN_OS.
16154
16155 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16156 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
16157 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16158 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
16159
161602008-08-03 Chong Yidong <cyd@stupidchicken.com>
16161
16162 * nsterm.m (windowDidResize): Remove stopModal call.
16163
161642008-08-03 Andreas Schwab <schwab@suse.de>
16165
16166 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16167 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16168
161692008-08-02 Chong Yidong <cyd@stupidchicken.com>
16170
16171 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16172 Don't use uninitialized pointer variable when using getrlimit.
16173
161742008-08-02 Jason Rumney <jasonr@gnu.org>
16175
16176 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16177
161782008-08-02 Eli Zaretskii <eliz@gnu.org>
16179
16180 * alloc.c (NSTATICS): Bump to 0x640.
16181
16182 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16183
16184 * lisp.h: Add prototype for directory_files_internal.
16185
16186 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16187 New functions.
16188 (syms_of_process): Defsubr them. Add initializations for various
16189 Q* symbols used in procfs_system_process_attributes.
16190 (procfs_list_system_processes, procfs_system_process_attributes)
16191 [HAVE_PROCFS]: New functions.
16192 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16193 (procfs_get_total_memory): New functions.
16194
161952008-08-01 Juanma Barranquero <lekktu@gmail.com>
16196
16197 * xfaces.c (Fx_load_color_file): Fix previous change;
16198 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16199
162002008-08-01 Michael Albinus <michael.albinus@gmx.de>
16201
16202 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16203
162042008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16205
16206 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16207
162082008-08-01 Chong Yidong <cyd@stupidchicken.com>
16209
16210 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16211
16212 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16213 define NSApplicationDelegateReplySuccess.
16214 (EmacsView -converstationIdentifier): Use long instead of
16215 NSInteger for GNUstep, since it doesn't have NSInteger.
16216
16217 * xmenu.c: Revert last change.
16218
16219 * keyboard.h: Fix last change.
16220
162212008-08-01 Juanma Barranquero <lekktu@gmail.com>
16222
16223 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16224 on Windows.
16225
162262008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16227
16228 Warning clearing and clean-up in NS port.
16229 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16230 Add prototypes.
16231 * nsgui.h (FACE_DEFAULT): Remove, unused.
16232 (XGCValues): Change colors to unsigned long.
16233 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16234 nsterm.m.
16235 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16236 (ns_list_fonts): Remove, unused.
16237 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16238 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16239 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16240 (nsfont_draw): Compare face colors to 0, not nil.
16241 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16242 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16243 (-addSubmenuWithTitle:): Use NSMenuItem class.
16244 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16245 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16246 (ns_clip_to_row): Make gc arg a BOOL.
16247 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16248 ns_clip_to_row() call.
16249 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16250 used). Cast FRAME_FONT assignments.
16251 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16252 (ns_string_to_lispmod): Change arg to const char.
16253 (ns_term_init): Use NSMenuItem class.
16254 (EmacsApp -openFile:): Move to different section of file.
16255 (EmacsApp -application:openFiles:): Don't return a value, call
16256 -replyToOpenOrPrint:.
16257 (EmacsView -keyDown:): Fix up cast.
16258 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16259 (EmacsView -menuDown:): Cast tag in call to
16260 find_and_call_menu_selection().
16261 (ns_list_fonts): Remove, unused.
16262 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16263 (ns_fontname_to_xlfd): Make static.
16264 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16265 Remove prototypes (now in keyboard.h).
16266 (next_menubar_widget_id): Remove, unused.
16267 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16268 Remove prototypes (now in keyboard.h).
16269 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16270
162712008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16272
16273 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16274 (floatfns.o): Depend on syssignal.h.
16275 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16276
16277 * systty.h: Fix previous change that removed BSD_TERMIOS.
16278 Add comments to #ifdefs.
16279
162802008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16281
16282 * w32fns.c (w32-load-color-file): Remove.
16283 (x-open-connection): Use renamed Fx_load_color_file.
16284 * xfaces.c (x-load-color-file): Add.
16285 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16286 Emacs.clr.
16287 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16288
162892008-07-31 Michael Albinus <michael.albinus@gmx.de>
16290
16291 * dbusbind.c (Fdbus_call_method_asynchronously)
16292 (Fdbus_method_error_internal): New defuns.
16293 (xd_read_message): Handle also reply messages.
16294 (Vdbus_registered_functions_table): Extend docstring.
16295
162962008-07-31 Juanma Barranquero <lekktu@gmail.com>
16297
16298 * keyboard.c (gobble_input): Fix previous change.
16299
163002008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16301
16302 * bitmaps/README:
16303 * xfns.c:
16304 * termcap.c:
16305 * term.c:
16306 * syswait.h:
16307 * systty.h:
16308 * systime.h:
16309 * syssignal.h:
16310 * sysdep.c:
16311 * process.h:
16312 * process.c:
16313 * print.c:
16314 * ndir.h:
16315 * lread.c:
16316 * keyboard.c:
16317 * getpagesize.h:
16318 * floatfns.c:
16319 * fileio.c:
16320 * emacs.c:
16321 * doc.c:
16322 * dispnew.c:
16323 * dired.c:
16324 * data.c:
16325 * callproc.c:
16326 * buffer.c:
16327 * README:
16328 * Makefile.in:
16329 * s/template.h:
16330 * s/msdos.h:
16331 * m/vax.h: Remove VMS support.
16332 * s/vms.h:
16333 * vlimit.h:
16334 * uaf.h:
16335 * temacs.opt:
16336 * param.h:
16337 * ioctl.h: Remove file.
16338
163392008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16340
16341 * s/ms-w32.h (MULTI_KBOARD): Remove.
16342 * xterm.c:
16343 * xselect.c:
16344 * xfns.c:
16345 * window.c:
16346 * w32term.c:
16347 * w32fns.c:
16348 * terminal.c:
16349 * termhooks.h:
16350 * term.c:
16351 * sysdep.c:
16352 * keyboard.h:
16353 * keyboard.c:
16354 * frame.h:
16355 * frame.c:
16356 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16357 * config.in: Regenerate.
16358
163592008-07-30 Jason Rumney <jasonr@gnu.org>
16360
16361 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16362
16363 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16364 (w32font_open_internal): Get unicode version of textmetrics.
16365 Don't enable or disable glyph indices here.
16366 (w32font_open): Disable use of glyph indices.
16367
16368 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16369
163702008-07-30 Chong Yidong <cyd@stupidchicken.com>
16371
16372 * minibuf.c (Vread_buffer_function): Doc fix.
16373
163742008-07-30 John Paul Wallington <jpw@pobox.com>
16375
16376 * minibuf.c (read_buffer_completion_ignore_case): New var.
16377 (Fread_buffer): Use it.
16378
163792008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16380
16381 * systty.h (sensemode): Remove empty #if. Remove reference to
16382 BSD_TERMIOS, unused.
16383
16384 * sysdep.c: Remove reference to DGUX.
16385 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16386
16387 * config.in: Regenerate.
16388
163892008-07-30 Jason Rumney <jasonr@gnu.org>
16390
16391 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16392
163932008-07-29 Jason Rumney <jasonr@gnu.org>
16394
16395 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16396 is populated.
16397 (uniscribe_encode_char): Always use uniscribe.
16398 Avoid using context if cache is populated.
16399
164002008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16401
16402 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16403 open menu.
16404
16405 * gtkutil.c (menu_nav_ended): Remove.
16406 (create_menus): Remove signal connect for menu_nav_ended.
16407
164082008-07-28 Chong Yidong <cyd@stupidchicken.com>
16409
16410 * xdisp.c (redisplay_window): Check return value of
16411 compute_window_start_on_continuation_line before forcing a window
16412 start.
16413
164142008-07-28 Jason Rumney <jasonr@gnu.org>
16415
16416 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16417
16418 * w32term.c (w32_enable_unicode_output, cleartype_active):
16419 Remove obsolete display options.
16420 (x_draw_glyph_string_background): Don't use old cleartype_active
16421 workaround.
16422 (w32_initialize): Remove cleartype_active initialization.
16423 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16424
164252008-07-28 Andreas Schwab <schwab@suse.de>
16426
16427 * lisp.h (init_weak_hash_tables, syms_of_font)
16428 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16429 (remove_hash_entry): Don't declare.
16430 * eval.c (maybe_call_debugger): Make static and move before use.
16431 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16432 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16433 * xterm.h (x_set_frame_alpha): Declare.
16434
164352008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16436
16437 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16438 (create_menus): Connect selection-done to menu_nav_ended.
16439
164402008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16441
16442 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16443 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16444 parameter with read of 'alpha' one.
16445 (Qns_frame_parameter): Remove.
5582fbc7 16446 * nsselect.m (selection-coding-system)
aac0c6e3
MR
16447 (next-selection-coding-system, Vselection_coding_system)
16448 (Vnext_selection_coding_system): Drop.
16449
164502008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16451
16452 * nsfns.m (do-applescript, do_applescript): Rename to
16453 ns-do-applescript, ns_do_applescript, and move within file.
16454
164552008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16456
16457 Remove support for Mac Carbon.
16458 * mactoolbox.c:
16459 * macterm.h:
16460 * macterm.c:
16461 * macselect.c:
16462 * macmenu.c:
16463 * macgui.h:
16464 * macfns.c:
16465 * mac.c: Remove file.
16466 * s/darwin.h:
16467 * m/intel386.h:
16468 * xfaces.c:
16469 * xdisp.c:
16470 * window.c:
16471 * tparam.c:
16472 * termhooks.h:
16473 * termcap.c:
16474 * term.c:
16475 * syssignal.h:
16476 * sysselect.h:
16477 * sysdep.c:
16478 * process.c:
16479 * lread.c:
16480 * lisp.h:
16481 * keyboard.c:
16482 * image.c:
16483 * fringe.c:
16484 * frame.h:
16485 * frame.c:
16486 * fontset.c:
16487 * font.h:
16488 * font.c:
16489 * fns.c:
16490 * fileio.c:
16491 * emacs.c:
16492 * dispnew.c:
16493 * dispextern.h:
16494 * config.in:
16495 * atimer.c:
2ae37cf0 16496 * Makefile.in: Remove code for Carbon.
aac0c6e3 16497
f0131492 164982008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
16499
16500 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16501
165022008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16503
16504 * macterm.h (kCGBitmapByteOrder32Host): New define for
16505 non-universal SDKs.
16506
16507 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16508 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16509
16510 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16511 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16512
165132008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16514
16515 * w32inevt.c: Include dispextern.h.
16516
165172008-07-26 Andreas Schwab <schwab@suse.de>
16518
16519 * print.c (print_object): Fix off-by-one in last change.
16520
165212008-07-25 Juanma Barranquero <lekktu@gmail.com>
16522
16523 * term.c (syms_of_term): Don't initialize default_orig_pair,
16524 default_set_foreground and default_set_background on Windows.
16525
165262008-07-25 Jason Rumney <jasonr@gnu.org>
16527
16528 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16529 ScriptItemize. Clean up return value checking. Remove unused
16530 variables.
16531 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16532 shaping engine.
16533
16534 * w32font.c (w32font_has_char): Handle the case where we can't
16535 determine the script for a character.
16536
165372008-07-25 Chong Yidong <cyd@stupidchicken.com>
16538
16539 * term.c (syms_of_term): Initialize default_orig_pair,
16540 default_set_foreground, and default_set_background.
16541
16542 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16543 clash (bug#86).
16544 (getloadavg): Callers changed.
16545
16546 * image.c (svg_load_image): Fix last change.
16547 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16548 image size is valid. Use g_object_unref instead of deprecated
16549 rsvg_handle_free to free rsvg handle.
16550 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16551
165522008-07-25 Jason Rumney <jasonr@gnu.org>
16553
16554 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16555 surrogates before looking up glyph index.
16556 (w32font_text_extents): Encode as surrogates if falling back to
16557 functions that need UTF-16 wide chars.
16558
16559 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16560 BMP as surrogates before looking up glyph index.
16561
165622008-07-25 Chong Yidong <cyd@stupidchicken.com>
16563
16564 * image.c (svg_load_image): Check for failure in return value of
16565 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16566
165672008-07-25 Jason Rumney <jasonr@gnu.org>
16568
16569 * w32font.c (Fx_select_font): Reverse sense of second arg.
16570
165712008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16572
16573 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16574 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16575
16576 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16577 (PURESIZE): Use it.
16578
165792008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16580
16581 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16582 * m/alpha.h (TEXT_END):
16583 * m/ibmrs6000.h (TEXT_END):
16584 * m/macppc.h (TEXT_END):
16585 * s/darwin.h (TEXT_END):
16586 * s/msdos.h (TEXT_END): Remove, unused.
16587 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16588 * s/cygwin.h: Remove comment.
16589
16590 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16591 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16592 * m/intel386.h (DOT_GLOBAL_START):
16593 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16594 (USG): Remove, file not used on USG platforms.
16595
16596 * Makefile.in (HAVE_X11): Remove empty #else.
16597
165982008-07-24 Andreas Schwab <schwab@suse.de>
16599
16600 * fileio.c (Finsert_file_contents): Properly adjust undo list
16601 after format conversion.
16602
166032008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16604
16605 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16606 (menu_nav_ended): Remove.
16607 (create_menus): Remove signal connect for menu_nav_ended.
16608 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16609 create_menus.
16610 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16611
166122008-07-23 Jason Rumney <jasonr@gnu.org>
16613
16614 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16615 with opened font.
16616 (w32font_open): Set font type to gdi.
16617
16618 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16619
166202008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16621
16622 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16623 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16624 defines it.
16625 * unexec.c (ADDR_CORRECT): Define unconditionally.
16626
16627 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16628
16629 * unexec.c: Remove code depending on !COFF and USG, the file is
16630 not used for such systems.
16631
16632 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16633 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16634 (LD_SWITCH_SYSTEM_1): Remove, update users.
16635
16636 * s/darwin.h (DATA_END):
16637 * m/intel386.h (DATA_END):
16638 * m/ibmrs6000.h (DATA_END):
16639 * m/alpha.h (DATA_END): Remove, unused.
16640
16641 * config.in: Regenerate.
16642 * s/ms-w32.h (subprocesses): Define unconditionally.
16643 * s/template.h (subprocesses): Update comment.
16644 * s/vms.h (subprocesses):
16645 * s/usg5-4.h (subprocesses):
16646 * s/hpux10-20.h (subprocesses):
16647 * s/gnu-linux.h (subprocesses):
16648 * s/cygwin.h (subprocesses):
16649 * s/bsd-common.h (subprocesses):
16650 * s/aix4-2.h (subprocesses):
16651 * s/darwin.h (subprocesses): Do not define, defined by default now.
16652
16653 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16654 Remove all references.
16655 (temacs): Add GNUstep specific ld flags.
16656
16657 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16658 similarly to what X does.
16659
166602008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16661
16662 * nsfns.m (x-list-fonts): Remove.
16663 (syms_of_nsfns): Drop the x-list-fonts declaration.
16664 * nsterm.m: Get rid of remaining "//" comments.
16665
166662008-07-22 Chong Yidong <cyd@stupidchicken.com>
16667
16668 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16669
16670 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16671 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16672 (Fns_own_selection_internal, Fx_disown_selection_internal)
16673 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16674
16675 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16676 ... */' style of docstrings. Doc fixes.
16677
166782008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16679
16680 * terminfo.c (UP, BC, PC): Undo previous change.
16681
16682 * nsfns.m: Rename ns prefixed functions/variables to the
16683 corresponding x versions. Update references.
16684
166852008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16686
16687 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16688
166892008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16690
16691 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16692 Remove forwarding functions.
16693 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16694 non-static.
16695 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16696 non-static.
16697 (ns_frame_parm_handlers): Use the new names.
16698 (syms_of_nsfns): Move to the end of file.
16699
16700 * nsterm.m (syms_of_nsterm): Move to the end of file.
16701
16702 * dispnew.c (init_display): Remove code for X10.
16703
167042008-07-22 Jason Rumney <jasonr@gnu.org>
16705
16706 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16707 bare drive.
16708
167092008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16710
16711 * nsterm.m (syms_of_nsterm): Remove debugging println.
16712
167132008-07-22 David Reitter <david.reitter@gmail.com>
16714
16715 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16716 Carbon implementation of the same functionality: execute arbitrary
16717 AppleScript code.
16718
167192008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16720
16721 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16722 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16723 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16724 (Fx_display_mm_height, Fx_display_mm_width)
16725 (Fx_display_backing_store, Fx_display_visual_class)
16726 (Fx_display_save_under, Fx_open_connection)
16727 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16728 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16729 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16730 (Fx_display_pixel_width, Fx_display_pixel_height)
16731 (Fx_display_usable_bounds, Fx_display_planes)
16732 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16733 ... */' style of docstrings.
16734
167352008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16736
16737 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16738 on this platform.
16739 (mips):
16740 * m/iris4d.h (mips): Do not define.
16741 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16742
16743 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16744
16745 * image.c:
16746 * nsfns.m:
16747 * nsselect.m:
16748 * nsterm.h:
16749 * nsterm.m: Rename ns prefixed functions/variables to the
16750 corresponding x versions. Update references.
16751
16752 * m/ibms390x.h (NO_REMAP): Do not undefine.
16753
16754 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16755
167562008-07-21 Chong Yidong <cyd@stupidchicken.com>
16757
16758 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16759 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16760 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16761 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16762 (Fns_display_mm_height, Fns_display_mm_width)
16763 (Fns_display_backing_store, Fns_display_visual_class)
16764 (Fns_display_save_under, Fns_open_connection)
16765 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16766 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16767 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16768 (Fns_display_pixel_width, Fns_display_pixel_height)
16769 (Fns_display_usable_bounds, Fx_display_planes)
16770 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16771
167722008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16773
16774 * print.c (print_object): Check print_depth before searching for
16775 circularities.
16776
167772008-07-21 Michael Albinus <michael.albinus@gmx.de>
16778
16779 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16780 only sprintf.
16781
167822008-07-21 Kenichi Handa <handa@m17n.org>
16783
16784 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16785
167862008-07-20 Andreas Schwab <schwab@suse.de>
16787
16788 * syntax.c (find_start_pos, find_start_value)
16789 (find_start_value_byte, find_start_begv, find_defun_start)
16790 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16791
167922008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16793
16794 * s/sol2-3.h: Insert contents of s/sol2.h.
16795 (LD_SWITCH_SYSTEM): Remove redundant definition.
16796 * s/sol2.h: Remove, unused.
16797
167982008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16799
16800 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16801
168022008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16803
16804 * Makefile.in (ns_appdir): Fix typo in find command.
16805
168062008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16807
16808 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16809
16810 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16811 added not supported anymore.
16812
16813 * s/usg5-4-2.h (LIBS_SYSTEM):
16814 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16815
16816 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16817 * s/lynxos.h (GETPGRP_NO_ARG):
16818 * s/hpux10-20.h (NO_SIOCTL_H):
16819 * s/gnu.h (GETPGRP_NO_ARG):
16820 * s/gnu-linux.h (NO_SIOCTL_H):
16821 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16822 * s/cygwin.h (GETPGRP_NO_ARG):
16823 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16824 (C_DEBUG_SWITCH): Remove duplicate definition.
16825
16826 * m/ibms390.h: Remove boilerplate comments.
16827
16828 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16829
16830 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16831 (wait_reading_process_output): Remove code for SunOS, platform not
16832 supported anymore. Use SOLARIS2 instead of sun.
16833
168342008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16835
16836 * font.c (font_open_by_name): Under NS, default lface height to zero.
16837 (font_open_for_lface): Under NS, set size based on frame fontsize.
16838 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16839 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16840
168412008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16842
16843 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16844 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16845 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16846 YES/NO.
16847 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16848 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16849 * Makefile.in (clean): Clear out build destination dir.
16850
168512008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16852
16853 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16854 xterm, xselect.
16855 * lisp.h: Remove declaration of hash_remove.
16856 * nsgui.h: Remove redefinitions of hash_remove.
16857 * fns.c (hash_remove): Rename to hash_remove_from_table.
16858
168592008-07-19 Seiji Zenitani <zenitani@mac.com>
16860
16861 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16862 strdup() the family UTF8String before modifying it.
16863
168642008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16865
16866 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16867 NS_FACE_BACKGROUND with 0 instead of nil.
16868 * nsfont.m (nsfont_draw): Same.
16869
168702008-07-19 Chong Yidong <cyd@stupidchicken.com>
16871
16872 * nsfns.m (ns_set_background_color): Fix crash.
16873
168742008-07-18 Chong Yidong <cyd@stupidchicken.com>
16875
16876 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16877
168782008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16879
16880 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16881
168822008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16883
16884 * gtkutil.c: Include <config.h> instead of "config.h".
16885
16886 * lisp.h (Foverlay_buffer): Add EXFUN.
16887
16888 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16889 child process to complete child_setup. Undo 2005-09-21 change.
16890
16891 * s/darwin.h: Mention setsid after vfork.
16892
168932008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16894
16895 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16896 Depend on macgui.h.
16897
16898 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16899 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16900
16901 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16902 and f19.
16903 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16904
16905 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16906 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16907 Remove enumerators.
16908
16909 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16910 Check if FACE_FROM_ID returns NULL.
16911
169122008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16913
16914 * w32inevt.c (change_frame_size): Remove extern declaration.
16915 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16916 change_frame_size.
16917
169182008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16919
16920 * getloadavg.c: Revert last change (2008-07-15).
16921
169222008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16923
16924 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 16925 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
16926 from configure.
16927
169282008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16929
16930 * s/sol2.h:
16931 * s/sol2-4.h: Reorganize conditionals.
16932
16933 * ecrt0.c: Remove code depending on m68000, not used anymore.
16934
16935 * fns.c (hash_remove): Make static.
16936 * lisp.h (hash_remove): Don't prototype.
16937
16938 * m/ibmrs6000.h:
16939 * m/ibms390x.h:
16940 * m/macppc.h: Remove boilerplate comments.
16941
16942 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16943 Solaris, which does not need them.
16944
16945 * m/vax.h: Remove comments about unsupported systems.
16946
16947 * s/darwin.h: Reorganize ifdefs.
16948
169492008-07-17 Andreas Schwab <schwab@suse.de>
16950
16951 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16952
169532008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16954
16955 Use SDATA. Follow coding convention of placing operators at
16956 beginning of next line rather than end of previous line, and placing
16957 spaces around infix operators.
16958
16959 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16960 in case it was defined already.
16961 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16962 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16963 ns_default.
16964 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16965 Lisp_Objects.
16966 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16967 (ns_defined_color, ns_color_to_lisp): Declare.
16968 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16969 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16970 it's accepted even with USE_LISP_UNION_TYPE.
16971 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16972 (update_frame_tool_bar): Remove apparently obsolete tests for
16973 non-integerness of f->tool_bar_lines.
16974 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16975 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16976 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16977 (nsfont_open): Don't confuse NULL for Qnil.
16978 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16979 * menu.h (find_and_call_menu_selection):
16980 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16981 (find_and_return_menu_selection): Always return something.
16982 * frame.h: Include dispextern.h for Display_Info.
16983 (display_x_get_resource): Declare.
16984
169852008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16986
16987 * syntax.c: Remove stdio.h include accidentally introduced in
16988 Emacs.app commit.
16989 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16990 NS_IMPL_COCOA.
16991 * keyboard.c (handle_async_input, input_available_signal): Remove
16992 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16993
169942008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16995
16996 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16997 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16998 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16999 Use SDATA.
17000
17001 * keymap.c: Remove all NS-specific code.
17002 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
17003 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
17004 where_is_preferred_modifier, return a different value depending on how
17005 preferred is the binding.
17006 (where_is_internal): Adjust accordingly.
17007 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
17008 Adjust to new preferred_sequence_p.
17009 (syms_of_keymap): Declare `where-is-preferred-modifier'.
17010 * keyboard.c (parse_solitary_modifier): Not static any more.
17011 * keyboard.h (parse_solitary_modifier): Declare.
17012
170132008-07-16 Andreas Schwab <schwab@suse.de>
17014
17015 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
17016 of easymenu.
17017
170182008-07-16 Chong Yidong <cyd@stupidchicken.com>
17019
17020 * xdisp.c (move_it_in_display_line): Account for word wrap, so
17021 that we don't move off the line.
17022
170232008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17024
17025 * keyboard.c (Qsuper): Remove.
17026 (parse_menu_item): Don't call where_is_internal specially for NS.
17027
170282008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17029
17030 * s/gnu-linux.h: Remove boilerplate comments.
17031
17032 * m/alpha.h (__ELF__): Consolidate conditions.
17033
17034 * m/m68k.h (linux): Use GNU_LINUX instead.
17035 Remove boilerplate comments.
17036
17037 * m/intel386.h: Undo refactoring from previous change.
17038 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
17039 too, remove dead code.
17040 (linux): Use GNU_LINUX instead.
17041
170422008-07-16 Jason Rumney <jasonr@gnu.org>
17043
17044 * w32gui.h: Repeat 26 June changes lost by last change.
17045
170462008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17047
17048 * systty.h: Remove code for Aix on 386, unsupported platform.
17049
17050 * s/ms-w32.h: Remove boilerplate comments.
17051 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
17052
17053 * s/gnu-linux.h (TERM): Remove support.
17054 (HAVE_SYSVIPC): Remove, unused.
17055 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17056 for this system.
17057
17058 * process.c: Remove support for IRIS, unused.
17059 Remove support for TERM, not relevant anymore.
17060
17061 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17062 used with the definition.
17063
17064 * s/aix4-2.h (static): Do not undef.
17065
17066 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17067 only used on Aix.
17068 (HAVE_SYSVIPC): Remove, unused.
17069
17070 * m/hp800.h (CANNOT_DUMP): Do not undef.
17071
17072 * m/alpha.h: Fix comment.
17073
17074 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17075 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17076 used by this configuration.
17077 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17078 * unexec.c: Remove code depending on HPUX and
17079 USG_SHARED_LIBRARIES, not used with this file. Remove code
17080 depending on IRIS, unused. Remove if 0-ed code.
17081
17082 * s/template.h: Remove comments about static.
17083
17084 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17085 Remove if 0-ed code.
17086 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17087 were the same as the default.
17088 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17089 Remove boilerplate comments.
17090 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17091 (HAVE_SYSVIPC): Remove, unused.
17092 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17093
17094 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17095 Remove boilerplate comments.
17096 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17097 Remove boilerplate comments.
17098 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17099 Remove boilerplate comments.
17100 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17101
17102 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17103 USG systems which do not use DATA_SEG_BITS.
17104 Refactor code. Remove boilerplate comments.
17105
17106 * m/ibms390.h:
17107 * m/m68k.h:
17108 * s/bsd-common.h:
17109 * s/cygwin.h:
17110 * s/darwin.h:
17111 * s/freebsd.h:
17112 * s/gnu.h:
17113 * s/msdos.h: Remove boilerplate comments.
17114
17115 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 17116 do not use this file.
aac0c6e3
MR
17117 (IRIS_4D): Remove, unused.
17118
17119 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 17120 do not use this file.
aac0c6e3
MR
17121 (SIGN_EXTEND_CHAR):
17122 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17123 * unexmips.c: Remove file, unused.
17124
17125 * editfns.c (Fuser_full_name): Replace the only use of
17126 USER_FULL_NAME with its value.
17127 * config.in: Regenerate.
17128
171292008-07-16 David Reitter <david.reitter@gmail.com>
17130
17131 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17132 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17133
171342008-07-16 Glenn Morris <rgm@gnu.org>
17135
17136 * emacs.c (system-type): Doc fix.
17137
171382008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17139
17140 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17141 If the cache doesn't work, let's fix it, rather than work around it.
17142
171432008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17144
17145 * Makefile.in: Correct additions for nsfont.o in last commit.
17146 * nsfont.m: New file (forgot last commit).
17147
171482008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17149
bba3e508
SM
17150 * callproc.c (set_initial_environment):
17151 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
17152 batch-compiling for bootstrap).
17153
171542008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 17155 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 17156
c4cc8b9a
JB
17157 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17158 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
17159
171602008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17161
17162 Changes and additions for NeXTstep windowing system (Cocoa and
17163 GNUstep) support.
17164
17165 * Makefile.in:
17166 * config.in: Support defines and build commands for NS port.
17167 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17168 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17169 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17170 windowing.
17171 (struct face): Add synth_ital field.
17172 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17173 (init_display): Initialize Vinitial_window_system to "ns" when so
17174 compiled.
17175 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17176 (display_arg): Use under NS.
17177 (main): Under NS, allocate autorelease pool and handle command line
17178 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17179 (standard_args): Add NS-specific args.
17180 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17181 * font.c (DEFAULT_ENCODING): New variable.
17182 (font_find_for_lface): Use it.
17183 (syms_of_font): Load syms_of_nsfont under NS.
17184 * font.h: Declare nsfont_driver when compiled under NS.
17185 * fontset.c: When compiling under NS, include nsterm.h.
17186 (fontset_from_font): Autoconstruct fontset under NS.
17187 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17188 symbol, document and use it.
17189 (do_switch_frame): When for_deletion under Cocoa, add
17190 Fraise_frame(Qnil).
17191 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17192 (x_get_arg): Allow "yes" and "no" as boolean values.
17193 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17194 Qright under Cocoa.
17195 (focus-follows-mouse): Default to 0 under NS.
17196 * frame.h (enum output_method): Add output_ns.
17197 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17198 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17199 (FRAME_WINDOW_P): NS-specific definition.
17200 * fringe.c (max_used_fringe_bitmap): Make public.
17201 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17202 (getloadavg): Use NeXT code under descendant OS's.
17203 * image.c (includes and header section, x_create_bitmap_from_data)
17204 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17205 (image_background_transparent, x_clear_image_1)
17206 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17207 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17208 (x_to_xcolors, x_from_xcolors, x_disable_image)
17209 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17210 other GUIs, including XPM support using code originally written for
17211 Carbon GUI.
17212 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17213 using NS API.
17214 (image_ascent): Use font metrics macros instead of direct struct field
17215 access.
17216 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17217 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17218 Also, handle NS as GTK for menu bar purposes.
17219 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17220 toolkit where they differ.
17221 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17222 use cachelist, still needed under NS.
17223 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17224 (struct widget_value): Define it here for menu.c.
17225 * keymap.c (includes): Include modifier internals.
17226 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17227 NS.
17228 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17229 support for preferring sequences using certain modifiers, specified by
17230 the FIRSTONLY argument.
17231 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17232 under NS GNUstep implementation.
17233 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17234 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17235 * menu.c: Include nsterm.h under NS.
17236 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17237 (free_menubar_widget_tree_value, update_submenu_strings)
17238 (find_and_call_menu_selection): Treat NS as X and NT.
17239 (find_and_return_menu_selection): New function, used for popup menus.
17240 * nsgui.h:
17241 * nsterm.h:
17242 * nsfns.m:
17243 * nsimage.m:
17244 * nsmenu.m:
17245 * nsselect.m:
17246 * nsterm.m: New files.
17247 * process.c (wait_reading_process_output): Under NS, call ns_select()
17248 instead of plain select().
17249 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17250 beginning of buffer.
17251 * sysselect.h (init_process): Rename when compiling under Cocoa to
17252 avoid name conflict.
17253 * termhooks.h (display_info): Add ns_display_info to union.
17254 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17255 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17256 COCOA environment.
17257 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17258 unexec() signature. (Note, this will dump, but the resulting file
17259 crashes; unexosx is used instead; keeping around for reference and
17260 possible aid in getting dump working under GNUstep.)
17261 * w32gui.h (button_type, widget_value): Remove definitions (now in
17262 keyboard.h).
17263 * window.c: Include nsterm.h when compiling under NS.
17264 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17265 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17266 other GUI windowing systems.
17267 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17268 GTK.
17269 (x_consider_frame_title): Under NS, set icon type and frame
17270 modified-state indicator; use ns_set_name_as_filename() when using
17271 formatted title.
17272 (update_window_cursor): Make public when compiling under NS.
17273 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17274 (hourglass_atimer, Vhourglass_delay
17275 * xfaces.c (header section, init_frame_faces, clear_font_table)
17276 (defined_color, unload_color, x_face_list_fonts)
17277 (prepare_face_for_display): Add NS support parallel to other GUIs.
17278 Emulate GCs like other non-X GUIs.
17279 (split_font_name): Don't lowercase font name under NS.
17280 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17281 under NS.
17282 * s/darwin.h: Add support for compilation under NS.
17283
172842008-07-15 Jason Rumney <jasonr@gnu.org>
17285
17286 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17287 (w32_show_hourglass): Rename from show_hourglass.
17288 (w32_hide_hourglass): Rename from hide_hourglass.
17289 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17290 (Vhourglass_delay): Declare extern.
17291 (hourglass_started): Remove.
17292
17293 * xdisp.c (Vhourglass_delay): Remove static.
17294 (hourglass_started, start_hourglass, cancel_hourglass):
17295 Don't include these versions on WINDOWSNT.
17296
172972008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17298
17299 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17300 variables (formerly in xfns.c).
17301 (show_hourglass, hide_hourglass): New prototypes (same).
17302 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17303 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17304 in xfns.c).
17305 (syms_of_xdisp): Declare/initialize display-hourglass,
17306 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17307 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17308 formerly in xfns.c.
17309 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17310 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17311 (start_hourglass, cancel_hourglass): Remove.
17312 (show_hourglass, hide_hourglass): Remove prototypes and static
17313 modifiers.
17314 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17315 hourglass_atimer, hourglass_shown_p declaration/initialization.
17316 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17317 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17318 (start_hourglass, cancel_hourglass): Remove.
17319 (show_hourglass, hide_hourglass): Remove prototypes and static
17320 modifiers.
17321 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17322 hourglass_atimer, hourglass_shown_p declaration/initialization.
17323 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17324 (DEFAULT_HOURGLASS_DELAY): Remove.
17325 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17326 hourglass_shown_p declaration/initialization.
17327
173282008-07-14 Jason Rumney <jasonr@gnu.org>
17329
17330 * w32fns.c (w32_get_arg): Remove wrapper function.
17331 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17332 directly.
17333 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17334
173352008-07-14 Kenichi Handa <handa@m17n.org>
17336
17337 * xfont.c (xfont_open): Add workaround for X's bug.
17338
173392008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17340
17341 * fontset.c: Include <stdio.h> unconditionally.
17342
173432008-07-13 Michael Albinus <michael.albinus@gmx.de>
17344
17345 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17346 for filtering.
17347
173482008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17349
17350 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17351
17352 * m/macppc.h:
17353 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17354
c4cc8b9a 17355 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
17356 (SPECIAL_EMACS_INT):
17357 * m/ia64.h (SPECIAL_EMACS_INT):
17358 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17359 * s/gnu.h (NLIST_STRUCT):
17360 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17361 * s/gnu-linux.h (LINUX):
17362 * s/msdos.h (HAVE_FACES):
17363 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17364
17365 * systty.h:
17366 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17367 anymore.
17368
173692008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17370
17371 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17372 always defined as int.
17373
17374 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17375 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17376 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17377 * s/freebsd.h (HAVE_WAIT_HEADER):
17378 * s/bsd-common.h (HAVE_UNION_WAIT):
17379 * s/aix4-2.h (HAVE_WAIT_HEADER):
17380 * m/mips.h (HAVE_UNION_WAIT):
17381 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17382 (COFF, static): Do not define, they are undefined later in the file.
17383
17384 * process.c (update_status): Don't use a union.
17385 (status_convert):
17386 (sigchld_handler): Use int instead of WAITTYPE.
17387
173882008-07-12 Chong Yidong <cyd@stupidchicken.com>
17389
17390 * indent.c (Fvertical_motion): Restore hscroll before moving to
17391 goal column.
17392
173932008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17394
17395 * lisp.h: Remove left over code.
17396
173972008-07-11 Andreas Schwab <schwab@suse.de>
17398
17399 * lisp.h: Fix logic in last change.
17400
17401 * menu.h: New file.
17402 * menu.c: Include it.
17403 * xmenu.c: Likewise.
17404 * Makefile.in: Update dependencies.
17405
174062008-07-11 Kenichi Handa <handa@m17n.org>
17407
17408 * fontset.c (fontset_from_font): Cancel the previous change.
17409
174102008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17411
17412 * lisp.h:
17413 * w32heap.c:
17414 * emacs.c:
17415 * alloc.c: Replace all references of NO_UNION_TYPE with
17416 USE_LISP_UNION_TYPE.
17417
17418 * m/xtensa.h (NO_UNION_TYPE):
17419 * m/vax.h (NO_UNION_TYPE):
17420 * m/template.h (NO_UNION_TYPE):
17421 * m/sparc.h (NO_UNION_TYPE):
17422 * m/mips.h (NO_UNION_TYPE):
17423 * m/macppc.h (NO_UNION_TYPE):
17424 * m/m68k.h (NO_UNION_TYPE):
17425 * m/iris4d.h (NO_UNION_TYPE):
17426 * m/intel386.h (NO_UNION_TYPE):
17427 * m/ibms390x.h (NO_UNION_TYPE):
17428 * m/ibms390.h (NO_UNION_TYPE):
17429 * m/ibmrs6000.h (NO_UNION_TYPE):
17430 * m/ia64.h (NO_UNION_TYPE):
17431 * m/hp800.h (NO_UNION_TYPE):
17432 * m/arm.h (NO_UNION_TYPE):
17433 * m/amdx86-64.h (NO_UNION_TYPE):
17434 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17435 defining it the same.
17436
174372008-07-10 Chong Yidong <cyd@stupidchicken.com>
17438
17439 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17440
174412008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17442
17443 * fileio.c:
50426a04 17444 * sysdep.c:
aac0c6e3
MR
17445 * systty.h:
17446 * m/ibmrs6000.h:
17447 * m/iris4d.h:
17448 * s/aix4-2.h:
17449 * s/freebsd.h:
17450 * s/gnu-linux.h:
17451 * s/hpux10-20.h:
17452 * s/hpux11.h:
17453 * s/netbsd.h:
17454 * s/sol2-3.h:
17455 * s/sol2-4.h:
17456 * s/sol2.h:
17457 * s/usg5-4.h:
17458 * s/vms.h: Remove references to unused variables.
17459
174602008-07-10 Andreas Schwab <schwab@suse.de>
17461
17462 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17463 pattern before matching the generic family.
17464
174652008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17466
17467 * unexec.c:
17468 * s/vms.h:
17469 * s/usg5-4-2.h:
17470 * s/sol2-5.h:
17471 * s/freebsd.h:
17472 * s/darwin.h: Remove dead code.
17473
17474 * m/template.h:
17475 * m/sparc.h:
17476 * m/mips.h:
17477 * m/m68k.h:
17478 * m/iris4d.h:
17479 * m/intel386.h:
17480 * m/ibms390x.h:
17481 * m/ibms390.h:
17482 * m/ia64.h:
17483 * m/hp800.h:
17484 * m/arm.h:
17485 * m/amdx86-64.h: Remove dead code and references to unused
17486 and compiler defined symbols.
17487
17488 * unexmips.c:
17489 * unexelf.c: Remove references to desupported systems.
17490
17491 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17492
17493 * m/powermac.h: Remove boilerplate comments.
17494 (NO_REMAP): Remove unused definition.
17495
17496 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17497 define them.
17498
174992008-07-10 Kenichi Handa <handa@m17n.org>
17500
17501 * xfont.c (xfont_open): Log the reason of failure.
17502
175032008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17504
17505 * fontset.c (fontset_get_font_group):
17506 * font.c (font_check_otf): Specify argument types.
17507
175082008-07-09 Kenichi Handa <handa@m17n.org>
17509
17510 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17511 non-ASCII char is found.
17512
17513 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17514 (reorder_font_vector): Change the arg preferred_family to font.
17515 Prefer the spec matching with font.
17516 (fontset_get_font_group): New function.
17517 (fontset_find_font): Change the format of an element of a realized
17518 fontset. Use fontset_get_font_group.
17519 (fontset_font): Try the current fontset, the default fontset, the
17520 fallbacks of the current fontset, and the fallbacks of the default
17521 fontset in this order.
17522 (face_for_char): Delete the shortcut to use the current font.
17523 (fontset_from_font): Don't set fonts for Latin in the fontset.
17524
17525 * font.h (font_make_object, font_match_p): Adjust prototypes.
17526
17527 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17528
17529 * font.c (font_make_object): New arg entity and pixelsize.
17530 (font_check_otf_features, font_check_otf): New functions.
17531 (font_match_p): Check :lang, :script, and :otf properties.
17532
17533 * xfont.c (xfont_open): Adjust it for the change of
17534 font_make_object.
17535 (xfont_text_extents): Fix initial setting of metrics.
17536
17537 * ftfont.c (struct ftfont_info): New member index, delete member
17538 fc_charset_idx. Make the member order compatible with struct
17539 xftfont_info.
17540 (fc_charset_table): Change charset names to registry names.
17541 (ftfont_pattern_entity): Delete the args registry and
17542 fc_charset_idx. Change the value of :font-entity property
17543 to (FONTNAME . INDEX). Always set :registry property to
17544 `iso10646-1'.
17545 (struct ftfont_cache_data): New struct.
17546 (ftfont_lookup_cache): New arg for_face.
17547 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17548 (ftfont_driver): Set the member otf_capability.
17549 (ftfont_get_charset): Adjust it for the change of
17550 fc_charset_table.
17551 (OTF_TAG_SYM): New macro.
17552 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17553 for the change of fc_charset_table.
17554 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17555 ftfont_pattern_entity. Add FC_INDEX to objset.
17556 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17557 and ftfont_pattern_entity.
17558 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17559 font_make_object, struct ftfont_info.
17560 (ftfont_has_char): Use ftfont_get_fc_charset.
17561 (ftfont_otf_features, ftfont_otf_capability): New functions.
17562 (ftfont_shape): Use ftfont_get_otf.
17563 (ftfont_text_extents): Fix initial setting of metrics.
17564
17565 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17566 member order compatible with struct ftfont_info.
bba3e508
SM
17567 (xftfont_open): Add FC_CHARSET to the pattern.
17568 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
17569 properties if appropriate.
17570 (xftfont_close): Unlock the face.
17571 (xftfont_anchor_point, xftfont_shape): Deleted.
17572 (syms_of_xftfont): Don't set members anchor_point and shape of
17573 xftfont_driver.
17574
17575 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17576 font_make_object.
17577
17578 * w32font.c (w32font_open): Adjust it for the change of
17579 font_make_object.
17580 (w32font_open_internal): Don't set properties of font_object here.
17581
175822008-07-08 Chong Yidong <cyd@stupidchicken.com>
17583
17584 * macfns.c (x_create_tip_frame):
17585 * w32fns.c (x_create_tip_frame):
17586 * xfns.c (x_create_tip_frame): Pass parameter argument to
17587 face-set-after-frame-default.
17588
17589 * xfaces.c (Finternal_merge_in_global_face): Save merged
17590 attributes for the default face back into the face vector.
17591
175922008-07-08 Andreas Schwab <schwab@suse.de>
17593
17594 * fontset.h: Declare fontset_from_font. Don't declare
17595 new_fontset_from_font and fontset_from_font_name.
17596 * xterm.c: Include "fontset.h".
17597 * Makefile.in (xterm.o): Update dependencies.
17598
175992008-07-08 Glenn Morris <rgm@gnu.org>
17600
17601 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17602 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17603
176042008-07-07 Chong Yidong <cyd@stupidchicken.com>
17605
17606 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17607 (x_set_frame_parameters): Don't bind it.
17608
176092008-07-07 Juanma Barranquero <lekktu@gmail.com>
17610
17611 * w32fns.c (map_w32_filename): Declare extern.
17612
176132008-07-07 Jason Rumney <jasonr@gnu.org>
17614
17615 * w32term.c (WS_EX_LAYERED): Define if not already.
17616
176172008-07-06 Chong Yidong <cyd@stupidchicken.com>
17618
17619 * xfaces.c (set_font_frame_param): Don't try to set the font
17620 parameter if it is still unspecified in the lface.
17621
176222008-07-05 Chong Yidong <cyd@stupidchicken.com>
17623
17624 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17625 face if it didn't already exist.
17626
17627 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17628
176292008-07-05 Andreas Schwab <schwab@suse.de>
17630
17631 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17632
176332008-07-05 Chong Yidong <cyd@stupidchicken.com>
17634
17635 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17636 word-wrapping.
17637 (IT_DISPLAYING_WHITESPACE): New macro.
17638 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17639 when word-wrapping. Simplify word-wrapping logic. Use correct
17640 pixel positions when saving copies of the iterator.
17641 (display_line): Use proper wrap point if the last character on a
17642 line was preceded by whitespace.
17643
176442008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17645
17646 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17647
176482008-07-04 Kenichi Handa <handa@m17n.org>
17649
17650 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17651
17652 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17653
176542008-07-02 Jason Rumney <jasonr@gnu.org>
17655
17656 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 17657 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
17658
17659 * xdisp.c (next_element_from_display_vector): Move assignment out
17660 of if statement.
17661
176622008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17663
17664 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17665
17666 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17667 (syms_of_fileio): Initialize and export them.
17668 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17669
17670 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17671 (Fsystem_move_file_to_trash): New function.
17672 (syms_of_w32fns): Export it to lisp.
17673
176742008-07-01 Jason Rumney <jasonr@gnu.org>
17675
17676 * w32font.c (w32font_text_extents): Don't count overhang as part
17677 of width.
17678
176792008-06-30 Miles Bader <miles@gnu.org>
17680
17681 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17682 Add `avoid_cursor_p' field.
17683
17684 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17685 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17686 (append_glyph, append_composite_glyph, produce_image_glyph)
17687 (append_stretch_glyph): Initialize avoid_cursor_p.
17688 (get_it_property): Rename from `get_line_height_property'.
17689 (x_produce_glyphs): Use get_it_property.
17690 (handle_line_prefix, push_display_prop): New functions.
17691 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17692 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17693 New variables.
17694 (syms_of_xdisp): Initialize them.
17695
176962008-06-30 Kenichi Handa <handa@m17n.org>
17697
17698 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17699 XftDefaultSubstitute (they are called in XftFontMatch).
17700 (xftfont_open): Fix args to ftfont_font_format.
17701
17702 * ftfont.c (fc_charset_table): New member lang.
17703 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 17704 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
17705 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17706 (ftfont_open): Fix args to ftfont_font_format.
17707 (ftfont_font_format): New arg filename.
17708
177092008-06-30 Chong Yidong <cyd@stupidchicken.com>
17710
17711 * xfaces.c (Finternal_merge_in_global_face): If default face was
17712 modified, realize it again. Update the font face attribute.
17713
177142008-06-29 Jason Rumney <jasonr@gnu.org>
17715
17716 * w32term.c (x_set_frame_alpha): Fix logic.
17717
177182008-06-29 Kenichi Handa <handa@m17n.org>
17719
17720 * fontset.c (Finternal_char_font): Return font-object instead of
17721 font-name.
17722
17723 * composite.c (get_composition_id): Fix the width calculation for TAB.
17724
177252008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17726
17727 * indent.c (Fvertical_motion): Properly handle float column arg.
17728
177292008-06-28 Jason Rumney <jasonr@gnu.org>
17730
17731 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17732 (pfnSetLayeredWindowAttributes): New function pointer.
17733 (w32_initialize): Initialize it when supported.
17734 (x_set_frame_alpha): New function.
17735
17736 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17737 (w32_frame_parm_handlers): Set alpha handler.
17738
17739 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17740
177412008-06-27 Jason Rumney <jasonr@gnu.org>
17742
17743 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17744 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17745 (w32_to_x_charset, x_to_w32_charset)
17746 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17747 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17748 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17749 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17750 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17751 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17752 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17753 (Qw32_charset_unicode): Remove.
17754 (syms_of_w32fns): Update for above changes.
17755
17756 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17757 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17758 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17759 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17760 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17761 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17762 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17763 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17764 (syms_of_w32font): Update for above changes.
17765
177662008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17767
17768 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17769 removed #if.
17770 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17771
177722008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 17773 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
17774
17775 * makefile.w32-in (LOCAL_FLAGS):
17776 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17777
17778 * sysdep.c (_spawnlp, _getpid):
17779 Declare with explicit _cdecl instead of _CRTAPI1.
17780
17781 * editfns.c (Fget_internal_run_time):
17782 Check for WINDOWSNT with #ifdef, not #if.
17783
177842008-06-26 Jason Rumney <jasonr@gnu.org>
17785
17786 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17787
17788 * w32term.c (x_draw_glyph_string_foreground)
17789 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17790 Use FONT_HANDLE macro.
17791 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17792
17793 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17794 (uniscribe_encode_char): Use FONT_HANDLE macro.
17795
17796 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17797 (w32font_text_extents): Use precast w32_font.
17798 (w32font_close): Free cached metrics.
17799 (w32font_open_internal): Allocate space for name on stack.
17800
178012008-06-26 Chong Yidong <cyd@stupidchicken.com>
17802
17803 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17804
178052008-06-26 Jason Rumney <jasonr@gnu.org>
17806
17807 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17808 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17809
178102008-06-26 Juanma Barranquero <lekktu@gmail.com>
17811
17812 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17813
178142008-06-26 Jason Rumney <jasonr@gnu.org>
17815
17816 * w32bdf.c, w32bdf.h: Remove obsolete files.
17817
17818 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17819
17820 * w32gui.h: Don't include w32bdf.h.
17821 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17822 Remove obsolete font support.
17823
17824 * w32font.h (struct w32font_info): Remove compat_w32_font.
17825 Add hfont member.
17826 (FONT_COMPAT): Remove obsolete macro.
17827
17828 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17829 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17830 (w32font_open_internal): Remove compat code. Set new hfont member.
17831 (Fx_select_font): Use new hfont member.
17832
17833 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17834 (uniscribe_encode_char): Use new hfont member.
17835
17836 * w32term.c (x_draw_glyph_string_foreground)
17837 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17838 (x_draw_glyph_string): Use metrics in w32font_info.
17839
178402008-06-26 Kenichi Handa <handa@m17n.org>
17841
17842 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17843
178442008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17845
17846 * unexnext.c:
17847 * m/ews4800.h:
17848 * m/hp9000s300.h:
17849 * m/ibm370aix.h:
17850 * m/mips-siemens.h:
17851 * m/ncr386.h:
17852 * m/next.h:
17853 * m/pmax.h:
17854 * m/powerpcle.h:
17855 * m/tandem-s2.h:
17856 * s/386bsd.h:
17857 * s/bsd386.h:
17858 * s/bsd4-1.h:
17859 * s/bsd4-2.h:
17860 * s/bsdos2-1.h:
17861 * s/bsdos2.h:
17862 * s/bsdos3.h:
17863 * s/bsdos4.h:
17864 * s/nextstep.h:
17865 * s/ultrix4-3.h:
17866 * s/usg5-0.h:
17867 * s/usg5-2-2.h:
17868 * s/usg5-2.h:
17869 * s/usg5-4-3.h:
17870 * s/ux4800.h:
17871 * s/uxpds.h:
17872 * s/uxpv.h: Remove support for obsolete systems.
17873 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 17874 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
17875 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17876 Remove, insert contents in s/aix4-2.h.
17877 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17878 * s/bsd4-3.h: Rename to ...
17879 * s/bsd-common.h: ... this.
17880 * data.c:
17881 * doc.c:
17882 * ecrt0.c:
17883 * emacs.c:
17884 * fileio.c:
17885 * floatfns.c:
17886 * keyboard.c:
17887 * mem-limits.h:
17888 * print.c:
17889 * process.c:
17890 * sysdep.c:
17891 * syssignal.h:
17892 * systty.h:
17893 * syswait.h:
17894 * term.c:
17895 * unexec.c:
17896 * unexelf.c:
17897 * unexhp9k800.c:
17898 * m/hp800.h:
17899 * m/ibmrs6000.h:
17900 * m/mips.h:
17901 * m/vax.h:
17902 * s/darwin.h:
17903 * s/freebsd.h:
17904 * s/gnu.h:
17905 * s/ms-w32.h:
17906 * s/msdos.h:
17907 * s/netbsd.h:
17908 * s/template.h: Remove references to obsolete variables.
17909
17910 * Makefile.in: Add dependencies for all unexec files.
17911 (admindir): Remove unused variable.
17912 (UNEXEC_SRC): Remove references.
17913
179142008-06-25 Chong Yidong <cyd@stupidchicken.com>
17915
17916 * xfns.c (x_default_font_parameter): If Xft is available, first
17917 try Monospace-12 for the default font.
17918
179192008-06-25 Jason Rumney <jasonr@gnu.org>
17920
17921 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17922
179232008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17924
17925 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17926
17927 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17928
179292008-06-25 Juanma Barranquero <lekktu@gmail.com>
17930
17931 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17932 <scroll-conservatively>: Fix typo in docstring.
17933
17934 * xselect.c (Fx_send_client_event): Doc fix.
17935
179362008-06-25 Kenichi Handa <handa@m17n.org>
17937
17938 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17939
17940 * font.c (font_parse_fcname): Remove unused variables.
17941 (font_sort_entites): Delete the arg SPEC. Caller changed.
17942 Fix for the case of ! best_only.
17943 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17944
17945 * lisp.h (Fstring_to_unibyte): EXFUN it.
17946
17947 * character.h (str_to_unibyte): Extern it.
17948
17949 * character.c (str_to_unibyte): New function.
17950
17951 * fns.c (Fstring_to_unibyte): New function.
17952 (syms_of_fns): Defsubr it.
17953
179542008-06-24 Kenichi Handa <handa@m17n.org>
17955
17956 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17957 DPI too.
17958 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17959
179602008-06-24 Andreas Schwab <schwab@suse.de>
17961
17962 * Makefile.in (${lispsource}loaddefs.el): Rename from
17963 ../lisp/loaddefs.el.
17964 (bootstrap-clean): Do what distclean does but don't remove
17965 Makefile.
17966 (distclean): Depend on bootstrap-clean and remove Makefile.
17967
179682008-06-24 Chong Yidong <cyd@stupidchicken.com>
17969
17970 * buffer.h (struct buffer): New member word_wrap.
17971
17972 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17973 word-wrap.
17974 (init_buffer_once): Initialize them.
17975
17976 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17977 line_wrap enum possessing three possible values.
17978
17979 * termopts.h: Replace truncate_partial_width_windows with
17980 Vtruncate_partial_width_windows.
17981
17982 * dispnew.c (direct_output_for_insert): Avoid direct output when
17983 inserting a space with word wrap on.
17984
17985 * indent.c (compute_motion): Obey integer values of
17986 truncate-partial-width-windows.
17987
17988 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17989 replacing truncate_partial_width_windows.
17990 (init_iterator): If Vtruncate_partial_width_windows is an integer,
17991 truncate only if the window width is below that integer.
17992 (start_display, resize_mini_window, produce_stretch_glyph)
17993 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
17994 (back_to_previous_visible_line_start, reseat_1):
17995 Reset string_from_display_prop_p.
aac0c6e3
MR
17996 (display_line): Extend default face to end of line when wrapping.
17997
179982008-06-24 Kim F. Storm <storm@cua.dk>
17999
18000 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
18001 to wrap continued lines at word boundaries.
18002
180032008-06-24 Jason Rumney <jasonr@gnu.org>
18004
18005 * font.c (Ffont_face_attributes): Multiply pixel size before point
18006 conversion to avoid multiplying rounding error.
18007
180082008-06-23 Jason Rumney <jasonr@gnu.org>
18009
18010 * w32term.c (x_draw_glyph_string_background)
18011 (x_draw_glyph_string): Remove old bdf font code.
18012
18013 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
18014
180152008-06-22 Kenichi Handa <handa@m17n.org>
18016
18017 * font.c (font_find_for_lface): Try the adstyle specified in
18018 the property of LFACE_FONT of LFACE (if any).
18019
180202008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18021 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
18022
18023 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
18024
180252008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
18026
18027 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
18028 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
18029 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
18030 (witness-emacs): Remove.
18031 (lisp, shortlisp): Move loaddefs.el earlier.
18032 (mostlyclean): Forget about witness-emacs.
18033
180342008-06-22 Glenn Morris <rgm@gnu.org>
18035
18036 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
18037 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
18038
180392008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18040
18041 * Makefile.in (PRECOMP): Remove.
18042 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
18043 (witness-emacs): Run `compile-first'.
18044 (.el.elc): Use the new compile-onefile target.
18045
180462008-06-21 Kenichi Handa <handa@m17n.org>
18047
18048 * xftfont.c (xftfont_open): Handle QCembolden only when
18049 FC_EMBOLDEN is defined.
18050
180512008-06-21 Andreas Schwab <schwab@suse.de>
18052
18053 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18054 (.el.elc): Likewise.
18055
180562008-06-21 Miles Bader <miles@gnu.org>
18057
18058 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18059 build dir, not the lisp source dir.
18060
180612008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18062
18063 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18064 (bootstrapclean): Remove.
18065 (.el.elc): New rule.
18066 (PRECOMP): New var.
18067 (../lisp/subdirs.el): Remove.
18068 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18069 (witness-emacs): New target.
18070 (mostlyclean): Remove witness-emacs as well.
18071 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18072 Add witness-emacs dependency.
18073
180742008-06-20 Chong Yidong <cyd@stupidchicken.com>
18075
18076 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18077 defined by the font.
18078
180792008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18080
18081 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18082 (bootstrap-clean): New target that keeps TAGS around.
18083 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18084 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18085
180862008-06-20 Jason Rumney <jasonr@gnu.org>
18087
18088 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18089 Remove obsolete font code.
18090
18091 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18092 to determine language support.
18093
180942008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18095
18096 * sysdep.c (cfsetspeed): New fun extracted from the code.
18097 (cfmakeraw): Move before first use.
18098
180992008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18100
18101 * sysdep.c (cfmakeraw): Provide fallback implementation.
18102 (serial_configure): Provide fallback implementation of cfsetspeed.
18103
181042008-06-20 Kenichi Handa <handa@m17n.org>
18105
18106 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18107 the pattern.
18108
18109 * fontset.c (fontset_from_font): Copy font_spec before changing
18110 the elements.
18111
18112 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18113
181142008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18115
18116 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18117 for explicit `font' parameters.
18118
18119 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18120
181212008-06-19 Kenichi Handa <handa@m17n.org>
18122
18123 * frame.c: Include <ctype.h>.
18124 (x_set_font_backend): Allow spacing characters in the X resource
18125 for FontBackend.
18126
181272008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18128
18129 * w32fns.c, xfns.c (Qfont_param): New var.
18130 (syms_of_w32fns): Initialize it.
18131 (x_default_font_parameter): Record explicit `font' into
18132 `font-parameter'.
18133
181342008-06-18 Kenichi Handa <handa@m17n.org>
18135
18136 * font.c (font_parse_xlfd): Fix previous change.
18137 (font_parse_fcname): Don't use :fc-unknown-spec.
18138 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18139 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18140 (font_add_log): Prepend the driver name to the resulting fonts.
18141
18142 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18143 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18144 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18145
18146 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18147 (QCembolden): New variables.
18148 (syms_of_xftfont): DEFSYM them.
18149 (xftfont_open): Call XftFontMatch. Don't trust the result of
18150 XftTextExtents8 if the pixel_size is less than 5.
18151
181522008-06-18 Andreas Schwab <schwab@suse.de>
18153
18154 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18155 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18156
181572008-06-18 Jason Rumney <jasonr@gnu.org>
18158
18159 * w32font.c (w32font_list, w32font_match): Add logging.
18160
18161 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18162
181632008-06-17 Chong Yidong <cyd@stupidchicken.com>
18164
18165 * font.c (font_parse_fcname): Store divider characters for
18166 unknown-spec list. For known key symbols, intern using correct
18167 symbol name.
18168
181692008-06-17 Kenichi Handa <handa@m17n.org>
18170
18171 * xfaces.c (realize_default_face): If the frame is not on window
18172 system, set the fontset of face to nil.
18173
181742008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18175
18176 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18177
181782008-06-16 Juanma Barranquero <lekktu@gmail.com>
18179
18180 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18181 (build_font_name_from_vector): Delete externs.
18182
18183 * xfaces.c (struct font_name): Don't declare.
18184
181852008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18186
18187 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18188
181892008-06-16 Chong Yidong <cyd@stupidchicken.com>
18190
18191 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18192
181932008-06-16 Juanma Barranquero <lekktu@gmail.com>
18194
18195 * font.c (Ffont_spec): Fix usage in docstring.
18196 (Ffont_face_attributes): Doc fix.
18197
181982008-06-16 Andreas Schwab <schwab@suse.de>
18199
18200 * font.c (Ffont_face_attributes): Fix definition.
18201
182022008-06-16 Jason Rumney <jasonr@gnu.org>
18203
18204 * font.h (font_style_symbolic_from_value): Remove.
18205
18206 * font.c (font_style_symbolic_from_value): Remove.
18207 (font_style_symbolic): Revert to pre 2008-06-13 version.
18208
18209 * w32font.c (w32_to_fc_weight): New function.
18210 (w32font_full_name, logfont_to_fcname): Use it.
18211
182122008-06-16 Kenichi Handa <handa@m17n.org>
18213
18214 * font.c (font_check_object): Delete it.
18215 (font_clear_cache): Check if a font-object is alive.
18216 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18217 font-object to nil.
18218 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18219 (font_at): Don't call font_check_object.
18220 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18221
182222008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18223
18224 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18225
182262008-06-16 Chong Yidong <cyd@stupidchicken.com>
18227
18228 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18229
182302008-06-15 Chong Yidong <cyd@stupidchicken.com>
18231
18232 * font.c (font_parse_fcname): Only one decimal point.
18233 (font_unparse_fcname): Handle data in family and foundry indices
18234 as symbols, not strings.
18235 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18236
18237 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18238
18239 * font.h (font_unparse_gtkname): Add prototype.
18240
182412008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18242
18243 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18244
182452008-06-15 Andreas Schwab <schwab@suse.de>
18246
18247 * font.c (font_update_drivers): Fix crash when no drivers match.
18248
182492008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18250
18251 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18252 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18253
182542008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18255
18256 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18257
182582008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18259
18260 * process.c (Fserial_process_configure, Fprocess_send_eof):
18261 Use EQ to compare Lisp_Objects.
18262
182632008-06-13 Jason Rumney <jasonr@gnu.org>
18264
18265 * w32fns.c (Fw32_select_font): Remove old font API function.
18266
18267 * w32font.c (logfont_to_fcname): New function.
18268 (Fx_select_font): New font dialog function compatible with
18269 GTK/fontconfig version.
18270
18271 * font.c (font_style_symbolic_from_value): New function.
18272 (font_style_symbolic): Use it.
18273
18274 * font.h (font_style_symbolic_from_value): Declare new function.
18275
182762008-06-13 Juanma Barranquero <lekktu@gmail.com>
18277
18278 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18279 <font-width-table>: Fix typos in docstrings.
18280
182812008-06-13 Daniel Engeler <engeler@gmail.com>
18282
18283 These changes add serial port access.
18284 * process.c: Add HAVE_SERIAL.
18285 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18286 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18287 (list_processes_1, select_wrapper, Fstop_process)
18288 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18289 (status_notify): Modify to handle serial processes.
18290 [HAVE_SERIAL] (Fserial_process_configure)
18291 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18292 New functions.
18293 * process.h (struct Lisp_Process): Add `type'.
18294 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18295 New functions.
18296 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18297 serial ports.
b71ac3dd 18298 (serial_open, serial_configure): New functions.
aac0c6e3
MR
18299 * w32.h: Add FILE_SERIAL.
18300 (struct _child_process): Add ovl_read, ovl_write.
18301
183022008-06-13 Kenichi Handa <handa@m17n.org>
18303
18304 * dispextern.h (enum lface_attribute_index): New member
18305 LFACE_FOUNDRY_INDEX.
18306
18307 * font.c (font_score): Delete arg alternate_families. Check only
18308 weight, slant, width, and size. Ignore the difference of alias
18309 style symbols.
18310 (font_sort_entites): Adjust for the above change. Reflect the
18311 order of font-driver to scores.
18312 (font_list_entities): Don't check alternate_familes here.
18313 (font_clear_prop): Handle foundry.
18314 (font_update_lface): Don't parse "foundry-family" form here.
18315 Handle FONT_FOUNDRY_INDEX.
18316 (font_find_for_lface): Likewise. Handle alternate families here.
18317 If registry is nil, try iso8859-1 and ascii-0.
18318 (font_open_for_lface): Pay attention to size in ENTITY.
18319 (font_open_by_name): Simplify by calling font_load_for_lface.
18320 (free_font_driver_list): Delete it.
18321 (font_update_drivers): Preserve the order of backends.
18322 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18323 of font_score and font_sort_entites.
18324 (font_update_sort_order): Likewise.
18325
18326 * xfaces.c (LFACE_FOUNDRY): New macro.
18327 (check_lface_attrs): Check foundry.
18328 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18329 (merge_face_vectors): Check foundry.
18330 (merge_face_ref): Likewise.
18331 (Finternal_set_lisp_face_attribute): Likewise.
18332 (x_update_menu_appearance): Likewise.
18333 (Finternal_get_lisp_face_attribute): Likewise.
18334 (lface_hash): Likewise.
18335 (lface_same_font_attributes_p): Likewise.
18336 (x_supports_face_attributes_p): Likewise.
18337 (tty_supports_face_attributes_p): Likewise.
18338 (Finternal_set_alternative_font_family_alist): Intern strings.
18339 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18340 (realize_default_face): Set LFACE_FOUNDRY (lface).
18341
18342 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18343 font-driver at first.
18344
18345 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18346
183472008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18348
18349 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18350
183512008-06-12 Jim Meyering <meyering@redhat.com>
18352
18353 Make unexec_free handle NULL the same way free does.
18354 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18355
183562008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18357
18358 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18359 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18360 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18361 (WEAK_ALIAS): Simplify.
18362 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18363 when searching a unibyte buffer.
18364
183652008-06-12 Chong Yidong <cyd@stupidchicken.com>
18366
18367 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18368
183692008-06-12 Juanma Barranquero <lekktu@gmail.com>
18370
18371 * w32font.c: Include ctype.h.
18372
183732008-06-11 Jason Rumney <jasonr@gnu.org>
18374
18375 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18376 misreported as space.
18377 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18378 as aliases for registry iso10646-1.
18379
183802008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18381
18382 * buffer.c (clone_per_buffer_values): Skip `name'.
18383
183842008-06-11 Chong Yidong <cyd@stupidchicken.com>
18385
18386 * font.c (font_parse_fcname): Fix last change; accept decimal
18387 points in font size.
18388
183892008-06-10 Jason Rumney <jasonr@gnu.org>
18390
18391 * w32uniscribe.c (add_opentype_font_name_to_list):
18392 Skip non unicode fonts.
18393
183942008-06-10 Chong Yidong <cyd@stupidchicken.com>
18395
18396 * xfns.c (Fx_font_dialog): New function.
18397
18398 * gtkutil.c (xg_dialog_response_cb): Rename from
18399 xg_file_response_callback.
18400 (pop_down_dialog): Rename from pop_down_file_dialog.
18401 (xg_get_file_name): Callers changed.
18402 (xg_get_font_name): New function.
18403
18404 * gtkutil.h (xg_get_font_name): Insert prototype.
18405
184062008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18407
18408 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18409 x_underline_minimum_display_offset.
18410 (syms_of_xdisp): Declare it here rather than in xterm.c.
18411 * dispextern.h (underline_minimum_offset): Declare it.
18412 * w32term.c (x_draw_glyph_string): Use it.
18413 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18414 (syms_of_xterm): Don't declare it any more.
18415 (x_draw_glyph_string): Adjust to the new name.
18416
8719abec 184172008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
18418
18419 * xterm.c (x_underline_minimum_display_offset): New var.
18420 (x_draw_glyph_string): Use it.
18421 (syms_of_xterm): Declare it.
18422
184232008-06-10 Chong Yidong <cyd@stupidchicken.com>
18424
18425 * font.c (font_parse_fcname): Accept GTK-style font names too.
18426
184272008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18428
18429 * dired.c (file_name_completion): Don't return t if the match is exact
18430 but with different capitalization.
18431 * minibuf.c (Ftry_completion): Simplify.
18432
18433 * window.c (Vwindow_point_insertion_type): New var.
18434 (set_window_buffer): Use it.
18435 (syms_of_window): Init and export it to Lisp.
18436
184372008-06-10 Kenichi Handa <handa@m17n.org>
18438
18439 * font.h (font_intern_prop): Prototype adjusted.
18440
18441 * font.c (font_intern_prop): New arg force_symbol.
18442 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18443 Adjust for the change of font_intern_prop.
18444
18445 * ftfont.c (ftfont_pattern_entity):
18446 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18447 (w32_registry):
18448 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18449 the change of font_intern_prop.
18450
184512008-06-09 Juanma Barranquero <lekktu@gmail.com>
18452
18453 * w32menu.c (digest_single_submenu): Declare extern.
18454
184552008-06-09 Jason Rumney <jasonr@gnu.org>
18456
18457 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18458
18459 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18460 (parse_single_submenu): Remove.
18461 (digest_single_submenu): Remove.
18462 (syms_of_w32menu): Don't initialise variables that have moved
18463 to menu.c.
18464 (set_frame_menubar): Sync with version in xmenu.c.
18465 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18466
18467 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18468 Make static again.
18469
184702008-06-09 Jason Rumney <jasonr@gnu.org>
18471
18472 Changes to w32 files related to the move of common menu code
18473 to menu.c on 2008-06-08 by Chong Yidong.
18474
18475 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18476 defs to w32gui.h.
18477 (single_keymap_panes, push_menu_item, push_menu_pane):
18478 Make globally visible.
18479
18480 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18481 (local_free, malloc_widget_value, free_widget_value)
18482 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18483 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18484 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18485 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18486 (menu_items, menu_items_allocated, menu_items_used)
18487 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18488 (init_menu_items, finish_menu_items, discard_menu_items)
18489 (grow_menu_items, push_submenu_start, push_submenu_end)
18490 (push_left_right_boundary, push_menu_pane, push_menu_item)
18491 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18492 (free_menubar_widget_tree_value, parse_single_submenu)
18493 (update_submenu_strings): Remove functions.
18494 (xmalloc_widget_value): Remove and declare extern.
18495
18496 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18497 (OBJ1): Build it.
18498
18499 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18500 (local_heap, local_alloc, local_free, malloc_widget_value)
18501 (free_widget_value): Define here.
18502
185032008-06-09 Kenichi Handa <handa@m17n.org>
18504
18505 * font.h (Qascii_0): Extern it.
18506
18507 * font.c (Qascii_0): New variable.
18508 (syms_of_font): DEFSYM it.
18509 (font_open_by_name): If the registry "iso8859-1" fails, try also
18510 "ascii-0".
18511
18512 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18513
185142008-06-08 Kenichi Handa <handa@m17n.org>
18515
18516 * .gdbinit (xfont): New command.
18517
185182008-06-08 Andreas Schwab <schwab@suse.de>
18519
18520 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18521 * Makefile.in (menu.o): Update dependencies.
18522
18523 * Makefile.in (obj): Always add menu.o.
18524 * emacs.c (main): Always call syms_of_menu.
18525 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18526
185272008-06-08 Chong Yidong <cyd@stupidchicken.com>
18528
18529 * Makefile.in: Compile menu.c.
18530
18531 * lisp.h: Declare syms_of_menu.
18532
18533 * emacs.c (main): Call syms_of_menu.
18534
18535 * keyboard.h: Relocate platform-independent menu definitions from
18536 xmenu.c.
18537
18538 * menu.c: New file. Relocate platform-independent menu
18539 definitions from xmenu.c. Suggested by Adrian Robert.
18540
18541 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 18542 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
18543 (menu_items_used, menu_items_n_panes)
18544 (menu_items_submenu_depth): Move to keyboard.h.
18545 (init_menu_items, finish_menu_items, unuse_menu_items)
18546 (discard_menu_items, restore_menu_items, save_menu_items)
18547 (grow_menu_items, push_submenu_start, push_submenu_end)
18548 (push_left_right_boundary, push_menu_pane, push_menu_item)
18549 (keymap_panes, single_keymap_panes, single_menu_item)
18550 (list_of_panes, list_of_items, find_and_call_menu_selection)
18551 (xmalloc_widget_value, free_menubar_widget_value_tree)
18552 (parse_single_submenu, digest_single_submenu)
18553 (update_submenu_strings): Move to menu.c.
18554
185552008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18556
18557 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18558
185592008-06-06 Miles Bader <miles@gnu.org>
18560
18561 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18562 face, not frame default.
18563
185642008-06-05 Martin Rudalics <rudalics@gmx.at>
18565
18566 * window.c (pop_up_windows, pop_up_frames)
18567 (display_buffer_reuse_frames, Vpop_up_frame_function)
18568 (Vdisplay_buffer_function, Veven_window_heights)
18569 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18570 (Vspecial_display_function, Vsame_window_buffer_names)
18571 (Vsame_window_regexps, split_height_threshold)
18572 (Vsplit_window_preferred_function): Move those vars to window.el.
18573 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18574 (Fdisplay_buffer): Move those functions to window.el.
18575 (syms_of_window): Remove corresponding declarations.
18576 (display_buffer): New function.
18577 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18578 * dispnew.c (Flast_nonminibuf_frame): New function.
18579 * buffer.c (Fpop_to_buffer): Move to window.el.
18580
185812008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18582
18583 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18584
185852008-06-05 Kenichi Handa <handa@m17n.org>
18586
18587 * coding.c (detect_coding): Fix previous change.
18588 (detect_coding_system): Likewise.
18589
185902008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18591
18592 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18593
18594 * keymap.c (Vminibuffer_local_filename_must_match_map):
18595 Rename from Vminibuffer_local_must_match_filename_map.
18596 (syms_of_keymap):
18597 * minibuf.c (Fcompleting_read): Adjust accordingly.
18598 * commands.h: Rename declaration as well.
18599
186002008-06-05 Kenichi Handa <handa@m17n.org>
18601
18602 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18603 family name.
18604 (Ffont_put): Likewise.
18605
18606 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18607 current font-spec.
18608
18609 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18610 is unspecified.
18611
18612 * xfaces.c (realize_x_face): If the font-related face attributes
18613 are the same as those of default face, realize a new fontset from
18614 default->fontset.
18615 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18616
186172008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18618
18619 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18620 (move_it_in_display_line): New wrapper.
18621
18622 * window.c (window_scroll_pixel_based_preserve_x)
18623 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18624 (window_scroll_pixel_based, window_scroll_line_based):
18625 Use them to preserve column positions.
18626 (syms_of_window): Initialize them.
18627
18628 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18629 (HPOS . VPOS) pair.
18630
18631 * dispextern.h (move_it_in_display_line): Declare.
18632
186332008-06-05 Juanma Barranquero <lekktu@gmail.com>
18634
18635 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18636 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18637 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18638
186392008-06-04 Juanma Barranquero <lekktu@gmail.com>
18640
18641 * window.c (Fset_window_parameter): Doc fix.
18642 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18643
186442008-06-04 Joakim Verona <joakim@verona.se>
18645
18646 * window.h (struct window): Add new member window_parameters.
18647
18648 * window.c (Fwindow_parameters, Fwindow_parameter)
18649 (Fset_window_parameter): New defuns.
18650 (syms_of_window): Defsubr the new defuns.
18651 (make_window): Initialize window_parameters to nil.
18652
186532008-06-04 John Paul Wallington <jpw@pobox.com>
18654
18655 * eval.c (Fdefmacro): Doc fix.
18656
186572008-06-04 Kenichi Handa <handa@m17n.org>
18658
18659 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18660 Be sure to call setup_coding_system when we find a proper coding system.
18661 (detect_coding_system): Fix handling of coding->head_ascii.
18662
186632008-06-03 Andreas Schwab <schwab@suse.de>
18664
18665 * font.c (font_prop_validate_spacing): Fix last change.
18666
186672008-06-03 Kenichi Handa <handa@m17n.org>
18668
18669 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18670 (font_parse_fcname): Fix handling of unknown key.
18671
18672 * xfont.c (xfont_list): Try an alias.
18673
18674 * charset.c (char_charset): Return NULL if the arg charset_list is
18675 specified and C doesn't belong to any of them.
18676
186772008-06-02 Chip Coldwell <coldwell@redhat.com>
18678
18679 * font.c (font_pixel_size): Don't take cdr of an integer.
18680
186812008-06-02 Jim Meyering <meyering@redhat.com>
18682
18683 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18684 * alloc.c (xfree): Return right away for a NULL arg.
18685 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18686 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18687 * mac.c (create_apple_event_from_event_ref): Likewise.
18688 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18689 Likewise.
18690 * doprnt.c (doprnt1): Likewise.
18691 * frame.c (frame): Likewise.
18692 * keyboard.c (wipe_kboard): Likewise.
18693 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18694 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18695 * term.c (tty_default_color_capabilities, maybe_fatal)
18696 (delete_tty): Likewise.
18697 * w16select.c (string): Likewise.
18698 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18699 * w32bdf.c (w32_free_bdf_font): Likewise.
18700 * w32fns.c (w32_unload_font): Likewise.
18701 * w32font.c (w32font_close): Likewise.
18702 * window.c (size_window): Likewise.
18703 * xselect.c (receive_incremental_selection): Likewise.
18704 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18705 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18706 * w32.c (stat): Likewise.
18707
18708 Remove useless if-before-free tests.
18709 * editfns.c (Fset_time_zone_rule): Likewise.
18710 * lread.c (nosuffix): Likewise.
18711 * ralloc.c (get_bloc): Likewise.
18712 * regex.c (reg_free): Likewise.
18713 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18714 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18715 * xsmfns.c (smc_save_yourself_CB): Likewise.
18716
187172008-06-02 Kenichi Handa <handa@m17n.org>
18718
18719 * font.c (font_find_for_lface): Handle float font size.
18720 (font_open_for_lface): Likewise.
18721
18722 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18723 comparing the properties.
18724
187252008-06-01 Jason Rumney <jasonr@gnu.org>
18726
18727 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18728 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18729 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18730 Don't add empty script list.
18731 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18732
187332008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18734
18735 * Makefile.in (dot, dotdot): Remove, update users.
18736 ".." has been used elsewhere in the file for a long time.
18737 (LIBXT_STATIC): Remove conditional based on unused variable.
18738
187392008-06-01 Miles Bader <miles@gnu.org>
18740
18741 * xfaces.c (Vface_remapping_alist): New variable.
18742 (syms_of_xfaces): Initialize it.
18743 (enum named_merge_point_kind): New type.
18744 (struct named_merge_point): Add `named_merge_point_kind' field.
18745 (push_named_merge_point): Make cycle detection respect different
18746 named-merge-point kinds.
18747 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18748 Remove face-name alias resolution.
18749 (lface_from_face_name): New definition using
18750 `lface_from_face_name_no_resolve'.
18751 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18752 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18753 (get_lface_attributes): New definition that layers face-remapping on
18754 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18755 (lookup_basic_face): New function.
18756 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18757 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18758 `get_lface_attributes'.
18759 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18760 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18761 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18762
18763 * xdisp.c (init_iterator): Pass base_face_id through
18764 `lookup_basic_face' when we actually use it as a face-id.
18765 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18766 DEFAULT_FACE_ID.
18767
18768 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18769 lookup the initial face-id.
18770
18771 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18772
187732008-06-01 Juanma Barranquero <lekktu@gmail.com>
18774
18775 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18776 (Fremove_text_properties): Fix typos in docstrings.
18777
187782008-05-31 Kenichi Handa <handa@m17n.org>
18779
18780 * font.c (font_list_entities): Fix the car part of data to be
18781 stored in the cache.
18782
18783 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18784
187852008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18786
18787 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18788 Add a `test' argument so another predicate than `equal' can be used.
18789 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18790 (map_char_table): Remove unused vars `c' and `i'.
18791 * lisp.h (Foptimize_char_table): Adjust declaration.
18792 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18793
187942008-05-30 Kenichi Handa <handa@m17n.org>
18795
18796 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18797 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18798 defined.
18799
188002008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18801
18802 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18803 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18804 frame-local settings for the same variable.
18805
188062008-05-30 Kenichi Handa <handa@m17n.org>
18807
18808 * fontset.c (Ffont_info): Move to font.c.
18809 (syms_of_fontset): Delete defsubr of Sfont_info.
18810
18811 * font.c (font_style_to_value, font_score): Delete casting of the
18812 args to xstcasecmp.
18813 (register_font_driver): Increment num_font_drivers only when
18814 registering the driver globally.
18815 (Ffont_info): Move from fontset.c. Handle a font object too.
18816 (syms_of_font): Defsubr Sfont_info.
18817
188182008-05-29 Kenichi Handa <handa@m17n.org>
18819
18820 * coding.h (enum define_coding_utf8_arg_index): New enum.
18821 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18822 coding_attr_utf_bom.
18823 (enum utf_bom_type): Rename from utf_16_bom_type.
18824 (struct utf_16_spec): Adjust for the above change.
18825 (struct coding_system): Add utf_8_bom in `spec' union.
18826
18827 * coding.c (CODING_UTF_8_BOM): New macro.
18828 (enum coding_category): Delete coding_category_utf_8, add
18829 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18830 coding_category_utf_8_sig.
18831 (CATEGORY_MASK_UTF_8): Delete it.
18832 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18833 (CATEGORY_MASK_UTF_8_SIG): New macros.
18834 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18835 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18836 CATEGORY_MASK_UTF_8_SIG.
18837 (CATEGORY_MASK_UTF_8): New macro.
18838 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18839 (detect_coding_utf_8): Check BOM.
18840 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18841 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18842 (encode_coding_utf_16): Likewise.
18843 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18844 (detect_coding, detect_coding_system): Handle utf-8-auto.
18845 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18846 (syms_of_coding): Fix setting up of Vcoding_category_table.
18847
188482008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18849
18850 * process.c (Faccept_process_output): If `millisec' is non-nil,
18851 `seconds' default to 0.
18852 (wait_reading_process_output): Also return non-nil if we read output
18853 from a non-running process.
18854
188552008-05-29 Jason Rumney <jasonr@gnu.org>
18856
18857 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18858 `raster' specified.
18859 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18860 in the uniscribe backend, but disallow any font that has no
18861 unicode subrange support.
18862
188632008-05-29 Juanma Barranquero <lekktu@gmail.com>
18864
18865 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18866 Fix typos in docstrings.
18867
188682008-05-29 Kenichi Handa <handa@m17n.org>
18869
18870 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18871 (Fx_family_fonts): Set frame correctly.
18872
188732008-05-28 Jason Rumney <jasonr@gnu.org>
18874
18875 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18876
188772008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18878
18879 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18880 calling build_annotations.
18881
188822008-05-28 Juanma Barranquero <lekktu@gmail.com>
18883
18884 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18885 (Fencode_coding_string):
18886 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18887 <latin-extra-code-table>: Fix typos in docstrings.
18888 (syms_of_coding) <coding-system-alist>: Doc fix.
18889 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18890
188912008-05-28 Kenichi Handa <handa@m17n.org>
18892
18893 * fontset.c (Ffont_info): Don't call font_close_object.
18894
18895 * font.c (font_parse_family_registry): Use Ffont_put to validate
18896 foundry and family.
18897 (font_delete_unmatched): Don't check spacing.
18898 (font_list_entities): Add spacing to the spec to list fonts.
18899
18900 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18901 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18902
18903 * coding.c (encode_coding_raw_text): Fix previous change.
18904 (encode_coding_object): When the dst_object is a buffer and is
18905 different from src_object, move gap to PT.
18906
189072008-05-27 Chong Yidong <cyd@stupidchicken.com>
18908
18909 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18910
189112008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18912
18913 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18914 all branches. Compute it differently.
18915
18916 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18917
189182008-05-27 Juanma Barranquero <lekktu@gmail.com>
18919
18920 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18921 into "else if () ... else ...".
18922
189232008-05-27 Jason Rumney <jasonr@gnu.org>
18924
18925 * w32font.c (w32font_open_internal): Determine if glyph indices
18926 are likely to work here.
18927
189282008-05-27 Chong Yidong <cyd@stupidchicken.com>
18929
18930 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18931 draw overlap glyphs with appropriate highlighting.
18932
189332008-05-27 Kenichi Handa <handa@m17n.org>
18934
18935 * xfont.c (xfont_open): Fix calculation of font->average_width.
18936
189372008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18938
18939 * casefiddle.c (casify_object): Try to guess better whether the
18940 argument is a byte or a char.
18941
189422008-05-26 Andreas Schwab <schwab@suse.de>
18943
18944 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18945 Always send multiples of format size.
18946
18947 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18948
189492008-05-26 Jason Rumney <jasonr@gnu.org>
18950
18951 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18952 (compute_metrics): Don't set failure if we just cleared the cache.
18953 (w32_weight_table): Remove unused variable.
18954 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18955 backwards compatibility.
18956
189572008-05-25 Kenichi Handa <handa@m17n.org>
18958
18959 * w32term.c (x_draw_glyph_string):
18960 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18961
18962 * xfaces.c: Delete unused function prototypes.
18963 (xstrlwr, font_frame): Delete them.
18964 (clear_face_cache): Delete unused variable.
18965
18966 * xftfont.c (xftfont_open): Delete unused variable.
18967 If underline_thickness is not 1, adjust underline_position.
18968
18969 * ftxfont.c (ftxfont_open): Delete unused variable.
18970
18971 * fontset.c (face_for_char): Optimize for the case of no charset
18972 property.
18973
18974 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18975 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18976 (otf_open, font_otf_capability, generate_otf_features)
18977 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18978 Comment out by surrounding "#if 0" and "#endif" for the moment.
18979 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18980 (syms_of_font): Codes for accessing above commented out.
18981
189822008-05-24 Eli Zaretskii <eliz@gnu.org>
18983
18984 * w32proc.c: Include dispextern.h.
18985
18986 * w32.c: Include dispextern.h.
18987
189882008-05-23 Juanma Barranquero <lekktu@gmail.com>
18989
18990 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18991 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18992 Fix typos in docstrings.
18993
189942008-05-23 Jason Rumney <jasonr@gnu.org>
18995
18996 * xsmfns.c: Remove includes that are already included by config.h.
18997
189982008-05-23 Kenichi Handa <handa@m17n.org>
18999
19000 * charset.c (Qemacs, charset_emacs): New variables.
19001 (char_charset): Fix for non-Unicode characters.
19002 (syms_of_charset): Define charset_emacs.
19003
19004 * w32term.c (x_draw_glyph_string): Be sure to update
19005 s->underline_thickness and s->underline_position. Be sure to draw
19006 underline within the current line area.
19007
19008 * xterm.c (x_draw_glyph_string): Be sure to update
19009 s->underline_thickness and s->underline_position. Be sure to draw
19010 underline within the current line area.
19011
19012 * fontset.c: Delete unused variables and add casting for char *
19013 throughout the file.
19014 (fontset_font): Try the fallback fonts of the current fontset
19015 before consulting the default fontset.
19016
19017 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
19018
19019 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
19020
190212008-05-22 Jason Rumney <jasonr@gnu.org>
19022
19023 * font.c: Don't include strings.h.
19024
19025 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
19026
19027 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
19028 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
19029 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
19030 to call xstrcasecmp.
19031
19032 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
19033
19034 * fontset.c (fs_query_fontset): Use xstrcasecmp.
19035
19036 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
19037
19038 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
19039
190402008-05-22 Kenichi Handa <handa@m17n.org>
19041
19042 * puresize.h (BASE_PURESIZE): Increase to 1220000.
19043
19044 * font.c (font_prop_validate_style): Adjust for the format
19045 change of font_style_table.
19046
19047 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
19048 two args.
19049
19050 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
19051 two args.
19052
190532008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19054
19055 * minibuf.c (keys_of_minibuf): Delete.
19056 * lisp.h (keys_of_minibuf): Delete.
19057 * emacs.c (main): Don't call keys_of_minibuf.
19058
190592008-05-22 Kenichi Handa <handa@m17n.org>
19060
19061 * ftfont.c (ftfont_resolve_generic_family): Rename from
19062 ftfont_list_generic_family. Return a single family for each
19063 generic family.
19064 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19065 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19066 Call font_add_log.
19067 (ftfont_match): Call font_add_log.
19068
19069 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19070 (FONT_DEBUG): Define it.
19071 (font_add_log): Extern it.
19072 (font_assert): Rename from xassert.
19073
19074 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19075 (xfont_list_family): Call font_add_log.
19076 (xfont_match): Likewise.
19077 (memq_no_quit): Delete.
19078
19079 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19080 call of Ffont_xlfd_name.
19081
19082 * xfaces.c (struct table_entry, slant_table, weight_table)
19083 (swidth_table): Move to font.c.
19084
19085 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19086 xassert are changed to font_assert. Delete many unused variables.
19087 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19088 New variables.
19089 (struct table_entry): Move from xfaces.c and modified.
19090 (weight_table, slant_table, width_table): Move from xfaces.c and
19091 contents adjusted for the change of struct table_entry.
19092 (font_style_to_value, font_style_symbolic): Adjust for the
19093 format change of font_style_table.
19094 (font_parse_family_registry): Don't overwrite existing foundry and
19095 family of font_spec.
19096 (font_score): Fix calculation of diff for sizes.
19097 (font_sort_entites): Call font_add_log.
19098 (font_delete_unmatched): Return a newly created list.
19099 (font_list_entities): Fix previous change. Call font_add_log.
19100 (font_matching_entity, font_open_entity, font_close_entity):
19101 Call font_add_log.
19102 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19103 (Finternal_set_font_style_table): Delete.
19104 (BUILD_STYLE_TABLE): New macro.
19105 (build_style_table): New function.
19106 (Vfont_log, font_log_env_checked): New variables.
19107 (font_add_log): New function.
19108 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19109 Declare Lisp variables "font-weight-table", "font-slant-table",
19110 "font-width-table", and "font-log". Initialize font_style_table.
19111
191122008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19113
19114 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19115
191162008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19117 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19118
19119 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19120 (Vframe_alpha_lower_limit): New variable.
19121 (x_set_alpha): New function.
19122
19123 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19124
19125 * xfns.c (x-create-frame, Qalpha):
19126 Initialize the frame parameter `alpha'.
19127 * xterm.c (OPAQUE, OPACITY): New.
19128 (x_set_frame_alpha): New function.
19129 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19130
19131 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19132 * w32fns.c (w32_frame_parm_handlers): Likewise.
19133
191342008-05-20 Jason Rumney <jasonr@gnu.org>
19135
19136 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19137 truetype fonts to opentype list.
19138
191392008-05-20 Juanma Barranquero <lekktu@gmail.com>
19140
19141 * fontset.c (Ffontset_info): Doc fix.
19142 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19143 <ignore-relative-composition>: Fix typos in docstrings.
19144
19145 * font.c (syms-of-font) <font-encoding-alist>:
19146 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19147 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19148 (Ffont_otf_alternates): Doc fixes.
19149
191502008-05-20 Kenichi Handa <handa@m17n.org>
19151
19152 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19153 font.h through out the file.
19154 (FONT_DRIVERS): Rename from FONTOBJ.
19155 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19156 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19157
19158 * emacs.c (main): Call syms_of_font unconditionally.
19159
19160 * font.h (find_font_encoding): Extern it.
19161
19162 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19163 fontset.c.
194d44e7 19164 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
19165 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19166 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19167 only when HAVE_WINDOW_SYSTEM is defined.
19168 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19169 when HAVE_WINDOW_SYSTEM is defined.
19170
19171 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19172 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19173
19174 * xfaces.c: Include font.h unconditionally.
19175 (merge_face_ref, merge_face_vectors)
19176 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19177
191782008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19179
19180 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19181 indirect_variable.
19182 * eval.c (lisp_indirect_variable): New fun.
19183 (Fuser_variable_p): Use it.
19184
191852008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19186
19187 * lisp.h (indirect_variable):
19188 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19189 Use Lisp_Symbol pointers rather than Lisp_Object.
19190 Adjust callers.
19191 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19192 To this end, change calling-convention.
19193
19194 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19195 if some non-hidden buffers are selected by string&pred.
19196
191972008-05-19 Chong Yidong <cyd@stupidchicken.com>
19198
19199 * process.c (wait_reading_process_output): Always check status
19200 when in batch mode.
19201
192022008-05-19 Kenichi Handa <handa@m17n.org>
19203
19204 * font.c (font_list_entities): Fix handling of cache.
19205 (font_matching_entity): Likewise.
19206
19207 * ftfont.c (cs_iso8859_1): Delete.
19208 (ft_face_cache): New variable.
19209 (struct ftfont_info): New member fc_charset_idx.
19210 (ftfont_build_basic_charsets): Delete.
19211 (fc_charset_table): New variable.
19212 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19213 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19214 Callers changed.
19215 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19216 (ftfont_spec_pattern): New argument fc_charset_idx.
19217 Check registry more rigidly. Change callers.
19218 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19219 change of :font-entity property of the font.
19220
19221 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19222 property of the font.
19223
192242008-05-18 Juanma Barranquero <lekktu@gmail.com>
19225
19226 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19227 (Funencodable_char_position, Fcheck_coding_systems_region)
19228 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19229 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19230 (Ffind_operation_coding_system, Fset_coding_system_priority)
19231 (Fcoding_system_eol_type): Doc fixes.
19232
192332008-05-17 Glenn Morris <rgm@gnu.org>
19234
19235 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19236
192372008-05-16 Eli Zaretskii <eliz@gnu.org>
19238
19239 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19240 and st_gid.
19241
19242 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19243 HAVE_WINDOW_SYSTEM is not defined.
19244
19245 * xfaces.c (merge_face_ref, merge_face_vectors)
19246 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19247 HAVE_WINDOW_SYSTEM is defined.
19248 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19249
192502008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19251
19252 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19253
192542008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19255
19256 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19257
192582008-05-15 Kenichi Handa <handa@m17n.org>
19259
19260 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19261 preference.
19262
192632008-05-15 Glenn Morris <rgm@gnu.org>
19264
19265 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19266
192672008-05-15 Chong Yidong <cyd@stupidchicken.com>
19268
19269 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19270 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19271
19272 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19273
192742008-05-15 Kenichi Handa <handa@m17n.org>
19275
19276 * ftfont.c (ftfont_list): Downcase family name to check generic
19277 families.
19278
19279 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19280 font-spec for QCfont value.
19281
19282 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19283 buffer. Check the return value of it.
19284
192852008-05-14 Jason Rumney <jasonr@gnu.org>
19286
19287 * w32term.c (w32_get_glyph_overhangs): Remove.
19288 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19289
192902008-05-14 Kenichi Handa <handa@m17n.org>
19291
19292 * font.c (font_prop_validate): Make nil a valid value.
19293 (font_clear_cache): Check if the cached vector of entities is nil
19294 or not.
19295
192962008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19297
19298 * emacs.c (main_thread): Conditionalize on
19299 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19300 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19301
19302 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19303 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19304 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19305
193062008-05-14 Kenichi Handa <handa@m17n.org>
19307
19308 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19309 has no corresponding coding system.
19310
193112008-05-14 Jason Rumney <jasonr@gnu.org>
19312
19313 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19314
19315 * w32font.h (w32font_open_internal): Update declaration.
19316
19317 * w32font.c (w32font_open_internal): Change last argument from
19318 w32font_info struct to font object. Fill in font object from
19319 font_entity. Get Outline metrics if possible. Use them to
19320 calculate underline position and thickness. Use xlfd name as name
19321 property. Don't set codepage.
19322 (w32font_open): Pass font_object to w32font_open_internal. Don't
19323 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19324 (w32font_draw): Use s->font.
19325 (clear_cached_metrics): Don't clear non-existent blocks.
19326
19327 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19328 font was not found.
19329 (x_draw_glyph_string): Use underline position and thickness from font.
19330
19331 * w32uniscribe.c (uniscribe_open): Pass font_object to
19332 w32font_open_internal.
19333
193342008-05-14 Kenichi Handa <handa@m17n.org>
19335
19336 These changes are to delete all legacy font-handling codes, and
19337 make Emacs use only font-backends.
19338
19339 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19340 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19341
19342 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19343
19344 * charset.h (Vcharset_non_preferred_head)
19345 (Vcurrent_iso639_language): Extern them.
19346
19347 * charset.c (Vcharset_non_preferred_head): New variable.
19348 (Vcurrent_iso639_language): New variable.
19349 (syms_of_charset): Declare it as a Lisp variable.
19350 (char_charset): Don't check non preferred charsets. As a last
19351 resort, return charset_unicode.
19352 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19353
19354 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19355 conditionals. Don't check enable_font_backend. Delete all codes
19356 used only when USE_FONT_BACKEND is not defined.
19357
19358 * dispextern.h (struct glyph_string): Change type of `font' to
19359 `struct font *'.
19360 (struct glyph_string): New member underline_position and
19361 underline_thickness.
19362 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
19363 (struct face): Change type of `font' to `struct font *'.
19364 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
19365 (per_char_metric, encode_char): Delete externs.
19366 (calc_pixel_width_or_height): Adjust the prototype.
19367
19368 * emacs.c (enable_font_backend): Delete extern.
19369 (main): Don't set enable_font_backend. Don't check the command
19370 line argument "-disable-font-backend".
19371
19372 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19373 (enum font_property_index): New members FONT_DPI_INDEX,
19374 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19375 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19376 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19377 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19378 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19379 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19380 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19381 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19382 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 19383 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
19384 (struct font): Many members from old "struct font_info" moved to
19385 here. Members font and entity deleted.
19386 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19387 the new font-related objects.
19388 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19389 (CHECK_FONT_GET_OBJECT): Likewise.
19390 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 19391 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
19392 (struct font_driver): New members case_sensitive anc check.
19393 Type of the member list and open changed.
aac0c6e3
MR
19394 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19395 (font_symbolic_width, font_find_object, font_get_spec)
19396 (font_set_lface_from_name): Delete extern.
19397 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19398
19399 * font.c: Include <strings.h>.
19400 (enable_font_backend): Delete it.
19401 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19402 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 19403 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
19404 (null_string): Delete it.
19405 (null_vector): Make it static.
19406 (font_family_alist): Delete it.
19407 (Qnormal): Extern it.
19408 (QCextra, QClanguage): Delete it.
19409 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19410 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 19411 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 19412 the string. Callers changed.
bba3e508 19413 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
19414 objects.
19415 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19416 (font_style_to_value, font_style_symbolic): New function.
19417 (build_font_family_alist): Delete it.
19418 (font_registry_charsets): Use Fassoc_string instead of
19419 assq_no_quit.
19420 (font_prop_validate_symbol): Don't return null_string.
bba3e508 19421 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
19422 style-related values in a font vector.
19423 (font_property_table): Delete entries for QClanguage and
19424 QCantialias, add entries for QCavgwidth.
19425 (get_font_prop_index): Delete the 2nd argument FROM.
19426 (font_prop_validate): Arguments changed.
bba3e508 19427 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
19428 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19429 (font_parse_fcname, font_unparse_fcname)
19430 (font_prepare_composition): Likewise.
ef1b0ba7 19431 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 19432 (otf_open): Delete the 1st arg entity.
bba3e508 19433 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
19434 (font_score): New arg alternate_families. Adjusted for the change
19435 of font-related objects.
19436 (font_sort_entites): New arg best_only.
19437 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19438 Delete them.
19439 (font_match_p): Check alternate families.
19440 (font_find_object): Delete it.
19441 (font_check_object): New function.
bba3e508 19442 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
19443 (font_delete_unmatched): New arg.
19444 (font_list_entities): Call font_driver->list with a spec that
19445 doesn't specify style-related properties.
19446 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 19447 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
19448 (font_close_object, font_has_char, font_encode_char)
19449 (font_get_name, font_get_spec): Likewise.
19450 (font_spec_from_name, font_clear_prop, font_update_lface):
19451 New functions.
19452 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19453 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 19454 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
19455 (font_range): New function.
19456 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 19457 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 19458 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 19459 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
19460 (Finternal_set_font_style_table): Arguments changed.
19461 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 19462 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
19463 change of font-related objects.
19464 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19465
19466 * fontset.h (struct font_info): Delete it. Most members go to
19467 struct font.
ef1b0ba7 19468 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
19469 (enum FONT_SPEC_INDEX): Delete it.
19470 (font_info, list_fonts_func, load_font_func, query_font_func)
19471 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
19472 (get_font_repertory_func, new_fontset_from_font_name):
19473 Delete externs.
aac0c6e3
MR
19474 (fontset_from_font_name): Extern it.
19475 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19476 (FONT_INFO_FROM_FACE): Deleted.
19477 (face_for_font): Adjust prototype.
19478
19479 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19480 conditionals. Don't check enable_font_backend. Delete all codes
19481 used only when USE_FONT_BACKEND is not defined.
19482 (get_font_info_func, list_font_func, load_font_func)
19483 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19484 (get_font_repertory_func): Delete them.
19485 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19486 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19487 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19488 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19489 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19490 (fontset_compare_rfontdef): New function.
19491 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19492 rfont-defs by qsort. Adjusted for the change of font-group vector.
19493 (load_font_get_repertory): Deleted.
19494 (fontset_find_font): Use new macros to ref/set elements of
19495 font-def and rfont-def.
19496 (fontset_font): Fix the timing of remembering that no font for C.
19497 (free_face_fontset): Do nothing if the face has no fontset.
19498 (face_suitable_for_char_p): Use new macros to ref/set elements of
19499 rfont-def.
19500 (face_for_char): Likewise. Call face_for_char with font_object.
19501 (fs_load_font): Delete. Delete #pragma surrounding it.
19502 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 19503 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
19504 font-spec.
19505 (Fset_fontset_font): Likewise. Use new macros to set elements of
19506 font-def.
19507 (Fnew_fontset): Use font_unparse_xlfd to generate
19508 FONTSET_ASCII (fontset).
19509 (new_fontset_from_font_name): Deleted.
ef1b0ba7 19510 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
19511 a fontset is already created for the font. FIx updating of
19512 Vfontset_alias_alist.
19513 (fontset_ascii_font): Deleted.
bba3e508 19514 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
19515 (Finternal_char_font): Likewise.
19516 (Ffontset_info): Likewise.
19517 (syms_of_fontset): Don't check load_font_func.
19518
19519 * fns.c (internal_equal): Handle PREV_FONT.
19520
19521 * frame.h: Delete USE_FONT_BACKEND conditional.
19522
19523 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19524 conditionals. Don't check enable_font_backend. Delete all codes
19525 used only when USE_FONT_BACKEND is not defined.
19526 (x_set_font): Call x_new_font, not x_new_fontset2.
19527 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19528 already set for the frame.
19529
bba3e508
SM
19530 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19531 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
19532 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19533 font property. If a font is scalable, set avgwidth property to 0.
19534 Set font-entity property by font_put_extra.
19535 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 19536 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19537 (ftfont_spec_pattern): New function.
19538 (ftfont_list): Return a list, not vector.
19539 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19540 (ftfont_list_family): Don't downcase names.
19541 (ftfont_free_entity): Deleted.
19542 (ftfont_open): Return a font-object. Adjusted for the change of
19543 struct font. Get underline_thickness and underline_position from
19544 font property. Don't update dpyinfo->smallest_font_height and
19545 dpyinfo->smallest_char_width.
19546 (ftfont_close): Don't free `struct font'.
bba3e508 19547 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
19548 (ftfont_encode_char, ftfont_text_extents): Likewise.
19549
19550 * ftxfont.c (ftxfont_list): Return a list, not vector.
19551 (ftxfont_open): Return a font-object. Adjusted for the change of
19552 struct font. Get underline_thickness and underline_position from
19553 font property. Don't update dpyinfo->smallest_font_height and
19554 dpyinfo->smallest_char_width.
19555 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 19556 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 19557
bba3e508
SM
19558 * image.c (image_ascent): Don't include "charset.h".
19559 Include "character.h" and "font.h".
aac0c6e3
MR
19560
19561 * lisp.h (enum pvec_type): New member PREV_FONT.
19562 (Fassoc_string): EXFUN it.
19563
19564 * print.c: Include font.h.
19565 (print_object): Handle font-related objects.
19566
19567 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19568 conditionals. Don't check enable_font_backend. Delete all codes
19569 used only when USE_FONT_BACKEND is not defined.
19570 (handle_auto_composed_prop): Do nothing if it->f is not on a
19571 window system. Check how many following characters can be
19572 displayed by the same font.
19573 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19574 'struct font *'.
19575 (get_char_face_and_encoding): Assign the whole encoding task to
19576 the `encode-char' method of a font driver.
bba3e508 19577 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
19578 face' and `struct glyph_string'.
19579 (fill_glyph_string): Likewise.
19580 (get_per_char_metric): Arguments changed.
bba3e508 19581 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
19582 and `struct glyph_string'.
19583 (produce_stretch_glyph, calc_line_height_property)
19584 (x_produce_glyphs): Likewise.
19585
19586 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19587 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
19588 used only when USE_FONT_BACKEND is not defined.
19589 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
19590 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19591 (Qp): Extern them.
19592 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19593 Deleted.
19594 (struct font_name): Deleted.
19595 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19596 (compare_fonts_by_sort_order): New function.
19597 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19598 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19599 Deleted.
19600 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19601 compare_fonts_by_sort_order.
19602 (Fx_font_family_list): Call Ffont_family_list.
19603 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19604 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19605 (face_symbolic_slant, face_symbolic_swidth)
19606 (split_font_name_into_vector, build_font_name_from_vector)
19607 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19608 (font_rescale_ratio, split_font_name, build_font_name)
19609 (free_font_names, sort_fonts, x_face_list_fonts)
19610 (face_font_available_p, sorted_font_list, cmp_font_names)
19611 (font_list_1, concat_font_list, font_list, remove_duplicates):
19612 Deleted.
19613 (Fx_list_fonts): Use Ffont_list.
19614 (LFACE_AVGWIDTH): Deleted.
19615 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19616 by FONTP.
19617 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19618 (set_lface_from_font_name): Delete it.
ef1b0ba7 19619 (set_lface_from_font): Rename from
aac0c6e3
MR
19620 set_lface_from_font_and_fontset. Caller changed. Don't set
19621 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19622 for face.
19623 (merge_face_vectors): Copy font-spec if necessary.
19624 Clear properties of the font-spec if necessary.
19625 (merge_face_ref): Clear properties of the font-spec if necessary.
19626 (Finternal_set_lisp_face_attribute): Likewise.
19627 (set_font_frame_param): Use font_load_for_lface to load a
19628 font-object, and call Fmodify_frame_parameters with it.
19629 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19630 font name by Ffont_xlfd_name.
19631 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19632 QCslant, and QCwidth.
19633 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19634 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19635 Compare fonts by EQ.
19636 (lookup_non_ascii_face): Deleted.
19637 (face_for_font): The 2nd argument changed.
19638 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19639 Check atomic font properties by case insensitive.
19640 (realize_non_ascii_face): Set face->overstrike correctly.
19641 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19642 (dump_realized_face): Get font name from
19643 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19644
19645 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19646 conditionals. Don't check enable_font_backend. Delete all codes
19647 used only when USE_FONT_BACKEND is not defined.
19648 (xic_create_xfontset): Original code deleted and renamed from
19649 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19650 (x_make_gc): Don't set GCFont in GCs.
19651 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19652 opened by "fixed".
19653 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19654 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19655 get_font_repertory_func.
19656
19657 * xfont.c: Include <stdlib.h> and "ccl.h".
19658 (struct xfont_info): New structure.
19659 (xfont_query_font): Deleted.
ef1b0ba7 19660 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 19661 moved from xterm.c.
bba3e508 19662 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 19663 (compare_font_names): New function.
ef1b0ba7
SM
19664 (xfont_list_pattern): Sort font names case insensitively.
19665 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
19666 (xfont_list): Return a list, not vector.
19667 (xfont_match): If the font doesn't have QCname property, generate
19668 a name from the other font properties.
19669 (xfont_open): Return a font-object. Adjusted for the change of
19670 struct font. Get underline_thickness and underline_position from
19671 font property. Don't update dpyinfo->smallest_font_height and
19672 dpyinfo->smallest_char_width.
19673 (xfont_close): Don't free struct font.
bba3e508 19674 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 19675 (xfont_done_face): Deleted.
bba3e508 19676 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
19677 (xfont_encode_char, xfont_draw): Likewise.
19678 (xfont_check): New function.
19679
bba3e508 19680 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 19681 callback function.
bba3e508
SM
19682 (xftfont_match): Adjust for the format change of font-entity.
19683 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
19684 font-object. Adjusted for the change of struct font. Return a
19685 font-object. Don't update dpyinfo->smallest_font_height and
19686 dpyinfo->smallest_char_width.
19687 (xftfont_close): Block input while calling XftFontClose.
19688 (xftfont_prepare_face): Don't block input while calling
19689 xftfont_get_colors. Adjusted for the change of struct font.
19690 (xftfont_shape): Return value of error case fixed.
19691
19692 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19693
19694 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19695 conditionals.
19696 (FONT_WIDTH): Return (f)->max_width.
19697 (struct x_display_info): Delete member `font'.
19698 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19699 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19700 (struct x_output): Change type of `font' to `struct font *'.
19701
19702 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19703 conditionals. Don't check enable_font_backend. Delete all codes
19704 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19705 (x_per_char_metric, x_encode_char): Deleted.
19706 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 19707 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
19708 `struct face'.
19709 (x_draw_glyph_string_foreground)
19710 (x_draw_composite_glyph_string_foreground): Likewise.
19711 (x_draw_glyph_string): Likewise. Use font->underline_position and
19712 font->underline_thickness.
ef1b0ba7 19713 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
19714 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19715 (x_check_font): Call `check' method of a font driver.
19716 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19717 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 19718 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 19719 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
19720 redisplay_interface'.
19721
19722 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19723 conditionals. Don't check enable_font_backend. Delete all codes
19724 used only when USE_FONT_BACKEND is not defined. Surround non-used
19725 code by "#ifdef OLD_FONT" and "endif".
19726 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19727
19728 * w32font.h (struct w32font_info): New member.
19729 (FONT_COMPAT): New macro.
19730 (w32font_open_internal): Prototype adjusted.
19731
19732 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19733 OLD_FONT" and "endif".
19734
19735 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19736 conditionals. Don't check enable_font_backend. Delete all codes
19737 used only when USE_FONT_BACKEND is not defined.
19738 (w32font_open): Return a font-object. Make a font-object by
19739 font_make_object. Adjusted for the change of struct w32font_info.
19740 (w32font_close): Don't free struct font. Adjusted for the change
19741 of struct w32font_info.
19742 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 19743 Adjust for the change of struct w32font_info.
aac0c6e3
MR
19744 (w32font_draw): Likewise.
19745 (w32font_list_internal): Return a list, not vector.
19746 (w32font_open_internal): Change the 4th arg to font-object.
19747 Adjusted for the change of struct w32font_info and font-object format.
19748 (add_font_name_to_list): Don't downcase names.
19749 (w32_enumfont_pattern_entity): Make a font-entity by
19750 font_make_entity. Adjusted for the format change of font-entity.
19751 Use FONT_SET_STYLE to set a style-related font property. If a
19752 font is scalable, set avgwidth property to 0. Set font-entity
19753 property by font_put_extra.
bba3e508 19754 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
19755 (w32_weight_table, w32_decode_weight): New variables.
19756 (w32_encode_weight): New function.
bba3e508 19757 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
19758 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19759 weight value.
bba3e508 19760 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19761
19762 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19763 conditionals. Don't check enable_font_backend. Surround non-used
19764 code by "#ifdef OLD_FONT" and "endif".
19765 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 19766 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
19767
19768 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19769 conditionals. Don't check enable_font_backend. Delete all codes
19770 used only when USE_FONT_BACKEND is not defined. Surround non-used
19771 code by "#ifdef OLD_FONT" and "endif".
19772
19773 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19774 (uniscribe_open): Return value changed to font-object.
19775 Adjusted for the format change of font-object.
bba3e508 19776 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 19777 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 19778 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
19779 font_driver.
19780
197812008-05-13 Chong Yidong <cyd@stupidchicken.com>
19782
19783 * dispnew.c (update_frame_1): Check if tty output is still valid
19784 before flushing it.
19785
197862008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19787
19788 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19789 to Gtk+ menus.
19790
197912008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19792
19793 * dired.c (file_name_completion): Tweak the code so as to always do it
19794 in a single pass. Tighten the scope of some variables.
19795
19796 * dired.c (Qdefault_directory): New var.
19797 (file_name_completion): Use it instead of Fexpand_file_name.
19798 (syms_of_dired): Initialize it.
19799
198002008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19801
19802 * fileio.c (double_dollars): Remove dead code.
19803
198042008-05-10 Eli Zaretskii <eliz@gnu.org>
19805
19806 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19807 Mention w32-get-true-file-attributes in doc string.
19808
19809 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19810
198112008-05-09 Glenn Morris <rgm@gnu.org>
19812
19813 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19814 2008-04-23.
19815
198162008-05-09 Eli Zaretskii <eliz@gnu.org>
19817
19818 Support for reporting owner and group of each file on MS-Windows:
19819 * dired.c (stat_uname, stat_gname): New functions, with special
19820 implementation for w32.
19821 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19822
19823 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19824 (dflt_group_name): New static variable.
19825 (dflt_group): Rename from the_group.
19826 (init_user_info): Init dflt_group fields. Get user's group name
19827 from LookupAccountSid.
19828 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19829 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19830 New initialization states.
19831 (globals_of_w32): Initialize them to zero. Initialize the default
19832 group name to "None".
19833 (GetFileSecurity_Name): New global var, the name of the function
19834 to call for GetFileSecurity.
19835 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19836 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19837 (get_file_security, get_security_descriptor_owner)
19838 (get_security_descriptor_group, is_valid_sid)
19839 (get_file_security_desc, get_rid, get_name_and_id)
19840 (get_file_owner_and_group): New functions.
19841 (stat): Use get_file_security_desc and get_file_owner_and_group to
19842 report the owner and primary group of each file. Don't ignore the
19843 high 32 bits of file's size, now that st_size is 64-bit wide.
19844 Fix test when to get true file attributes.
19845 (init_user_info): Use get_rid instead of equivalent inline code.
19846 (fstat): Don't ignore the high 32 bits of file's size.
19847
198482008-05-09 Chong Yidong <cyd@stupidchicken.com>
19849
19850 * image.c (png_load): Use correct bit-depth for setting background
19851 color.
19852
198532008-05-08 Eli Zaretskii <eliz@gnu.org>
19854
19855 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19856 epa-hook.elc.
19857
198582008-05-08 Juanma Barranquero <lekktu@gmail.com>
19859
19860 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19861
198622008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19863
19864 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19865 because the original parameters are in pure storage now.
19866 (mac_window): Remove unused params. Update callers.
19867
198682008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19869
19870 * lread.c (substitute_object_recurse): Use lower-level primitives.
19871 Don't signal errors when traversing sub-char-tables.
19872 Don't loop over all the possible characters when traversing char-tables.
19873
19874 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19875 just like we do in print.c.
19876
198772008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19878
19879 * minibuf.c (Ftry_completion): Remove code left over from when we used
19880 scmp instead of Fcompare_strings.
19881
198822008-05-04 Juanma Barranquero <lekktu@gmail.com>
19883
19884 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19885
198862008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19887
19888 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19889 Create bitmap context in native byte order.
19890
19891 * macterm.c (XDrawLine)
19892 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19893 context in native byte order.
19894
198952008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19896
19897 * config.in: Regenerate.
19898
19899 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19900 New definitions for Image I/O support.
19901 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19902 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19903 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19904 (mac_data_provider_release_data, image_load_image_io)
19905 [USE_MAC_IMAGE_IO]: New functions.
19906 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19907 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19908 (init_image_func_pointer) [MAC_OSX]: Remove function.
19909 (image_load_quartz2d) [MAC_OSX]: Check availability of
19910 CGImageCreateWithPNGDataProvider at compile time.
19911 Use lowercase `false' for boolean constant.
19912 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19913 Use image_load_image_io.
19914 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19915 Don't check MyCGImageCreateWithPNGDataProvider.
19916 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19917 Don't call init_image_func_pointer.
19918
19919 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19920
19921 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19922 Make variable non-static.
19923 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19924 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19925
19926 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19927 (RED_FROM_ULONG): Mask off higher bits.
19928 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19929
19930 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19931 Include AvailabilityMacros.h.
19932 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19933 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19934
199352008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19936
19937 * chartab.c (Fset_char_table_range): If range is t, really set all
19938 chars to that value.
19939
199402008-05-03 Eli Zaretskii <eliz@gnu.org>
19941
19942 * dired.c (Ffile_attributes): Don't allow the device number become
19943 negative.
19944
199452008-05-02 Daiki Ueno <ueno@unixuser.org>
19946
19947 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19948
199492008-05-02 Juri Linkov <juri@jurta.org>
19950
19951 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19952 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19953 DEFAULT argument as a list of default values in docstrings.
19954
199552008-05-01 Chong Yidong <cyd@stupidchicken.com>
19956
19957 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19958
199592008-05-01 Martin Rudalics <rudalics@gmx.at>
19960
19961 * dispnew.c (change_frame_size_1): Preserve small windows when
19962 shrinking frames by calling set_window_height|width with third
19963 arg 2.
19964
19965 * window.h (struct window): Replace field too_small_ok by field
19966 resize_proportionally.
19967
19968 * window.c (make_window): Initialize resize_proportionally.
19969 (enlarge_window): Temporarily set resize_proportionally to make
19970 sure that shrink_windows does scale the window proportionally.
19971 (shrink_windows): When window has resize_proportionally set try
19972 to shrink it proportionally by stealing from other windows.
19973 (struct saved_window, Fset_window_configuration)
19974 (compare_window_configurations): Handle resize_proportionally.
19975 (WINDOW_TOTAL_SIZE): New macro.
19976 (window_min_size, shrink_windows, size_window): Use it.
19977 (check_min_window_sizes): Remove. Invalid values of
19978 window-min-height|width are handled by window_min_size_2 now.
19979 (size_window, Fsplit_window, enlarge_window)
19980 (adjust_window_trailing_edge, grow_mini_window): Don't call
19981 check_min_window_sizes.
19982 (window_min_size_2, window_min_size_1, window_min_size):
19983 New argument safe_p for retrieving "safe" minimum sizes.
19984 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19985 (adjust_window_trailing_edge, grow_mini_window):
19986 Adjust arguments of window_min_size... functions.
19987 (shrink_windows): Argument min_size removed. New argument
19988 safe_p allows shrinking windows to their safe minimum sizes.
19989 Calculate minimum size and decide whether a window shall be
19990 deleted for each window individually.
19991 (size_window): When nodelete_p equals 2, tell shrink_windows to
19992 delete windows only if their new minimum size is no more safe.
19993 (shrink_window_lowest_first): Call window_min_size_1 to make
19994 sure to preserve modeline of bottom-most window when resizing
19995 the minibuffer.
19996 (Fset_window_configuration, Fcurrent_window_configuration)
19997 (compare_window_configurations): Do not handle
19998 window-min-height|width any more.
19999 (syms_of_window): Clarify window-min-height|width doc-strings.
20000
200012008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
20002
20003 * dired.c (file_name_completion): Fix up the encoding/decoding issue
20004 some more. Copy some of the code from Ftry_completions.
20005 Remove special case code that dates back to initial revision when the
20006 slash was only added when necessary and that can't trigger nowadays.
20007
200082008-04-27 Kenichi Handa <handa@m17n.org>
20009
20010 * font.c (font_prop_validate): Signal `error' instead of `font'.
20011
200122008-04-29 Jason Rumney <jasonr@gnu.org>
20013
20014 * w32fns.c (Fw32_battery_status): New defun.
20015 (syms_of_w32fns): Defsubr it.
20016
200172008-04-28 Andreas Schwab <schwab@suse.de>
20018
20019 * dired.c (file_name_completion): Fix another mixing of encoded
20020 and decoded names.
20021
200222008-04-28 Juanma Barranquero <lekktu@gmail.com>
20023
20024 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
20025
200262008-04-27 Juanma Barranquero <lekktu@gmail.com>
20027
20028 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
20029
200302008-04-27 Andreas Schwab <schwab@suse.de>
20031
20032 * dired.c (file_name_completion): Fix inappropriate mixing of
20033 encoded and decoded names.
20034
20035 * xterm.c (XTread_socket): Fix use of uninitialized variable.
20036
20037 * puresize.h (BASE_PURESIZE): Increase to 1200000.
20038
200392008-04-26 Eli Zaretskii <eliz@gnu.org>
20040
20041 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
20042 2008-03-31, it's not needed anymore with `struct stat' definition
20043 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
20044 for the same reasons.
20045
200462008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
20047
20048 * m/sparc.h: Additional redefinitions for GNU/Linux.
20049
200502008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20051
20052 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
20053 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20054 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20055 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20056 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20057 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20058 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20059 Likewise.
20060
20061 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20062 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20063 (mac_ax_number_of_characters): Add externs.
20064 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20065 [USE_MAC_TSM]: Likewise.
20066 (mac_handle_text_input_event) [MAC_OSX]:
20067 Handle kEventTextInputOffsetToPos for no active input area case.
20068 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20069 (mac_handle_document_access_event)
20070 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20071 (install_application_handler) [MAC_OSX]: Register handlers for
20072 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20073 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20074 Register mac_handle_document_access_event.
20075
20076 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20077 Make functions non-static.
20078
200792008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20080
20081 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20082 (read_file_name_completion_ignore_case, insert_default_directory)
20083 (Qdefault_directory): Move to minibuffer.el.
20084 (Fread_file_name): Call the new `read-file-name' instead.
20085
200862008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20087
20088 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20089 Make function non-static.
20090 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20091 Remove function.
20092 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20093 Move to mactoolbox.c.
20094 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20095
20096 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20097 (mac_rect_make): New macro.
20098
20099 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20100 instead of float.
20101 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20102 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20103 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20104 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20105 CGRectMake.
20106 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20107 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20108 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20109 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20110 instead of WindowRef in argument type.
20111 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20112 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20113 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20114 instead of DISPLAY. All uses changed.
20115 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20116 (x_calc_absolute_position): Simplify so as not to use
20117 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20118
20119 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20120 instead of WindowRef in argument type.
20121 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20122 [TARGET_API_MAC_CARBON]: Remove externs.
20123 (create_apple_event, mac_event_parameters_to_lisp)
20124 [TARGET_API_MAC_CARBON]: Add externs.
20125
20126 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20127 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20128 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20129 is clicked.
20130 (x_activate_menubar): Remove extern for saved_menu_event_location.
20131 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20132 Move from mac.c.
20133
201342008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20135
20136 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20137 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20138
201392008-04-23 Jason Rumney <jasonr@gnu.org>
20140
20141 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20142 attributes only for local files.
20143
20144 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20145 default to Qlocal.
20146
201472008-04-22 Juri Linkov <juri@jurta.org>
20148
20149 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20150 read-buffer-to-switch instead of using the letter "B".
20151
201522008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20153
20154 * fileio.c (Qdefault_directory): New variable.
20155 (Fread_file_name): Use it to pass `dir' to the completion functions.
20156
201572008-04-20 Chong Yidong <cyd@stupidchicken.com>
20158
20159 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20160
201612008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20162
20163 * keyboard.c (Vpre_help_message): Remove.
20164 (show_help_echo): Remove default C code.
20165
20166 * dired.c (directory_files_internal, file_name_completion):
20167 Only call ENCODE_FILE if the string is indeed decoded.
20168
201692008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20170
20171 * Makefile.in (TOOLKIT_DEFINES): Remove.
20172 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20173
201742008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20175
20176 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20177 (mactoolbox.o): New target.
20178
20179 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20180 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20181
20182 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20183 Use mac_set_frame_window_background instead of XSetWindowBackground.
20184 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20185 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20186 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20187 instead of SetWindowTitleWithCFString.
20188 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20189 Move function to mactoolbox.c.
20190 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20191 Use mac_set_window_modified instead of SetWindowModified.
20192 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20193 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20194 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20195 FrontNonFloatingWindow. Use mac_activate_window instead of
20196 ActivateWindow. Use mac_active_non_floating_window instead of
20197 ActiveNonFloatingWindow.
20198 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20199 Use mac_show_hourglass and mac_hide_hourglass.
20200 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20201 instead of GetGlobalMouse.
20202 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20203 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20204 Use mac_bring_window_to_front instead of BringToFront.
20205 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20206 mactoolbox.c.
20207 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20208 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20209 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20210 mactoolbox.c.
20211
20212 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20213 (XtPointer): Move typedef from macmenu.c.
20214 (enum button_type): Move enum from macmenu.c.
20215 (widget_value): Move typedef from macmenu.c.
20216 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20217 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20218 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20219 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20220 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20221 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20222 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20223 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20224 (Selection): Move typedef from macselect.c.
20225 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20226 macterm.c.
20227 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20228 (mac_is_window_collapsed, mac_bring_window_to_front)
20229 (mac_send_window_behind, mac_hide_window, mac_show_window)
20230 (mac_collapse_window, mac_front_non_floating_window)
20231 (mac_active_non_floating_window, mac_activate_window)
20232 (mac_move_window_structure, mac_move_window, mac_size_window)
20233 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20234
20235 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20236 (enum mac_menu_kind): Move enum to mactoolbox.c.
20237 (min_menu_id): Move variable to mactoolbox.c.
20238 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20239 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20240 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20241 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20242 [TARGET_API_MAC_CARBON]: Likewise.
20243 (XtPointer): Move typedef to macgui.h.
20244 (enum button_type): Move enum to macgui.h.
20245 (widget_value): Move typedef to macgui.h.
20246 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20247 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20248 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20249 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20250 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20251 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20252 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20253 (popup_activated_flag): Make variable non-static.
20254 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20255 (add_menu_item, fill_menu, dispose_menus):
20256 Move functions to mactoolbox.c.
20257 (restore_show_help_function, menu_target_item_handler)
20258 (install_menu_target_item_handler, mac_handle_dialog_event)
20259 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20260 [TARGET_API_MAC_CARBON]: Likewise.
20261 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20262 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20263 (find_and_call_menu_selection, name_is_separator): Make function
20264 non-static.
20265 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20266 to mactoolbox.c.
20267 (set_frame_menubar): Don't call install_menu_quit_handler.
20268 (menu_item_selection): New variable.
20269 (mac_menu_show): Use create_and_show_popup_menu.
20270 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20271 selection but set variable menu_item_selection. All uses changed.
20272 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20273 Call install_menu_quit_handler. Move to mactoolbox.c.
20274
20275 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20276 (Selection): Move typedef to macgui.h.
20277 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20278 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20279 Make variables non-static.
20280 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20281 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20282 Make functions non-static.
20283 (Vmac_service_selection) [MAC_OSX]: Likewise.
20284 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20285 (mac_valid_selection_target_p, mac_clear_selection)
20286 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20287 (mac_put_selection_value, mac_selection_has_target_p)
20288 (mac_get_selection_value, mac_get_selection_target_list)
20289 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20290 Move functions to mactoolbox.c.
20291 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20292 Likewise.
20293 (copy_scrap_flavor_data, mac_handle_service_event)
20294 (install_service_handler) [MAC_OSX]: Likewise.
20295 (syms_of_macselect) <Vmac_dnd_known_types>:
20296 Use mac_dnd_default_known_types.
20297
20298 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20299 Move to mactoolbox.c.
20300 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20301 (Fx_selection_owner_p): Add EXFUN.
20302 (install_window_handler, remove_window_handler, XSetWindowBackground):
20303 Remove externs.
20304 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20305 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20306 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20307 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20308 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20309 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20310 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20311 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20312 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20313 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20314 (mac_valid_selection_target_p, mac_clear_selection)
20315 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20316 (mac_put_selection_value, mac_selection_has_target_p)
20317 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20318 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20319 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20320 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20321 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20322 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20323 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20324 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20325 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20326
20327 * mactoolbox.c: New file.
20328
203292008-04-18 Jason Rumney <jasonr@gnu.org>
20330
20331 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20332
203332008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20334
20335 * character.c (Fmultibyte_char_to_unibyte):
20336 Return latin1 chars unchanged.
20337
20338 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20339 relocated if it points to `name'.
20340
203412008-04-17 Kenichi Handa <handa@m17n.org>
20342
20343 * data.c (Faset): Allow setting a multibyte character in an
20344 ASCII-only unibyte string.
20345
20346 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20347
203482008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20349
20350 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20351 done in config.h.
20352
203532008-04-16 Juanma Barranquero <lekktu@gmail.com>
20354
20355 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20356 (Fchar_direction): Add usage in the docstring.
20357
203582008-04-15 Chong Yidong <cyd@stupidchicken.com>
20359
20360 * keyboard.c (read_key_sequence): Remove always-true checks.
20361
203622008-04-14 Jason Rumney <jasonr@gnu.org>
20363
20364 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20365 compatibility struct, for better underline positioning.
20366
203672008-04-13 David Hansen <david.hansen@gmx.net>
20368
20369 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20370 string.
20371
203722008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20373
20374 * m/hp800.h (XUINT, XSET): Remove.
20375
203762008-04-12 Juanma Barranquero <lekktu@gmail.com>
20377
20378 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20379 previous change.
20380
203812008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20382
20383 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20384 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20385
203862008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20387
20388 * keymap.h (map_keymap_canonical): Declare.
20389 * xmenu.c (single_keymap_panes): Use it.
20390
203912008-04-11 Glenn Morris <rgm@gnu.org>
20392
20393 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20394 set the target's value to that of the alias.
20395
203962008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20397
20398 * term.c (set_tty_color_mode): Left over typo.
20399
204002008-04-10 Michael Albinus <michael.albinus@gmx.de>
20401
20402 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20403 only after check for file name handler functions. Signal, when
20404 native functionality is not supported.
20405 (syms_of_fileio): Declare it unconditionally.
20406
204072008-04-10 Jason Rumney <jasonr@gnu.org>
20408
20409 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20410 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20411
20412 * w32.c (logon_network_drive): Also logon to remote drives that
20413 are mapped to drive letters.
20414
204152008-04-10 Glenn Morris <rgm@gnu.org>
20416
20417 * xdisp.c (truncate-partial-width-windows): Doc fix.
20418
204192008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20420
20421 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20422 Move functions to minibuffer.el.
20423 (syms_of_fileio): Don't declare them.
20424
204252008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20426
20427 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20428 (syms_of_minibuf): Remove its initialization.
20429
20430 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20431
204322008-04-09 Juanma Barranquero <lekktu@gmail.com>
20433
20434 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20435
204362008-04-09 Jason Rumney <jasonr@gnu.org>
20437
20438 * makefile.w32-in (distclean): Delete makefile too.
20439 (maintainer-clean): New target.
20440
20441 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20442
20443 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20444 for new font backend and composite cases.
20445
204462008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20447
20448 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20449 Most of the code moved to run_timers.
20450 (do_pending_atimers): Call run_timers.
20451 (run_timers): New function.
20452
20453 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20454 run atimers.
20455
20456 * process.c (wait_reading_process_output): The same as above.
20457
204582008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20459
20460 * minibuf.c (last_exact_completion): Remove variable.
20461 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20462 (complete_and_exit_1, complete_and_exit_2)
20463 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20464 (Fdisplay_completion_list, display_completion_list_1)
20465 (Fminibuffer_completion_help, Fself_insert_and_exit)
20466 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20467 minibuffer.el.
20468 (syms_of_minibuf): Remove corresponding initializations.
20469
20470 * keyboard.c (Qdeactivate_mark): New var.
20471 (command_loop_1): Use it to call `deactivate-mark'.
20472 (syms_of_keyboard): Initialize it.
20473
20474 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20475 to another frame.
20476 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20477 Don't call set_tty_color_mode.
20478 (store_frame_param): Reset previous_frame rather than call
20479 set_tty_color_mode.
20480 * term.c (set_tty_color_mode): Rewrite.
20481 * dispextern.h (set_tty_color_mode): New type.
20482 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20483
204842008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20485
20486 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20487 for generic chars, which do not exist any more in emacs-unicode.
20488
204892008-04-08 Michael Albinus <michael.albinus@gmx.de>
20490
20491 * coding.c (detect_coding_emacs_mule)
20492 (Ffind_operation_coding_system): Fix typo.
20493
204942008-04-08 Jason Rumney <jasonr@gnu.org>
20495
20496 * w32uniscribe.c (SNAME): Extract only symbol name.
20497
20498 * w32font.h (struct w32_metric_cache): New struct.
20499 (w32font_info): Use it.
20500 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20501 (CACHE_BLOCKSIZE): New constants.
20502
20503 * w32font.c (Qja, Qko, Qzh): New symbols.
20504 (syms_of_w32font): Initialise them.
20505 (font_matches_spec): Use them to filter by language.
20506 (recompute_cached_metrics): Remove function.
20507 (compute_metrics, clear_cached_metrics): New functions.
20508 (w32font_encode_char): Use them to manage metric cache.
20509 (w32font_text_extents): Cache metrics for all glyphs on demand.
20510 Delay converting glyph indices to WORD until needed.
20511 (w32font_open_internal): Initialize metric cache to empty.
20512 (registry_to_w32_charset): Charset should always be a symbol.
20513 (fill_in_logfont, list_all_matching_fonts): Family should
20514 always be a symbol.
20515
205162008-04-06 Jason Rumney <jasonr@gnu.org>
20517
20518 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20519 Give up if glyph indices not supported. Use uniscribe obtained
20520 ABC widths for individual metrics. Map glyph clusters back to
20521 characters using fClusterStart flag. Return number of glyphs
20522 produced, not chars processed.
20523 (uniscribe_shape): Map char at FROM to current glyph.
20524
205252008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20526
20527 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20528 Use SetMenuItemHierarchicalMenu.
20529
205302008-04-05 Jason Rumney <jasonr@gnu.org>
20531
20532 * image.c (pbm_load): Allow color values up to 65535.
20533 Throw an error if max_color_idx is outside the supported range.
20534 Report an error when image size is invalid.
20535 Read two bytes at a time when raw images have max_color_idx above 255.
20536
aac0c6e3
MR
205372008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20538
20539 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20540 append "CCL: Quitted" when the CCL program is quitted.
20541 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20542
20543 * ccl.h (struct ccl_program): New member quit_silently.
20544
205452008-04-05 Chong Yidong <cyd@stupidchicken.com>
20546
20547 * search.c (compile_pattern_1): Treat non-nil and non-string of
20548 search-spaces-regexp as nil.
20549
20550 * minibuf.c (Fassoc_string): Tweak docstring.
20551
205522008-04-05 Eli Zaretskii <eliz@gnu.org>
20553
20554 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20555 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20556 2008-03-14 to force inode be positive.
20557
20558 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20559 _S_* ones, since we now use our own sys/stat.h.
20560 (stat, fstat): Don't mangle the inode number.
20561 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20562
205632008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20564
20565 * frame.h (struct frame): Give one more bit to `visible' since we use
20566 values larger than 1 to indicate obscured frames on ttys.
20567
20568 * keymap.c (Qkeymap_canonicalize): New var.
20569 (Fmap_keymap_internal): New fun.
20570 (describe_map): Use keymap-canonicalize.
20571
20572 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20573 (Fundo_boundary): Set them.
20574 (syms_of_undo): Initialize them.
20575 (record_point): Use them instead of last_point_position*.
20576 (last_undo_buffer): Change type.
20577
205782008-04-04 Jason Rumney <jasonr@gnu.org>
20579
20580 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20581 (recompute_cached_metrics): Don't set ascent and descent per char.
20582
20583 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20584 (uniscribe_check_otf): Add GC protection before consing.
20585 Rearrange loop for counting features.
20586
205872008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20588
20589 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20590 buffer with byte-size of source buffer.
20591
205922008-04-03 Chong Yidong <cyd@stupidchicken.com>
20593
20594 * callint.c (Fcall_interactively): Handle temporary region even
20595 when shift-select-mode is off.
20596
205972008-04-03 Jason Rumney <jasonr@gnu.org>
20598
20599 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20600
206012008-04-03 Kenichi Handa <handa@m17n.org>
20602
20603 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20604 (CATEGORY_MASK_UTF_16): Likewise.
20605 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20606 binary file.
20607 (detect_coding): Add null-byte detection for a binary file.
20608 (detect_coding_system): Likewise.
20609
206102008-04-03 Jason Rumney <jasonr@gnu.org>
20611
20612 * w32uniscribe.c: New file.
20613
20614 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20615
20616 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20617
20618 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20619 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20620 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20621 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20622 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20623 (Qphonetic): New symbols.
20624 (syms_of_w32font): Initialize them.
20625 (font_supported_scripts): Use them.
20626 (w32font_list_family): List all charsets.
20627 (w32font_text_extents, recompute_cached_metrics): Fix metric
20628 calculations.
20629 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20630 Give opentype fonts their own format.
20631 (font_matches_spec): New arguments backend and logfont.
20632 Handle :otf spec for uniscribe backend.
20633 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20634 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20635
20636 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20637 font backend.
20638 (globals_of_w32fns): Initialize uniscribe font backend.
20639
20640 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20641 dependencies.
20642 (w32uniscribe.$(O)): New file to build.
20643 (FONT_OBJ): Include w32uniscribe.$(O).
20644 (LIBS): Add uniscribe libraries.
20645
20646 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20647
206482008-04-02 Chong Yidong <cyd@stupidchicken.com>
20649
20650 * callint.c (Vshift_select_mode): New var.
20651 (Finteractive): Document new ^ spec.
20652 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20653 is present.
20654
20655 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20656 (command_loop_1): Avoid running the direct display versions of
20657 forward-char and backward-char if shift-selection may occur.
20658 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20659 shift-translation takes place.
20660
20661 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20662 avoid clobbering by define-minor-mode.
20663
20664 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20665 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20666
20667 * syntax.c (Fforward_word): Add ^ interactive spec.
20668
20669 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20670 (Fscroll_right): Add ^ interactive spec.
20671
206722008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20673
20674 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20675
20676 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20677
20678 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20679
206802008-03-31 Juri Linkov <juri@jurta.org>
20681
20682 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20683
206842008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20685
20686 * gtkutil.c (xg_set_geometry): Fix indentation.
20687 (xg_resize_outer_widget): Remove.
20688 (x_wm_size_hint_off): Fix indentation.
20689 (xg_frame_set_char_size): Call flush_and_sync after
20690 gtk_window_resize.
20691 (x_wm_set_size_hint): Pass NULL as geometry window to
20692 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20693 Add menu bar and tool bar height to base height.
20694 (xg_update_frame_menubar, free_frame_menubar)
20695 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20696 (update_frame_tool_bar, free_frame_tool_bar):
20697 Change xg_resize_outer_widget to xg_frame_set_char_size.
20698
206992008-03-30 Michael Albinus <michael.albinus@gmx.de>
20700
20701 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20702 (Fdbus_call_method): New parameter TIMEOUT.
20703 (dbus-send-signal): Optimize UNGCPRO call.
20704
207052008-03-29 Juri Linkov <juri@jurta.org>
20706
20707 * window.c (Fdisplay_buffer): Move call to
20708 Vsplit_window_preferred_function out of conditions that check
20709 if window is eligible for vertical splitting.
20710 When Vsplit_window_preferred_function is non-nil, call it and use
20711 its non-nil return value as window. Otherwise, continue doing
20712 vertical splitting using Fsplit_window with arg horflag=nil.
20713 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20714 default value from `split-window' to nil.
20715
207162008-03-29 Juri Linkov <juri@jurta.org>
20717
20718 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20719 for interactive code letters 'b' and 'B'.
20720
207212008-03-29 Eli Zaretskii <eliz@gnu.org>
20722
20723 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20724 multibyte string.
20725
207262008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20727
20728 * keyboard.c (pending_funcalls): New var.
20729 (timer_check): Run it.
20730 (syms_of_keyboard): Initialize it.
20731 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20732 (Vdelete_terminal_functions): New vars.
20733 (syms_of_terminal): Initialize them.
20734 (Fdelete_terminal): Run delete-terminal-functions.
20735 * xdisp.c (safe_eval): Rewrite.
20736 (safe_call2): New fun.
20737 * frame.c (Qdelete_frame_functions): New var.
20738 (syms_of_frame): Initialize it.
20739 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20740 * lisp.h (safe_call2, pending_funcalls): Declare.
20741
207422008-03-28 Andreas Schwab <schwab@suse.de>
20743
20744 * indent.c (Fmove_to_column): Move declaration before statements.
20745
207462008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20747
20748 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20749 (struct frame): Use bit fields for boolean vars.
20750
20751 * process.c (server_accept_connection): Simplify naming.
20752 (emacs_get_tty_pgrp): Use SDATA.
20753
20754 * coding.c (decode_coding_object): Fix last change.
20755
207562008-03-27 Jason Rumney <jasonr@gnu.org>
20757
20758 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20759
207602008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20761
20762 * charset.c (Fdefine_charset_internal): Change the way of
20763 registering charsets in Vcharset_order_list.
20764 (syms_of_charset): Make the charset `eight-bit' supplementary.
20765
207662008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20767
20768 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20769 operations, to avoid having the difference between pointers
20770 overflow.
20771
207722008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20773
20774 * indent.c (check_display_width): New fun.
20775 (scan_for_column): Use it.
20776
20777 * data.c (syms_of_data): Mark most-positive-fixnum and
20778 most-negative-fixnum as constants.
20779
20780 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20781
20782 * indent.c (scan_for_column): Extract from current_column_1.
20783 Merge with the same code from Fmove_to_column.
20784 (current_column_1, Fmove_to_column): Use it.
20785
207862008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20787
20788 * keymap.c (map_keymap_internal): New fun.
20789 (map_keymap): Use it.
20790 (Fmap_keymap_internal): New fun.
20791 (Fmap_keymap): Remove left-out test from before make_save_value.
20792
20793 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20794
20795 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20796 Use XCAR/XCDR.
20797
20798 * process.h (struct Lisp_Process): Remove filter_multibyte.
20799 * process.c (QCfilter_multibyte): Remove.
20800 (setup_process_coding_systems): Don't use filter_multibyte.
20801 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20802 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20803 (Fset_process_filter_multibyte): Change the coding-system to
20804 approximate the previous behavior.
20805 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20806 coding-system.
20807
20808 * coding.c (decode_coding_object): When not decoding into a buffer,
20809 obey the coding system's preference of (uni|multi)byte.
20810
208112008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20812
20813 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20814 every char is changed and has a different byte-length.
20815 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20816 Fix int -> EMACS_INT.
20817
208182008-03-23 David Hansen <david.hansen@gmx.net>
20819
20820 * dbusbind.c (xd_read_message): Remove extra copying of message
20821 strings. Check for NULL `interface' or `member'.
20822
208232008-03-22 Eli Zaretskii <eliz@gnu.org>
20824
20825 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20826 cFileName a file name that includes `?' characters, use the 8+3
20827 alias in cAlternateFileName instead.
20828
208292008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20830
20831 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20832
208332008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20834
20835 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20836 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20837 work on current_buffer only instead (that was already the case
20838 for some of the code anyway).
20839 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20840 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20841 (SET_PT, SET_PT_BOTH): Adjust.
20842 * intervals.h (set_point, temp_set_point, set_point_both)
20843 (temp_set_point_both): Remove redundant declarations.
20844
208452008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20846
20847 * fileio.c (Finsert_file_contents):
20848 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20849 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20850 when buffer != current_buffer anyway.
20851
208522008-03-20 Andreas Schwab <schwab@suse.de>
20853
20854 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20855 as default.
20856
208572008-03-19 Jason Rumney <jasonr@gnu.org>
20858
20859 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20860 (syms_of_w32fns): Initialize them.
20861 (HOURGLASS_ID): New constant.
20862 (x_window_to_frame): Don't check hourglass_window.
20863 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20864 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20865 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20866 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20867 Only change the cursor if hourglass is not active.
20868 (Fx_create_frame): Initialize frame's current_cursor.
20869 (hourglass_atimer): Remove.
20870 (hourglass_started): New function.
20871 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20872 (show_hourglass): Adapt to w32, changing argument to frame.
20873
20874 * w32term.h (struct w32_output): Remove hourglass_window.
20875 Add current_cursor.
20876
20877 * eval.c (call_debugger, Fsignal):
20878 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20879 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20880 (Fexecute_extended_command, cancel_hourglass_unwind):
20881 * minibuf.c (read_minibuf):
20882 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20883
208842008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20885
20886 * window.c (run_funs): New fun.
20887 (run_window_configuration_change_hook): Use it to run the buffer-local
20888 and the global part of the hook.
20889
20890 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20891 (unwind_format_mode_line): Restore selected window.
20892 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20893
208942008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20895
20896 * editfns.c (Fchar_equal): Check they are valid characters.
20897
20898 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20899
209002008-03-17 Andreas Schwab <schwab@suse.de>
20901
20902 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20903 against a charset.
20904
20905 * lisp.h (Fbuffer_list): Declare.
20906
209072008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 20908
aac0c6e3
MR
20909 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20910 handlebox_widget is != 0.
20911
209122008-03-16 Juri Linkov <juri@jurta.org>
20913
20914 * callint.c (Fcall_interactively): For interactive code letters
20915 'b' and 'B' put the buffer list into the list of default "future"
20916 values of the minibuffer.
20917
209182008-03-16 Andreas Schwab <schwab@suse.de>
20919
20920 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20921 modifiers.
20922
20923 * regex.c (re_match_2_internal): Correct matching of a charset
20924 against latin-1 characters.
20925
209262008-03-16 Kenichi Handa <handa@m17n.org>
20927
20928 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20929 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20930 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20931 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20932 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20933 CHAR_STRING_ADVANCE.
20934 (produce_chars): Fix for the case that the source and the
20935 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20936 instead of CHAR_STRING_ADVANCE.
20937 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20938 STRING_CHAR_ADVANCE.
20939
209402008-03-15 Andreas Schwab <schwab@suse.de>
20941
20942 * regex.c (re_match_2_internal): Correct matching of eight bit
20943 characters in unibyte strings.
20944
209452008-03-15 Martin Rudalics <rudalics@gmx.at>
20946
20947 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20948 at end of range when it coincides with the end of the buffer.
20949
209502008-03-14 Eli Zaretskii <eliz@gnu.org>
20951
20952 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20953
20954 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20955
209562008-03-14 Jason Rumney <jasonr@gnu.org>
20957
20958 * editfns.c (initial_tz): New variable.
20959 (syms_of_editfns): Initialize it.
20960 (Fset_time_zone_rule): Set it when first called.
20961 Use it when TZSTRING is nil.
20962
20963 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20964 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20965 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20966 (globals_of_w32fns): Initialize them.
20967 (compute_tip_xy): Use them to position tooltips.
20968
209692008-03-14 Glenn Morris <rgm@gnu.org>
20970
20971 * emacs.c (main): Revert previous change.
20972 (standard_args): Revert -internal-script back to -scriptload,
20973 and remove the long-option form.
20974
209752008-03-13 Glenn Morris <rgm@gnu.org>
20976
20977 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20978 Remove option -enable-font-backend.
20979
209802008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20981
20982 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20983
209842008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20985
20986 * xterm.c (x_connection_closed): For GTK: If this is the last
20987 terminal just exit without closing the display.
20988
209892008-03-11 Jason Rumney <jasonr@gnu.org>
20990
20991 * w32font.c (w32font_full_name): Use floor to round.
20992
f0131492 209932008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
20994
20995 * sound.c (alsa_configure): Declare vol at beginning of block.
20996
20997 * fontset.c (Ffontset_info): Remove extra semicolon.
20998
209992008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
21000
21001 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
21002 size of resulting string.
21003
210042008-03-10 Jason Rumney <jasonr@gnu.org>
21005
21006 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
21007
210082008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21009
21010 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
21011 Don't pretend as if characters with display property haven't been
21012 consumed for string-replacing-string case.
21013
210142008-03-08 Kim F. Storm <storm@cua.dk>
21015
21016 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
21017 (get_next_display_element, next_element_from_string)
21018 (next_element_from_ellipsis, next_element_from_buffer): Use it.
21019
210202008-03-08 Andreas Schwab <schwab@suse.de>
21021
21022 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
21023
210242008-03-06 Jason Rumney <jasonr@gnu.org>
21025
21026 * w32font.c (w32_registry): Take font_type argument. Use ANSI
21027 when charset not specified. Only translate ANSI to unicode when
21028 font_type is truetype.
21029 (w32font_coverage_ok): New function.
21030 (add_font_entity_to_list): Use it to filter unsuitable fonts.
21031
210322008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
21033
21034 * lread.c (Fread_char): Resolve modifiers.
21035 (Fread_char_exclusive): Likewise.
21036
21037 * character.c (char_resolve_modifier_mask): New function.
21038 (char_string): Use char_resolve_modifier_mask.
21039 (Fchar_resolve_modifiers): New function.
21040 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
21041 function.
21042
210432008-03-04 Jason Rumney <jasonr@gnu.org>
21044
21045 * makefile.w32-in: Always include w32font.c in the build.
21046 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
21047
210482008-03-04 Andreas Schwab <schwab@suse.de>
21049
21050 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
21051 (versionclean): Likewise.
21052
210532008-03-04 Juanma Barranquero <lekktu@gmail.com>
21054
21055 * .cvsignore: Add oo.
21056
210572008-03-03 Andreas Schwab <schwab@suse.de>
21058
21059 * coding.c (decode_coding_object): Inhibit gap shrinking while
21060 decoding in place.
21061
210622008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21063
21064 * w32term.c: Remove unused include "gnu.h".
21065 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21066
21067 * gnu.h: Rename to ...
21068 * emacs-icon.h: ... this.
21069 * xterm.c: Use emacs-icon.h instead of gnu.h.
21070 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21071
210722008-03-03 Juanma Barranquero <lekktu@gmail.com>
21073
21074 * w32font.c: Include math.h.
21075
210762008-03-03 Jason Rumney <jasonr@gnu.org>
21077
21078 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21079 Compute options separately.
21080 (w32font_open_internal): Set glyph_idx before caching metrics.
21081
21082 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21083 Define if system headers don't.
21084 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21085 (w32font_encode_char): Don't declare here.
21086
21087 * w32font.c (Quniscribe, QCformat): New symbols.
21088 (syms_of_w32font): Define them.
21089 (w32font_has_char): Indicate uncertainty.
21090 (w32font_encode_char): Encode as glyph point. Make static.
21091 (recompute_cached_metrics): New function.
21092 (w32font_open_internal): Use it. Set font to use glyph points
21093 initially. Set format based on type of font.
21094 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21095 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21096 on it. Set format based on information available here.
21097 (add_font_entity_to_list): Identify backend based on opentype_only.
21098
210992008-03-02 Andreas Schwab <schwab@suse.de>
21100
21101 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21102
21103 * coding.c (decode_coding_big5, produce_chars):
21104 Fix typos in last change.
21105
211062008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21107
21108 * gnu.h: New icon.
21109
211102008-03-02 Kenichi Handa <handa@m17n.org>
21111
21112 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21113 `dos', don't decode '\r' if that is the last in the source.
21114 (decode_coding_utf_16, decode_coding_emacs_mule)
21115 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21116 (decode_coding_raw_text, decode_coding_charset): Likewise.
21117 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21118
211192008-03-01 Jason Rumney <jasonr@gnu.org>
21120
21121 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21122
211232008-03-01 Kim F. Storm <storm@cua.dk>
21124
21125 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21126
211272008-03-01 Jason Rumney <jasonr@gnu.org>
21128
21129 * w32font.c (w32font_full_name): New function.
21130 (w32font_open_internal): Use it.
21131
211322008-03-01 Kim F. Storm <storm@cua.dk>
21133
21134 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21135
211362008-03-01 Jason Rumney <jasonr@gnu.org>
21137
21138 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21139
211402008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21141
21142 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21143 xg_frame_resized when the event is for the edit widget.
21144
ef1b0ba7 21145 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
21146
21147 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21148 set_char_size.
ef1b0ba7 21149 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
21150 operations on widgets here. Just set frame size if needed.
21151 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21152 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21153 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21154 the whole frame.
21155 (xg_create_tool_bar): Move attachment of the tool bar to
21156 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21157 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21158
211592008-03-01 Jason Rumney <jasonr@gnu.org>
21160
21161 * w32fns.c (w32_msg_pump): Disable debug code.
21162
211632008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21164
21165 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21166
211672008-02-29 Chong Yidong <cyd@stupidchicken.com>
21168
21169 * xdisp.c (next_overlay_string): Don't set
21170 overlay_strings_at_end_processed_p if we're currently reading from
21171 a display string.
21172
211732008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21174
21175 * xdisp.c (get_overlay_strings_1): Fix typo.
21176
211772008-02-29 Chong Yidong <cyd@stupidchicken.com>
21178
21179 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21180
211812008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21182
21183 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21184
21185 * xdisp.c (display_mode_element): Cancel the previous change.
21186 (decode_mode_spec): Likewise.
21187 (handle_auto_composed_prop): Don't make composition if it->string
21188 is a string.
21189
211902008-02-27 Kim F. Storm <storm@cua.dk>
21191
21192 * lisp.h (GLYPH): Change type from int to struct with separate char
21193 and face_id members.
21194 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21195 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21196 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21197 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21198 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21199 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21200 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21201 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21202 handle new Lisp glyph code encoding, either an integer or a cons.
21203
21204 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21205 (GLYPH_ALIAS): Delete.
21206 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21207 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21208 (GLYPH_FROM_CHAR): Replace macro by ...
21209 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21210
21211 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21212 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21213 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21214 (GLYPH_INVALID_P): New macro.
21215 (spec_glyph_lookup_face): Update prototype.
21216
21217 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21218 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21219 new glyph code encoding.
21220 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21221 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21222
21223 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21224 Adapt to new glyph type and new glyph code encoding.
21225
21226 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21227
21228 * indent.c (current_column, current_column_1, Fmove_to_column)
21229 (compute_motion): Adapt to new glyph code encoding.
21230
21231 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21232
212332008-02-27 Chong Yidong <cyd@stupidchicken.com>
21234
21235 * process.c (wait_reading_process_output): Check for window
21236 changes caused by timers.
21237 Suggested by Johan Bockgård.
21238
212392008-02-27 Glenn Morris <rgm@gnu.org>
21240
21241 * emacs.c (USAGE1): Add `--disable-font-backend'.
21242
212432008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21244
21245 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21246 is made to the buffer.
21247
212482008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21249
21250 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21251 (face_at_string_position):
21252 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21253 (face_at_string_position):
21254 * xdisp.c (display_string, next_overlay_change):
21255 * buffer.h (overlays_at):
21256 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21257 Update callers.
21258
212592008-02-26 Chong Yidong <cyd@stupidchicken.com>
21260
21261 * editfns.c (Fformat): Doc fix.
21262
212632008-02-26 Juanma Barranquero <lekktu@gmail.com>
21264
21265 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21266 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21267 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21268
212692008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21270
21271 * buffer.c (Fbuffer_swap_text): New function.
21272 (syms_of_buffer): Defsubr it.
21273
212742008-02-25 Chong Yidong <cyd@stupidchicken.com>
21275
21276 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21277
212782008-02-25 Jason Rumney <jasonr@gnu.org>
21279
21280 * w32font.c (w32font_draw): Draw one character at a time when padding.
21281
212822008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21283
21284 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21285 Handle a nil arg. Use run_window_configuration_change_hook.
21286 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21287 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21288 Use run_window_configuration_change_hook.
21289
212902008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21291
21292 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21293 1-pixel width.
21294
212952008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21296
21297 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21298 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21299 if the glyph in the font is zero pixel with.
21300
21301 * dispextern.h (struct glyph_string): New member padding_p.
21302
21303 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21304
21305 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21306
21307 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21308
21309 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21310
21311 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21312
213132008-02-25 Jason Rumney <jasonr@gnu.org>
21314
21315 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21316
213172008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21318
21319 Allow fine-grained image-cache flushing.
21320 * dispextern.h (struct image): Add `dependencies' field.
21321 (clear_image_caches): Change arg to Lisp_Object.
21322 * image.c (make_image): Initialize `dependencies' field.
21323 (clear_image_cache): Change arg to allow fine-grained flushing.
21324 Perform the flush even if image-cache-eviction-delay is nil.
21325 (clear_image_caches): Change arg to Lisp_Object.
21326 (Fclear_image_cache): Expand meaning of the argument.
21327 (mark_image): Mark `dependencies' field.
21328 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21329 (lface_hash): Use XHASH rather than XFASTINT.
21330 (face_at_buffer_position): Fix int -> EMACS_INT position.
21331 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21332 (select_frame_for_redisplay): Remove code duplication.
21333 (redisplay_internal): Adapt arg to call to clear_image_caches.
21334
213352008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21336
21337 * s/vms4-0.h:
21338 * s/vms4-2.h:
21339 * s/vms4-4.h:
21340 * s/vms5-5.h: Remove, unused.
21341
21342 * s/irix5-2.h:
21343 * s/irix6-0.h:
21344 * s/riscos5.h:
21345 * s/mach-bsd4-3.h:
21346 * m/mips4.h: Remove files for obsolete systems.
21347
21348 * Makefile.in:
21349 * filelock.c:
21350 * unexmips.c:
21351 * m/hp9000s300.h:
21352 * m/iris4d.h:
21353 * s/aix3-1.h:
21354 * s/hpux.h:
21355 * s/msdos.h:
21356 * s/usg5-0.h:
21357 * s/usg5-2-2.h:
21358 * s/usg5-2.h:
21359 * s/usg5-3.h: Remove references to obsolete variables.
21360
21361 * s/irix5-0.h: Remove, move all the contents ...
21362 * s/irix6-5.h: ... here. Simplify.
21363 * config.in: Regenerate.
21364
213652008-02-24 Jason Rumney <jasonr@gnu.org>
21366
21367 * w32term.c (x_draw_glyph_string_background): Clear the background
21368 manually when cleartype is in use.
21369 (x_draw_glyph_string_foreground): Draw text transparently when
21370 cleartype is in use.
21371
21372 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21373 a font into it unless we have to.
21374
213752008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21376
21377 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21378 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 21379
aac0c6e3
MR
213802008-02-18 Jason Rumney <jasonr@gnu.org>
21381
21382 * w32fns.c (Fw32_shell_execute): Encode parameters.
21383
213842008-02-09 Eli Zaretskii <eliz@gnu.org>
21385
21386 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21387
213882008-02-05 Juanma Barranquero <lekktu@gmail.com>
21389
21390 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21391
213922008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21393
21394 * xterm.c (x_set_offset): Don't change the gravity if
21395 CHANGE_GRAVITY is -1.
21396
213972008-02-23 Chong Yidong <cyd@stupidchicken.com>
21398
21399 * fileio.c (auto_save_error_occurred): New var.
21400 (auto_save_error): Set it.
21401 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21402 error occurred.
21403
214042008-02-23 Eli Zaretskii <eliz@gnu.org>
21405
21406 * w32.c (globals_of_w32): Add initializations for
21407 g_b_init_get_sid_sub_authority and
21408 g_b_init_get_sid_sub_authority_count.
21409
214102008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21411
21412 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21413 (font_parse_xlfd): Use them for sanity check.
21414 (Finternal_set_font_style_table): Make sure the table is bijective.
21415
21416 Consolidate the image_cache to the terminal struct.
21417 * termhooks.h (P_): Remove redundant def.
21418 (struct terminal): New field `image_cache'.
21419 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21420 of FRAME_X_IMAGE_CACHE.
21421 * xterm.h (struct x_display_info): Remove image_cache field.
21422 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21423 * w32term.h (struct w32_display_info): Remove image_cache field.
21424 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21425 * macterm.h (struct mac_display_info): Remove image_cache field.
21426 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21427 * xterm.c (x_term_init):
21428 * w32term.c (w32_term_init):
21429 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21430 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21431 Remove declarations.
21432 (clear_image_caches, mark_image_cache): New declarations.
21433 * xfaces.c (clear_face_cache):
21434 * xdisp.c (redisplay_internal): Use clear_image_caches.
21435 * image.c (clear_image_cache): Don't check that a frame is on
21436 a window-system before checking if it shares the same cache.
21437 (clear_image_caches): New function.
21438 (Fclear_image_cache): Use it.
21439 (mark_image): Move from allo.c.
21440 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21441 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21442 (mark_object): Don't call mark_image_cache for frames.
21443 (mark_terminals): Call mark_image_cache.
21444
21445 * lisp.h (Fdelete_terminal): Declare.
21446
21447 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21448 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21449 wrong_type_argument.
21450
214512008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21452
21453 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21454 malayalam.el, and tamil.el. Add sinhala.el.
21455
214562008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21457
21458 * xterm.c (x_connection_closed): Consolidate identical tests.
21459 (x_delete_terminal): Don't crash if called via x_connection_closed.
21460
214612008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21462
21463 * xdisp.c (decode_mode_spec): New arg string.
21464 (display_mode_element): Adjust for the above change.
21465
214662008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21467
21468 * callint.c (Fcall_interactively): Use AREF.
21469
214702008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21471
21472 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21473
214742008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21475
21476 * xfns.c (Fx_show_tip): Set string to " " if empty.
21477
214782008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21479
21480 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21481 with Qt.
21482
214832008-02-17 Kenichi Handa <handa@m17n.org>
21484
21485 * ftfont.c (ftfont_shape): Return Lispy number.
21486
21487 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21488 for GCs.
21489 (Finternal_set_font_selection_order): Call font_update_sort_order
21490 only when enable_font_backend is set.
21491 (realize_x_face): Set face->font_info to that of default face only
21492 when enable_font_backend is set.
21493
21494 * xdisp.c (handle_composition_prop): Set it->c to the fist
21495 character of the composed region.
21496 (fill_composite_glyph_string): Set base_face->font_info to
21497 s->font_info. Get a face for ascii from base_face->ascii_face.
21498 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21499 with a face already decided.
21500 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21501 non-negative.
21502 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21503 call font_prepare_composition unconditionally.
21504
21505 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21506
21507 * xterm.h (struct x_display_info): New member font.
21508
21509 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21510 (x_set_mouse_face_gc, x_new_font): Likewise.
21511 (x_term_init): Setup display_info->font.
21512 (x_delete_terminal): Free display_info->font.
21513
21514 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21515
21516 * ftxfont.c (ftxfont_default_fid): Delete it.
21517 (ftxfont_open): Set xfont->fid to 0.
21518 (ftxfont_end_for_frame): Clear data specific to the frame and the
21519 font-driver.
21520
21521 * xftfont.c (xftfont_default_fid): Delete it.
21522 (xftfont_open): Set xfont->fid to 0.
21523
21524 * fontset.c (FONTSET_OBJLIST): New macro.
21525 (fontset_find_font): Update font-object list of the fontset.
21526 (free_realized_fontset): New function.
21527 (free_face_fontset): Call free_realized_fontset.
21528 (Ffont_info): Call font_close_object only when enable_font_backend
21529 is set.
21530
21531 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21532 [HAVE_NTGUI]: Include w32term.h.
21533 [MAC_OS]: Include macterm.ch.
21534 (font_otf_ValueRecord): Use make_number.
21535 (font_finish_cache): Fix handling of reference count.
21536 (font_clear_cache): Update num_fonts.
21537 (font_open_entity): Update smallest_char_width and
21538 smallest_font_height of the frame.
21539 (font_close_object): Update num_fonts.
21540 (Fclear_font_cache): Fix finding the target cache data.
21541
215422008-02-16 Glenn Morris <rgm@gnu.org>
21543
21544 * fontset.c (Finternal_char_font): Fix compilation warning.
21545
215462008-02-16 Eli Zaretskii <eliz@gnu.org>
21547
21548 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21549 instead of char arrays. Enlarge the size of array passed to
21550 get_token_information.
21551
21552 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21553 warnings.
21554
215552008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21556
21557 * .gdbinit: Don't set `args', it breaks gdb --args.
21558
215592008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21560
21561 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21562 within a narrowed buffer.
21563
215642008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21565
21566 * coding.c (decode_coding_object, encode_coding_object):
21567 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21568
215692008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21570
21571 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21572 hardcoding 1.
21573 (detect_coding_system):
21574 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21575 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21576 * insdel.c (insert_from_gap):
21577 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21578 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21579 (string_to_multibyte):
21580 * character.c (chars_in_text, multibyte_chars_in_text):
21581 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21582
21583 * character.h (FETCH_STRING_CHAR_ADVANCE)
21584 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21585 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21586 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21587
21588 * casefiddle.c (casify_region): Only call after-change and composition
21589 functions on the part of the region that was changed.
21590
21591 * keyboard.c (read_avail_input):
21592 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21593
215942008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21595
21596 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21597 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21598
215992008-02-11 Juanma Barranquero <lekktu@gmail.com>
21600
21601 * w32menu.c (push_submenu_start, push_submenu_end)
21602 (push_left_right_boundary, push_menu_pane, push_menu_item):
21603 * keyboard.c (read_key_sequence): Don't pass args with side effects
21604 to AREF, it fails when compiling with -DENABLE_CHECKING.
21605
216062008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21607
21608 * Makefile.in (${lispsource}international/charprop.el):
21609 Delete this target.
21610
21611 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21612 emacs-unicode-2.
21613
216142008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21615
21616 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21617
216182008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21619
21620 * frame.c (Qnoelisp): New symbol.
21621 (syms_of_frame): Initialize it.
21622 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21623 harmless Elisp code, from a strong `force' from x_connection_closed.
21624 * frame.h (Qnoelisp): Declare.
21625 * xterm.c (x_connection_closed): Pass `noelisp'.
21626
21627 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21628 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21629 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21630 rather than `int' for the type of `type'.
21631
216322008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21633
21634 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21635
21636 * Makefile.in (GNUC): Remove support for gcc-1.x.
21637
216382008-02-10 Richard Stallman <rms@gnu.org>
21639
21640 * lisp.h (ASET): Use AREF, not ASLOT.
21641
216422008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21643
21644 * lisp.h (ASET): Check bounds.
21645
216462008-02-10 Glenn Morris <rgm@gnu.org>
21647
21648 * buffer.c (mode-name): Doc fix.
21649
216502008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21651
21652 * Makefile.in:
21653 * emacs.c:
21654 * gmalloc.c:
21655 * keyboard.c:
21656 * lisp.h:
21657 * m/ibm370aix.h:
21658 * process.c:
21659 * regex.c:
21660 * s/hpux.h:
21661 * sysdep.c:
21662 * sysselect.h:
21663 * systty.h:
21664 * unexec.c:
21665 * w32term.c:
21666 * xsmfns.c:
21667 * xterm.c: Remove code that deals with obsolete variables.
21668
21669 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21670
21671 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21672 nothing else needs it anymore.
21673
216742008-02-09 Eli Zaretskii <eliz@gnu.org>
21675
21676 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21677 instead of unibyte_char_to_multibyte.
21678
216792008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21680
21681 * s/gnu-linux.h: Remove commented out code.
21682
21683 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21684
21685 * Makefile.in: Update what RMS says about using autoconf.
21686 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21687 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21688 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21689 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21690
216912008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21692
21693 * keymap.c (Fkey_description): Move side effect outside of macro call.
21694
21695 * xfaces.c (Finternal_make_lisp_face):
21696 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21697
21698 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21699 (syms_of_fontset): Use ASET.
21700
21701 * fns.c (concat): Move side effect outside of macro call.
21702 (hash_clear): Use ASET.
21703
217042008-02-08 Richard Stallman <rms@gnu.org>
21705
21706 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21707 If FORCE, and frame has a surrogate minibuffer for another frame,
21708 delete the other frame first.
21709
217102008-02-07 Timo Savola <timo.savola@iki.fi>
21711
21712 * xterm.c (x_detect_focus_change): Handle embed client message.
21713 (handle_one_xevent): Ditto.
21714 (handle_one_xevent): If embedded and we get a button press/release,
21715 request focus.
21716 (xembed_set_info, xembed_send_message): New functions.
21717 (x_make_frame_visible): Call xembed_set_info if embedded.
21718 (x_make_frame_invisible): Call xembed_set_info if embedded.
21719 (x_term_init): Initialize Xatom_XEMBED.
21720 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21721 (x_iconify_frame): Ditto.
21722
21723 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21724 (enum xembed_info, enum xembed_message, enum xembed_focus)
21725 (enum xembed_modifier, enum xembed_accelerator): New.
21726 (xembed_set_info, xembed_send_message): Declare.
21727 (FRAME_X_EMBEDDED_P): New.
21728
21729 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21730 gtk_plug_new.
21731
21732 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21733 window ID of a frame.
21734 (x_window): Reparent frame if embedded.
21735 (Fx_create_frame): Don't set border width if embedded.
21736
21737 * emacs.c (USAGE3): Add --parent-id.
21738 (standard_args): Ditto.
21739
217402008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21741
21742 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21743
217442008-02-07 Jim Meyering <meyering@redhat.com>
21745
21746 Use "do...while (0)", not "if (1)...else" in macro definitions.
21747 The latter provokes a warning from gcc about the empty else, when
21748 followed by ";". Also, without that trailing semicolon, it would
21749 silently swallow up any following statement.
21750 * syntax.h (SETUP_SYNTAX_TABLE)
21751 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21752 * buffer.h (DECODE_POSITION): Likewise.
21753 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21754 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21755 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21756 (FETCH_CHAR_ADVANCE): Likewise.
21757 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21758
217592008-02-07 Jim Meyering <meyering@redhat.com>
21760
21761 * lread.c [lint]: Don't include <sys/inode.h>.
21762
217632008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21764
21765 * xselect.c (x_handle_dnd_message):
21766 * xmenu.c (digest_single_submenu, xmenu_show):
21767 * xdisp.c (with_echo_area_buffer_unwind_data)
21768 (format_mode_line_unwind_data, unwind_format_mode_line)
21769 (display_menu_bar):
21770 * eval.c (Ffetch_bytecode):
21771 * doc.c (store_function_docstring):
21772 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21773 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21774 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21775
217762008-02-07 Kenichi Handa <handa@m17n.org>
21777
21778 * ftxfont.c (ftxfont_open): Don't set
21779 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21780
21781 * ftfont.c (ftfont_open): Fix previous change.
21782
217832008-02-06 Jason Rumney <jasonr@gnu.org>
21784
21785 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21786 Use cached metrics for ASCII characters.
21787 (w32font_open_internal): Don't set font's owning_frame.
21788 Cache metrics for ASCII characters.
21789
21790 * w32font.h (struct w32font_info): Add ascii_metrics.
21791 Remove owning_frame.
21792
217932008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21794
21795 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21796 to negative value.
21797
21798 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21799
21800 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21801
21802 * charset.c (syms_of_charset): Set QCtest and Qeq.
21803
218042008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21805
21806 * process.c (Fstart_process):
21807 * callproc.c (Fcall_process): Handle the case where
21808 Funhandled_file_name_directory returns nil.
21809
21810 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21811 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21812 * font.c (check_gstring): Use them and AREF to access the vector before
21813 we know it's really a gstring.
21814 (Ffont_shape_text): Fix typo.
46e722a9 21815 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
21816
21817 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21818 Declare.
21819
21820 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21821
218222008-02-05 Jason Rumney <jasonr@gnu.org>
21823
21824 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21825 Set smallest_font_height and smallest_char_width in display info.
21826
218272008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21828
21829 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21830
218312008-02-05 Miles Bader <miles@gnu.org>
21832
21833 * xfaces.c (get_lface_attributes, merge_named_face)
21834 (lookup_named_face, lookup_derived_face, realize_named_face):
21835 Revert 2008-02-01 change by cyd@stupidchicken.com.
21836
218372008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21838
21839 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21840 fallback fonts.
21841 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21842
218432008-02-04 Jason Rumney <jasonr@gnu.org>
21844
21845 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21846 set full_name.
21847 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21848
218492008-02-03 Jason Rumney <jasonr@gnu.org>
21850
21851 * makefile.w32-in (OBJ1): Include font.o here.
21852 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21853
218542008-02-02 Jason Rumney <jasonr@gnu.org>
21855
21856 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21857
218582008-02-01 Jason Rumney <jasonr@gnu.org>
21859
21860 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21861
21862 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21863
218642008-02-01 Andreas Schwab <schwab@suse.de>
21865
21866 * Makefile.in (shortlisp, lisp): Update for rename of
21867 ../lisp/language/myanmar.el.
21868
218692008-02-01 Chong Yidong <cyd@stupidchicken.com>
21870
21871 * xfaces.c (get_lface_attributes): Delete function.
21872 (merge_named_face, lookup_named_face, lookup_derived_face)
21873 (realize_named_face): Call lface_from_face_name directly, and use
21874 the fact that merge_face_vectors does not alter its FROM argument.
21875
218762008-02-01 Jason Rumney <jasonr@gnu.org>
21877
21878 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21879 input in the default locale. Handle non-Unicode multibyte input.
21880
218812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21882
21883 * fontset.c (reorder_font_vector): Exclude nil elements from the
21884 font group. Don't try multiple fonts.
21885 (fontset_font): Adjust for the above change.
21886 (Finternal_char_font): Return nil if the found font doesn't
21887 contain the character ch.
21888
21889 * Makefile.in (lisp, shortlisp): Add cham.el.
21890
218912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21892
21893 * font.h (FONTP): Make it return 1 also for a font-object.
21894
21895 * .gdbinit (xfontset): New function.
21896
21897 * font.c (font_find_for_lface): Check if the character C is
21898 supported or not only for the first font.
21899
21900 * fontset.c (reorder_font_vector): Fix typo.
21901 (fontset_find_font): Don't add a font-spec specifying a script.
21902 Use 0 (not Qt) for the indication of empty font-group. Change the
21903 format of RFONT-DEF. Return Qt if no font in the font-group
21904 support the character.
21905 (fontset_font): Adjust for the above change. If no font was
21906 found the character, remember that.
21907 (face_for_char): Adjust for the change of RFONT-DEF.
21908 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21909 no font for the target.
21910 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21911
219122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21913
21914 * font.c (font_load_for_face): Handle the case that the font in
21915 face->lface is a string.
21916
219172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21918
21919 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21920
219212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21922
21923 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21924 Fix previous change. If the frame is not on a window system,
21925 signal an error.
21926
219272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21928
bba3e508
SM
21929 * coding.c (decode_coding_object, encode_coding_object):
21930 Adjust marker positions after conversion.
aac0c6e3
MR
21931
21932 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21933
219342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21935
21936 * font.c (font_find_for_lface): Fix the handling of the return
21937 value of font_has_char.
21938 (Ffont_shape_text): Fix previous change.
21939
21940 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21941 (fontset_ref_and_range): Delete it.
21942 (fontset_find_font): Call char_table_ref_and_range instead of
21943 FONTSET_REF_AND_RANGE.
21944 (make_fontset): Don't setup font groups of Latin here.
21945 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21946 (new_fontset_from_font): Make the specified font the default for
21947 all Latin characters.
21948
219492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21950
21951 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21952 is on a window system before accessing the fontset of the frame.
21953
219542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21955
21956 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21957
21958 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21959 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21960
21961 * font.c (Ffont_shape_text): If the font driver doesn't have a
21962 shaper function, make zero-width glyphs to have at least one-pixel
21963 width. Fix setting of `to' field of glyphs.
21964
219652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21966
21967 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21968 glyphs.
21969
21970 * font.h (struct font_driver): Improve docstring of member `shape'.
21971
219722008-02-01 Kenichi Handa <handa@m17n.org>
21973
21974 * composite.c (syms_of_composite): Fix docstring of
21975 auto-composition-function.
21976
21977 * font.h (LGLYPH_SIZE): New macro.
21978
21979 * font.c (Ffont_fill_gstring): Stop filling when a character not
21980 supported by the font is found.
21981 (Ffont_shape_text): When a shape callback function returns nil,
21982 try at most two more times with larger gstring.
21983 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21984
21985 * xdisp.c (handle_auto_composed_prop): Change the argument to
21986 auto-composition-function.
21987
21988 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21989 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21990 Lispy glyph and store it in the lgstring.
21991
21992 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21993
21994 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21995
219962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21997
21998 * font.c (Ffont_shape_text): Avoid unnecessary composition.
21999
22000 * fontset.c (Vfont_encoding_charset_alist): New variable.
22001 (syms_of_fontset): DEFVAR it.
22002 (reorder_font_vector, fontset_find_font): Optimize for the case of
22003 no need of reordering.
22004 (face_for_char): Map the charset property by
22005 Vfont_encoding_charset_alist.
22006
220072008-02-01 Jason Rumney <jasonr@gnu.org>
22008
22009 * w32font.c (logfonts_match): Don't check adstyle here.
22010 (font_matches_spec): Check here against physical font instead.
22011 (add_font_entity_to_list): Avoid some substitutions.
22012
22013 * font.c (font_parse_fcname): Default weight and slant to normal.
22014 (font_score): Prefer normal fonts if weight or slant unspecified.
22015 (font_score) [WINDOWSNT]: Scale weight difference down to closer
22016 match freetype scores.
22017
220182008-02-01 Jason Rumney <jasonr@gnu.org>
22019
22020 * w32font.c (w32font_text_extents): Don't use the frame stored in the
22021 font, as it may have been deleted.
22022 (w32_enumfont_pattern_entity): Map generic family to adstyle using
22023 most common hyphenless variation.
22024 (logfonts_match): Check generic family.
22025 (font_matches_spec): Don't check generic family here.
22026 (fill_in_logfont): Set generic family based on adstyle.
22027
22028 * w32font.h (w32font_get_cache): Update declaration.
22029
220302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22031
22032 * ftfont.c (ftfont_get_cache): Adjust the argument type.
22033
22034 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
22035 If none of the new drivers are available, call font_update_drivers
22036 with the old drivers.
22037
22038 * w32font.c (w32font_get_cache): Adjust the argument type.
22039
22040 * xfont.c (xfont_get_cache): Adjust the argument type.
22041
22042 * font.h (struct font_driver): Change argument type of get_cache.
22043
22044 * xftfont.c (xftfont_start_for_frame): Delete prototype.
22045
22046 * font.c (Ffont_get): Fix arguments to Fassoc.
22047 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
22048 (font_clear_cache): New function.
22049 (font_list_entities, font_matching_entity): Use font_get_cache.
22050 (font_update_drivers): Call font_clear_cache when finishing a driver.
22051
22052 * fontset.c (fontset_find_font): Fix previous change.
22053
220542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22055
22056 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22057 dpyinfo->font_table.
22058 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22059 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22060
22061 * font.c (font_at): Handle the case that the arg C is negative.
22062 Handle the unibyte case.
22063 (Ffont_at): Call font_at with the arg C -1.
22064
22065 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22066 the position here, and call font_at with the arg C -1.
22067 Don't check the range of the existing composition at the point.
22068
220692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22070
22071 * fontset.c (fontset_add): New args charset_id and family.
22072 Change caller.
22073 (load_font_get_repertory, fontset_find_font): Assume that
22074 font_spec is always a font-spec object.
22075 (Fset_fontset_font): Always store a font-spec object in a fontset.
22076
22077 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22078 instead of get_property_and_range.
22079
220802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22081
22082 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22083 (xftfont_open): Don't keep locking face.
22084 (xftfont_close): Don't unlock face.
22085 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22086
22087 * fontset.c (fontset_find_font): Don't prefer a font of
22088 supplementary charset.
22089
220902008-02-01 Kenichi Handa <handa@m17n.org>
22091
22092 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22093 script, langsys_tag to langsys, new member script.
22094 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 22095 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
22096 listing to the script specified in that property. Fix arg to
22097 OTF_check_features.
22098
220992008-02-01 Jason Rumney <jasonr@gnu.org>
22100
22101 * w32font.h: New file.
22102
22103 * w32font.c: Include it.
22104 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22105 (w32font_open): Set owning_frame.
22106 (w32font_text_extents): Use owning_frame.
22107 (struct font_callback_data): Add opentype_only field.
22108 (add_font_entity_to_list): Use it to filter fonts.
22109 Don't check against full name.
22110 (w32font_list_internal): New function.
22111 (w32font_list): Use it.
22112 (w32font_match_internal): New function.
22113 (w32font_match): Use it.
22114 (w32font_open_internal): New function.
22115 (w32font_open): Use it.
22116 (w32font_get_cache, w32font_close, w32font_has_char)
22117 (w32font_encode_char, w32font_text_extents, w32font_draw):
22118 Make non-static.
22119
22120 * makefile.w32-in (w32font.o): Depend on w32font.h.
22121
221222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22123
22124 * charset.c (Fdefine_charset_internal): Record a supplementary
22125 charset at the tail of Vcharset_order_list.
22126
22127 * font.c (Ffont_shape_text): Fix the return value.
22128
22129 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22130
22131 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22132
221332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22134
22135 * ftfont.c (struct OpenTypeSpec): New struct.
22136 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22137 (ftfont_get_open_type_spec): New function.
22138 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22139
22140 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22141
221422008-02-01 Jason Rumney <jasonr@gnu.org>
22143
22144 * w32font.c (add_font_entity_to_list): Compare only the beginning
22145 of full name.
22146
221472008-02-01 Kenichi Handa <handa@m17n.org>
22148
22149 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22150 Never return HANDLED_RECOMPUTE_PROPS.
22151
221522008-02-01 Kenichi Handa <handa@m17n.org>
22153
22154 * font.c (font_gstring_produce): Delete it.
22155
22156 * composite.h (COMPOSITION_METHOD):
22157 Handle COMPOSITION_WITH_GLYPH_STRING.
22158
221592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22160
22161 * xfont.c (Qx): Delete.
22162 (syms_of_xfont): Don't initialize Qx.
22163
22164 * composite.h (enum composition_method):
22165 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22166
221672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22168
22169 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22170 (choose_face_font): Accept new form of font-spec.
22171
22172 * frame.h (font_driver_list): Declare it unconditionally.
22173 (struct frame): Define members font_driver_list and font_data_list
22174 unconditionally.
22175
22176 * fontset.c: Include "font.h" unconditionally.
22177 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22178 (Fset_fontset_font): Accept a font-spec object.
22179
22180 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22181 PIXEL_SIZE part a wild card.
22182
22183 * dispextern.h (struct glyph_string): Define members clip and
22184 num_clips unconditionally.
22185 (struct face): Define members font_info and extra unconditionally.
22186
22187 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22188 ftfont_info only when HAVE_LIBOTF is defined.
22189
221902008-02-01 Andreas Schwab <schwab@suse.de>
22191
22192 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22193 and end.
22194
221952008-02-01 Jason Rumney <jasonr@gnu.org>
22196
22197 * w32font.c (w32font_driver): Add new fields.
22198
221992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22200
22201 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22202 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22203 (LIBES): Add @M17N_FLT_CFLAGS@.
22204
22205 * composite.c (compose_text): Don't treat the new style
22206 composition specially.
22207
22208 * emacs.c (main): Call syms_of_font unconditionally.
22209
22210 * font.h (FONT_ENTITY_NOT_LOADABLE)
22211 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22212 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22213 (struct font_driver): New member shape.
22214 (font_registry_charsets): Extern it.
22215 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22216 (font_otf_capability, font_drive_otf): Delete their externs.
22217
22218 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22219 (font_charset_alist, font_registry_charsets): Move from xfont.c
22220 and rename.
22221 (font_prop_validate_otf): New function.
22222 (font_property_table): Register it for QCotf.
22223 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22224 (font_drive_otf): Delete.
22225 (font_prepare_composition): New arg F. Adjust for the change of
22226 lispy gstring.
22227 (font_find_for_lface): New arg C.
22228 (font_load_for_face): Adjust for the change of font_find_for_lface.
22229 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22230 lispy gstring.
22231 (Ffont_shape_text): New function.
22232 (Fopen_font): If the font size is not given, use 12-pixel.
22233 (Ffont_at): New arg STRING.
40b1a3a9 22234 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
22235 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22236 conditionally.
22237
22238 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22239 fonts of the same font-spec. Change the format of RFONT-DEF.
22240 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22241 Adjust for the change of RFONT-DEF.
22242 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22243
22244 * ftfont.h: New file.
22245
22246 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22247 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22248 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22249 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22250 font_otf_capability and font_drive_otf, set ftfont_shape.
22251 (ftfont_list): Adjust for the change of :otf property value.
22252 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22253 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22254 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22255 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22256 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22257 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22258
22259 * w32term.c (x_draw_composite_glyph_string_foreground):
22260 Adjust for the change of lispy gstring.
22261
22262 * xdisp.c (handle_composition_prop): Adjust for the change of
22263 lispy gstring. Call a function for auto-composition with the
22264 third arg it->window.
22265 (fill_composite_glyph_string): Adjust for the change of lispy string.
22266 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22267
22268 * xfaces.c (set_font_frame_param): Adjust for the change of
22269 font_find_for_lface.
22270
22271 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22272 (xfont_registry_charsets): Likewise. Change caller.
22273 (syms_of_xfont): Don't handle x_font_charset_alist.
22274
22275 * xftfont.c: Include "ftfont.h".
22276 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22277 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22278 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22279 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22280 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22281 Set xftfont_driver.shape to xftfont_shape.
22282
22283 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22284 the change of lispy gstring.
22285
222862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22287
22288 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22289
222902008-02-01 Jason Rumney <jasonr@gnu.org>
22291
22292 * w32font.c (w32font_draw): Fill background manually.
22293
222942008-02-01 Jason Rumney <jasonr@gnu.org>
22295
22296 * font.c (Qfontp): Remove unused symbol.
22297 (QCantialias): New symbol.
22298 (syms_of_font): Define it.
22299 (font_property_table): Set a validator for QCantialias.
22300
22301 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22302 Define if not already.
22303 (QCfamily): Share with xfaces.c.
22304 (Qstandard, Qsubpixel, Qnatural): New symbols.
22305 (syms_of_w32font): Define them. Don't define QCfamily here.
22306 (w32_antialias_type, lispy_antialias_type): New functions.
22307 (w32_enumfont_pattern_entity): New arg requested_font.
22308 Set antialias parameter if non-default was requested.
22309 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22310
223112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22312
22313 * lread.c (read1): Undo the previous change.
22314
223152008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22316
22317 * frame.c (Fdelete_frame): Call font_update_drivers only when
22318 USE_FONT_BACKEND is defined.
22319
223202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22321
22322 * font.h (struct font_bitmap): New member bits_per_pixel.
22323 (struct font_driver): New members start_for_frame and end_for_frame.
22324 (struct font_data_list): New struct.
22325 (font_put_frame_data, font_get_frame_data): Extern them.
22326
22327 * frame.h (struct frame): New member font_data_list.
22328
22329 * font.c (font_update_drivers): Call driver->start_for_frame and
22330 driver->end_for_frame at proper timings.
22331 (font_put_frame_data, font_get_frame_data): New functions.
22332 (Ffont_spec): Add usage in the docstring.
22333
22334 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22335 (Fdelete_frame): Call font_update_drivers.
22336
22337 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22338 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22339 (xftfont_get_xft_draw): New function.
22340 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22341 (xftfont_end_for_frame): New function.
22342 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22343
22344 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22345 Change argument. Cache GCs in the per-frame data.
22346 (struct ftxfont_frame_data): New struct.
22347 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22348 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22349 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22350 (ftxfont_end_for_frame): New function.
22351 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22352
22353 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22354
223552008-02-01 Kenichi Handa <handa@m17n.org>
22356
22357 * xselect.c (Vselection_coding_system)
22358 (Vnext_selection_coding_system): Delete them.
22359 (syms_of_xselect): Don't declare selection-coding-system and
22360 next-selection-coding-system. They are declared in select.el.
22361
223622008-02-01 Jason Rumney <jasonr@gnu.org>
22363
22364 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22365
22366 * w32fns.c: Include imm.h.
22367 (get_composition_string_fn, get_ime_context_fn): New optional
22368 system functions.
22369 (globals_of_w32fns): Load them from imm32.dll.
22370 (ignore_ime_char): New flag.
22371 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22372 WM_IME_ENDCOMPOSITION messages.
22373
22374 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22375 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22376
223772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22378
22379 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22380 (READCHAR_REPORT_MULTIBYTE): New macro.
22381 (readchar): New 2nd arg MULTIBYTE.
22382 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22383 Make symbol's name multibyte according to the multibyteness of the
22384 source.
22385
223862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22387
22388 * xfaces.c (face_for_overlay_string): Call lookup_face with
22389 correct arguments (fix of synching with the trunk).
22390
223912008-02-01 Kenichi Handa <handa@m17n.org>
22392
22393 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22394 (font_prop_validate_non_neg, font_prop_validate_spacing):
22395 Delete argument prop_index.
22396 (font_property_table): Change arguments to validater. Change Callers.
22397 (font_lispy_object): Delete.
22398 (font_at): Use font_find_object instead fo font_lispy_object.
22399
224002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22401
22402 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22403 and file names.
22404
224052008-02-01 Jason Rumney <jasonr@gnu.org>
22406
22407 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22408 (font_matches_spec): Remove debug output.
22409 (add_font_entity_to_list): Avoid using substituted fonts.
22410
224112008-02-01 Jason Rumney <jasonr@gnu.org>
22412
22413 * doc.c (Fsnarf_documentation):
22414 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22415
224162008-02-01 Miles Bader <miles@gnu.org>
22417
22418 * dispextern.h (struct glyph_row): Only define "clip" field if
22419 HAVE_WINDOW_SYSTEM is defined.
22420
224212008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22422
22423 Fix up multi-tty merge.
22424
22425 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22426 and indentation.
22427
22428 * xfaces.c (free_realized_face, clear_face_gcs):
22429 Include font_done_for_face in the input_blocked section, just in case.
22430
22431 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22432 (get_char_face_and_encoding): Undo last change and remove the *other*
22433 duplicate definition (i.e. keep the one that's better scoped and that
22434 includes code for the font-backend).
22435
22436 * terminal.c (create_terminal): Default keyboard_coding to
22437 `no-conversion' and terminal_coding to `undecided'.
22438
22439 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22440
22441 * fontset.c (free_realized_fontsets): Check that the table entry does
22442 contain a fontset before trying to compare it to `base'.
22443
22444 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22445 syms_of_charset, and syms_of_coding earlier because init_window_once
22446 now needs Vcoding_system_hash_table to be setup.
22447
22448 * coding.h (default_buffer_file_coding): Remove.
22449
22450 * coding.c (default_buffer_file_coding): Remove.
22451 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22452 than ->symbol, and use the terminal-local coding system.
22453 (syms_of_coding): Don't setup the coding-systems that are not
22454 terminal-local.
22455 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22456
22457 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22458 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22459
22460 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22461 in chartab.c and were re-added here by mistake.
22462 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22463
22464 * doc.c (Fsnarf_documentation):
22465 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22466 src to etc.
22467
22468 * ChangeLog.10: Add mistakenly removed entry.
22469
224702008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22471
22472 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22473
224742008-02-01 Miles Bader <miles@gnu.org>
22475
22476 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22477 Add extra args to FACE_FOR_CHAR.
22478
224792008-02-01 Kenichi Handa <handa@m17n.org>
22480
22481 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22482 in sequence.
22483
22484 * chartab.c (map_sub_char_table, map_char_table): If the range
22485 contains just one character, call the function with that character
22486 even if the depth is not 3.
22487
224882008-02-01 Jason Rumney <jasonr@gnu.org>
22489
22490 * w32font.c (w32font_text_extents): Calculate metrics for the
22491 whole string.
22492
224932008-02-01 Jason Rumney <jasonr@gnu.org>
22494
22495 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22496
224972008-02-01 Jason Rumney <jasonr@gnu.org>
22498
bba3e508
SM
22499 * w32term.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 * w32font.c (w32font_draw): Do clipping here.
22505
225062008-02-01 Kenichi Handa <handa@m17n.org>
22507
22508 * xftfont.c (xftfont_draw): Adjust for the change of struct
22509 glyph_string.
22510
bba3e508
SM
22511 * xterm.c (x_set_glyph_string_clipping):
22512 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22513 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22514 Adjust for the change of struct glyph_string.
22515
22516 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22517 the resulting clip(s}.
22518 (expose_overlaps): Add arg r. Change callers. Set it to
22519 row->clip temporarily.
22520 (expose_window): Redraw rows overlapping the exposed area.
22521
22522 * dispextern.h (struct glyph_row): New member clip.
22523 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22524 clip_height, new member clip, and num_clips.
22525
225262008-02-01 Kenichi Handa <handa@m17n.org>
22527
22528 * data.c (Fchar_or_string_p): Fix docstring.
22529
225302008-02-01 Kenichi Handa <handa@m17n.org>
22531
22532 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22533 create a temporary XftDraw object.
22534
225352008-02-01 Kenichi Handa <handa@m17n.org>
22536
22537 * font.c (Ffontp): Fix docstring.
22538
22539 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22540 strong evidence of ISO-2022.
22541
225422008-02-01 Kenichi Handa <handa@m17n.org>
22543
22544 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22545 SYNTAX_ENTRY_FOLLOW_PARENT.
22546
225472008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22548
22549 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22550 its type.
22551 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22552 Update to the new type of weak_hash_tables and next_weak.
22553
22554 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22555 a plain C pointer to Lisp_Hash_Table.
22556
22557 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22558 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22559 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22560 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22561 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22562 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22563 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22564 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22565 (GC_EQ): Remove since they've been identical to their non-GC_
22566 alter-egos ever since the markbit was eradicated.
22567
22568 * alloc.c:
22569 * buffer.c:
22570 * buffer.h:
22571 * data.c:
22572 * fileio.c:
22573 * filelock.c:
22574 * fns.c:
22575 * frame.h:
22576 * lisp.h:
22577 * macterm.c:
22578 * print.c:
22579 * process.c:
22580 * w32fns.c:
22581 * w32menu.c:
22582 * w32term.c:
22583 * xfns.c:
22584 * xmenu.c:
22585 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22586
225872008-02-01 Kenichi Handa <handa@m17n.org>
22588
22589 * chartab.c (map_sub_char_table): Make it work for the top-level
22590 char-table. Fix handling of parent char-table.
22591 (map_char_table): Adjust for the above change.
22592
225932008-02-01 Jason Rumney <jasonr@gnu.org>
22594
22595 * w32font.c (Qgdi): Rename from Qw32.
22596
225972008-02-01 Jason Rumney <jasonr@gnu.org>
22598
22599 * w32bdf.c (get_quoted_string): Make function static.
22600
226012008-02-01 Kenichi Handa <handa@m17n.org>
22602
22603 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22604 bigger ascent and descent than those of the font, use them as
22605 font's ascent and descent.
22606
226072008-02-01 Kenichi Handa <handa@m17n.org>
22608
22609 * Makefile.in (${lispsource}international/charprop.el): Move this
22610 target within "#ifdef HAVE_UNIDATA" and "#endif".
22611
226122008-02-01 Kenichi Handa <handa@m17n.org>
22613
22614 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22615 (shortlisp): Add ../lisp/language/tai-viet.el.
22616
226172008-02-01 Ulrich Mueller <ulm@gentoo.org>
22618
22619 * Makefile.in (${lispsource}international/charprop.el): Depend on
22620 temacs${EXEEXT}.
22621
226222008-02-01 Jason Rumney <jasonr@gnu.org>
22623
22624 * w32font.c (w32font_close): Delete the GDI font object.
22625
22626 * w32menu.c: Include character.h.
22627
22628 * w32proc.c: Likewise.
22629
22630 * w32select.c: Likewise.
22631
22632 * makefile.w32-in (w32proc.o): Depend on character.h.
22633
226342008-02-01 Jason Rumney <jasonr@gnu.org>
22635
22636 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22637
22638 * w32menu.c (syms_of_w32menu): Likewise.
22639
22640 * w32proc.c (syms_of_ntproc): Likewise.
22641
22642 * w32select.c (syms_of_w32select): Likewise.
22643
22644 * w32term.c (syms_of_w32term): Likewise.
22645
226462008-02-01 Jason Rumney <jasonr@gnu.org>
22647
22648 * w32font.c (w32font_draw): Delete brush after using it.
22649
226502008-02-01 Jason Rumney <jasonr@gnu.org>
22651
22652 * w32font.c (w32font_open): Don't set font_idx.
22653 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22654 to font settings.
22655 (w32font_draw): Fill background explicitly.
22656
226572008-02-01 Jason Rumney <jasonr@gnu.org>
22658
22659 * w32term.c (w32_initialize): Don't call w32font_initialize.
22660
22661 * w32font.c (w32font_info): Remove subranges.
22662 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22663 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22664 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22665 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22666 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22667 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22668 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22669 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22670 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22671 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22672 New symbols.
22673 (font_callback_data): New struct.
22674 (w32font_list, w32font_match): Use it.
22675 (w32font_open): Don't populate subranges.
22676 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22677 (w32font_encode_char): Always return unicode code-point as-is.
22678 (w32font_text_extents): Supply a transformation matrix to
22679 GetGlyphOutline. Never look up by glyph index. Avoid looping
22680 twice. Use unicode version of GetTexExtentPoint32 instead of
22681 glyph index version.
22682 (set_fonts_frame): Remove.
22683 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22684 set frame parameter. Use backward compatible fake foundries.
22685 Save generic family in extra slot under QCfamily. Make width slot
22686 constant. Save QCspacing value. Save list of scripts instead of
22687 binary subranges.
22688 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
22689 (add_font_entity_to_list): Use font_callback_data struct.
22690 Filter unwanted fonts.
aac0c6e3
MR
22691 (add_one_font_entity_to_list): Use font_callback_data struct.
22692 (w32_registry): Default to iso10646_1.
22693 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22694 string font registries. Don't fill in font name if it is a generic
22695 family name, fill family instead. Use spacing, family and script
22696 extra info to fill pitch, family and charset fields.
22697 (list_all_matching_fonts): Use font_callback_data struct.
22698 (unicode_range_for_char): Remove.
22699 (font_supported_scripts): New function.
22700 (w32font_initialize): Remove.
22701 (syms_of_w32font): Update which symbols are defined.
22702
227032008-02-01 Jason Rumney <jasonr@gnu.org>
22704
22705 * font.c (font_pixel_size): Reverse assq_no_quit args.
22706
22707 * w32term.h (FONT_WIDTH): Report max width, not average.
22708 (FONT_MAX_WIDTH): Remove.
22709 (FONT_AVG_WIDTH): New macro.
22710
22711 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22712 redefinition of FONT_WIDTH.
22713
22714 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22715 (w32_cache_char_metrics): Use FONT_WIDTH.
22716
22717 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22718
227192008-02-01 Jason Rumney <jasonr@gnu.org>
22720
22721 * w32font.c (w32font_open): Make lfHeight negative.
22722
22723 * w32fns.c (x_default_font_parameter): Use new style font name.
22724 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22725
227262008-02-01 Jason Rumney <jasonr@gnu.org>
22727
22728 * w32font.c (QCsubranges): New symbol.
22729 (w32font_open, w32font_has_char): Get subranges from subproperty
22730 of extra.
22731 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22732 (syms_of_w32font): Define :subranges symbol.
22733
22734 * font.c (font_put_extra): Expose externally.
22735
22736 * font.h (font_put_extra): Move declaration from font.c.
22737
22738 * font.c (Ffont_get): Use font driver to determine otf capability.
22739 (adjust_anchor): Check if driver defines anchor_point before using.
22740
22741 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22742 (w32font_draw): Use options.
22743 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22744 Fix detection of truetype fonts.
22745 (registry_to_w32_charset): Handle charsets other than iso8859-1
22746 expressed as lisp symbols.
22747 (w32_registry): Express charset as lisp symbol.
22748 (fill_in_logfont): Reverse pixel and point height logic.
22749 Don't set width here. Set quality to default.
22750
22751 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22752 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22753
22754 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22755 Remove redundant loop and allocation.
22756
22757 * makefile.w32-in (font.o, w32font.o): New objects.
22758 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22759 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22760
22761 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22762 STORE_XCHARB a valid l-value.
22763
22764 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22765 calculations for non-Truetype fonts.
22766 (x_draw_glyph_string): Sync with xterm.c.
22767 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22768 Remove redundant code.
22769 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22770
22771 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22772 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22773
22774 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22775 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22776
22777 * w32font.c: New file for w32 font backend.
22778
227792008-02-01 Kenichi Handa <handa@m17n.org>
22780
22781 * term.c: Don't include "buffer.h" twice.
22782
227832008-02-01 Kenichi Handa <handa@m17n.org>
22784
22785 * character.c (Funibyte_string): New function.
22786 (syms_of_character): Defsubr it.
22787
227882008-02-01 Jason Rumney <jasonr@gnu.org>
22789
22790 * w32term.c [USE_FONT_BACKEND]:
22791 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22792 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22793 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22794 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22795 (x_free_frame_resources): Sync with xterm.c.
22796
227972008-02-01 Andreas Schwab <schwab@suse.de>
22798
22799 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22800 char-table size.
22801
228022008-02-01 Kenichi Handa <handa@m17n.org>
22803
22804 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22805
228062008-02-01 Kenichi Handa <handa@m17n.org>
22807
22808 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22809 font_otf_gpos, add font_drive_otf.
22810
22811 * fontset.c (fontset_find_font): Pay attention to font size
22812 specified for a font.
22813 (reorder_font_vector): Check contents of font_def.
22814
22815 * font.c (struct otf_list): Delete it.
22816 (otf_list): Make it a lisp variable.
22817 (otf_open): Use lispy otf_list.
22818 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22819 (check_otf_features): New function.
22820 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22821 New functions.
22822 (font_drive_otf): New function merging font_otf_gsub and
22823 font_otf_gpos.
22824 (font_open_for_lface): New arg spec. Change argument order.
22825 (font_load_for_face): Adjust for the change of font_open_for_lface.
22826 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22827 Ffont_otf_gpos.
22828 (syms_of_font): Staticpro otf_list. Delete defsubr of
22829 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22830
22831 * xfaces.c (set_font_frame_param): Adjust for the change of
22832 font_open_for_lface.
22833
22834 * font.h (font_open_for_lface): Adjust prototype.
22835 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22836 member otf_drive.
22837 (font_otf_gsub, font_otf_gpos): Delete externs.
22838 (font_drive_otf): Extern it.
22839
228402008-02-01 Kenichi Handa <handa@m17n.org>
22841
22842 * font.c (font_at): If the window W is not on a window system,
22843 return Qnil.
22844
22845 * coding.c (produce_chars, encode_coding): Don't call
22846 insert_from_gap if no characters to produce.
22847
228482008-02-01 Kenichi Handa <handa@m17n.org>
22849
22850 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22851 Fclear_face_cache.
22852
22853 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22854
228552008-02-01 Miles Bader <miles@gnu.org>
22856
22857 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22858 Parse "--disable-font-backend" option.
22859 (standard_args): Add "--disable-font-backend" option.
22860
228612008-02-01 Kenichi Handa <handa@m17n.org>
22862
22863 * fontset.c (fontset_find_font): New function.
22864 (fontset_font): Use fontset_find_font.
22865 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22866 Register the specified font for all Latin characters.
22867 (new_fontset_from_font): Register the specified font for all Latin
22868 characters.
22869 (dump_fontset): For a realized fontset, include the base fontset
22870 name in the returned vector.
22871
228722008-02-01 Kenichi Handa <handa@m17n.org>
22873
22874 * character.h (CHAR_STRING): Cast C to unsigned on calling
22875 char_string.
22876
22877 * character.c (char_string): Type of arg C changed to unsigned.
22878 Signal an error if C is an invalid character code.
22879
22880 * editfns.c (general_insert_function, Fchar_to_string):
22881 Use CHARACTERP, not INTEGERP.
22882
228832008-02-01 Kenichi Handa <handa@m17n.org>
22884
22885 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22886 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22887
22888 * regex.c (analyse_first): Fix for multibyte characters in "case
22889 charset:" and "case categoryspec:".
22890
228912008-02-01 Andreas Schwab <schwab@suse.de>
22892
22893 * Makefile.in (LIBES): Move standard libraries to the end.
22894
228952008-02-01 Kenichi Handa <handa@m17n.org>
22896
22897 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22898 nonzero, don't shrink the buffer nextb.
22899
22900 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22901
22902 * coding.c (coding_alloc_by_making_gap): New arg offset.
22903 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22904 offset.
22905 (decode_coding_iso_2022): Update coding->safe_charsets.
22906 (decode_coding_gap): Temporarily set
22907 current_buffer->text->inhibit_shrinking to 1.
22908
229092008-02-01 Kenichi Handa <handa@m17n.org>
22910
bba3e508
SM
22911 * xterm.c (x_draw_composite_glyph_string_foreground):
22912 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
22913
229142008-02-01 Juanma Barranquero <lekktu@gmail.com>
22915
22916 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22917
229182008-02-01 Kenichi Handa <handa@m17n.org>
22919
22920 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22921 target_multibyte instead of multibyte.
22922 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22923 (bcmp_translate): Change the argument name from multibyte to
22924 target_multibyte.
22925
229262008-02-01 Kenichi Handa <handa@m17n.org>
22927
22928 These changes are to compile a regexp into a pattern that can be
22929 used both for multibyte and unibyte targets.
22930
22931 * Makefile.in (search.o): Depend on charset.h.
22932
22933 * character.c (multibyte_char_to_unibyte_safe): New function.
22934
22935 * search.c: Include "charset.h".
22936 (compile_pattern_1): Delete argument multibyte. Don't set
22937 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22938 (compile_pattern): Don't compare cp->buf.target_multibyte.
22939 Compare cp->buf.charset_unibyte.
22940 (compile_pattern): Set cp->buf.target_multibyte.
22941
22942 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22943
22944 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22945
22946 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22947 multibyte. Change callers.
22948 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22949 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22950 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22951 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22952 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22953 (regex_compile): Make the compiled pattern usable both for
22954 multibyte and unibyte targets.
22955 (analyse_first): Make the fastmap usable both for multibyte and
22956 unibyte targets.
22957 (TRANSLATE_VIA_MULTIBYTE): Delete.
22958 (re_match_2_internal): Pay attention to the case that the
22959 multibyteness of bufp and target may be different.
22960
229612008-02-01 Kenichi Handa <handa@m17n.org>
22962
22963 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22964 empty box occupy at least one column width.
22965
229662008-02-01 Miles Bader <miles@gnu.org>
22967
22968 * Makefile.in: Remove redundant HAVE_XFT clause.
22969
229702008-02-01 Kenichi Handa <handa@m17n.org>
22971
22972 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22973
229742008-02-01 Kenichi Handa <handa@m17n.org>
22975
22976 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22977 being nil.
22978
229792008-02-01 Kenichi Handa <handa@m17n.org>
22980
22981 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22982
229832008-02-01 Kenichi Handa <handa@m17n.org>
22984
22985 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22986
229872008-02-01 Kenichi Handa <handa@m17n.org>
22988
22989 * search.c (simple_search): Fix previous change.
22990
229912008-02-01 Kenichi Handa <handa@m17n.org>
22992
22993 * xftfont.c (ftfont_font_format): Extern declaration.
22994
22995 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22996
22997 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22998 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22999
23000 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
23001 (ftfont_font_format): Fix previous change.
23002
23003 * font.h (Ffont_xlfd_name): EXFUN it.
23004
23005 * font.c (font_parse_xlfd): Fix the array size of `f'.
23006 (register_font_driver): Use EQ to compare driver->type.
23007
23008 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
23009 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
23010 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
23011
230122008-02-01 Kenichi Handa <handa@m17n.org>
23013
23014 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
23015 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
23016
230172008-02-01 Kenichi Handa <handa@m17n.org>
23018
23019 * xfont.c (xfont_open): Set font->format.
23020
23021 * xftfont.c (xftfont_open): Set font->format.
23022
23023 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
23024 (ftfont_list): Include FC_FONTFORMAT in FcObject.
23025 (ftfont_open): Set font->format.
23026 (ftfont_font_format): New function.
23027
23028 * font.h (struct font): New member format.
23029
23030 * font.c (Qopentype): New variable.
23031 (syms_of_font): Defsym it.
23032 (Fquery_font): Change the format of the last element of the return
23033 value.
23034
230352008-02-01 Kenichi Handa <handa@m17n.org>
23036
23037 * xfns.c (xic_create_xfontset): Try the default fontset name as a
23038 last resort.
23039
230402008-02-01 Kenichi Handa <handa@m17n.org>
23041
23042 * coding.c (detect_coding_charset): Fix detection of multi-byte
23043 charset.
23044
230452008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
23046
23047 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
23048
230492008-02-01 Kenichi Handa <handa@m17n.org>
23050
23051 * xdisp.c (get_next_display_element): Set it->face_id for the
23052 first component of a composition.
23053 (x_produce_glyphs): Check if the font is changed or not for composition.
23054
230552008-02-01 Kenichi Handa <handa@m17n.org>
23056
23057 * fontset.c (Qlatin): New variable.
23058 (syms_of_fontset): Define it as a lisp symbol.
23059 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23060
230612008-02-01 Kenichi Handa <handa@m17n.org>
23062
23063 * font.c (font_unparse_fcname): Pay attention to the case that
23064 some of font property is a null string.
23065
230662008-02-01 Kenichi Handa <handa@m17n.org>
23067
23068 * term.c: Include "composite.h".
23069 (encode_terminal_code): Output all components of composition.
23070 Check the size of encode_terminal_src.
23071 (produce_glyphs): For composition, call produce_composite_glyph.
23072 (append_composite_glyph, produce_composite_glyph): New functions.
23073
23074 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23075 is not found, get font_info from the current ascii face.
23076
230772008-02-01 Kenichi Handa <handa@m17n.org>
23078
23079 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23080 buffer-file-name to Qnil before calling insert_from_buffer.
23081
23082 * font.c (font_unparse_fcname): Pay attention to the case that
23083 foundry is a null string.
23084
230852008-02-01 Kenichi Handa <handa@m17n.org>
23086
23087 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23088
23089 * font.c (Qunicode_sip): New variable.
23090 (syms_of_font): Declare it as a Lisp symbol.
23091
23092 * font.h (Qunicode_sip): Extern it.
23093
230942008-02-01 Kenichi Handa <handa@m17n.org>
23095
23096 * composite.c (get_composition_id): Pay attention to TAB component.
23097
23098 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23099 TAB. Adjust for the change of s->char2b which always points to
23100 the first element of allocated memory.
23101
23102 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23103
23104 * xdisp.c (handle_composition_prop): Set it->c to the first
23105 non-TAB component.
23106 (fill_composite_glyph_string): Change argument.
23107 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23108 (x_produce_glyphs): Fix handling of left/right padding.
23109
231102008-02-01 Kenichi Handa <handa@m17n.org>
23111
23112 * coding.c (detect_coding_system): Fix for handling off
23113 inhibit_iso_escape_detection. Fix for the case that no coding
23114 system is defined for a specific coding category.
23115
231162008-02-01 Kenichi Handa <handa@m17n.org>
23117
23118 * font.c (font_matching_entity): Delete unused local var.
23119
23120 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23121 opening a font.
23122
23123 * fileio.c (Finsert_file_contents): On recovering a file, assume
23124 Unix-like eol.
23125 (choose_write_coding_system): On auto-saving a file, force
23126 Unix-like eol.
23127
23128 * coding.c (setup_coding_system): Fix setting of
23129 coding->common_flags based on eol_type.
23130 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23131 inherit from it.
23132
231332008-02-01 Kenichi Handa <handa@m17n.org>
23134
23135 * alloc.c (NSTATICS): Increas to 0x600.
23136
231372008-02-01 Kenichi Handa <handa@m17n.org>
23138
23139 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23140 (ftfont_list): Don't check :name property.
23141 (ftfont_match): New function.
23142 (ftfont_pattern_entity): If the pattern doesn't contain
23143 FC_SPACING, don't assume FC_MONO.
23144
23145 * font.h (struct font_driver): New member `match'.
23146 (font_update_drivers): Adjust prototype.
23147
23148 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23149 property of FONT.
bba3e508
SM
23150 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23151 Define them unconditionally.
aac0c6e3
MR
23152 (font_matching_entity): New function.
23153 (font_open_by_name): Try font_matching_entity if exact match is
23154 not found.
23155 (font_update_drivers): Delete the arg FONT. Return a list of
23156 actually used backends. Don't free faces, font caches here.
23157 Don't store data in frame parameters. Don't call x_set_font.
23158 (Ffont_spec): Store :name property as is.
23159 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23160 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23161 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23162 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23163 Call font->driver->otf_gsub instead of font_otf_gsub.
23164
23165 * frame.c (x_set_font_backend): Do more works that were done in
23166 font_update_drivers before.
23167
23168 * xfont.c (xfont_match): New function.
23169 (xfont_driver): Set xfont_driver.match to xfont_match.
23170 (xfont_draw): Set font in GC if necessary.
23171
23172 * ftxfont.c (ftxfont_match): New function.
23173 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23174
23175 * xftfont.c (xftfont_match): New function.
23176 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23177
231782008-02-01 Kenichi Handa <handa@m17n.org>
23179
23180 * font.h (struct font): New member scalable.
23181 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23182 (font_otf_gsub): Adjust prototype.
23183
23184 * font.c (font_otf_capability): Fix handling of the default langsys.
23185 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23186 Check the contents of SPEC.
23187 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23188 (check_gstring): New function.
23189 (REPLACEMENT_CHARACTER): New macro.
23190 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23191 glyph codes of GSTRING.
23192 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23193 (font_prepare_composition): Set cmp->glyph_len.
23194 (font_open_entity): Set font->scalable.
23195 (Ffont_get): Handle :otf property.
bba3e508
SM
23196 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23197 New functions.
aac0c6e3
MR
23198 (Fquery_font): Use font->font.full_name.
23199 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23200 Sfont_otf_alternates.
23201
23202 * ftfont.c (ftfont_open): Set font->font.full_name and
23203 font->font.name properly. Fix calculation of font->font.height
23204 and font->min_width.
23205
23206 * ftxfont.c (ftxfont_create_gcs): New function.
23207 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23208 (ftxfont_draw_backgrond): Fix filling region.
23209 (ftxfont_default_fid): New function.
23210 (ftxfont_open): Set xfont->fid to the return value of
23211 ftxfont_default_fid.
23212 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23213 (ftxfont_done_face): Free only GCs that are created by
23214 ftxfont_create_gcs.
23215 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23216
23217 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23218 Clip to src->width, etc (not src->clip_XXX).
23219
23220 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23221 FontBackend frame parameter.
23222
232232008-02-01 Kenichi Handa <handa@m17n.org>
23224
23225 * font.h (struct font_driver_list): New member `on'.
23226 (Fclear_font_cache): EXFUN it.
23227 (font_update_drivers): Extern it.
23228
23229 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23230 (font_list_entities): Check driver_list->on.
40b1a3a9 23231 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
23232 (font_update_drivers): New function.
23233 (Fclear_font_cache): Check driver_list->on.
23234
23235 * frame.h (Qfont_backend): Extern it.
23236 (x_set_font_backend): Extern it.
23237
23238 * frame.c (Qfont_backend): New variable.
23239 (frame_parms): New element for font-backend.
23240 (x_set_font_backend): New function.
23241
23242 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23243 FontBackend frame parameter.
23244 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23245 x_set_font_backend.
23246
23247 * xfont.c (xfont_list): Don't try listing by :name property if the
23248 name is not for XLFD.
23249
232502008-02-01 Kenichi Handa <handa@m17n.org>
23251
23252 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23253 (LGLYPH_SET_TO): New macros.
23254 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23255 element of G is vector or not.
23256 (font_at): Extern it.
23257
23258 * font.c: Include window.h.
23259 (font_lispy_object): New function.
23260 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23261 end of valid glyph.
23262 (font_close_object): Fix getting (struct font *).
23263 (font_at): New function.
23264 (Ffont_get): If FONT is a font-object, get entity from it.
23265 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
23266 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23267 Fix range check.
aac0c6e3
MR
23268 (Ffont_at): New function.
23269 (syms_of_font): Defsubr Sfont_at.
23270
23271 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23272 before the entry for Qcomposition.
23273 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23274 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23275 the font in gstring.
23276 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23277 LGLYPH_FORM (g) to detect the end of valid glyph.
23278 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23279 we are composing with gstring.
23280
23281 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23282 Check if adjustment is vector or not.
23283
23284 * Makefile.in (font.o): Make it depends on window.h.
23285
232862008-02-01 Kenichi Handa <handa@m17n.org>
23287
23288 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23289 adjustment is vector or not.
23290
232912008-02-01 Miles Bader <miles@gnu.org>
23292
23293 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23294
232952008-02-01 Kenichi Handa <handa@m17n.org>
23296
23297 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 23298 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
23299 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23300
23301 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23302 (DEVICE_DELTA): Fix typo.
23303 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23304 LGLYPH format.
23305
23306 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23307 the change of LGLYPH format.
23308
233092008-02-01 Kenichi Handa <handa@m17n.org>
23310
23311 * ftfont.c (ftfont_list): Fix typo.
23312 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23313
233142008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23315
23316 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23317
23318 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23319 xftface_info is non-NULL.
23320
233212008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23322
23323 * ftfont.c (ftfont_list): Move misplaced #endif.
23324
233252008-02-01 Kenichi Handa <handa@m17n.org>
23326
23327 * ftfont.c (ftfont_list): Pay attention to the case that
23328 FC_CAPABILITY is not defined.
23329
233302008-02-01 Kenichi Handa <handa@m17n.org>
23331
23332 * xftfont.c (xftfont_open): Set charset related members to -1.
23333
23334 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23335 QCname.
23336 (ftfont_open): Set charset related members to -1.
23337
23338 * fontset.c (Votf_script_alist): New variable.
23339 (syms_of_fontset): Initialize it.
23340 (fontset_font): Delete unused variable.
23341
23342 * fontset.h (Votf_script_alist): Extern it.
23343
23344 * font.c (font_find_for_lface): Optimize code.
23345
23346 * font.h (font_close_object, font_merge_old_spec): Extern them.
23347
233482008-02-01 Kenichi Handa <handa@m17n.org>
23349
23350 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23351 (syms_of_font): Initialize them.
23352 (font_pixel_size): Allow float value in dpi.
23353 (font_prop_validate_type): Delete.
23354 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23355 Change caller.
23356 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23357 (font_prop_validate_extra): Delete.
23358 (font_prop_validate_spacing): New function.
23359 (font_property_table): Add elements for all known properties.
bba3e508
SM
23360 (get_font_prop_index): Rename from check_font_prop_name.
23361 New argument FROM. Change caller.
aac0c6e3
MR
23362 (font_prop_validate): Validate all known properties.
23363 (font_put_extra): Delete argument force. Change caller.
23364 (font_expand_wildcards): Make it static. Fix the way of shrinking
23365 the possible range.
23366 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23367 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23368 Change caller.
23369 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23370 (font_parse_fcname): Delete argument merge. Fix parsing of point
23371 size. Don't validate properties values here. Change caller.
23372 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23373 (font_open_by_name): Delete unused variable.
23374 (Ffont_spec): Likewise. Validate property values.
23375 (Ffont_match_p): New function.
23376
23377 * font.h (QCscalable): Extern it.
23378 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23379
23380 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23381
23382 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23383 (xfont_list_pattern): New function.
23384 (xfont_list): Use xfont_list_pattern.
23385
233862008-02-01 Kenichi Handa <handa@m17n.org>
23387
23388 * font.h (Flist_fonts): EXFUN it.
23389
233902008-02-01 Jason Rumney <jasonr@gnu.org>
23391
23392 * w32term.c (w32_initialize): Add back smoothing_type and
23393 smoothing_enabled definitions.
23394
233952008-02-01 Kenichi Handa <handa@m17n.org>
23396
23397 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23398 s->face->font on determining underline position.
23399
234002008-02-01 Kenichi Handa <handa@m17n.org>
23401
23402 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23403 (font_has_char): Accept font-object too.
23404 (font_find_for_lface): Try at first with a size specified in face.
23405
234062008-02-01 Kenichi Handa <handa@m17n.org>
23407
23408 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23409 font_open_by_name.
23410
234112008-02-01 Kenichi Handa <handa@m17n.org>
23412
23413 * font.h (QCspacing, QCdpi): Extern them.
23414 (enum font_spacing): New enum.
23415 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23416
23417 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23418 (QCspacing, QCdpi): New variables.
23419 (syms_of_font): Initialize them.
23420 (font_pixel_size): New function.
23421 (font_put_extra): New function.
23422 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23423 in FONT_EXTRA.
23424 (font_parse_fcname): Handle enumerated values (e.g. bold).
23425 Fix handling font size. Add QCname property that contains only
23426 unknown properties.
23427 (font_score): Change argument. Change caller. Pay attention to
23428 FONT_PIXEL_SIZE_QUANTUM.
23429 (font_sort_entites, font_list_entities, font_find_for_lface)
23430 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23431 (Ffont_spec): Add QCname property that contains only unknown properties.
23432
bba3e508
SM
23433 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23434 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
23435 listed font. Don't include scalable in pattern. Pay attention to
23436 FONT_PIXEL_SIZE_QUANTUM.
23437
234382008-02-01 Kenichi Handa <handa@m17n.org>
23439
23440 * font.c (font_parse_fcname): Fix parsing of point-size.
23441 (font_unparse_fcname): Produce symbolic names for style properties.
23442 (font_list_entities): Handle float size correctly.
23443 (font_open_by_name): Prefer `normal' property values if the name
23444 doesn't specify them.
23445
23446 * fontset.c (Finternal_char_font): Use font_get_name, not
23447 Ffont_xlfd_name.
23448
23449 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23450 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23451 pattern. Don't force scalable.
23452
23453 * xftfont.c (xftfont_open): For generating a name, start from
23454 96-byte buffer.
23455
234562008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23457
23458 * frame.h (x_new_fontset2): Fix prototype.
23459
234602008-02-01 Kenichi Handa <handa@m17n.org>
23461
23462 * font.h (struct font_driver): Delete member parse_name.
23463 (font_match_p, font_get_spec, font_parse_fcname)
23464 (font_unparse_fcname): Extern them.
23465 (font_get_name): Adjust prototype.
23466
23467 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23468 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
23469 (font_expand_wildcards): Fix handling ENCODING field.
23470 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
23471 (font_parse_fcname): New function.
23472 (font_unparse_fcname): New function.
23473 (font_parse_name): New function.
23474 (font_match_p): New function.
23475 (font_get_name): Change return value to Lisp string.
23476 (font_get_spec): New function.
23477 (Qunspecified, Qignore_defface): Don't extern them.
23478 (font_find_for_lface): Assume that LFACE is fully specified.
23479 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23480 object, use it for FACE.
23481 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23482 driver->parse_name.
23483 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23484
23485 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23486 prototype.
23487
23488 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23489 argument F. Don't call Fnew_fontset. Instead, directly call
23490 make_fontset.
23491
23492 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23493
23494 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23495 of x_new_fontset2.
23496
23497 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23498 (Qsans__serif): New variables.
23499 (ftfont_generic_family_list): New variable.
23500 (syms_of_ftfont): Initialize the above variables.
23501 (ftfont_pattern_entity): Delete argument NAME.
23502 (ftfont_list_generic_family): New function.
23503 (ftfont_parse_name): Delete this function.
23504 (ftfont_list): Try generic family only when FcFontList found no font.
23505 (ftfont_list_family): Fix args to FcObjectSetBuild.
23506
23507 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23508 object in attrs[LFACE_FONT_INDEX].
23509 (set_lface_from_font_name): Cancel all changes for font-backend.
23510 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23511 function.
23512 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23513 font object in QCfont attribute.
23514 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23515 (realize_default_face) [USE_FONT_BACKEND]: Call
23516 set_lface_from_font_and_fontset.
23517
23518 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23519 "fixed", and signal error here if no suitable font was found.
23520
23521 * xfont.c (xfont_parse_name): Delete this function.
23522
23523 * xftfont.c (xftfont_open): Change coding style of error
23524 handling. Generate fontconfig's fontname pattern.
23525
23526 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23527 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23528
23529 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23530 Both args FONTSET and FONT_OBJECT must be existing ones.
23531
235322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23533
23534 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23535
235362008-02-01 Kenichi Handa <handa@m17n.org>
23537
23538 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23539
23540 * font.h (struct font): Fix typo.
23541
23542 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23543 XLFD_XXX_INDEX.
23544 (enum xlfd_field_mask): New enum.
ef1b0ba7 23545 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
23546 are followed by non-digits, return a symbol.
23547 (font_expand_wildcards): New function.
23548 (font_parse_xlfd): Fix wildcard handling.
23549 (Ffont_spec): If :name is specified, reflect the info in the other
23550 properties.
23551
23552 * ftfont.c (ftfont_pattern_entity): Fix typo.
23553 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23554 locale.
23555
235562008-02-01 Kenichi Handa <handa@m17n.org>
23557
23558 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23559
23560 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23561 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23562 registry doesn't specify encoding part.
23563 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23564 (font_open_by_name): At first try parsing the name.
23565 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23566 as Lisp symbols.
23567
23568 * fontset.c (reorder_font_vector): Pay attention to the case that
23569 the 3rd element of font_def is nil.
23570 (fontset_font): For the default fontset, append one more fontset
23571 elements for a script-based font specification. Don't add script
23572 attribute on finding a font.
23573 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23574 font name.
23575 (fontset_ascii_font): If a font can't be opened, return nil.
23576
23577 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23578 (ftfont_pattern_entity): New function.
23579 (ftfont_get_cache): Assume that freetype_font_cache is already
23580 initialized.
23581 (ftfont_list): Handle the case that a file is specified in font
23582 name. Use ftfont_pattern_entity to generate entities.
23583 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23584 (syms_of_ftfont): Initialize freetype_font_cache.
23585
23586 * xftfont.c (xftfont_open): Make the font name fontconfig's
23587 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23588 (xftfont_close): Free font->font.name if not NULL.
23589
23590 * xfont.c (xfont_list): If script is specified for a font, return
23591 null_vector.
23592 (xfont_list_family): Declare argument type.
23593
23594 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23595 name, set LFACE_FONT (lface) to nil.
23596
23597 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23598 return Qnil.
23599
236002008-02-01 Kenichi Handa <handa@m17n.org>
23601
23602 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23603 (standard_args): Add "-enable-font-backend".
23604
236052008-02-01 Kenichi Handa <handa@m17n.org>
23606
23607 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23608 (struct xftdraw_list, xftdraw_list): Delete them.
23609 (register_xftdraw, check_xftdraw): Delete them.
23610 (xftfont_prepare_face): Don't call register_xftdraw.
23611 (xftfont_done_face): Don't call check_xftdraw.
23612 (xftfont_draw): Get background color only when with_background is
23613 nonzero.
23614
23615 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23616
236172008-02-01 Kenichi Handa <handa@m17n.org>
23618
23619 These changes are for the new font handling codes.
23620
23621 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23622 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23623 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23624 (FONTSRC, FONTOBJ): New variables.
23625 (obj): Add $(FONTOBJ).
23626 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23627 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23628 @LIBOTF_LIBS@.
23629 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23630 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23631
23632 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23633
23634 * character.h (Vscript_representative_chars): Extern it.
23635
23636 * character.c (Vscript_representative_chars): New variable.
23637 (syms_of_character): Declare it as a Lisp variable.
23638
23639 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23640 enable_font_backend is nonzero, accept the composition method
23641 COMPOSITION_WITH_GLYPH_STRING.
23642
23643 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23644 enumeration COMPOSITION_WITH_GLYPH_STRING.
23645
23646 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23647 members clip_x, clip_y, clip_width, and clip_height.
23648 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23649
23650 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23651 --enable-font-backend. Call syms_of_font.
23652
23653 * fns.c (assoc_no_quit): New function.
23654
23655 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23656 (face_for_font, new_fontset_from_font)
23657 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23658
23659 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23660 (fontset_font, fontset_ascii, face_for_char)
23661 (make_fontset_for_ascii_face, Ffont_info)
23662 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23663 is nonzero, use font-backend mechanism.
23664 (find_font_encoding): Make it non-static.
23665 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23666 New functions.
23667
23668 * frame.h (struct frame): New members resx and resy.
23669 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23670 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23671
23672 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23673 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23674
23675 * lisp.h (assoc_no_quit): Extern it.
23676
23677 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23678 Through out the file, use FONT_INFO_FROM_FACE instead of
23679 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23680 rif->per_char_metric.
23681 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23682 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23683 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23684 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23685 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23686 nonzero, use font-backend mechanism.
23687 (get_per_char_metric): New function.
23688
23689 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23690 (set_lface_from_font_name)
23691 (set_font_frame_param, free_realized_face)
23692 (prepare_face_for_display, clear_face_gcs)
23693 (Finternal_set_font_selection_order, realize_x_face)
23694 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23695 font-backend mechanism.
23696 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23697 (load_face_font) [USE_FONT_BACKEND]: Abort.
23698 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23699 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23700
23701 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23702 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23703 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
23704 nonzero, register all available font drivers.
23705 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
23706 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23707
23708 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23709 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23710 (x_set_glyph_string_clipping_exactly)
23711 (x_compute_glyph_string_overhangs)
23712 (x_draw_glyph_string_foreground)
23713 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23714 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23715 enable_font_backend is nonzero, use font-backend mechanism.
23716 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23717
237182008-02-01 Kenichi Handa <handa@m17n.org>
23719
23720 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23721 system_eol_type.
23722 (syms_of_coding): Initialize system_eol_type.
23723
23724 * process.c (Fset_process_coding_system): Inherit system's eol
23725 format if necessary.
23726
237272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23728
23729 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23730
237312008-02-01 Kenichi Handa <handa@m17n.org>
23732
23733 * coding.c (decode_eol): Pay attention to buffer relocation in
23734 del_range_2.
23735 (decode_coding): Call decode_eol before restoring undo_list.
23736
237372008-02-01 Kenichi Handa <handa@m17n.org>
23738
23739 * charset.c (Fdefine_charset_internal): Fix setting of
23740 emacs_mule_bytes.
23741
237422008-02-01 Kenichi Handa <handa@m17n.org>
23743
23744 * keyboard.c (read_char): Check if C is a character or not before
23745 looking up Vkeyboard_translate_table.
23746
237472008-02-01 Kenichi Handa <handa@m17n.org>
23748
bba3e508
SM
23749 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23750 Fix condition to terminate the loop.
aac0c6e3
MR
23751
237522008-02-01 Kenichi Handa <handa@m17n.org>
23753
23754 * coding.c (produce_composition): Compare charbuf[i] instead of
23755 args[i] against 0.
23756 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23757
237582008-02-01 Kenichi Handa <handa@m17n.org>
23759
23760 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23761 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23762 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23763 detect_coding.
23764 (emacs_mule_char): Handle old style (Emacs 20) component character
23765 of a composition.
23766 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23767 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23768 composition rule.
23769 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23770
237712008-02-01 Kenichi Handa <handa@m17n.org>
23772
23773 * coding.c (encode_coding_ccl): Allocate destination dynamically
23774 when necessary.
23775
237762008-02-01 Kenichi Handa <handa@m17n.org>
23777
23778 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23779 the loop. When quitted, show a proper error message.
23780
237812008-02-01 Kenichi Handa <handa@m17n.org>
23782
bba3e508
SM
23783 * xterm.c (x_set_glyph_string_clipping_exactly):
23784 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
23785
23786 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23787 character sequence.
23788 (Fccl_execute_on_string): Use ASET, not XSET.
23789
237902008-02-01 Kenichi Handa <handa@m17n.org>
23791
23792 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23793
237942008-02-01 Kenichi Handa <handa@m17n.org>
23795
23796 * coding.c (decode_coding): Fix the condition of terminating the
23797 decoding loop.
23798
237992008-02-01 Kenichi Handa <handa@m17n.org>
23800
23801 * data.c (Faset): On setting a character bigger than 255 in a
23802 unibyte string, signal an error instead of make the string multibyte.
23803
238042008-02-01 Kenichi Handa <handa@m17n.org>
23805
23806 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23807 made by a mapping table.
23808
238092008-02-01 Kenichi Handa <handa@m17n.org>
23810
23811 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23812 not.
23813 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23814 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23815
bba3e508
SM
23816 * xterm.c (x_draw_composite_glyph_string_foreground):
23817 Check s->face is NULL or not.
aac0c6e3
MR
23818
238192008-02-01 Kenichi Handa <handa@m17n.org>
23820
23821 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23822 (x_draw_glyph_string): Fix drawing of right_overhang and
23823 left_overhang around/on cursor.
23824
23825 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23826
238272008-02-01 Kenichi Handa <handa@m17n.org>
23828
23829 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23830
238312008-02-01 Kenichi Handa <handa@m17n.org>
23832
23833 * coding.c (Fdefine_coding_system_internal)
23834 (Fdefine_coding_system_alias): Avoid a duplicated element in
23835 Vcoding_system_alist.
23836
238372008-02-01 Kenichi Handa <handa@m17n.org>
23838
23839 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23840
23841 * coding.c (Qcoding_system_define_form): New variable.
23842 (syms_of_coding): Intern and staticpro it.
23843 (Fcoding_system_p): Check Qcoding_system_define_form.
23844 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23845
23846 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23847 Fcoding_system_p.
23848 (CHECK_CODING_SYSTEM): If ID is not available, call
23849 Fcheck_coding_system.
23850 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23851 Try also Fcheck_coding_system.
23852
238532008-02-01 Kenichi Handa <handa@m17n.org>
23854
23855 * coding.c (code_conversion_restore): GCPRO arg.
23856
238572008-02-01 Kenichi Handa <handa@m17n.org>
23858
23859 * character.c (lisp_string_width): Check multibyteness of STRING.
23860
238612008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23862
23863 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23864 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23865 (decode_mac_font_name): Use decode_coding_c_string instead of
23866 decode_coding.
bba3e508
SM
23867 (x_load_font): Initialize fontp->fontset to -1.
23868 Set fontp->encoding_type.
aac0c6e3
MR
23869
238702008-02-01 Kenichi Handa <handa@m17n.org>
23871
23872 * search.c (search_buffer): Give up BM search on case-fold-search
23873 if one of a target character has a case-equivalence of different
3b59c351 23874 byte length even if that target character is an ASCII.
aac0c6e3
MR
23875 (simple_search): Fix calculation of byte length of matched text.
23876 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23877
238782008-02-01 Kenichi Handa <handa@m17n.org>
23879
23880 * coding.c (decode_coding): Fix handling of invalid bytes.
23881
238822008-02-01 Kenichi Handa <handa@m17n.org>
23883
23884 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23885 Unicode characters.
23886
238872008-02-01 Kenichi Handa <handa@m17n.org>
23888
23889 * coding.c (encode_coding_object): If a pre-write-conversion
23890 function makes a new buffer, kill it.
23891
238922008-02-01 Kenichi Handa <handa@m17n.org>
23893
23894 * coding.c (QCascii_compatible_p): New variable.
23895 (syms_of_coding): Initialize it.
23896 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23897 calling string_char.
23898 (record_conversion_result): Add `default:' case.
23899 (coding_charset_list): Delete unused variable `coding_type'.
23900 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23901 property in the plist of the coding system.
23902 (Fcoding_system_put): Check QCascii_compatible_p.
23903
239042008-02-01 Miles Bader <miles@gnu.org>
23905
23906 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23907 removed calculation of frame `f', as it's now used.
23908
239092008-02-01 Kenichi Handa <handa@m17n.org>
23910
23911 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23912 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23913 (UNIDATA): New variable.
23914 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
23915 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23916 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
23917
239182008-02-01 Kenichi Handa <handa@m17n.org>
23919
23920 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23921 (admindir): New variable.
23922 ($(lispsource)international/charprop.el): New target.
23923
239242008-02-01 Miles Bader <miles@gnu.org>
23925
23926 * character.c (chars-in-region): Remove obsolete function.
23927 (syms_of_character): Remove its initialization.
23928
239292008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23930
23931 * w32select.c (validate_coding_system)
23932 (setup_windows_coding_system): New functions.
bba3e508
SM
23933 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23934 Use setup_windows_coding_system.
23935 (setup_config, Fw32_get_clipboard_data):
23936 Use validate_coding_system.
aac0c6e3
MR
23937 (Fx_selection_exists): Move call to setup_config to a place
23938 where signals are allowed.
23939
23940 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23941 (Fcheck_coding_system): Add declarations.
23942
239432008-02-01 Kenichi Handa <handa@m17n.org>
23944
23945 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23946
239472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23948
23949 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23950 string as the second argument for x_new_fontset.
23951
239522008-02-01 Kenichi Handa <handa@m17n.org>
23953
23954 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23955 (encode_coding_object): Use safe_call instead of call2.
23956
239572008-02-01 Kenichi Handa <handa@m17n.org>
23958
23959 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23960
23961 * Makefile.in (lisp): Include charprop.el.
23962
239632008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23964
23965 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23966 Not sure if it's unnecessary.
23967
239682008-02-01 Steven Tamm <steventamm@mac.com>
23969
23970 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23971 some possibly unnecessary fontset checking code that crashed
23972 when creating a new frame.
23973
239742008-02-01 Kenichi Handa <handa@m17n.org>
23975
23976 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23977 lookup_face.
23978
23979 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23980
23981 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23982
239832008-02-01 Kenichi Handa <handa@m17n.org>
23984
23985 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23986 (coding_charset_list): New function.
23987
23988 * coding.h (coding_charset_list): Extern it.
23989
239902008-02-01 Kenichi Handa <handa@m17n.org>
23991
23992 * fontset.c (Fset_fontset_font): Call find_font_encoding with
23993 concatenation of family and registry.
23994
239952008-02-01 Kenichi Handa <handa@m17n.org>
23996
23997 * character.h (BYTE8_STRING): Fix typo.
23998
23999 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
24000 string to multibyte (sync to HEAD).
24001
24002 * casefiddle.c (casify_region): Handle changes in byte-length
24003 using replace_range_2 (sync to HEAD).
24004
240052008-02-01 Andreas Schwab <schwab@suse.de>
24006
24007 * chartab.c (map_char_table): GCPRO table and arg.
24008
240092008-02-01 Kenichi Handa <handa@m17n.org>
24010
24011 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
24012 already at limit.
24013
240142008-02-01 Kenichi Handa <handa@m17n.org>
24015
24016 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
24017 instead of fast_c_string_match_ignore_case.
bba3e508
SM
24018 (find_font_encoding): Change argument to Lisp_Object.
24019 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
24020 fast_c_string_match_ignore_case. Change caller.
24021
240222008-02-01 Kenichi Handa <handa@m17n.org>
24023
24024 * xdisp.c (get_next_display_element): In unibyte case, decide to
24025 display in octal form by checking a character by
24026 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
24027
24028 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
24029
24030 * character.c (unibyte_has_multibyte_table): New variable.
24031
24032 * character.h (unibyte_has_multibyte_table): Extern it.
24033 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
24034
240352008-02-01 Kenichi Handa <handa@m17n.org>
24036
24037 * coding.c (encode_coding_iso_2022): Fix handling of charset
24038 annotation.
24039
240402008-02-01 Kenichi Handa <handa@m17n.org>
24041
24042 * coding.c (setup_coding_system): If coding_system is nil, use
24043 Qundecided.
24044 (Fterminal_coding_system): Return nil if terminal coding system is
24045 `undecided'.
bba3e508
SM
24046 (syms_of_coding): Define coding-system `undecided' here.
24047 Setup terminal_coding as `undecided'.
aac0c6e3
MR
24048
240492008-02-01 Kenichi Handa <handa@m17n.org>
24050
bba3e508
SM
24051 * xdisp.c (message_dolog, set_message_1):
24052 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
24053
24054 * lread.c (read1): Fix reading of a char-table.
24055
24056 * print.c (print_object): Include sub char-table in circularities
24057 detection.
24058
240592008-02-01 Kenichi Handa <handa@m17n.org>
24060
24061 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24062 Append the found sequences in car of ARGS instead of prepending.
24063
240642008-02-01 Kenichi Handa <handa@m17n.org>
24065
24066 * fileio.c (report_file_error): Make a unibyte string from
24067 strerror (errorno).
24068 (Fsubstitute_in_file_name): Fix the arg to
24069 unibyte_char_to_multibyte. It is evaluated twice.
24070
240712008-02-01 Kenichi Handa <handa@m17n.org>
24072
24073 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24074
240752008-02-01 Kenichi Handa <handa@m17n.org>
24076
24077 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24078 BOM is not found.
24079 (detect_coding, detect_coding_system): Optimization for ISO-2022
24080 when no 8-bit data is found.
24081
240822008-02-01 Jason Rumney <jasonr@gnu.org>
24083
24084 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24085
240862008-02-01 Kenichi Handa <handa@m17n.org>
24087
24088 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24089 CHARS.
24090
240912008-02-01 Steven Tamm <steventamm@mac.com>
24092
24093 * macterm.c (mac_encode_char): Add charset argument and update
24094 to use encoding_type.
24095 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24096 switch to pure fontset.
24097 (decode_mac_font_name): Temporarily remove decoding.
24098 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24099 (x_load_font): Temporarily remove encoding.
24100
241012008-02-01 Kenichi Handa <handa@m17n.org>
24102
24103 * xfaces.c (Fface_font): If frame is not on a window system,
24104 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24105 refer to face->font.
24106 (split_font_name_into_vector, build_font_name_from_vector)
24107 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24108 when HAVE_WINDOW_SYSTEM is defined.
24109
241102008-02-01 Kenichi Handa <handa@m17n.org>
24111
24112 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24113 (x_produce_glyphs): Fix setting of members of cmp in case
24114 cmp->glyph_len is zero.
24115
24116 * fontset.c (Fset_fontset_font): Fix docstring.
24117 (Ffontset_info): Make it backward compatible. New arg ALL.
24118
241192008-02-01 Kim F. Storm <storm@cua.dk>
24120
24121 * process.c (read_process_output): Grow decoding_buf when needed;
24122 this could cause a crash in allocate_string and compact_small_strings.
24123
241242008-02-01 Kenichi Handa <handa@m17n.org>
24125
24126 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24127
241282008-02-01 Kenichi Handa <handa@m17n.org>
24129
24130 * coding.c (setup_coding_system): Set coding->common_flags
24131 correctly for raw-text.
24132 (consume_chars): On encoding unibyte text by raw-text, don't check
24133 multibyte form.
24134 (encode_coding): On encoding by raw-text, never use translation tables.
24135
24136 * fileio.c (e_write): Short cut for the case of no encoding.
24137
241382008-02-01 Kenichi Handa <handa@m17n.org>
24139
24140 * coding.c (detect_coding, detect_coding_system): Delete unused
24141 variables.
24142
241432008-02-01 Kenichi Handa <handa@m17n.org>
24144
24145 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24146 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24147
241482008-02-01 Kenichi Handa <handa@m17n.org>
24149
bba3e508
SM
24150 * coding.c (Ffind_coding_systems_region_internal):
24151 Include raw-text and no-conversion in the result.
aac0c6e3
MR
24152
241532008-02-01 Kenichi Handa <handa@m17n.org>
24154
24155 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24156 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24157 FONT_DEF.
24158 (font_def_arg, add_arg, from_arg, to_arg): New args.
24159 (set_fontset_font): Change argument.
24160 (Fset_fontset_font): Fix for the case that TARGET is a script
24161 name and charset name.
24162 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24163
241642008-02-01 Kenichi Handa <handa@m17n.org>
24165
24166 * fontset.c (fontset_font): Rename from fontset_face. Change return
24167 value.
24168 (face_suitable_for_char_p, face_for_char): Adjust for the change
24169 of fontset_font.
24170 (make_fontset_for_ascii_face): Fix setting of the fontset element
24171 for ASCII.
24172 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24173 to get a font name.
24174 (Ffontset_info): Adjust for the change of fontset_font.
24175
24176 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24177
24178 * character.h (LEADING_CODE_LATIN_1_MIN)
24179 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24180
241812008-02-01 Kenichi Handa <handa@m17n.org>
24182
24183 * editfns.c (check_translation): New function.
24184 (Ftranslate_region_internal): Handle M:N mapping.
24185
241862008-02-01 Kenichi Handa <handa@m17n.org>
24187
24188 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24189
241902008-02-01 Kenichi Handa <handa@m17n.org>
24191
24192 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24193 goto invalid_code.
24194 (decode_coding_iso_2022): Fix handling of invalid designation.
24195
24196 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24197 after calling code_conversion_save.
24198
241992008-02-01 Kenichi Handa <handa@m17n.org>
24200
24201 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24202
24203 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24204
24205 * fontset.c: Include "intervals.h".
24206 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
24207 (free_face_fontset, new_fontset_from_font_name):
24208 Fix Lisp_Object/int mixup.
aac0c6e3
MR
24209
24210 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24211
24212 * coding.c: Add many prototypes for static functions.
24213 (get_translation_table): Allow max_lookup to be NULL.
24214 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
24215 (Funencodable_char_position, Fcheck_coding_systems_region):
24216 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
24217
242182008-02-01 Kenichi Handa <handa@m17n.org>
24219
24220 * coding.c (get_translation_table): Declare it as Lisp_Object.
24221 (LOOKUP_TRANSLATION_TABLE): New macro.
24222 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24223 instead of CHAR_TABLE_REF.
24224
242252008-02-01 Kenichi Handa <handa@m17n.org>
24226
24227 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24228 annotation data format.
24229 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24230 Change arguments FROM and TO to single argument NCHARS. Change caller.
24231 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24232 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24233 (decode_coding_ccl, decode_coding_charset): Pay attention to
24234 coding->charbuf_used.
24235 (get_translation): New function.
24236 (produce_chars): New arguments translation_table and last_block.
24237 Translate characters here. Return number of carryover chars.
24238 Change caller.
24239 (produce_composition): New argument pos. Change caller.
24240 Adjust for the change of annotation data format.
24241 (produce_charset, produce_annotation): Likewise.
24242 (decode_coding, encode_coding): Don't call translate_chars.
24243 (consume_chars): New arg translation_table. Change caller.
24244 (translate_chars): Delete.
24245 (syms_of_coding): Make translation-table's number of extra slots 2.
24246
242472008-02-01 Kenichi Handa <handa@m17n.org>
24248
24249 * search.c (simple_search): Fix setting this_pos_byte in backward
24250 search.
24251
24252 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24253 byte sequence.
24254 (detect_coding_ccl): Fix setting of the variable valids.
24255
242562008-02-01 Kenichi Handa <handa@m17n.org>
24257
24258 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24259
24260 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24261
24262 * editfns.c (Ftranslate_region_internal): Rename from
24263 Ftranslate_region. Accept a char-table in TABLE.
24264 (syms_of_editfns): Defsubr Stranslate_region_internal.
24265
24266 * xfaces.c (set_lface_from_font_name): If a font is specified for
24267 a frame, generate a fontset from the font.
24268 (build_scalable_font_name): If the scalable font is requested for
24269 a specific size, don't change that size.
24270 (try_font_list): Try a scalable font also in the case that a
24271 pattern string is specified.
24272
242732008-02-01 Kenichi Handa <handa@m17n.org>
24274
24275 * xfaces.c (Fface_font): New optional arg CHARACTER.
24276
242772008-02-01 Kenichi Handa <handa@m17n.org>
24278
24279 * charset.h (CHARSET_OFFSET): New macro.
24280
242812008-02-01 Kenichi Handa <handa@m17n.org>
24282
24283 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24284
24285 * fontset.c (fontset_face): Handle the case that repertory is a
24286 char-table.
24287 (find_font_encoding): Return nil for unknown encoding.
24288 (Fset_fontset_font): Ignore a font of unknown encoding.
24289
242902008-02-01 Kenichi Handa <handa@m17n.org>
24291
24292 * keymap.c (describe_vector): Handle default value of a char table.
24293
24294 * fontset.c (fontset_face): Handle fallback fonts correctly.
24295 (Ffontset_info): Return infomation about fallback fonts.
24296
242972008-02-01 Kenichi Handa <handa@m17n.org>
24298
24299 * fontset.c (FONTSET_DEFAULT): New macro.
24300 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24301 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24302 the case that it is nil.
24303 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24304 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24305
24306 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24307 subset or superset.
24308
243092008-02-01 Kenichi Handa <handa@m17n.org>
24310
24311 * emacs.c (main): Call init_charset after syms_of_XXX.
24312
24313 * charset.c (Vcharset_map_directory): Delete.
24314 (Vcharset_map_path): New variable.
24315 (load_charset_map_from_file): Use Vcharset_map_path instead.
24316 (init_charset): Initialize Vcharset_map_path.
24317 (syms_of_charset): Delete declaration of "charset-map-directory",
24318 add declaration of "charset-map-path".
24319
243202008-02-01 Kenichi Handa <handa@m17n.org>
24321
24322 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24323 ASCII only string.
24324
24325 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24326
24327 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24328 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24329
243302008-02-01 Kenichi Handa <handa@m17n.org>
24331
24332 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24333
24334 * coding.c (QCmnemonic, QCdefalut_char)
24335 (QCdecode_translation_table, QCencode_translation_table)
24336 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24337 (get_translation_table): Return a list of translation tables if
24338 necessary.
24339 (decode_coding): Call get_translation_table with ENCODEP 0.
24340 (char_encodable_p): If translation_table is non-nil, always call
24341 translate_char.
24342 (Fdefine_coding_system_internal): Accept list of translation
24343 tables as :encode-translation-table and :decode-translation-table.
24344 (Fcoding_system_put): New function.
bba3e508
SM
24345 (syms_of_coding): Declare new symbols.
24346 Defsubr Scoding_system_put.
aac0c6e3
MR
24347 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24348 typically JISX0212.
24349
24350 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24351 when the charset is superset type.
24352
24353 * character.c (translate_char): Accept list of translation tables.
24354
243552008-02-01 Kenichi Handa <handa@m17n.org>
24356
24357 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24358 (CODING_ATTR_TRANS_TBL): New macro.
24359
24360 * coding.c (get_translation_table): New function.
24361 (translate_chars): Fix the bug of skipping annotation data.
24362 (decode_coding, encode_coding): Utilize get_translation_table.
24363 (char_encodable_p, Funencodable_char_position): Translate char if
24364 necessary.
24365 (Ffind_coding_systems_region_internal)
24366 (Fcheck_coding_systems_region): Setup translation table for encode
24367 in a coding system attribute vector in advance.
24368 (Fdefine_coding_system_internal): Allow a symbol as translation
24369 table. For shift-jis type coding system, allow 4th charset.
24370
243712008-02-01 Kenichi Handa <handa@m17n.org>
24372
24373 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24374
24375 * xdisp.c (get_next_display_element): Pass -1 as POS to
24376 FACE_FOR_CHAR if displaying a C-string.
24377
243782008-02-01 Kenichi Handa <handa@m17n.org>
24379
24380 * composite.c (get_composition_id): Handle xoff and yoff in a
24381 composition rule.
24382
24383 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24384 (struct composition): New member lbearing and rbearing.
24385
24386 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24387 (x_get_glyph_overhangs): Handle a composition glyph.
24388 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24389
24390 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24391 composition glyph.
24392
243932008-02-01 Kenichi Handa <handa@m17n.org>
24394
24395 * print.c: Include charset.h.
24396 (Vprint_charset_text_property): New variable.
24397 (Qdefault): Extern it.
24398 (PRINT_STRING_NON_CHARSET_FOUND)
24399 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24400 (print_check_string_result): New variable.
24401 (print_check_string_charset_prop): New function.
24402 (print_prune_charset_plist): New variable.
24403 (print_prune_string_charset): New function.
24404 (print_object): Call print_prune_string_charset if
24405 Vprint_charset_text_property is not t.
24406 (print_interval): Print nothing if interval->plist is nil.
24407 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24408 variable. Init and staticpro print_prune_charset_plist.
24409
244102008-02-01 Kenichi Handa <handa@m17n.org>
24411
24412 * fontset.c (new_fontset_from_font_name): Use the specified font
24413 for all characters in the new fontset.
24414
24415 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24416 OBJECT args.
24417
24418 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24419 OBJECT args for composition too.
24420
24421 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24422 OBJECT args.
24423
244242008-02-01 Kenichi Handa <handa@m17n.org>
24425
24426 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24427
24428 * fontset.c (reorder_font_vector): Adjust for the change of
24429 FONT_DEF format.
24430 (fontset_face): New arg id. Change caller.
24431 (face_for_char): New args pos and object.
24432 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24433 (fs_query_fontset): Check NAME by Fassoc too.
24434 (Fset_fontset_font): Allow non-XLFD font name.
24435 (Ffontset_info): Adjust for the change of FONT_DEF format.
24436
24437 * fontset.h (face_for_char): Adjust prototype.
24438
24439 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24440 (append_space, extend_face_to_end_of_line)
24441 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24442 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24443
24444 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24445 POS and OBJECT args.
24446
24447 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24448 POS and OBJECT args.
24449
244502008-02-01 Jason Rumney <jasonr@gnu.org>
24451
24452 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24453 of GlobalAlloc'ed memory.
24454
244552008-02-01 Kenichi Handa <handa@m17n.org>
24456
24457 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24458
24459 * charset.h (charset_table_used): Delete extern.
24460
24461 * charset.c (charset_table_used): Make it static.
24462 (map_charset_chars): Fix args to c_function with.
24463
24464 * chartab.c (map_sub_char_table_for_charset): Fix args to
24465 c_function with.
24466
bba3e508
SM
24467 * coding.h (enum coding_result_code):
24468 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
24469
24470 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24471 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24472 (Vlast_code_conversion_error): New variables.
24473 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24474 (ONE_MORE_BYTE): Record error if any instead of signaling an
24475 error. If non-ASCII multibyte char is found, return the negative
24476 value of the code. All callers changed to check it.
24477 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24478 (record_conversion_result): New function. Change all codes setting
24479 coding->result to call this function.
24480 (detect_coding_utf_8, decode_coding_utf_8)
24481 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24482 Don't use the local variable incomplete.
24483 (emacs_mule_char): Change the second arg to `const'.
24484 (decode_coding): Fix of flushing out unprocessed data.
24485 (make_conversion_work_buffer): Fix making of a work buffer.
24486 (decode_coding_object): Return coding->dst_object.
24487
24488 * fontset.c (set_fontset_font): Fix args.
24489
24490 * lisp.h (CHARACTERBITS): Define as 22.
24491
24492 * process.c (send_process): Be sure to set coding->src_multibyte.
24493
24494 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24495
244962008-02-01 Kenichi Handa <handa@m17n.org>
24497
24498 * xdisp.c (handle_auto_composed_prop): Give limit to
24499 Fnext_single_char_property_change.
24500
245012008-02-01 Kenichi Handa <handa@m17n.org>
24502
24503 * composite.c (syms_of_composite): Don't make the composition hash
24504 table weak.
24505
24506 * fontset.c (Fset_fontset_font): Fix docstring.
24507
24508 * lisp.h (detect_coding_system): Adjust prototype.
24509
24510 * fileio.c (kill_workbuf_unwind): Delete this function.
24511 (Finsert_file_contents): Adjust the call of detect_coding_system.
24512 Get conversion_buffer by code_conversion_save. Use the macro
24513 CODING_MAY_REQUIRE_DECODING. After decoding, update
24514 coding_system.
24515
24516 * coding.h (make_conversion_work_buffer): Delete extern.
24517 (code_conversion_save): Extern it.
24518
24519 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24520 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24521 (decode_coding_utf_8): Don't do eol converion.
24522 (detect_coding_utf_16): Check coding->src_chars, not
24523 coding->src_bytes. Add heuristics for those that have no signature.
24524 (decode_coding_emacs_mule, decode_coding_iso_2022)
24525 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24526 Don't do eol converion.
24527 (adjust_coding_eol_type): Return a new coding system.
24528 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24529 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24530 each change.
24531 (decode_coding): Pay attention to undo_list. Do eol conversion for
24532 all types of coding-systems (if necessary).
24533 (Vcode_conversion_work_buf_list): Delete it.
24534 (Vcode_conversion_reused_workbuf): Rename from
24535 Vcode_conversion_reused_work_buf.
24536 (Vcode_conversion_workbuf_name): New variable.
24537 (reused_workbuf_in_use): New variable.
24538 (make_conversion_work_buffer): Delete the arg DEPTH.
24539 (code_conversion_restore): Change argument to cons.
24540 (code_conversion_save): Delete the argument BUFFER. Change callers.
24541 (detect_coding_system): New argument src_chars. Change callers.
24542 Fix for utf-16 detection.
24543 (init_coding_once): Don't use ISO_carriage_return.
24544 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24545 reused_workbuf_in_use.
24546
245472008-02-01 Kenichi Handa <handa@m17n.org>
24548
24549 * keymap.c (store_in_keymap): Pay attention to the case that idx
24550 is a cons specifying a character range.
24551
245522008-02-01 Kenichi Handa <handa@m17n.org>
24553
24554 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24555 HANDLED_RECOMPUTE_PROPS.
24556
24557 * coding.c (Fdefine_coding_system_internal): Fix checking of
24558 ascii compatibility.
24559
245602008-02-01 Kenichi Handa <handa@m17n.org>
24561
24562 * charset.c (find_charsets_in_text): Delete unused locale variable.
24563 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24564
24565 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24566 Resync charset_list to Vemacs_mule_charset_list.
24567
24568 * keymap.c (store_in_keymap): Pay attention to the case that idx
24569 is a cons specifying a character range.
24570
245712008-02-01 Kenichi Handa <handa@m17n.org>
24572
24573 * composite.c (update_compositions): Bind inhibit-read-only, etc
24574 to t before calling remove-list-of-text-properties.
24575
24576 * print.c (print_object): Always print ASCII chars as is.
24577
245782008-02-01 Kenichi Handa <handa@m17n.org>
24579
24580 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24581
24582 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24583 is a char table.
24584
245852008-02-01 Kenichi Handa <handa@m17n.org>
24586
24587 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24588
245892008-02-01 Kenichi Handa <handa@m17n.org>
24590
24591 * xfaces.c (set_lface_from_font_name): Fix for the case that
24592 FONTNAME is not fontset name.
24593
245942008-02-01 Kenichi Handa <handa@m17n.org>
24595
24596 * fns.c (base64_encode_1): Fix previous change.
24597
245982008-02-01 Kenichi Handa <handa@m17n.org>
24599
24600 * fontset.c (set_fontset_font): New function.
24601 (Fset_fontset_font): If a font is specified for a charset, use
24602 map_charset_chars to store the font spec in a fontset.
24603
246042008-02-01 Kenichi Handa <handa@m17n.org>
24605
24606 * fontset.c (fontset_face): Create a fallback fontset on demand.
24607 (make_fontset): Don't create a fallback fontset here.
24608 (free_face_fontset): Free a fallback fontset (if any) too.
24609 (n_auto_fontsets): Delete this variable.
24610 (auto_fontset_alist): New variable.
24611 (new_fontset_from_font_name): Check auto_fontset_alist.
24612 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24613 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24614 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24615 Defsubr Sfontset_list_all.
24616
246172008-02-01 Kenichi Handa <handa@m17n.org>
24618
24619 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24620
246212008-02-01 Kenichi Handa <handa@m17n.org>
24622
24623 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24624
246252008-02-01 Kenichi Handa <handa@m17n.org>
24626
24627 * editfns.c (Fgoto_char): Fix docstring.
24628
246292008-02-01 Kenichi Handa <handa@m17n.org>
24630
24631 * insdel.c (insert_from_gap): Adjust intervals correctly.
24632
246332008-02-01 Jason Rumney <jasonr@gnu.org>
24634
24635 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24636 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24637 (w32_initialize): Try to load it.
24638 (x_get_font_repertory): Use it if available.
24639 (w32_encode_char): Add shortcut for unicode output.
24640
24641 * w32fns.c (w32_load_system_font): Default charset to -1.
24642 (x_to_w32_charset): Match all fonts for unicode.
24643 (w32_to_x_charset): New parameter matching. Don't return partial
24644 or wildcard charsets.
24645 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24646 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24647 (w32_to_x_font): Match charset to real charset.
24648 (enum_font_cb2): Always list unicode versions.
24649
24650 * makefile.w32-in (temacs): Increase EMHEAP.
24651
246522008-02-01 Jason Rumney <jasonr@gnu.org>
24653
24654 * w32term.c (w32_encode_char): New charset parameter.
24655 font_info.encoding becomes encoding_type.
24656 (x_get_font_repertory): New function. Warning: stub only!
24657 (x_new_font): Return quickly if font already set.
24658 (x_new_fontset): fontsetname parameter is Lisp_Object.
24659 Use new fs_query_fontset. Try new_fontset_from_font_name.
24660 Use fontset_name for return value.
24661
24662 * w32term.h: Declare x_get_font_repertory.
24663
24664 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24665 place of find_charset_in_text. Use encode_coding_object in place
24666 of encode_coding.
24667 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24668 decode_coding.
24669
24670 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24671 of x_new_fontset.
24672 (w32_load_system_font): Initialize charset as unicode.
24673 font_info.encoding becomes encoding_type.
24674 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24675 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24676 (syms_of_w32fns): Set get_font_repertory_func.
24677
24678 * w32console.c: Include character.h. Use terminal_encode_buffer
24679 from term.c.
bba3e508
SM
24680 (write_glyphs): Use new version of encode_terminal_code.
24681 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
24682
24683 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24684 encoding becomes encoding_type.
24685
24686 * term.c (terminal_encode_buffer): Make externally visible.
24687
24688 * makefile.w32-in: Add character.h dependancies.
24689 (character.o, chartab.o): New targets.
24690
246912008-02-01 Kenichi Handa <handa@m17n.org>
24692
24693 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24694 CODING_ID_EOL_TYPE.
24695
246962008-02-01 Andreas Schwab <schwab@suse.de>
24697
24698 * coding.c (produce_chars): Revert last change.
24699
247002008-02-01 Kenichi Handa <handa@m17n.org>
24701
24702 * charset.h (charset_unicode): Extern it.
24703
24704 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
24705 (find_charsets_in_text): Change format of the arc CHARSETS.
24706 New arg MULTIBYTE.
aac0c6e3
MR
24707 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24708 change of find_charsets_in_text.
24709 (Fsplit_char): Fix doc. Never return unknown.
24710
24711 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24712
bba3e508
SM
24713 * coding.c (Fdefine_coding_system_alias):
24714 Update Vcoding_system_list.
aac0c6e3
MR
24715
24716 * fontset.c (load_font_get_repertory): Pay attention to the case
24717 that ENCODING of a font is specified by a char-table.
24718
24719 * xterm.c (x_get_font_repertory): Handle the case that the
24720 encoding of font is other than Unicode.
24721
247222008-02-01 Kenichi Handa <handa@m17n.org>
24723
bba3e508
SM
24724 * term.c (encode_terminal_code): Don't handle glyph-table.
24725 Check if a character is encodable by the terminal coding system.
24726 If not, produces proper number of `?'s. Update
aac0c6e3
MR
24727 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24728 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24729
247302008-02-01 Kenichi Handa <handa@m17n.org>
24731
bba3e508
SM
24732 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24733 New variables.
aac0c6e3
MR
24734 (encode_terminal_code): Change argument. Encode multiple
24735 characters at once. Store the result of encoding in
24736 terminal_encode_buffer.
24737 (write_glyphs, insert_glyphs): Adjust for the change of
24738 encode_terminal_code.
24739 (term_init): Initialize terminal_encode_buffer and
24740 terminal_encode_buf_size.
24741
24742 * coding.c (consume_chars): If coding->src_object is nil, don't
24743 check annotation.
24744
247452008-02-01 Kenichi Handa <handa@m17n.org>
24746
24747 * character.c (char_string): Use ASCII_CHAR_P instead of
24748 SINGLE_BYTE_CHAR_P.
24749
247502008-02-01 Kenichi Handa <handa@m17n.org>
24751
24752 * xdisp.c (handle_auto_composed_prop): Check if the last
24753 characters of auto-composed region is newly composed with the
24754 following characters.
24755 (handle_composition_prop): Fix checking of point being inside
24756 composition.
24757
247582008-02-01 Kenichi Handa <handa@m17n.org>
24759
24760 * fns.c (concat): Don't change multibyteness of the result by
24761 concatenating an 8-bit character.
24762
24763 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24764 multibyteness of the result when newelt is an 8-bit character.
24765
247662008-02-01 Dave Love <fx@gnu.org>
24767
24768 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24769 EMACS_INT.
24770
24771 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24772
24773 * xfaces.c (face_numeric_value): Declare dim size_t.
24774 (Finternal_lisp_face_equal_p): Remove unused f.
24775
24776 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24777 (MATRIX_ROW): Remove unused vars.
24778 (draw_glyphs, x_insert_glyphs, fast_find_position)
24779 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24780 byte/char counts.
24781
24782 * regex.c (regex_compile): Remove unused var.
24783
24784 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24785
24786 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24787 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24788
24789 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24790
24791 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24792
24793 * fileio.c (Fwrite_region): Remove unused var.
24794
24795 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24796 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24797
24798 * composite.c (Fremove_list_of_text_properties): Declare.
24799
24800 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24801 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24802 (coding_inherit_eol_type): Remove unused attrs.
24803 (detect_coding): Cast arg of detect_eol.
24804
24805 * charset.c (syms_of_charset): Remove unused var p.
24806 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24807 byte/char counts.
24808
24809 * casetab.c (set_case_table): Remove unused var.
24810
bba3e508
SM
24811 * window.c (Fdisplay_buffer, Fframe_selected_window):
24812 Remove unused vars.
aac0c6e3
MR
24813
248142008-02-01 Dave Love <fx@gnu.org>
24815
24816 * xterm.c (x_bitmap_mask): Declare.
24817
248182008-02-01 Dave Love <fx@gnu.org>
24819
24820 * xterm.c (x_term_init): Fix type error.
24821
24822 * lisp.h: Add Funibyte_char_to_multibyte.
24823
24824 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24825 (Fset_coding_system_priority): Doc fix.
24826
24827 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24828
24829 * indent.c (check_composition): Make start and end EMACS_INT.
24830
24831 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24832
24833 * xdisp.c (handle_composition_prop, check_point_in_composition):
24834 Make buffer positions EMACS_INT.
24835
24836 * composite.c (find_composition, run_composition_function)
24837 (update_compositions, Ffind_composition_internal): Make buffer
24838 positions EMACS_INT.
24839
bba3e508
SM
24840 * composite.h (find_composition, update_compositions):
24841 Make position args EMACS_INT.
aac0c6e3
MR
24842
24843 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24844
24845 * intervals.c (get_property_and_range):
24846 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24847
24848 * unexalpha.c: Don't include varargs.h.
24849
248502008-02-01 Dave Love <fx@gnu.org>
24851
24852 * coding.h (ENCODE_UTF_8): New.
24853
24854 * Makefile.in (gtkutil.o): Depend on coding.h.
24855
24856 * coding.c (Fset_coding_system_priority): Doc fix.
24857
248582008-02-01 Kenichi Handa <handa@m17n.org>
24859
24860 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24861 the case of auto saving.
24862
248632008-02-01 Andreas Schwab <schwab@suse.de>
24864
bba3e508
SM
24865 * chartab.c (map_char_table, map_char_table_for_charset):
24866 Protect `range' from GC.
aac0c6e3
MR
24867
248682008-02-01 Kenichi Handa <handa@m17n.org>
24869
24870 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24871
248722008-02-01 Kenichi Handa <handa@m17n.org>
24873
24874 * fileio.c (choose_write_coding_system): Return a decided coding system.
24875 (Fwrite_region): Set Vlast_coding_system_used to the return value
24876 of choose_write_coding_system.
24877
248782008-02-01 Kenichi Handa <handa@m17n.org>
24879
24880 * charset.c (Fset_charset_priority): Pay attention to duplicated
24881 arguments.
24882
24883 * coding.c (QCcategory): New variable.
24884 (syms_of_coding): Defsym it. Set all elements of
24885 Vcoding_category_table and their symbol values.
24886 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24887 coding-category-XXX, and coding-category-list.
24888 (Fdefine_coding_system_internal): Add category in the plist.
24889
248902008-02-01 Kenichi Handa <handa@m17n.org>
24891
24892 * callproc.c (Fcall_process): Handle carryover correctly.
24893
24894 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24895 (raw_text_coding_system): Check NILP (coding_system).
24896 (coding_inherit_eol_type): Check NILP (coding_system) and
24897 NILP (parent).
24898 (consume_chars): Fix for the case of raw-text.
24899
24900 * process.c (read_process_output): Handle carryover correctly.
24901
249022008-02-01 Dave Love <fx@gnu.org>
24903
24904 * regex.c (re_search_2): Fix last change.
24905
249062008-02-01 Kenichi Handa <handa@m17n.org>
24907
24908 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24909 target_multibyte. Even in a unibyte case, return a converted
24910 multibyte char.
24911 (GET_CHAR_AFTER): New macro.
24912 (PATFETCH): Translate via multibyte char.
24913 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24914 (SETUP_MULTIBYTE_RANGE): New macro.
24915 (regex_compile): Setup compiled code so that its multibyteness
24916 matches that of a target. Fix the handling of "[X-YZ]" using
24917 SETUP_MULTIBYTE_RANGE.
24918 (analyse_first) <charset>: For filling fastmap for all multibyte
24919 characters, don't check by BASE_LEADING_CODE_P.
24920 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24921 the same as RE_MULTIBYTE_P (bufp) now.
24922 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24923 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24924 (TRANSLATE_VIA_MULTIBYTE): New macro.
24925 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24926 It is the same as RE_MULTIBYTE_P (bufp) now.
24927 <exactn>: Translate via multibyte.
bba3e508
SM
24928 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24929 Don't translate it.
aac0c6e3
MR
24930 <charset, charset_not>: Fetch a character by
24931 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24932 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24933 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24934 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24935 by GET_CHAR_AFTER.
24936 (bcmp_translate): Likewise.
24937
24938 * search.c (compile_pattern): Check the member target_multibyte,
24939 not the member multibyte of buf.
24940
24941 * lread.c (read1): While reading a string, set force_singlebyte
24942 and force_multibyte correctly.
24943
24944 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24945 up of unibyte_to_multibyte_table.
24946
249472008-02-01 Kenichi Handa <handa@m17n.org>
24948
24949 * coding.c (setup_coding_system): If coding has
24950 post-read-conversion or pre-write-conversion, set
24951 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24952 respectively.
24953 (decode_coding_gap): Run post-read-conversion if any.
24954
24955 * fileio.c (Finsert_file_contents): Even if we read into a
24956 unibyte buffer, check if we must decode the result or not.
24957
249582008-02-01 Kenichi Handa <handa@m17n.org>
24959
24960 * coding.c (make_conversion_work_buffer): Change the work buffer
24961 name to the same one as that of Emacs 21.
24962
249632008-02-01 Kenichi Handa <handa@m17n.org>
24964
24965 * coding.h (make_conversion_work_buffer): Adjust prototype.
24966 (code_conversion_restore): Don't extern it.
24967
24968 * coding.c (detected_mask): Delete unused variable.
24969 (decode_coding_iso_2022): Pay attention to the byte sequence of
24970 CTEXT extended segment, and retain those bytes as is.
24971 (decode_coding_ccl): Delete unused variable `valids'.
24972 (setup_coding_system): Delete unused variable `category'.
24973 (consume_chars): Delete unused variable `category'. Make it work
24974 for non-multibyte case.
24975 (make_conversion_work_buffer): Change argument.
24976 (saved_coding): Delete unused variable.
24977 (code_conversion_restore): Don't check saved_coding->destination.
24978 (code_conversion_save): New function.
24979 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24980 instead of record_unwind_protect.
24981 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24982 (detect_coding_system): Delete unused variable `mask'.
24983 (Fdefine_coding_system_internal): Delete unused variable id.
24984
24985 * fileio.c (kill_workbuf_unwind): New function.
24986 (Finsert_file_contents): On replacing, call
24987 make_conversion_work_buffer with correct args, and call
24988 record_unwind_protect with the first arg kill_workbuf_unwind.
24989
24990 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24991
249922008-02-01 Kenichi Handa <handa@m17n.org>
24993
24994 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24995 (fontset_add): Fix for the case that TO is less than TO1.
24996 (Ffontset_info): Don't use fallback fontset on checking the
24997 default fontset.
24998 (dump_fontset): New function for debugging.
24999
25000 * coding.c (Fdefine_coding_system_internal): Fix for the case that
25001 coding_type is Qcharset.
25002
250032008-02-01 Kenichi Handa <handa@m17n.org>
25004
25005 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
25006 (map_char_table): Don't inherit the value from the parent on
25007 initializing VAL. Adjust for the above change.
25008
250092008-02-01 Kenichi Handa <handa@m17n.org>
25010
25011 * coding.c (Qsignature, Qendian): Delete these variables.
25012 (syms_of_coding): Don't initialize them.
25013 (CATEGORY_MASK_UTF_16_AUTO): New macro.
25014 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
25015 detect_info->found.
25016 (decode_coding_utf_16): Don't detect BOM here.
25017 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
25018 is NOT utf_16_without_bom.
25019 (setup_coding_system): For a coding system of type utf-16, check
25020 if the attribute :endian is Qbig or not (not nil or not), and set
25021 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
25022 (detect_coding): If coding type is utf-16 and BOM detection is
25023 required, detect it.
25024 (Fdefine_coding_system_internal): For a coding system of type
25025 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
25026
250272008-02-01 Kenichi Handa <handa@m17n.org>
25028
25029 * coding.c (coding_set_source): Fix for the case that the current
25030 buffer is different from coding->src_object.
25031 (decode_coding_object): Don't use the conversion work buffer if
25032 DST_OBJECT is a buffer.
25033
250342008-02-01 Dave Love <fx@gnu.org>
25035
25036 * lread.c (read_emacs_mule_char) [len==2]: Index
25037 emacs_mule_charset correctly.
25038
250392008-02-01 Dave Love <fx@gnu.org>
25040
25041 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
25042 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
25043 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
25044 treated specially.)
25045 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
25046 (detected_mask): Remove Big5 bits.
25047
250482008-02-01 Kenichi Handa <handa@m17n.org>
25049
25050 The following changes are to make the font rescaling facility
25051 compatible with Emacs 21.
25052
25053 * xfaces.c (Vface_font_rescale_alist): Rename from
25054 Vface_resizing_fonts.
25055 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25056 (font_rescale_ratio): Rename from font_resizing_ratio.
25057 (split_font_name): Set font->rescale_ratio.
25058 (better_font_p): Pay attention to font->rescale_ratio.
25059 (build_scalable_font_name): Likewise. Change RESX, and RESY
25060 fields.
25061 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25062
250632008-02-01 Kenichi Handa <handa@m17n.org>
25064
25065 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25066 (Qutf_16_le): Remove these variables.
25067 (syms_of_coding): Don't DEFSYM them.
25068 (decode_coding_utf_16): Fix handling of BOM.
25069 (encode_coding_utf_16): Fix handling of BOM.
25070
250712008-02-01 Kenichi Handa <handa@m17n.org>
25072
25073 * fileio.c (Finsert_file_contents): On replacing, before decoding
25074 the file into the work buffer, set point of the work buffer to the end.
25075
250762008-02-01 Dave Love <fx@gnu.org>
25077
25078 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25079
250802008-02-01 Dave Love <fx@gnu.org>
25081
25082 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25083 and fix C types.
25084
250852008-02-01 Kenichi Handa <handa@m17n.org>
25086
25087 * xdisp.c (SKIP_GLYPHS): New macro.
25088 (set_cursor_from_row): Pay attention to string display properties.
25089
25090 * category.c (copy_category_entry): Fix for the case that RANGE
25091 is an integer.
25092
25093 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25094
25095 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25096
250972008-02-01 Kenichi Handa <handa@m17n.org>
25098
25099 * charset.c (Fcharset_id_internal): New function.
25100 (syms_of_charset): Defsubr it.
25101
25102 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25103 with the last arg charset_list acquired from coding.
25104 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25105 the attribute coding_attr_ccl_valids.
25106
25107 * coding.h (enum define_coding_ccl_arg_index): Set the first
25108 member coding_arg_ccl_decoder to coding_arg_max.
25109
25110 * ccl.h (ccl_driver): Adjust prototype.
25111
25112 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25113 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 25114 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
25115 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25116 last arg Qnil.
25117
251182008-02-01 Kenichi Handa <handa@m17n.org>
25119
25120 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25121 call encode_char.
25122
25123 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25124
251252008-02-01 Dave Love <fx@gnu.org>
25126
25127 * composite.c (syms_of_composite): Make composition_hash_table weak.
25128
251292008-02-01 Kenichi Handa <handa@m17n.org>
25130
25131 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25132 (font_name_registry): Don't extern them.
25133 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25134
25135 * fontset.h (Qfontset): Don't extern it.
25136 (new_fontset_from_font_name): Extern it.
25137
25138 * fontset.c: Give 8 extra slots to fontset objects.
25139 (Qfontset_info): New variable.
25140 (syms_of_fontset): Defsym it.
25141 (FONTSET_FALLBACK): New macro.
25142 (fontset_face): Try also the default fontset.
25143 (make_fontset): Realize a fallback fontset from the default fontset.
25144 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25145 using split_font_name_into_vector and build_font_name_from_vector.
25146 (Fset_fontset_font): Access the elements of font_spec by enum
25147 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25148 name by using split_font_name_into_vector.
25149 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
25150 generate a proper font name from the fontset name.
25151 Update Vfontset_alias_alist.
aac0c6e3
MR
25152 (n_auto_fontsets): New variable.
25153 (new_fontset_from_font_name): New function.
25154 (Ffont_info): Store the information about fonts generated from the
25155 default fontset in the first extra slot of the returned char-table.
25156
25157 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25158 (font_name_registry): Delete function.
25159 (split_font_name_into_vector): New function.
25160 (build_font_name_from_vector): New function.
25161 (font_list): The argument REGISTRY is now a list of registry names.
25162 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25163 specifies an explicit font name, return the name as is. Make a
25164 list of registy names.
25165
25166 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25167 of x_new_fontset.
25168 (Fx_create_frame): Don't call x_new_fontset here. Just use
25169 x_list_fonts to check the existence of fonts.
25170
25171 * xterm.h (x_new_fontset): Adjust prototype.
25172
25173 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25174 string. Use new_fontset_from_font_name to create a fontset from a
25175 font name.
25176
251772008-02-01 Kenichi Handa <handa@m17n.org>
25178
25179 * syntax.c (Vfind_word_boundary_function_table): New name for
25180 Vnext_word_boundary_function_table.
25181 (find-word-boundary-function-table): New name for
25182 next-word-boundary-function-table.
25183
251842008-02-01 Dave Love <fx@gnu.org>
25185
25186 * Makefile.in: Fix some dependencies.
25187
25188 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25189 set it to nil before returning.
25190
25191 * composite.c (update_compositions): Fix type error.
25192
25193 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25194
251952008-02-01 Kenichi Handa <handa@m17n.org>
25196
25197 * xterm.c (x_new_font): Optimize for the case that the font is
25198 already set for the frame.
25199
252002008-02-01 Kenichi Handa <handa@m17n.org>
25201
25202 * chartab.c (char_table_ascii): Check if the char table contents
25203 is sub-char-table or not.
25204 (char_table_set, char_table_set_range): Fix argument to
25205 char_table_ascii.
25206
25207 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25208 (detect_coding_utf_8, detect_coding_utf_16)
25209 (detect_coding_emacs_mule, detect_coding_iso_2022)
25210 (detect_coding_sjis, detect_coding_big5)
25211 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25212 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25213 sequence is valid in this coding system. Change callers.
25214 (MAX_ANNOTATION_LENGTH): New macro.
25215 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
25216 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25217 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
25218 (ADD_CHARSET_DATA): New macro.
25219 (emacs_mule_char): New argument ID. Change callers.
25220 (decode_coding_emacs_mule, decode_coding_iso_2022)
25221 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25222 Produce charset annotation data in coding->charbuf.
25223 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25224 to charset annotation data in coding->charbuf.
25225 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25226 coding->common_flags if the coding system is iso-2022 based and
25227 uses designation.
25228 (produce_composition): Adjust for the new annotation data format.
25229 (produce_charset): New function.
25230 (produce_annotation): Handle charset annotation.
bba3e508
SM
25231 (handle_composition_annotation, handle_charset_annotation):
25232 New functions.
aac0c6e3
MR
25233 (consume_chars): Handle charset annotation. Utilize the above two
25234 functions.
25235 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25236 buffer, get the deleted text as a string and set
25237 coding->src_object to that string.
25238 (detect_coding, detect_coding_system): Use the new struct
25239 coding_detection_info.
25240
25241 * coding.h (struct coding_detection_info): New structure.
25242 (struct coding_system): Adjust prototype of the member `detector'.
25243 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25244
252452008-02-01 Kenichi Handa <handa@m17n.org>
25246
25247 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25248
252492008-02-01 Dave Love <fx@gnu.org>
25250
25251 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25252 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25253 to new local and nullify apropos_accumulate before returning.
25254 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25255
252562008-02-01 Kenichi Handa <handa@m17n.org>
25257
25258 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25259 correctly.
e3eea1fc 25260
aac0c6e3
MR
252612008-02-01 Dave Love <fx@gnu.org>
25262
25263 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25264
252652008-02-01 Kenichi Handa <handa@m17n.org>
25266
25267 The following changes are to make character composition happen
25268 automatically on displaying.
25269
25270 * Makefile.in (lisp, shortlisp): Add composite.elc.
25271
25272 * composite.h (Qauto_composed, Vauto_composition_function)
25273 (Qauto_composition_function): Extern them.
25274
25275 * composite.c (Vcomposition_function_table)
25276 (Qcomposition_function_table): Delete variables.
25277 (Qauto_composed, Vauto_composition_function)
25278 (Qauto_composition_function): New variables.
25279 (run_composition_function): Don't call
25280 compose-chars-after-function.
25281 (update_compositions): Clear `auto-composed' text property.
25282 (compose_chars_in_text): Delete this function.
25283 (syms_of_composite): Staticpro Qauto_composed and
25284 Qauto_composition_function. Declare Vauto_composition_function as
25285 a Lisp variable.
25286
25287 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25288
25289 * xdisp.c (it_props): Add an entry for Qauto_composed.
25290 (handle_auto_composed_prop): New function.
25291
25292 * xselect.c (selection_data_to_lisp_data): Don't call
25293 compose_chars_in_text.
25294
252952008-02-01 Dave Love <fx@gnu.org>
25296
25297 * keyboard.c (read_char): Modify checking around use of
25298 Vkeyboard_translate_table.
25299
25300 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25301 and fix C types.
25302
253032008-02-01 Kenichi Handa <handa@m17n.org>
25304
25305 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25306 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25307 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25308 the case that the last byte is '\r' correctly.
25309 (decode_coding): Flush out the unprocessed data correctly.
25310 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25311
253122008-02-01 Dave Love <fx@gnu.org>
25313
25314 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25315 Add XK_ISO... case.
25316 (xaw_scroll_callback): Revert last change.
25317
253182008-02-01 Kenichi Handa <handa@m17n.org>
25319
25320 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25321
253222008-02-01 Kenichi Handa <handa@m17n.org>
25323
25324 * xfaces.c (Vface_resizing_fonts): New variable.
25325 (struct font_name): New member `resizing_ratio'.
25326 (font_resizing_ratio): New function.
25327 (split_font_name): Set font->resizing_ratio.
25328 (better_font_p): Pay attention to font->resizing_ratio.
25329 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25330 RESX, and RESY fields.
25331 (try_alternative_families): Try scalable fonts if
25332 Vscalable_fonts_allowed is not Qt.
25333 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25334
253352008-02-01 Dave Love <fx@gnu.org>
25336
25337 * xterm.c (xaw_scroll_callback): Cast correctly.
25338
253392008-02-01 Dave Love <fx@gnu.org>
25340
25341 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25342 (lispy_kana_keys): Comment out.
25343 (make_lispy_event) [XK_kana_A]: Comment out.
25344
25345 * xterm.c (xaw_scroll_callback): Cast call_data.
25346 (XTread_socket): Deal with ASCII keysyms.
25347 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25348
253492008-02-01 Dave Love <fx@gnu.org>
25350
25351 * xterm.c (Vx_keysym_table): New.
25352 (syms_of_xterm): Initialize it.
25353 (XTread_socket): Use it.
25354 From head: Eliminate incorrect optimization that tried to avoid
25355 decoding the output of X*LookupString.
25356 (x_get_font_repertory): Delete charset declaration.
25357
253582008-02-01 Kenichi Handa <handa@m17n.org>
25359
25360 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25361 return 0.
bba3e508
SM
25362 (Fdefine_coding_system_internal):
25363 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
25364
253652008-02-01 Dave Love <fx@gnu.org>
25366
25367 * coding.c (Fcheck_coding_system): Doc fix.
25368
25369 * editfns.c (Finsert_byte): Return a proper value.
25370
253712008-02-01 Kenichi Handa <handa@m17n.org>
25372
bba3e508
SM
25373 * coding.c (decode_coding): Fix args to translate_chars.
25374 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
25375 (encode_coding): Fix args to translate_chars. Pay attention to
25376 Vstandard_translation_table_for_encode.
25377
25378 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25379 SINGLE_BYTE_CHAR_P.
25380
25381 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25382 not by SINGLE_BYTE_CHAR_P.
25383
25384 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25385 SINGLE_BYTE_CHAR_P.
25386
25387 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25388 SINGLE_BYTE_CHAR_P.
25389
25390 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25391 by SINGLE_BYTE_CHAR_P.
25392
25393 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25394 SINGLE_BYTE_CHAR_P.
25395
253962008-02-01 Dave Love <fx@gnu.org>
25397
25398 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25399
254002008-02-01 Dave Love <fx@gnu.org>
25401
25402 * fns.c (Flanginfo): Fix typo.
25403
25404 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25405
254062008-02-01 Kenichi Handa <handa@m17n.org>
25407
25408 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25409 (detect_coding_emacs_mule, detect_coding_iso_2022)
25410 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25411 incomplete byte sequence. Don't update *mask when correctly detected.
25412 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25413 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25414 (detect_coding, detect_coding_system): Adjust for the changes above.
25415
254162008-02-01 Kenichi Handa <handa@m17n.org>
25417
25418 * character.c (char_string): Rename from
25419 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25420 (string_char): Rename from string_char.
25421
25422 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25423 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
25424 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25425 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
25426
254272008-02-01 Dave Love <fx@gnu.org>
25428
25429 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25430
254312008-02-01 Kenichi Handa <handa@m17n.org>
25432
25433 * keymap.c (push_key_description): Pay attention to force_multibyte.
25434
25435 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25436
254372008-02-01 Dave Love <fx@gnu.org>
25438
25439 * charset.c (define_charset_internal): Rename `supprementary'.
25440
25441 * Makefile.in (lisp, shortlisp): Remove latin-N.
25442
254432008-02-01 Dave Love <fx@gnu.org>
25444
25445 * xfns.c (x_window, x_window): Use use_xim.
25446
25447 * xterm.c (use_xim): Initialize.
25448 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25449 (x_term_init): Maybe set use_xim.
25450
25451 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25452
254532008-02-01 Kenichi Handa <handa@m17n.org>
25454
25455 * search.c (search_buffer): Fix case-fold-search of multibyte
25456 characters.
25457 (boyer_moore): Rename the last argument to char_high_bits.
25458
254592008-02-01 Kenichi Handa <handa@m17n.org>
25460
25461 * xdisp.c (display_string): Fix for the case of zero width glyph.
25462
25463 * xfns.c (x_set_font): Change the error message of the case that
25464 x_new_fontset returns Qt.
25465
25466 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25467 (Finternal_set_lisp_face_attribute): Use signal_error for the
25468 error of invalid fontset.
25469
25470 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25471 fontset, return Qt.
25472
254732008-02-01 Dave Love <fx@gnu.org>
25474
25475 * unexelf.c (unexec): Make .got handling not SGI-specific.
25476
25477 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25478
25479 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25480
25481 * keyboard.c (read_key_sequence): Fix type error.
25482
bba3e508
SM
25483 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25484 Fix type error.
aac0c6e3
MR
25485
25486 * fontset.c (fontset_add): Return Lisp_Object.
25487
254882008-02-01 Dave Love <fx@gnu.org>
25489
25490 * charset.h (charset_ordered_list_tick): Declare extern.
25491
254922008-02-01 Kenichi Handa <handa@m17n.org>
25493
25494 The following changes (and some of 2008-02-01 changes of mine) are
25495 for handling syntax, category, and case conversion for unibyte
25496 characters by converting them to multibyte on the fly. With these
25497 changes, we don't have to setup syntax and case tables for unibyte
25498 characters in each language environment.
25499
25500 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25501 multibyte if necessary.
25502
25503 * bytecode.c (Fbyte_code): Likewise.
25504
25505 * character.h (LEADING_CODE_LATIN_1_MIN)
25506 (LEADING_CODE_LATIN_1_MAX): New macros.
25507 (unibyte_to_multibyte_table): Extern it.
25508 (unibyte_char_to_multibyte): New macro.
25509 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25510 (CHAR_LEADING_CODE): New macro.
25511 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25512
25513 * character.c (unibyte_to_multibyte_table): New variable.
25514 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25515 (multibyte_char_to_unibyte): If C is an eight-bit character,
25516 convert it to the corresponding byte value.
25517
25518 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25519 not 1, signals an error. Update the elements of
25520 unibyte_to_multibyte_table.
25521 (init_charset_once): Initialize unibyte_to_multibyte_table.
25522 (syms_of_charset): Define the charset `iso-8859-1'.
25523
25524 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25525 as is without converting it to unibyte. In a unibyte buffer,
25526 convert C to multibyte before checking the syntax.
25527
25528 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25529
25530 * minibuf.c (Fminibuffer_complete_word): Use the macro
25531 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25532
25533 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25534
25535 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
25536 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25537 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
25538 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25539 non-emacs case.
25540 (PATFETCH): Convert an eight-bit char to multibyte.
25541 (HANDLE_UNIBYTE_RANGE): New macro.
25542 (regex_compile): Setup the compiled pattern for multibyte chars
25543 even if the given regex string is unibyte. Use PATFETCH_RAW
25544 instead of PATFETCH in many places. To handle `charset'
25545 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25546 only for ASCII chars.
25547 (analyse_first) <exactn>: Simplify because the compiled pattern
25548 is multibyte.
25549 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25550 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25551 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25552 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25553 multibyte always 1.
25554 (re_search_2): In emacs, set the locale variable multibyte to 1,
25555 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
25556 to decide the multibyteness of STR1 and STR2.
25557 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
25558 before translating and checking fastmap.
25559 (TARGET_CHAR_AND_LENGTH): New macro.
25560 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
25561 to 1, otherwise to 0. New local variable target_multibyte.
25562 Check it to decide the multibyteness of STR1 and STR2.
25563 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
25564 <charset, charset_not>: If multibyte is nonzero, check fastmap
25565 only for ASCII chars. Call bcmp_translate with
25566 target_multibyte, not with multibyte.
25567 <begline>: Declare the local variable C as `unsigned'.
25568 (bcmp_translate): Change the last arg name to target_multibyte.
25569
25570 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25571 the regexp pattern and the matching target. Set cp->buf.multibyte
25572 to the multibyteness of the regexp pattern. Set
25573 cp->but.target_multibyte to the multibyteness of the matching target.
25574 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25575 FETCH_STRING_CHAR_ADVANCE.
25576 (Freplace_match): Convert unibyte chars to multibyte.
25577
25578 * syntax.c (char_quoted, back_comment, scan_words)
25579 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25580 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25581 unibyte chars to multibyte.
25582 (skip_chars): Delete the arg syntaxp, and move the code for
25583 handling syntaxes to skip_syntaxes. Change callers.
25584 Fix the case that the multibyteness of STRING and the current
25585 buffer doesn't match.
25586 (skip_syntaxes): New function.
25587 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25588 SINGLE_BYTE_CHAR_P.
25589
255902008-02-01 Kenichi Handa <handa@m17n.org>
25591
25592 * xfaces.c (QCfontset): New variable.
25593 (LFACE_FONTSET): New macro.
25594 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25595 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25596 (Finternal_set_lisp_face_attribute)
25597 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25598 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25599 check also LFACE_FONTSET_INDEX.
25600 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25601 attrs[LFACE_FONT_INDEX].
25602 (syms_of_xfaces): Intern and staticpro QCfontset.
25603
25604 * dispextern.h (enum lface_attribute_index): New member
25605 LFACE_FONTSET_INDEX.
25606
25607 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25608
256092008-02-01 Kenichi Handa <handa@m17n.org>
25610
25611 * coding.c (coding_set_destination): Fix coding->destination for
25612 the case converting a region.
25613 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25614 (encode_coding_object): Fix coding->dst_pos and
25615 coding->dst_pos_byte for the case converting a region.
25616
25617 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25618
25619 * character.h (BYTE8_STRING): New macro.
25620
25621 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25622
256232008-02-01 Kenichi Handa <handa@m17n.org>
25624
25625 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25626 characters by octal form.
25627
25628 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25629
25630 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25631 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25632 _fetch_multibyte_char_len.
25633 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25634
25635 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25636
25637 * casefiddle.c (casify_object): Simplify. Handle the case that
25638 the case conversion change the byte length.
25639 (casify_region): Likewise.
25640
25641 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25642
25643 * character.c (_fetch_multibyte_char_len): Delete this variable.
25644 (syms_of_character): Setup Vprintable_chars.
25645
25646 * editfns.c (Fchar_equal): Fix for the unibyte case.
25647 (Finsert_byte): New function.
25648 (syms_of_editfns): Defsubr it.
25649
25650 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25651 of direct code 0x3ffff.
25652
25653 * search.c (Freplace_match): Fix for the unibyte case.
25654
256552008-02-01 Kenichi Handa <handa@m17n.org>
25656
25657 * lread.c (safe_to_load_p): Fix the logic.
25658
25659 * syntax.c (scan_words): Don't treat characters belonging to
25660 different scripts as constituting a word.
25661
25662 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25663
25664 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25665
25666 * emacs.c (main): In the case of --unibyte, instead of aborting on
25667 finding non-empty buffer, make it unibyte.
25668
256692008-02-01 Kenichi Handa <handa@m17n.org>
25670
25671 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25672 to create a fontset.
25673
256742008-02-01 Dave Love <fx@gnu.org>
25675
25676 * character.c (Funibyte_char_to_multibyte): Doc fix.
25677
25678 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25679
256802008-02-01 Kenichi Handa <handa@m17n.org>
25681
25682 * fontset.c (fontset_add): Make the type `int'.
25683 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25684
25685 * character.c (unibyte_char_to_multibyte)
25686 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25687 charset_unibyte, not charset_primary.
25688
25689 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25690
25691 * charset.c (charset_unibyte): Rename from charset_primary.
25692 (Funibyte_charset): Rename from Fprimary_charset.
25693 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25694 (syms_of_charset): Adjust for the above changes.
25695
25696 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25697 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25698 it->multibyte_p is zero.
25699
25700 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25701 Delete extern.
25702
257032008-02-01 Kenichi Handa <handa@m17n.org>
25704
25705 * coding.c (Fdefine_coding_system_internal): Fix category setting
25706 for a coding system of type iso-2022.
25707
257082008-02-01 Kenichi Handa <handa@m17n.org>
25709
25710 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25711
257122008-02-01 Kenichi Handa <handa@m17n.org>
25713
25714 * syntax.c (Vnext_word_boundary_function_table): New variable.
25715 (next-word-boundary-function-table): Declare it as a Lisp variable
25716 in syms_of_syntax.
25717 (scan_words): Call functions in Vnext_word_boundary_function_table
25718 if any.
25719
25720 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25721
25722 * fontset.c (fs_load_font): If fontp->charset is not negative,
25723 return fontp without setting its members.
25724
257252008-02-01 Dave Love <fx@gnu.org>
25726
25727 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25728
25729 * m/sparc.h (HAVE_ALLOCA): Delete.
25730
25731 * s/irix6-5.h: Don't include strings.h.
25732 (bcopy, bzero, bcmp): Don't undef.
25733
25734 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25735
25736 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25737 (TIOCSIGSEND): Don't test IRIX6.
25738 (bcopy, bzero, bcmp): Define conditionally.
25739
257402008-02-01 Kenichi Handa <handa@m17n.org>
25741
25742 * buffer.c (Qas, Qmake, Qto): New variables.
25743 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25744 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25745
25746 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25747 we are inserting a process output into a multibyte buffer.
25748
25749 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25750 multibyte_char_to_unibyte.
25751
25752 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25753 by the primary charset, make it eight-bit char.
25754 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25755
25756 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25757 (charset_8_bit__control, charset_8_bit_graphic)
25758 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25759 (define_charset_internal): New function.
25760 (syms_of_charset): Call define_charset_internal for pre-defined
25761 charsets.
25762
25763 * charset.h (charset_8_bit): Extern it.
25764
25765 * coding.c (make_conversion_work_buffer): Adjust for the change
25766 of Fset_buffer_multibyte.
25767 (encode_coding_raw_text): Increment p0 in the loop.
25768
25769 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25770
bba3e508
SM
25771 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25772 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
25773
25774 * fns.c (Fstring_to_multibyte): New function.
25775 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25776
257772008-02-01 Dave Love <fx@gnu.org>
25778
25779 * xfns.c (x_put_x_image): Declare args.
25780
25781 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25782 (try_font_list): Declare an arg.
25783
25784 * xdisp.c (message2_nolog, set_message): Declare an arg.
25785
25786 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25787
25788 * syntax.c (scan_sexps_forward): Declare an arg.
25789
25790 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25791 Declare an arg.
25792
25793 * lisp.h (Fnew_fontset): Declare.
25794
25795 * keymap.c (push_key_description): Call CHARACTERP correctly.
25796
25797 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25798 (face_for_char): Delete unused vars.
25799 (Fset_fontset_font): Doc fix. Delete unused vars.
25800
25801 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25802
25803 * composite.c (update_compositions): Declare arg.
25804
25805 * cm.c (calccost, cmgoto): Declare args.
25806
25807 * charset.c: Remove `emacs' conditional. Doc fixes.
25808 (map_char_table_for_charset): Declare.
25809
25810 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25811
25812 * ccl.c: Remove `emacs' conditional.
25813
258142008-02-01 Kenichi Handa <handa@m17n.org>
25815
25816 The following changes are to allow specifying multiple font
25817 patterns for a character range (specified by script or charset).
25818
25819 * Makefile.in (abbrev.o): Depend on syntax.h.
25820 (xfaces.o): Depend on charset.h.
25821
25822 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25823 SINGLE_BYTE_CHAR_P.
25824
25825 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25826
25827 * character.h (Vchar_script_table): Extern it.
25828
25829 * character.c (Vscript_alist): Delete.
25830 (Vchar_script_table, Qchar_script_table): New variable.
25831 (syms_of_character): Declare Vchar_script_table as a lisp variable
25832 and initialize it.
25833
25834 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25835 have property char-table-extra-slots, make no extra slot.
25836
25837 * dispextern.h (struct face): Delete member `charset'.
25838 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25839 SINGLE_BYTE_CHAR_P.
25840 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25841 Add prototypes.
25842 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25843 (generate_ascii_font_name): Rename from generate_ascii_font.
25844
25845 * fontset.h (get_font_repertory_func): New prototype.
25846 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25847 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25848
25849 * fontset.c (Qprepend, Qappend): New variables.
25850 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25851 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25852 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25853 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25854 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25855 (load_font_get_repertory): New functions.
25856 (fontset_set): Delete.
25857 (fontset_face): New arg FACE. Return face ID, not face.
25858 Complete re-write to handle new fontset structure. Change caller.
25859 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25860 (face_for_char): Don't call lookup_face.
25861 (make_fontset_for_ascii_face): New arg FACE.
25862 (fs_load_font): New arg CHARSET_ID. Don't check
25863 Vfont_encoding_alist here.
25864 (find_font_encoding): New function.
25865 (list_fontsets): Use STRINGP, not ! NILP.
25866 (accumulate_script_ranges): New function.
bba3e508
SM
25867 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25868 Completely re-written to handle new fontset structure.
aac0c6e3 25869 (Ffontset_font): Return a copy of element.
bba3e508
SM
25870 (syms_of_fontset): Define symbols Qprepend and Qappend.
25871 Fix docstring of font-encoding-alist.
aac0c6e3
MR
25872
25873 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25874 (Fset_fotset_font): Fix arguments to 5.
25875
25876 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25877
25878 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25879 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25880 (highlight_trailing_whitespace): Adjust for the change of
25881 lookup_named_face.
25882
25883 * xfaces.c: Include charset.h.
25884 (load_face_font): Delete argument C. Change caller.
25885 (generate_ascii_font_name): Rename from generate_ascii_font.
25886 (font_name_registry): New function.
25887 (cache_face): Store ascii faces before non-ascii faces in buckets.
25888 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25889 Lookup only ascii faces.
25890 (lookup_non_ascii_face): New function.
25891 (lookup_named_face): Delete argument C. Change caller.
25892 (lookup_derived_face): Delete argument C. Change caller.
25893 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25894 a string, just call font_list with it.
25895 (choose_face_font): Delete arguments FACE and C. New arg
25896 FONT_SPEC. Change caller.
25897 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25898 Change caller.
25899 (realize_non_ascii_face): New function.
25900 (realize_x_face): Call load_face_font here.
25901 (realize_tty_face): Delete argument C. Change caller.
25902 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25903 get a face ID.
25904 (dump_realized_face): Don't print charset of FACE.
25905
25906 * xfns.c (x_set_font): Always call x_new_fontset and
25907 store_frame_parameter.
25908 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25909 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25910
25911 * xterm.h (x_get_font_repertory): Extern it.
25912
25913 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25914 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25915 it->multibyte_p is zero.
25916 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25917 (x_new_fontset): If FONTSETNAME doesn't match any existing
25918 fontsets, create a new one.
25919 (x_get_font_repertory): New function.
25920
259212008-02-01 Kenichi Handa <handa@m17n.org>
25922
25923 * coding.c (Ffind_coding_systems_region_internal): Detect an
25924 ASCII only string correctly.
25925
25926 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25927 version is 0.
25928
259292008-02-01 Kenichi Handa <handa@m17n.org>
25930
25931 * lread.c: Include "coding.h".
25932 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25933 (load_each_byte, unread_char): New variables.
25934 (readchar_backlog): Delete.
25935 (readchar): Return a character unless load_each_byte is nonzero.
25936 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25937 cons. If unread_char is not -1, simply return it.
25938 (unreadchar): Handle the case that readcharfun is
25939 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25940 (read_multibyte): Delete.
25941 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25942 (read_emacs_mule_char): New functions.
25943 (Fload): Even if the file doesn't have the extension ".elc", if
25944 safe_to_load_p returns a positive version number, assume that the
25945 file contains bytecompiled code. If the version is less than 22,
25946 load the file while decoding multibyte sequences by emacs-mule.
25947 (readevalloop): Don't use readchar_backlog.
25948 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25949 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25950 (read_escape): Delete the arg BYTEREP.
25951 (read1): Set load_each_byte to 1 temporarily while handling
25952 #@NUMBER. Don't call read_multibyte.
25953 (read_vector): Call Fread with a cons. If readcharfun is
25954 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25955 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25956 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25957 and Qload_force_doc_strings.
25958
259592008-02-01 Kenichi Handa <handa@m17n.org>
25960
bba3e508
SM
25961 * xdisp.c (face_before_or_after_it_pos):
25962 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
25963
259642008-02-01 Kenichi Handa <handa@m17n.org>
25965
25966 * character.h (TRAILING_CODE_P): New macro.
25967 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25968 (string_char_with_unification): Fix prototype.
25969 (Vscript_alist): Extern it.
25970
25971 * character.c (Vscript_alist): New variable.
25972 (string_char_with_unification, str_as_unibyte)
25973 (string_escape_byte8): Add `const' to local variables.
25974 (syms_of_character): Declare script-alist as a Lisp variable.
25975
25976 * charset.h (Vcharset_ordered_list): Extern it.
25977 (charset_ordered_list_tick): Extern it.
25978 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25979 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25980 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25981 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25982 (Funify_charset): Adjust for the change of Funify_charset.
25983
25984 * charset.c (charset_ordered_list_tick): New variable.
25985 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25986 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 25987 deunify instead of unify a charset.
aac0c6e3
MR
25988 (string_xstring_p): Add `const' to local variables.
25989 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
25990 (encode_char): Adjust for the change of Funify_charset.
25991 Fix detecting of invalid code.
aac0c6e3
MR
25992 (Fset_charset_priority): Increment charset_ordered_list_tick.
25993 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25994 and TO_CODE.
25995
25996 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25997 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25998 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25999 (decode_coding_ccl, consume_chars)
26000 (Ffind_coding_systems_region_internal)
26001 (Fcheck_coding_systems_region): Add `const' to local variables.
26002
26003 * print.c (print_object): Use octal form for printing the
26004 contents of a bool vector.
26005
260062008-02-01 Dave Love <fx@gnu.org>
26007
26008 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
26009 <version == 20>: Refuse to load.
26010
260112008-02-01 Dave Love <fx@gnu.org>
26012
26013 * fns.c: Move coding.h.
26014 (Qcodeset, Qdays, Qmonths): New.
26015 (concat): Use CHARACTERP instead of INTEGERP.
26016 (Flocale_codeset): Delete.
26017 (Flanginfo): New function.
26018 (syms_of_fns): Change accordingly.
26019
26020 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
26021
260222008-02-01 Dave Love <fx@gnu.org>
26023
bba3e508
SM
26024 * casetab.c (init_casetab_once, init_casetab_once):
26025 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
26026
26027 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
26028
26029 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
26030
26031 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
26032 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
26033 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
26034
26035 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
26036
26037 * coding.c (ENCODE_DESIGNATION, decode_eol)
26038 (make_conversion_work_buffer, code_conversion_restore)
26039 (Fdefine_coding_system_internal): Convert Lisp types.
26040 (code_conversion_restore): Use EQ, not ==.
26041 (Fencode_coding_string): Fix code_convert_string call.
26042
26043 * coding.h (code_convert_region): Fix prototype.
26044
26045 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
26046
26047 * fontset.c (fontset_ref, fontset_set, fs_load_font)
26048 (Ffontset_info): Convert Lisp types.
26049
26050 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
26051
26052 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
26053
26054 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26055
26056 * chartab.c: Include "...h", not <...h> in some cases.
26057
26058 * callproc.c (Fcall_process): Remove unused variables.
26059
260602008-02-01 Dave Love <fx@gnu.org>
26061
26062 * coding.c (Fset_coding_system_priority): Allow null arg list.
26063
260642008-02-01 Dave Love <fx@gnu.org>
26065
26066 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26067 (Fself_insert_and_exit): Use CHARACTERP.
26068
26069 * callproc.c (Fcall_process): Remove unused vars.
26070
26071 * xterm.c (XTread_socket): Add extra dead keysyms.
26072
26073 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26074
26075 * dispextern.h: Remove prototypes for redraw_frame,
26076 redraw_garbaged_frames.
26077
26078 * cmds.c (Fself_insert_command): Use CHARACTERP.
26079
26080 * chartab.c (make_sub_char_table): Remove unused var.
26081 (Fset_char_table_default, Fmap_char_table): Doc fix.
26082
26083 * keymap.c (access_keymap): Remove generic char code.
26084 (push_key_description): Use CHARACTERP.
26085
260862008-02-01 Dave Love <fx@gnu.org>
26087
26088 * charset.c: Doc fixes.
26089 (Funify_charset): Extra checking.
26090
260912008-02-01 Dave Love <fx@gnu.org>
26092
26093 * lread.c: Remove some unused variables.
26094 (safe_to_load_p): If safe, return the magic number version byte.
26095 (Fload): Maybe use load-with-code-conversion.
26096
260972008-02-01 Kenichi Handa <handa@m17n.org>
26098
26099 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
26100 of category_set for characters out of the range.
26101 Avoid unnecessary modification.
aac0c6e3
MR
26102
26103 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26104 Vchar_unify_table. The default value of the table is now nil.
26105
26106 * character.c (syms_of_character): Setup Vchar_width_table for
26107 eight-bit-control and raw-byte chars.
26108
bba3e508
SM
26109 * charset.h (enum define_charset_arg_index):
26110 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
26111 charset_arg_superset.
26112 (enum charset_attr_index): Delete charset_parents and add
26113 charset_subset and charset_superset.
26114 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26115 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26116 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26117 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26118 (CHARSET_SUPERSET): New macros.
26119 (charset_work): Extern it.
26120 (ENCODE_CHAR): Use charset_work.
26121 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26122 (map_charset_chars): Extern it.
26123
26124 * charset.c (load_charset_map): Set the default value of encoder
26125 and deunifier char-tables to nil.
bba3e508
SM
26126 (map_charset_chars): Change argument. Change callers.
26127 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
26128 (Fmap_charset_chars): New optional args from_code and to_code.
26129 (Fdefine_charset_internal): Adjust for the change of
26130 `define-charset' (:parents -> :subset or :superset).
26131 (charset_work): New variable.
26132 (encode_char, syms_of_charset): Adjust for the change of
26133 Fdefine_charset_internal.
26134 (Ffind_charset_string): Setup the vector `charsets' correctly.
26135
bba3e508
SM
26136 * chartab.c (sub_char_table_ref_and_range): New arg default.
26137 Fix the previous change.
aac0c6e3
MR
26138 (char_table_ref_and_range): Adjust for the above change.
26139 (map_sub_char_table_for_charset): New function.
26140 (map_char_table_for_charset): New function.
26141
26142 * keymap.c (describe_vector): Handle a char-table directly here.
26143 (describe_char_table): Delete.
26144
26145 * lisp.h (map_charset_chars): Delete.
26146
261472008-02-01 Dave Love <fx@gnu.org>
26148
26149 * fns.c (count_combining): Comment out (unused).
26150 (Flocale_codeset): New.
26151 (syms_of_fns): Defsubr it.
26152
26153 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26154 (size_t): Remove.
26155
261562008-02-01 Dave Love <fx@gnu.org>
26157
26158 * Makefile.in (chartab.o): Depend on charset.h.
26159
261602008-02-01 Kenichi Handa <handa@m17n.org>
26161
26162 * character.c (syms_of_character): Set the default value of
26163 Vprintable_chars to Qnil.
26164
261652008-02-01 Dave Love <fx@gnu.org>
26166
26167 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26168
261692008-02-01 Kenichi Handa <handa@m17n.org>
26170
26171 * charset.c (load_charset_map): Handle the case that from < to
26172 correctly.
26173
26174 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26175 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26176 Pay attention to raw-8-bit chars.
26177
261782008-02-01 Kenichi Handa <handa@m17n.org>
26179
26180 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26181 It is not bytecompiled now.
26182
26183 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26184 (charset_jisx0208): New variables.
26185 (Fdefine_charset_internal): Setup them if appropriate.
26186 (init_charset_once): Initialize them to -1.
26187
26188 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26189 (charset_jisx0208): Extern them.
26190
26191 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26192 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26193 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26194 (setup_iso_safe_charsets): Fix arguments to Fassq.
26195 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26196 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26197 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26198 (encode_coding_iso_2022): Change the 1st arg to
26199 ENCODE_ISO_CHARACTER to a variable.
26200
262012008-02-01 Kenichi Handa <handa@m17n.org>
26202
26203 * charset.h (enum define_charset_arg_index): New enums
26204 charset_arg_min_code and charset_arg_max_code.
26205 (struct charset): New member char_index_offset.
26206
26207 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26208 Take charset->char_index_offset into account.
26209 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26210 args[charset_arg_max_code]. Setup charset.char_index_offset.
26211 (syms_of_charset): Fix args to Fdefine_charset_internal.
26212
262132008-02-01 Dave Love <fx@gnu.org>
26214
26215 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26216
262172008-02-01 Dave Love <fx@gnu.org>
26218
26219 * coding.c: Doc fixes.
26220 (Fcoding_system_aliases): Fix return value.
26221 (Qmac): Remove (duplicated) definition.
26222
262232008-02-01 Dave Love <fx@gnu.org>
26224
362654a6
JB
26225 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26226 New functions.
aac0c6e3
MR
26227
26228 * character.c (Fstring): Doc fix.
26229
26230 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26231
362654a6 26232 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
26233 (font-encoding-alist): Doc fix.
26234
262352008-02-01 Dave Love <fx@gnu.org>
26236
26237 * term.c (costs_set): Declare static, non-initialized for pcc.
26238 (encode_terminal_code): Remove unused var.
26239
26240 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26241 for K&R.
26242
26243 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26244
26245 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26246 (suffixes): Move out of make_subsidiaries for K&R.
26247
26248 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26249
26250 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26251
262522008-02-01 Dave Love <fx@gnu.org>
26253
26254 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26255
26256 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26257
262582008-02-01 Yong Lu <lyongu@asia-infonet.com>
26259
26260 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26261
26262 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26263
262642008-02-01 Kenichi Handa <handa@m17n.org>
26265
26266 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26267 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26268
262692008-02-01 Kenichi Handa <handa@m17n.org>
26270
26271 * coding.c (decode_coding_charset): Adjust for the change of
26272 Fdefine_coding_system_internal.
26273 (Fdefine_coding_system_internal): For a coding system of
26274 `charset' type, store a list of charset IDs in
26275 `charset_attr_charset_valids' element of coding attributes.
26276
262772008-02-01 Kenichi Handa <handa@m17n.org>
26278
26279 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
26280 (emacs_mule_char): New arg src. Delete arg `composition'.
26281 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
26282 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26283 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26284 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
26285 (DECODE_EMACS_MULE_21_COMPOSITION):
26286 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
26287 sequence.
26288 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26289 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26290 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26291 and alt&rule composition.
26292 (decode_coding_iso_2022): Handle composition correctly.
26293 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26294
26295 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26296 re-defining a charset. If the charset has :emacs-mule-id, setup
26297 emacs_mule_bytes.
26298 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26299
263002008-02-01 Kenichi Handa <handa@m17n.org>
26301
26302 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26303 (encode_coding_big5, encode_coding_charset): If coding requires safe
26304 encoding, produce a character specified by
26305 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26306
263072008-02-01 Dave Love <fx@gnu.org>
26308
26309 * xterm.c (XSetIMValues): Declare.
26310
26311 * process.c: Conditionally include sys/wait.h, pty.h.
26312
26313 * print.c (print_object): Fix print format for 64-bit systems.
26314
26315 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26316
26317 * buffer.c (emacs_strerror): Declare.
26318
26319 * fontset.c (Fclear_face_cache): Declare.
26320 (accumulate_font_info): Comment-out (unused).
26321 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26322 variables.
26323
26324 * character.h (string_escape_byte8): Declare.
26325
bba3e508
SM
26326 * charset.c (load_charset_map, load_charset_map_from_file):
26327 Remove unused vars.
aac0c6e3
MR
26328 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26329 (Fmap_charset_chars): Doc fix.
26330
26331 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26332 (Fset_coding_system_priority, Fset_coding_system_priority)
26333 (Fdefine_coding_system_internal): Doc fix.
26334
263352008-02-01 Dave Love <fx@gnu.org>
26336
26337 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26338
263392008-02-01 Kenichi Handa <handa@m17n.org>
26340
26341 * character.c (string_escape_byte8): Make multibyte string with
26342 correct size.
26343
26344 * charset.c (Fmake_char): Delete unnecessary code.
26345
263462008-02-01 Kenichi Handa <handa@m17n.org>
26347
26348 * xfns.c (x_encode_text): Allocate coding.destination here, and
26349 call encode_coding_object with dst_object Qnil.
26350
26351 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26352 multibyte form correctly.
26353
26354 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26355 against Vfont_encoding_alist.
26356
26357 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26358 handling of charset list.
26359 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26360 (decode_coding_object): Move point to coding->dst_pos before
26361 calling post-read-conversion function.
26362 (encode_coding_object): Give correct arguments to
26363 pre-write-conversion. Ignore the return value of
26364 pre-write-conversion function. Pay attention to the case that
26365 pre-write-conversion changes the current buffer. If dst_object is
26366 Qt, even if coding->src_bytes is zero, allocate at least one byte
26367 to coding->destination.
26368
26369 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26370
26371 * charset.c (Fmake_char): Make it more backward compatible.
26372 (Fmap_charset_chars): Fix docstring.
26373
263742008-02-01 Dave Love <fx@gnu.org>
26375
26376 * coding.c: Doc fixes.
26377 (Fdefine_coding_system_alias): Use names, not symbols, in
26378 coding-system-alist.
26379
263802008-02-01 Kenichi Handa <handa@m17n.org>
26381
26382 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26383 of calling free_realized_face.
26384
263852008-02-01 Yong Lu <lyongu@asia-infonet.com>
26386
26387 * charset.c (read_hex): Don't treat SPC as a comment starter.
26388 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26389 (Fdecode_char): Fix typo.
26390
263912008-02-01 Kenichi Handa <handa@m17n.org>
26392
26393 * charset.h (struct charset): New member `code_space_mask'.
26394
26395 * coding.c (coding_set_source): Delete the local variable beg_byte.
26396 (encode_coding_charset, Fdefine_coding_system_internal):
26397 Delete the local variable charset.
bba3e508
SM
26398 (Fdefine_coding_system_internal):
26399 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
26400
26401 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26402 member to check if CODE is valid or not.
26403 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26404 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26405 is within the range of charset->min_code and carset->max_code.
26406
264072008-02-01 Dave Love <fx@gnu.org>
26408
26409 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26410
26411 * dispextern.h (generate_ascii_font): Fix return type.
26412
26413 * xfaces.c (generate_ascii_font): Fix arg declaration.
26414
26415 * coding.c (coding_inherit_eol_type)
26416 (Fset_terminal_coding_system_internal)
26417 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26418
264192008-02-01 Kenichi Handa <handa@m17n.org>
26420
bba3e508
SM
26421 * coding.c (decode_coding_charset, encode_coding_charset):
26422 Handle multiple charsets correctly.
aac0c6e3
MR
26423
264242008-02-01 Kenichi Handa <handa@m17n.org>
26425
26426 * search.c (boyer_moore): Fix handling of multibyte character
26427 translation.
26428
26429 * xdisp.c (display_mode_element): When the variable `elt' is
26430 changed, update `this' and `lisp_string'.
26431
264322008-02-01 Kenichi Handa <handa@m17n.org>
26433
26434 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26435
26436 * callproc.c (Fcall_process): Be sure to give the current buffer
26437 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26438
26439 * charset.c (struct charset_map_entries): New struct.
26440 (load_charset_map): Rename from parse_charset_map. New args
26441 entries and n_entries. Change caller.
26442 (load_charset_map_from_file): Rename from load_charset_map.
26443 Change caller. New arg control_flag. Call load_charset_map at
26444 the tail.
26445 (load_charset_map_from_vector): New function.
26446 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26447 (encode_char): If the charset is compact, change a character index
26448 to a code point.
26449
26450 * coding.c (coding_alloc_by_making_gap): Check the case that the
26451 source and destination are the same correctly.
26452 (decode_coding_raw_text): Set coding->consumed_char and
26453 coding->consumed to 0.
26454 (produce_chars): If coding->chars_at_source is nonzero, update
26455 coding->consumed_char and coding->consumed before calling
26456 alloc_destination.
26457 (Fdefine_coding_system_alias): Register ALIAS in
26458 Vcoding_system_alist.
26459 (syms_of_coding): Define `no-conversion' coding system at the tail.
26460
26461 * fileio.c (Finsert_file_contents): Set coding_system instead of
26462 val. If the current buffer is multibyte, always call
26463 decode_coding_gap.
26464
26465 * xfaces.c (try_font_list): Give higher priority to fontset's
26466 family than face's family.
26467
264682008-02-01 Kenichi Handa <handa@m17n.org>
26469
26470 * callproc.c (Fcall_process): Be sure to give the current buffer
26471 to decode_coding_c_string.
26472
26473 * xfaces.c (try_font_list): Give a family specified in a fontset
26474 higher priority than a family specified in a face.
26475
264762008-02-01 Kenichi Handa <handa@m17n.org>
26477
26478 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26479 Fix arguments to insert_from_buffer.
26480
26481 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26482
264832008-02-01 Kenichi Handa <handa@m17n.org>
26484
26485 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26486 (decode_coding_gap): Set coding->dst_multibyte correctly.
26487
264882008-02-01 Kenichi Handa <handa@m17n.org>
26489
26490 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26491 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26492 (encode_coding_utf_16): Substitute coding->default_char for
26493 non-Unicode characters.
26494 (decode_coding): Don't call record_insert here.
26495 (setup_coding_system): Initialize `surrogate' of
26496 coding->spec.utf_16 to 0.
26497 (EMIT_ONE_BYTE): Fix for multibyte case.
26498
26499 * insdel.c (insert_from_gap): Call record_insert.
26500
265012008-02-01 Kenichi Handa <handa@m17n.org>
26502
26503 * casefiddle.c (casify_region): Fix multibyte case.
26504
26505 * character.c (c_string_width): Add return type `int'.
26506 (char_string_with_unification): Delete arg ADVANCED.
26507
26508 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26509 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26510 (CHAR_STRING_ADVANCE): Make it do-while statement.
26511
26512 * chartab.c (sub_char_table_set_range): Optimize for the case
26513 DEPTH == 3. Add workaround code for a GCC optimization bug.
26514
26515 * charset.c (parse_charset_map): Remove an unused variable.
26516
26517 * coding.c: Delete unused variables.
26518
26519 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26520 earlier. If inserted is zero and the coding system doesn't
26521 require flushing, don't call decode_coding_gap.
26522
26523 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26524
265252008-02-01 Kenichi Handa <handa@m17n.org>
26526
26527 The following changes are for using Unicode as an internal
26528 character model, and use UTF-8 format for buffer/string
26529 representation.
26530
26531 * .gdbinit (xchartable): Adjust for the change of char table structure.
26532 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26533
26534 * Makefile.in (obj): Add character.o and chartab.o.
26535 (lisp, shortlisp): Remove utf-8.elc.
26536 (*.o): For many files, change dependency on charset.h to
26537 character.h, and add dependency on character.h.
26538 (character.o, chartab.o): New targets.
26539
26540 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26541 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26542 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26543 of "charset.h".
26544
26545 * dired.c, filelock.c: Include "character.h".
26546
26547 * alloc.c: Include "character.h" instead of "charset.h".
26548 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26549 (syms_of_alloc): Remove defsubr for Smake_char_table.
26550
26551 * buffer.c: Include "character.h" instead of "charset.h", don't
26552 include "coding.h".
26553 (Fset_buffer_multibyte): Adjust for UTF-8.
26554
26555 * buffer.h: EXFUN Fbuffer_live_p.
26556
26557 * callproc.c: Include "character.h" instead of "charset.h".
26558 (Fcall_process): Big change for the new code-conversion APIs.
26559
26560 * casetab.c: Include "character.h" instead of "charset.h".
26561 (set_canon, set_identity, shuffle): Adjust for the new
26562 map_char_table spec.
26563 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26564 accessing the char table structure.
26565
26566 * chartab.c: New file that implements char table.
26567
26568 * category.c: Include "character.h".
26569 (copy_category_entry): New function.
26570 (copy_category_table): Call map_char_table and copy_category_entry.
26571 (Fmake_category_table): Initialize all top-level slots.
26572 (char_category_set): New function.
26573 (modify_lower_category_set): Delete.
26574 (Fmodify_category_entry): Call char_table_ref_and_range.
26575
26576 * category.h (CATEGORY_SET): Just call char_category_set.
26577
26578 * ccl.c: Include "character.h".
26579 (Qccl, Qcclp): New variables.
26580 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26581 it's less than 256.
26582 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26583 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26584 and DST type.
26585 (ccl_driver): Change types of argument, adjust code accordingly.
26586 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26587 ccl_driver.
26588 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26589
26590 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26591 New members src_multibyte, dst_multibyte, consumed, and produced.
26592 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26593 (CODING_SPEC_CCL_PROGRAM): New macro.
26594 (ccl_driver): Update prototype.
26595 (Qccl, Qcclp, Fccl_program_p): Extern them.
26596 (CHECK_CCL_PROGRAM): New macro.
26597
26598 * character.c, character.h, chartab.c: New files.
26599
26600 * charset.c: Mostly re-written. Move character and multibyte sequence
26601 handling codes to character.c.
26602
26603 * charset.h: Mostly re-written. Move character and multibyte sequence
26604 handling codes to character.h.
26605
26606 * coding.c, coding.h: Mostly re-written.
26607
26608 * composite.c: Include "character.h" instead of "charset.h".
26609 (CHAR_WIDTH): Move to character.h.
26610 (HASH_KEY, HASH_VALUE): Delete.
26611
26612 * composite.h (enum composition_method): Change order of enumeration
26613 symbols.
26614
26615 * data.c: Include "character.h" instead of "charset.h".
26616 (Faref): Call CHAR_TABLE_REF for a char table.
26617 (Faset): Call CHAR_TABLE_SET for a char table.
26618
26619 * dispextern.h (free_realized_face, check_face_attribytes)
26620 (generate_ascii_font): Extern them.
26621 (free_realized_multibyte_face): Delete extern.
26622
26623 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26624 table structure.
26625
26626 * editfns.c: Include "character.h" instead of "charset.h".
26627 (Fchar_to_string): Always call CHAR_STRING.
26628
26629 * emacs.c (main): Call init_charset_once, init_charset,
26630 syms_of_chartab, and syms_of_character.
26631
26632 * fileio.c: Include "character.h" instead of "charset.h".
26633 (Finsert_file_contents): Big change for the new code-conversion API.
26634 (choose_write_coding_system, Fwrite_region): Likewise.
26635 (build_annotations_2): Delete.
26636 (e_write): Big change for the new code-conversion API.
26637
26638 * fns.c: Include "character.h" instead of "charset.h".
26639 (copy_sub_char_table): Move to chartab.c.
26640 (Fcopy_sequence): Call copy_char_table for a char table.
26641 (concat): Delete codes calling count_multibyte.
26642 (string_char_to_byte, string_byte_to_char): Adjust for the new
26643 multibyte form.
26644 (internal_equal): Adjust for the change of char table structure.
26645 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26646 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26647 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26648 (char_table_translate, optimize_sub_char_table)
26649 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26650 chartab.c.
26651 (char_table_ref_and_index): Delete.
26652 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26653 (Fmd5): Call preferred_coding_system instead of accessing
26654 Vcoding_category_list. Adjust for the new code-conversion API.
26655 (syms_of_fns): Move defsubr for char table related functions to
26656 chartab.c.
26657
26658 * fontset.c: Mostly re-written.
26659
26660 * fontset.h (struct font_info): Change type of the member encoding_type.
26661 (enum FONT_SPEC_INDEX): New enum.
26662 (fontset_font_pattern, fs_load_font): Update prototype.
26663 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26664
26665 * indent.c: Include "character.h" instead of "charset.h".
26666 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26667
26668 * insdel.c: Include "character.h" instead of "charset.h".
26669 (copy_text): Don't refer to Vnonascii_translation_table.
26670 (insert_from_gap): New function.
26671
26672 * keyboard.c: Include "character.h" instead of "charset.h".
26673 (command_loop_1): Never call direct_output_forward_char before
26674 a non-ASCII character.
26675 (read_char): If Vkeyboard_translate_table is a char table, always
26676 translate a character.
26677
26678 * keymap.c: Include "character.h".
26679 (store_in_keymap): Handle the case that IDX is a cons.
26680 (Fdefine_key): Handle the case that KEY is a cons and the car part
26681 is also a cons (range).
26682 (push_key_description): Adjust for the new character code.
26683 (describe_vector): Call describe_char_table for a char table.
26684 (describe_char_table): New function.
26685
26686 * keymap.h (describe_char_table): Extern it.
26687
26688 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26689 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26690 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26691 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26692 Delete.
26693 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26694 structure.
26695 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26696 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26697 (CHARTAB_SIZE_BITS_3): New macros.
26698 (chartab_size): Extern it.
26699 (struct Lisp_Char_Table): Re-design.
26700 (struct Lisp_Sub_Char_Table): New structure.
26701 (HASH_KEY, HASH_VALUE): Move from fns.c.
26702 (CHARACTERBITS): Define as 22.
26703 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26704 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26705 (GC_SUB_CHAR_TABLE_P): New macro.
26706 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 26707 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
26708 (init_character_once, syms_of_character, init_charset)
26709 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26710
26711 * lread.c: Include "character.h".
26712 (read_multibyte): New arg NBYTES.
26713 (read_escape): Change the meaning of returned *BYTEREP.
26714 (to_multibyte): Delete.
26715 (read1): Adjust the handling of char table and string.
26716
26717 * print.c: Include "character.h" instead of "charset.h".
26718 (print_string): Convert 8-bit raw bytes to octal form by
26719 string_escape_byte8.
26720 (print_object): Adjust for the new multibyte form. Print 8-bit
26721 raw bytes always in octal form. Handle sub char table correctly.
26722
26723 * process.c: Include "character.h" instead of "charset.h".
26724 (read_process_output, send_process): Adjust for the new
26725 code-conversion API.
26726
26727 * puresize.h (BASE_PURESIZE): Increase.
26728
26729 * regex.c: Include "character.h" instead of "charset.h".
26730 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26731 (regex_compile): Accept a range whose starting and ending
26732 character have different leading bytes.
26733 (analyse_first): Adjust for the above change.
26734
26735 * search.c: Include "character.h" instead of "charset.h".
26736 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26737 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26738
26739 * syntax.c: Include "character.h" instead of "charset.h".
26740 (syntax_parent_lookup): Delete.
26741 (Fmodify_syntax_entry): Accept a cons as CHAR.
26742 (skip_chars): Adjust for the new multibyte form.
26743 (init_syntax_once): Call char_table_set_range instead of directly
26744 accessing the structure of a char table.
26745
26746 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26747 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26748 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26749 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26750
26751 * term.c: Include "buffer.h" and "character.h".
26752 (encode_terminal_code, write_glyphs): Adjust for the new
26753 code-conversion API.
26754 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26755
26756 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26757
26758 * xdisp.c: Include "character.h".
26759 (get_next_display_element): Adjust for the new multibyte form.
26760 (disp_char_vector): Adjust for the new char table structure.
26761 (decode_mode_spec_coding): Adjust for the new structure of
26762 coding system.
26763 (decode_mode_spec): Adjust for the new code-conversion API.
26764
26765 * xfaces.c: Include "character.h" instead of "charset.h".
26766 (load_face_font): Adjust for the change of choose_face_font and
26767 FS_LOAD_FONT.
26768 (generate_ascii_font): New function.
26769 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26770 (set_font_frame_param): Adjust for the change of choose_face_font.
26771 (free_realized_face): Make it public.
26772 (free_realized_faces_for_fontset): Rename from
26773 free_realized_multibyte_face. Free also faces realized for ASCII.
26774 (choose_face_font): Change arguments. Adjust for the change of
26775 fontset_font_pattern and FS_LOAD_FONT.
26776
26777 * xfns.c: Include "character.h".
26778 (x_encode_text): Adjust for the new code-conversion API.
26779
26780 * xselect.c: Don't include "charset.h".
26781 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26782
26783 * xterm.c: Include "character.h".
26784 (x_encode_char): New argument CHARSET. Change caller.
26785 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26786 Call ENCODE_CHAR instead of SPLIT_CHAR.
26787 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26788 CHAR_WIDTH instead of CHARSET_WIDTH.
26789 (XTread_socket): Adjust for the new code-conversion API.
26790 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26791 (x_load_font): Adjust for the change of struct font.
26792
267932008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26794
26795 * xfaces.c (face_at_buffer_position): Remove unused vars.
26796
267972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26798
26799 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26800 Fix overflow checking.
26801
268022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26803
26804 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26805 Cancel previous change.
26806
268072008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26808
26809 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26810 ccl->eight_bit_control. Fix check for buffer overflow.
26811 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26812 (ccl_driver): Initialize extra_bytes to 0.
26813
268142008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26815
26816 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26817 return it ORed with ctrl_modifier.
26818
268192008-01-29 Miles Bader <miles@gnu.org>
26820
26821 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26822
268232008-01-28 Jason Rumney <jasonr@gnu.org>
26824
26825 * w32.c (stat): Don't double check for networked drive.
26826
268272008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26828
26829 * window.c (run_window_configuration_change_hook): New function.
26830 Code extracted from set_window_buffer. Set the selected frame.
26831 (set_window_buffer): Use it.
26832 * window.h (run_window_configuration_change_hook): Declare.
26833 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26834
26835 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26836
268372008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26838
26839 * Makefile.in: Remove references to unused macros.
26840
268412008-01-26 Eli Zaretskii <eliz@gnu.org>
26842
26843 * w32.c (g_b_init_get_sid_sub_authority)
26844 (g_b_init_get_sid_sub_authority_count): New static variables.
26845 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26846 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26847 (init_user_info): Use them to retrieve uid and gid.
26848 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26849 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26850 st_uid and st_gid of the file.
26851
268522008-01-26 Jason Rumney <jasonr@gnu.org>
26853
26854 * w32.c (logon_network_drive): New function.
26855 (stat): Use it.
26856
268572008-01-26 Chong Yidong <cyd@stupidchicken.com>
26858
26859 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26860 invisible text covered with an ellipsis.
26861
268622008-01-25 Richard Stallman <rms@gnu.org>
26863
26864 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26865 jump back to beginning. Move some other initializations after that.
26866 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26867 New variables.
26868 (syms_of_xdisp): Init them.
26869
26870 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26871
26872 * buffer.c (reset_buffer_local_variables):
26873 Implement `permanent-local-hook'.
26874 (Qpermanent_local_hook): New variable.
26875 (syms_of_buffer): Init and staticpro it.
26876
268772008-01-25 Michael Albinus <michael.albinus@gmx.de>
26878
26879 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26880
268812008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26882
26883 * fns.c (Fclrhash): Return TABLE.
26884
268852008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26886
26887 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26888 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26889 is set even without positional changes.
26890 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26891
26892 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26893
268942008-01-23 Jason Rumney <jasonr@gnu.org>
26895
26896 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26897
26898 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26899 the unicode range available in MULE by locale-coding-system.
26900 Improve dbcs lead byte detection. Set event timestamp and modifiers
26901 earlier.
26902
269032008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26904
26905 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26906 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26907 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26908 when used on child processes.
26909
269102008-01-21 Michael Albinus <michael.albinus@gmx.de>
26911
26912 * dbusbind.c (Fdbus_method_return_internal): Rename from
26913 Fdbus_method_return.
26914 (Fdbus_unregister_object): Move to dbus.el.
26915 (Fdbus_call_method, Fdbus_method_return_internal)
26916 (Fdbus_send_signal): Improve debug messages.
26917
269182008-01-20 Martin Rudalics <rudalics@gmx.at>
26919
26920 * undo.c (undo_inhibit_record_point): New variable.
26921 (syms_of_undo): Initialize it.
26922 (record_point): Don't record point when undo_inhibit_record_point
26923 is set.
26924
269252008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26926
26927 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26928
26929 * xdisp.c (Qauto_hscroll_mode): New var.
26930 (syms_of_xdisp): Initialize it.
26931 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26932 window's buffer.
26933 (hscroll_windows): Don't check automatic_hscrolling_p here.
26934
26935 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26936 vscroll if we're setting window-buffer to the value it already has.
26937
269382008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26939
26940 * m/intel386.h: Remove references to XENIX.
26941
269422008-01-17 Andreas Schwab <schwab@suse.de>
26943
26944 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26945 instead of HAVE_X86_64_LIB64_DIR.
26946 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26947
269482008-01-17 Glenn Morris <rgm@gnu.org>
26949
26950 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26951 to HAVE_X86_64_LIB64_DIR.
26952
269532008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26954
26955 * s/irix3-3.h:
26956 * s/irix4-0.h:
26957 * s/386-ix.h:
26958 * s/domain.h:
26959 * s/hpux9-x11r4.h:
26960 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26961
26962 * sysdep.c: Remove code containing references to symbols defined
26963 by unsupported systems.
26964
269652008-01-16 Glenn Morris <rgm@gnu.org>
26966
26967 * coding.c (select-safe-coding-system-function): Doc fix.
26968
269692008-01-15 Glenn Morris <rgm@gnu.org>
26970
26971 * config.in: Revert 2008-01-13 change: this is a generated file.
26972
269732008-01-13 Tom Tromey <tromey@redhat.com>
26974
26975 * lisp.h: Fix typo.
26976
269772008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26978
26979 * m/sequent-ptx.h:
26980 * m/sequent.h:
26981 * s/ptx.h:
26982 * s/ptx4-2.h:
26983 * s/ptx4.h: Remove files for systems no longer supported.
26984
26985 * callproc.c (Fcall_process): Fix previous change.
26986
269872008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26988
26989 * unexsunos4.c: Remove file, system not supported anymore.
26990
26991 * m/mips.h:
26992 * m/intel386.h:
26993 * callproc.c:
26994 * config.in:
26995 * ecrt0.c:
26996 * emacs.c:
26997 * fileio.c:
26998 * frame.c:
26999 * getpagesize.h:
27000 * keyboard.c:
27001 * lread.c:
27002 * process.c:
27003 * puresize.h:
27004 * sysdep.c:
27005 * systty.h:
27006 * syswait.h:
27007 * unexec.c:
27008 * xdisp.c:
27009 * alloc.c: Remove code containing references to symbols defined by
27010 unsupported systems.
27011
270122008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
27013
27014 * coding.c (detect_coding_mask): Fix previous change.
27015
270162008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
27017
27018 * coding.c (detect_coding_iso2022): New arg
27019 latin_extra_code_state. Allow Latin extra codes only
27020 when *latin_extra_code_state is nonzero.
27021 (detect_coding_mask): If there is a NULL byte, detect the encoding
27022 as UTF-16 or binary. If Latin extra codes exist, detect the
27023 encoding as ISO-2022 only when there's no other proper encoding is
27024 found.
27025
270262008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27027
27028 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
27029 #ifdef MAC_OS.
27030
270312008-01-08 Richard Stallman <rms@gnu.org>
27032
27033 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
27034
270352008-01-06 Nick Roberts <nickrob@snap.net.nz>
27036
27037 * keyboard.c (parse_menu_item): Don't enclose key bindings on
27038 menu bar in parentheses.
27039
270402008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
27041
27042 * m/7300.h:
27043 * m/acorn.h:
27044 * m/alliant-2800.h:
27045 * m/alliant.h:
27046 * m/alliant1.h:
27047 * m/alliant4.h:
27048 * m/altos.h:
27049 * m/amdahl.h:
27050 * m/apollo.h:
27051 * m/att3b.h:
27052 * m/aviion-intel.h:
27053 * m/aviion.h:
27054 * m/celerity.h:
27055 * m/clipper.h:
27056 * m/cnvrgnt.h:
27057 * m/convex.h:
27058 * m/cydra5.h:
27059 * m/delta88k.h:
27060 * m/dpx2.h:
27061 * m/dual.h:
27062 * m/elxsi.h:
27063 * m/f301.h:
27064 * m/gould-np1.h:
27065 * m/gould.h:
27066 * m/i860.h:
27067 * m/ibmps2-aix.h:
27068 * m/ibmrt-aix.h:
27069 * m/ibmrt.h:
27070 * m/irist.h:
27071 * m/is386.h:
27072 * m/isi-ov.h:
27073 * m/mega68.h:
27074 * m/mg1.h:
27075 * m/news-r6.h:
27076 * m/news-risc.h:
27077 * m/news.h:
27078 * m/nh3000.h:
27079 * m/nh4000.h:
27080 * m/ns16000.h:
27081 * m/ns32000.h:
27082 * m/nu.h:
27083 * m/orion.h:
27084 * m/orion105.h:
27085 * m/paragon.h:
27086 * m/pfa50.h:
27087 * m/plexus.h:
27088 * m/pyramid.h:
27089 * m/pyrmips.h:
27090 * m/sh3el.h:
27091 * m/sps7.h:
27092 * m/sr2k.h:
27093 * m/stride.h:
27094 * m/sun1.h:
27095 * m/sun2.h:
27096 * m/sun3-68881.h:
27097 * m/sun3-fpa.h:
27098 * m/sun3-soft.h:
27099 * m/sun3.h:
27100 * m/sun386.h:
27101 * m/symmetry.h:
27102 * m/tad68k.h:
27103 * m/tahoe.h:
27104 * m/targon31.h:
27105 * m/tek4300.h:
27106 * m/tekxd88.h:
27107 * m/tower32.h:
27108 * m/tower32v3.h:
27109 * m/ustation.h:
27110 * m/wicat.h:
27111 * m/xps100.h:
27112 * s/cxux.h:
27113 * s/cxux7.h:
27114 * s/dgux.h:
27115 * s/dgux4.h:
27116 * s/dgux5-4-3.h:
27117 * s/dgux5-4r2.h:
27118 * s/esix.h:
27119 * s/esix5r4.h:
27120 * s/hiuxmpp.h:
27121 * s/hiuxwe2.h:
27122 * s/iris3-5.h:
27123 * s/iris3-6.h:
27124 * s/isc2-2.h:
27125 * s/isc3-0.h:
27126 * s/isc4-0.h:
27127 * s/isc4-1.h:
27128 * s/newsos5.h:
27129 * s/newsos6.h:
27130 * s/osf1.h:
27131 * s/osf5-0.h:
27132 * s/riscix1-1.h:
27133 * s/riscix12.h:
27134 * s/sco4.h:
27135 * s/sco5.h:
27136 * s/sunos4-0.h:
27137 * s/sunos4-1.h:
27138 * s/sunos413.h:
27139 * s/sunos4shr.h:
27140 * s/umax.h:
27141 * s/unipl5-2.h:
27142 * s/xenix.h:
27143 * cxux-crt0.s:
27144 * unexapollo.c:
27145 * unexconvex.c:
27146 * unexenix.c:
27147 * unexsni.c: Remove files for systems no longer supported.
27148
27149 * m/intel386.h: Remove references to unsupported systems.
27150
27151 * w32.c (get_emacs_configuration): Remove reference to i860.
27152
27153 * sysdep.c: Remove dead code.
27154
271552008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27156
27157 * s/rtu.h:
27158 * m/masscomp.h: Remove files. Platform is obsolete.
27159
271602008-01-04 Michael Albinus <michael.albinus@gmx.de>
27161
27162 * dbusbind.c (Fdbus_method_return): New function.
27163 (xd_read_message): Add the serial number to the event.
27164 (Fdbus_register_method): Activate the function.
27165
271662008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27167
27168 * keyboard.c (read_key_sequence): Fix typo.
27169
271702008-01-03 Michael Albinus <michael.albinus@gmx.de>
27171
27172 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27173 (xd_signature, xd_append_arg): Handle element type detection for
27174 empty arrays.
27175 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27176 SDATA () calls; this must be solved more general.
27177 (Fdbus_register_signal): Use SBYTES instead of strlen.
27178
271792008-01-03 Magnus Henoch <magnus@zemdatav>
27180
27181 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27182 unsigned int for byte values (necessary for big-endian platform).
27183 (Fdbus_call_method): Handle the case of no returned arguments.
27184
271852007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27186
27187 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27188
271892007-12-31 Magnus Henoch <mange@freemail.hu>
27190
27191 * dbusbind.c (xd_signature): Signature of variant is just "v".
27192
271932007-12-30 Michael Albinus <michael.albinus@gmx.de>
27194
27195 * dbusbind.c: Fix several errors and compiler warnings.
27196 Reported by Tom Tromey <tromey@redhat.com>.
27197 (XD_ERROR, XD_DEBUG_MESSAGE)
27198 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27199 (xd_append_arg): Part for basic D-Bus types rewritten.
27200 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27201 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27202 appropriate.
27203 (xd_read_message): Return Qnil. Don't signal an error; it is not
27204 useful during event reading.
27205 (Fdbus_register_signal): Signal an error if the check for
27206 FUNCTIONP fails.
27207 (Fdbus_register_method): New function. The implementation is not
27208 complete, the call of the function signals an error therefore.
27209 (Fdbus_unregister_object): New function, renamed from
27210 Fdbus_unregister_signal. The initial check signals an error, if
27211 the object is not well formed.
27212
272132007-12-30 Richard Stallman <rms@gnu.org>
27214
27215 * textprop.c (get_char_property_and_overlay):
27216 Signal error if POSITION is out of range in a buffer.
27217
272182007-12-29 Martin Rudalics <rudalics@gmx.at>
27219
27220 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27221 because the original parameters are in pure storage now.
27222
272232007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27224
27225 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27226
272272007-12-22 Eli Zaretskii <eliz@gnu.org>
27228
27229 * callint.c (syms_of_callint) <command-history>: Add reference to
27230 history-length in the doc string.
27231
272322007-12-17 Jason Rumney <jasonr@gnu.org>
27233
27234 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27235 before passing as wParam.
27236
272372007-12-22 Michael Albinus <michael.albinus@gmx.de>
27238
27239 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27240 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27241 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27242 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27243 as number.
27244 (Fdbus_call_method): Fix docstring.
27245
272462007-12-21 Michael Albinus <michael.albinus@gmx.de>
27247
27248 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27249 New macros.
27250 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27251 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27252 Simplify.
27253 (xd_signature): New function.
27254 (xd_append_arg): Compute also signatures. Major rewrite.
27255 (xd_retrieve_arg): Make debug messages friendly.
27256 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27257 Check for signatures of arguments.
27258
272592007-12-19 Michael Albinus <michael.albinus@gmx.de>
27260
27261 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27262 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27263 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27264 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27265 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27266 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27267 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27268 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27269 (xd_retrieve_value): Remove. Functionality included in ...
27270 (xd_append_arg): New function.
27271 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27272
272732007-12-16 Michael Albinus <michael.albinus@gmx.de>
27274
27275 * dbusbind.c (top): Include <stdio.h>.
27276 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27277 dbus_message_new_method_call and dbus_message_new_signal.
27278 (Fdbus_register_signal): Rename unique_name to uname.
27279 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27280 non-existing unique name. Fix typos in matching rule. Return an
27281 object which is useful in Fdbus_unregister_signal.
27282 (Fdbus_unregister_signal): Reimplementation, in order to remove
27283 only the corresponding entry.
27284 (Vdbus_registered_functions_table): Change the order of entries.
27285 Apply these changes in xd_read_message and Fdbus_register_signal.
27286
272872007-12-16 Andreas Schwab <schwab@suse.de>
27288
27289 * fileio.c (Finsert_file_contents): Fix overflow check to not
27290 depend on undefined integer overflow.
27291
272922007-12-14 Jason Rumney <jasonr@gnu.org>
27293
27294 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27295 for characters above 127.
27296
272972007-12-13 Jason Rumney <jasonr@gnu.org>
27298
27299 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27300 before dereferencing array.
27301 (lookup_vk_code): Remove zero comparison.
27302
273032007-12-14 Michael Albinus <michael.albinus@gmx.de>
27304
27305 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27306 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27307 Use `unsigned int' instead of `uint'.
27308 (xd_read_message, Fdbus_register_signal): Split expressions into
27309 multiple lines before operators "&&" and "||", according to the
27310 GNU Coding Standards.
27311
273122007-12-14 Eli Zaretskii <eliz@gnu.org>
27313
27314 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27315
273162007-12-12 Juri Linkov <juri@jurta.org>
27317
27318 * buffer.c (Frename_buffer): In interactive spec replace
27319 `read-buffer' with `read-string' that uses `buffer-name-history'
27320 as history, and the current buffer's name as default.
27321
273222007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27323
27324 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27325 manipulating the backtrace manually.
27326 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27327 (struct backtrace, backtrace_list): Remove.
27328 (command_loop_1): Remove dead var `no_direct'.
27329
27330 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27331 preserve non-built-in buffer-local variables.
27332 (Fkill_all_local_variables): Don't re-create&re-set permanent
27333 buffer-local variables.
27334
273352007-12-09 Juri Linkov <juri@jurta.org>
27336
27337 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27338 Lisp code that uses `read-buffer' with current buffer as default.
27339
273402007-12-08 Michael Albinus <michael.albinus@gmx.de>
27341
27342 * dbusbind.c (xd_read_message): Generate an event for every
27343 registered handler. There might be several handlers registered
27344 for the same signal.
27345 (Fdbus_register_signal): Don't overwrite a registration for the
27346 same signal. Add a new registration if handlers are different.
27347 (Vdbus_registered_functions_table): Rework doc string.
27348
273492007-12-07 Michael Albinus <michael.albinus@gmx.de>
27350
27351 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27352 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27353 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27354 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27355 Unify argument lists.
27356 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27357 arguments and hash table keys. Use unique name for service.
27358 (Fdbus_unregister_signal): Remove checks.
27359 (Vdbus_registered_functions_table): Fix doc string.
27360
273612007-12-05 Magnus Henoch <mange@freemail.hu>
27362
27363 * process.c (make_process): Initialize pty_flag to 0.
27364
273652007-12-05 Jason Rumney <jasonr@gnu.org>
27366
27367 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27368 specified XBMs.
27369
273702007-12-05 Richard Stallman <rms@gnu.org>
27371
27372 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27373
273742007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27375
27376 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27377 New variable.
27378 (mac_try_close_socket) [MAC_OSX]: New function.
27379 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27380 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27381
27382 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27383 Use mac_try_close_socket.
27384
273852007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27386
27387 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27388 reloc_base.
27389 (copy_dysymtab): Compute relocation base here.
27390 (rebase_reloc_address) [__ppc64__]: New function.
27391 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27392 changed.
27393
273942007-12-05 Jason Rumney <jasonr@gnu.org>
27395
27396 * w32proc.c (sys_spawnve): Quote args with wildcards.
27397
273982007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27399
27400 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27401 __objc_* sections.
27402 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27403
274042007-12-05 Michael Albinus <michael.albinus@gmx.de>
27405
27406 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27407 Move check for Vdbus_registered_functions_table to
27408 xd_read_queued_messages.
27409 (xd_read_queued_messages): Protect xd_read_message calls by
27410 internal_condition_case_1.
27411
274122007-12-04 Michael Albinus <michael.albinus@gmx.de>
27413
27414 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27415 Qdbus_system_bus and Qdbus_session_bus, respectively.
27416 (Vdbus_intern_symbols): Remove.
27417 (Vdbus_registered_functions_table): New hash table.
27418 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27419 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27420 Rewrite in order to manage registered functions by hash table
27421 Vdbus_registered_functions_table.
27422
274232007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27424
27425 * xterm.c: Update URL to Window Manager Specification in comment.
27426
274272007-12-02 Michael Albinus <michael.albinus@gmx.de>
27428
27429 * config.in (HAVE_DBUS): Add.
27430
27431 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27432 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27433 (obj): Add $(DBUS_OBJ).
27434 (LIBES): Add $(DBUS_LIBS).
27435 (dbusbind.o): New target.
27436
27437 * dbusbind.c: New file.
27438
27439 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27440
27441 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27442 (Qdbus_event): New Lisp symbol.
27443 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27444 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 27445 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
27446
27447 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27448
274492007-12-01 Richard Stallman <rms@gnu.org>
27450
27451 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27452
274532007-11-30 Jason Rumney <jasonr@gnu.org>
27454
27455 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27456 (w32con_reset_terminal_modes): Clear screen buffer.
27457 (w32_face_attributes): Don't use color indexes that are out of range.
27458 Only reverse the default colors.
27459
27460 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27461 WINDOWSNT.
27462
27463 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27464
274652007-11-29 Jason Rumney <jasonr@gnu.org>
27466
27467 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27468 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27469 if the terminal colors are initialized.
27470 (unspecified_fg, unspecified_bg): Remove unused declarations.
27471
274722007-11-29 Andreas Schwab <schwab@suse.de>
27473
27474 * keyboard.c (apply_modifiers): Fix typo.
27475
274762007-11-29 Richard Stallman <rms@gnu.org>
27477
27478 * keymap.c (Fcurrent_local_map): Doc fix.
27479
274802007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27481
27482 * s/gnu-kfreebsd.h: New file.
27483
274842007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27485
27486 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27487 Don't cast redundantly.
27488
27489 * keyboard.c (KEY_TO_CHAR): New macro.
27490 (parse_modifiers, apply_modifiers): Accept integer arguments.
27491 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27492 for chars and symbol keys.
27493 After doing such remapping, apply function-key-map again.
27494
274952007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27496
27497 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27498 compiled anymore.
27499
275002007-11-26 Andreas Schwab <schwab@suse.de>
27501
27502 * process.c (list_processes_1): Fix indentation level of the
27503 command column.
27504
275052007-11-23 Andreas Schwab <schwab@suse.de>
27506
27507 * editfns.c (Fformat): Handle %c specially since it requires the
27508 argument to be of type int.
27509
275102007-11-23 Markus Triska <markus.triska@gmx.at>
27511
27512 * emacs.c (main): Call init_editfns before init_process, since
27513 init_process sets Vprocess_connection_type depending on OS release.
27514
275152007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27516
27517 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27518 (find_symbol_value): Use do_symval_forwarding.
27519
27520 * data.c (set_internal): Set the value in the `cons-cell' (for
27521 Buffer_Local_values) not only for frame-local variables.
27522
275232007-11-22 Andreas Schwab <schwab@suse.de>
27524
27525 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27526 values to sprintf.
27527 * keymap.c (Fsingle_key_description): Likewise.
27528 * print.c (print_object): Likewise.
27529
275302007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27531
27532 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27533 file for image is nil.
27534
275352007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27536
27537 * term.c: Include stdarg.h.
27538 (fatal): Implement using varargs.
27539 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27540
275412007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27542
27543 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27544 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27545 Update call to buffer_slot_type_mismatch.
27546 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27547 (buffer_slot_type_mismatch): Update.
27548 * buffer.c (buffer_local_types): Remove.
27549 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27550 (defvar_per_buffer): Set the type in the buffer_objfwd.
27551
275522007-11-21 Jason Rumney <jasonr@gnu.org>
27553
27554 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27555 CreateFileMapping returns NULL on failure.
27556
275572007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27558
27559 * search.c (Fset_match_data): Remove the `evaporate' feature.
27560 (unwind_set_match_data): Don't use the `evaporate' feature.
27561
275622007-11-21 Jason Rumney <jasonr@gnu.org>
27563
27564 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27565
27566 * w32console.c (w32con_write_glyphs): Remove unused variables.
27567
275682007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27569
27570 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27571
27572 * s/darwin.h (MULTI_KBOARD): Remove.
27573
27574 * macfns.c (x_create_tip_frame, Fx_create_frame)
27575 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27576
275772007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27578
27579 * buffer.c (Fbuffer_local_value): Remove redundant test.
27580 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27581 than in `current-buffer' to match the comment.
27582 Do the swap using swap_in_global_binding.
27583
27584 * data.c (store_symval_forwarding, set_internal):
27585 * eval.c (specbind): Remove dead code.
27586
27587 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27588 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27589 Since we do not want to see internal Lisp_*fwd objects here.
27590
275912007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27592
27593 * sysdep.c (init_system_name): Use getaddrinfo if available.
27594
27595 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27596 (x_scroll_bar_note_movement): start, end, with, height in struct
27597 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27598
275992007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27600
27601 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27602
276032007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27604
27605 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27606 This undoes Richard's change of 14-Oct-2002.
27607
27608 * alloc.c (allocate_other_vector):
27609 * lisp.h (allocate_other_vector): Remove.
27610
27611 * window.c (struct save_window_data): Move non-lisp data to the end
27612 and make it `int' rather than Lisp_Object.
27613 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27614 Done wrap/unwrap integer values.
27615 (Fset_window_configuration, compare_window_configurations):
27616 Update use of fields to their new types.
27617
27618 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27619 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27620 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27621 (SET_SCROLL_BAR_X_WINDOW): Remove.
27622 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27623 Access the new x_window field directly.
27624 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27625 Don't wrap/unwrap integers into Lisp_Objects.
27626 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27627 (x_scroll_bar_report_motion):
27628 Don't wrap/unwrap integers into Lisp_Objects.
27629 (x_term_init): Use SDATA.
27630 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27631 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27632 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27633 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27634 * xfns.c (x_set_background_color):
27635 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27636 Access the new x_window field directly.
27637
27638 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27639 (allocate_pseudovector): Make non-static.
27640
27641 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27642 (allocate_pseudovector): Declare.
27643 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27644
276452007-11-15 Andreas Schwab <schwab@suse.de>
27646
27647 * editfns.c (Fformat): Correctly format EMACS_INT values.
27648 Also take precision into account when formatting an integer.
27649
27650 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27651
276522007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27653
27654 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27655 (syms_of_keyboard): Defsubr it.
27656
27657 * data.c (swap_in_global_binding): Fix longstanding bug where
27658 store_symval_forwarding was not called with the right second argument,
27659 thus causing objfwd-ing from being dropped.
27660
276612007-11-14 Juanma Barranquero <lekktu@gmail.com>
27662
27663 * macfns.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_visual_class, Fx_display_save_under):
27668 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27669 (Fx_display_pixel_height, Fx_display_planes)
27670 (Fx_display_color_cells, Fx_server_max_request_size)
27671 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27672 (Fx_display_mm_height, Fx_display_mm_width)
27673 (Fx_display_backing_store, Fx_display_visual_class)
27674 (Fw32_select_font, Fx_display_save_under):
27675 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27676 (Fx_display_pixel_height, Fx_display_planes)
27677 (Fx_display_color_cells, Fx_server_max_request_size)
27678 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27679 (Fx_display_save_under): Fix typos in docstrings.
27680
276812007-11-14 Juanma Barranquero <lekktu@gmail.com>
27682
27683 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27684 corresponding to deleted entries; they are an implementation detail.
27685 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27686 Remove variables.
27687 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27688 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27689 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27690 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27691 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27692 (Fw32_define_rgb_color, Fw32_load_color_file)
27693 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27694 Fix typos in docstrings.
27695 (Fx_server_version): Reflow docstring.
27696 (Fw32_shell_execute): Doc fixes.
27697
276982007-11-13 Juanma Barranquero <lekktu@gmail.com>
27699
27700 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27701 if w32_parse_hot_key returned nil.
27702
277032007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27704
27705 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27706
277072007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 27708
aac0c6e3
MR
27709 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27710
27711 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27712
27713 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27714 Remove W32_SCROLL_BAR_CLICK_EVENT.
27715
27716 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27717 Add MULTIMEDIA_KEY_EVENT.
27718
27719 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27720 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27721 (make_lispy_event) [WINDOWSNT]: Use it to translate
27722 MULTIMEDIA_KEY_EVENT.
27723
27724 * w32term.h (WM_APPCOMMAND): Define if not already.
27725 (GET_APPCOMMAND_LPARAM): Likewise.
27726
27727 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27728 WM_APPCOMMAND.
27729
27730 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27731 (syms_of_w32fns): Export and initialize it.
27732 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27733
277342007-11-09 Chong Yidong <cyd@stupidchicken.com>
27735
27736 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27737 twice.
27738
27739 * xdisp.c (handle_face_prop): Fix last change.
27740
277412007-11-09 Richard Stallman <rms@gnu.org>
27742
27743 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27744 not just for after-strings and before-strings.
27745 Call face_for_overlay_string and pass the overlay to it.
27746 (handle_display_prop): Determine whether property came from an overlay.
27747 Pass OVERLAY arg to handle_single_display_spec.
27748 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27749 (load_overlay_strings): Fill in it->string_overlays.
27750 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27751
27752 * xfaces.c (face_for_overlay_string): Function renamed from
27753 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27754
27755 * dispextern.h (struct it): New elt string_overlays.
27756 New elt from_overlay, also in stack.
27757 Rearrange a few elements.
27758 (face_for_overlay_string): Decl renamed from
27759 face_at_buffer_position_no_overlays, and add argument.
27760
277612007-11-09 Richard Stallman <rms@gnu.org>
27762
27763 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27764 to get the base face for an overlay string.
27765
27766 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27767
27768 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27769
27770 * xdisp.c (handle_stop): Move some code out of loop.
27771
277722007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27773
27774 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27775 Fix conversion from Lisp object to ATSUFontID.
27776
277772007-11-09 Jason Rumney <jasonr@gnu.org>
27778
27779 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27780
277812007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27782
27783 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27784 Don't assume regions are aligned to page boundary.
27785 (print_load_command_name): Add LC_UUID if defined.
27786
277872007-11-09 Richard Stallman <rms@gnu.org>
27788
27789 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27790
277912007-11-07 Jason Rumney <jasonr@gnu.org>
27792
27793 * s/windows95.h: Remove.
27794
277952007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27796
27797 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27798 abort with a message on unhandled store_type values.
27799
278002007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27801
27802 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27803 Remove HAVE_X11R5 and HAVE_X11R4.
27804
278052007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27806
27807 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27808
278092007-11-01 Johan Bockgård <bojohan@gnu.org>
27810
27811 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27812 Don't set s->stippled_p here, since it has already been set by
27813 x_set_glyph_string_gc from x_draw_glyph_string.
27814
278152007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27816
27817 * sunfns.c: Remove file.
27818
27819 * m/sun386.h:
27820 * m/sun2.h:
27821 * m/sparc.h: Remove Sun windows code.
27822
278232007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27824
27825 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27826 (init_keyboard): Set current_kboard's window-system to nil.
27827 (tty_read_avail_input): Typo.
27828 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27829
278302007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27831
27832 * s/usg5-4.h:
27833 * s/usg5-3.h:
27834 * s/ptx.h:
27835 * m/is386.h:
27836 * m/ibmps2-aix.h:
27837 * Makefile.in: Remove all mentions of X10.
27838
27839 * dispnew.c (syms_of_display): Don't mention version 10.
27840
278412007-10-28 Juanma Barranquero <lekktu@gmail.com>
27842
27843 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27844 ($(BLD)/abbrev.$(O)): Remove.
27845
278462007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27847
27848 Rewrite abbrev.c in Elisp.
27849 * image.c (Qcount): Don't declare as extern.
27850 (syms_of_image): Initialize and staticpro `Qcount'.
27851 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27852 * emacs.c (main): Don't call syms_of_abbrev.
27853 * Makefile.in (obj): Remove abbrev.o.
27854 (abbrev.o): Remove.
27855 * abbrev.c: Remove.
27856
278572007-10-26 Martin Rudalics <rudalics@gmx.at>
27858
27859 * window.c (window_min_size_2): Don't count header-line.
27860
278612007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27862
27863 * frame.h (struct frame): Move all bit fields after the first bit
27864 field to take advantage of the available space. Group all the
27865 chars together to reduce wasted space due to padding.
27866
278672007-10-26 Juanma Barranquero <lekktu@gmail.com>
27868
27869 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27870
27871 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27872 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27873 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27874 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27875 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27876 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27877 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27878 (last_marked, mark_object_loop_halt): Make static.
27879
27880 * frame.c (syms_of_frame) <delete-frame-functions>:
27881 Fix typo in docstring.
27882
278832007-10-25 Juanma Barranquero <lekktu@gmail.com>
27884
27885 * w32.c (init_environment): Fix tiny memory leak.
27886 (w32_get_resource): Remove unused variable `ok'.
27887
278882007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27889
27890 Make `window-system' into a keyboard-local variable (rather than
27891 frame-local as done originally by multi-tty).
27892
27893 * keyboard.h (struct kboard): Add Vwindow_system.
27894 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27895 (mark_kboards): Mark Vwindow_system.
27896
27897 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27898 (init_display): Don't set the obsolete `window-system' frame-param.
27899
27900 * xterm.c (x_term_init):
27901 * w32term.c (w32_create_terminal):
27902 * term.c (init_tty): Set Vwindow_system.
27903 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27904 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27905
27906 * xfns.c (Fx_create_frame, x_create_tip_frame):
27907 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27908 * macfns.c (Fx_create_frame):
27909 Don't set the obsolete `window-system' frame-param.
27910
27911 * frame.h (Qwindow_system): Remove.
27912 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27913 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27914
279152007-10-24 Richard Stallman <rms@gnu.org>
27916
27917 * frame.c (x_figure_window_size): For fullscreen case,
27918 set USPosition | PPosition without clobbering rest of window_prompting.
27919
27920 * keyboard.c (Fcurrent_idle_time): Doc fix.
27921
27922 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27923
279242007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27925
27926 * process.c (unwind_request_sigio): Only define if __ultrix__.
27927
27928 * callproc.c (child_setup): Remove spurious *.
27929
27930 * lisp.h (Fget_text_property): Declare.
27931 (have_menus_p): Declare it here rather than in sys-dep header files.
27932 * macterm.h (have_menus_p):
27933 * msdos.h (have_menus_p):
27934 * xterm.h (have_menus_p): Remove.
27935
27936 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27937 (Fmake_variable_frame_local): Just check the variable's const-ness
27938 rather than checking nil or t.
27939
279402007-10-22 Jason Rumney <jasonr@gnu.org>
27941
27942 * w32fns.c: Include math.h.
27943 (w32_abort): Declaration moved to nt/config.nt.
27944
27945 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27946 (abort): Redefinition moved to nt/config.nt.
27947
27948 * m/windowsnt.h: Remove.
27949
279502007-10-22 Juanma Barranquero <lekktu@gmail.com>
27951
27952 * emacs.c (Fdump_emacs): Fix typo in message.
27953 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27954 <installation-directory>: Reflow docstring.
27955
279562007-10-22 Juri Linkov <juri@jurta.org>
27957
27958 * minibuf.c: Allow minibuffer default to be a list of default values.
27959 With empty input use the first element of this list as returned default.
27960 (string_to_object)
27961 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27962 (read_minibuf): If defalt is cons, set histstring to its car.
27963 (Fread_string): If default_value is cons, set val to its car.
27964 (Fread_buffer): If def is cons, use its car.
27965 (Fcompleting_read): If defalt is cons, set val to its car.
27966
279672007-10-21 Michael Albinus <michael.albinus@gmx.de>
27968
27969 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27970
279712007-10-20 Juanma Barranquero <lekktu@gmail.com>
27972
27973 * doc.c (Fdocumentation): Check for advice in all cases.
27974
279752007-10-19 Chong Yidong <cyd@stupidchicken.com>
27976
27977 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27978
279792007-10-19 Richard Stallman <rms@gnu.org>
27980
27981 * doc.c (Fdocumentation): Check for and handle an advised function.
27982
279832007-10-19 Juanma Barranquero <lekktu@gmail.com>
27984
27985 * process.c (Fset_process_filter): Doc fix.
27986
279872007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27988
27989 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27990 which caused key-translation-map to applied repeatedly (thus breaking
27991 double-mode).
27992
279932007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27994
27995 * xselect.c (x_own_selection, x_handle_selection_clear)
27996 (x_clear_frame_selections):
27997 * w32menu.c (list_of_panes, list_of_items):
27998 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27999 * textprop.c (validate_plist, interval_has_all_properties)
28000 (interval_has_some_properties, interval_has_some_properties_list)
28001 (add_properties, text_property_list):
28002 * process.c (Fget_buffer_process, list_processes_1, status_notify):
28003 * minibuf.c (Fassoc_string):
28004 * macselect.c (x_own_selection, x_clear_frame_selections)
28005 (Fx_disown_selection_internal):
28006 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
28007 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
28008
280092007-10-17 Chong Yidong <cyd@stupidchicken.com>
28010
28011 * process.c: Link to libs for calling res_init() if available.
28012 (Fmake_network_process): Call res_init() before getaddrinfo or
28013 gethostbyname, if possible.
28014
280152007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28016
28017 * lread.c (read1): Set pvectype for char_tables.
28018
28019 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
28020 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
28021 Add type checks.
28022 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
28023
28024 * alloc.c (free_misc): Use XMISCTYPE.
28025 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
28026
280272007-10-17 Glenn Morris <rgm@gnu.org>
28028
28029 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
28030 (syms_of_minibuf): Add Qcompletion_ignore_case.
28031 * dired.c (Qcompletion_ignore_case): Change to external.
28032 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
28033 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
28034 (Fread_file_name): Use it rather than intern'ing.
28035
28036 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
28037 (Fread_coding_system): Ignore case of user input.
28038
280392007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28040
28041 * xdisp.c (handle_display_prop): Ignore display specs after
28042 replacing one when string text is being replaced.
28043 (handle_single_display_spec): Pretend as if characters with display
28044 property haven't been consumed only when buffer text is being replaced.
28045
280462007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
28047
28048 * xfns.c (Fx_create_frame, Fx_display_list):
28049 * window.c (window_fixed_size_p, enlarge_window)
28050 (shrink_window_lowest_first):
28051 * macterm.c (init_font_name_table):
28052 * macfns.c (Fx_create_frame, Fx_display_list):
28053 * lread.c (close_load_descs):
28054 * keyboard.c (read_char_x_menu_prompt):
28055 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28056 * coding.c (code_convert_region_unwind): Test the type of an object
28057 rather than just !NILP before extracting data from it.
28058
28059 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28060
28061 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28062 (XMISCANY): New macro.
28063 (XMISCTYPE): Use it.
28064 (struct Lisp_Misc_Any): New type.
28065 (union Lisp_Misc): Use it.
28066 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28067 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28068 (find_symbol_value, set_internal, default_value, Fset_default)
28069 (Fmake_variable_buffer_local, Fmake_local_variable)
28070 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28071 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28072 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28073 * alloc.c (allocate_buffer): Set the size and tag.
28074 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28075 Use XMISCANY.
28076 (die): Follow the GNU convention for error messages.
28077 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28078 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28079 tag any more.
28080 (set_buffer_internal_1):
28081 * frame.c (store_frame_param):
28082 * eval.c (specbind):
28083 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28084
28085 * doc.c (Fsnarf_documentation): Simplify.
28086
280872007-10-14 Juanma Barranquero <lekktu@gmail.com>
28088
28089 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28090 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28091
280922007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28093
28094 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28095
280962007-10-14 Juanma Barranquero <lekktu@gmail.com>
28097
28098 * eval.c (do_autoload): Don't save autoloads.
28099
28100 * data.c (Ffset): Save autoload of the function being set.
28101
281022007-10-07 John Paul Wallington <jpw@pobox.com>
28103
28104 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28105 parameter before setting up faces.
28106
281072007-10-13 Eli Zaretskii <eliz@gnu.org>
28108
28109 * ccl.c (Fregister_code_conversion_map):
28110 * keyboard.c (append_tool_bar_item): Reformat last change.
28111
28112 * lisp.h (eabs): Rename from `abs'. All callers changed.
28113
281142007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28115
28116 * buffer.c (add_overlay_mod_hooklist):
28117 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28118 * fontset.c (make_fontset):
28119 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28120 (append_tool_bar_item):
28121 * macmenu.c (grow_menu_items):
28122 * w32menu.c (grow_menu_items):
28123 * xmenu.c (grow_menu_items): Use larger_vector.
28124
281252007-10-13 Eli Zaretskii <eliz@gnu.org>
28126
28127 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28128 selected frame'' on MSDOS).
28129
281302007-10-12 Martin Rudalics <rudalics@gmx.at>
28131
28132 * frame.c (Qexplicit_name): New variable.
28133 (x_report_frame_params): Report it in parameter alist.
28134 (syms_of_frame): Intern and staticpro it.
28135
281362007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28137
28138 * macfns.c (x_create_tip_frame): Set terminal for frame.
28139
281402007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28141
28142 * frame.c (Qenvironment): Remove.
28143 (syms_of_frame) <Qenvironment>: Don't initialize.
28144 (Fdelete_frame): Don't treat the `environment' param specially.
28145 * frame.h (Qenvironment): Don't declare.
28146 * callproc.c (set_initial_environment): Don't set unused frame param.
28147
28148 * frame.c (Fframe_with_environment): Remove.
28149 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28150
28151 * lisp.h (Fframe_with_environment): Don't declare.
28152
281532007-10-10 Juanma Barranquero <lekktu@gmail.com>
28154
28155 * indent.c (indent_tabs_mode, last_known_column)
28156 (last_known_column_modified): Make static.
28157 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28158
281592007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28160
28161 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28162
281632007-10-09 Jason Rumney <jasonr@gnu.org>
28164
28165 * w32term.c (x_set_window_size): Disable code that attempts to tell
28166 Lisp code about a size change before it actually happens.
28167
281682007-10-09 Richard Stallman <rms@gnu.org>
28169
28170 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28171 return HANDLED_RETURN.
28172
281732007-10-08 Martin Rudalics <rudalics@gmx.at>
28174
28175 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28176 when there's an unread command event.
28177
28178 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28179 window autoselection act appropriately when leaving selected frame.
28180 (syms_of_frame): Initialize focus_follows_mouse.
28181 * frame.h (focus_follows_mouse): Extern it.
28182 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28183 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28184 * msdos.c (dos_rawgetc): Likewise.
28185 * w32term.c (w32_read_socket): Likewise.
28186 * xterm.c (handle_one_xevent): Likewise.
28187 * xdisp.c (syms_of_xdisp): In doc-string of
28188 mouse-autoselect-window mention focus-follows-mouse.
28189
281902007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28191
28192 * macterm.c (mac_load_query_font): Fix missing return value.
28193 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28194 Add BLOCK_INPUT.
28195
281962007-10-08 Richard Stallman <rms@gnu.org>
28197
28198 * xdisp.c (get_window_cursor_type): Implement documented behavior
28199 for cursor-in-non-selected-windows = t.
28200
282012007-10-08 Jason Rumney <jasonr@gnu.org>
28202
28203 * w32.c (w32_get_resource): Always close registry keys.
28204
282052007-10-08 Jason Rumney <jasonr@gnu.org>
28206
28207 * makefile.w32-in (LIBS): Add COMCTL32.
28208
28209 * w32fns.c (globals_of_w32fns): Init common controls.
28210
282112007-10-08 Richard Stallman <rms@gnu.org>
28212
28213 * image.c (our_memory_buffer): Rename from omfib_buffer.
28214
282152007-10-08 Richard Stallman <rms@gnu.org>
28216
28217 * buffer.c (Foverlays_at): Doc fix.
28218
282192007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28220
28221 * fns.c (Fplist_put): Preserve uneven tail data.
28222
282232007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28224
28225 * termhooks.h (enum event_kind): Remove trailing comma.
28226
28227 * frame.h (enum): Remove trailing comma.
28228
282292007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28230
28231 * w32proc.c (delete_child): Don't terminate threads of zombies.
28232
282332007-10-08 Martin Rudalics <rudalics@gmx.at>
28234
28235 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28236
28237 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28238 last-repeatable-command.
28239 (init_kboard): Initialize Vlast_repeatable_command.
28240 (command_loop_1): Set it to real_this_command unless that was
28241 bound to an input event.
28242 (mark_kboards): Mark it.
28243
282442007-10-08 Richard Stallman <rms@gnu.org>
28245
28246 * eval.c (condition-case): Doc fix.
28247
282482007-10-08 Masatake YAMATO <jet@gyve.org>
28249
28250 * xfaces.c (tty_supports_face_attributes_p): Fix code
28251 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28252 was copied and not edited.
28253
282542007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28255
28256 Add new `input-decode-map' keymap and use it for terminal
28257 escape sequences.
28258 * keyboard.h (struct kboard): Add Vinput_decode_map.
28259 Remove Vlocal_key_translation_map.
28260 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28261 (init_kboard): Init input-decode-map.
28262 Replace local-key-translation-map back with key-translation-map.
28263 (syms_of_keyboard): Declare input-decode-map.
28264 Remove local-key-translation-map. Update docstrings.
28265 (mark_kboards): Mark Vinput_decode_map.
28266 Don't mark Vlocal_key_translation_map.
28267 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28268 Replace local-key-translation-map back with key-translation-map.
28269 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28270 Bind in input-decode-map rather than function-key-map.
28271
28272 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28273 This was made redundant by the previous introduction of XSETPVECTYPE.
28274
282752007-10-09 Richard Stallman <rms@gnu.org>
28276
28277 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28278
282792007-09-29 Richard Stallman <rms@gnu.org>
28280
28281 * eval.c (internal_condition_case_2, internal_condition_case_1)
28282 (internal_condition_case): Reenable abort if x_catching_errors ()
28283 to see if that really happens and why.
28284
282852007-10-06 Andreas Schwab <schwab@suse.de>
28286
28287 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28288
282892007-10-04 Juanma Barranquero <lekktu@gmail.com>
28290
28291 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28292
282932007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28294
28295 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28296
282972007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28298
28299 * window.h (struct window):
28300 * window.c (struct save_window_data, struct saved_window):
28301 * termhooks.h (struct terminal):
28302 * process.h (struct Lisp_Process):
28303 * frame.h (struct frame):
28304 * buffer.h (struct buffer):
28305 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28306 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28307 The size field of (pseudo)vectors is now unsigned.
28308 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28309
28310 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28311 Turn `count' into an integer.
28312
28313 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28314 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28315 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28316 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28317 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28318
28319 * alloc.c (allocate_pseudovector): New fun.
28320 (ALLOCATE_PSEUDOVECTOR): New macro.
28321 (allocate_window, allocate_terminal, allocate_frame)
28322 (allocate_process): Use it.
28323 (mark_vectorlike): New function.
28324 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28325 (mark_terminals): Use it.
28326 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28327 (Fmake_byte_code): Use XSETPVECTYPE.
28328
28329 * frame.c (Fframe_parameters): Minor simplification.
28330
28331 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28332
28333 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28334
28335 * buffer.c (Fget_buffer_create, init_buffer_once):
28336 * lread.c (defsubr):
28337 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28338
28339 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28340 defined differently in the m/*.h files.
28341 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28342 (XSETPVECTYPE): New macro.
28343 (XSETPSEUDOVECTOR): Use it.
28344
28345 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28346 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28347
28348 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28349 * lread.c (defvar_per_buffer):
28350 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28351
28352 * window.c (candidate_window_p): Only consider as visible frames that
28353 are on the same terminal.
28354
28355 * m/ibms390x.h (MARKBIT): Remove unused macro.
28356
283572007-10-01 Juanma Barranquero <lekktu@gmail.com>
28358
28359 * lread.c (Fload): Fix typo in docstring.
28360
283612007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28362
28363 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28364 of a non-zero value can't yield zero.
28365
283662007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28367
28368 * term.c (term_clear_mouse_face, term_mouse_highlight)
28369 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28370
28371 * print.c (safe_debug_print): Use XHASH.
28372
28373 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28374 Lisp elements such as tags.
28375 (XHASH): New macro.
28376 (EQ): Use it.
28377 (SREF, SSET, STRING_COPYIN): Use SDATA.
28378 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28379
28380 * alloc.c (mark_terminal): Remove left-over declaration.
28381 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28382 (allocate_vectorlike): Remove type argument. Adjust callers.
28383 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28384 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28385
28386 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28387 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28388 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28389 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28390 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28391 Use them.
28392
28393 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28394 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28395 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28396
283972007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28398
28399 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28400 loaded by default.
28401
284022007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28403
28404 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28405 on this tty.
28406 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28407
28408 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28409 Update all users.
28410 (handle_one_term_event): Use Gpm_DrawPointer.
28411 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28412 Signal errors instead of returning nil. Always return nil.
28413 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28414 Make it a noop if gpm-mouse was not activated.
28415 (syms_of_term): Update names.
28416
284172007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28418
28419 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28420 (init_sys_modes): Check that gpm_tty is the current tty.
28421
28422 * alloc.c (allocate_terminal): Set the vector size to only count the
28423 lisp fields. Initialize those to nil.
28424 (mark_object): Don't treat terminals specially.
28425 (mark_terminal): Remove.
28426 (mark_terminals): Use mark_object instead.
28427
28428 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28429 the GC to the beginning.
28430
28431 * indent.h:
28432 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28433
28434 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28435
284362007-09-25 Jason Rumney <jasonr@gnu.org>
28437
28438 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28439
28440 * w32console.c (create_w32cons_output): Remove.
28441
28442 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28443
28444 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28445 (reset_sys_modes): Use reset_terminal_modes_hook.
28446
284472007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28448
28449 * eval.c (do_autoload): Don't output any message.
28450
284512007-09-24 Juri Linkov <juri@jurta.org>
28452
28453 * emacs.c (standard_args): Change priority of "--no-splash"
28454 from 40 to 3. Add "--no-desktop" with the same priority.
28455
284562007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28457
28458 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28459 and optimize the case where they are all 1.
28460
284612007-09-23 Johannes Weiner <hannes@saeurebad.de>
28462
28463 * lisp.h (abs): Define if not defined.
28464 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28465 Don't define `abs', since it's defined in lisp.h.
28466
284672007-09-22 Eli Zaretskii <eliz@gnu.org>
28468
28469 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28470 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28471 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28472 (init_tty): Use DEV_TTY instead of "/dev/tty".
28473 [WINDOWSNT]: No need to protect from NAME arg being null.
28474
284752007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28476
28477 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28478 up the tty state.
28479
284802007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28481
28482 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28483 (gpm_tty): Change its type.
28484 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28485 (gpm_tty): Change its type and initialize it.
28486 (Fterm_open_connection): Check the frame is indeed a tty.
28487 Use the new gpm_tty.
28488 (Fterm_close_connection): Use the new gpm_tty.
28489 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28490 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28491
284922007-09-21 Juanma Barranquero <lekktu@gmail.com>
28493
28494 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28495 underline_color, to draw strike-through.
28496
284972007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28498
28499 * lisp.h (allocate_terminal): Declare.
28500
28501 * window.c (candidate_window_p): Consider frames that are being placed
28502 by the user as somewhere between visible and iconified.
28503 (window_loop): Prefer windows on the current frame.
28504 (Fselect_window): Move the use of select-frame to the beginning so we
28505 can just delegate all the work (it'll call us back anyway).
28506
28507 * frame.c (Qdisplay_environment_variable):
28508 * frame.h (Qdisplay_environment_variable): Delete.
28509
28510 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28511 of the first arg, since that value may be a union.
28512
28513 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28514 parameter rather than Qdisplay_environment_variable. If all else
28515 fails, look for DISPLAY in initial-environment.
28516
285172007-09-21 Glenn Morris <rgm@gnu.org>
28518
28519 * Makefile.in (emacstool): Remove target.
28520 (lisp, shortlisp): Remove termdev.elc.
28521
285222007-09-21 Markus Triska <markus.triska@gmx.at>
28523
28524 * xterm.c (x_delete_display): Compile session management conditionally.
28525
285262007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28527
28528 * callproc.c (getenv_internal_1): New function.
28529 (getenv_internal): Use it.
28530 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28531
28532 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28533 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28534 (Fset_terminal_parameter): Work with dead terminals as well.
28535 (Fmodify_terminal_parameters): Remove.
28536
28537 * terminal.c (get_terminal): Handle terminals.
28538 Make sure the terminal returned is live.
28539 (create_terminal): Use allocate_terminal.
28540 (mark_terminals): Move to alloc.c.
28541 (delete_terminal): Use terminal->name as liveness status.
28542 NULL out fields after freeing their contents.
28543 Don't deallocate the object.
28544 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28545 rather than an int.
28546 (Fterminal_live_p): Accept non-integer arguments.
28547 (Fterminal_list): Return terminal objects rather than an ints.
28548
28549 * alloc.c (enum mem_type): New member for `terminal' objects.
28550 (allocate_terminal): New function.
28551 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28552 Handle terminals.
28553 (mark_terminal): New fun.
28554 (mark_terminals): Move from terminal.c.
28555
28556 * term.c (get_tty_terminal): Don't treat output_initial specially.
28557 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28558 (delete_tty): Use terminal->name as liveness status.
28559
28560 * termhooks.h (struct terminal): Make it into a pseudovector.
28561 Remove `deleted' replaced by checking `name's nullness.
28562
28563 * print.c (print_object): Handle terminals.
28564
28565 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28566 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28567
28568 * frame.c (make_terminal_frame):
28569 * keyboard.c (tty_read_avail_input):
28570 * w32term.c (x_delete_terminal):
28571 * xfns.c (Fx_create_frame, x_create_tip_frame):
28572 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28573
285742007-09-20 Glenn Morris <rgm@gnu.org>
28575
28576 * process.c (Fmake_network_process): Doc fix.
28577
285782007-09-19 Jason Rumney <jasonr@gnu.org>
28579
28580 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28581
285822007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28583
28584 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28585 Fix a C warning regarding variable constness.
28586
28587 * xterm.c (handle_one_xevent): Fix a C warning.
28588
285892007-09-18 Jason Rumney <jasonr@gnu.org>
28590
28591 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28592
285932007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28594
28595 * gtkutil.c (gdpy_def): New variable.
28596 (xg_initialize): Initialize gdpy_def.
28597 (xg_display_close): If no other display exists, set gdpy_def to a
28598 new connection.
28599
286002007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28601
28602 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28603 when we have no file name for the icon.
28604 (xg_tool_bar_expose_callback): Remove.
28605 (xg_create_tool_bar): Don't connect expose signal to
28606 xg_tool_bar_expose_callback.
28607 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28608
286092007-09-16 Andreas Schwab <schwab@suse.de>
28610
28611 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28612 values instead of zapping them.
28613
286142007-09-14 Glenn Morris <rgm@gnu.org>
28615
28616 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28617 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28618 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28619 scope and rename to omfib_buffer for clarity.
28620 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28621
286222007-09-14 Kenichi Handa <handa@m17n.org>
28623
28624 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28625
286262007-09-13 Jason Rumney <jasonr@gnu.org>
28627
28628 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28629
28630 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28631
28632 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28633 (mac_term_init): Call here instead, passing rif.
28634
286352007-09-13 Glenn Morris <rgm@gnu.org>
28636
28637 * s/hpux.h: No longer define `static' as nothing.
28638
286392007-09-13 Johan Bockgård <bojohan@gnu.org>
28640
28641 * callint.c (Fcall_interactively): Remove unused var `fun'.
28642
286432007-09-12 Romain Francoise <romain@orebokech.com>
28644
28645 * window.c (prefer_window_split_horizontally, display_buffer):
28646 Revert 2007-09-08 change.
28647
286482007-09-12 Glenn Morris <rgm@gnu.org>
28649
28650 * alloca.c: Remove file.
28651 * Makefile.in (alloca): Do not undef.
28652 (allocaobj, alloca.o): Remove.
28653 (otherobj): Remove allocaobj.
28654 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28655 * regex.c (C_ALLOCA): Remove all references and code that was only
28656 used when this was defined.
28657 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28658 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28659 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28660
28661 * Makefile.in (SOURCES, unlock, relock): Delete.
28662
28663 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28664 (menu_grab_callback): All uses changed.
28665
28666 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28667 (x_reply_selection_request): All uses changed.
28668
286692007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28670
28671 * lread.c (load_warn_old_style_backquotes): Change message to look
28672 better when it appears in the middle of byte-compiler messages.
28673
286742007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28675
28676 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28677
28678 * xterm.c (x_create_terminal): Add comment.
28679
28680 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28681
286822007-09-10 Richard Stallman <rms@gnu.org>
28683
28684 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28685
286862007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28687
28688 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28689 (DEFUN): Document `intspec', use it instead of `prompt'.
28690
28691 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28692
28693 * data.c (Finteractive_form): If the interactive specification starts
28694 with a `(', use it as a Lisp form.
28695
28696 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28697 name and file modes.
28698
28699 * callint.c (Fcall_interactively): Comment fixes.
28700
287012007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28702
28703 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28704 and compiled functions.
28705
287062007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28707
28708 * window.c (prefer_window_split_horizontally): New variable.
28709 (display_buffer): Consider splitting window horizontally depending
28710 on prefer_window_split_horizontally.
28711
287122007-09-08 Eli Zaretskii <eliz@gnu.org>
28713
28714 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28715
287162007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28717
28718 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28719
28720 * frame.c (x_set_frame_parameters): Check number is positive before
28721 using XFASTINT.
28722
28723 * window.c (freeze_window_start): Don't presume selected_window holds
28724 a window object.
28725 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28726
287272007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28728
28729 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28730
287312007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28732
28733 * window.c (Vsplit_window_preferred_function): New var.
28734 (Fdisplay_buffer): Use it.
28735 (syms_of_window): Export, and initialize it.
28736
287372007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28738
28739 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28740
287412007-09-06 Glenn Morris <rgm@gnu.org>
28742
28743 * gtkutil.c (menu_grab_callback) <cnt>:
28744 * xselect.c (x_reply_selection_request) <cnt>: Move static
28745 variable to file scope.
28746
287472007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28748
28749 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28750 consistent values of selected_frame and selected_window.
28751
287522007-09-04 Jason Rumney <jasonr@gnu.org>
28753
28754 * w32console.c (initialize_w32_display): Zero unused hooks.
28755
287562007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28757
28758 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28759 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28760
287612007-09-04 Jason Rumney <jasonr@gnu.org>
28762
28763 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28764 in w32console.c. Set up input. Remove XXX comments that have been
28765 confirmed as correct.
28766
28767 * s/ms-w32.h (MULTI_KBOARD): Define.
28768
28769 * w32console.c (one_and_only_w32cons): Remove.
28770 (initialize_w32_display): Take terminal argument.
28771
28772 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28773 initialize_w32_display.
28774 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28775
28776 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28777
28778 * keyboard.c (discard_mouse_events): Discard it.
28779 (make_lispy_event): Translate it to a lisp event.
28780 (lispy_wheel_names): Add wheel-left and right events.
28781 (syms_of_keyboard): Enlarge wheel_syms.
28782
28783 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28784 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28785
28786 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28787
28788 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28789 from WM_MOUSEHWHEEL.
28790 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28791
28792 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28793 terminal.
28794
28795 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28796 keyboard for the terminal.
28797
287982007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28799
28800 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28801 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28802 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28803 and resume-tty-function to resume-tty-hook.
28804 (Fsuspend_tty, Fresume_tty): Use new names.
28805
288062007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28807
28808 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28809 if it starts with "n:".
28810
288112007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28812
28813 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28814
288152007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28816
28817 * frame.h:
28818 * frame.c (Qterm_environment_variable): Remove.
28819 (syms_of_frame): Don't init and staticpro it.
28820
28821 * callproc.c (getenv_internal): Remove special case for $TERM.
28822
28823 * callproc.c (Vinitial_environment): New variable.
28824 (set_initial_environment): Initialize it.
28825 (syms_of_callproc): Declare it.
28826 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28827 TERM under which a process runs is never related to the TERM in which
28828 Emacs is running.
28829
288302007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28831
28832 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28833 * s/darwin.h: ... do it here.
28834
288352007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28836
28837 * lisp.h (set_initial_environment): Rename from set_global_environment.
28838
28839 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28840 removed by mistake on the multi-tty branch.
28841
28842 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28843 (Fmodify_frame_parameters): Return a value.
28844
28845 * image.c (png_load): Comment-out var only used in commented-out code.
28846
28847 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28848 before passing it to mark_object.
28849
28850 * xfaces.c (internal_resolve_face_name): Return a value.
28851 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28852
28853 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28854 (x_icon): Comment-out var only used in commented-out code.
28855
288562007-08-29 Romain Francoise <romain@orebokech.com>
28857
28858 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28859 QUIT hasn't been provided.
28860
288612007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28862
28863 * callproc.c (child_setup, getenv_internal): Use the
28864 display-environment-variable and term-environment-variable frame params.
28865 (set_initial_environment): Initialise Vprocess_environment.
28866
28867 * config.in: Disable multi-keyboard support on a mac.
28868
28869 * frame.c (Qterm_environment_variable)
28870 (Qdisplay_environment_variable): New variables.
28871 (syms_of_frame): Intern and staticpro them.
28872 (Fmake_terminal_frame): Disable output method test.
28873
28874 * frame.h: Declare them here.
28875
28876 * macfns.c (x_set_mouse_color): Get rif from the frame.
28877 (x_set_tool_bar_lines): Don't use updating_frame.
28878 (mac_window): Add 2 new parameters for consistency with other systems.
28879 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28880 frame parameters following what is done in X11 and w32. Don't use
28881 FRAME_MAC_DISPLAY_INFO.
28882 (Fx_open_connection, start_hourglass): Remove window-system check.
28883 (x_create_tip_frame): Get the keyboard from the terminal.
28884
28885 * macmenu.c: Reorder includes.
28886 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28887
28888 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28889 terminal parameter.
28890 (x_clear_frame): Add a frame parameter.
28891 (note_mouse_movement): Get rif from the frame.
28892 (mac_term_init): Initialize the terminal.
28893 (mac_initialize): Make static and move terminal initialization ...
28894 (mac_create_terminal): ... to this new function.
28895
28896 * macterm.h (struct mac_display_info): Add terminal.
28897 (mac_initialize): Delete declaration.
28898
28899 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28900
28901 * sysdep.c: Comment out text after #endif.
28902
28903 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28904 is defined. Better initialize ttys in windows. Use terminal
28905 specific mouse_position_hook.
28906
28907 * termhooks.h (union display_info): Add mac_display_info.
28908
28909 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28910 Set the default minibuffer frame, window_system and the rest of the
28911 frame parameters following what is done in X11.
28912
28913 * w32term.c (w32_initialize): Make static.
28914
28915 * xselect.c (x_handle_selection_clear): Only access
28916 terminal->kboard when MULTI_KBOARD is defined.
28917
28918 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28919 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28920
289212007-08-29 Jason Rumney <jasonr@gnu.org>
28922
28923 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28924 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28925
28926 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28927 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28928
28929 * keyboard.c (restore_kboard_configuration): Only define when
28930 MULTI_KBOARD defined.
28931
28932 * makefile.w32-in: Update dependancies from Makefile.in.
28933 (OBJ1): Add terminal.$(O)
28934
28935 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28936 Don't define function body.
28937 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28938
28939 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28940
28941 * w32.c (request_sigio, unrequest_sigio): Remove.
28942
28943 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28944 (w32con_clear_frame, w32con_clear_end_of_line)
28945 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28946 (w32con_delete_glyphs, w32con_set_terminal_window)
28947 (scroll_line, w32_sys_ring_bell): Add frame arg.
28948 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28949 Add terminal arg.
28950 (PICK_FRAME): Remove.
28951 (w32con_write_glyphs): Use frame specific terminal coding.
28952 (one_and_only_w32cons): New global variable.
28953 (initialize_w32_display): Use it for storing hooks.
28954 (create_w32cons_output): New function.
28955
28956 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28957 arg a frame.
28958
28959 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28960 Set window_system.
28961 (x_set_tool_bar_lines): Don't use updating_frame.
28962 (Fx_create_frame): Set terminal and ref count.
28963 (Fx_open_connection): Remove window-system check.
28964
28965 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28966
28967 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28968 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28969 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28970 Add frame arg.
28971 (x_delete_terminal, w32_create_terminal): New functions.
28972 (w32_term_init): Create a terminal.
28973 (w32_initialize): Move terminal specific initialization to
28974 w32_create_terminal.
28975
28976 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28977 (w32_clear_rect, w32_clear_area): Use background from frame.
28978 (w32_display_info): Add terminal.
28979 (w32_sys_ring_bell, x_delete_display): Declare here.
28980
28981 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28982
28983 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28984
289852007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28986
28987 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28988 Fix get_named_tty calls for the controlling tty.
28989
289902007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
28991
194d44e7 28992 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
28993
289942007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
28995
28996 * term.c (tty_insert_glyphs): Add missing first parameter.
28997
289982007-08-29 Károly Lőrentey <karoly@lorentey.hu>
28999
29000 * buffer.c (Fbuffer_list, Fbury_buffer):
29001 Take frame->buried_buffer_list into account.
29002
29003 * cm.c (current_tty): New variable, for cmputc().
29004 (cmputc): Use it.
29005 (cmcheckmagic): Add tty parameter, look up terminal streams there.
29006 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
29007 (cmgoto): Add tty parameter. Pass it on to calccost().
29008 Use emacs_tputs() instead of tputs().
29009
29010 * cm.h (emacs_tputs): New macro to set current_tty, and then call
29011 tputs().
29012 (current_tty): New variable, for cmputc().
29013 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
29014
29015 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
29016 (internal_condition_case, internal_condition_case_1)
29017 (internal_condition_case_2): Don't abort when x_catching_errors.
29018
29019 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
29020 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
29021 prevent crashes caused by bogus longjmps in read_char.
29022
29023 * keymap.h (Fset_keymap_parent): Add EXFUN.
29024
29025 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
29026 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29027 Remove redundant definition.
29028
29029 * macfns.c (x_set_mouse_color, x_make_gc):
29030 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29031
29032 * w32term.c (x_free_frame_resources):
29033 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29034 (w32_initialize): Use the accessor macros for terminal characteristics.
29035
29036 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
29037 Use the accessor macros for terminal characteristics.
29038 * msdos.c (internal_terminal_init): Use the accessor macros for
29039 terminal characteristics.
29040 (ScreenVisualBell, internal_terminal_init):
29041 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29042
29043 * termopts.h (no_redraw_on_reenter): Declare.
29044
29045 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
29046 (mark_terminals, mark_ttys): Declare.
29047 (Fgarbage_collect): Call them.
29048 (mark_object): Mark buried_buffer_list.
29049
29050 * prefix-args.c: Include stdlib.h for exit.
29051
29052 * syssignal.h: Add comment.
29053
29054 * indent.c: Include stdio.h.
29055
29056 * window.h (Vinitial_window_system): Declare.
29057 (Vwindow_system): Delete declaration.
29058
29059 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29060
29061 * image.c (lookup_image): Don't initialize `c' until the xasserts
29062 have been run.
29063
29064 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29065 FRAME_FOREGROUND_PIXEL.
29066
29067 * print.c (print_preprocess): Don't lose print_depth levels while
29068 iterating.
29069
29070 * widget.c (update_from_various_frame_slots):
29071 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29072
29073 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29074 frames.
29075 (window_internal_height): Remove bogus make_number call.
29076 (init_window_once): Call make_terminal_frame with two zero parameters.
29077
29078 * fileio.c (Fread_file_name): Update comment.
29079
29080 * callint.c (Fcall_interactively):
29081 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29082 Make sure it is correctly unwound.
29083
29084 * xsmfns.c (x_session_close): New function.
29085
29086 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29087 Delete declarations.
29088
29089 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29090 (x_output): Remove background_pixel and foreground_pixel fields.
29091 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29092 (x_delete_device, x_session_close): Declare.
29093
29094 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29095 (read_filtered_event): Call `read_char' with a local
29096 `wrong_kboard_jmpbuf'.
29097
29098 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29099 Don't call single_kboard_state. Use FRAME_RIF.
29100
29101 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29102 systems.
29103
29104 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29105 (Fframe_with_environment, Fset_input_meta_mode)
29106 (Fset_quit_char): EXFUN.
29107 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29108 (init_sys_modes, reset_sys_modes): Update prototypes.
29109 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29110
29111 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29112 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29113 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29114 Delete declarations.
29115 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29116 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29117 New declarations.
29118
29119 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29120 already does that during init_display(). Call syms_of_keymap
29121 before syms_of_keyboard. Call `syms_of_terminal'.
29122 Call set_initial_environment, not set_process_environment.
29123 (shut_down_emacs): Call reset_all_sys_modes() instead of
29124 reset_sys_modes().
29125
29126 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29127 (internal_resolve_face_name, resolve_face_name_error): New functions.
29128 (resolve_face_name): Protect against loops and errors thrown by Fget.
29129 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29130 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29131
29132 * scroll.c: Replace CURTTY() with local variables throughout the
29133 file (where applicable).
29134 (calculate_scrolling, calculate_direct_scrolling)
29135 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29136 characteristics.
29137
29138 * keymap.c (Vfunction_key_map): Remove.
29139 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29140 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29141 (Vkey_translation_map): Remove.
29142 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29143 (Fdescribe_buffer_bindings)
29144 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29145 Update for terminal-local key-translation-map.
29146
29147 * Makefile.in (callproc.o): Update dependencies.
29148 (lisp, shortlisp): Add termdev.elc.
29149 (obj): Add terminal.o.
29150 (terminal.o): Add dependencies.
29151 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29152 (data.o, fns.o): Add termhooks.h dependency.
29153 (SOME_MACHINE_LISP): Add dnd.elc.
29154 (minibuf.o): Fix typo.
29155 Update dependencies.
29156
29157 * data.c (do_symval_forwarding, store_symval_forwarding)
29158 (find_symbol_value): Use the selected frame's keyboard, not
29159 current_kboard.
29160
29161 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29162 Vwindow_system.
29163
29164 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29165 Fmenu_bar_open.
29166 (syms_of_xmenu): Update defsubr.
29167 (mouse_position_for_popup, Fx_popup_menu)
29168 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29169 (set_frame_menubar, free_frame_menubar)
b97439ce 29170 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
29171 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29172 an X frame.
29173
29174 * xselect.c (x_own_selection): Abort if not an X frame.
29175 (some_frame_on_display): Check if it is an X frame.
29176 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29177
29178 * coding.c: Include frame.h and termhooks.h.
29179 (terminal_coding, keyboard_coding): Delete.
29180 (Fset_terminal_coding_system_internal)
29181 (Fset_keyboard_coding_system_internal)
29182 (Fkeyboard_coding_system)
29183 (Fterminal_coding_system): Add a terminal parameter.
29184 Get terminal_coding from the terminal.
29185 (init_coding_once): Don't call setup_coding_system here.
29186
29187 * dispextern.h (set_scroll_region, turn_off_insert)
29188 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29189 (tty_clear_end_of_line, tty_setup_colors)
29190 (delete_tty, updating_frame)
29191 (produce_special_glyphs, produce_glyphs, write_glyphs)
29192 (insert_glyphs): Remove.
29193 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29194 (tty_turn_off_highlight, get_tty_size): Add declaration.
29195 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29196
29197 * frame.h (enum output_method): Add output_initial.
29198 (struct x_output): Delete.
29199 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29200 Access foreground_pixel and background_pixel directly from the frame.
29201 (tty_display): Delete.
29202 (struct frame): Add buried_buffer_list, foreground_pixel,
29203 background_pixel and terminal. Delete kboard.
29204 (union output_data): Add tty.
29205 (FRAME_KBOARD): Get the kboard from the terminal.
29206 (FRAME_INITIAL_P): New macro.
29207 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29208 (Qterm_environment_variable, Qdisplay_environment_variable)
29209 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29210 New declarations.
29211
29212 * termchar.h (tty_output, tty_display_info): New structures.
29213 (tty_list): Declare.
29214 (FRAME_TTY, CURTTY): New macros.
29215 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29216 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29217 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29218 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29219
29220 * callproc.c: Include frame.h and termhooks.h, for terminal
29221 parameters.
29222 (add_env): New function.
29223 (child_setup): Use it.
29224 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29225 (getenv_internal): Fix get_terminal_param call.
29226 (Fgetenv_internal, egetenv): Update doc.
29227 (syms_of_callproc): Initialize Vprocess_environment to nil.
29228 Register and initialize them. Remove obsolete defvars. Update doc
29229 strings.
29230 (child_setup): Handle Vlocal_environment_variables.
29231 (getenv_internal): Add terminal parameter.
29232 Handle Vlocal_environment_variables.
29233 (Fgetenv_internal): Add terminal parameter.
29234 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29235 environment in a frame (not terminal) parameter. Update doc strings.
29236 (set_initial_environment): Rename from set_global_environment.
29237 Store Emacs environment in initial frame parameter.
29238
29239 * xdisp.c (redisplay_internal): Update references to
29240 `previous_terminal_frame'.
29241 (display_mode_line, Fformat_mode_line): Replace calls to
29242 `push_frame_kboard' with `push_kboard'.
29243 (get_glyph_string_clip_rects): Add extra parentheses and
29244 braces to prevent compiler warnings.
29245 (calc_pixel_width_or_height): Add xassert to check that the
29246 frame is alive. Don't call `lookup_image' on a termcap frame.
29247 (message2_nolog, message3_nolog, redisplay_internal)
29248 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29249 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29250 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29251 (Fx_display_pixel_width, Fx_display_pixel_height)
29252 (Fx_display_planes, Fx_display_color_cells)
29253 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29254 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29255 (Fx_display_backing_store, Fx_display_visual_class)
29256 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29257 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29258
29259 * xfns.c (x_set_foreground_color x_set_background_color)
29260 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29261 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29262 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29263 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29264 terminal that is being deleted.
29265 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29266 frame parameter, and make sure it overrides any user-supplied setting.
29267 (Fx_close_connection, Fx_synchronize): Unify argument names with
29268 the rest of the DEFUNs.
29269
29270 * dispnew.c (Fsend_string_to_terminal): Update call to
29271 `get_tty_terminal'.
29272 (Fredraw_frame, Fsend_string_to_terminal)
29273 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29274 FRAME_TERMCAP_P and FRAME_TTY.
29275 (window_change_signal): Don't believe width/height values that are
29276 impossibly small.
29277 (Vinitial_window_system): Rename from Vwindow_system.
29278 (termscript, Wcm, rif): Delete.
29279
29280 * termhooks.h (struct terminal): New struct containing the
29281 previously global text display hooks and new members NAME,
29282 DELETED and PARAM_ALIST.
29283 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29284 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29285 (FRAME_RIF): New macros.
29286 (get_terminal_param, get_device): New declarations.
29287 (termscript): Delete declaration.
29288
29289 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29290 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29291 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29292 FRAME_FOREGROUND_PIXEL.
29293 (x_fully_uncatch_errors): Disable definition.
29294 (x_scroll_bar_expose): Fix reference to foreground pixel.
29295 (XTread_socket): Disable loop on all X displays.
29296 (x_delete_terminal): Don't set terminal->deleted and let
29297 delete_terminal delete the frames on the terminal.
29298 (x_delete_display): Doc update to reflect changes in
29299 delete_terminal.
29300 (x_display_info) <terminal>: Move member earlier in the struct.
29301 (deleting_tty): Remove old variable.
29302 (Fsuspend_tty): Call clear_tty_hooks.
29303 (Fresume_tty, init_tty): Call set_tty_hooks.
29304 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29305 errors on X frames.
29306 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29307 (handle_one_xevent): Initialize `f' to NULL.
29308 (x_delete_terminal, x_create_terminal): New functions.
29309 (XTset_terminal_modes, XTreset_terminal_modes)
29310 (XTread_socket, x_connection_closed, x_term_init)
29311 (x_term_init, x_delete_display): Add terminal parameter.
29312 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29313 X connections.
29314
29315 * frame.c: Include termchar.h.
29316 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29317 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29318 (Qdisplay_environment_variable): New vars.
29319 (Fframep): Deal with output_initial.
29320 (Fframe-live-p): Doc fix.
29321 (Fwindow-system): New function.
29322 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29323 (make_terminal_frame): Don't create frames on a terminal that is
29324 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29325 (store_frame_param): Check for found_for_frame before calling XFRAME.
29326 (Fmake_terminal_frame): Handle NULL tty names correctly.
29327 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29328 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29329 frames to refer to a deleted frame in their 'environment parameter.
29330 (Fframe_with_environment): New function.
29331 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29332 (get_future_frame_param): New function.
29333 (Fmake_terminal_frame): Use it.
29334 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29335
29336 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29337 * sysdep.c (reset_sys_modes): Update for renames.
29338
29339 * keyboard.c (tty_read_avail_input): New function.
29340 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29341 (syms_of_keyboard): Defsubr them.
29342 (Fset_input_meta_mode, Fset_quit_char): New functions.
29343 (Fset_input_mode): Split to above functions.
29344 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29345 parameter. Use it in call to `read_char'.
29346 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29347 Set wrong_kboard_jmpbuf correctly in recursive calls.
29348 Use current_kboard to access Vkeyboard_translate_table.
29349 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29350 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29351 Update longjmp invocations. Remember the original current_kboard,
29352 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29353 changes it. Comment out unnecessary calls to
29354 `record_single_kboard_state' and `any_kboard_state'.
29355 Update recursive calls.
29356 (wrong_kboard_jmpbuf): Remove global variable.
29357 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29358 Handle deleted interrupted_kboards correctly; that is a legal
29359 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29360 and read_char calls. Abort if interrupted_kboard died in read_char.
29361 (any_kboard_state, single_kboard_state)
29362 (push_frame_kboard): Remove function.
29363 (pop_kboard): Switch out of single_kboard mode if the kboard has
29364 been deleted. Remove unused variable. Help debugging by not
29365 changing current_kboard unnecessarily. Set current_kboard to the
29366 kboard of the selected frame when the stored kboard object has
29367 been deleted before pop_kboard.
29368 (temporarily_switch_to_single_kboard): Change first parameter to a
29369 frame pointer. Throw an error when caller wants to change kboards
29370 while in single_kboard mode. Don't push_kboard if we weren't in
29371 single kboard state. Don't pop_kboard if we popped into any
29372 kboard state.
29373 (restore_kboard_configuration): Abort if pop_kboard changed the
29374 kboard in single_kboard mode. Call pop_kboard only after setting
29375 up single_kboard mode.
29376 (Frecursive_edit): Switch to single_kboard mode only in nested
29377 command loops.
29378 (cmd_error, command_loop, command_loop_1, timer_check):
29379 Comment out unnecessary call to `any_kboard_state' and
29380 `record_single_kboard_state'.
29381 (delete_kboard): Exit single_kboard mode if we have just deleted
29382 that kboard. Use FRAME_KBOARD.
29383 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29384 `fatal_error_signal'.
29385 (record_single_kboard_state): Don't push_kboard if we weren't in
29386 single kboard state. Don't pop_kboard if we popped into any
29387 kboard state.
29388 (push_frame_kboard): Rename to push_kboard.
29389 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29390 (read_avail_input): Read input from all terminals.
29391 (mark_kboards): Also mark Vkeyboard_translate_table.
29392 (kbd_buffer_store_event_hold): Simplify condition.
29393 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29394 (Vkeyboard_translate_table): Move to struct kboard.
29395 (init_kboard): Initialize Vkeyboard_translate_table.
29396 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29397 Vkeyboard_translate_table. Update doc strings. Update docs of
29398 local-function-key-map and function-key-map.
29399
29400 * terminal.c: New file.
29401
29402 * term.c: Include errno.h.
29403 (Vring_bell_function, device_list, initial_device)
29404 (next_device_id, ring_bell, update_begin, update_end)
29405 (set_terminal_window, cursor_to, raw_cursor_to)
29406 (clear_to_end, clear_frame, clear_end_of_line)
29407 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29408 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29409 (syms_of_term): Move their initialization to terminal.c.
29410 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29411 (Ftty_display_color_cells)
29412 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29413 (clear_tty_hooks, set_tty_hooks)
29414 (init_tty, maybe_fatal): New functions.
29415 (Ftty_type): Return nil if terminal is not on a tty instead of
29416 throwing an error. Doc update.
29417 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29418 Doc update. Initialize new subrs and variables.
29419 (delete_tty): Use terminal->deleted.
29420 (tty_set_terminal_modes): Rename from set_terminal_modes.
29421 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29422 (set_scroll_region): Rename to `tty_set_scroll_region'.
29423 (turn_on_insert): Rename to `tty_turn_on_insert'.
29424 (turn_off_insert): Rename to `tty_turn_off_insert'.
29425 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29426 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29427 (toggle_highligh): Rename to `tty_toggle_highlight'.
29428 (background_highlight): Rename to `tty_background_highlight'.
29429 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29430 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29431 (tty_set_scroll_region, tty_background_highlight)
29432 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29433 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29434 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29435 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29436 Add static modifier.
29437 (tty_reset_terminal_modes, tty_set_terminal_window)
29438 (tty_set_scroll_region, tty_background_highlight)
29439 (tty_highlight_if_desired, tty_cursor_to)
29440 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29441 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29442 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29443 renames.
29444
294452007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29446
29447 * keyboard.c: Qrtl is new.
29448 (parse_tool_bar_item): Handle :rtl keyword.
29449 (syms_of_keyboard): Intern :rtl keyword.
29450
29451 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29452
29453 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29454 so no Lisp code is executed.
29455 (file_for_image, find_rtl_image): New functions.
29456 (xg_get_image_for_pixmap): Use file_for_image.
29457 (update_frame_tool_bar): If direction is RTL, use RTL image if
29458 defined. Use Gtk stock images if defined.
29459
294602007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29461
29462 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29463 for nonexistent or zero-width glyph in composition glyph.
29464
294652007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29466
29467 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29468
29469 * xdisp.c (Finvisible_p): New function.
29470 (syms_of_xdisp): defsubr it.
29471
294722007-08-24 Juanma Barranquero <lekktu@gmail.com>
29473
29474 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29475 Doc fixes.
29476
294772007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29478
29479 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29480
294812007-08-24 Martin Rudalics <rudalics@gmx.at>
29482
29483 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29484 whether decoding has modified buffer contents.
29485
294862007-08-24 Jason Rumney <jasonr@gnu.org>
29487
29488 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29489 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29490 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29491 (init_svg_functions) [HAVE_NTGUI]: New function.
29492 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29493 (svg_load_image): Use them.
29494 (svg_load_image) [HAVE_NTGUI]: Implement background.
29495
294962007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29497
29498 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29499 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29500 (LIBX): Remove @RSVG_LIBS@.
29501 (LIBES): Add $(RSVG_LIBS).
29502
29503 * image.c (svg_load_image): Blend with specified background if exists.
29504 Use IMAGE_BACKGROUND. Add Mac OS Support.
29505
29506 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29507 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29508 Remove macros.
29509 [MAC_OSX] (socket_callback): Do nothing.
29510 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29511 ReceiveNextEvent.
29512 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29513 socket_callback.
29514 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29515
295162007-08-22 Glenn Morris <rgm@gnu.org>
29517
29518 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29519
295202007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29521
29522 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29523
29524 * image.c: Add support for SVG images. Some additional comments
29525 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29526 (svg_image_p): New function to test for SVG image.
29527 (svg_load): New function to load SVG image.
29528 (svg_load_image): New function, helper for svg_load.
29529 (Qsvg): New Lisp_object.
29530 (svg_keyword_index): New enum.
29531 (svg_format): New static `image_keyword' struct.
29532 (svg_type): New static `image_type' struct.
29533 (librsvg/rsvg.h): Include it.
29534
295352007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29536
29537 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29538
295392007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29540
29541 * lread.c (Qold_style_backquotes): New var.
29542 (syms_of_lread): Init and staticpro it.
29543 (load_warn_old_style_backquotes): New fun.
29544 (Fload): Use them to warn about old style backquotes.
29545 (end_of_file_error, Fload): Remove unused vars.
29546
29547 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29548
29549 * lread.c (Vold_style_backquotes): New var.
29550 (syms_of_lread): Init and export it to Elisp.
29551 (read1): Set it when we find an old-style (back)quote.
29552
295532007-08-22 Jason Rumney <jasonr@gnu.org>
29554
29555 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29556
295572007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29558
29559 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29560
295612007-08-19 Richard Stallman <rms@gnu.org>
29562
29563 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29564
295652007-08-19 Andreas Schwab <schwab@suse.de>
29566
29567 * alloc.c (pure): Round PURESIZE up.
29568
295692007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29570
29571 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29572 active frame.
29573
295742007-08-16 Richard Stallman <rms@gnu.org>
29575
29576 * eval.c (Fcommandp): Add parens to clarify.
29577
29578 * minibuf.c (Fall_completions): Use enum for type of table.
29579
29580 * emacs.c (USAGE2): Improve text.
29581
295822007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29583
29584 * term.c (tty_default_color_capabilities): Declare static
29585 variables in file scope, to avoid HPUX compiler problem.
29586
295872007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29588
29589 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29590 to gtk_toolbar_insert.
29591
295922007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29593
29594 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29595
29596 * insdel.c (reset_var_on_error): New fun.
29597 (signal_before_change, signal_after_change):
29598 Use it to reset (after|before)-change-functions to nil in case of error.
29599 Bind inhibit-modification-hooks to t.
29600 Don't bind (after|before)-change-functions to nil while they run.
29601
296022007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29603
29604 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29605 filling pixmap with stippled background.
29606
296072007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29608
29609 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29610 Don't use invisible frame as parent window for repositioning.
29611
296122007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29613
29614 * print.c (new_backquote_output): Rename from old_backquote_output.
29615 (print): Inverse its logic (according to its name) so as to match the
29616 behavior of new_backquote_flag in lread.c.
29617
296182007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29619
29620 * gmalloc.c (posix_memalign): New function.
29621
29622 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29623 ActivateControl/DeactivateControl here.
29624 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29625 frame-notice-user-settings is non-nil.
29626 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29627 for kEventParamFMFontStyle.
29628 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29629 mac_pass_command_to_system and mac_pass_control_to_system here.
29630 (XTread_socket): Call ActivateControl/DeactivateControl here.
29631 (XTread_socket) [TARGET_API_MAC_CARBON]:
29632 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29633 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29634 for window repositioning.
29635
296362007-08-08 Glenn Morris <rgm@gnu.org>
29637
29638 * Replace `iff' in doc-strings and comments.
29639
296402007-08-07 Chong Yidong <cyd@stupidchicken.com>
29641
29642 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29643
296442007-08-07 Martin Rudalics <rudalics@gmx.at>
29645
29646 * fileio.c (Finsert_file_contents): Run format-decode and
29647 after_insert_file_functions on entire buffer when REPLACE is
29648 non-nil and inhibit modification_hooks and point_motion_hooks.
29649 For consistency, run after_insert_file_functions iff something
29650 got inserted. Move signal_after_change and update_compositions
29651 after code running after_insert_file_functions. Make sure that
29652 undo_list doesn't record intermediate steps of the decoding process.
29653
296542007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29655
29656 * emacs.c (main)
29657 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29658 Call malloc_enable_thread on interactive startup.
29659
29660 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29661 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29662 [USE_PTHREAD]: Conditionalize with it.
29663 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29664 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29665 New functions.
29666
296672007-08-06 Chong Yidong <cyd@stupidchicken.com>
29668
29669 * xdisp.c (redisplay_window): When restoring original buffer
29670 position, make sure it is still valid.
29671
29672 * image.c (png_load): Ignore png-supplied background color.
29673
296742007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29675
29676 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29677 Use kCFAbsoluteTimeIntervalSince1970.
29678
29679 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29680 New variable.
29681 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29682 event loop should be quit.
29683 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29684 Quit dialog event loop if quit_dialog_event_loop is set.
29685
29686 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29687 (Selection): New typedef. Use instead of ScrapRef.
29688 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29689 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29690 (mac_clear_selection): Rename from clear_scrap.
29691 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29692 scrap_has_target_type. All uses changed.
29693 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29694 (mac_selection_has_target_p): New functions.
29695 (mac_put_selection_value): Rename from put_scrap_string.
29696 (mac_get_selection_value): Rename from get_scrap_string.
29697 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29698 (put_scrap_private_timestamp, scrap_has_target_type)
29699 (get_scrap_private_timestamp): Remove functions.
29700 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29701 (x_own_selection, x_get_local_selection):
29702 Use mac_valid_selection_value_p.
29703 (x_own_selection): Don't use put_scrap_private_timestamp.
29704 Record OWNERSHIP-INFO into Vselection_alist instead.
29705 (x_get_local_selection): Don't check type if request is local.
29706 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29707 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29708
297092007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29710
29711 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29712 add comment explaining why.
29713
297142007-08-03 Richard Stallman <rms@gnu.org>
29715
29716 * fileio.c (Fvisited_file_modtime): Use make_time.
29717
297182007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29719
29720 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29721 build.
29722
297232007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29724
29725 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29726
297272007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29728
29729 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29730
297312007-07-30 Richard Stallman <rms@gnu.org>
29732
29733 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29734
297352007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29736
29737 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29738
297392007-07-28 Nick Roberts <nickrob@snap.net.nz>
29740
29741 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29742 remote default-directory.
29743
29744 * buffer.c (mode-line-format): Update doc string.
29745
297462007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29747
29748 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29749 scroll bar gap.
29750 (x_scroll_bar_create): Set bar->fringe_extended_p.
29751 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29752 on frame edge. Check fringe background extension. Don't clear
29753 extended fringe background area.
29754
29755 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29756 (w32_fill_area): Enclose multiple statements with do ... while (0).
29757
29758 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29759 Extend fringe background to scroll bar gap.
29760 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29761 Set bar->fringe_extended_p.
29762 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29763 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29764 background extension. Don't clear extended fringe background area.
29765
29766 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29767 New member fringe_extended_p.
29768
297692007-07-25 Glenn Morris <rgm@gnu.org>
29770
29771 * Relicense all FSF files to GPLv3 or later.
29772
29773 * COPYING: Switch to GPLv3.
29774
297752007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29776
29777 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29778
29779 * data.c (Finteractive_form): Check for the presence of an
29780 `interactive-form' symbol property more thoroughly.
29781
29782 * data.c (Finteractive_form): Use an `interactive-form' property if
29783 present, analogous to the function-documentation property.
29784
297852007-07-24 Jason Rumney <jasonr@gnu.org>
29786
29787 * w32fns.c (x_real_positions): Get real position from OS instead of
29788 calculating it.
29789
297902007-07-23 Jason Rumney <jasonr@gnu.org>
29791
29792 * filelock.c (current_lock_owner): Allow for @ sign in username.
29793
297942007-07-22 Nick Roberts <nickrob@snap.net.nz>
29795
29796 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29797 remote default-directory.
29798
29799 * buffer.c (mode-line-format): Describe above case in doc string.
29800
298012007-07-20 Eli Zaretskii <eliz@gnu.org>
29802
29803 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29804 Define if not defined.
29805
298062007-07-18 Jason Rumney <jasonr@gnu.org>
29807
29808 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29809
298102007-07-18 Richard Stallman <rms@gnu.org>
29811
29812 * data.c (Fsetq_default): Doc fix.
29813
29814 * eval.c (Fsetq): Doc fix.
29815
298162007-07-18 Juanma Barranquero <lekktu@gmail.com>
29817
29818 * coding.c (Ffind_operation_coding_system):
29819 * eval.c (For, Fand): Doc fixes.
29820 Reported by Johan Bockgård.
29821
298222007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29823
29824 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29825
29826 * xterm.h: Declare x_ewmh_activate_frame.
29827
29828 * xterm.c (x_ewmh_activate_frame): New function.
29829 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29830
298312007-07-17 Martin Rudalics <rudalics@gmx.at>
29832
29833 * window.c (Fdisplay_buffer): If largest or LRU window is the
29834 only window, split it even if it is not eligible for splitting.
29835 This restores the original behavior broken by the 2007-07-15
29836 change.
29837
298382007-07-17 Glenn Morris <rgm@gnu.org>
29839
29840 * abbrev.c (abbrev_check_chars): New function.
29841 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29842 Call abbrev_check_chars to check abbrev characters are word
29843 constituents. Doc fix.
29844
298452007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29846
29847 * process.c (Fstart_process, Fmake_network_process)
29848 (read_process_output): Fix up last changes.
29849
298502007-07-16 Eli Zaretskii <eliz@gnu.org>
29851
29852 * makefile.w32-in (clean): Don't delete *~.
29853
298542007-07-16 Andreas Schwab <schwab@suse.de>
29855
29856 * window.c (Fdisplay_buffer): Use NILP.
29857 (Fset_window_scroll_bars): Likewise.
29858
298592007-07-15 Martin Rudalics <rudalics@gmx.at>
29860
29861 * window.c (window_min_size_2): New function.
29862 (window_min_size_1, size_window, Fdisplay_buffer)
29863 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29864 windows without mode- or header-lines when window-min-height is
29865 too small.
29866 (size_window): Reset nodelete_p after testing it, following an
29867 earlier note by Kim F. Storm.
29868 (display_buffer): Do not set split_height_threshold to twice the
29869 value of window_min_height to avoid changing the value of a
29870 customizable variable. Rather explicitly check whether the
29871 height of the window that shall be splitted is at least as large
29872 as split_height_threshold.
29873 (Fwindow_full_width_p): New defun.
29874 (syms_of_window): Defsubr it.
29875
29876 * window.h: Add EXFUN for Fwindow_full_width_p.
29877
298782007-07-14 Jason Rumney <jasonr@gnu.org>
29879
29880 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29881
298822007-07-14 Richard Stallman <rms@gnu.org>
29883
29884 * eval.c (maybe_call_debugger): New function.
29885 (find_handler_clause): Use maybe_call_debugger.
29886 Call it when the handler says `debug'.
29887 Eliminate DEBUGGER_VALUE_PTR.
29888 (Fsignal): Eliminate debugger_value.
29889 (Qdebug): New variable.
29890 (syms_of_eval): Initialize it.
29891
298922007-07-14 Juanma Barranquero <lekktu@gmail.com>
29893
29894 * eval.c (Fprogn):
29895 * keyboard.c (Ftrack_mouse):
29896 * print.c (Fwith_output_to_temp_buffer):
29897 * window.c (Fsave_window_excursion): Doc fix.
29898
298992007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29900
29901 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29902
299032007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29904
29905 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29906 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29907 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29908 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29909 Remove unused encoding_carryover.
29910 * process.c: Adjust all functions accordingly.
29911
299122007-07-12 Richard Stallman <rms@gnu.org>
29913
29914 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29915
299162007-07-11 Jason Rumney <jasonr@gnu.org>
29917
29918 * makefile.w32-in (LIBS): Include OLE32.
29919
29920 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29921 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29922
299232007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29924
29925 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29926 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29927 from a Lisp_Object into a bare pointer.
29928 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29929 Adjust the code correspondingly.
29930
29931 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29932
29933 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29934 (term_show_mouse_face): Remove unused var `j'.
29935 (handle_one_term_event): Remove unused vars `i' and `j'.
29936 Don't cast return value of ttyname since it's not necessary.
29937
299382007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29939
29940 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29941 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29942
29943 * fns.c (map_char_table): Use an array of int for `indices' rather than
29944 an array of Lisp_Objects (which are only ever integers anyway).
29945 (Fmap_char_table): Update caller.
29946 * lisp.h: Update prototype.
29947 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29948 * fontset.c (Ffontset_info):
29949 * casetab.c (set_case_table): Update callers.
29950
29951 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29952
29953 * keymap.c (struct accessible_keymaps_data)
29954 (struct where_is_internal_data): New structures.
29955 (accessible_keymaps_1, where_is_internal_1): Use them to change
29956 interface to adhere to the one used by map_keymap.
29957 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29958 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29959
29960 * keymap.h (map_keymap_function_t): More informative prototype.
29961
299622007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29963
29964 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29965 (looking_at_1): Don't change search_regs and last_thing_searched
29966 if `inhibit-changing-match-data' is non-nil.
29967 (string_match_1, search_buffer, set_search_regs): Likewise.
29968 (syms_of_search): Add Lisp level definition for
29969 `inhibit-changing-match-data' and set it to nil.
29970 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29971 start and end of the match, instead of using values in search_regs.
29972
299732007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29974
29975 * minibuf.c (Fcompleting_read): New value `confirm-only'
29976 for `require-match'.
29977
299782007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29979
29980 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29981 part of the 2007-06-27 change to syms_of_fileio.
29982
299832007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29984
29985 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29986 Check WINDOWP before using XWINDOW. Consolidate return statements.
29987
299882007-06-27 Richard Stallman <rms@gnu.org>
29989
29990 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29991
299922007-06-27 Juanma Barranquero <lekktu@gmail.com>
29993
29994 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29995
299962007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29997
29998 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29999 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
30000 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
30001 (_free_internal, memalign): Use them.
30002 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
30003 Initialize to PTHREAD_MUTEX_INITIALIZER.
30004 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
30005 (morecore_nolock): Rename from morecore. All uses changed.
30006 Use only nolock versions of internal allocation functions.
30007 (_malloc_internal_nolock, _realloc_internal_nolock)
30008 (_free_internal_nolock): New functions created from
30009 _malloc_internal, _realloc_internal, and _free_internal.
30010 (_malloc_internal, _realloc_internal, _free_internal): Use them.
30011 Copy hook value to automatic variable before its use.
30012 (memalign): Copy hook value to automatic variable before its use.
30013
300142007-06-26 Kenichi Handa <handa@m17n.org>
30015
30016 * coding.c (Ffind_operation_coding_system): Docstring improved.
30017 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
30018
300192007-06-25 David Kastrup <dak@gnu.org>
30020
30021 * keymap.c (Fcurrent_active_maps): Add `position' argument.
30022 (Fwhere_is_internal): Adjust call to `current-active-maps' to
30023 cater for additional parameter.
30024
30025 * keymap.h: Adjust number of parameters to `current-active-maps'.
30026
30027 * doc.c (Fsubstitute_command_keys): Adjust call of
30028 `current-active-maps'.
30029
300302007-06-25 David Kastrup <dak@gnu.org>
30031
30032 * callint.c (Fcall_interactively): Make the parsing of interactive
30033 specs somewhat more readable.
30034
300352007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30036
30037 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
30038 to scroll bar gap also when bitmap fills fringe. Draw only foreground
30039 if extended background has already been filled.
30040
300412007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30042
30043 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
30044 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
30045
30046 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
30047 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
30048 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
30049 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
30050 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
30051 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
30052 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
30053 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30054 Run timers during dialog popup.
30055 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30056
300572007-06-21 Jason Rumney <jasonr@gnu.org>
30058
30059 * image.c (convert_mono_to_color_image): Swap fore and background.
30060
300612007-06-20 Jason Rumney <jasonr@gnu.org>
30062
30063 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30064 (w32_free_bdf_font): Unmap memory not handle.
30065
300662007-06-20 Sam Steingold <sds@gnu.org>
30067
30068 * gmalloc.c (__morecore): Fix the declaration to comply with the
30069 definition.
30070
300712007-06-20 Juanma Barranquero <lekktu@gmail.com>
30072
30073 * w32term.c (w32_delete_display): Remove leftover declaration.
30074 (w32_define_cursor, w32_initialize): Make static.
30075
30076 * w32.c (_wsa_errlist): Fix typo in error message.
30077 (init_environment): Ignore any environment variable from the
30078 registry having a null value.
30079
300802007-06-20 Glenn Morris <rgm@gnu.org>
30081
30082 * Makefile.in (LIBGIF): Default to -lgif.
30083
300842007-06-17 Jason Rumney <jasonr@gnu.org>
30085
30086 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30087 unicode strings.
30088
300892007-06-16 Juanma Barranquero <lekktu@gmail.com>
30090
30091 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30092 Fix typo in docstring.
30093
300942007-06-16 Eli Zaretskii <eliz@gnu.org>
30095
30096 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30097 and their keybindings.
30098
300992007-06-15 Chong Yidong <cyd@stupidchicken.com>
30100
30101 * composite.c (update_compositions): Fix last fix.
30102
301032007-06-14 Jason Rumney <jasonr@gnu.org>
30104
30105 * w32.c (get_process_times_fn): New function pointer.
30106 (globals_of_w32): Intialize it if present in kernel32.dll.
30107 (w32_get_internal_run_time): New function.
30108
30109 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30110
301112007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30112
30113 * composite.c (update_compositions): Check the validness of
30114 compositions.
30115
301162007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30117
30118 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30119 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30120
30121 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30122 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30123
30124 * macgui.h (USE_MAC_TOOLBAR): New define.
30125
30126 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30127 Return immediately unless popup is activated.
30128
30129 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30130 background to scroll bar gap.
30131 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30132 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30133 scroll bars on frame edge. Check fringe background extension.
30134 Don't clear extended fringe background area.
30135 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30136 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30137 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30138 [USE_MAC_TOOLBAR]: New macros.
30139 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30140 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30141 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30142 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30143 [USE_MAC_TOOLBAR]: New functions.
30144 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30145 manually if previous repositioning has failed.
30146 (mac_handle_keyboard_event): Use precomputed event kind.
30147 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30148 as tool bar item click. Handle mouse movement over tool bar items.
30149
30150 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30151 toolbar_win_gravity.
30152 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30153 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30154 Add externs.
30155
30156 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30157 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30158
301592007-06-14 Chong Yidong <cyd@stupidchicken.com>
30160
30161 * image.c (search_image_cache): Remove unused variable.
30162
301632007-06-13 Chong Yidong <cyd@stupidchicken.com>
30164
30165 * xfns.c, xmenu.c: Link to xaw3d if available.
30166
301672007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30168
30169 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30170 frame_foreground and frame_background.
30171
30172 * image.c (lookup_image): Save frame foreground and background colors.
30173 (search_image_cache): Check if saved and current frame colors match.
30174
301752007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30176
30177 * regex.c (regex_compile): Remove the `regnum' counter.
30178 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30179
301802007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30181
30182 * term.c: Include intervals.h to declare Fget_text_property.
30183
301842007-06-10 Jason Rumney <jasonr@gnu.org>
30185
30186 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30187
301882007-06-08 Juanma Barranquero <lekktu@gmail.com>
30189
30190 * callint.c (Fcall_interactively):
30191 * editfns.c (Fdelete_and_extract_region):
30192 * fileio.c (Fread_file_name):
30193 * fns.c (Fmapconcat):
30194 * keyboard.c (cmd_error_internal):
30195 * keymap.c (Fkey_description):
30196 * lread.c (openp):
30197 * minibuf.c (read_minibuf):
30198 * search.c (wordify):
30199 * sunfns.c (sel_read):
30200 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30201 * xfns.c (x_default_scroll_bar_color_parameter):
30202 * xmenu.c (menu_help_callback):
30203 * xselect.c (Fx_get_atom_name):
30204 * xterm.c (x_term_init): Use empty_unibyte_string.
30205
302062007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30207
30208 * alloc.c (init_strings): Initialize canonical empty strings.
30209 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30210 canonical empty string when the requested size is 0.
30211
30212 * emacs.c (empty_unibyte_string): Rename from empty_string.
30213 (empty_multibyte_string): New canonical empty string.
30214 (syms_of_emacs): Don't initialize empty_string.
30215
30216 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30217 string, if appropriate.
30218 (empty_unibyte_string, empty_multibyte_string): New externs.
30219 (empty_string): Remove extern.
30220
30221 * lread.c (syms_of_lread): Use empty_unibyte_string.
30222
302232007-06-07 Jason Rumney <jasonr@gnu.org>
30224
30225 * s/ms-w32.h: Don't define HAVE_TZNAME.
30226
30227 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30228
302292007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30230
30231 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30232
30233 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30234 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30235
30236 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30237 Don't call next handler.
30238 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30239 Remove argument. Install handler to application.
30240 (set_frame_menubar): Don't change deep_p.
30241 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30242 FRAME_OUTER_TO_INNER_DIFF_Y.
30243 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30244 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30245 [HAVE_DIALOGS]: New macros.
30246 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30247 Use them.
30248 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30249
30250 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30251 init_service_handler. All callers changed. Return OSStatus value.
30252
30253 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30254 All callers changed so as not to call SetPortWindowPort.
30255 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30256 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30257 mac_draw_string_common.
30258 (mac_draw_image_string_qd): Likewise.
30259 (mac_draw_string_common): Use them. Add INLINE.
30260 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30261 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30262 GetGlobalMouse.
30263 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30264 and FRAME_OUTER_TO_INNER_DIFF_Y.
30265 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30266 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30267 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30268 repositioning window to mac_handle_window_event.
30269 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30270 saving window location to mac_handle_window_event
30271 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30272 (install_menu_target_item_handler): Remove argument in extern.
30273 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30274 Also accept command events.
30275 (do_keystroke): New function created from XTread_socket.
30276 (init_command_handler): Remove functions.
30277 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30278 and save window location by kEventWindowShowing and kEventWindowHiding
30279 handlers here. Don't call next handler for window state change and
30280 focus events.
30281 (mac_handle_application_event, mac_handle_keyboard_event)
30282 [TARGET_API_MAC_CARBON]: New functions.
30283 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30284 kEventWindowShowing and kEventWindowHiding events. Move installation
30285 of mouse, font, text input and menu target item handlers to
30286 install_application_handler.
30287 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30288 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30289 New function.
30290 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30291 Register it.
30292 (XTread_socket) [TARGET_API_MAC_CARBON]:
30293 Consolidate SendEventToEventTarget calls.
30294 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30295 Move application activation handler to mac_handle_application_event.
30296 Move keyboard handler to mac_handle_keyboard_event.
30297 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30298 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30299 init_command_handler. Call install_application_handler.
30300
30301 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30302 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30303
303042007-06-07 Glenn Morris <rgm@gnu.org>
30305
30306 * emacs.c (main): Use `emacs-copyright' in --version output.
30307
303082007-06-06 Chong Yidong <cyd@stupidchicken.com>
30309
30310 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30311
303122007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30313
30314 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30315
30316 * macgui.h: Replace WindowPtr with WindowRef.
30317
30318 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30319 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30320 Replace ControlHandle with ControlRef.
30321 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30322
30323 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30324 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30325 Replace ControlHandle with ControlRef.
30326 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30327 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30328
30329 * macterm.h (struct scroll_bar): Rename member control_handle_low
30330 and control_handle_high to control_ref_low and control_ref_high.
30331 All uses changed.
30332 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30333 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30334 respectively. All uses changed.
30335 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30336 (install_window_handler, remove_window_handler): Replace WindowPtr
30337 with WindowRef in externs.
30338
303392007-06-05 Juanma Barranquero <lekktu@gmail.com>
30340
30341 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30342
303432007-06-03 Nick Roberts <nickrob@snap.net.nz>
30344
30345 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30346
30347 * frame.c (Fmouse_position, Fmouse_pixel_position):
30348 Condition on HAVE_GPM too.
30349
30350 * term.c (term_mouse_highlight): Remove unused variables.
30351 (Fterm_open_connection): Set gpm_zerobased to 1.
30352 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30353 Use zero based co-ordinates.
30354 (handle_one_term_event): Report a drag as mouse movement too.
30355
30356 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30357
303582007-06-03 Chong Yidong <cyd@stupidchicken.com>
30359
30360 * image.c (search_image_cache): New function. Require background
30361 color match if background color is unspecified in the image spec.
30362 (uncache_image, lookup_image): Use it.
30363
303642007-06-01 Juanma Barranquero <lekktu@gmail.com>
30365
30366 * window.c (Fshrink_window): Reflow docstring.
30367
303682007-06-02 Chong Yidong <cyd@stupidchicken.com>
30369
30370 * Version 22.1 released.
30371
303722007-06-01 Richard Stallman <rms@gnu.org>
30373
30374 * xfns.c (x_encode_text): Add GCPRO.
30375
303762007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30377
30378 * xfns.c (x_set_name_internal): Save encoded name before
30379 x_encode_text in case string data is relocated.
30380
303812007-05-31 Richard Stallman <rms@gnu.org>
30382
30383 * buffer.c (syms_of_buffer): Doc fix.
30384
303852007-05-30 Nick Roberts <nickrob@snap.net.nz>
30386
30387 * sysdep.c (init_sys_modes): Add rather than replace with
30388 O_NONBLOCK.
30389
30390 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30391 term_mouse_moveto.
30392
30393 * termhooks.h (term_mouse_moveto): New extern.
30394
30395 * term.c (mouse_face_window): Rename...
30396 (Qmouse_face_window): ...to this.
30397 (term_show_mouse_face, term_clear_mouse_face)
30398 (term_mouse_highlight): Use Qmouse_face_window.
30399 (term_mouse_moveto): New function.
30400 (term_mouse_position): Make it work.
30401 (syms_of_term): Uncomment assignment to mouse_position_hook.
30402 Staticpro Qmouse_face_window.
30403
304042007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30405
30406 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30407 around current_column call.
30408
304092007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30410
30411 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30412 * xdisp.c (next_element_from_buffer):
30413 * window.c (delete_window):
30414 * term.c (term_mouse_highlight):
30415 * msdos.c (getdefdir):
30416 * macterm.c (mac_create_bitmap_from_bitmap_data)
30417 (init_font_name_table):
30418 * fns.c (Fsxhash):
30419 * data.c (Fmake_local_variable):
30420 * ccl.c (ccl_driver): Likewise.
30421
304222007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30423
30424 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30425 Call mac_wakeup_from_rne on window size change.
30426
304272007-05-25 Chong Yidong <cyd@stupidchicken.com>
30428
30429 * image.c (uncache_image): Fix typo.
30430
304312007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30432
30433 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30434
304352007-05-22 Richard Stallman <rms@gnu.org>
30436
30437 * xterm.c (x_connection_closed): Remove NO_RETURN.
30438
304392007-05-22 Martin Rudalics <rudalics@gmx.at>
30440
30441 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30442
304432007-05-21 Chong Yidong <cyd@stupidchicken.com>
30444
30445 * image.c (uncache_image): New function.
30446 (Fimage_refresh): New function.
30447
304482007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30449
30450 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30451
304522007-05-20 Nick Roberts <nickrob@snap.net.nz>
30453
30454 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30455 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30456
304572007-05-20 Nick Roberts <nickrob@snap.net.nz>
30458
30459 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30460 conditional on [HAVE_GPM_H].
30461
304622007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30463
30464 * syntax.c (skip_chars): Update syntax-table only after we checked that
30465 the new location is valid.
30466
304672007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30468
30469 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30470 mac_get_window_bounds.
30471
304722007-05-20 Nick Roberts <nickrob@snap.net.nz>
30473
30474 * Makefile.in (LIBGPM): Allow it to be set from configure.
30475 If set then link Emacs with it.
30476
30477 * config.in: Regenerate.
30478
30479 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30480 New externs.
30481
30482 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30483 Include gpm.h.
30484 (handle_one_term_event, term_gpm): New externs.
30485
30486 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30487 and allow it to be interrupted by SIGIO.
30488
30489 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30490 (wait_reading_process_output): Wait on gpm_fd too.
30491 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30492 (add_gpm_wait_descriptor_called_flag): New variable.
30493 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30494
30495 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30496 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30497 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30498 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30499 (make_lispy_event): Add case GPM_CLICK_EVENT.
30500 (read_avail_input): Handle mouse input.
30501
30502 * term.c (write_glyphs_with_face): New function.
30503 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30504 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30505 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30506 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30507 (last_mouse_x, last_mouse_y): New variables.
30508 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30509 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30510 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30511 (Fterm_close_connection): New functions.
30512 (term_init): Initialise mouse_face_window.
30513
305142007-05-19 Chong Yidong <cyd@stupidchicken.com>
30515
30516 * xdisp.c (redisplay_window): If first window line is a
30517 continuation line, recompute the new window start instead of
30518 recentering.
30519
305202007-05-18 Glenn Morris <rgm@gnu.org>
30521
30522 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30523 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30524
305252007-05-17 Glenn Morris <rgm@gnu.org>
30526
30527 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30528
305292007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30530
30531 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30532 dead key repeat and up events.
30533
305342007-05-14 Chong Yidong <cyd@stupidchicken.com>
30535
30536 * image.c (pbm_load): Check image size for monochrome pbm.
30537
305382007-05-13 Chong Yidong <cyd@stupidchicken.com>
30539
30540 * xterm.c (XTread_socket): Revert last change.
30541
305422007-05-12 Chong Yidong <cyd@stupidchicken.com>
30543
30544 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30545
30546 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30547
305482007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30549
30550 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30551 mixup (YAILOM).
30552
305532007-05-07 Andreas Schwab <schwab@suse.de>
30554
30555 * keymap.c (Flookup_key): Fix typo in last change.
30556
305572007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30558
30559 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30560 mapping for unibyte strings.
30561
305622007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30563
30564 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30565 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30566
305672007-04-29 Richard Stallman <rms@gnu.org>
30568
30569 * insdel.c (replace_range): For undo, record insertion first.
30570
305712007-04-29 Andreas Schwab <schwab@suse.de>
30572
30573 * lisp.h (VECSIZE): Use OFFSETOF.
30574
305752007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30576
30577 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30578 disabled lines.
30579
305802007-04-28 Richard Stallman <rms@gnu.org>
30581
30582 * lread.c (read_escape): In a string, \s is always space.
30583
305842007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30585
30586 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30587
30588 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30589 submenu for menu bar items.
30590
30591See ChangeLog.10 for earlier changes.
30592
30593;; Local Variables:
30594;; coding: utf-8
aac0c6e3
MR
30595;; End:
30596
73b0cd50 30597 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
30598
30599 This file is part of GNU Emacs.
30600
30601 GNU Emacs is free software: you can redistribute it and/or modify
30602 it under the terms of the GNU General Public License as published by
30603 the Free Software Foundation, either version 3 of the License, or
30604 (at your option) any later version.
30605
30606 GNU Emacs is distributed in the hope that it will be useful,
30607 but WITHOUT ANY WARRANTY; without even the implied warranty of
30608 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30609 GNU General Public License for more details.
30610
30611 You should have received a copy of the GNU General Public License
30612 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.