* lisp/net/rcirc.el (defun-rcirc-join): Accept multiple channels.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
5ac75e8f
GM
12011-02-10 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
4
d37f40ed
EZ
52011-02-09 Eli Zaretskii <eliz@gnu.org>
6
5ac75e8f
GM
7 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
8 New macros.
d37f40ed
EZ
9 (globals.h, gl-stamp): New targets.
10 (clean): Clean gl-stamp and globals.h.
11
33cd3ee4
AS
122011-02-09 Andreas Schwab <schwab@linux-m68k.org>
13
14 * Makefile.in (gl-stamp): Create globals.h here.
15 (globals.h): Don't do it here.
16 (mostlyclean): Clean globals.h and gl-stamp.
17
f9f2e7f5
PE
182011-02-09 Paul Eggert <eggert@cs.ucla.edu>
19
20 * Makefile.in ($(otherobj)): Depend on globals.h.
21 Otherwise 'make -j10' failed on my host, because the build lacked
22 necessary dependencies, e.g., vm-limit.o depends on globals.h.
23
00b3c7ac
TT
242011-02-08 Tom Tromey <tromey@redhat.com>
25
26 * Makefile.in (NS_OBJC_OBJ): New variable.
27 (base_obj): Rename from 'obj'.
28 (obj): New variable.
29 (globals.h, gl-stamp, $(obj)): New targets.
30 (GLOBAL_SOURCES): New variable.
31 * globals.h: Remove.
32 * nsselect.m (Vselection_alist): Define. Reverts part of
33 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
34 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
35 variable.
36 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
37
8f3b2e12
KH
382011-02-08 Kenichi Handa <handa@m17n.org>
39
40 * font.c (Ffont_get): Do not cache :otf value.
41
4f043d0f
PE
422011-02-07 Paul Eggert <eggert@cs.ucla.edu>
43
44 conform to C89 pointer rules
45
46 * dired.c (scmp, file_name_completion):
47 Change types between char * and unsigned char *, to satisfy C89
48 rules about pointer type compatibility.
47ce90e4 49 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 50 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
51 * alloc.c (make_string, make_specified_string, make_pure_string):
52 Likewise.
57ace6d0 53 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
54 * print.c (float_to_string, PRINTFINISH, printchar, strout):
55 (print_object): Likewise.
e7f8264d
PE
56 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
57 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
58 (Fformat): Likewise.
a2db9982 59 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
60 * fns.c (string_make_multibyte, string_to_multibyte):
61 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
62 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
63 Likewise.
4a25e32a 64 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
65 * process.c (read_process_output, send_process, Fprocess_send_region):
66 Likewise.
0ca76b1e 67 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
68 * doprnt.c (doprnt): Likewise.
69 * indent.c (compute_motion): Likewise.
efe0234f 70 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 71 * ralloc.c (resize_bloc): Likewise.
b19beacc 72 * image.c (tiff_load): Likewise.
c45e5276 73 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
74 * character.c (strwidth): Make its argument const char *, not const
75 unsigned char *, since more callers prefer it that way. All callers
76 changed.
4f043d0f 77
9eee99eb
PE
782011-02-06 Paul Eggert <eggert@cs.ucla.edu>
79
4c83cffc
PE
80 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
81 Emacs assumes two's complement elsewhere, but the assumption is
82 easy to remove here, and this suppresses a warning with Sun C 5.8.
83
82470039
PE
84 conform to C89 pointer rules
85
86 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
87 (same_x_server, x_term_init):
9eee99eb
PE
88 Change types between char * and unsigned char *, to satisfy C89
89 rules about pointer type compatibility.
82470039
PE
90 * doc.c (get_doc_string, Fsnarf_documentation):
91 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
92 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
93 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 94 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
95 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
96 Likewise.
01c9aa3a 97 * keymap.c (Ftext_char_description): Likewise.
637de37e 98 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
99 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
100 (DRIVE_LETTER) [defined DOS_NT]:
101 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
102 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
103 (search_embedded_absfilename, Fsubstitute_in_file_name):
104 (barf_or_query_if_file_exists, Fmake_directory_internal):
105 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
106 (Finsert_file_contents, Fwrite_region):
107 Likewise.
b68864e5
PE
108 * insdel.c (insert, insert_and_inherit, insert_before_markers):
109 (insert_before_markers_and_inherit, insert_1, insert_1_both):
110 Likewise. This changes these functions' signatures, which is
111 more convenient since most callers use char *. All remaining
112 callers changed.
113 * editfns.c (general_insert_function): Change signature to
114 match changes to insert functions' signatures.
01c9aa3a
PE
115 * keymap.c (map_keymap_char_table_item, map_keymap_internal): Use
116 explicit cast when converting between void * and function pointer
117 types, as C89 requires this.
9eee99eb 118
32299e33
PE
1192011-02-05 Paul Eggert <eggert@cs.ucla.edu>
120
121 don't ignore chdir failure
122 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
123 failure and exit.
124 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
125 remaining unchecked chdir calls in this function; some DOS/NT
126 expert needs to fix them.
127 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
128 in this function; some NextStep expert needs to fix them.
129
233ba4d9 1302011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
131
132 * xfaces.c (Finternal_set_lisp_face_attribute):
133 Try to clarify some error messages. (Bug#2659)
134
233ba4d9 1352011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
136
137 * editfns.c (save_restriction_restore): Don't forget to invalidate the
138 current_column cache (bug#7946).
139
233ba4d9 1402011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
141
142 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
143
144 * xftfont.c (xftfont_open): Likewise.
145
233ba4d9 1462011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
147
148 * window.c (Fselect_window): Add missing return value.
149
d67985d3
PE
1502011-02-05 Paul Eggert <eggert@cs.ucla.edu>
151
25a48bd0
PE
152 xstrcasecmp: conform to C89 pointer rules
153 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
154 to const char *, since they're usually low-level C strings, and
155 this stays compatible with C89 pointer rules. All callers changed.
156
dfb6afda
PE
157 * charset.c: conform to C89 pointer rules
158 (define_charset_internal): Switch between char * and unsigned char *.
159
cc618f4e
PE
160 * xmenu.c: conform to C89 const rules
161 (xmenu_show, xdialog_show): Declare local var as char *, not
162 const char *, to stay compatible with C89 const rules.
163
9bcaafce
PE
164 * xdisp.c: conform to C89 pointer rules
165 (store_mode_line_noprop, display_string, reseat_to_string):
166 (c_string_pos, number_of_chars, message_dolog):
167 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
168 (display_mode_element, display_string):
169 Switch between char * and unsigned char * to stay compatible wth
170 C89 pointer rules.
171
5b0534c8
PE
172 * regex.c: conform to C89 pointer rules
173 (re_wctype): Add cast, as C89 does not allow assigning between
174 char * and unsigned char *.
175 (regex_compile): Likewise.
176
d67985d3
PE
177 sync from gnulib to remove HAVE_STDBOOL_H
178 * config.in: Regenerate.
179
a5d733f5
EZ
1802011-02-04 Eli Zaretskii <eliz@gnu.org>
181
f90e08f5
EZ
182 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
183 Replace all uses of lisp.h with $(LISP_H), and all uses of
184 process.h with $(PROCESS_H).
185 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
186 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
187
be50df37
EZ
188 * deps.mk: Update for recent changes: gnutls support, gnulib
189 imports, addition of globals.h.
190
f90e08f5
EZ
191 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
192 ../lib/ignore-value.h.
a5d733f5 193
67342916
PE
1942011-02-03 Paul Eggert <eggert@cs.ucla.edu>
195
196 allow C code to suppress warnings about ignored return values
197
198 We need to go through the code and for each such warning, either
199 fix the code to pay attention to the returned value, or tell GCC
200 that we really do want to ignore the returned value. Here is one
201 example of how to do the latter.
202 * sysdep.c: Include <ignore-value.h>.
203 (sys_subshell): Suppress an undesirable warning about not checking
204 the returned value of 'write', as there's nothing useful one can
205 do with that returned value.
206
36941b32
JD
2072011-02-03 Jan Djärv <jan.h.d@swipnet.se>
208
209 * xterm.c (x_connection_closed): Remove all calls that calls
210 XSync (Bug#7949).
211
3082f617
EZ
2122011-02-01 Eli Zaretskii <eliz@gnu.org>
213
214 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
215 TIFFClientOpen.
216
4df0af9b
JD
2172011-02-01 Jan Djärv <jan.h.d@swipnet.se>
218
219 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
220 (x_session_check_input): Change args and return type so it can be used
221 as argument to add_read_fd. Make static. Remove call to select.
222 Call kbd_buffer_store_event for emacs_event.
223 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
224 (ice_conn_watch_CB): Call add_read_fd.
225
226 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
227 x_session_check_input.
228 (x_session_initialized): Remove definition.
229 (x_initialize): Remove setting of x_session_initialized.
230
231 * xterm.h (x_session_check_input): Remove declaration.
232
a4180391
PE
2332011-02-01 Paul Eggert <eggert@cs.ucla.edu>
234
235 format-time-string now supports subsecond time stamp resolution
236 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
237 for consistency with its new argument and with gnulib nstrftime.
238 All callers changed. New argument NS.
239 (Fformat_time_string): Check that the time argument's microseconds
240 component, if any, is in range; this avoids integer overflow and
241 also nstrftime needs this. Document %N.
242
14beddf4 2432011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
244
245 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
246 of int. All uses adjusted.
247 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
248 (svg_load_image): Remove casts.
249
14beddf4 2502011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
251
252 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
253 function definitions for compiling with libpng-1.5.
254 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
255 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
256 (Bug#7908).
257
70b0d280
EZ
2582011-01-31 Eli Zaretskii <eliz@gnu.org>
259
8b3c625b
EZ
260 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
261
70b0d280
EZ
262 * makefile.w32-in (OBJ2): Remove strftime.$(O).
263 ($(BLD)/strftime.$(O)): Remove prerequisites.
264
16fab143
PE
2652011-01-31 Paul Eggert <eggert@cs.ucla.edu>
266
267 src/emacs.c now gets version number from configure.in
268 * emacs.c (emacs_version): Set to VERSION so that it
269 is determined automatically from ../configure.in.
270
546961a9
JM
2712011-01-31 Jim Meyering <meyering@redhat.com>
272
273 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
274 Use xmalloc rather than malloc.
275
42a5b22f
PE
2762011-01-30 Paul Eggert <eggert@cs.ucla.edu>
277
16c3e636
PE
278 strftime: import from gnulib
279 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
280 * deps.mk (strftime.o): Remove.
281 * editfns.c: Include <strftime.h>, supplied by gnulib.
282 (emacs_strftimeu): Remove decl.
283 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
284 emacs_strftimeu.
285 * config.in: Regenerate.
286 * strftime.c: Remove; we now use strftime from gnulib.
287
42a5b22f
PE
288 Use SSDATA when the context wants char *.
289 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
290 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
291 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
292 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
293 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
294 Use SSDATA (not SDATA) when the context of the expression wants
295 char * (not unsigned char *).
296
2787bba3
JD
2972011-01-30 Jan Djärv <jan.h.d@swipnet.se>
298
299 * .gdbinit: Read global lisp variables as globals.f_V*.
300
4ec88040
AS
3012011-01-30 Andreas Schwab <schwab@linux-m68k.org>
302
303 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
304 All uses changed.
305 (PROP_SAVE): Likewise.
306
b6bcd048
CY
3072011-01-29 Chong Yidong <cyd@stupidchicken.com>
308
309 * keyboard.c (make_lispy_position): Fix typo in last change
310 (Bug#7935).
311
f915f0f7
EZ
3122011-01-29 Eli Zaretskii <eliz@gnu.org>
313
314 * s/ms-w32.h (HAVE_MKTIME): Remove.
315
316 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
317 (GNULIB): New variable.
318 (LIBS): Add $(GNULIB).
319 $(TEMACS): Depend on $(GNULIB).
320 <top-level>: Fix font-lock disrupted by a lone `"'.
321
497a1925
JD
3222011-01-29 Jan Djärv <jan.h.d@swipnet.se>
323
324 * nsselect.m (ns_string_from_pasteboard): Get length of string
325 and use make_string instead of build_string (Bug#7934).
326 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
327 instead of stringWithUTF8String (Bug#7934).
328
481ae085
JD
3292011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
330
331 * nsfont.m (nsfont_open): Ensure that fonts with inexact
332 descenders would not become one pixel too tall (Bug#7887).
333
6b918613
CY
3342011-01-28 Chong Yidong <cyd@stupidchicken.com>
335
336 * keyboard.c (make_lispy_position): For clicks on right fringe or
337 margin, compute text position using the X coordinate relative to
338 the left of the text area (Bug#7839).
339
9e269017
KH
3402011-01-28 Kenichi Handa <handa@m17n.org>
341
342 * ftfont.c (ftfont_spec_pattern): Check each extra property
343 value.
344
17dd1fc8
SM
3452011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
346
347 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
348
372fb76b
CY
3492011-01-27 Chong Yidong <cyd@stupidchicken.com>
350
351 * font.c (font_parse_fcname): Undefine a temporary macro.
352
e7f7fbaa
SM
3532011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
354
355 Let the debugger continue to the normal handler (bug#7825).
356 * eval.c (maybe_call_debugger): Declare before new use.
357 (find_handler_clause): Don't call debugger any more.
358 Ignore Vstack_trace_on_error.
359 Use XCAR/XCDR.
360 (syms_of_eval): Remove Vstack_trace_on_error.
361 (Fsignal): Only modify handlerlist when we know we need to do it.
362 Call the debugger when necessary.
363 * globals.h (Vstack_trace_on_error): Remove.
364
6608a7d8
CY
3652011-01-26 Chong Yidong <cyd@stupidchicken.com>
366
367 * font.c (font_parse_fcname): Rewrite GTK font name parser.
368
06d8ace5 3692011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
370
371 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
372 the buffer's point-max (bug#7876).
373
06d8ace5 3742011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
375
376 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 377 Remove unused case (Bug#6811).
19634648 378
8ab70320
JD
3792011-01-23 Jan Djärv <jan.h.d@swipnet.se>
380
381 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
382 setFrameTopLeftPoint is constrained.
383
51b59d79
PE
3842011-01-23 Paul Eggert <eggert@cs.ucla.edu>
385
9055082e
PE
386 Check return values of some library calls.
387 * emacs.c (main): Check dup result.
388 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
389 (frame_name_fnn_p): Check strtol result.
390
5c7d01a5 391 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
392 when calling XpmCreatePixmapFromData.
393
51b59d79
PE
394 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
395 * lisp.h (SSDATA): New macro.
396 All uses of (char *) SDATA (x) replaced with SSDATA (x),
397 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
398 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
399 * xsmfns.c (SSDATA): Likewise.
400
e6b84b30
MR
4012011-01-22 Martin Rudalics <rudalics@gmx.at>
402
403 * window.c (select_window): New function.
404 (Fselect_window): Call it.
405 (inhibit_point_swap): Variable deleted.
406 (Fset_window_configuration): Call select_window directly.
407
3fb69558
JD
4082011-01-22 Jan Djärv <jan.h.d@swipnet.se>
409
410 * nsterm.m (constrainFrameRect): Only constrain the first time called.
411
449ab399
JD
4122011-01-21 Jan Djärv <jan.h.d@swipnet.se>
413
e2f79c8d
JD
414 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
415 screen, not the window screen.
416 (x_set_window_size): Remove constraints.
417 Calculate origin.y only if zooming is 0 and without referring to a
418 screen.
419 (windowWillResize): Don't modify frameSize.
420 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
421 (initFrameFromEmacs): Initialize ns_userRect.
422 (windowShouldZoom): Set zooming to one. Remove all other code.
423 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
424 Zero it after restore.
425 (constrainFrameRect): New method for EmacsWindow.
426 (mouseDragged): Always post NSWindowDidResizeNotification after call to
427 windowWillResize.
428
429 * nsterm.h (ns_output): Add dont_constrain and zooming.
430 (EmacsView): Add ns_userRect.
431
449ab399
JD
432 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
433 if ns_alternate_modifier is none.
434
e885315d
JD
4352011-01-20 Jan Djärv <jan.h.d@swipnet.se>
436
437 * unexmacosx.c: Add comment about include order.
438
bb1c6663
GM
4392011-01-20 Glenn Morris <rgm@gnu.org>
440
c11136ec
GM
441 * minibuf.c (syms_of_minibuf) <read-expression-history>:
442 Give it a doc string.
443 * globals.h: Add Vread_expression_history.
444
bb1c6663
GM
445 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
446 Give it a doc string.
447 * globals.h: Add Vkbd_macro_termination_hook.
448
9aea757b
CY
4492011-01-20 Chong Yidong <cyd@stupidchicken.com>
450
451 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
452
e1ef0dac
PE
4532011-01-19 Paul Eggert <eggert@cs.ucla.edu>
454
455 Fix X11 compilation failure.
456 * globals.h (struct emacs_globals): Document f_Vselection_alist.
457 * xselect.c (Vselection_alist): Remove declaration, moving its
458 documentation to globals.h. This fixes a compilation failure
459 induced by the earlier change to globals.h today.
460
fb9d0f5a
JD
4612011-01-19 Jan Djärv <jan.h.d@swipnet.se>
462
8beb828a
JD
463 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
464
fb9d0f5a
JD
465 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
466 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
467 (ns_input_spi_name, ns_input_spi_arg)
468 (ns_alternate_modifier, ns_right_alternate_modifier)
469 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
470 (ns_right_control_modifier, ns_function_modifier)
471 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
472 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
473 (x_underline_at_descent_line): Remove declaration.
474 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
475
476 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
477 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
478 (syms_of_nsselect): Remove & from DEFVAR_LISP.
479
480 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
481 Remove declaration.
482
483 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
484 globals.h.
485 (syms_of_nsfont): Remove & from DEFVAR_LISP.
486
487 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
488 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
489 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
490
491 * globals.h (struct emacs_globals): Add f_ns_input_file,
492 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
493 f_ns_input_color, f_ns_input_text, f_ns_working_text,
494 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
495 f_ns_right_alternate_modifier, f_ns_command_modifier,
496 f_ns_right_command_modifier, f_ns_control_modifier,
497 f_ns_right_control_modifier, f_ns_function_modifier,
498 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
499 f_Vns_version_string, f_Vns_sent_selection_hooks,
500 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
501 and corresponding defines.
502
503
4e55715e
SS
5042011-01-19 Sam Steingold <sds@gnu.org>
505
506 * w32.c (check_windows_init_file): Remove declarations of
507 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 508 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 509
ef79d2fa
TT
5102011-01-19 Tom Tromey <tromey@redhat.com>
511
512 * window.c: Fix error introduced by previous patch.
513
29208e82
TT
5142011-01-18 Tom Tromey <tromey@parfait>
515
516 * globals.h: New file.
517 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
518 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
519 (Vwindow_system_version): Remove declaration.
520 * w32term.h (Vw32_enable_palette)
521 (Vx_pixel_size_width_font_regexp): Remove declaration.
522 * w32menu.c (Voverriding_local_map)
523 (Voverriding_local_map_menu_flag): Remove declaration.
524 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
525 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
526 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
527 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
528 (Vw32_phantom_key_code, Vw32_recognize_altgr)
529 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
530 (w32_use_full_screen_buffer): Remove declaration.
531 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
532 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
533 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
534 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
535 (no_redraw_on_reenter, visible_bell): Remove declaration.
536 * sysdep.c (Vsystem_name): Remove declaration.
537 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
538 * menu.h (Vmenu_updating_frame): Remove declaration.
539 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
540 Remove declaration.
541 * lisp.h (Vafter_init_time, Vafter_load_alist)
542 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
543 (Vcompletion_regexp_list, Vcurrent_load_list)
544 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
545 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
546 (Vexec_directory, Vexec_path, Vexec_suffixes)
547 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
548 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
549 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
550 (Vinstallation_directory, Vinvocation_directory)
551 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
552 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
553 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
554 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
555 (Vscalable_fonts_allowed, Vselect_active_regions)
556 (Vshell_file_name, Vstandard_input, Vstandard_output)
557 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
558 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
559 (Vuser_login_name, Vwindow_scroll_functions)
560 (Vwindow_system_version, Vx_no_window_manager)
561 (Vx_resource_class, Vx_resource_name, baud_rate)
562 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
563 (history_delete_duplicates, inhibit_x_resources)
564 (last_nonmenu_event, load_in_progress, max_specpdl_size)
565 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
566 (use_dialog_box, use_file_dialog): Remove declaration. Include
567 globals.h.
568 * keymap.h (Voverriding_local_map)
569 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
570 declaration.
571 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
572 (Vinput_method_function, Vkey_translation_map)
573 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
574 (do_mouse_tracking, extra_keyboard_modifiers)
575 (num_nonmacro_input_events): Remove declaration.
576 * intervals.h (Vchar_property_alias_alist)
577 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
578 (Vtext_property_default_nonsticky): Remove declaration.
579 * gtkutil.h (x_gtk_file_dialog_help_text)
580 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
581 (x_gtk_whole_detached_tool_bar): Remove declaration.
582 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
583 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
584 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
585 (focus_follows_mouse): Remove declaration.
586 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
587 (Vignore_relative_composition, Votf_script_alist)
588 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
589 declaration.
590 * font.h (Vfont_log): Remove declaration.
591 * dosfns.h (Vdos_display_scancodes, Vdos_version)
592 (Vdos_windows_version, dos_codepage, dos_country_code)
593 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
594 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
595 declaration.
596 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
597 declaration.
598 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
599 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
600 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
601 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
602 (inverse_video, mode_line_in_non_selected_windows)
603 (tool_bar_button_relief, tool_bar_max_label_size)
604 (underline_minimum_offset)
605 (unibyte_display_via_language_environment, x_stretch_cursor_p):
606 Remove declaration.
607 * composite.h (Vauto_composition_function)
608 (Vcomposition_function_table): Remove declaration.
609 * commands.h (Vexecuting_kbd_macro)
610 (Vminibuffer_local_completion_map)
611 (Vminibuffer_local_filename_completion_map)
612 (Vminibuffer_local_filename_must_match_map)
613 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
614 (Vminibuffer_local_ns_map, Vthis_command)
615 (Vunread_command_events, cursor_in_echo_area)
616 (last_command_event, last_nonmenu_event, unread_command_char):
617 Remove declaration.
618 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
619 (Vdefault_file_name_coding_system)
620 (Vdefault_process_coding_system, Vfile_name_coding_system)
621 (Vlast_coding_system_used, Vlocale_coding_system)
622 (Vselect_safe_coding_system_function)
623 (Vtranslation_table_for_input, coding_system_require_warning)
624 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
625 (eol_mnemonic_unix, inherit_process_coding_system): Remove
626 declaration.
627 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
628 declaration.
629 * character.h (Vauto_fill_chars, Vchar_direction_table)
630 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
631 (Vscript_representative_chars, Vtranslation_table_vector)
632 (Vunicode_category_table): Remove declaration.
633 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
634 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
635 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
636 (inhibit_modification_hooks): Remove declaration.
637 * xterm.c (syms_of_xterm): Update.
638 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
639 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
640 (x_mouse_click_focus_ignore_position)
641 (x_underline_at_descent_line)
642 (x_use_underline_position_properties): Remove.
643 * xsmfns.c (syms_of_xsmfns): Update.
644 (Vx_session_id, Vx_session_previous_id): Remove.
645 * xsettings.c (syms_of_xsettings): Update.
646 (Vxft_settings, use_system_font): Remove.
647 * xselect.c (syms_of_xselect): Update.
648 (Vselection_converter_alist, Vx_lost_selection_functions)
649 (Vx_sent_selection_functions, x_selection_timeout): Remove.
650 * xfns.c (syms_of_xfns): Update.
651 (Vgtk_version_string, Vmotif_version_string)
652 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
653 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
654 (Vx_no_window_manager, Vx_nontext_pointer_shape)
655 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
656 (Vx_sensitive_text_pointer_shape)
657 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
658 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
659 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
660 Remove.
661 * xfaces.c (syms_of_xfaces): Update.
662 (Vface_default_stipple, Vface_font_rescale_alist)
663 (Vface_ignored_fonts, Vface_new_frame_defaults)
664 (Vface_remapping_alist, Vfont_list_limit)
665 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
666 * xdisp.c (syms_of_xdisp): Update.
667 (Vauto_resize_tool_bars, Vblink_cursor_alist)
668 (Vdisplay_pixels_per_inch, Vfontification_functions)
669 (Vframe_title_format, Vglobal_mode_string)
670 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
671 (Vicon_title_format, Vinhibit_redisplay)
672 (Vline_number_display_limit, Vline_prefix)
673 (Vmax_mini_window_height, Vmenu_bar_update_hook)
674 (Vmenu_updating_frame, Vmessage_log_max)
675 (Vmouse_autoselect_window, Vnobreak_char_display)
676 (Voverlay_arrow_position, Voverlay_arrow_string)
677 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
678 (Vresize_mini_windows, Vshow_trailing_whitespace)
679 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
680 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
681 (Vwindow_scroll_functions, Vwindow_size_change_functions)
682 (Vwindow_text_change_functions, Vwrap_prefix)
683 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
684 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
685 (highlight_nonselected_windows, hscroll_margin)
686 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
687 (inhibit_menubar_update, inhibit_try_cursor_movement)
688 (inhibit_try_window_id, inhibit_try_window_reusing)
689 (line_number_display_limit_width)
690 (make_cursor_line_fully_visible_p, message_truncate_lines)
691 (mode_line_inverse_video, multiple_frames, overline_margin)
692 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
693 (tool_bar_max_label_size, underline_minimum_offset)
694 (unibyte_display_via_language_environment, x_stretch_cursor_p):
695 Remove.
696 * window.c (syms_of_window): Update.
697 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
698 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
699 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
700 (Vwindow_point_insertion_type, auto_window_vscroll_p)
701 (mode_line_in_non_selected_windows, next_screen_context_lines)
702 (window_min_height, window_min_width): Remove.
703 (scroll_margin): Remove declaration.
704 * w32term.c (syms_of_w32term): Update.
705 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
706 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
707 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
708 (w32_use_visible_system_caret, x_underline_at_descent_line)
709 (x_use_underline_position_properties): Remove.
710 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
711 Remove declaration.
712 * w32select.c (syms_of_w32select): Update.
713 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
714 * w32proc.c (syms_of_ntproc): Update.
715 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
716 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
717 (Vw32_start_process_inherit_error_mode)
718 (Vw32_start_process_share_console)
719 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
720 (Vsystem_name): Remove declaration.
721 * w32font.c (syms_of_w32font): Update.
722 (Vw32_charset_info_alist): Remove.
723 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
724 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
725 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
726 (Vw32_enable_palette, Vw32_lwindow_modifier)
727 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
728 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
729 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
730 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
731 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
732 (Vx_no_window_manager, Vx_nontext_pointer_shape)
733 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
734 (Vx_sensitive_text_pointer_shape)
735 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
736 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
737 (w32_mouse_move_interval)
738 (w32_pass_extra_mouse_buttons_to_system)
739 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
740 (w32_strict_fontnames, w32_strict_painting): Remove.
741 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
742 (Vw32_recognize_altgr, Vwindow_system_version)
743 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
744 declaration.
745 * w32console.c (syms_of_ntterm): Update.
746 (w32_use_full_screen_buffer): Remove.
747 (Vtty_defined_color_alist): Remove declaration.
748 * w16select.c (syms_of_win16select): Update.
749 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
750 * undo.c (syms_of_undo): Update.
751 (Vundo_outer_limit, Vundo_outer_limit_function)
752 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
753 Remove.
754 * textprop.c (syms_of_textprop): Update.
755 (Vchar_property_alias_alist, Vdefault_text_properties)
756 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
757 Remove.
758 * terminal.c (syms_of_terminal): Update.
759 (Vdelete_terminal_functions, Vring_bell_function): Remove.
760 * term.c (syms_of_term): Update.
761 (Vresume_tty_functions, Vsuspend_tty_functions)
762 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
763 Remove.
764 * syntax.c (syms_of_syntax): Update.
765 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
766 (open_paren_in_column_0_is_defun_start)
767 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
768 (words_include_escapes): Remove.
769 * search.c (syms_of_search): Update.
770 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
771 * process.c (syms_of_process): Update.
772 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
773 (delete_exited_processes): Remove.
774 * print.c (syms_of_print): Update.
775 (Vfloat_output_format, Vprint_charset_text_property)
776 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
777 (Vprint_length, Vprint_level, Vprint_number_table)
778 (Vstandard_output, print_escape_multibyte)
779 (print_escape_newlines, print_escape_nonascii, print_quoted):
780 Remove.
781 * msdos.c (syms_of_msdos): Update.
782 (Vdos_unsupported_char_glyph): Remove.
783 (unibyte_display_via_language_environment): Remove declaration.
784 * minibuf.c (syms_of_minibuf): Update.
785 (Vcompletion_regexp_list, Vhistory_add_new_input)
786 (Vhistory_length, Vminibuffer_completing_file_name)
787 (Vminibuffer_completion_confirm)
788 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
789 (Vminibuffer_exit_hook, Vminibuffer_help_form)
790 (Vminibuffer_history_position, Vminibuffer_history_variable)
791 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
792 (Vread_buffer_function, Vread_expression_map)
793 (completion_ignore_case, enable_recursive_minibuffers)
794 (history_delete_duplicates, minibuffer_allow_text_properties)
795 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
796 Remove.
797 * marker.c (syms_of_marker): Update.
798 (byte_debug_flag): Remove.
799 * macros.c (syms_of_macros): Update.
800 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
801 * lread.c (syms_of_lread): Update.
802 (Vafter_load_alist, Vbyte_boolean_vars)
803 (Vbytecomp_version_regexp, Vcurrent_load_list)
804 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
805 (Vload_history, Vload_path, Vload_read_function)
806 (Vload_source_file_function, Vload_suffixes, Vobarray)
807 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
808 (Vread_symbol_positions_list, Vread_with_symbol_positions)
809 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
810 (force_load_messages, load_convert_to_unibyte)
811 (load_dangerous_libraries, load_force_doc_strings)
812 (load_in_progress): Remove.
813 * keymap.c (syms_of_keymap): Update.
814 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
815 (Vminibuffer_local_completion_map)
816 (Vminibuffer_local_filename_completion_map)
817 (Vminibuffer_local_filename_must_match_map)
818 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
819 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
820 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
821 Remove.
822 * keyboard.c (syms_of_keyboard): Update.
823 (Vauto_save_timeout, Vcommand_error_function)
824 (Vcommand_hook_internal, Vdeactivate_mark)
825 (Vdeferred_action_function, Vdeferred_action_list)
826 (Vdisable_point_adjustment, Vdouble_click_time)
827 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
828 (Vfunction_key_map, Vglobal_disable_point_adjustment)
829 (Vhelp_char, Vhelp_event_list, Vhelp_form)
830 (Vinput_method_function, Vinput_method_previous_message)
831 (Vkey_translation_map, Vlast_event_frame)
832 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
833 (Vminibuffer_message_timeout, Voverriding_local_map)
834 (Voverriding_local_map_menu_flag, Vpost_command_hook)
835 (Vpre_command_hook, Vprefix_help_command)
836 (Vsaved_region_selection, Vselect_active_regions)
837 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
838 (Vthis_command, Vthis_command_keys_shift_translated)
839 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
840 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
841 (Vtty_erase_char, Vunread_command_events)
842 (Vunread_input_method_events, Vunread_post_input_method_events)
843 (auto_save_interval, cannot_suspend, do_mouse_tracking)
844 (double_click_fuzz, extra_keyboard_modifiers)
845 (inhibit_local_menu_bar_menus, last_command_event)
846 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
847 (menu_prompting, meta_prefix_char, num_input_keys)
848 (num_nonmacro_input_events, polling_period, unread_command_char):
849 Remove.
850 * insdel.c (syms_of_insdel): Update.
851 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
852 * indent.c (syms_of_indent): Update.
853 (indent_tabs_mode): Remove.
854 * image.c (syms_of_image): Update.
855 (Vimage_cache_eviction_delay, Vimage_types)
856 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
857 (cross_disabled_images): Remove.
858 * fringe.c (syms_of_fringe): Update.
859 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
860 * frame.c (syms_of_frame): Update.
861 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
862 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
863 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
864 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
865 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
866 Remove.
867 * fontset.c (syms_of_fontset): Update.
868 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
869 (Vfontset_alias_alist, Vignore_relative_composition)
870 (Votf_script_alist, Vuse_default_ascent)
871 (Vvertical_centering_font_regexp): Remove.
872 * font.c (syms_of_font): Update.
873 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
874 (Vfont_weight_table, Vfont_width_table): Remove.
875 * fns.c (syms_of_fns): Update.
876 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
877 * filelock.c (syms_of_filelock): Update.
878 (Vtemporary_file_directory): Remove.
879 * fileio.c (syms_of_fileio): Update.
880 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
881 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
882 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
883 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
884 (Vinhibit_file_name_operation, Vset_auto_coding_function)
885 (Vwrite_region_annotate_functions)
886 (Vwrite_region_annotations_so_far)
887 (Vwrite_region_post_annotation_function)
888 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
889 (Vw32_get_true_file_attributes): Remove declaration.
890 * eval.c (syms_of_eval): Update.
891 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
892 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
893 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
894 (debug_on_next_call, debug_on_quit, debugger_may_continue)
895 (max_lisp_eval_depth, max_specpdl_size): Remove.
896 * emacs.c (syms_of_emacs): Update.
897 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
898 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
899 (Vinstallation_directory, Vinvocation_directory)
900 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
901 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
902 (Vsystem_configuration, Vsystem_configuration_options)
903 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
904 (inhibit_x_resources, noninteractive1): Remove.
905 * editfns.c (syms_of_editfns): Update.
906 (Vbuffer_access_fontified_property)
907 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
908 (Voperating_system_release, Vsystem_name, Vuser_full_name)
909 (Vuser_login_name, Vuser_real_login_name): Remove.
910 * dosfns.c (syms_of_dosfns): Update.
911 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
912 (dos_codepage, dos_country_code, dos_decimal_point)
913 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
914 (dos_super_key, dos_timezone_offset): Remove.
915 * doc.c (syms_of_doc): Update.
916 (Vbuild_files, Vdoc_file_name): Remove.
917 * dispnew.c (syms_of_display): Update.
918 (Vglyph_table, Vinitial_window_system)
919 (Vredisplay_preemption_period, Vstandard_display_table)
920 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
921 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
922 * dired.c (syms_of_dired): Update.
923 (Vcompletion_ignored_extensions): Remove.
924 (Vw32_get_true_file_attributes): Remove declaration.
925 * dbusbind.c (syms_of_dbusbind): Update.
926 (Vdbus_debug, Vdbus_registered_buses)
927 (Vdbus_registered_objects_table): Remove.
928 * data.c (syms_of_data): Update.
929 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
930 * composite.c (syms_of_composite): Update.
931 (Vauto_composition_function, Vauto_composition_mode)
932 (Vcompose_chars_after_function, Vcomposition_function_table):
933 Remove.
934 * coding.c (syms_of_coding): Update.
935 (Vcharset_revision_table, Vcoding_category_list)
936 (Vcoding_system_alist, Vcoding_system_for_read)
937 (Vcoding_system_for_write, Vcoding_system_list)
938 (Vdefault_process_coding_system, Venable_character_translation)
939 (Vfile_coding_system_alist, Vlast_code_conversion_error)
940 (Vlast_coding_system_used, Vlatin_extra_code_table)
941 (Vlocale_coding_system, Vnetwork_coding_system_alist)
942 (Vprocess_coding_system_alist)
943 (Vselect_safe_coding_system_function)
944 (Vstandard_translation_table_for_decode)
945 (Vstandard_translation_table_for_encode)
946 (Vtranslation_table_for_input, coding_system_require_warning)
947 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
948 (eol_mnemonic_unix, inherit_process_coding_system)
949 (inhibit_eol_conversion, inhibit_iso_escape_detection)
950 (inhibit_null_byte_detection): Remove.
951 * cmds.c (syms_of_cmds): Update.
952 (Vpost_self_insert_hook): Remove.
953 * charset.c (syms_of_charset): Update.
954 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
955 (inhibit_load_charset_map): Remove.
956 * character.c (syms_of_character): Update.
957 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
958 (Vchar_width_table, Vprintable_chars)
959 (Vscript_representative_chars, Vtranslation_table_vector)
960 (Vunicode_category_table): Remove.
961 * ccl.c (syms_of_ccl): Update.
962 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
963 (Vtranslation_hash_table_vector): Remove.
964 * category.c (syms_of_category): Update.
965 (Vword_combining_categories, Vword_separating_categories): Remove.
966 * callproc.c (syms_of_callproc): Update.
967 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
968 (Vexec_directory, Vexec_path, Vexec_suffixes)
969 (Vinitial_environment, Vprocess_environment)
970 (Vshared_game_score_directory, Vshell_file_name): Remove.
971 * callint.c (syms_of_callint): Update.
972 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
973 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
974 * bytecode.c (syms_of_bytecode): Update.
975 (Vbyte_code_meter, byte_metering_on): Remove.
976 * buffer.c (syms_of_buffer): Update.
977 (Vafter_change_functions, Vbefore_change_functions)
978 (Vchange_major_mode_hook, Vfirst_change_hook)
979 (Vinhibit_read_only, Vkill_buffer_query_functions)
980 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
981 * alloc.c (syms_of_alloc): Update.
982 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
983 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
984 (cons_cells_consed, floats_consed, garbage_collection_messages)
985 (gc_cons_threshold, gcs_done, intervals_consed)
986 (misc_objects_consed, pure_bytes_used, string_chars_consed)
987 (strings_consed, symbols_consed, vector_cells_consed): Remove.
988
989 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
990 (DEFVAR_INT): Assume global is in `globals'.
991 * alloc.c (globals): Define.
992
448c0820
TT
9932011-01-18 Tom Tromey <tromey@redhat.com>
994
995 * image.c (Vimagemagick_render_type): Remove redundant
996 definition.
997
8442d95d
TT
9982011-01-18 Tom Tromey <tromey@redhat.com>
999
1000 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
1001 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
1002 (redisplay_window): Update.
1003 (syms_of_xdisp): Update.
1004
cab0ba98
TT
10052011-01-18 Tom Tromey <tromey@redhat.com>
1006
1007 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
1008 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
1009 Declare.
1010 * gtkutil.c (xg_uses_old_file_dialog):
1011 (xg_get_file_with_chooser):
1012 (xg_tool_bar_detach_callback): Don't redeclare globals.
1013
422745d0
TT
10142011-01-18 Tom Tromey <tromey@redhat.com>
1015
1016 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
1017 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
1018
7cae64b4
PE
10192011-01-18 Paul Eggert <eggert@cs.ucla.edu>
1020
1021 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
1022 defined __GNUC__. ../configure now checks for this GCC feature,
1023 which is now also supported by IBM and Oracle compilers.
1024 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
1025 since Solaris malloc returns mult-of-8.
1026
a9faac5c 10272011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
1028
1029 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
1030
a3e44e79 10312011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 1032
6e8e6bf2
PE
1033 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
1034 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
1035 * data.c (Fnumber_to_string): Use it.
1036 * print.c (float_to_string, print_object): Likewise.
1037
4004364e
PE
1038 Include <unistd.h> unilaterally.
1039 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
1040 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
1041 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
1042 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
1043 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
1044 * xterm.c:
1045 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1046 unistd.h is always present now, possibly supplied by gnulib.
1047
e84aba69
PE
1048 * mktime.c: Remove; moving to ../lib.
1049
1e11dbe3
PE
1050 Use gnulib's mktime module.
1051 * deps.mk (mktime.o): Remove rule.
1052
fa2c4f56
PE
1053 Use gnulib's ftoastr module.
1054 * print.c: Include ftoastr.h.
1055 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
1056 Remove; no longer needed.
1057 (float_to_string): Use dtoastr rather than rolling our own code,
1058 which had an off-by-one bug on non-IEEE hosts.
1059
9a514d4a
PE
1060 Automate syncing from gnulib.
1061 * Makefile.in (lib): New macro.
1062 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
1063 ($(lib)/libgnu.a): New rule.
1064 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1065
717c30e0
PE
1066 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1067 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1068 so change the type of 'ign' to unsigned int from int.
1069
8865d794
PE
1070 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1071
4ef36a7b
PE
1072 * xterm.h (struct x_display_info): Remove stray semicolon.
1073 The extra semicolon didn't conform to the C standard.
1074 Problem reported by Sun cc.
1075
6df4097e
PE
1076 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1077 These changes make compilation easier to follow with Sun cc.
1078 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1079 EMACS_INT values without provoking overflow diagnostics.
1080 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1081 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1082 diagnostic with signed left shift.
9fba3563 1083
410ed5c3
PE
1084 * fileio.c (make_temp_name): Remove unreachable code.
1085
97be3ce3
PE
1086 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1087 Previously it was marked by preceding it with "return;", but
1088 Sun cc complains about this.
1089
9fba3563
PE
1090 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1091 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1092 which fixed Bug#2370. Caught by Sun cc.
1093
6dc1d2d3
MR
10942011-01-15 Martin Rudalics <rudalics@gmx.at>
1095
1096 * window.c (inhibit_point_swap): New variable.
1097 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1098 point this time.
1099 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1100 of setting selected_window to nil (Bug#7728).
1101
f853f599
TH
11022011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1103
8dabbfd6
SM
1104 * image.c (imagemagick_load_image, Finit_image_library):
1105 Free intermediate image after creating a MagickWand from it.
1106 Terminate MagickWand environment after image loading.
f853f599 1107
2bc92a93
MA
11082011-01-10 Michael Albinus <michael.albinus@gmx.de>
1109
1110 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1111 unexpected return values.
1112 (Fdbus_register_method): Remove connection initialization.
1113
11142011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
1115
1116 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1117 used by Fdbus_register_service.
1118 (QCdbus_request_name_replace_existing): Likewise.
1119 (QCdbus_request_name_do_not_queue): Likewise.
1120 (QCdbus_request_name_reply_primary_owner): Likewise.
1121 (QCdbus_request_name_reply_in_queue): Likewise.
1122 (QCdbus_request_name_reply_exists): Likewise.
1123 (QCdbus_request_name_reply_already_owner): Likewise.
1124 (Fdbus_register_service): New function.
1125 (Fdbus_register_method): Use Fdbus_register_service to do the name
1126 registration.
1127 (syms_of_dbusbind): Add symbols dbus-register-service,
1128 :allow-replacement, :replace-existing, :do-not-queue,
1129 :primary-owner, :existing, :in-queue and :already-owner.
1130
21a76236
CY
11312011-01-09 Chong Yidong <cyd@stupidchicken.com>
1132
1133 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1134 when removing extra buttons.
1135
3d91e302
CY
11362011-01-08 Chong Yidong <cyd@stupidchicken.com>
1137
1138 * fns.c (Fyes_or_no_p): Doc fix.
1139
0d23ffb5
AS
11402011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1141
1142 * fns.c (Fyes_or_no_p): Add usage.
1143
9dc3366b
GM
11442011-01-08 Glenn Morris <rgm@gnu.org>
1145
d0981f82
GM
1146 * makefile.w32-in ($(EMACS)):
1147 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1148
9dc3366b
GM
1149 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1150 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1151
466cbae9
AS
11522011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1153
1154 * image.c (imagemagick_load_image): Fix some resource leaks and
1155 error handling.
1156
8c51d2a2
CY
11572011-01-07 Chong Yidong <cyd@stupidchicken.com>
1158
1159 * fns.c (Fyes_or_no_p): Accept format string args.
1160
66b7b0fe
GM
11612011-01-07 Glenn Morris <rgm@gnu.org>
1162
1163 * emacs.c (no_site_lisp): New int.
1164 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1165 (main): Set no_site_lisp.
1166 (standard_args): Add --no-site-lisp.
1167 * lisp.h (no_site_lisp): New int.
1168 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1169 directories to Vload_path.
1170
2018939f
AS
11712011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1172
1173 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1174
6ed843e5
MA
11752011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1176
8dabbfd6 1177 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
1178 dont_register_service. Updated docstring accordingly.
1179
3f9b7090
GM
11802011-01-04 Glenn Morris <rgm@gnu.org>
1181
1182 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1183
d82bce4a
EZ
11842011-01-03 Eli Zaretskii <eliz@gnu.org>
1185
1186 * image.c (png_jmpbuf): Remove definition.
1187 (my_png_error, png_load): Don't use png_jmpbuf.
1188
7c420169
CY
11892011-01-02 Eli Zaretskii <eliz@gnu.org>
1190
1191 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1192
11932011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
1194
1195 * image.c <Qlibpng_version>: New variable.
1196 (syms_of_image): Intern and staticpro it. Set its value to the
1197 version of PNG library we were compiled with.
1198 (my_png_error, png_load): Avoid GCC warnings about direct access
1199 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
1200 (png_jmpbuf): New macro.
1201 (my_png_error, png_load): Use it instead of #ifdef'ing according
1202 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 1203
7c420169 12042011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
1205
1206 * .gdbinit (xgetptr): Fix the union+lsb case.
1207 (xbacktrace): Fix the union case.
1208
7c420169 12092011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
1210
1211 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1212 different from selected-window's.
1213
7c420169 12142011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 1215
71fe378d
EZ
1216 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1217 equivalent of a menu item when the key sequence is given by the
1218 `:keys' attribute. (Bug#7662)
1219
2e4ab211
EZ
1220 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1221 the basic faces are supported.
1222
7c420169 12232011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
1224
1225 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1226
7c420169 12272011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
1228
1229 * xdisp.c (Fformat_mode_line): Fix last change.
1230
7c420169 12312011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
1232
1233 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1234 faces (Bug#7587).
1235
7c420169 12362011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
1237
1238 * fileio.c (Fexpand_file_name): One more doc fix.
1239
3afff00e
CY
12402011-01-01 Chong Yidong <cyd@stupidchicken.com>
1241
1242 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1243 image or label in the container.
1244 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1245 (xg_show_toolbar_item): Function deleted.
1246 (xg_tool_item_stale_p): New function.
1247 (update_frame_tool_bar): Calculate tool-bar style once per call.
1248 Instead of hiding text labels, omit them. Don't use
1249 xg_show_toolbar_item; create new GtkToolItems from scratch if
1250 necessary, instead of trying to re-use them. This avoids an
1251 annoying animation when changing tool-bars.
1252
aeb7e951
JD
12532010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1254
1255 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1256 title and buffer filename only for RepresentedFilename.
1257 Handle bad UTF-8 in buffer name (Bug#7517).
1258
5bbb4727
JD
12592010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1260
1261 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1262
1263 * nsfns.m (ns_set_name_iconic): Remove.
1264 (ns_set_name_internal): New function (Bug#7517).
1265 (Vicon_title_format): Extern declare.
1266 (ns_set_name): Call ns_set_name_internal.
1267 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1268 (x_implicitly_set_name): Ditto.
1269 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1270 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1271
f1aab3ff
ŠN
12722010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1273
1274 * window.c (syms_of_window): Add missing defsubr for
1275 window-use-time.
1276
365525b3
AS
12772010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1278
1279 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1280 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1281
59fc5cf9
AS
12822010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1283
2f7c71a1
AS
1284 * buffer.c: Remove unused declarations.
1285 * buffer.h: Likewise.
1286 * charset.h: Likewise.
1287 * composite.h: Likewise.
1288 * dispextern.h: Likewise.
1289 * dispnew.c: Likewise.
1290 * font.h: Likewise.
1291 * fontset.c: Likewise.
1292 * fontset.h: Likewise.
1293 * intervals.h: Likewise.
1294 * keymap.h: Likewise.
1295 * lisp.h: Likewise.
1296 * syntax.c: Likewise.
1297 * syntax.h: Likewise.
1298 * termhooks.h: Likewise.
1299 * window.h: Likewise.
1300 * xsettings.h: Likewise.
1301 * xterm.c: Likewise.
1302 * xterm.h: Likewise.
1303
1304 * chartab.c (sub_char_table_ref): Make static.
1305 * dispnew.c (line_hash_code, required_matrix_height)
1306 (required_matrix_width): Likewise.
1307 * eval.c (interactive_p, apply_lambda): Likewise.
1308 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1309 Likewise.
1310 * font.c (QCadstyle, QCregistry, font_make_spec)
1311 (font_parse_fcname, font_encode_char, font_at): Likewise.
1312 * frame.c (x_frame_get_arg): Likewise.
1313 * keymap.c (get_keyelt): Likewise.
1314 * lread.c (read_filtered_event): Likewise.
1315 * print.c (write_string_1): Likewise.
1316 * window.c (delete_window, window_height, window_width)
1317 (foreach_window): Likewise.
1318 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1319 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1320 (xembed_send_message): Likewise.
1321
1322 * eval.c (run_hook_list_with_args): Delete.
1323 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1324 * terminal.c (get_terminal_param): Likewise.
1325 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1326
c4b607ed
AS
1327 * scroll.c: Fix comment.
1328
59fc5cf9
AS
1329 * dispnew.c (add_window_display_history)
1330 (add_frame_display_history, glyph_row_slice_p)
1331 (find_glyph_row_slice, flush_stdout)
1332 (check_matrix_pointer_lossage, matrix_row)
1333 (check_matrix_invariants, check_window_matrix_pointers)
1334 (check_matrix_pointers, window_to_frame_vpos)
1335 (window_to_frame_hpos): Prototize.
1336 * textprop.c (erase_properties): Likewise.
1337
a65b85b5
SM
13382010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1339
17870c01
SM
1340 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1341 (print_preprocess): Fix handling of uninterned symbols in last change.
1342
a65b85b5
SM
1343 * print.c (print, print_preprocess, print_object): Use a hash table
1344 rather than a linear table for Vprint_number_table.
1345
f13183cf
CY
13462010-12-20 Chong Yidong <cyd@stupidchicken.com>
1347
1348 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1349
94975270
CY
13502010-12-20 Chong Yidong <cyd@stupidchicken.com>
1351
1352 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1353 (parse_tool_bar_item): Use it to obtain image separators for
1354 displays not using native tool-bar separators.
1355
1356 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1357 specially, since this is now done in parse_tool_bar_item.
1358
ef1b0ba7
SM
13592010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1360
1361 Minor clean up to silence some gcc warnings.
1362 * window.c (Fset_window_buffer):
1363 * xterm.c (x_set_frame_alpha): Restructure code to silence
1364 compiler warning.
1365 (handle_one_xevent): Remove unused var `p'.
1366 (do_ewmh_fullscreen): Remove unused var `lval'.
1367 (xembed_set_info): Remove unused var `atom'.
1368 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1369 compiler warning.
1370 * fontset.c (fontset_id_valid_p, dump_fontset):
1371 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1372 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1373 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1374 label only when it's used.
1375 * image.c (x_create_bitmap_from_xpm_data):
1376 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1377 its callers.
1378 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1379 `consumed_chars'.
1380 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1381 (decode_coding_emacs_mule): Remove unused label `retry'.
1382 (detect_eol): Add parens to silence compiler warning.
1383 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1384 it's used to silence the compiler.
1385 (make_number): Modernize k&r declaration.
1386 (mark_char_table): Add parens to silence compiler warning.
1387
4039c786
CY
13882010-12-17 Chong Yidong <cyd@stupidchicken.com>
1389
1390 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1391 tool-bar maps.
1392 (menu_separator_name_p): New function, from gtkutil.c.
1393 (separator_names): Move from gtkutil.c.
1394
1395 * keyboard.h (menu_separator_name_p): Add prototype.
1396
1397 * gtkutil.c (XG_BIN_CHILD): New macro.
1398 (xg_get_menu_item_label, xg_update_menubar)
1399 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1400 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1401 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
1402 (create_menus, xg_update_submenu, update_frame_tool_bar):
1403 Use menu_separator_name_p.
4039c786
CY
1404
1405 * nsmenu.m (name_is_separator): Function deleted.
1406 (addItemWithWidgetValue): Use menu_separator_name_p.
1407
1408 * w32menu.c (name_is_separator): Function deleted.
1409 (add_menu_item): Use menu_separator_name_p.
1410
aa936e8e
JD
14112010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1412
1413 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1414 same as the background, use the face forground as cursor.
1415
f49d1f52 14162010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
1417
1418 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1419
f49d1f52 14202010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 1421
f0559026
EZ
1422 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1423 (face_before_or_after_it_pos, next_element_from_string)
1424 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1425 calculations of maximum string length before calling
1426 string_char_and_length and STRING_CHAR_AND_LENGTH.
1427 (string_char_and_length): Update commentary: MAXLEN is no longer
1428 needed.
1429
f49d1f52 14302010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
1431
1432 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1433 as (Qsave_session arg).
1434
1435 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1436 (smc_die_CB): Make an event with arg Qt.
1437 (Fhandle_save_session): If event has Qt as argument,
1438 call Fkill_emacs (Bug#7552).
1439
f49d1f52
SM
14402010-12-13 Chong Yidong <cyd@stupidchicken.com>
1441
1442 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1443
14442010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
1445
1446 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1447
f49d1f52 14482010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
1449
1450 * dispextern.h (struct it): New member overlay_strings_charpos.
1451
1452 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1453 charpos where we computed n_overlay_strings.
1454 (next_overlay_string): Load overlay strings at recorded position,
1455 which may not be the same as the iterator's charpos (Bug#7016).
1456
f49d1f52 14572010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
1458
1459 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1460 obscured due to a vscroll (Bug#7537).
1461
f49d1f52 14622010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
1463
1464 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1465
1466 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1467 Use FRAME_TOOLBAR_HEIGHT.
1468 (x_set_offset): Handle XNegative and YNegative in
1469 f->size_hint_flags (Bug#7510).
1470
39321b94
EZ
14712010-12-11 Eli Zaretskii <eliz@gnu.org>
1472
1473 * w32fns.c (Fx_show_tip): Call try_window with last argument
1474 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1475 solved. Round up the tip height to an integral multiple of the
1476 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1477 (Bug#7398)
1478
ec1b9b17
GM
14792010-12-08 Glenn Morris <rgm@gnu.org>
1480
1481 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1482
3c2317e8
LMI
14832010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1484
1485 * xml.c (parse_region): Ignore blank HTML nodes.
1486 (make_dom): Return CDATA sections (like <style>foo</style>) as
1487 text nodes.
1488
bba3e508
SM
14892010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1490
1491 * lread.c (read1): Allow newstyle unquote outside of backquote.
1492 Disallow old-style backquotes inside new-style backquotes.
1493 Don't count unquotes to figure out when we're "syntactically inside
1494 but semantically outside of a backquote" any more.
1495 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1496 to all contexts.
1497
d23d8608
CY
14982010-12-05 Chong Yidong <cyd@stupidchicken.com>
1499
1500 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1501
d6a003a8
AS
15022010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1503
1504 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1505 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1506 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1507
201ef780
AS
15082010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1509
1510 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1511 bit-field.
1512 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1513 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1514 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1515 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1516 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1517 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1518 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1519 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1520 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1521 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1522 * m/hp800.h: Remove file.
1523 * m/mips.h: Remove file.
1524
146490c3
JD
15252010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1526
1527 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1528 with cursor color and draw a rectangle around the image (Bug#7412).
1529
babc8f0d
AS
15302010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1531
1532 * frame.c (x_set_font): Remove unused variable.
1533
9583e9a0
JD
15342010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1535
dd723bbd
JD
1536 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1537
9583e9a0
JD
1538 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1539 drawing text under filled box cursor (Bug#7479).
1540
07976ae3 15412010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
1542
1543 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1544 i.e. integer.
bba3e508 1545 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
1546 (init_charset_once): Likewise.
1547
bba3e508
SM
1548 * charset.h (emacs_mule_charset): Adjust the prototype.
1549 Delete duplicated extern.
b84ae584
KH
1550
1551 * coding.c (emacs_mule_char): Adjust for the change of
1552 emacs_mule_charset.
1553
1554 * lread.c (read_emacs_mule_char): Adjust for the change of
1555 emacs_mule_charset.
1556
07976ae3 15572010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
1558
1559 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1560 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1561
07976ae3 15622010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
1563
1564 * alloc.c (mark_terminals): Ensure that the image cache is marked
1565 even if the terminal object was marked earlier (Bug#6301).
1566
35f1de62
CY
15672010-11-21 Chong Yidong <cyd@stupidchicken.com>
1568
1569 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1570
07976ae3 15712010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
1572
1573 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1574 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1575 Use 23 as menubar height if 0. (Bug#7425).
1576
8547874a
EZ
15772010-11-26 Eli Zaretskii <eliz@gnu.org>
1578
228482b2
EZ
1579 * xdisp.c (set_message_1): Force paragraph direction in echo area
1580 be left-to-right.
1581
8547874a
EZ
1582 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1583 when the click is on the header or mode line.
1584
1e2dddbe
EZ
15852010-11-25 Eli Zaretskii <eliz@gnu.org>
1586
1587 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1588 `cursor' property of the first character in overlay strings.
12365240 1589 (Bug#7474) (Bug#7481)
1e2dddbe 1590
50795d1f
JD
15912010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1592
1593 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1594 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
1595 (keyDown): Parse left and right keys separately (Bug#7458).
1596 Compare Left key masks exactly (Bug#7458).
50795d1f 1597
f8ab8c1f
EZ
15982010-11-23 Eli Zaretskii <eliz@gnu.org>
1599
1600 * intervals.c (temp_set_point_both): Define before calling, to
1601 avoid GCC warnings.
1602
2e8a4797
DN
16032010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1604
b29116ef
DN
1605 * nsmenu.m: Use #include <config.h> instead of "config.h".
1606
b932f8b1
DN
1607 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1608 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1609 Move declarations ...
1610 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1611 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1612 ... here.
1613
42c8bc9b
DN
1614 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1615 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1616 (gdb_pvec_type):
1617 * print.c (print_output_debug_flag):
1618 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1619 (safe_debug_print): New declaration.
1620
2e8a4797
DN
1621 * xterm.c:
1622 * systty.h:
1623 * sound.c: Include <sys/ioctl.h> unconditionally.
1624
b609f591
YM
16252010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1626
1627 * alloc.c (mark_maybe_object): Return early if given a Lisp
1628 integer (Bug#6301).
1629
731e263a
KB
16302010-11-21 Ken Brown <kbrown@cornell.edu>
1631
1632 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1633
b7d1e144
JD
16342010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1635
1636 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1637 Define (Bug#7458).
1638 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1639 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1640 NSRightControlKeyMask also (Bug#7458).
1641 (keyDown): Ditto (Bug#7458).
1642 (syms_of_nsterm): Defvar ns-right-command-modifier and
1643 ns-right-control-modifier (Bug#7458).
1644
b7982059
DN
16452010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1646
bee3419f
DN
1647 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1648 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1649
b7982059
DN
1650 * intervals.h (temp_set_point, temp_set_point_both):
1651 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1652
01664ed1
KB
16532010-11-20 Ken Brown <kbrown@cornell.edu>
1654
1655 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1656
7c2d713b
EZ
16572010-11-20 Eli Zaretskii <eliz@gnu.org>
1658
1659 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1660 \xNNNNNN for hex-code display of glyphless characters.
1661
d2bd5189
JD
16622010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1663
1664 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1665 Set important to ! vert_only.
1666 (xg_show_toolbar_item): Don't show label horizontally if
1667 tool item isn't important.
1668 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1669 xg_make_tool_item, or update important on existing tool item.
1670
1671 * keyboard.c (QCvert_only): New variable.
1672 (parse_tool_bar_item): Check for QCvert_only.
1673 (syms_of_keyboard): Initialize QCvert_only.
1674
1675 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1676
d9a95e67
EZ
16772010-11-20 Eli Zaretskii <eliz@gnu.org>
1678
1679 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1680 same in-line.
1681
b6557553
AS
16822010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1683
1684 * xfaces.c (lookup_face): Make static.
1685 * dispnew.c (copy_row_except_pointers): Likewise.
1686 * syntax.c (dec_bytepos): Likewise.
1687 (inc_bytepos): Remove.
1688 * dispextern.h (lookup_face): Remove declaration.
1689
f48fe1f0
EZ
16902010-11-19 Eli Zaretskii <eliz@gnu.org>
1691
1692 * xdisp.c (set_cursor_from_row): Display cursor after all the
1693 glyphs that come from an overlay. Don't overstep the last glyph
1694 when skipping glyphs from an overlay. (Bug#6687)
1695
654ef137
DN
16962010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1697
84dfc8a7
DN
1698 * alloc.c (refill_memory_reserve): Move declaration ...
1699 * lisp.h (refill_memory_reserve): ... here.
1700
94fa3833
DN
1701 * strftime.c (_strftime_copytm): Add declaration.
1702
dde990a0
DN
1703 * callproc.c (syms_of_callproc): Use intern_c_string.
1704
50c77428
DN
1705 Move declarations from .c files to .h files.
1706 * process.c (timers_run):
1707 * minibuf.c (quit_char):
1708 * lread.c (read_emacs_mule_char):
1709 * keyboard.c (minibuf_level, message_enable_multibyte)
1710 (pending_malloc_warning):
1711 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1712 (Qonly): Remove declarations.
1713 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1714 (Vselect_active_regions):
1715 * keyboard.h (timers_run): Add declarations.
1716
654ef137
DN
1717 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1718 (tm_diff): Convert definitions to standard C.
1719 (extra_args_spec_iso): Remove, unused.
1720
4a47c275 17212010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
1722
1723 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1724
1725 * config.in (HAVE_G_TYPE_INIT): New symbol.
1726
4a47c275 17272010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
1728
1729 * lread.c (Fload): Mention `load-in-progress' and
1730 `load-file-name'. (Bug#7346)
1731
86520d8c
EZ
1732 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1733 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1734 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1735 subprocesses. Use buffer_free only ifdef subprocesses.
1736
1737 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1738 the subprocesses version, not in the non-subprocesses one.
1739
794a4b6d
EZ
1740 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1741
146d267b
EZ
17422010-11-17 Eli Zaretskii <eliz@gnu.org>
1743
1744 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1745 lines on text-mode terminals. (bug#7417)
1746
fad0d565
SM
17472010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1748
1749 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1750 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1751
6b4bb703
KH
17522010-11-17 Kenichi Handa <handa@m17n.org>
1753
1754 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1755 change (set charset-ID list instead of charset-symbol list).
1756
9173a8fb
CY
17572010-11-16 Chong Yidong <cyd@stupidchicken.com>
1758
1759 * keyboard.c (make_lispy_position): For text area clicks, record Y
1760 pixel position relative to the text area, excluding header line.
1761 Also change X and Y to Lisp_Objects, not pointers; don't return
1762 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1763 buffer_posn_from_coords counting from the start of the text area.
1764 (Fposn_at_x_y, make_lispy_event): Callers changed.
1765
1766 * window.c (coordinates_in_window): Change X and Y to ints rather
1767 than pointers; don't return coordinates via pointers.
1768 (struct check_window_data): Change X and Y from pointers to ints.
1769 (window_from_coordinates): Remove args WX and WY; don't return
1770 coordinates via pointers.
1771 (Fcoordinates_in_window_p, window_from_coordinates):
1772 (check_window_containing, Fwindow_at): Callers changed.
1773 (window_relative_x_coord): New function.
1774
1775 * window.h (window_from_coordinates, window_relative_x_coord):
1776 Update prototypes.
1777
1778 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1779 the start of the text area.
1780
1781 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1782 call. Use window_relative_x_coord.
1783 (note_mouse_highlight): Change window_from_coordinates call.
1784
1785 * w32term.c (w32_read_socket):
1786 * msdos.c (dos_rawgetc):
1787 * xterm.c (handle_one_xevent): Likewise.
1788
d2762c86
DN
17892010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1790
1791 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1792 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1793 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1794 Convert definitions to standard C.
1795 * regex.c: Do not include <stdlib.h>, config.h does it.
1796 Include unistd.h.
1797 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1798 (regerror, regfree): Convert definitions to standard C.
1799 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1800 (__mktime_internal): Convert definitions to standard C.
1801
c2f0866a
DN
18022010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1803
42a7e7f1
DN
1804 * w32proc.c:
1805 * w32inevt.c:
1806 * w32heap.c:
1807 * w32.c: Remove config.h include guards.
1808
67802943
DN
1809 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1810 No code changes.
1811
f0e1af46
DN
1812 * process.c: Include <sys/ioctl.h> unconditionally,
1813 keyboard.c already does it.
1814
c2f0866a
DN
1815 * keyboard.c (pending_malloc_warning): Add const to match
1816 definition in alloc.c.
1817 (Fset_input_interrupt_mode): Simplify #ifdefs.
1818
92d3ab7e
DN
18192010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1820
12e610e8
DN
1821 Clean up systty.h macros.
1822 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1823 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1824 definition in all uses.
1825 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1826 * sysdep.c (discard_tty_input, child_setup_tty)
1827 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1828 * emacs.c (shut_down_emacs):
1829 * callproc.c (child_setup):
1830 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1831
92d3ab7e
DN
1832 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1833
a3e6bad4
CY
18342010-11-14 Chong Yidong <cyd@stupidchicken.com>
1835
1836 * w32fns.c (Fx_create_frame):
1837 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1838 resource here; it's now done at startup.
1839
5a232ffb
J
18402010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1841
1842 * xterm.c (set_wm_state): Add Qnil to final cons.
1843
1844 * xselect.c (x_send_client_event): Remove unused variables cons and
1845 size.
1846
24021b38
YM
18472010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1848
1849 * keyboard.c (modify_event_symbol) : Add const to array elements of
1850 arg NAME_TABLE.
1851 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1852 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1853 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1854 Add const to array elements.
1855 (scroll_bar_parts): Make static. Fix position of const.
1856
1857 * w32fns.c (lispy_function_keys): Add const to extern.
1858
1859 * w32inevt.c (lispy_function_keys): Likewise.
1860
afa42fe3
CY
18612010-11-14 Chong Yidong <cyd@stupidchicken.com>
1862
1863 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1864 resource here; it's now done at startup.
1865
53260a94
DN
18662010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1867
c865c575 1868 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 1869
c865c575 1870 Fix compilation on Solaris.
ff2e8052
DN
1871 * sysdep.c: Do not #include <term.h>.
1872 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1873
53260a94
DN
1874 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1875
933e29ff
J
18762010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1877
1878 * xterm.c (set_wm_state): Don't put Atom in cons, call
1879 make_fixnum_or_float on them first.
1880 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1881 Xatom_net_supported correctly.
1882
1883 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1884 (Fx_send_client_event): to here.
1885
a048073e
MR
18862010-11-13 Martin Rudalics <rudalics@gmx.at>
1887
1888 * window.c (Fwindow_use_time): New function.
1889
0eb025fb
EZ
18902010-11-13 Eli Zaretskii <eliz@gnu.org>
1891
1892 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1893 zero-width characters.
1894
1895 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1896
1897 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1898 box before drawing the glyphs inside it.
1899
1900 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1901
bba3e508
SM
1902 * dispextern.h (enum glyphless_display_method):
1903 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1904 All users changed.
0eb025fb 1905
bba3e508
SM
1906 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1907 Fix comments.
0eb025fb
EZ
1908 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1909 whitespace in "[]", to simulate a box. Don't use uninitialized
1910 variable `width'.
1911
c869cc37
JD
19122010-11-11 Julien Danjou <julien@danjou.info>
1913
2d9074ba
JD
1914 * xsettings.c (init_xsettings): Use already fetch atoms.
1915
1916 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1917 from dpyinfo.
1918
1919 * xselect.c (Fx_send_client_event): Split and create
1920 x_send_client_event.
1921
1922 * lisp.h: Do not EXFUN Fx_send_client_event.
1923
1924 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1925 from dpyinfo.
1926 (wm_supports): Use atoms from dpyinfo.
1927 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1928 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1929 (xembed_set_info): Use atoms from dpyinfo.
1930 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1931 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1932 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1933 Get all atoms in one round-trip.
1934 (set_wm_state): Use x_send_client_event rather than
1935 Fx_send_client_event, using Atom directly.
1936 (x_ewmh_activate_frame): Ditto.
1937 (x_set_sticky): Pass atoms to set_wm_state.
1938 (do_ewmh_fullscreen): Ditto.
1939
1940
1941 * xterm.h (x_display_info): Add Xatom_net_supported,
1942 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1943 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1944
c869cc37
JD
1945 * xfns.c (Fx_show_tip): Fix typo in docstring.
1946
1a4236ea
SM
19472010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1948
1949 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1950 it's not negative.
1951
3106121c
YM
19522010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1953
1954 * font.c (font_filter_properties): Add const to array elements of
1955 properties args.
1956
1957 * font.h (font_filter_properties): Likewise.
1958
1959 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1960 elements.
1961
1962 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1963
da1fec2b
MA
19642010-11-10 Michael Albinus <michael.albinus@gmx.de>
1965
1966 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1967 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1968 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1969 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1970 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1971
bd6bc222
GM
19722010-11-10 Glenn Morris <rgm@gnu.org>
1973
1974 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1975
c0098065
EZ
19762010-11-09 Eli Zaretskii <eliz@gnu.org>
1977
bd6bc222 1978 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 1979
d607b96b 19802010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
1981
1982 * image.c (free_image): Don't garbage the frame here, since this
1983 function can be called while redisplaying (Bug#7210).
1984 (uncache_image): Garbage the frame here (Bug#6426).
1985
d607b96b 19862010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 1987
d607b96b
SM
1988 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1989 parent is the root window. Check this after traversing window tree.
184765cc 1990
d607b96b 1991 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 1992
d607b96b 1993 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 1994
d607b96b
SM
1995 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1996 before traversing window tree (Bug#5721).
c2e124a9 1997
27f92be7
J
19982010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1999
66b16767
J
2000 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
2001
25f38310
SM
2002 * xdisp.c (note_mode_line_or_margin_highlight):
2003 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 2004
a971c0a7
EZ
20052010-11-06 Eli Zaretskii <eliz@gnu.org>
2006
2007 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
2008 adjust width of tool-tip frame to the width of text, excluding the
2009 stretch glyph at the beginning of R2L glyph rows.
2010
2011 * w32fns.c (Fx_show_tip): Likewise.
2012
80417b95
JD
20132010-11-06 Jan Djärv <jan.h.d@swipnet.se>
2014
2015 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 2016 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 2017
28118eb6
EZ
20182010-11-05 Eli Zaretskii <eliz@gnu.org>
2019
c1fc2d3a 2020 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
2021
2022 * term.c: Remove static mouse_face_* variables. All users
2023 changed.
2024 (term_show_mouse_face, term_clear_mouse_face)
2025 (fast_find_position, term_mouse_highlight): Functions deleted.
2026 (tty_draw_row_with_mouse_face): New function.
2027 (term_mouse_movement): Call note_mouse_highlight instead of
2028 term_mouse_highlight.
2029
bbf534ce
EZ
2030 * nsterm.m (ns_update_window_begin, ns_update_window_end)
2031 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
2032 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
2033 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
2034 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
2035 Replace Display_Info with Mouse_HLInfo everywhere where
2036 mouse_face_* members were accessed for mouse highlight purposes.
2037
2038 * xterm.c (x_update_window_begin, x_update_window_end)
2039 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
2040 (handle_one_xevent, x_free_frame_resources, x_term_init):
2041 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
2042 members were accessed for mouse highlight purposes.
2043
2044 * w32term.c (x_update_window_begin, x_update_window_end)
2045 (x_update_end, w32_read_socket, x_free_frame_resources)
2046 (w32_initialize_display_info): Replace Display_Info with
2047 Mouse_HLInfo everywhere where mouse_face_* members were accessed
2048 for mouse highlight purposes.
2049
2050 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
2051 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
2052 unless the frame is on a window-system.
c1fc2d3a 2053 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
2054 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
2055 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2056 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2057 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
2058 Replace Display_Info with Mouse_HLInfo everywhere where
2059 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 2060 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
2061 HAVE_WINDOW_SYSTEM conditional.
2062 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
2063 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
2064 (try_window_id) [HAVE_GPM || MSDOS]:
2065 Call x_clear_window_mouse_face.
d009ae66 2066 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
2067 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2068 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2069 calling draw_glyphs directly.
d009ae66
EZ
2070 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2071 (cursor_in_mouse_face_p, rows_from_pos_range)
2072 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2073 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2074 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2075 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2076 fragments.
2077 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2078 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2079 integer.
2080 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
2081 (x_consider_frame_title, tool_bar_lines_needed):
2082 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
2083 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2084 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2085 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2086 part.
d009ae66
EZ
2087
2088 * dispnew.c (mirror_make_current): Set Y coordinate of the
2089 mode-line and header-line rows.
c1fc2d3a
EZ
2090 (init_display): Setup initial frame's output_data for text
2091 terminal frames.
d009ae66 2092
c1fc2d3a
EZ
2093 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2094 its own definition on msdos.c.
d009ae66
EZ
2095
2096 * msdos.c (show_mouse_face, clear_mouse_face)
2097 (fast_find_position, IT_note_mode_line_highlight)
2098 (IT_note_mouse_highlight): Functions deleted.
2099 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2100 instead of IT_note_mouse_highlight.
2101 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
2102 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2103 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2104 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2105 where mouse_face_* members were accessed for mouse highlight
2106 purposes.
2107
2108 * msdos.h (initialize_msdos_display): Add prototype.
2109
2110 * frame.h (MOUSE_HL_INFO): New macro.
2111
2112 * lisp.h (Mouse_HLInfo): New data type.
2113
2114 * xterm.h (struct x_display_info):
2115 * w32term.h (struct w32_display_info):
2116 * nsterm.h (struct ns_display_info):
2117 * termchar.h (struct tty_display_info): Use it instead of
2118 mouse_face_* members.
2119
2120 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2121 1st argument.
2122 (frame_to_window_pixel_xy, note_mouse_highlight)
2123 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2124 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2125 HAVE_WINDOW_SYSTEM conditional.
2126 (draw_row_with_mouse_face): Declare prototype.
2127 (tty_draw_row_with_mouse_face): Declare prototype.
2128
6e8d7c47
EZ
21292010-11-05 Eli Zaretskii <eliz@gnu.org>
2130
bba3e508
SM
2131 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2132 Remove unused variables.
6e8d7c47 2133
f31ba3f0
AR
21342010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2135
2136 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2137 logic pointed out by Eli Zaretskii.
2138
448e17d6
LMI
21392010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2140
0c3a9a9f
GM
2141 * coding.c (coding-category-list): Refer to set-coding-system-priority
2142 instead of the obsolete set-coding-priority in the doc string.
448e17d6 2143
f31ba3f0 2144
3fdebbf9 21452010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
2146
2147 * nsfont.m (nsfont_draw): Correct previous patch to return
2148 correct value.
2149 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2150 don't change the method signature, change the return.
2151
21522010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
2153
2154 * nsfont.m (nsfont_draw)
2155 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 2156 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 2157
17c0c952
JD
21582010-11-03 Julien Danjou <julien@danjou.info>
2159
2160 * image.c (gif_load): Add support for transparency and specified
2161 :background.
2162
b18fad6d
KH
21632010-11-01 Kenichi Handa <handa@m17n.org>
2164
2165 * dispextern.h (lookup_glyphless_char_display): Extern it.
2166
2167 * termhooks.h (struct terminal): New member charset_list.
2168
2169 * coding.c (Fset_terminal_coding_system_internal): Set the
2170 `charset_list' member of struct terminal.
2171
a8039db1 2172 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
2173 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2174
2175 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2176 (lookup_glyphless_char_display): Set it->what at the end.
2177 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2178 (last_glyphless_glyph_merged_face_id): Make them non-static.
2179
a8039db1
JB
2180 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2181 Fix the arg with_background for font->driver->draw.
65b6b59a 2182
a8039db1 21832010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 2184
a8039db1
JB
2185 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2186 Surround chp by parentheses.
0269bd90 2187
a8039db1 21882010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
2189
2190 Implement various display methods for glyphless characters.
2191
2192 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2193 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2194 (Qzero_width): New variables.
2195 (THIN_SPACE_WIDTH): New macro.
2196 (lookup_glyphless_char_display): New funciton.
2197 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2198 (last_glyphless_glyph_merged_face_id): New variables.
2199 (get_next_display_element): Check glyphless characters.
2200 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2201 last_glyphless_glyph_face_id.
2202 (fill_glyphless_glyph_string): New function.
2203 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2204 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2205 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2206 (x_produce_glyphs): If a suitable font is not found, produce a
2207 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2208 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2209 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2210 Qzero_width.
2211 (Vglyphless_char_display): Declare it as a Lisp variable.
2212
2213 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
2214 (struct glyph): Change the size of the member "type" to 3.
2215 Add glyphless to the union slice and u.
b2cca856
KH
2216 (enum display_element_type): Add IT_GLYPHLESS.
2217 (enum glyphless_display_method): New enum.
2218 (struct it): New member glyphless_method.
2219 (Vglyphless_char_display): Extern it.
2220
2221 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2222 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2223
a8039db1 2224 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
2225 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2226
2227 * nsterm.m (ns_draw_glyph_string): Handle the case
2228 GLYPHLESS_GLYPH (the detail is not yet implemented).
2229
c8c59954
GM
22302010-10-31 Glenn Morris <rgm@gnu.org>
2231
80696982
GM
2232 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2233
c8c59954
GM
2234 * frame.c (syms_of_frame) <tool-bar-mode>:
2235 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2236
46eadc7a
CY
22372010-10-31 Chong Yidong <cyd@stupidchicken.com>
2238
2239 * xterm.c (x_connection_closed): Print informative error message
2240 when aborting on GTK. This requires using shut_down_emacs
2241 directly instead of Fkill_emacs.
2242
ffe75e6b
EZ
22432010-10-29 Eli Zaretskii <eliz@gnu.org>
2244
2245 * emacs.c (main): Call syms_of_filelock unconditionally.
2246
2247 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2248 clause, but keep part of it conditioned on CLASH_DETECTION.
2249
9d794026
GM
22502010-10-29 Glenn Morris <rgm@gnu.org>
2251
4f4f2973
GM
2252 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2253 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2254 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2255 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2256 Sync docs between X, W32, NS.
2257
9d794026
GM
2258 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2259 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2260
d46f6bbb
JB
22612010-10-26 Juanma Barranquero <lekktu@gmail.com>
2262
2263 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2264 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2265
2e35f1a2
EZ
22662010-10-26 Eli Zaretskii <eliz@gnu.org>
2267
2268 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 2269 zero or negative. (Bug#7281)
2e35f1a2 2270
8daaeda6
J
22712010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2272
2273 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2274
6a5c2175
GM
22752010-10-25 Glenn Morris <rgm@gnu.org>
2276
2277 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2278
7c051dd8
GM
22792010-10-24 Glenn Morris <rgm@gnu.org>
2280
2281 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2282 (Fx_window_property, Fx_file_dialog):
2283 * xfns.c (Fx_synchronize, Fx_change_window_property)
2284 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2285
23c261f5
CY
22862010-10-24 Chong Yidong <cyd@stupidchicken.com>
2287
2288 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2289
d414c713 22902010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
2291
2292 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2293
2294 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2295 Deprecate use as a boolean flag.
2296
947f5e01
JM
22972010-10-24 Jim Meyering <jim@meyering.net>
2298
2299 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2300
65807d73
GM
23012010-10-24 Glenn Morris <rgm@gnu.org>
2302
f5f25615
GM
2303 * w16select.c (syms_of_win16select) <selection-coding-system>:
2304 <next-selection-coding-system>:
2305 * w32select.c (syms_of_w32select) <selection-coding-system>:
2306 <next-selection-coding-system>:
3646b86d
GM
2307 Sync docs with select.el.
2308
46710489
GM
2309 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2310 Lisp version.
2311
ea883883
GM
2312 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2313 Sync doc with the xterm.c version.
2314
65807d73
GM
2315 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2316 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2317
f3d87560
GM
23182010-10-23 Glenn Morris <rgm@gnu.org>
2319
66c6abf0 2320 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 2321 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 2322 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 2323 <hourglass-delay>: Sync docs with Lisp.
f3d87560 2324
7b7e2c18
EZ
23252010-10-23 Eli Zaretskii <eliz@gnu.org>
2326
d1d6801e 2327 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
2328
2329 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2330 (mouse_face_from_string_pos): New function, replaces
2331 fast_find_string_pos.
2332 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
2333 (note_mode_line_or_margin_highlight): Support bidi-reordered
2334 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
2335 (note_mouse_highlight): When bidi reordering is turned on in a
2336 buffer, call next-single-property-change and
ef1b0ba7
SM
2337 previous-single-property-change with last argument nil.
2338 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 2339 glyph that stands for no text beyond the line end.
1f382a02
EZ
2340 (row_containing_pos): Don't return too early when CHARPOS is in a
2341 bidi-reordered continued line. Return immediately when the first
2342 hit is found in a line that is not continued, or when an exact
2343 match for CHARPOS is found.
d1d6801e
EZ
2344 (rows_from_pos_range): New function.
2345 (mouse_face_from_buffer_pos): Use it instead of calling
2346 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2347 function to support mouse highlight in bidi-reordered lines and
2348 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2349 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2350 that the former is always above the latter or identical to it.
1554d88e 2351 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
2352 (coords_in_mouse_face_p): New function, bidi-aware.
2353 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2354 Call it instead of comparing with mouse-face members of dpyinfo.
2355 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2356 usage of hpos and vpos.
544bbc31 2357
dee186b6
J
23582010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2359
2360 * xrdb.c: Include keyboard.h for MOTIF.
2361
2362 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2363 MOTIF (Bug#7263).
2364
2365 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
2366 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2367 Make ANSI prototypes.
dee186b6 2368
5fb59edb
GM
23692010-10-22 Glenn Morris <rgm@gnu.org>
2370
2371 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2372 Remove ccl and duplicate mouse.
2373
8b78d5e3
CY
23742010-10-21 Chong Yidong <cyd@stupidchicken.com>
2375
2376 * insdel.c (prepare_to_modify_buffer): Don't set
2377 saved-region-selection if modification hooks are disabled.
2378
b8a47412
CY
23792010-10-19 Chong Yidong <cyd@stupidchicken.com>
2380
2381 * cmds.c (Fdelete_char): Doc fix.
2382
ca3fa302 23832010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
2384
2385 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2386
ca3fa302 23872010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
2388
2389 Fix incorrect font metrics when the same font is opened with
2390 different pixelsizes.
2391
2392 * xftfont.c: Include composite.h.
2393 (xftfont_shape): New function.
2394 (syms_of_xftfont): Set xftfont_driver.shape.
2395
c978536f
JD
23962010-10-18 Julien Danjou <julien@danjou.info>
2397
2398 * frame.c (Fframe_pointer_visible_p):
2399 Add `frame-pointer-visible-p' to get the pointer visibility.
2400
4b2d9ec2
LMI
24012010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2402
2403 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2404 non-"EAGAIN"-like error to signal to Emacs that the socket should
2405 be closed.
2406
9cf66cf2
EZ
24072010-10-15 Eli Zaretskii <eliz@gnu.org>
2408
c3911ead
EZ
2409 * unexcoff.c (make_hdr): Fix prototype according to changes in
2410 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2411
9cf66cf2
EZ
2412 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2413
be98da05
TH
24142010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2415
2416 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2417 made building the X menu fail.
cc98b256 2418 (really-oldXMenu): Fix my previous fix.
be98da05 2419
220d91b8 24202010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
2421
2422 Fix handling of font properties on Windows (bug#6303).
2423 * font.c (font_filter_properties): New function, refactored from
2424 ftfont_filter_properties.
2425 * font.h (font_filter_properties): Declare.
2426 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2427 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2428 (w32font_filter_properties): New function.
2429 (w32font_driver): Add w32font_filter_properties.
2430
220d91b8 24312010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 2432
c0943d3d 2433 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
2434 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2435
24f981c9
JB
24362010-10-14 Juanma Barranquero <lekktu@gmail.com>
2437
2438 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2439 * w32font.c (w32_generic_family):
2440 * w32inevt.c (key_event):
2441 * w32menu.c (fill_in_menu):
2442 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2443 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2444 * w32term.c (w32_read_socket): Make static.
2445
850690cc
JB
24462010-10-13 Juanma Barranquero <lekktu@gmail.com>
2447
2448 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2449 prototypes; all callers changed.
2450
5e371708
JB
24512010-10-13 Juanma Barranquero <lekktu@gmail.com>
2452
2453 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2454 (OBJ2): New macro.
2455 (WIN32OBJ, FONTOBJ): Remove.
2456 (OBJ1): Redistribute object files with OBJ2.
2457 (LIBS, $(TEMACS)): Use TLIB2.
2458 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2459 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2460
2e288d54
JB
24612010-10-13 Juanma Barranquero <lekktu@gmail.com>
2462
2463 * emacs.c (Vdynamic_library_alist)
2464 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2465 Doc fix.
2466
2467 * lisp.h (Vdynamic_library_alist): Declare extern.
2468
2469 * image.c (Vimage_library_alist)
2470 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2471 (lookup_image_type): Use Vdynamic_library_alist.
2472 (Finit_image_library): Doc fix.
2473
aba1381b
DN
24742010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2475
2476 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2477 (lispdir): Remove trailing /, update all uses.
2478
4c14013d 24792010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
2480
2481 * nsterm.m (Qleft): Declare.
2482 (ns_right_alternate_modifier): New variable
2483 (NSRightAlternateKeyMask): New define.
2484 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2485 ns_right_alternate_modifier isn't Qleft.
2486 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2487 as emacs modifier for NSRightAlternateKeyMask.
2488 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2489
355cdaf3
LMI
24902010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2491
2492 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2493 gnutls is ready, return EAGAIN as the errno.
2494
4c620157
DN
24952010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2496
edfd76ce
DN
2497 * vm-limit.c:
2498 * unexhp9k800.c:
2499 * unexelf.c:
2500 * unexaix.c:
2501 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2502
a4daeecf
DN
2503 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2504 (PROFILING_LDFLAGS): Remove, not needed anymore.
2505
2cb72a75 2506 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
2507 (CRT_DIR): Move near potential user.
2508 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 2509
4c620157
DN
2510 * sysdep.c (LPASS8): Remove, unused.
2511 (emacs_ospeed): Change from being a global to a local in the only
2512 user: init_baud_rate.
2513
b845653d
LMI
25142010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2515
2516 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 2517 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 2518 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 2519 gnutls_read. This allows us to actually read lots of data from
b845653d 2520 the GnuTLS stream.
2e6c74c5
LMI
2521 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2522 According to the documentation, this is correct, and it seems to
2523 make things work.
b845653d 2524
3625b3e2
CY
25252010-10-09 Chong Yidong <cyd@stupidchicken.com>
2526
2527 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2528
8b1c619f
MA
25292010-10-08 Michael Albinus <michael.albinus@gmx.de>
2530
2531 * keyboard.c: Revert last change; it was not intended to be
2532 synchronized with the trunk.
2533
93d50df8
KH
25342010-10-08 Kenichi Handa <handa@m17n.org>
2535
2b7c9342 2536 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 2537
4628bef1 25382010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
2539
2540 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2541 (Fdbus_init_bus): ... here. (Bug#7113)
2542
4628bef1 25432010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
2544
2545 * buffer.c (before-change-functions, after-change-functions):
2546 Three-year overdue doc fix following 2007-08-13 change.
2547
4628bef1 25482010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
2549
2550 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2551 eol-format, inherit from the system's default.
2552 (complement_process_encoding_system): Make a new coding system
2553 inherit the original eol-format.
2554
4628bef1 25552010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
2556
2557 * coding.c (complement_process_encoding_system): New function.
2558
2559 * coding.h (complement_process_encoding_system): Extern it.
2560
2561 * callproc.c (Fcall_process): Complement the coding system for
2562 encoding arguments.
2563 (Fcall_process_region): Complement the coding system for encoding
2564 the input to the process.
2565
2566 * process.c (Fstart_process): Complement the coding system for
2567 encoding arguments.
2568 (send_process): Complement the coding system for encoding what
2569 sent to the process.
2570
4628bef1 25712010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
2572
2573 * xfont.c (xfont_open): Fix setting of font->average_width from
2574 :avgwidth property (Bug#7123).
2575
4628bef1 25762010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
2577
2578 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2579 is more portable.
2580
2581 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2582 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2583 has not defined SIGIO.
2584
389454fb
CY
25852010-10-08 Chong Yidong <cyd@stupidchicken.com>
2586
2587 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2588 draw the outermost line using the black relief, for legibility.
2589 Omit drawing the four corner pixels.
2590
51b403bd
CY
25912010-10-04 Chong Yidong <cyd@stupidchicken.com>
2592
2593 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2594 (read_key_sequence): Inline echo_prompt.
2595 (echo_dash): Add a dash only if key is continued (Bug#7137).
2596
3e6ae1a4
DN
25972010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2598
2599 Remove O_RDONLY, O_WRONLY definitions, not needed.
2600 * unexcoff.c:
2601 * lread.c:
2602 * fileio.c:
2603 * doc.c:
2604 * callproc.c:
2605 * alloc.c:
2606 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2607
c1ae068b
LMI
26082010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2609
2610 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2611
2612 * gnutls.c: Add property list symbol holders.
2613 (emacs_gnutls_handshake): Clarify how sockets are passed to
2614 GnuTLS.
2615 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2616 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2617 and keyfiles to be a list of file names. Default to "NORMAL" for
2618 the priority string. Improve logging.
2619
e2afe435
GM
26202010-10-03 Glenn Morris <rgm@gnu.org>
2621
2622 * fileio.c (Vdirectory_sep_char): Remove.
2623
dd5ecd6b
DN
26242010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2625
b5437a05
DN
2626 * termhooks.h: Remove #ifdef CONSP.
2627
4777478a
DN
2628 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2629
a3d5088d
DN
2630 Include <fcntl.h> unconditionally.
2631 * termcap.c:
2632 * sysdep.c:
2633 * lread.c:
2634 * keyboard.c:
2635 * filelock.c:
2636 * fileio.c:
2637 * doc.c:
2638 * callproc.c:
2639 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2640 does it.
2641
82719735
DN
2642 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2643
9de940b5
DN
2644 * sysdep.c (flush_pending_output): Remove code, does not do
2645 anything on any platform.
2646
57507bf8 2647 Remove unused code.
bba3e508
SM
2648 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2649 Remove select emulation, all systems support select.
57507bf8
DN
2650 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2651 * process.c (create_process): Remove #if 0 code.
2652
dd5ecd6b
DN
2653 Remove unused arguments for unexec.
2654 The third one is never used, and the last two are always passed as zero.
2655 * emacs.c (unexec): Add declaration.
2656 (Fdump_emacs): Only pass the first two arguments to unexec.
2657 Simplify #ifdef.
2658 * unexw32.c (unexec):
2659 * unexsol.c (unexec):
2660 * unexhp9k800.c (unexec):
2661 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2662 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2663 (find_section): Use const.
2664 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2665 (unexec_error): Declare it NO_RETURN.
2666 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2667 it as an argument, remove data_start and entry_address arguments, unused.
2668 (unexec): Remove bss_start, data_start and
2669 entry_address arguments.
2670 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2671 it as an argument, remove data_start and entry_address arguments, unused.
2672 (unexec): Remove bss_start, data_start and
2673 entry_address arguments.
2674
74f1829d
JB
26752010-10-03 Juanma Barranquero <lekktu@gmail.com>
2676
7f467e14
JB
2677 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2678
74f1829d
JB
2679 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2680 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2681 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2682 Fix typos in docstrings.
2683 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2684 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2685
6926550f
CY
26862010-10-03 Chong Yidong <cyd@stupidchicken.com>
2687
2688 * keyboard.c (command_loop_1): Make sure the mark is really alive
2689 before using it (Bug#7044).
2690
54b65f7b
JB
26912010-10-02 Juanma Barranquero <lekktu@gmail.com>
2692
2693 * makefile.w32-in (tags): Rename target to full-tags.
2694
383ebd15
EZ
26952010-10-02 Eli Zaretskii <eliz@gnu.org>
2696
2697 * emacs.c (main): Remove !WINDOWSNT conditional.
2698 (Fkill_emacs): Don't mention exemption on MS-Windows.
2699
9c524fcb
GM
27002010-10-02 Glenn Morris <rgm@gnu.org>
2701
3226d6ca
GM
2702 * character.c (Fchar_bytes): Remove obsolete function.
2703 (syms_of_character): Remove Schar_bytes.
2704
9c524fcb
GM
2705 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2706 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2707 in batch-mode.
2708 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2709 (kill-emacs-hook): Doc fix.
2710
1b217849
LMI
27112010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2712
2713 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 2714 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
2715 renamed to reflect that these are the libxml functions.
2716
54cc6a83
EZ
27172010-10-01 Eli Zaretskii <eliz@gnu.org>
2718
0ebf79de
EZ
2719 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2720 screen dimensions in tty->Wcm.
2721
54cc6a83
EZ
2722 * xdisp.c (set_cursor_from_row): When the row is truncated and
2723 point is outside the range of displayed characters, position the
2724 cursor inside the scroll margin. (Bug#6349)
2725
321401d1
DN
27262010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2727
4cacd822
DN
2728 Do not include stdlib.h and string.h, config.h does it.
2729 * xfont.c:
2730 * w32term.c:
2731 * w32reg.c:
2732 * w32inevt.c:
2733 * w32heap.c:
2734 * w32console.c:
2735 * w16select.c:
2736 * unexsol.c:
2737 * term.c:
2738 * sound.c:
2739 * scroll.c (m):
2740 * gtkutil.c:
2741 * font.c:
2742 * filelock.c:
2743 * fileio.c:
2744 * dosfns.c:
2745 * dbusbind.c:
2746 * bidi.c:
2747 * callproc.c:
2748 * process.c:
2749 * msdos.c:
2750 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2751
bba3e508
SM
2752 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2753 defines it.
0781e7ab 2754
9bf58201
DN
2755 * process.c: Move #include <pty.h> earlier.
2756 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2757 (pty_name): Move definition later.
2758
088dcc3e
DN
2759 * nsselect.m (syms_of_nsselect):
2760 * nsmenu.m (syms_of_nsmenu):
2761 * nsfns.m (syms_of_nsfns):
2762 * msdos.c (syms_of_msdos):
4cacd822 2763
088dcc3e
DN
2764 * image.c (syms_of_image):
2765 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2766
321401d1
DN
2767 * point.h: Remove, unused.
2768
73077a9a
EZ
27692010-10-01 Eli Zaretskii <eliz@gnu.org>
2770
2771 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2772 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2773 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2774
55e572ef
DN
27752010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2776
2777 * xml.c (parse_string): Use const.
2778
d4b6d95d
LMI
27792010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2780
ef1b0ba7
SM
2781 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2782 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
2783 the level to 8 to produce more useful backtraces for bug reports.
2784
e4b6db12
DN
27852010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2786
2787 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2788
1becef93
JB
27892010-09-30 Juanma Barranquero <lekktu@gmail.com>
2790
2791 * w32console.c (vga_stdcolor_name): Remove unused function;
2792 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2793
df7fcaff
LMI
27942010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2795
bac5cef8
LMI
2796 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2797 (Fgnutls_boot): Start the handshake.
2798 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
2799 (Fgnutls_boot): Remove some debugging messages.
2800 Change indentation throughout to use the Emacs style.
2801 (emacs_gnutls_handshake): Cast the fds to something that's
2802 possibly the expected length.
2803 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 2804
df7fcaff
LMI
2805 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2806
2807 * process.c (make_process): Set the gnutls_p field to zero by
2808 default.
2809 (read_process_output): Always call the gnutls_read function if the
2810 stream is a gnutls stream.
2811 (send_process): Ditto for writes.
2812
2813 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2814 or write anything until the state is GNUTLS_STAGE_READY.
2815 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2816
d585695f
EZ
28172010-09-29 Eli Zaretskii <eliz@gnu.org>
2818
af7ef32d
EZ
2819 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2820 NEUTRAL_DIR.
2821 (handle_invisible_prop, iterate_out_of_display_property)
2822 (next_element_from_buffer): If bidi_it.first_elt is set, call
2823 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2824 (Bug#7128)
2825
d585695f
EZ
2826 * print.c (print_object): Fix format string and argument types for
2827 printing a Lisp_Misc_Marker.
2828
2829 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2830 (load_overlay_strings, get_overlay_strings_1)
2831 (get_overlay_strings, forward_to_next_line_start)
2832 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2833 (get_next_display_element, next_element_from_string)
2834 (next_element_from_c_string, next_element_from_buffer)
2835 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2836 (message_dolog, message_log_check_duplicate, message2_nolog)
2837 (message3, message3_nolog, vmessage, set_message, set_message_1)
2838 (hscroll_window_tree, text_outside_line_unchanged_p)
2839 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2840 (find_last_unchanged_at_beg_row)
2841 (find_first_unchanged_at_end_row, row_containing_pos)
2842 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
2843 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2844 Use EMACS_INT for buffer and string positions.
d585695f
EZ
2845
2846 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2847 (row_containing_pos): Adjust prototype.
2848
2849 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2850 (message2_nolog, set_message): Adjust prototypes.
2851
a6f3211f
SM
28522010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2853
2854 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2855 (Fgnutls_boot): Use SDATA.
2856 (Fgnutls_handshake): Remove unused var `max_log_level'.
2857
e0720500
MA
28582010-09-27 Michael Albinus <michael.albinus@gmx.de>
2859
11a5af7c 2860 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
2861 (Bug#7113)
2862
d8a4b27a
J
28632010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2864
42d3022b
J
2865 * xgselect.c (xg_select): Clear file descriptors not set from
2866 rfds and wfds.
2867
d8a4b27a
J
2868 * process.c (wait_reading_process_output): Add missing FD_CLR
2869 for write_mask (must mirror connect_wait_mask).
2870
8ed70bf3
LMI
28712010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2872
2873 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2874 prefix.
2875 (Fgnutls_boot): Use changed process members. Use log level with a
2876 function parameter to set it. Bring back Emacs-level debugging
2877 messages at log level 1 and 2.
2878
2879 * process.c (make_process): Initialize gnutls_log_level.
2880
2881 * process.h: Add gnutls_log_level and rename x509_cred and
2882 anon_cred to have the gnutls_ prefix for consistency.
2883
2884 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2885
bedf4aab
JB
28862010-09-27 Juanma Barranquero <lekktu@gmail.com>
2887
2888 * w32.c (g_b_init_get_sid_identifier_authority)
2889 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2890 Remove, not used.
2891 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2892 (init_winsock): Remove useless assignment.
2893 (open_process_token, get_token_information, lookup_account_sid)
2894 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2895 (get_security_descriptor_owner, get_security_descriptor_group)
2896 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2897 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2898 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2899 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2900 (unc_volume_file_attributes, convert_from_time_t)
2901 (create_toolhelp32_snapshot, process32_first, process32_next)
2902 (open_thread_token, impersonate_self, revert_to_self)
2903 (get_process_memory_info, get_process_working_set_size)
2904 (global_memory_status, global_memory_status_ex, socket_to_fd)
2905 (shutdown_handler): Make static.
2906
08609ffd
MA
29072010-09-27 Michael Albinus <michael.albinus@gmx.de>
2908
2909 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2910 (xd_pending_messages): Functions removed.
2911 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2912 order to be compatible with add_read_fd. Determine bus from data,
2913 and call xd_read_message just for this bus.
2914 (xd_add_watch): Use xd_read_queued_messages as callback function.
2915 Add data.
2916
2917 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2918
d2e9d0bb
LMI
29192010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2920
ef1b0ba7 2921 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 2922 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 2923
4be9765d
KH
29242010-09-27 Kenichi Handa <handa@m17n.org>
2925
2926 These changes are to remove restriction on the number of glyphs in
2927 one composition.
2928
2929 * dispextern.h (struct glyph): Change the member "slice" to union.
2930 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 2931 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
2932
2933 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2934 instead of glyph->slice.
2935 (marginal_area_string): Likewise.
2936
2937 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2938 glyph->u.cmp.
2939 (append_composite_glyph): Likewise.
2940
2941 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2942 glyph->u.cmp.
2943 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2944 (append_composite_glyph): Likewise.
2945 (fill_image_glyph_string): Use glyph->slice.img instead of
2946 glyph->slice.
2947 (append_glyph, produce_image_glyph, append_stretch_glyph)
2948 (note_mouse_highlight): Likewise.
2949
3fad2ad2
J
29502010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2951
bf05eed6
J
2952 * process.c (add_keyboard_wait_descriptor)
2953 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
2954 (wait_reading_process_output): Don't pass write_mask to select
2955 if SELECT_CANT_DO_WRITE_MASK is defined.
2956 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 2957
3fad2ad2
J
2958 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2959 (delete_write_fd): Declare.
2960
2961 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2962 (write_mask): New variable.
ef1b0ba7 2963 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 2964 (fd_callback_info): New variable.
70e31436
JB
2965 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2966 New functions.
3fad2ad2
J
2967 (Fmake_network_process): FD_SET write_mask.
2968 (deactivate_process): FD_CLR write_mask.
2969 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
2970 check_connect removed. check_write is new. Remove references to gpm.
2971 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
2972 NON_BLOCKING_CONNECT) instead of Connecting.
2973 Loop over file descriptors and call callbacks in fd_callback_info
2974 if file descriptor is ready for I/O.
2975 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2976 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2977 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
2978 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2979 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
2980 (init_process): Initialize write_mask and fd_callback_info.
2981
2982 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2983
2984 * dbusbind.c: Include process.h.
2985 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2986 (xd_read_message_1): New functions.
70e31436
JB
2987 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2988 Handle watch for both read and write.
3fad2ad2
J
2989 (Fdbus_init_bus): Also register xd_toggle_watch.
2990 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2991 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2992 to dbus_connection_flush.
70e31436 2993 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
2994 Call xd_read_message_1 until status is COMPLETE.
2995
dce4c2ac
DN
29962010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2997
2998 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
2999 (init_tty): Reorder code to reduce the number of #ifdefs.
3000 No code changes.
dce4c2ac 3001
8af55556
TZ
30022010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
3003
3004 * process.h: Set up GnuTLS support.
3005
3006 * process.c (make_process, Fstart_process)
3007 (read_process_output, send_process): Set up GnuTLS support for
3008 process input/output file descriptors.
3009
3010 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
3011
3012 * gnutls.c: The source code for GnuTLS support in Emacs.
3013
3014 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
3015
3016 * config.in: Set up GnuTLS support.
3017
3018 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
3019 (obj, LIBES): Set up GnuTLS support.
3020
83e245c4
JB
30212010-09-26 Juanma Barranquero <lekktu@gmail.com>
3022
3023 * w32.c (get_emacs_configuration_options): Fix previous change.
3024
d24ec09a
CY
30252010-09-25 Chong Yidong <cyd@stupidchicken.com>
3026
3027 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
3028 alive before using it (Bug#6977).
3029
b7bdc47c
LMI
30302010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
3031
a952d5f3
LMI
3032 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
3033
3034 * dispextern.h: EMACS_INT/int fixup.
3035
3036 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
3037 fixup.
3038
b7bdc47c
LMI
3039 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
3040
41118bd3
EZ
30412010-09-25 Eli Zaretskii <eliz@gnu.org>
3042
2452438f
EZ
3043 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
3044 (Fselect_window, window_scroll_pixel_based)
3045 (window_scroll_line_based, Frecenter, Fset_window_configuration):
3046 Use EMACS_INT for buffer positions.
3047
3048 * textprop.c (validate_interval_range, interval_of)
3049 (property_change_between_p, Fadd_text_properties)
3050 (set_text_properties_1, Fremove_text_properties)
3051 (Fremove_list_of_text_properties, Ftext_property_any)
3052 (Ftext_property_not_all, copy_text_properties)
3053 (text_property_list, extend_property_ranges)
3054 (verify_interval_modification): Use EMACS_INT for buffer
3055 positions.
3056
f877c546
EZ
3057 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
3058 for buffer positions.
3059
3060 * process.c (read_process_output, send_process)
3061 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
3062 and string positions and size.
3063
da43f021
EZ
3064 * print.c (print_object, print_string, strout): Use EMACS_INT for
3065 string indices.
3066
3067 * minibuf.c (string_to_object): Use EMACS_INT for string position
3068 and size.
3069
3070 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3071
3072 * lread.c <read_from_string_index, read_from_string_index_byte>
3073 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3074 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3075 buffer positions and string length.
3076
41118bd3
EZ
3077 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3078 EMACS_INT.
3079 (echo_truncate, adjust_point_for_property, read_char)
3080 (gen_help_event, make_lispy_event, modify_event_symbol)
3081 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3082 for buffer positions and string length.
3083
3084 * keyboard.h (gen_help_event): Adjust prototype.
3085
3086 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3087
3088 * commands.h <last_point_position>: Declare EMACS_INT.
3089
3090 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3091 (truncate_echo_area): Accept EMACS_INT argument.
3092
3093 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3094
3095 * lisp.h (truncate_echo_area): Adjust prototype.
3096
3097 * composite.c (composition_adjust_point): Return EMACS_INT.
3098
3099 * composite.h (composition_adjust_point): Adjust prototype.
3100
ba3033ee
JB
31012010-09-25 Juanma Barranquero <lekktu@gmail.com>
3102
3103 * process.c (Fmake_network_process): When arg :host is 'local,
3104 use address 127.0.0.1, not name "localhost". (Bug#6781)
3105
4f3a2f8d
EZ
31062010-09-24 Eli Zaretskii <eliz@gnu.org>
3107
5816888b
EZ
3108 * indent.c (Fcurrent_indentation, indented_beyond_p)
3109 (compute_motion): Use EMACS_INT for buffer position variables.
3110
3111 * lisp.h (indented_beyond_p): Adjust prototype.
3112
3113 * buffer.c (overlay_strings): Return EMACS_INT.
3114
3115 * buffer.h (overlay_strings): Adjust prototype.
3116
3117 * region-cache.c (pp_cache): Adjust format to arguments.
3118
3119 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3120 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3121 (verror): Use EMACS_INT for size of allocated buffer.
3122
ace1712c
EZ
3123 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3124 positions.
3125
3126 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
3127 (set_cursor_from_row, find_first_unchanged_at_end_row):
3128 Use EMACS_INT for buffer positions.
ace1712c 3129
f5276b75 3130 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
3131
3132 * dispnew.c (increment_matrix_positions)
3133 (increment_row_positions, copy_glyph_row_contents)
3134 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3135 positions.
3136
3137 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
3138 (increment_matrix_positions, increment_row_positions):
3139 Adjust prototypes.
ace1712c
EZ
3140
3141 * data.c (Faref, Faset): Use EMACS_INT for string length and
3142 positions.
3143
3144 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3145 characters to insert.
3146
3147 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3148 position and size.
3149
4f3a2f8d
EZ
3150 * syntax.c (scan_words, update_syntax_table)
3151 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
3152 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3153 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
3154
3155 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3156
3157 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3158 positions.
3159
db063399
LMI
31602010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3161
f0812d35
LMI
3162 * scroll.c (calculate_scrolling, line_ins_del)
3163 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3164 conversion.
3165
f5c7fc27
LMI
3166 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3167 (region_cache_backward, region_cache_forward)
3168 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3169 conversion.
3170
db063399
LMI
3171 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3172
3173 * eval.c (verror): Fix EMACS_INT/int conversion.
3174
07914cd0 3175 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
3176 (print_preprocess, print_check_string_charset_prop)
3177 (print_object): Fix EMACS_INT/int conversion.
3178
3179 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3180
e6d4aefa
EZ
31812010-09-24 Eli Zaretskii <eliz@gnu.org>
3182
69481da7
EZ
3183 * callproc.c (Fcall_process): Use EMACS_INT for count of
3184 characters read from the subprocess.
3185
61bfec98
EZ
3186 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3187 positions.
3188 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3189 positions.
3190
145582a0
EZ
3191 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3192 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3193 length.
3194 (advance_to_char_boundary, Fset_buffer_multibyte)
3195 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3196 (overlay_touches_p, record_overlay_string, overlay_strings)
3197 (recenter_overlay_lists, fix_start_end_in_overlays)
3198 (modify_overlay, Fmove_overlay, report_overlay_modification)
3199 (evaporate_overlays): Use EMACS_INT for buffer positions.
3200
bba3e508
SM
3201 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3202 Adjust prototypes.
145582a0 3203
446470a9
EZ
3204 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3205 positions.
3206
e6d4aefa
EZ
3207 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3208 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3209 (Fsubstring_no_properties, substring_both, Ffillarray)
3210 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3211 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3212 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3213 (Fmd5): Use EMACS_INT for buffer and string positions and length
3214 variables and arguments.
3215
3216 * lisp.h (substring_both): Adjust prototype.
3217
eb652396
JB
32182010-09-24 Juanma Barranquero <lekktu@gmail.com>
3219
3220 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3221 * w32fns.c (clipboard_sequence_fn): Don't declare.
3222 (globals_of_w32fns): Don't initialize it.
3223
266a86bd 32242010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
3225
3226 * syntax.c (back_comment): Detect the case where a 1-char comment
3227 starter is also the 2nd char of a 2-char comment ender.
3228
266a86bd 32292010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
3230
3231 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3232
40283062
LMI
32332010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3234
db063399
LMI
3235 * eval.c (verror): EMACS_INT/int cleanup.
3236
faf8b5bc
LMI
3237 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3238 unwind_protect more than 2GB worth of functions.
3239
3240 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3241
40283062
LMI
3242 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3243 string and avoid compiler warnings.
3244 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3245 all users.
3246
3247 * lread.c (oblookup): EMACS_INT/int cleanup.
3248
3249 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3250
fe3537c3
EZ
32512010-09-23 Eli Zaretskii <eliz@gnu.org>
3252
3253 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3254
3255 * lisp.h (clip_to_bounds): Adjust prototype.
3256
3257 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3258
0350982f
LMI
32592010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3260
84c9ce05
LMI
3261 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3262
3263 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3264
3265 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3266 cleanup.
3267
0350982f
LMI
3268 * lisp.h: Change the definition of all marker.c functions that
3269 take and return buffer stuff to be EMACS_INT instead of int.
3270
3271 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3272 (buf_charpos_to_bytepos, bytepos_to_charpos)
3273 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3274 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3275 for all buffer positions.
3276
c50bd0d2
CY
32772010-09-23 Chong Yidong <cyd@stupidchicken.com>
3278
3279 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3280 (split_interval_right, find_interval, next_interval)
3281 (delete_node, delete_interval, interval_deletion_adjustment)
3282 (adjust_intervals_for_deletion, merge_interval_right)
3283 (merge_interval_left, graft_intervals_into_buffer)
3284 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3285
3286 * intervals.h (traverse_intervals): Update prototype.
3287
14162469
EZ
32882010-09-23 Eli Zaretskii <eliz@gnu.org>
3289
c098fdb8
EZ
3290 * indent.c (compute_motion): Use EMACS_INT for arguments to
3291 region_cache_forward.
3292
bba3e508
SM
3293 * region-cache.c (struct boundary, struct region_cache):
3294 Use EMACS_INT for positions.
c098fdb8
EZ
3295 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3296 (delete_cache_boundaries, set_cache_region)
3297 (invalidate_region_cache, know_region_cache)
bba3e508
SM
3298 (region_cache_forward, region_cache_backward, pp_cache):
3299 Use EMACS_INT for buffer positions.
c098fdb8
EZ
3300
3301 * region-cache.h (know_region_cache, invalidate_region_cache)
3302 (region_cache_forward, region_cache_backward): Adjust prototypes.
3303
3304 * search.c (string_match_1, fast_c_string_match_ignore_case)
3305 (looking_at_1, scan_buffer, scan_newline)
3306 (find_next_newline_no_quit, find_before_next_newline)
3307 (search_command, trivial_regexp_p, search_buffer, simple_search)
3308 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3309 and string positions and length.
3310
caefdbe7
EZ
3311 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3312 (find_before_next_newline): Adjust prototypes.
c098fdb8 3313
29cdc13e
EZ
3314 * editfns.c (transpose_markers, update_buffer_properties)
3315 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3316 (get_pos_property, Fconstrain_to_field)
3317 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3318 (Fchar_after, Fchar_before, Finsert_char)
3319 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
3320 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3321 Use EMACS_INT for buffer and string position variables.
c098fdb8 3322 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
3323
3324 * lisp.h (clip_to_bounds): Adjust prototype.
3325
e79123aa
EZ
3326 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3327 (balance_an_interval, split_interval_right, split_interval_left)
3328 (find_interval, next_interval, update_interval)
3329 (adjust_intervals_for_insertion, delete_node, delete_interval)
3330 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3331 (offset_intervals, merge_interval_right, merge_interval_left)
3332 (graft_intervals_into_buffer, adjust_for_invis_intang)
3333 (move_if_not_intangible, get_local_map, copy_intervals)
3334 (copy_intervals_to_string, compare_string_intervals)
3335 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 3336 and for interval tree size.
e79123aa
EZ
3337
3338 * intervals.h (traverse_intervals, split_interval_right)
3339 (split_interval_left, find_interval, offset_intervals)
3340 (graft_intervals_into_buffer, copy_intervals)
3341 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3342 (update_interval): Adjust prototypes.
3343
579c18d0
EZ
3344 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3345 Use EMACS_INT for buffer position variables and arguments.
3346
3347 * composite.c (get_composition_id, find_composition)
3348 (run_composition_function, compose_text)
3349 (composition_gstring_width, autocmp_chars)
3350 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3351 for buffer positions and string length variables and arguments.
3352
3353 * composite.h (get_composition_id, find_composition, compose_text)
3354 (composition_gstring_width): Adjust prototypes.
3355
3356 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3357
bba3e508
SM
3358 * xdisp.c (store_mode_line_noprop, display_mode_element):
3359 Use EMACS_INT for string positions.
579c18d0
EZ
3360
3361 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3362 position arguments.
3363
3364 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
3365
3366 * character.c (parse_str_as_multibyte, str_as_multibyte)
3367 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 3368 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
3369 (strwidth, lisp_string_width, multibyte_chars_in_text):
3370 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3371
3372 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 3373 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
3374 (c_string_width, strwidth, lisp_string_width):
3375 Adjust prototypes.
14162469 3376
579c18d0
EZ
3377 * font.c (font_intern_prop): Use EMACS_INT for string length
3378 variables.
3379
3380 * font.c (font_intern_prop): Use EMACS_INT for string length
3381 variables.
3382
14162469
EZ
3383 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3384 variables.
3385
3386 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3387 (Fmake_string): Protect against too large strings.
3388 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3389 (live_misc_p): Use ptrdiff_t instead of int for pointer
3390 differences.
3391 (string_bytes, check_sblock, check_string_free_list)
3392 (allocate_string_data, compact_small_strings, Fmake_string)
3393 (Fmake_bool_vector, make_string, make_unibyte_string)
3394 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
3395 (make_specified_string_string, Fmake_list, Fmake_vector):
3396 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3397 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3398 (Fpurecopy): Use EMACS_INT for string size.
3399 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3400 for vector size.
3401
3402 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3403 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
3404 (make_pure_string, string_bytes, check_point_in_composition):
3405 Adjust prototypes.
14162469 3406
c8a66ab8
EZ
34072010-09-22 Eli Zaretskii <eliz@gnu.org>
3408
3409 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3410 (check_translation): Use EMACS_INT for buffer positions and
3411 length.
3412
3413 * undo.c (record_marker_adjustment, record_delete)
3414 (record_change, record_point, record_insert)
3415 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3416 buffer positions.
3417
3418 * lisp.h (record_marker_adjustment, record_delete)
3419 (record_change, record_point, record_insert)
3420 (record_property_change, Fprimitive_undo): Adjust prototypes.
3421
38c54d9d
JB
34222010-09-22 Juanma Barranquero <lekktu@gmail.com>
3423 Eli Zaretskii <eliz@gnu.org>
3424
3425 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3426
413d18e7
EZ
34272010-09-22 Eli Zaretskii <eliz@gnu.org>
3428
3429 * minibuf.c (Fminibuffer_contents)
3430 (Fminibuffer_contents_no_properties)
3431 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3432 positions.
3433
3434 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3435 mark.
3436
3437 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3438 (allocate_string_data): Accept EMACS_INT for string length.
3439
3440 * editfns.c (Ffield_string, Ffield_string_no_properties)
3441 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3442 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3443 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3444 (Ffield_end): Use EMACS_INT for buffer positions.
3445
3446 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3447 point with mark.
3448
3449 * lisp.h (allocate_string_data, make_uninit_string)
3450 (make_uninit_multibyte_string, make_buffer_string)
3451 (make_buffer_string_both): Adjust prototypes.
3452
4b9832a6
CY
34532010-09-22 Chong Yidong <cyd@stupidchicken.com>
3454
3455 * xml.c: Switch to GNU indentation.
3456 (make_dom): Change parse tree format to match xml.el.
3457 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3458 (Fxml_parse_string_internal): Rename from xml-parse-string.
3459
86282aab
KH
34602010-09-22 Kenichi Handa <handa@m17n.org>
3461
3462 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3463 only if we are not at a composition.
3464 (set_iterator_to_next): Give it->end_charpos to
3465 composition_compute_stop_pos.
3466 (set_iterator_to_next, next_element_from_buffer): Likewise.
3467
3468 * dispnew.c (buffer_posn_from_coords): Fix position when the
3469 current display element is a grapheme cluster in bidi-reordered
3470 region.
3471
840b985a
AR
34722010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3473
3474 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3475 the regions may overlap.
3476
5bc88f4b
JB
34772010-09-21 Juanma Barranquero <lekktu@gmail.com>
3478
3479 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3480
92bc9a36
DN
34812010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3482
d19e096e
DN
3483 * emacs.c: Do not include sys/ioctl.h, not needed.
3484
92bc9a36
DN
3485 * doprnt.c: Do not include stdlib.h, config.h does it.
3486 Move #include before macro definition.
3487
15f844ac
DN
34882010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3489
48e24408
DN
3490 * Makefile.in (temacs): Link using $(CC) not $(LD).
3491 (LD_FIRSTFLAG): Define using autoconf.
3492 (LD): Remove.
3493
65539506
DN
3494 Remove HAVE_TERMIOS definitions.
3495 * s/usg5-4-common.h (HAVE_TERMIOS):
3496 * s/template.h (HAVE_TERMIOS):
3497 * s/gnu-linux.h (HAVE_TERMIOS):
3498 * s/darwin.h (HAVE_TERMIOS):
3499 * s/cygwin.h (HAVE_TERMIOS):
3500 * s/bsd-common.h (HAVE_TERMIOS):
3501 * s/aix4-2.h (HAVE_TERMIOS):
3502 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3503 defined on all non-MS platforms.
3504 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3505
15f844ac
DN
3506 * xterm.c (xt_action_hook): Use const.
3507
7d701334
JB
35082010-09-20 Juanma Barranquero <lekktu@gmail.com>
3509
3510 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3511 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3512 (gethostname) [!HAVE_SOCKETS]: Remove.
3513 (SOCK_REPLACE_HANDLE): Remove macro.
3514 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3515 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3516 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3517 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3518
f3ec267a
EZ
35192010-09-18 Eli Zaretskii <eliz@gnu.org>
3520
3521 * deps.mk (xml.o): Add dependencies.
3522
93acd23d
JB
3523 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3524 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
3525
3526 * bidi.c (bidi_paragraph_init): Accept an additional argument
3527 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3528 search back until a paragraph with a strong directional character
3529 is found, and use that to determine paragraph's base direction.
3530
3531 * dispextern.h (bidi_paragraph_init): Update prototype.
3532
69e847be
EZ
35332010-09-17 Eli Zaretskii <eliz@gnu.org>
3534
3535 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3536 of w32api >= 3.15. (Bug#6989)
3537
283357a7
LMI
35382010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3539
3540 * process.c (wait_reading_process_output): Don't message about
3541 accept-process-output unless the time limit really is zero.
3542
4ddb20d6
SM
35432010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3544
3545 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3546 int/Lisp_Object mixup).
3547
e24ad6dd
J
35482010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3549
3550 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3551 not HELP.
3552
fb0cf781
J
35532010-09-17 Stephen Berman <stephen.berman@gmx.net>
3554
3555 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3556 bar's pixel width to Lisp (Bug#7048).
3557
4ddb20d6
SM
35582010-09-14 Juanma Barranquero <lekktu@gmail.com>
3559
3560 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 3561
318a04c6
J
35622010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3563
3564 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3565 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3566
78a21772
KH
35672010-09-17 Kenichi Handa <handa@m17n.org>
3568
3569 * ftfont.c (ftfont_check_otf): Fix previous change.
3570
fa3f6039
KH
35712010-09-14 Kenichi Handa <handa@m17n.org>
3572
3573 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3574 existence of GSUB or GPOS.
3575
2b5491fa
JB
35762010-09-14 Juanma Barranquero <lekktu@gmail.com>
3577
3578 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3579
c97c655f
LMI
35802010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3581
ef1b0ba7 3582 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
3583 what it does.
3584 (parse_string): Return nil when the document can't be parsed.
3585
6664fc59 35862010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
3587
3588 * xterm.c (get_current_vm_state): New function.
3589 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3590 want_fullscreen so set_wm_state calls are few (Bug#7013).
3591 (x_handle_net_wm_state): Move code to get_current_vm_state and
3592 call that function.
3593
6664fc59 35942010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
3595
3596 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3597
6664fc59 35982010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
3599
3600 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3601 we may use designation or locking-shift.
3602
6664fc59 36032010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
3604
3605 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3606 sequence when the source is multibyte.
3607
1da70e99
AS
36082010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3609
6664fc59
JB
3610 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3611 Don't make first argument optional. Doc fix.
1da70e99 3612
26632d8d
LMI
36132010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3614
3615 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3616 parameters for the doc string.
3617
21fa8e37
LMI
36182010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3619
3620 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3621
5616cc54
SM
36222010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3623
3624 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3625 (syms_of_fns): Don't defsubr Sy_or_n_p.
3626 * lisp.h: Don't declare Fy_or_n_p.
3627 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3628
381408e2
LMI
36292010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3630
3631 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3632
36332010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3634
3635 * xml.c: New file.
3636 (Fhtml_parse_buffer): New function to interface to the libxml2
3637 html parsing function.
3638
733946e7
JB
36392010-09-05 Juanma Barranquero <lekktu@gmail.com>
3640
3641 * biditype.h: Regenerate.
3642
7574650a
AS
36432010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3644
3645 * nsimage.m (ns_load_image): Check argument types.
3646
3647 * image.c: Remove all uses of gcpro.
3648 (xpm_load): Check all lisp types.
3649 (pbm_load): Likewise.
3650 (png_load): Likewise.
3651 (jpeg_load): Likewise.
3652 (tiff_load): Likewise.
3653 (gif_load): Likewise.
3654 (imagemagick_load_image): Likewise.
3655 (imagemagick_load): Likewise.
3656 (svg_load): Likewise.
3657 (gs_load): Likewise.
3658
6e6b8e25
EZ
36592010-09-04 Eli Zaretskii <eliz@gnu.org>
3660
bba3e508
SM
3661 * w32uniscribe.c (uniscribe_shape): Update commentary.
3662 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
3663 hold them in the logical order.
3664 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3665 return glyph codes in the logical order.
3666
dbfe4532
AS
36672010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3668
3669 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 3670 (imagemagick_load_image): Fix type mismatch.
5e5992c2 3671 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 3672
6d7cc563
JD
36732010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3674
3675 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3676
3677 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3678
3679 * xselect.c: Remove declaration of cut-buffer objects and functions.
3680 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3681 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3682 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3683 (Fx_rotate_cut_buffers_internal): Remove.
3684 (syms_of_xselect): Remove defsubr of above.
3685 Remove intern of QCUT_BUFFERn.
3686
8f4e9110
SM
36872010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3688
3689 * cmds.c (Vblink_paren_function): Remove.
3690 (internal_self_insert): Make it insert N chars at a time.
3691 Don't call blink-paren-function.
3692 (Fself_insert_command): Adjust accordingly.
3693 (syms_of_cmds): Don't declare blink-paren-function.
3694
d419e1d9
KH
36952010-08-31 Kenichi Handa <handa@m17n.org>
3696
3697 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3698 characters.
3699
3700 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
3701 (produce_glyphs): Don't set it->char_to_display here.
3702 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
3703 (produce_special_glyphs): Set temp_it.char_to_display before
3704 calling produce_glyphs.
3705
3706 * xdisp.c (get_next_display_element): Set it->char_to_display
3707 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3708 characters.
3709 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3710 calling PRODUCE_GLYPHS.
3711 (append_space_for_newline): Save and store it->char_to_display.
3712 Set it->char_to_display before calling PRODUCE_GLYPHS.
3713 (extend_face_to_end_of_line): Set it->char_to_display before
3714 calling PRODUCE_GLYPHS.
3715 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3716 character to its byte value.
3717 (get_char_glyph_code): New function.
3718 (produce_stretch_glyph): Set it2.char_to_display too before
3719 calling x_produce_glyphs.
3720 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
3721 non-ASCII characters. Don't set it->char_to_display here.
3722 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 3723 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 3724
b819f760
SM
37252010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3726
3727 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3728
07fa68a7
CY
37292010-08-31 Chong Yidong <cyd@stupidchicken.com>
3730
3731 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3732
cd196f12
SM
37332010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3734
3735 * marker.c (Fcopy_marker): Make the first arg optional.
3736
49a752bb
KH
37372010-08-30 Kenichi Handa <handa@m17n.org>
3738
3739 * composite.c (composition_update_it): Fix computing of
3740 cmp_it->width.
3741
769ae9e1
KH
37422010-08-29 Kenichi Handa <handa@m17n.org>
3743
9e69cb05 3744 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 3745 corresponding bytes.
9e69cb05 3746
4520b858
J
37472010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3748
3749 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3750
fe50eb41
KH
37512010-08-26 Kenichi Handa <handa@m17n.org>
3752
3753 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3754 on calling composition_compute_stop_pos.
3755
f6aa6ec6
KH
37562010-08-25 Kenichi Handa <handa@m17n.org>
3757
9dfdbc0a
KH
3758 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3759 :otf.
3760
f6aa6ec6
KH
3761 * composite.c (composition_compute_stop_pos): Don't break
3762 composition at PT.
3763 (composition_reseat_it): Likewise. Fix calculation of character
3764 position starting a composition.
3765 (Fcomposition_get_gstring): Don't limit the number of components
3766 for automatic composition.
3767
ff94e32c
KH
37682010-08-25 Kenichi Handa <handa@m17n.org>
3769
3770 * composite.c (composition_compute_stop_pos): In forward search,
3771 pay attention to the possibility that some character after ENDPOS
3772 will be composed with charactrs before ENDPOS.
3773
1c409d0b
CY
37742010-08-24 Chong Yidong <cyd@stupidchicken.com>
3775
3776 * keyboard.c (command_loop_1): Don't clobber primary selection
3777 during handle-switch-frame (Bug#6872).
3778
0c372655
MA
37792010-08-23 Michael Albinus <michael.albinus@gmx.de>
3780
3781 * dbusbind.c: Accept UNIX domain sockets as bus address.
3782 (Fdbus_close_bus): New function.
3783 (Vdbus_registered_buses): New variable.
3784 (xd_initialize): Implement string as bus address.
3785 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3786 (Fdbus_get_unique_name, Fdbus_call_method)
3787 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3788 (Fdbus_method_error_internal, Fdbus_send_signal)
3789 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3790 check. This is done in xd_initialize_bus. Adapt doc string, if
3791 necessary.
3792 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3793 Vdbus_registered_buses.
3794 (Vdbus_registered_objects_table): Create hash.
3795
7133b7ee
JL
37962010-08-22 Juri Linkov <juri@jurta.org>
3797
3798 * keyboard.c (Fexecute_extended_command): Move reading a command name
3799 with `completing-read' to a new Elisp function `read-extended-command'.
3800 Call it to read a command to `function' (bug#5364, bug#5214).
3801
198a7a97
CY
38022010-08-22 Chong Yidong <cyd@stupidchicken.com>
3803
3804 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3805
b0126eac 38062010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
3807
3808 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3809 instead of SAFE_ALLOCA.
3810
b0126eac 38112010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
3812
3813 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3814 (Bug#6214).
3815
b0126eac 38162010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
3817
3818 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3819
b0126eac
CY
38202010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3821
3822 * doc.c (Fsnarf_documentation): Initialize skip_file before
3823 build-files test.
3824
692f3ddc 38252010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 3826
692f3ddc
JB
3827 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3828 New definitions.
b0126eac
CY
3829 (HAVE_TERMIO): Remove.
3830
5f2f0bc1
EZ
38312010-08-22 Eli Zaretskii <eliz@gnu.org>
3832
b613941b
EZ
3833 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3834
a583bbef
EZ
3835 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3836 for w32.
3837
3838 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3839 it's done in nt/config.nt.
3840
3841 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3842
5f2f0bc1
EZ
3843 * unexcoff.c (report_error, make_hdr, write_segment)
3844 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3845 Convert argument lists and prototypes to ANSI C.
3846 (make_hdr, write_segment): Remove unused variables.
3847 (unexec): Remove commented-out line. Initialize `new' to shut up
3848 compiler warnings.
3849
a7ebc409
DN
38502010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3851
3852 Simplify termio code.
3853 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3854 HAVE_TERMIO code is obsolete.
3855 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3856 * systty.h: Do not define HAVE_TCATTR.
3857 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3858 Do not define EMACS_HAVE_TTY_PGRP. Only define
3859 EMACS_GET_TTY_PGRP for !DOS_NT.
3860 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
3861 sys/ioctl.h and termios.h, systty.h does it.
3862 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
3863 (init_baud_rate): Remove HAVE_TERMIO code.
3864 (child_setup_tty): Remove HAVE_TERMIO code.
3865 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3866 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3867 (new_ltchars, new_tchars): Remove, unused.
3868 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
3869 code. Remove special casing for __mips__, it was a no-op.
3870 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
3871 (init_sys_modes): Remove HPUX special case.
3872 * process.c: Include stdlib.h unconditionally. Do not include
3873 fcntl.h, systty.h does it. Remove conditional code for
3874 HAVE_SERIAL, it is always true.
3875 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3876 always true when SIGNALS_VIA_CHARACTERS is true.
3877 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3878 !WINDOWSNT means HAVE_TERMIOS.
3879 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3880 conditional, which is true for all HAVE_TERMIOS systems.
3881 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3882 instead of HAVE_TERMIOS.
3883 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3884 EMACS_HAVE_TTY_PGRP.
3885 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3886 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3887 anyway.
3888
914f049b 38892010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
3890
3891 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3892 mirroring pixel positions.
3893
d931da8c
DN
38942010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3895
b5c76d0c
DN
3896 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3897 write only.
3898 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3899 malloc_sbrk_used, nothing uses them.
3900
74815588
DN
3901 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3902 defined, unconditionally defined in lisp.h.
3903
f5817d1c
DN
3904 * term.c: Do not include <termios.h>, systty.h does it.
3905
d931da8c
DN
3906 * s/unixware.h (HAVE_TCATTR):
3907 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3908 systty.h defines it when HAVE_TERMIOS is defined.
3909
ff2de6d2 39102010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 3911
b43c883c 3912 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 3913 terminals: add one-character offset for R2L lines.
b43c883c 3914
491a1546
EZ
3915 * emacs.c <emacs_version>: Add a comment regarding
3916 msdos/mainmake.v2's dependency on the syntax of this declaration.
3917
2396cbba
EZ
39182010-08-20 Eli Zaretskii <eliz@gnu.org>
3919
3920 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3921 position for R2L lines by mirroring the pixel position wrt the
3922 text are box. Improve commentary.
3923
7df6150a
AS
39242010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3925
3926 * image.c (imagemagick_clear_image): Remove debugging output.
3927
a2e5caf7
SM
39282010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3929
3930 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3931 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3932 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3933 self-insert-face.
3934 (syms_of_cmds): Initialize the new vars.
3935
20d60baf
JR
39362010-08-19 Jason Rumney <jasonr@gnu.org>
3937
cc477da7
JR
3938 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3939
20d60baf
JR
3940 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3941
2c0ac867
J
39422010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3943
3944 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3945
93352106
EZ
39462010-08-18 Eli Zaretskii <eliz@gnu.org>
3947
3948 * xterm.c (x_draw_bar_cursor):
3949 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3950 R2L, draw the bar cursor on its right rather than on its left.
3951
c785836d
SM
39522010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3953
0193499f
SM
3954 * eval.c (Fdefmacro): Only obey one declaration.
3955
c785836d
SM
3956 * casefiddle.c (casify_region): Setup gl_state.
3957
9cb728a5
J
39582010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3959
3960 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3961
e1e18511
J
39622010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3963
1d77b63e 3964 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 3965
64cb6c78
J
39662010-08-18 David De La Harpe Golden <david@harpegolden.net>
3967
3968 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3969 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3970 QPRIMARY => NXPrimaryPboard.
3971 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3972 NXPrimaryPboard => QPRIMARY.
3973 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3974 NXSecondaryPboard = SecondarySelection.
3975 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3976
0c9b8993
GM
39772010-08-18 Joakim Verona <joakim@verona.se>
3978
3979 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3980 defined:
3981 (imagemagick_image_p): New function to test for ImageMagic image.
3982 (imagemagick_load): New function to load ImageMagick image.
3983 (imagemagick_load_image): New function, helper for imagemagick_load.
3984 (imagemagick-types): New function.
3985 (Qimagemagick): New Lisp_object.
3986 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 3987
c3554f68
SM
39882010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3989
3990 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3991 is a string.
3992
1ff2e434
J
39932010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3994
3995 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3996 x_set_tool_bar_position handler.
3997
0cc56427
EZ
39982010-08-17 Eli Zaretskii <eliz@gnu.org>
3999
4000 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
4001 x_set_tool_bar_position handler, needed to support changes from
4002 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
4003
e45a249b
JD
40042010-08-16 Jan Djärv <jan.h.d@swipnet.se>
4005
921242c6
J
4006 * nsselect.m: include keyboard.h for QPRIMARY, remove its
4007 declaration (Bug#6863).
573d150b 4008 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 4009
e45a249b
JD
4010 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
4011
4012 * keyboard.h (QPRIMARY): Declare (Bug#6864).
4013
7c23dd44
CY
40142010-08-16 Chong Yidong <cyd@stupidchicken.com>
4015
4016 * keyboard.c (command_loop_1): Avoid setting selection twice,
4017 since it's done in deactivate-mark as well.
4018 (Vselect_active_regions): Change default to t. Replace `lazy'
4019 with non-default value `only', meaning only set PRIMARY for
4020 temporarily active regions.
4021
4022 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
4023 select-active-regions.
4024
0005830c
J
40252010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4026
4027 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
4028 isn't a string.
4029
603dfc72
AS
40302010-08-15 Andreas Schwab <schwab@linux-m68k.org>
4031
4032 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
4033
c25ce9d0
J
40342010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4035
c3554f68
SM
4036 * keyboard.c (parse_tool_bar_item): malloc buf.
4037 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
4038 new_lbl (Bug#6855).
c25ce9d0 4039
5872c762
EZ
40402010-08-14 Eli Zaretskii <eliz@gnu.org>
4041
b236615c
EZ
4042 * xterm.c (x_draw_stretch_glyph_string):
4043 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
4044 the cursor on the right edge of the stretch glyph.
4045
c3554f68
SM
4046 * xdisp.c (window_box_right_offset, window_box_right):
4047 Fix commentary.
b236615c 4048
5872c762
EZ
4049 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
4050 direction when point is inside a run of whitespace characters.
4051
4052 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
4053
e66f9a1b
JR
40542010-08-14 Jason Rumney <jasonr@gnu.org>
4055
4056 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
4057
79d6f59e
CY
40582010-08-14 Chong Yidong <cyd@stupidchicken.com>
4059
4060 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
4061
1c9b4129
JR
40622010-08-13 Jason Rumney <jasonr@gnu.org>
4063
4064 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4065 (MessageBoxW_Proc): New function typedef.
4066 (unicode-message-box): New function pointer.
4067 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
4068
2b4e6277
J
40692010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4070
4071 * frame.h (Qtool_bar_position): Declare.
4072
4073 * xfns.c (Fx_create_frame): Call x_default_parameter for
4074 Qtool_bar_position.
4075
94c97d85
EZ
40762010-08-13 Eli Zaretskii <eliz@gnu.org>
4077
8ee81892
EZ
4078 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4079 (report_error, report_error_1): Ditto.
4080 (write_segment): Remove "#if 0" unused code.
4081 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4082 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4083 (start_of_text): Remove unused function (was used only if NO_REMAP
4084 was NOT defined).
4085
891ef8f7
EZ
4086 * msdos.c (IT_set_face): Fix format string to match argument
4087 types.
4088 (IT_write_glyphs, IT_note_mode_line_highlight)
4089 (IT_set_frame_parameters): Remove unused variables.
4090 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4091 (IT_set_terminal_modes): Disambiguate expression in if clause.
4092 (Fmsdos_remember_default_colors): Return Qnil.
4093 (IT_set_frame_parameters): Add parens to disambiguate boolean
4094 expression for logging the cursor type to termscript.
4095 (keyboard_layout_list, keypad_translate_map)
4096 (grey_key_translate_map): Add braces in inner initializers.
4097 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4098 (dos_rawgetc): Remove unused label.
4099 (XMenuActivate): Add braces to remove ambiguous `else'.
4100 (dos_ttraw): Always return a value.
4101 (spawnve): Declare.
4102 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4103
4104 * dosfns.h (x_set_title): Declare.
4105
4106 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4107 Remove unused variables.
4108
4109 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4110 variables.
4111 (init_dosfns): Declare get_lim_data.
4112 (system_process_attributes): Declare Fget_internal_run_time.
4113
38e41e0e
EZ
4114 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4115 list to be consistent with menu.h.
4116
94c97d85
EZ
4117 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4118 warnings due to mixing of "char *" and "const char *".
4119
c5683ceb
SM
41202010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4121
4122 Introduce a new comment style "c" flag.
4123 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4124 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4125 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4126 (syntax_prefix_flag_p): New function.
4127 (Fstring_to_syntax): Understand new "c" flag.
4128 (Finternal_describe_syntax_value): Recognize new flag; use the
4129 SYNTAX_FLAGS_* macros.
4130 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4131 comment style to accomodate the new styles.
4132 (back_comment, forw_comment, Fforward_comment, scan_lists)
4133 (scan_sexps_forward): Update code to obey the new comment style flag.
4134
4135 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4136
4137 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4138
7aee76f4
J
41392010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4140
3a46642b
J
4141 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4142 first.
94dff98f 4143 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
4144
4145 * gtkutil.h (xg_check_special_colors): Declare.
4146
4147 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4148 (xg_create_frame_widgets): Connect theme name changes to
4149 style_changed_cb.
4150
42ca4633
J
4151 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4152 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4153 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 4154 string literal. file is const char*.
42ca4633
J
4155
4156 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4157 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4158 props. Free them at the end.
4159
4160 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4161
c5683ceb
SM
4162 * xrdb.c (get_system_app): Make path const and use char *p for
4163 non-const char.
42ca4633
J
4164
4165 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 4166 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
4167 char *.
4168 (button_names): Is const char *.
4169 (xdialog_show): error_name and pane_string is const.
4170
4171 * process.h (synch_process_death): Is const char*.
4172
4173 * w32menu.c (w32_menu_show):
4174 * nsmenu.m (ns_menu_show): error parameter is const char **.
4175
4176 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4177 is const char **.
4178
4179 * menu.c (Fx_popup_menu): error_name is const.
4180
4181 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4182 with unsigned char and XtPointer with void *.
4183
4184 * gtkutil.h: Replace widget_value with struct _widget_value.
4185 (enum button_type, struct _widget_value): Remove and use the one from
4186 keyboard.h.
4187
4188 * gtkutil.c (get_utf8_string): Always return an allocated string.
4189 Parameter is const.
4190 (create_dialog, xg_create_one_menuitem, create_menus)
4191 (xg_item_label_same_p, xg_update_menu_item): Free result from
4192 get_utf8_string.
4193 (xg_separator_p, xg_item_label_same_p): label is const.
4194
4195 * font.h (font_open_by_name): Make name const.
4196
4197 * font.c (font_open_by_name): Make name const.
4198
4199 * floatfns.c (matherr): Use a const char* variable for x->name.
4200
4201 * emacs.c (main): Pass char[] to putenv instead of literal.
4202
4203 * callproc.c (synch_process_death): Make const.
4204 (Fcall_process): Make signame const.
4205
9c5bd55a
J
4206 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4207 (addDisplayItemWithImage): Use const char*.
4208
4209 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4210 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4211
4212 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4213
4214 * keyboard.h (_widget_value): name, value and key are const char*.
4215
7aee76f4
J
4216 * unexmacosx.c (unexec_error): Use const char *.
4217
09d93395
DN
42182010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4219
4220 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4221 (font_parse_name, font_open_by_name):
09d93395 4222 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4223 (font_parse_name, font_open_by_name): Remove const.
09d93395 4224
671d409f
AS
42252010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4226
4227 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4228 definition.
4229
4230 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4231 * m/amdx86-64.h: Likewise.
4232 * m/arm.h: Likewise.
4233 * m/hp800.h: Likewise.
4234 * m/ia64.h: Likewise.
4235 * m/ibmrs6000.h: Likewise.
4236 * m/ibms390.h: Likewise.
4237 * m/intel386.h: Likewise.
4238 * m/iris4d.h: Likewise.
4239 * m/m68k.h: Likewise.
4240 * m/macppc.h: Likewise.
4241 * m/mips.h: Likewise.
4242 * m/sh3.h: Likewise.
4243 * m/sparc.h: Likewise.
4244 * m/template.h: Likewise.
4245 * m/vax.h: Likewise.
4246 * m/xtensa.h: Likewise.
4247 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4248 WORDS_BIG_ENDIAN.
4249 * lisp.h: Likewise.
4250 * md5.c: Likewise.
4251 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4252
8ea90aa3
DN
42532010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4254
4255 Use const char* instead of char*.
4256 Reduce the number of warnings with -Wwrite-strings.
4257 * xrdb.c (get_environ_db, get_system_name):
4258 * unexelf.c (find_section):
4259 * term.c (string_cost, string_cost_one_line, per_line_cost)
4260 (get_named_tty, init_tty):
4261 * sysdep.c (sys_subshell):
4262 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4263 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4264 * search.c (Freplace_match):
4265 * process.c (Fmake_network_process, send_process, init_process):
4266 * lread.c (Fload, init_lread):
4267 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4268 * keyboard.c (parse_tool_bar_item, struct event_head):
4269 * gtkutil.h (xg_get_font_name):
4270 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4271 (make_widget_for_menu_item, make_menu_item, create_menus)
4272 (xg_make_tool_item):
4273 * font.c (parse_matrix, font_parse_name):
4274 * floatfns.c (rounding_driver, float_error_fn_name):
4275 * filelock.c (get_boot_time_1, lock_file_1):
4276 * fileio.c (barf_or_query_if_file_exists, check_writable):
4277 * editfns.c (get_system_name, get_operating_system_release)
4278 (Fencode_time, Fset_time_zone_rule):
4279 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4280 * buffer.c (defvar_per_buffer): Use const.
4281
7815fe19 42822010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 4283
692f3ddc 4284 * charset.c: Include <stdlib.h>.
7a84eee5
KH
4285 (struct charset_sort_data): New struct.
4286 (charset_compare): New function.
692f3ddc 4287 (Fsort_charsets): New function.
7a84eee5
KH
4288 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4289
4290 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4291 number in CTEXT extended segment.
4292
7815fe19 42932010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
4294
4295 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4296 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4297
7815fe19 42982010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
4299
4300 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4301 (Fhash_table_size): Fix typos in docstrings.
4302 (Fmake_hash_table): Doc fix.
4303
7815fe19 43042010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
4305
4306 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4307 Doc fix (bug#5625).
4308
7815fe19 43092010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
4310
4311 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4312 the MSDOS definition.
4313
1b6d8cf0
DN
43142010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4315
675e2c69
DN
4316 Use const char* instead of char*.
4317 * xterm.c (x_create_toolkit_scroll_bar):
4318 * xfont.c (xfont_list_pattern):
4319 * xfns.c (x_default_scroll_bar_color_parameter)
4320 (xic_create_fontsetname, x_default_font_parameter)
4321 (x_screen_planes):
4322 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4323 (store_mode_line_string, decode_mode_spec, display_string):
4324 * menu.c (digest_single_submenu):
4325 * keymap.h (initial_define_key, initial_define_lispy_key):
4326 * keymap.c (initial_define_key, initial_define_lispy_key):
4327 * image.c (image_error, image_keyword):
4328 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4329 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4330 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4331 (ftfont_list, ftfont_match):
4332 * frame.c (frame_parm_table):
4333 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4334 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4335 (font_add_log, font_deferred_log):
4336 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4337 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4338 (font_add_log, font_deferred_log):
4339 * emacs.c (argmatch):
4340 * dispextern.h (struct it):
4341 * coding.c (ENCODE_DESIGNATION):
4342 * charset.c (define_charset_internal): Use const.
4343
25717ca1
DN
4344 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4345
c5683ceb
SM
4346 * xrdb.c: Remove include guard.
4347 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
4348 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4349 realloc->xrealloc instead of using #defines.
4350
efb41e21
EZ
43512010-08-08 Eli Zaretskii <eliz@gnu.org>
4352
cd21226d 4353 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
4354 * editfns.c (Fline_beginning_position, Fline_end_position):
4355 State in the doc strings that start and end of line are in the
4356 logical order.
cd21226d 4357
efb41e21
EZ
4358 * xdisp.c (display_line): Move the handling of overlay arrow after
4359 the call to find_row_edges. (Bug#6699)
4360
746812d9
CY
43612010-08-07 Chong Yidong <cyd@stupidchicken.com>
4362
4363 * keyboard.c (command_loop_1):
4364 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4365
9852377f
CY
43662010-08-07 Chong Yidong <cyd@stupidchicken.com>
4367
4368 * insdel.c (prepare_to_modify_buffer): Save active region text to
4369 Vsaved_region_selection.
4370
4371 * xselect.c (QPRIMARY): Move to keyboard.c.
4372
4373 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
4374 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4375 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 4376
0e9c8657
JB
43772010-08-07 Juanma Barranquero <lekktu@gmail.com>
4378
4379 * alloc.c (lisp_malloc):
4380 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4381 * charset.h (emacs_mule_charset):
4382 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4383 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4384 (bitch_at_user):
4385 * lisp.h (Fcheck_coding_system, Fget_text_property)
4386 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4387 Remove duplicate declarations.
4388
648801d1
DN
43892010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4390
32bc6709
DN
4391 * process.c: Simplify include logic.
4392
3ef1d108
DN
4393 * keyboard.h (quit_char): Add declaration.
4394 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
4395 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4396 Add declarations.
3ef1d108
DN
4397 * sysdep.c:
4398 * w32.c: Remove the above declarations.
4399
97ec208f
DN
4400 Remove extern declarations in .c files, .h files have them.
4401 * xterm.c:
4402 * xdisp.c:
97ec208f
DN
4403 * msdos.c:
4404 * image.c:
4405 * gtkutil.c:
4406 * fileio.c:
4407 * eval.c: Remove declarations.
4408
94eed851
DN
4409 * frame.c (frame_params): Make const.
4410
36e053eb
DN
4411 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4412
0e843971
DN
4413 * emacs.c (emacs_copyright, emacs_version): Make static.
4414 (Vinitial_window_system, Vauto_save_list_file_name)
4415 (Vinhibit_redisplay): Remove declarations.
4416 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4417 for AIX.
4418
648801d1
DN
4419 Use const for some arrays and functions.
4420 * xterm.h (xg_set_icon_from_xpm_data):
4421 * xfns.c (xg_set_icon_from_xpm_data):
4422 * term.c (fkeys):
4423 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4424 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4425 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4426 (frame.c frame_parms):
4427 * emacs-icon.h (gnu_xpm_bits):
4428 * callint.c (callint_argfuns): Use const.
4429
8646d999
J
44302010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4431
4432 * sysdep.c: Move include term.h last of includes (Bug#6812).
4433
cb4545ad
EZ
44342010-08-06 Eli Zaretskii <eliz@gnu.org>
4435
4436 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4437
4438 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4439
4440 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4441
da7e2be6
JB
44422010-08-06 Juanma Barranquero <lekktu@gmail.com>
4443
4444 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4445
3d608a86
J
44462010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4447
7908fb60
J
4448 * xterm.h (x_get_focus_frame): Declare.
4449
4450 * keyboard.h (poll_for_input_1): Unconditionally declare.
4451
4094bf36
J
4452 * nsterm.h (x_set_menu_bar_lines): Declare.
4453
4454 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4455
3d608a86
J
4456 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4457
4458 * window.c: Include menu.h.
4459
4460 * unexmacosx.c (print_region_list, print_regions)
4461 (build_region_list, find_emacs_zone_regions)
4462 (unexec_regions_merge, read_load_commands, dump_it)
4463 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4464
4465 * term.c: Check HAVE_SYS_IOCTL_H.
4466
686b968e 4467 * sysdep.c: Check HAVE_TERM_H.
3d608a86 4468
686b968e 4469 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
4470
4471 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4472 (ns_ring_bell, ns_defined_color, hide_hourglass)
4473 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4474 Convert to ANSI C prototypes.
4475 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4476 before code.
4477
4478 * nsterm.h : Include sysselect.h.
4479 (x_sync, x_get_focus_frame, x_set_mouse_position)
4480 (x_set_mouse_pixel_position, x_make_frame_visible)
4481 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4482 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4483 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4484 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 4485 Declare.
3d608a86
J
4486
4487 * nsmenu.m (popup_activated, name_is_separator)
4488 (syms_of_nsmenu): Convert to ANSI C prototypes.
4489 (runMenuAt): Prototypes and move declarations before code.
4490
4491 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4492
4493 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4494 prototypes.
4495
4496 * nsfns.m (have_menus_p, ns_display_info_for_name)
4497 (x_set_cursor_type, ns_appkit_version_str)
4498 (ns_appkit_version_int, ns_do_applescript)
4499 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4500 (syms_of_nsfns): Convert to ANSI C prototypes.
4501
4502 * menu.h (x_set_menu_bar_line): Declare.
4503 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4504
4505 * lisp.h (fmod_float): Declare.
4506
4507 * image.c (xpm_scan, xpm_make_color_table_v)
4508 (xpm_put_color_table_v, xpm_get_color_table_v)
4509 (xpm_make_color_table_h, xpm_put_color_table_h)
4510 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4511 (xpm_load): Convert to ANSI C prototypes.
4512
4513 * emacs.c: Include nsterm.h if HAVE_NS.
4514
4515 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4516
fce70521
DN
45172010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4518
4519 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4520 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4521 (socket_options): Use const char* for name.
4522
a11889ab
JB
45232010-08-06 Juanma Barranquero <lekktu@gmail.com>
4524
4525 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4526
4527 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4528 Don't declare xmalloc_widget_value and digest_single_submenu.
4529
4530 * w32font.c (Qlatin): Remove declaration.
4531
4532 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4533
c95b508f 4534 * dired.c (compile_pattern): Restore declaration.
a11889ab 4535
6254cdda
DN
45362010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4537
04bab72c
DN
4538 Remove extern declarations in .c files, .h files have them.
4539 * data.c:
4540 * dired.c:
4541 * editfns.c:
4542 * filelock.c:
4543 * fns.c:
4544 * font.c:
4545 * fontset.c:
4546 * frame.c:
4547 * fringe.c:
4548 * ftfont.c:
4549 * gtkutil.c:
4550 * indent.c:
4551 * keyboard.c:
4552 * keymap.c:
4553 * lread.c:
4554 * menu.c:
4555 * print.c:
4556 * search.c:
4557 * sound.c:
4558 * window.c:
4559 * xdisp.c:
4560 * xfaces.c:
4561 * xfns.c:
4562 * xfont.c:
4563 * xftfont.c:
4564 * xmenu.c:
4565 * xterm.c: Remove declarations.
4566
dff94ed5
DN
4567 Cleanup syssignal.h.
4568 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4569 (main_thread): Move down to remove #ifdef.
4570 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4571 Remove conditional definition following unconditional ones.
4572
99f3388e
DN
4573 * lisp.h: Remove HAVE_SHM code, unused.
4574 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4575 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4576 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4577 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4578 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4579 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4580 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4581 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4582 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4583 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4584 (Qwindow_scroll_functions, Vafter_load_alist)
4585 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4586 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4587 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4588 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4589 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4590 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4591 (initial_argv, last_nonmenu_event, load_in_progress)
4592 (noninteractive_need_newline, scroll_margin): Add declarations.
4593
bba3e508
SM
4594 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4595 Remove declarations, menu.h has them.
99f3388e
DN
4596 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4597 (Vinput_method_function, Qinput_method_function)
4598 (Qevent_symbol_element_mask, last_event_timestamp):
4599 * dispextern.h (Voverflow_newline_into_fringe):
4600 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4601 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4602 (syms_of_w32font, syms_of_nsfont):
4603 * fontset.h (find_font_encoding, Qlatin):
4604 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4605 (Vtool_bar_mode, set_frame_menubar):
4606 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4607 * xterm.h (Qx_gtk_map_stock):
4608 * keymap.h (meta_prefix_char): Add declarations.
4609
9f5dd6f2
DN
4610 * term.c: Remove dead code.
4611
6254cdda
DN
4612 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4613 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4614 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4615 which is what was there before BSD_PGRPS was removed.
4616
29cf3e20
EZ
46172010-08-05 Eli Zaretskii <eliz@gnu.org>
4618
4619 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4620
4621 * unexcoff.c: Renamed from unexec.c.
4622
aaa0a19a
SM
46232010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4624
4625 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4626
8d1d9587
JB
46272010-08-03 Johan Bockgård <bojohan@gnu.org>
4628
4629 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 4630 (Bug#6744)
8d1d9587 4631
9a747ba6
JD
46322010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4633
4d464ae4
JD
4634 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4635 to TRUE if depth of screen is < 16.
4636
ac01763e
JD
4637 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4638 USE_GTK_TOOLTIP.
e0d62a9b
JB
4639 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4640 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 4641 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
4642 USE_GTK_TOOLTIP.
4643 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4644
4645 * xterm.h (USE_GTK_TOOLTIP): New define.
4646 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4647
9a747ba6
JD
4648 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4649 to Control-D (Bug#6771).
4650
7b0815ba
JB
46512010-08-02 Juanma Barranquero <lekktu@gmail.com>
4652
4653 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4654 Wording by Drew Adams <drew.adams@oracle.com>.
4655
aa1859f5
J
46562010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4657
4658 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4659 ttip_lbl.
4660
4661 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4662 calling gtk_widget_queue_draw.
4663 (x_free_frame_resources): Call xg_free_frame_widgets.
4664
4665 * xfns.c (x_gtk_use_system_tooltips): New variable.
4666 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4667 new gtkutil tooltip functions to show the tooltip.
4668 (Fx_hide_tip): Call xg_hide_tooltip.
4669 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4670
4671 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4672 (xg_show_tooltip, xg_hide_tooltip): Declare.
4673
4674 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
4675 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4676 New functions.
aa1859f5
J
4677 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4678 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4679 Remove code that is commented out.
4680
76417ef4
SM
46812010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4682
4683 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4684
16041401
CY
46852010-07-31 Chong Yidong <cyd@stupidchicken.com>
4686
4687 * xselect.c (x_own_selection): Use list4.
4688
2c09a58f
DN
46892010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4690
4691 * buffer.c (Qwindow): Do not define, already defined in data.c.
4692 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4693
59df9fdd 46942010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 4695
59df9fdd
JB
4696 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4697 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4698 * config.in: Undef HAVE_DIRENT_H.
1c97e857 4699 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 4700 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 4701
1b231651
DN
47022010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4703
4704 Rename s/usg5-4.h -> s/usg5-4-common.h.
4705 * s/usg5-4.h: Rename file to ...
4706 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4707 * s/unixware.h:
4708 * s/sol2-6.h:
4709 * s/irix6-5.h: Update includes accordingly.
4710
bfeabdc3
JD
47112010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4712
2ebf1083
J
4713 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4714
bfeabdc3 4715 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
4716 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4717 Remove toolbar_height.
4718 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
4719 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4720 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4721 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4722
4723 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4724
4725 * xfns.c (x_set_tool_bar_position): New function.
4726 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4727 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 4728 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
4729
4730 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4731 and FRAME_TOOLBAR_LEFT_WIDTH.
4732
4733 * gtkutil.h (xg_change_toolbar_position): Declare.
4734
4735 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4736 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4737 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4738 (xg_create_frame_widgets): Create a hobox for placing widgets
4739 vertically. Use gtk_box_pack_start.
ef1b0ba7 4740 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
4741 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4742 (xg_update_frame_menubar, free_frame_menubar): Change to
4743 xg_height_or_width_changed.
4744 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4745 size correctly. Remove hardcoded 4, instead use handlebox size -
4746 toolbar size.
4747 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 4748 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
4749 (xg_pack_tool_bar): POS is a new parameter.
4750 Set orientation of tool bar based on pos.
4751 Only make handlebox_widget if NULL.
4752 Check if tool bar goes to vbox or hbox depending on pos.
4753 (xg_update_tool_bar_sizes): New function.
686b968e 4754 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
4755 height, call xg_update_tool_bar_sizes instead.
4756 (free_frame_tool_bar): Remove from hbox or vbox depending on
4757 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4758 (xg_change_toolbar_position): New function.
4759
4760 * frame.h (struct frame): Add tool_bar_position.
4761 (Qbottom): Declare.
4762
4763 * frame.c (Qtool_bar_position): New variable.
4764 (make_frame): Set tool_bar_position to Qtop.
4765 (frame_parms): Add tool-bar-position.
4766 (x_report_frame_params): Store tool_bar_position.
4767 (x_set_fringe_width): Reset wm size hint after fringe changes.
4768
26469a38
DN
47692010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4770
4771 Make lisp_time_argument declaration work on all systems.
4772 * lisp.h (lisp_time_argument): Move declaration ...
4773 * systime.h (lisp_time_argument): ... here
4774 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4775
8848b728
JD
47762010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4777
4778 * vm-limit.c (POINTER): Add typedef for it.
4779 (start_of_data): Change return type from POINTER to char *.
4780
4781 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4782 HAVE_WINDOW_SYSTEM.
4783
76fd1ee9
DN
47842010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4785
0441987e
DN
4786 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4787 Remove reference to __osf__, unused.
4788
56a000c7
DN
4789 * mem-limits.h: Remove duplicated includes.
4790 (NULL): Remove definition, unused.
4791 (POINTER): Remove definition.
4792 (start_of_data): Use char* in prototype, as the function
4793 definition does.
4794
e6cba650
DN
4795 Remove extern declarations from .c files, and them to .h files.
4796 * keyboard.h (Qhelp_echo, waiting_for_input)
4797 (input_available_clear_time, ignore_mouse_drag_p)
4798 (Vdouble_click_time, real_this_command, Vthis_original_command):
4799 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4800 (Voverriding_local_map_menu_flag):
4801 * lisp.h (Qinteractive_form, use_file_dialog)
4802 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4803 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4804 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4805 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4806 (Qfunction, debug_on_next_call, Qfield)
4807 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4808 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4809 (Qfile_directory_p, Qinsert_file_contents)
4810 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4811 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4812 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4813 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4814 (Qminibuffer_prompt)
4815 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4816 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4817 (gray_bitmap_bits, xic_create_fontsetname):
4818 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4819
4820 * xsmfns.c (Vuser_login_name):
4821 * xrdb.c (Vdouble_click_time):
4822 * xfaces.c (xic_create_fontsetname):
4823 * w32select.c (waiting_for_input):
4824 * print.c (minibuffer_auto_raise):
4825 * msdos.c (Qhelp_echo):
4826 * macros.c (real_this_command):
4827 * keymap.c (Voverriding_local_map):
4828 * xterm.c (poll_for_input_1, gray_bitmap_width)
4829 (gray_bitmap_height, gray_bitmap_bits;
4830 * xmenu.c ( Voverriding_local_map)
4831 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4832 (use_file_dialog, Xt_app_con):
4833 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4834 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4835 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4836 (Qtool_bar_lines, ignore_mouse_drag_p):
4837 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4838 (Qrear_nonsticky, nconc2):
4839 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4840 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4841 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4842 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4843 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4844 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4845 (gc_in_progress):
4846 * doc.c (Voverriding_local_map, Qremap):
4847 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4848 (Vcompletion_regexp_list):
4849 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4850 (Qcompletion_ignore_case):
4851 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4852 (Vhistory_length, Vthis_original_command, real_this_command)
4853 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4854 * image.c (Qrisky_local_variable):
4855 * fontset.c (QCname):
4856 * fns.c (minibuffer_auto_raise, QCname):
4857 * dispnew.c (char_ins_del_cost):
4858 * composite.c (font_fill_lglyph_metrics):
4859 * cmds.c (Qface, Vtranslation_table_for_input):
4860 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4861 * ccl.c (charset_unicode):
4862 * callproc.c (Vtemporary_file_directory):
4863 * buffer.c (emacs_strerror): Remove extern declarations.
4864
4865 * data.c (Qwindow): Make non-static, used from other files too.
4866 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4867
76fd1ee9
DN
4868 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4869 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4870 * s/usg5-4.h (COFF):
4871 * s/template.h:
4872 * s/msdos.h (COFF, NO_REMAP):
4873 * s/ms-w32.h (NO_REMAP):
4874 * s/hpux10-20.h (NO_REMAP):
4875 * m/sparc.h (SEGMENT_MASK):
4876 * m/m68k.h (NO_REMAP):
4877 * m/intel386.h (SEGMENT_MASK):
4878 * m/arm.h (NO_REMAP):
4879 * m/alpha.h (COFF):
4880 * m/template.h: Remove references to unused defines.
4881
8a52f00a
JD
48822010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4883
4884 * xsettings.c (Ftool_bar_get_system_style): Also check for
4885 Qtext_image_horiz.
4886
4887 * xdisp.c (Qtext_image_horiz): Define.
4888 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 4889 to documentation of tool-bar-style.
8a52f00a
JD
4890
4891 * lisp.h (Qtext_image_horiz): Declare.
4892
4893 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4894 style text_image_horiz.
4895
89dc303e
DN
48962010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4897
60799703
DN
4898 * emacs.c (Fkill_emacs): Remove return statement.
4899
37254dc1
DN
4900 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4901 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
4902 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4903 Remove local extern declarations.
37254dc1 4904
71c7345a
DN
4905 * xmenu.c: Do not included lwlib.h, not needed.
4906
6ba577cb
DN
4907 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4908
fdb183d6
DN
4909 * process.c: Move definitions earlier to minimize #ifdefs.
4910
4911 * xterm.h (x_get_customization_string, x_load_resources)
4912 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4913 (x_check_errors, x_property_data_to_lisp, defined_color)
4914 (xic_set_xfontset, x_defined_color): Use const.
4915
4916 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4917 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4918
4919 * xselect.c (selection_data_to_lisp_data)
4920 (x_property_data_to_lisp):
4921 * xrdb.c (x_get_string_resource, file_p)
4922 (x_get_customization_string, magic_file_p, search_magic_path)
4923 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4924 (x_get_string_resource): Use const.
4925
4926 * xfns.c: Include xlwmenu.h when USE_LUCID.
4927 (x_defined_color, xic_set_xfontset): Use const.
4928 (Fx_hide_tip): Remove local extern declaration.
4929
4930 * xfaces.c (Qmouse_face): Remove declaration.
4931 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 4932 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
4933
4934 * xdisp.c (do_mouse_tracking): Remove declaration.
4935 (add_to_log): Use const.
4936
4937 * minibuf.c (Qmouse_face): Remove declaration.
4938
4939 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4940
4941 * keyboard.h (do_mouse_tracking): Add declaration.
4942
4943 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4944 (QCdata, QCtype, Qcenter): Remove declarations.
4945
4946 * frame.c (x_get_resource_string, x_get_string_resource)
4947 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4948 (x_default_parameter): Use const.
4949
4950 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4951 (QCheight, QCsize, QCname): Remove declarations.
4952
4953 * emacs.c (main): Remove local extern declaration.
4954
4955 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4956 declarations.
4957
4958 * dispnew.c: Remove duplicate #include <unistd.h>.
4959 (update_window, update_frame_1, init_display): Remove local extern
4960 declarations.
4961
4962 * dispextern.h (add_to_log): Remove declaration.
4963 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4964 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4965
4966 * dired.c (scmp): Add const.
4967 (directory_files_internal): Remove local extern declaration.
4968
4969 * data.c (Finteractive_form): Use const.
4970
4971 * composite.c (syms_of_composite): Remove local extern declarations.
4972
4973 * charset.c (add_to_log): Remove declaration.
4974
4975 * character.c (strwidth, parse_str_to_multibyte): Add const.
4976
4977 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4978
4979 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4980
89dc303e 4981 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
4982 (Lisp_Subr): Make doc and intspec constant.
4983 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4984 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4985 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4986 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4987 (display_arg): Add declarations.
89dc303e 4988
0ed082fe 49892010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
4990
4991 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4992
0ed082fe
JB
4993 * window.c (Fwindow_height): Doc fix (bug#6518).
4994
49952010-07-27 Juanma Barranquero <lekktu@gmail.com>
4996
4997 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4998
ccaf0336
DN
49992010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
5000
977105dc
DN
5001 * keyboard.c (Ftop_level, Fexit_recursive_edit)
5002 (Fabort_recursive_edit): Remove return statements in NO_RETURN
5003 functions.
5004
f5ada890
DN
5005 * frame.h (Qtty_color_mode): Add declaration.
5006
ccaf0336
DN
5007 * lisp.h (Ftop_level, Fexit_recursive_edit)
5008 (Fabort_recursive_edit): Mark as NO_RETURN.
5009
dfe3c90f
KH
50102010-07-26 Kenichi Handa <handa@m17n.org>
5011
5012 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 5013 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 5014
7d383292
JB
50152010-07-26 Juanma Barranquero <lekktu@gmail.com>
5016
5017 * lread.c (unreadpure, mapatoms_1): Make static.
5018
da31e629
JB
50192010-07-25 Juanma Barranquero <lekktu@gmail.com>
5020
5021 * terminfo.c (tparam): Fix prototype of tparm.
5022
7bfa6d77
AS
50232010-07-25 Andreas Schwab <schwab@linux-m68k.org>
5024
dcc19aac
AS
5025 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
5026 find start of text segment.
5027 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
5028 is defined.
5029
7bfa6d77
AS
5030 * callproc.c (set_initial_environment): Avoid unbalanced braces.
5031
63f9a672
KB
50322010-07-25 Ken Brown <kbrown@cornell.edu>
5033
5034 * vm-limit.c (check_memory_limits): Fix previous change;
5035 accidentally reverted an earlier change.
5036
24933075
KB
50372010-07-25 Ken Brown <kbrown@cornell.edu>
5038
5039 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
5040 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
5041
361358ea
JB
50422010-07-25 Juanma Barranquero <lekktu@gmail.com>
5043
5044 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
5045 * dired.c (opendir, readdir): Fix prototypes.
5046 * editfns.c (w32_get_internal_run_time): Fix prototypes.
5047 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
5048 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
5049 (telldir): Remove declaration.
5050 * ralloc.c (real_morecore, __morecore): Fix prototypes.
5051 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
5052 * syssignal.h (strsignal): Fix prototype.
5053 * term.c (tparam): Fix prototype.
5054 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
5055 (term_get_fkeys): Set inside "#ifndef DOS_NT".
5056 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
5057 and __morecore.
5058 * w32gui.h (XParseGeometry): Fix prototype.
5059 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
5060 * w32term.c (my_set_focus): Declare inside #if 0.
5061 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
5062 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
5063 (drain_message_queue, get_next_msg, post_msg, parse_button)
5064 (ClipboardSequence_Proc): Fix prototypes.
5065 (wait_for_sync): Remove declaration.
5066
630b9592
JB
50672010-07-24 Juanma Barranquero <lekktu@gmail.com>
5068
5069 * w32fns.c (w32_to_x_color): Remove, unused.
5070
6a0d6611
AS
50712010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5072
5073 * lisp.h: Remove leftover P_.
5074
4e8608ff
DN
50752010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5076
5077 * ecrt0.c, unexalpha.c: Remove files, unused.
5078
c8197983
AS
50792010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5080
5081 * cmds.c (internal_self_insert): Make static.
5082 * lisp.h (internal_self_insert): Remove declaration.
5083
97b372d7
JB
50842010-07-23 Juanma Barranquero <lekktu@gmail.com>
5085
33ac0414
JB
5086 * alloc.c (free_float):
5087 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5088 * frame.c (delete_frame_handler):
5089 * ralloc.c (reorder_bloc):
5090 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5091 Remove unused static functions.
5092
94da8397
JB
5093 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5094 it is called only from NS code.
5095
2e6c8532
JB
5096 * w32term.c (my_set_focus): #ifdef away; it is called only from
5097 "#ifdef 0" code.
5098
97b372d7
JB
5099 * w32fns.c (x_edge_detection):
5100 * xfaces.c (may_use_scalable_font_p):
5101 Remove obsolete static declarations.
5102
7c3320d8
JB
51032010-07-20 Juanma Barranquero <lekktu@gmail.com>
5104
5105 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5106 (emacs_blocked_realloc, uninterrupt_malloc):
5107 * fringe.c (w32_reset_fringes):
5108 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5109 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5110 * sound.c (be2hs, do_play_sound):
5111 * vm-limit.c (get_lim_data, ret_lim_data):
5112 * w32term.c (x_free_frame_resources):
5113 * xfaces.c (x_create_gc, x_free_gc):
5114 Convert definitions to standard C.
5115
d5273788
SM
51162010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5117
5118 * eval.c (Feval, Ffuncall): Use the new names.
5119
5120 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5121 (DEFUN): Add braces around the union initialisation and use ## to
5122 specify the right union alternative and avoid a cast.
5123
8d16a259
JB
51242010-07-18 Juanma Barranquero <lekktu@gmail.com>
5125
5126 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5127
3b8eff32
CY
51282010-07-17 Chong Yidong <cyd@stupidchicken.com>
5129
5130 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5131
499322ce
J
51322010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5133
5134 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5135 is related to the menu bar (Bug#6499).
a628ad9d 5136 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 5137
f6003da5 51382010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
5139
5140 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5141
5142 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5143
5144 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5145 i.e. don't put back ButtonRelease (Bug#6608).
5146
5147 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5148 instead of Window. Call xg_event_is_for_menubar when
5149 USE_GTK (Bug#6499).
5150
5151 * gtkutil.h (xg_event_is_for_menubar): Declare.
5152
5153 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5154
f6003da5 51552010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
5156
5157 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5158 when it's the same as the old foreground. (Bug#6609)
5159
23243f29
J
51602010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5161
5162 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5163 widget is non-null (Bug#6645).
5164
2b23d2a6
AS
51652010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5166
01b564ff
AS
5167 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5168 Convert old-style definition.
5169
2b23d2a6
AS
5170 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5171 timestamp argument.
5172
c4affd2c
EZ
51732010-07-15 Eli Zaretskii <eliz@gnu.org>
5174
5175 * fringe.c (update_window_fringes): Restore mistakenly reverted
5176 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5177
cf28cebc
J
51782010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5179
5180 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5181 (SET_SAVED_KEY_EVENT): Remove (not used).
5182 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5183 remove size parameter.
5184 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5185 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5186 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5187 ButtonRelease.
6b2c4bd9
J
5188 (x_set_window_size_1): scroll_bar_actual_width is always
5189 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
5190
5191 * xdisp.c (pending_menu_activation): Remove extern declaration.
5192 (prepare_menu_bars): Remove setting of pending_menu_activation.
5193
5194 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
5195 (x_activate_menubar): Set popup_activated_flag for Xt also.
5196 Remove setting of pending_menu_activation.
cf28cebc
J
5197 (set_frame_menubar): Remove check of pending_menu_activation.
5198 Declare menubar_size before code. Correct spelling in comment.
5199
f6c1c771
KH
52002010-07-14 Kenichi Handa <handa@m17n.org>
5201
5202 * font.c (font_open_entity): Cancel previous change.
5203 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5204
20477505
EZ
52052010-07-13 Eli Zaretskii <eliz@gnu.org>
5206
77defa9a
EZ
5207 Remove subprocesses #ifdefs.
5208 * process.c <inhibit_sentinels>: Move to the common part.
5209 (Fwaiting_for_user_input_p): Move to the common part; return nil
5210 if async subprocesses aren't supported.
5211 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5212 MS-DOS. Remove "#ifdef subprocesses".
5213 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5214 (gettimeofday): Remove "#ifdef subprocesses".
5215 (wait_without_blocking): Remove function.
5216 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5217 Remove "#ifdef subprocesses".
5218 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5219 compiled on MS-DOS.
5220 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5221 wait_for_termination on MS-DOS.
5222 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5223 initialization of inhibit_sentinels.
5224 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5225 subprocesses" conditional.
5226 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5227 wait_for_termination, since `buffer' cannot be an integer when
5228 async subprocesses are not supported
5229 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5230 for ifdefing away the call to Fprocess_status.
5231
20477505
EZ
5232 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5233 away the entire body of the function.
5234
b3ffc17c
DN
52352010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5236
01faa934
DN
5237 Remove subprocesses #ifdefs from term.c.
5238 * process.c (add_keyboard_wait_descriptor)
5239 (delete_keyboard_wait_descriptor): Move to common section, do
5240 nothing when subprocesses is not defined.
a628ad9d
JB
5241 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5242 Remove subprocesses #ifdefs.
01faa934 5243
b3ffc17c
DN
5244 Convert maybe_fatal to standard C.
5245 * lisp.h (verror): Declare.
5246 * eval.c (verror): New function containing the code from ...
5247 (error): ... this. Call verror.
5248 * term.c (vfatal): New function containing the code from ...
5249 (fatal): ... this. Call vfatal.
5250 (maybe_fatal): Convert to standard C, use variable number of
5251 arguments. Declare as non-return.
5252 (init_tty): Fix maybe_fatal call.
5253
0521f580
DN
52542010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5255
5256 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5257 (_scroll_bar_note_movement): Convert definitions to standard C.
5258 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5259 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5260
ebd15611
DN
52612010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5262
5263 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5264 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5265 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5266 (xaw_jump_callback, xaw_scroll_callback)
5267 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
5268 (x_wm_set_size_hint, x_activate_timeout_atimer):
5269 Convert definitions to standard C.
ebd15611
DN
5270 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5271 (popup_activate_callback, popup_deactivate_callback)
5272 (menu_highlight_callback, menubar_selection_callback)
5273 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5274 (free_frame_menubar, popup_selection_callback, as)
5275 (create_and_show_popup_menu, dialog_selection_callback)
5276 (create_and_show_dialog):
5277 * xfns.c (hack_wm_protocols, x_window):
5278 * xfaces.c (x_update_menu_appearance):
5279 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5280 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5281 (set_frame_size, update_wm_hints, setup_frame_gcs)
5282 (update_various_frame_slots, update_from_various_frame_slots)
5283 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5284 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5285 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5286
de06a2dd
AS
52872010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5288
a628ad9d 5289 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 5290
fc549af9
EZ
52912010-07-12 Eli Zaretskii <eliz@gnu.org>
5292
5293 * process.c (setup_process_coding_systems): Move to the part
5294 shared by non-subprocesses systems, and make its body empty when
5295 subprocesses is not defined.
5296 (close_process_descs): Move to the part shared by non-subprocesses
5297 systems.
1408902e
EZ
5298 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5299 ANSI C.
fc549af9 5300
d5a3eaaf
AS
53012010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5302
5303 * editfns.c (transpose_markers): Convert old-style definition.
5304 * emacs.c (abort, shut_down_emacs, fixup_locale)
5305 (synchronize_system_time_locale)
5306 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5307 * floatfns.c (extract_float, matherr, init_floatfns)
5308 (syms_of_floatfns): Likewise.
5309 * fns.c (make_hash_table): Likewise.
5310 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5311 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5312 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5313 (ftfont_variation_glyphs): Likewise.
5314 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5315 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5316 * lread.c (read_filtered_event): Likewise.
5317 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5318 * process.c (wait_reading_process_output): Likewise.
5319 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5320 * search.c (search_buffer, boyer_moore): Likewise.
5321 * syntax.c (scan_sexps_forward): Likewise.
5322 * xdisp.c (try_scrolling): Likewise.
5323 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5324 (face_at_string_position): Likewise.
5325 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5326 * xselect.c (x_get_window_property, receive_incremental_selection)
5327 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5328 Likewise.
5329 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5330
6f704c76
DN
53312010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5332
ded80a25
DN
5333 * callproc.c (child_setup): Remove subprocesses conditional.
5334 Remove code dealing with SET_EMACS_PRIORITY, unused.
5335
49d937f4 5336 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
5337 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5338
5339 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5340 (__do_global_dtors, __main): Use void in definition.
5341 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5342 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5343 the only users from ...
5344 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5345 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5346 (HAVE_VOLATILE): Remove, unused.
5347
6f704c76
DN
5348 Convert more function definitions to standard C.
5349 * xdisp.c (window_box_edges, handle_single_display_spec)
5350 (display_string): Convert definition to standard C.
5351 * scroll.c (do_direct_scrolling, scrolling_1):
5352 * dispnew.c (allocate_matrices_for_frame_redisplay)
5353 (mirrored_line_dance):
5354 * coding.c (code_convert_string):
5355 * charset.c (map_charset_chars):
5356 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5357 (Fregister_ccl_program, Fregister_code_conversion_map):
5358 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5359 (head_table): Make static and const.
5360
e6cfa7c3
AS
53612010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5362
5363 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5364 (PROFILING_LDFLAGS): Set from substitution.
5365 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5366 CFLAGS last.
5367
892dd565
KH
53682010-07-12 Kenichi Handa <handa@m17n.org>
5369
6f2cdcd1
KH
5370 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5371 (shortlisp): Likewise.
5372
892dd565
KH
5373 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5374
5375 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5376 of FONT_ENTITY_INDEX.
5377 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5378 property, get the property value dynamically.
5379 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 5380 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 5381 return value changed.
bba3e508 5382 (syms_of_font): Adjust for the above change.
892dd565 5383
ae96d47a
AS
53842010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5385
c8fc18ee
AS
5386 * blockinput.h: Remove obsolete comment.
5387
89887d67
AS
5388 * lisp.h: Include <stddef.h>.
5389 (OFFSETOF): Don't define.
5390 (VECSIZE): Use offsetof instead of OFFSETOF.
5391 (PSEUDOVECSIZE): Likewise.
5392 * process.c (conv_sockaddr_to_lisp): Likewise.
5393 * alloc.c: Don't include <stddef.h>.
5394 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5395
ae96d47a
AS
5396 * process.c: Remove obsolete comment.
5397
635c0aa1
CY
53982010-07-11 Chong Yidong <cyd@stupidchicken.com>
5399
5400 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5401
a64df650
AS
54022010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5403
8966b757
AS
5404 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5405 index, rindex.
5406 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5407 * editfns.c (Fuser_full_name, Fformat): Likewise.
5408 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5409 * fileio.c (Ffile_symlink_p): Likewise.
5410 * filelock.c (current_lock_owner): Likewise.
5411 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5412 * fontset.c (fontset_pattern_regexp): Likewise.
5413 * lread.c (read1): Likewise.
5414 * sysdep.c (init_system_name): Likewise.
5415 * xfns.c (select_visual): Likewise.
5416 * s/hpux10-20.h (index, rindex): Don't define.
5417 * s/ms-w32.h (index): Likewise.
5418 * s/usg5-4.h: Likewise.
5419
cf237e27
AS
5420 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5421
a8fe7202
AS
5422 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5423 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5424 (egetenv): Likewise.
5425 * doprnt.c (doprnt): Likewise.
5426 * editfns.c (set_time_zone_rule, format2): Likewise.
5427 * emacs.c (decode_env_path): Likewise.
5428 * eval.c (signal_error, error): Likewise.
5429 * insdel.c (replace_range_2): Likewise.
5430 * keyboard.c (cmd_error_internal): Likewise.
5431 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5432 * print.c (write_string, write_string_1, print_error_message):
5433 Likewise.
5434 * vm-limit.c (warn_function, memory_warnings): Likewise.
5435 * xdisp.c (message1, message1_nolog, message_with_string)
5436 (vmessage, message, message_nolog): Likewise.
5437 * emacs.c: Remove duplicate declaration.
5438 * keyboard.h: Likewise.
5439 * lisp.h: Update prototypes.
5440
bb8e180f
AS
5441 * eval.c: Fix indentation problem.
5442
83380e65
AS
5443 * keyboard.c: Include "process.h"
5444
a64df650
AS
5445 * eval.c: Remove obsolete noinline declaration.
5446 * fns.c: Likewise.
5447
6a8033e1
KR
54482010-07-11 Ken Raeburn <raeburn@raeburn.org>
5449
5450 * doprnt.c (doprnt): Take a va_list argument instead of count and
5451 pointer.
5452 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 5453 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
5454 changed to take a va_list argument.
5455 (message): New variadic wrapper.
5456 (message_nolog): Now a variadic function, calling vmessage.
5457 * lisp.h: Include stdarg.h for va_list.
5458 (doprnt, error, message, message_nolog): Decls updated.
5459
462aa963
EZ
54602010-07-11 Eli Zaretskii <eliz@gnu.org>
5461
5462 * process.c (syms_of_process) <delete-exited-processes>: Define
5463 even if !subprocesses.
5464 (delete_exited_processes): Ditto.
5465
5466 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5467 (delete_exited_processes): Don't define.
5468
48104462
CY
54692010-07-10 Chong Yidong <cyd@stupidchicken.com>
5470
5471 * frame.c (make_frame): Initialize menu_bar_lines and
5472 tool_bar_lines members.
bba3e508
SM
5473 (make_initial_frame, make_terminal_frame):
5474 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
5475
5476 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5477
f388c88a
EZ
54782010-07-10 Eli Zaretskii <eliz@gnu.org>
5479
5480 * process.c: Reshuffle #include's. Condition some of the global
5481 and static variables on `subprocesses'.
5482 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5483 Leave only one implementation.
5484 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5485 (kill_buffer_processes, Flist_system_processes)
5486 (Fprocess_attributes, init_process, syms_of_process): Unify the
5487 implementations for with subprocesses and without them.
5488
723f5a07
J
54892010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5490
5491 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5492 correct size for Motif.
5493 (free_frame_menubar): Call x_set_window_size to update frame size.
5494
5495 * xfns.c (x_window): Set borderWidth to 0 for pane and
5496 EmacsFrame. Frame size calculation is wrong otherwise.
5497
2536a4b7
MA
54982010-07-09 Michael Albinus <michael.albinus@gmx.de>
5499
5500 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5501 allows to suppress errors when polling in Emacs' main loop.
5502 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5503 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5504 (Fdbus_method_error_internal, Fdbus_send_signal)
5505 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5506 (Fdbus_register_method): Use it. (Bug#6579)
5507
5842a27b
DN
55082010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5509
5510 * alloc.c: Convert DEFUNs to standard C.
5511 * buffer.c:
5512 * bytecode.c:
5513 * callint.c:
5514 * callproc.c:
5515 * casefiddle.c:
5516 * casetab.c:
5517 * category.c:
5518 * character.c:
5519 * charset.c:
5520 * chartab.c:
5521 * cmds.c:
5522 * coding.c:
5523 * composite.c:
5524 * data.c:
5525 * dbusbind.c:
5526 * dired.c:
5527 * dispnew.c:
5528 * doc.c:
5529 * dosfns.c:
5530 * editfns.c:
5531 * emacs.c:
5532 * eval.c:
5533 * fileio.c:
5534 * filelock.c:
5535 * floatfns.c:
5536 * fns.c:
5537 * font.c:
5538 * fontset.c:
5539 * frame.c:
5540 * fringe.c:
5541 * image.c:
5542 * indent.c:
5543 * insdel.c:
5544 * keyboard.c:
5545 * keymap.c:
5546 * lread.c:
5547 * macros.c:
5548 * marker.c:
5549 * menu.c:
5550 * minibuf.c:
5551 * msdos.c:
5552 * nsfns.m:
5553 * nsmenu.m:
5554 * nsselect.m:
5555 * print.c:
5556 * process.c:
5557 * search.c:
5558 * sound.c:
5559 * syntax.c:
5560 * term.c:
5561 * terminal.c:
5562 * textprop.c:
5563 * undo.c:
5564 * w16select.c:
5565 * w32console.c:
5566 * w32fns.c:
5567 * w32font.c:
5568 * w32menu.c:
5569 * w32proc.c:
5570 * w32select.c:
5571 * window.c:
5572 * xdisp.c:
5573 * xfaces.c:
5574 * xfns.c:
5575 * xmenu.c:
5576 * xselect.c:
5577 * xsettings.c:
5578 * xsmfns.c: Likewise.
5579
d568829b
EZ
55802010-07-08 Eli Zaretskii <eliz@gnu.org>
5581
5582 * process.c (kbd_is_on_hold, hold_keyboard_input)
5583 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5584
52214050
J
55852010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5586
5587 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5588 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5589 unless USE_LUCID.
5590
313d9eb2
DN
55912010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5592
a628ad9d
JB
5593 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5594 declaration.
d8825aa3 5595
295d0d8f
DN
5596 Clean up include guards.
5597 * tparam.c: Remove include guards for config.h, string.h and code
5598 that assumes #ifndef emacs.
5599 * termcap.c:
5600 * unexalpha.c:
5601 * sysdep.c:
5602 * filemode.c:
5603 * filelock.c:
5604 * bidi.c: Likewise.
5605
49d9e6b0
DN
5606 Remove prefix-args.c
5607 * prefix-args.c: Remove file.
5608 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5609 * Makefile.in (temacs${EXEEXT}): Remove references to
5610 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5611 (mostlyclean): Remove reference to prefix-args.
5612 (prefix-args): Remove.
5613
313d9eb2
DN
5614 Simplify cstart_of_data, start_of_code and related code.
5615 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5616 (start_of_data): Merge into start_of_data function.
5617 * sysdep.c (start_of_text): Remove. Move simplified versions of
5618 it in the only users: unexaix.c and unexec.c.
5619 (read_input_waiting): Remove local declaration of quit_char.
5620 (start, etext): Remove declarations.
5621 (start_of_data): Merge with the version in mem-limits.h and move
5622 to vm-limits.c.
5623 * vm-limit.c (start_of_data): Merged and simplified version of the
5624 code formerly in mem-limits.h and sysdep.c.
5625 * unexec.c (start): New declaration, moved from sysdep.c.
5626 (start_of_text): Simplified version of the code formerly in sysdep.c.
5627 * unexaix.c (start_of_text): Simplified version of the code
5628 formerly in sysdep.c.
5629 * m/alpha.h (HAVE_TEXT_START): Remove.
5630 (TEXT_START): Move ...
5631 * unexalpha.c (TEXT_START): ... here.
5632 * s/hpux10-20.h (TEXT_START): Remove.
5633 * s/darwin.h (TEXT_START):
5634 * m/mips.h (TEXT_START):
5635 * m/macppc.h (HAVE_TEXT_START):
5636 * m/m68k.h (TEXT_START):
5637 * m/iris4d.h (TEXT_START):
5638 * m/intel386.h (TEXT_START):
5639 * m/ibmrs6000.h (TEXT_START):
5640 * m/ia64.h (HAVE_TEXT_START):
5641 * s/msdos.h (TEXT_START): Likewise.
5642
72af86bd
AS
56432010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5644
5645 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5646 (overrun_check_free, xstrdup, allocate_string)
5647 (allocate_string_data, compact_small_strings, Fmake_string)
5648 (make_unibyte_string, make_multibyte_string)
5649 (make_string_from_bytes, make_specified_string, make_float)
5650 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5651 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5652 memcpy, memmove, memset, memcmp.
5653 * atimer.c (start_atimer, set_alarm): Likewise.
5654 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5655 (mmap_realloc, init_buffer_once): Likewise.
5656 * callint.c (Fcall_interactively): Likewise.
5657 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5658 (getenv_internal_1): Likewise.
5659 * casefiddle.c (casify_object): Likewise.
5660 * ccl.c (ccl_driver): Likewise.
5661 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5662 * charset.c (load_charset_map_from_file)
5663 (load_charset_map_from_file, load_charset_map_from_vector)
5664 (Fdefine_charset_internal): Likewise.
5665 * cm.c (Wcm_clear): Likewise.
5666 * coding.c (decode_eol, decode_coding_object)
5667 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5668 * data.c (Faset): Likewise.
5669 * dired.c (directory_files_internal, file_name_completion_stat):
5670 Likewise.
5671 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5672 (clear_glyph_row, copy_row_except_pointers)
5673 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5674 (save_current_matrix, restore_current_matrix)
5675 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5676 (mirror_line_dance, scrolling_window): Likewise.
5677 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5678 Likewise.
5679 * doprnt.c (doprnt): Likewise.
5680 * editfns.c (Fuser_full_name, make_buffer_string_both)
5681 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5682 * emacs.c (sort_args): Likewise.
5683 * eval.c (Fapply, Ffuncall): Likewise.
5684 * fileio.c (Ffile_name_directory, make_temp_name)
5685 (Fexpand_file_name, search_embedded_absfilename)
5686 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5687 (auto_save_error): Likewise.
5688 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5689 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5690 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5691 (Fmake_hash_table): Likewise.
5692 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5693 * ftfont.c (ftfont_text_extents): Likewise.
5694 * getloadavg.c (getloadavg): Likewise.
5695 * image.c (define_image_type, make_image, make_image_cache)
5696 (x_create_x_image_and_pixmap, xbm_image_p)
5697 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5698 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5699 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5700 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5701 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5702 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5703 Likewise.
5704 * indent.c (scan_for_column, compute_motion): Likewise.
5705 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5706 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5707 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5708 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5709 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5710 (store_user_signal_events, menu_bar_items, tool_bar_items)
5711 (process_tool_bar_item, append_tool_bar_item)
5712 (read_char_minibuf_menu_prompt, read_key_sequence)
5713 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5714 Likewise.
5715 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5716 Likewise.
5717 * lisp.h (STRING_COPYIN): Likewise.
5718 * lread.c (Fload, read1, oblookup): Likewise.
5719 * msdos.c (Frecent_doskeys): Likewise.
5720 * nsfns.m (Fx_create_frame): Likewise.
5721 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5722 Likewise.
5723 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5724 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5725 Likewise.
5726 * nsmenu.m (ns_update_menubar): Likewise.
5727 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5728 * print.c (print_unwind, printchar, strout, print_string)
5729 (print_error_message): Likewise.
5730 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5731 (Fmake_network_process, Fnetwork_interface_list)
5732 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5733 (init_process): Likewise.
5734 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5735 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5736 Likewise.
5737 * scroll.c (do_scrolling, do_direct_scrolling)
5738 (scrolling_max_lines_saved): Likewise.
5739 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5740 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5741 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5742 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5743 (emacs_set_tty): Likewise.
5744 * term.c (encode_terminal_code, calculate_costs)
5745 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5746 Likewise.
5747 * termcap.c (tgetst1, gobble_line): Likewise.
5748 * termhooks.h (EVENT_INIT): Likewise.
5749 * tparam.c (tparam1): Likewise.
5750 * unexalpha.c (unexec): Likewise.
5751 * unexec.c (write_segment): Likewise.
5752 * unexmacosx.c (unexec_write_zero): Likewise.
5753 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5754 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5755 * w32font.c (w32font_list_family, w32font_text_extents)
5756 (w32font_list_internal, w32font_match_internal)
5757 (w32font_open_internal, compute_metrics, Fx_select_font):
5758 Likewise.
5759 * w32menu.c (set_frame_menubar, add_menu_item)
5760 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5761 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5762 * w32uniscribe.c (uniscribe_list_family): Likewise.
5763 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5764 * window.c (make_window, replace_window, set_window_buffer)
5765 (Fsplit_window): Likewise.
5766 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5767 (add_to_log, message3, x_consider_frame_title)
5768 (append_space_for_newline, extend_face_to_end_of_line)
5769 (decode_mode_spec_coding, init_glyph_string): Likewise.
5770 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5771 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5772 (face_attr_equal_p, make_realized_face, make_face_cache)
5773 (free_realized_faces, lookup_named_face, smaller_face)
5774 (face_with_height, lookup_derived_face)
5775 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5776 (Finternal_set_font_selection_order, realize_default_face)
5777 (compute_char_face, face_at_buffer_position)
5778 (face_for_overlay_string, face_at_string_position, merge_faces):
5779 Likewise.
5780 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5781 (Fx_window_property, x_create_tip_frame)
5782 (Fx_backspace_delete_keys_p): Likewise.
5783 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5784 (xfont_text_extents): Likewise.
5785 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5786 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5787 * xselect.c (x_queue_event, x_get_window_property)
5788 (receive_incremental_selection): Likewise.
5789 * xsmfns.c (x_session_check_input): Likewise.
5790 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5791 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5792 Likewise.
5793 * character.h (BCOPY_SHORT): Removed.
5794 * config.in: Regenerate.
5795 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5796 * emacs.c (main) [PROFILING]: Don't declare
5797 dump_opcode_frequencies.
5798 * lisp.h (safe_bcopy): Remove declaration.
5799 (memset) [!HAVE_MEMSET]: Declare.
5800 (memcpy) [!HAVE_MEMCPY]: Likewise.
5801 (memmove) [!HAVE_MEMMOVE]: Likewise.
5802 (memcmp) [!HAVE_MEMCMP]: Likewise.
5803 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5804 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5805 Don't define.
5806 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5807 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5808 (BCOPY_DOWNWARD_SAFE): Don't define.
5809 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5810 (memcpy) [!HAVE_MEMCPY]: Define.
5811 (memmove) [!HAVE_MEMMOVE]: Define.
5812 (memcmp) [!HAVE_MEMCMP]: Define.
5813
cb768704
J
58142010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5815
5816 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
5817 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5818 New functions.
cb768704
J
5819 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5820 select on empty input mask.
5821 (init_process): Initialize kbd_is_on_hold to 0.
5822
5823 * process.h (hold_keyboard_input, unhold_keyboard_input)
5824 (kbd_on_hold_p): Declare.
5825
5826 * keyboard.c (input_available_signal): Declare.
5827 (kbd_buffer_nr_stored): New function.
5828 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5829 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5830 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5831 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5832 (tty_read_avail_input): If input is on hold, return.
5833 Don't read more that free slots in kbd_buffer (Bug#6571).
5834
3a8ce822
EZ
58352010-07-07 Eli Zaretskii <eliz@gnu.org>
5836
5837 * msdos.h:
5838 * msdos.c:
5839 * dosfns.c:
5840 * w16select.c: Convert function definitions to ANSI C.
5841
a628ad9d
JB
5842 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5843 Remove unused prototypes.
3a8ce822 5844
cf84bb53
JB
58452010-07-07 Juanma Barranquero <lekktu@gmail.com>
5846
5847 * coding.c, sysdep.c: Convert some more functions to standard C.
5848
1a4990fb
JB
58492010-07-07 Juanma Barranquero <lekktu@gmail.com>
5850
5851 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5852 (encode_coding_object): Use SPECPDL_INDEX.
5853 (syms_of_coding): Use DOS_NT.
5854
c0f2f16b
DN
58552010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5856
48fb6855
DN
5857 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5858
c0f2f16b
DN
5859 Make the function member of Lisp_Subr use standard C prototypes.
5860 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5861 (DECL_ALIGN): Add a cast for the function.
5862 * eval.c (Feval, Ffuncall): Use the proper type for each type
5863 function call.
5864
67aecef9
CY
58652010-07-06 Chong Yidong <cyd@stupidchicken.com>
5866
5867 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5868 fringe face id, so face-remapping-alist works (Bug#6091).
5869
b56ceb92
JB
58702010-07-06 Juanma Barranquero <lekktu@gmail.com>
5871
5872 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5873 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5874 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5875
7af07b96
AS
58762010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5877
5878 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5879 * lisp.h: Declare x_get_keysym_name.
5880 * keyboard.c (modify_event_symbol): Don't declare
5881 x_get_keysym_name here.
5882
69e24e34
DN
58832010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5884
5885 * ecrt0.c: Revert conversion to standard C.
5886
d3da34e0 58872010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
5888
5889 * vm-limit.c (memory_warnings):
5890 * keyboard.c (modify_event_symbol):
5891 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5892 (round2, emacs_rint):
5893 * process.c (send_process, old_sigpipe): Convert function
5894 definitions and declarations to standard C.
5895
58962010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
5897
5898 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5899 * xdisp.c: Convert function definitions to standard C.
5900
5901 * cm.c (cmputc): Arg C is now int, not char.
5902 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5903
00be444c
J
59042010-07-05 James Cloos <cloos@jhcloos.com>
5905
5906 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5907
5908 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5909 _NET_WM_ICON_NAME atoms.
5910
5911 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5912 and _NET_WM_ICON_NAME properties, too, matching what is
5913 done in the Gtk+ case.
5914
e4c8d29a
J
59152010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5916
ff919460
J
5917 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5918
e4c8d29a
J
5919 * xsmfns.c (SSDATA): New macro.
5920 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5921 passed to strlen/strcpy/strcat.
bba3e508
SM
5922 (create_client_leader_window): Surround with #ifndef USE_GTK.
5923 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
5924
5925 * xsettings.c (something_changedCB, parse_settings)
5926 (apply_xft_settings): Reformat prototype.
5927 (something_changedCB, init_gconf): Remove unused variable i.
5928 (read_settings): Remove unused variable long_len.
5929
5930 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5931 (xg_get_image_for_pixmap, create_dialog)
5932 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5933 (menuitem_highlight_callback, make_menu_item)
5934 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5935 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5936 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5937 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5938 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5939 (xg_tool_bar_item_expose_callback): Reformat prototype.
5940 (xg_update_menubar): GList *group => GSList *group.
5941 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5942 before use.
5943 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5944 to GTK_IMAGE (wimage).
5945
dd4c5104
DN
59462010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5947
898b4c5c
DN
5948 * atimer.c: Use "" instead of <> for local includes for
5949 consistency with the rest of the code.
5950
dd4c5104
DN
5951 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5952 * xrdb.c (get_system_name):
5953 * window.c (shrink_windows):
5954 * syntax.c (forw_comment):
5955 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5956 (ins_del_costs):
5957 * mem-limits.h (start_of_data):
5958 * lread.c (readevalloop):
5959 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5960 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5961 * frame.c (x_get_focus_frame):
5962 * floatfns.c (fmod_float):
5963 * fileio.c (choose_write_coding_system):
5964 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5965 (malloc_initialize_hook, sort_args, synchronize_locale):
5966 * doprnt.c (doprnt):
5967 * dired.c (compile_pattern):
5968 * data.c (fmod_float):
5969 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5970 (map_char_table_for_charset):
5971 * charset.c (define_charset_internal):
5972 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5973 to standard C.
5974
9a39b306 59752010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 5976 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
5977
5978 * lread.c (read1): Fix up last change to not mess up `c'.
5979
e6cb2cbb
JB
59802010-07-04 Juanma Barranquero <lekktu@gmail.com>
5981
5982 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5983
438105ed
JB
59842010-07-04 Juanma Barranquero <lekktu@gmail.com>
5985
5986 Fix prototypes.
5987
e5447b22 5988 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 5989 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
5990 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5991 arg, as required by internal_condition_case_1.
dcc7404b 5992 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
5993 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5994 (analyse_first): Fix "const const".
e5447b22 5995 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 5996 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 5997 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 5998
971de7fb
DN
59992010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
6000
6001 * alloc.c: Convert function definitions to standard C.
6002 * atimer.c:
6003 * bidi.c:
6004 * bytecode.c:
6005 * callint.c:
6006 * callproc.c:
6007 * casefiddle.c:
6008 * casetab.c:
6009 * category.c:
6010 * ccl.c:
6011 * character.c:
6012 * charset.c:
6013 * chartab.c:
6014 * cmds.c:
6015 * coding.c:
6016 * composite.c:
6017 * data.c:
6018 * dbusbind.c:
6019 * dired.c:
6020 * dispnew.c:
6021 * doc.c:
6022 * doprnt.c:
6023 * ecrt0.c:
6024 * editfns.c:
6025 * fileio.c:
6026 * filelock.c:
6027 * filemode.c:
6028 * fns.c:
6029 * font.c:
6030 * fontset.c:
6031 * frame.c:
6032 * fringe.c:
6033 * ftfont.c:
6034 * ftxfont.c:
6035 * gtkutil.c:
6036 * indent.c:
6037 * insdel.c:
6038 * intervals.c:
6039 * keymap.c:
6040 * lread.c:
6041 * macros.c:
6042 * marker.c:
6043 * md5.c:
6044 * menu.c:
6045 * minibuf.c:
6046 * prefix-args.c:
6047 * print.c:
6048 * ralloc.c:
6049 * regex.c:
6050 * region-cache.c:
6051 * scroll.c:
6052 * search.c:
6053 * sound.c:
6054 * strftime.c:
6055 * syntax.c:
6056 * sysdep.c:
6057 * termcap.c:
6058 * terminal.c:
6059 * terminfo.c:
6060 * textprop.c:
6061 * tparam.c:
6062 * undo.c:
6063 * unexelf.c:
6064 * window.c:
6065 * xfaces.c:
6066 * xfns.c:
6067 * xfont.c:
6068 * xftfont.c:
6069 * xgselect.c:
6070 * xmenu.c:
6071 * xrdb.c:
6072 * xselect.c:
6073 * xsettings.c:
6074 * xsmfns.c:
6075 * xterm.c: Likewise.
6076
ae492bec
EZ
60772010-07-03 Eli Zaretskii <eliz@gnu.org>
6078
76ea4cc9
EZ
6079 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6080 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
6081 `reverse' is specified in the frame parameters.
6082 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
6083 internal-set-lisp-face-attribute. Initialize screen colors from
6084 initial_screen_colors[] when f->default_face_done_p is zero,
6085 instead of depending on being called with default-frame-alist as
6086 the alist argument.
6087
6088 * xfaces.c (update_face_from_frame_parameter): Move out of
6089 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6090 with HAVE_WINDOW_SYSTEM.
6091
1e6255ae
EZ
6092 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6093 to menu-bar-mode, if not set in the frame parameters or in
6094 default-frame-alist.
6095
ae492bec
EZ
6096 * w32console.c (sys_tputs): Adjust argument list to prototype in
6097 term.c.
6098
3a35a84c
JB
60992010-07-03 Juanma Barranquero <lekktu@gmail.com>
6100
6101 * lisp.h (memory_warnings): Fix prototype.
6102
6103 * cm.h (evalcost): Fix prototype.
6104
6105 * cm.c (evalcost): Fix arg type.
6106
c532d349
DN
61072010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6108
6109 * term.c (term_clear_mouse_face, Fidentity):
6110 * syssignal.h (signal_handler_t):
6111 * lisp.h (memory_warnings):
6112 * coding.h (preferred_coding_system):
6113 * cm.h (evalcost):
6114 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6115
c0b36d46
EZ
61162010-07-02 Eli Zaretskii <eliz@gnu.org>
6117
6118 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6119 from prototypes.
6120
6121 * msdos.h (load_pixmap): Don't define away.
6122
383e0970
J
61232010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6124
f57e2426
J
6125 * lisp.h:
6126 * atimer.h: Remove define for P_.
6127
6128 * alloc.c: Remove __P and P_ from .c and .m files.
6129 * atimer.c:
6130 * buffer.c:
6131 * callint.c:
6132 * category.c:
6133 * charset.c:
6134 * chartab.c:
6135 * cm.c:
6136 * coding.c:
6137 * composite.c:
6138 * data.c:
6139 * dired.c:
6140 * dispnew.c:
6141 * doc.c:
6142 * editfns.c:
6143 * emacs.c:
6144 * eval.c:
6145 * fileio.c:
6146 * filelock.c:
6147 * fns.c:
6148 * font.c:
6149 * fontset.c:
6150 * frame.c:
6151 * ftfont.c:
6152 * ftxfont.c:
6153 * gmalloc.c:
6154 * gtkutil.c:
6155 * image.c:
6156 * indent.c:
6157 * intervals.c:
6158 * keyboard.c:
6159 * keymap.c:
6160 * lread.c:
6161 * marker.c:
6162 * menu.c:
6163 * minibuf.c:
6164 * print.c:
6165 * process.c:
6166 * scroll.c:
6167 * search.c:
6168 * sound.c:
6169 * strftime.c:
6170 * syntax.c:
6171 * sysdep.c:
6172 * term.c:
6173 * terminal.c:
6174 * textprop.c:
6175 * unexalpha.c:
6176 * w32console.c:
6177 * w32fns.c:
6178 * w32font.c:
6179 * w32menu.c:
6180 * w32term.c:
6181 * w32uniscribe.c:
6182 * window.c:
6183 * xdisp.c:
6184 * xfaces.c:
6185 * xfns.c:
6186 * xfont.c:
6187 * xftfont.c:
6188 * xmenu.c:
6189 * xselect.c:
6190 * xterm.c: Likewise.
6191
383e0970 6192 Remove P_ and __P macros.
f57e2426
J
6193 * atimer.h: Remove P_ and __P macros.
6194 * buffer.h:
383e0970
J
6195 * category.h:
6196 * ccl.h:
6197 * character.h:
6198 * charset.h:
6199 * cm.h:
6200 * coding.h:
6201 * composite.h:
6202 * dispextern.h:
6203 * disptab.h:
9e892c8d 6204 * dosfns.h:
383e0970
J
6205 * font.h:
6206 * fontset.h:
6207 * frame.h:
6208 * gtkutil.h:
6209 * indent.h:
6210 * intervals.h:
6211 * keyboard.h:
6212 * keymap.h:
6213 * lisp.h:
6214 * macros.h:
6215 * md5.h:
6216 * menu.h:
6217 * msdos.h:
6218 * nsterm.h:
6219 * puresize.h:
6220 * region-cache.h:
6221 * syntax.h:
6222 * syssignal.h:
6223 * systime.h:
6224 * termhooks.h:
9e892c8d 6225 * w32font.h:
383e0970
J
6226 * w32term.h:
6227 * widget.h:
6228 * window.h:
6229 * xgselect.h:
6230 * xsettings.h:
6231 * xterm.h: Likewise.
6232
98601119
DN
62332010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6234
d9170db5
DN
6235 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6236
98601119
DN
6237 Cleanup old code.
6238 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6239 * syssignal.h: Remove code for Lynx, not supported anymore.
6240 * vm-limit.c: Remove unused code the depends on emacs not being
6241 defined and NO_LIM_DATA being defined.
6242 * mem-limits.h: Remove dead code.
6243
1f984e12
J
62442010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6245
c49d071a
J
6246 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6247
9d5405ec
J
6248 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6249 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6250
7a18115b
J
6251 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6252 parameters, they are already absolute.
6253
a628ad9d
JB
6254 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6255 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 6256
a628ad9d 6257 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 6258
a628ad9d
JB
6259 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6260 Update FRAME_TOOLBAR_HEIGHT.
581a8100 6261
a628ad9d
JB
6262 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6263 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 6264
c1ef4455
CY
62652010-06-30 Chong Yidong <cyd@stupidchicken.com>
6266
bba3e508
SM
6267 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6268 Don't check default-frame-alist.
c1ef4455 6269
ce8f5a9a
AS
62702010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6271
6272 * process.c (create_process): Avoid using invalid file descriptors.
6273
6274 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6275
bf935339
J
62762010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6277
6278 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6279 Improve documentation. Return font regardless of use_system_font.
6280 (syms_of_xsettings): Improve documentation for font-use-system-font.
6281
7c33a057
CY
62822010-07-10 Chong Yidong <cyd@stupidchicken.com>
6283
2ec1b5ee
CY
6284 * xfaces.c (realize_face): Garbage the frame if a face is removed
6285 (Bug#6593).
6286
62872010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6288
6289 * keyboard.c: Remove duplicate <setjmp.h>.
6290 (read_key_sequence): Remove volatile qualifiers.
6291
62922010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6293
6294 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6295 (struct glyph_row): New members left_fringe_offset and
6296 right_fringe_offset.
6297
6298 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6299 specially.
6300 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6301 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6302
6303 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 6304 Take account of bitmap offset.
2ec1b5ee
CY
6305 (draw_window_fringes): Take account of window vscroll.
6306 (update_window_fringes): Likewise. Extend top-aligned top indicator
6307 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6308 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6309 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6310
63112010-07-04 Juanma Barranquero <lekktu@gmail.com>
6312
6313 * w32fns.c (Qtooltip): Declare.
6314 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6315
63162010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6317
6318 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6319 grab on just Press (Bug#6499).
6320
63212010-07-02 Chong Yidong <cyd@stupidchicken.com>
6322
6323 * frame.c (Qtooltip): New var.
6324 (delete_frame): Use it. Fix faulty if statement. Don't update
6325 mode line for tooltip frames. Suggested by Martin Rudalics.
6326
6327 * xfns.c (x_create_tip_frame):
6328 * w32fns.c (x_create_tip_frame): Use it.
6329
63302010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
6331
6332 * xftfont.c (xftfont_open): Check font width one by one also when
6333 spacing is dual.
6334
6335 * ftfont.c (ftfont_open): Ditto.
6336
6259c2ec
GM
63372010-06-30 Glenn Morris <rgm@gnu.org>
6338
a46007e9
GM
6339 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6340
6259c2ec
GM
6341 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6342
6343 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6344 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6345 * s/darwin.h (SYSTEM_MALLOC):
6346 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6347
5d1d3d04
J
63482010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6349
6350 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6351 (ns_get_screen): Don't assign integer to f.
6352 (Fx_display_color_cells): Declarations before statements.
6353
e547b051
J
63542010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6355
5fc8e5bc
J
6356 * xfns.c (x_default_font_parameter): Remove got_from_system
6357 (Bug#6526).
6358
e547b051 6359 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
6360 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6361 New defines based on what configure finds.
e547b051
J
6362
6363 * xterm.c (XTflash): Use gtk_widget_get_window.
6364 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6365 gtk_adjustment_get_page_size.
6366 (handle_one_xevent): Use gtk_widget_get_mapped.
6367 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6368 messages.
6369
6370 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6371
6372 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6373 HAVE_GTK_FILE_SELECTION_NEW.
6374
bba3e508
SM
6375 * gtkutil.c (xg_display_open, xg_display_close):
6376 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
6377 (xg_display_open): Return type is void.
6378 (gtk_widget_set_has_window)
6379 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6380 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6381 (gtk_adjustment_set_page_increment)
6382 (gtk_adjustment_get_step_increment): #define these if not found
6383 by configure.
6384 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
6385 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6386 Use gtk_widget_get_window.
e547b051
J
6387 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6388 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6389 (create_dialog): Use gtk_dialog_get_action_area and
6390 gtk_dialog_get_content_area.
6391 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6392 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6393 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
6394 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6395 Use g_object_ref and g_object_unref.
6396 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6397 Use gtk_widget_get_sensitive.
e547b051
J
6398 (xg_update_submenu): Use remove_submenu.
6399 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6400 properties instead to get old x and y position.
6401 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6402 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 6403 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
6404 (xg_get_tool_bar_widgets): New function.
6405 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6406 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6407 (toolbar_set_orientation): New #define based on if configure
6408 finds gtk_orientable_set_orientation.
6409 (xg_create_tool_bar): Call toolbar_set_orientation.
6410 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6411 instead of gtk_box_pack_start_defaults.
6412
b9229673
CY
64132010-06-28 Chong Yidong <cyd@stupidchicken.com>
6414
6415 * cmds.c (Fdelete_backward_char): Move into Lisp.
6416
bbc803b0
DN
64172010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6418
6419 * s/freebsd.h (BSD4_2): Remove redundant definition.
6420 bsd-common.h defines it already.
6421
6431f2e6
CY
64222010-06-27 Chong Yidong <cyd@stupidchicken.com>
6423
6424 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6425 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6426 tool-bar-mode, which are now set using these X resources at
6427 startup, to determine the defaults (Bug#2249).
6428
6429 * w32fns.c (Fx_create_frame):
6430 * nsfns.m (Fx_create_frame): Likewise.
6431
6432 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6433
8c079ebb
JB
64342010-06-24 Juanma Barranquero <lekktu@gmail.com>
6435
6436 * gtkutil.c (xg_update_scrollbar_pos):
6437 Avoid C99 mid-block variable declaration.
6438
e9b7ab96
JD
64392010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6440
bc869eca
JD
6441 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6442
2b7e356a 6443 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
6444
6445 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6446 if height is less than scroll bar min size.
6447 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6448
e9b7ab96
JD
6449 * xfns.c (x_default_font_parameter): Try to open font from system
6450 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6451
a628ad9d 64522010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
6453
6454 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6455
70c4cfbb
EZ
64562010-06-20 Eli Zaretskii <eliz@gnu.org>
6457
6458 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6459 most-positive-fixnum, be extra accurate when scrolling window
6460 start, to avoid missing the cursor line.
6461
ad5a12b5
EZ
64622010-06-19 Eli Zaretskii <eliz@gnu.org>
6463
6464 * xdisp.c (try_scrolling): Compute the limit for searching point
6465 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
6466 of 10 screen lines.
6467 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
6468 and
6469 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6470 for details.
6471
2a64315a 64722010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
6473
6474 * editfns.c (Fbyte_to_string): Pacify compiler.
6475
288cf4e9
SM
64762010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6477
6478 * lread.c (read1): Phase out old-style backquotes a bit more.
6479
6e6e5760
EZ
64802010-06-12 Eli Zaretskii <eliz@gnu.org>
6481
cbc4fd20
EZ
6482 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6483 bidimirror.h.
6484
6485 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6486
317fbf33
EZ
6487 * bidi.c (bidi_initialize): Remove explicit initialization of
6488 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 6489 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 6490 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
6491
6492 * biditype.h: New file.
6493
cbc4fd20
EZ
6494 * bidimirror.h: New file.
6495
6e6e5760
EZ
6496 * window.c (syms_of_window): Doc fix (bug#6409).
6497
4176cba2
RF
64982010-06-12 Romain Francoise <romain@orebokech.com>
6499
6500 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6501 ediff-hook.
6502
cb4bfcb5
GM
65032010-06-10 Glenn Morris <rgm@gnu.org>
6504
64c60c2f
GM
6505 * editfns.c (Fbyte_to_string): Pacify compiler.
6506
cb4bfcb5
GM
6507 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6508
2ec1b5ee
CY
65092010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6510
6511 * alloc.c (Fmake_byte_code): Don't access undefined argument
6512 (Bug#6517).
6513
65142010-06-25 Chong Yidong <cyd@stupidchicken.com>
6515
6516 * xdisp.c (next_element_from_image): Ensure that after-strings are
6517 read the next time we hit handle_stop (Bug#1336).
6518
65192010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6520
6521 * lread.c (read1): Signal error if #s is not followed by paren.
6522
65232010-06-19 Chong Yidong <cyd@stupidchicken.com>
6524
6525 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6526
6527 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6528
65292010-06-15 Glenn Morris <rgm@gnu.org>
6530
6531 * editfns.c (Fbyte_to_string): Pacify compiler.
6532
e454a4a3
SM
65332010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6534
6535 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6536 Check `object's type before accessing its guts.
6537
c1b1acc2
DN
65382010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6539
6540 * s/usg5-4.h: Fix previous change.
6541 Suggested by Lawrence Mitchell <wence@gmx.li>
6542
657d4c0b
AS
65432010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6544
6545 * minibuf.c (Fall_completions): Add more checks.
6546
9b27fd9f
JB
65472010-06-08 Juanma Barranquero <lekktu@gmail.com>
6548
6549 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6550
a99ebb40
DN
65512010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6552
d7c5d87d
DN
6553 * lread.c (X_OK): Remove, unused.
6554
0263a941
DN
6555 * dispnew.c: Remove obsolete comment.
6556
a99ebb40
DN
6557 Remove INCLUDED_FCNTL.
6558 * xterm.c (INCLUDED_FCNTL):
6559 * callproc.c (INCLUDED_FCNTL):
6560 * alloc.c (INCLUDED_FCNTL):
6561 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6562 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6563
13b5221f
MR
65642010-06-07 Martin Rudalics <rudalics@gmx.at>
6565
6566 * window.c (Fselect_window): Move `record_buffer' up to the
6567 beginning of this function, so the buffer gets recorded
6568 even if the selected window does not change.
6569 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6570
5220357f
JB
65712010-06-07 Juanma Barranquero <lekktu@gmail.com>
6572
6573 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6574 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6575
3085237c
DN
65762010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6577
6578 Remove BSTRING related code, all platforms define it.
6579 * s/usg5-4.h (BSTRING): Remove definition.
6580 * s/template.h (BSTRING):
6581 * s/msdos.h (BSTRING):
6582 * s/ms-w32.h (BSTRING):
6583 * s/hpux10-20.h (BSTRING):
6584 * s/gnu-linux.h (BSTRING):
6585 * s/darwin.h (BSTRING):
6586 * s/cygwin.h (BSTRING):
6587 * s/bsd-common.h (BSTRING):
6588 * s/aix4-2.h (BSTRING): Likewise.
6589 * sysdep.c: Remove code depending on BSTRING not being defined.
6590
409f2919
JB
65912010-06-05 Juanma Barranquero <lekktu@gmail.com>
6592
6593 Remove obsolete macro BASE_LEADING_CODE_P.
6594 * character.h (BASE_LEADING_CODE_P): Remove.
6595 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6596 * buffer.c (Fset_buffer_multibyte):
6597 * indent.c (scan_for_column, compute_motion):
6598 * insdel.c (count_combining_before, count_combining_after):
6599 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6600
087fc47a
JB
66012010-06-04 Juanma Barranquero <lekktu@gmail.com>
6602
6603 Turn `directory-sep-char' into a noop.
6604
6605 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6606 (DIRECTORY_SEP): Define unconditionally.
6607
6608 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6609
6610 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6611 call dostounix_filename directly.
6612
6613 * fileio.c (CORRECT_DIR_SEPS): Remove.
6614 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6615 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6616 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6617 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6618
6619 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6620 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6621
0eb7675e
AS
66222010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6623
a628ad9d
JB
6624 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6625 (Bug#6346)
0eb7675e 6626
78edd3b7
JB
66272010-06-03 Juanma Barranquero <lekktu@gmail.com>
6628
6629 * ccl.c (Fccl_program_p): Fix typo in docstring.
6630
eb697db5
DN
66312010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6632
6633 Move UNEXEC definition to autoconf.
6634 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6635 * s/sol2-10.h (UNEXEC):
6636 * s/irix6-5.h (UNEXEC):
6637 * s/hpux10-20.h (UNEXEC):
6638 * s/gnu-linux.h (UNEXEC):
6639 * s/darwin.h (UNEXEC):
6640 * s/cygwin.h (UNEXEC):
6641 * s/bsd-common.h (UNEXEC):
6642 * s/aix4-2.h (UNEXEC):
6643 * m/alpha.h (UNEXEC): Likewise.
6644 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6645
aa3830c4
JB
66462010-06-03 Juanma Barranquero <lekktu@gmail.com>
6647
6648 Remove obsolete pre-unicode2 macros.
6649 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6650 * composite.c (composition_reseat_it):
6651 * data.c (Faset):
6652 * fns.c (Ffillarray):
6653 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6654 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6655
d234d13e
JL
66562010-06-03 Juri Linkov <juri@jurta.org>
6657
6658 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6659 (Fswitch_to_buffer): Remove unused variable `err'.
6660
0d4bcf4d
GM
66612010-06-03 Glenn Morris <rgm@gnu.org>
6662
e23dc1e2
GM
6663 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6664
05b09564
GM
6665 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6666 now that AH_BOTTOM does it.
6667
824e2978
GM
6668 * m/hp800.h (HAVE_ALLOCA):
6669 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6670
0d4bcf4d
GM
6671 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6672 Remove NOT_C_CODE tests, it is always true now.
6673
c55d2abf
DN
66742010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6675
08a494a3
DN
6676 Fix config.h includes.
6677 * xsettings.c:
6678 * xgselect.c:
6679 * nsterm.m:
6680 * nsselect.m:
6681 * nsimage.m:
6682 * nsfont.m:
6683 * nsfns.m:
6684 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6685 other files do.
6686
75934b1d
DN
6687 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6688
9f32a766
DN
6689 * s/sol2-6.h: Remove obsolete comments.
6690
c55d2abf
DN
6691 Remove unnecessary alloca.h includes.
6692 * keymap.c: Do not include alloca.h, config.h does that.
6693 * sysdep.c: Likewise. Do not define fwrite, not used.
6694
06ac62b4
SM
66952010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6696
6697 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6698 the HAVE_TERMIO where it belongs (bug#6149).
6699
1ab8293c
SM
67002010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6701
6702 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6703 of bug#6305).
6704
6dcfd253
EZ
67052010-05-30 Eli Zaretskii <eliz@gnu.org>
6706
6707 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6708 state is always cached (bug#6306).
6709
6d26bbb2
EZ
67102010-05-29 Eli Zaretskii <eliz@gnu.org>
6711
06fa4a23
EZ
6712 Fix cursor motion in bidi-reordered continued lines.
6713 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6714 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
6715 over continuation lines in bidi-reordered buffers.
6716 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
6717 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6718
f5783df3
MA
67192010-05-28 Michael Albinus <michael.albinus@gmx.de>
6720
6721 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6722
7d56b2dd
KH
67232010-05-28 Kenichi Handa <handa@m17n.org>
6724
6725 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6726 Don't sheck SPEC if it is nil.
6727 (font_list_entities): Call font_delete_unmatched if
b925d231 6728 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 6729
e58d4ff7
GM
67302010-05-28 Glenn Morris <rgm@gnu.org>
6731
6732 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6733
f1a5d776
CY
67342010-05-27 Chong Yidong <cyd@stupidchicken.com>
6735
6736 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6737 whether to trash.
6738 (internal_delete_file, Frename_file): Callers changed.
6739 (delete_by_moving_to_trash): Doc fix.
6740 (Fdelete_directory_internal): Don't move to trash.
6741
6742 * callproc.c (delete_temp_file):
6743 * buffer.c (Fkill_buffer): Callers changed.
6744
6745 * lisp.h: Update prototype.
6746
f44a59e6
CY
67472010-05-27 Chong Yidong <cyd@stupidchicken.com>
6748
6749 * xdisp.c (redisplay_window): After redisplay, check if point is
6750 still valid before setting it (Bug#6177).
6751
81ac4f35
GM
67522010-05-27 Glenn Morris <rgm@gnu.org>
6753
6754 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6755 Convert comments to Makefile format.
6756
6757 * Makefile.in (bootstrap-clean): No more Makefile.c.
6758
ccd89fb3
GM
67592010-05-26 Glenn Morris <rgm@gnu.org>
6760
90278cb6
GM
6761 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6762 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6763
ccd89fb3
GM
6764 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6765 Remove.
6766 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6767
b7050583
KH
67682010-05-26 Kenichi Handa <handa@m17n.org>
6769
6770 * composite.c (composition_compute_stop_pos): Fix condition for
6771 backward scanning.
6772
e5458003
GM
67732010-05-25 Glenn Morris <rgm@gnu.org>
6774
c345fe90
GM
6775 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6776 Move before TEMACS_LDFLAGS.
6777 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6778 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6779
2e0689ab
GM
6780 * Makefile.in (NOT_C_CODE): No longer define.
6781 (config.h): No longer include.
6782
8009a5e8
GM
6783 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6784 variables it may reference.
6785
e5458003
GM
6786 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6787 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6788
10f72a37
KH
67892010-05-25 Kenichi Handa <handa@m17n.org>
6790
6791 * dispextern.h (struct composition_it): New members rule_idx and
6792 charpos.
6793
6794 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6795 that the character positions of IT point the last character of the
6796 current grapheme cluster.
6797 (next_element_from_composition): Don't change character positions
6798 of IT.
6799 (append_composite_glyph): Set glyph->charpos to
6800 it->cmp_it.charpos.
6801
6802 * composite.c (autocmp_chars): Change the first argument to RULE,
6803 and try composition with RULE only.
6804 (composition_compute_stop_pos): Record the index number of the
6805 composition rule in CMP_IT->rule_idx.
6806 (composition_reseat_it): Call autocmp_chars repeatedly until the
6807 correct rule of the composition is found.
6808 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6809 is at the last character of the current grapheme cluster when
6810 CMP_IT->reversed_p is nonzero.
6811
171eda53 68122010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 6813
171eda53
SM
6814 * editfns.c (Fbyte_to_string): New function.
6815
66a9f7f4
SM
68162010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6817
6818 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6819 Suggested by Masatake YAMATO <yamato@redhat.com>.
6820
d8c315d1
EZ
68212010-05-23 Eli Zaretskii <eliz@gnu.org>
6822
171eda53 6823 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 6824
f5b416d2 68252010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6826
6827 * s/netbsd.h: If terminfo is found, use it in preference to
6828 termcap. (Bug#6190) [Backport from trunk]
6829
0416466c
EZ
68302010-05-19 Eli Zaretskii <eliz@gnu.org>
6831
11117830 6832 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
6833
6834 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6835 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6836 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6837 and maxpos members instead of start.pos and end.pos, respectively.
6838
6839 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6840 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6841 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
6842 (try_window_reusing_current_matrix, try_window_id):
6843 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
6844 (init_from_display_pos, init_iterator): Use EMACS_INT for
6845 character and byte positions.
66a9f7f4 6846 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
6847 arguments for minimum and maximum buffer positions seen by
6848 display_line for this row. Don't use iterator to find the
6849 position following the maximum one; instead, increment the
11117830
EZ
6850 position found by display_line directly. Fix logic; eol_pos
6851 should be tested before the rest. Handle the case of characters
6852 delivered from display vector (bug#6036). Fix tests related to
6853 it->method. Handle the truncated_on_right_p rows.
6854 (RECORD_MAX_MIN_POS): New macro.
6855 (display_line): Use it to record the minimum and maximum buffer
6856 positions for glyphs in the row being assembled. Record the
6857 position of the newline that terminates the line. If word wrap is
6858 in effect, restore minimum and maximum positions seen up to the
6859 wrap point, when iterator returns to it.
6860 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6861 row and cursor not already at point. Restore original pre-bidi
6862 code for unidirectional buffers.
d36fe237
EZ
6863
6864 * dispnew.c (increment_row_positions, check_matrix_invariants):
6865 Increment and check row->start.pos and row->end.pos, in addition
6866 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6867
11117830
EZ
6868 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6869 Display truncated_on_left_p and truncated_on_right_p flags.
6870 Formatting fixes.
6871 (pmtxrows): Display the ordinal number of each row. Don't display
6872 rows beyond the last one.
6873
6874 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6875 it is not copied by bidi_copy_it.
6876
6e83d800
EZ
68772010-05-22 Eli Zaretskii <eliz@gnu.org>
6878
6879 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6880 (Bug#6237)
6881
110683ad
CY
68822010-05-22 Chong Yidong <cyd@stupidchicken.com>
6883
6884 * image.c (Fimage_flush): Rename from image-refresh.
6885
98fe5161
CY
68862010-05-21 Chong Yidong <cyd@stupidchicken.com>
6887
6888 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6889 just one window.
6890
6891 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6892 (clear_image_cache): If the number of cached images is unusually
6893 large, decrease the cache eviction delay (Bug#6230).
6894
e8752c66
GM
68952010-05-21 Glenn Morris <rgm@gnu.org>
6896
66dbf213
GM
6897 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6898 Move these rules to ns.mk.
6899 * ns.mk: New file.
6900
04384b2d
GM
6901 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6902
e8752c66
GM
6903 * Makefile.in (CANNOT_DUMP): New, set by configure.
6904 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6905
2e2bbddb
JL
69062010-05-20 Juri Linkov <juri@jurta.org>
6907
6908 * fileio.c (Fdelete_file): Change interative spec to use
6909 `read-file-name' like in `find-file-read-args' where the default
6910 value is `default-directory' instead of `buffer-file-name'.
6911 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6912
31c4aaf6
KR
69132010-05-20 Kevin Ryde <user42@zip.com.au>
6914
6915 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6916 (Voverriding_terminal_local_map, Vsystem_key_alist)
6917 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6918
9d5cf9b6
GM
69192010-05-20 Glenn Morris <rgm@gnu.org>
6920
6921 * Makefile.in (DEPDIR): New constant.
6922 (DEPFLAGS): Set with configure, not cpp.
6923 (MKDEPDIR): New, set by configure.
6924 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6925 (clean): Use $DEPDIR.
6926 (deps_frag): Include from configure.
6927 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6928 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6929
bba3e508
SM
6930 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6931 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 6932
7f34aec3
GM
69332010-05-19 Glenn Morris <rgm@gnu.org>
6934
d494e8f2
GM
6935 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6936
c1d0dcfd
GM
6937 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6938 (GNULIB_VAR): Remove.
6939 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6940
6941 * m/ibms390x.h (LINKER):
6942 * m/macppc.h (LINKER) [GNU_LINUX]:
6943 * s/aix4-2.h (ORDINARY_LINK):
6944 * s/cygwin.h (LINKER):
6945 * s/darwin.h (ORDINARY_LINK):
6946 * s/gnu.h (ORDINARY_LINK):
6947 * s/netbsd.h (LINKER):
6948 * s/usg5-4.h (ORDINARY_LINK):
6949 Move to configure.
6950
7f34aec3
GM
6951 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6952
754790b6
CY
69532010-05-18 Chong Yidong <cyd@stupidchicken.com>
6954
6955 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6956 prevent stack overflow if number of arguments is too large
6957 (Bug#6214).
6958
161e44d1
JB
69592010-05-18 Juanma Barranquero <lekktu@gmail.com>
6960
6961 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6962
be4ff9da
GM
69632010-05-18 Glenn Morris <rgm@gnu.org>
6964
9539dc5d
GM
6965 * s/gnu-linux.h: Combine two conditionals.
6966
6967 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
6968 $(POST_ALLOC_OBJ).
6969
40dc6bf4
GM
6970 * Makefile.in (RALLOC_OBJ): New, set by configure.
6971 (rallocobj): Replace with the previous variable.
6972 (otherobj): Use $RALLOC_OBJ.
6973
6974 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6975 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6976
be4ff9da
GM
6977 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6978 (gmallocobj, vmlimitobj): Replace with previous two variables.
6979 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6980
16455a85
GM
69812010-05-17 Glenn Morris <rgm@gnu.org>
6982
6983 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6984 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6985
5fdb7468
GM
69862010-05-16 Glenn Morris <rgm@gnu.org>
6987
7ca1f3f9
GM
6988 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6989
7541dad5
GM
6990 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6991
da53fab9
GM
6992 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6993 trailing "/".
6994
b02a6645
GM
6995 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6996 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6997
8877ca0f
GM
6998 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6999 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
7000 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
7001 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
7002 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
7003
5fdb7468
GM
7004 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
7005 Remove ${STARTFLAGS}, nothing ever sets it.
7006
95adb4b1
DN
70072010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
7008
7009 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
7010
676b6304
GM
70112010-05-16 Glenn Morris <rgm@gnu.org>
7012
9beab9ce
GM
7013 * Makefile.in (LIBX_BASE): Always define.
7014
8a95f0e7
GM
7015 * Makefile.in (LIBX_OTHER): Move out of cpp section.
7016
676b6304
GM
7017 * Makefile.in (LIBXT): Always define.
7018
6e546d18
GM
70192010-05-15 Glenn Morris <rgm@gnu.org>
7020
4235ca47 7021 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 7022
6e546d18
GM
7023 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
7024 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
7025
8c5ff6dd
KR
70262010-05-15 Ken Raeburn <raeburn@raeburn.org>
7027
560bb7ae 7028 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
7029 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
7030
8b4eb796
KR
7031 * emacs.c (main): Initialize initial-environment and
7032 process-environment before generating from env, not after.
7033
8c5ff6dd
KR
7034 Handle --version reasonably in CANNOT_DUMP configuration.
7035 * emacs.c (emacs_version, emacs_copyright): New string variables.
7036 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
7037 (syms_of_emacs): Defvar them, and initialize them from the C
7038 string variables.
7039 (main): If initialization hasn't been done, print initial version
7040 info from the C strings, instead of starting an interactive session.
7041
dbd3f723
EZ
70422010-05-15 Eli Zaretskii <eliz@gnu.org>
7043
d20e1419
EZ
7044 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
7045 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
7046 (bidi_paragraph_init): Remove redundant assertion that we are at
7047 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
7048
7049 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
7050 (syms_of_xdisp): Defsubr it.
7051
d36fe237
EZ
7052 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
7053
dbd3f723
EZ
7054 * Makefile.in: Fix MSDOS-related comments.
7055
02be533b
GM
70562010-05-15 Glenn Morris <rgm@gnu.org>
7057
1a82cca9
GM
7058 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
7059 (really-lwlib, really-oldXMenu): Always define.
7060 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
7061
3df7b338
GM
7062 * Makefile.in: Simplify cpp conditional.
7063
2b5f541b
GM
7064 * Makefile.in (${ns_appdir}): Simplify using umask.
7065
02be533b
GM
7066 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7067
4e2db1fe
SM
70682010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7069
7070 * eval.c (specbind): Remove left-over duplicate test.
7071 Disallow let-binding frame-local vars. Add comment.
7072
4b292a22
EZ
70732010-05-14 Eli Zaretskii <eliz@gnu.org>
7074
2fe72643 7075 Make the cache of bidi iterator states dynamically allocated.
1edbd309 7076 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
7077 (bidi_init_it): Call it.
7078 (bidi_cache_iterator_state): Enlarge the cache if needed.
7079
4e2db1fe 7080 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
7081 bidi_get_next_char_visually. All callers changed.
7082
82ebc97b
KH
70832010-05-14 Kenichi Handa <handa@m17n.org>
7084
7085 * dispextern.h (struct composition_it): New member reversed_p.
7086
7087 * composite.c (composition_compute_stop_pos): Search backward if
7088 ENDPOS < CHARPOS.
7089 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7090 Set CMP_IT->reversed_p.
b4b6e17e 7091 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 7092
4e2db1fe
SM
7093 * xdisp.c (set_iterator_to_next):
7094 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
7095 scanning backward. Call composition_compute_stop_pos if scan
7096 direction is changed.
7097 (next_element_from_buffer): Call composition_compute_stop_pos with
7098 negative ENDPOS if we are scanning backward.
7099 (next_element_from_composition): Pay attention to
7100 IT->cmp_it.reversed_p.
7101
0e5d7800
KH
71022010-05-14 Kenichi Handa <handa@m17n.org>
7103
560bb7ae 7104 * font.c (font_range): Return the range for the font found at first.
0e5d7800 7105
cb027b32
GM
71062010-05-14 Glenn Morris <rgm@gnu.org>
7107
177b0288
GM
7108 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7109
fbc00890
GM
7110 * Makefile.in (mktime, X11, register): Move undefs to configure.
7111
f14d1dfd
GM
7112 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7113 (MSDOS_X_OBJ): New variable.
7114 (MSDOS_SUPPORT_REAL): New constant.
7115 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7116 (obj): Use MSDOS_X_OBJ.
7117 (lisp): Use MSDOS_SUPPORT as a variable.
7118
11842bd8
GM
7119 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7120 (GPM_MOUSE_SUPPORT): Now it's a constant.
7121 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7122 not cpp.
7123
489d31a4 7124 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 7125 (ns_appresdir): Remove, unused.
e20f1f07 7126
489d31a4
GM
7127 * Makefile.in (SHELL): Move outside cpp section.
7128
cb027b32
GM
7129 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7130
5a903aa9
GM
71312010-05-13 Glenn Morris <rgm@gnu.org>
7132
3369c79f
GM
7133 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7134 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7135
d5e982a6
GM
7136 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7137 HAVE_WINDOW_SYSTEM must be too.
7138
6192e163
GM
7139 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7140 (lisp): Remove WINNT_SUPPORT.
7141
472c5d6b
GM
7142 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7143 Let configure set these variables (to empty) in this case as well.
7144
0116466b
GM
7145 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7146 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7147
5a903aa9
GM
7148 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7149 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7150 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7151 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7152 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 7153 the values output by configure.
5a903aa9
GM
7154 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7155
1a0d7c06
GM
71562010-05-12 Glenn Morris <rgm@gnu.org>
7157
b5457f14
GM
7158 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7159 (LINKER_WAS_SPECIFIED): Remove.
7160
1a0d7c06
GM
7161 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7162 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7163 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7164 * s/cygwin.h (LIB_GCC):
7165 * s/freebsd.h (LIB_GCC):
7166 * s/gnu-linux.h (LIB_GCC):
7167 * s/msdos.h (LIB_GCC):
7168 * s/netbsd.h (LIB_GCC):
7169 Move to configure.
7170
d1ddd1d0 71712010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
7172
7173 * ftfont.c: Fix incorrect parentheses of #if condition for
7174 definining M17N_FLT_USE_NEW_FEATURE.
7175
acddf8ae
GM
71762010-05-11 Glenn Morris <rgm@gnu.org>
7177
7178 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7179 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7180
ae5e04fa
EZ
71812010-05-10 Eli Zaretskii <eliz@gnu.org>
7182
7183 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7184 unibyte buffers. See
7185 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7186
7490175b
GM
71872010-05-10 Glenn Morris <rgm@gnu.org>
7188
97efb629
GM
7189 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7190 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7191 (LIBES): Use LIBS_SYSTEM as a variable.
7192 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7193 * s/aix4-2.h (LIBS_SYSTEM):
7194 * s/freebsd.h (LIBS_SYSTEM):
7195 * s/hpux10-20.h (LIBS_SYSTEM):
7196 * s/sol2-6.h (LIBS_SYSTEM):
7197 * s/unixware.h (LIBS_SYSTEM):
7198 Move to configure.
7199
7490175b
GM
7200 * s/aix4-2.h (MAIL_USE_LOCKF):
7201 * s/bsd-common.h (MAIL_USE_FLOCK):
7202 * s/darwin.h (MAIL_USE_FLOCK):
7203 * s/gnu-linux.h (MAIL_USE_FLOCK):
7204 * s/irix6-5.h (MAIL_USE_FLOCK):
7205 * s/template.h (MAIL_USE_FLOCK):
7206 Move to configure.
7207
0235128c 72082010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
7209
7210 * Version 23.2 released.
7211
0235128c 72122010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
7213
7214 * composite.c (autocmp_chars): Save point as marker before calling
7215 auto-composition-function (Bug#5984).
7216
7217 * lisp.h (restore_point_unwind): Add prototype.
7218
7219 * fileio.c (restore_point_unwind): Remove static attribute.
7220
0235128c 72212010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
7222
7223 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7224 new feature of libotf and m17n-flt.
0235128c
SM
7225 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7226 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
7227 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7228 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7229 that OUT is NULL. Use OTF_drive_gsub_with_log and
7230 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7231 OTF_drive_gpos.
7232 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
7233 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7234 Setup mflt_enable_new_feature and mflt_try_otf.
7235
4721152c
J
72362010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7237
7238 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7239
7240 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7241 box and toolbar (Bug #6139).
7242 (xg_create_tool_bar): Remove comment (Bug #6139).
7243 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7244 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7245
ee0a16cf
JB
72462010-05-08 Juanma Barranquero <lekktu@gmail.com>
7247
7248 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7249 Update dependencies.
7250
96d79611
EZ
72512010-05-08 Eli Zaretskii <eliz@gnu.org>
7252
7253 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7254 R2L lines.
7255
40c17879
GM
72562010-05-08 Glenn Morris <rgm@gnu.org>
7257
7b42b29f
GM
7258 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7259
40c17879
GM
7260 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7261 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7262 (termcapobj): Replace with TERMCAP_OBJ.
7263 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7264 (LIBES): Use LIBS_TERMCAP as a variable.
7265
7266 * s/freebsd.h (osreldate.h): No longer include, since this file
7267 does not use __FreeBSD_version any more.
7268
7269 * s/aix4-2.h (TERMINFO):
7270 * s/cygwin.h (TERMINFO):
7271 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7272 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7273 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7274 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7275 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7276 * s/irix6-5.h (TERMINFO):
7277 * s/netbsd.h (LIBS_TERMCAP):
7278 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7279 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7280 * s/usg5-4.h (TERMINFO):
7281 Move to configure.
7282
94b612ad
SM
72832010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7284
7285 * eval.c (unbind_to): Don't unbind a local binding into the global
7286 binding when the local binding disappeared. Inversely, don't unbind
7287 a global binding into a newly created local binding.
7288 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7289 can specify the frame to use, when applicable. Adjust callers.
7290
15e12598 72912010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 7292 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
7293
7294 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7295
f724825e
EZ
72962010-05-07 Eli Zaretskii <eliz@gnu.org>
7297
5cba3209
EZ
7298 * w32fns.c: Include w32.h.
7299 (Fw32_shell_execute): Decode the error message before passing it
7300 to `error'. (Bug#6126)
7301
d16bdfc3
EZ
7302 * msdos.c (dos_set_window_size):
7303 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7304 instead of `XSYMBOL (foo)->value'.
7305
59d93e87
EZ
73062010-05-07 Eli Zaretskii <eliz@gnu.org>
7307
9fdec8bc
EZ
7308 Fix the MS-DOS build, broken by autoconfiscation.
7309
7310 * Makefile.in: Don't use Make-style comments past the "start of
7311 cpp stuff" line.
7312 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7313
7314 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7315 edited directly by msdos/sed1v2.inp).
f724825e 7316
2f86b22b
GM
73172010-05-07 Glenn Morris <rgm@gnu.org>
7318
7319 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7320 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7321 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7322 move out of cpp section.
7323 * s/freebsd.h (LD_SWITCH_SYSTEM):
7324 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7325 * s/netbsd.h (LD_SWITCH_SYSTEM):
7326 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7327
49ebbd65
DN
73282010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7329
7330 Define LIB_STANDARD and START_FILES using autoconf.
7331 * s/usg5-4.h (LIB_STANDARD):
7332 * s/netbsd.h (START_FILES):
7333 * s/irix6-5.h (LIB_STANDARD):
7334 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7335 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7336 * s/freebsd.h (START_FILES):
7337 * s/darwin.h (START_FILES):
7338 * s/cygwin.h (START_FILES):
7339 * s/aix4-2.h (LIB_STANDARD):
7340 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7341 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7342 autoconf, not cpp.
7343
d43c06d6
DN
73442010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7345
28823648
DN
7346 Remove NEED_BSDTTY and NEED_UNISTD_H.
7347 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7348 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7349 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7350 <sys/ptyio.h> and <unistd.h>.
7351
aca00430
DN
7352 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7353
d43c06d6
DN
7354 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7355 * s/gnu.h (START_FILES): Remove empty definition.
7356
3e56b11d
JD
73572010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7358
7359 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7360
e3cf0cde
GM
73612010-05-06 Glenn Morris <rgm@gnu.org>
7362
7363 * Makefile.in (CPP, LN_S): Remove unused variables.
7364
774b9a60
SM
73652010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7366
7367 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7368
4ab92842
LM
73692010-05-05 Lawrence Mitchell <wence@gmx.li>
7370
7371 * m/sparc.h: Fix typo in earlier change.
7372
178f2507
SM
73732010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7374
7375 Misc tweaks.
7376 * eval.c (Fdefvaralias): Remove unintended nested if.
7377 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7378
80f00217 73792010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
7380
7381 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7382
ef03a4e6
DN
73832010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7384
58eb6cf0
DN
7385 Remove BSD_PGRPS.
7386 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7387 * s/gnu-linux.h (BSD_PGRPS): Remove.
7388 * term.c (dissociate_if_controlling_tty):
7389 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7390 (init_sys_modes, reset_sys_modes):
7391 * emacs.c (main):
7392 * callproc.c (Fcall_process, child_setup): Remove code depending
7393 on BSD_PGRPS.
7394
ef03a4e6
DN
7395 Remove POSIX_SIGNALS.
7396 * s/usg5-4.h (POSIX_SIGNALS):
7397 * s/netbsd.h (POSIX_SIGNALS):
7398 * s/msdos.h (POSIX_SIGNALS):
7399 * s/ms-w32.h (POSIX_SIGNALS):
7400 * s/hpux11.h (POSIX_SIGNALS):
7401 * s/gnu.h (POSIX_SIGNALS):
7402 * s/gnu-linux.h (POSIX_SIGNALS):
7403 * s/freebsd.h (POSIX_SIGNALS):
7404 * s/darwin.h (POSIX_SIGNALS):
7405 * s/cygwin.h (POSIX_SIGNALS):
7406 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7407 * s/unixware.h:
7408 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7409 * process.c (create_process):
7410 * syssignal.h:
7411 * sysdep.c (wait_for_termination, init_signals):
7412 * process.c (create_process):
7413 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7414 remove all code that assumes the contrary.
7415
49628785
GM
74162010-05-04 Glenn Morris <rgm@gnu.org>
7417
27a2cdfc
GM
7418 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7419 variable.
7420 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7421 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7422 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7423 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7424 LD_SWITCH_SYSTEM_tmp.
7425 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7426 New variables, set by configure.
7427
eb21eab5
GM
7428 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7429 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7430 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7431 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7432 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7433
49628785
GM
7434 * s/aix4-2.h (C_SWITCH_SYSTEM):
7435 * m/alpha.h (C_SWITCH_MACHINE):
7436 Move to configure.in.
7437 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7438 New variables, set by configure.
7439 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7440 $c_switch_machine and $c_switch_system.
7441
7dff330b
DN
74422010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7443
7444 * s/hpux10-20.h (LIB_STANDARD): New definition.
7445 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7446 on it, not used anymore.
7447
53967e09
CY
74482010-05-03 Chong Yidong <cyd@stupidchicken.com>
7449
7450 * eval.c (internal_condition_case_n): Rename from
7451 internal_condition_case_2.
7452 (internal_condition_case_2): New function.
7453
7454 * xdisp.c (safe_call): Use internal_condition_case_n.
7455
7456 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7457 (internal_delete_file, Frename_file): Callers changed.
7458
7459 * buffer.c (Fkill_buffer):
7460 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7461
7462 * lisp.h: Update prototypes.
7463
3dee6fdb
GM
74642010-05-03 Glenn Morris <rgm@gnu.org>
7465
7466 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7467 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7468 (LIBXT): Set with configure, not cpp.
7469 (LIBX): Remove.
7470 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7471
a101e0fb
DN
74722010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7473
7474 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7475 The FreeBSD is not needed, the default works, Solaris version is
7476 not needed, and the remaining case is not supported by configure.
7477
f63d0028
JD
74782010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7479
7480 * xsmfns.c (CHDIR_OPT): New define.
7481 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7482 restarting emacs.
7483
7484 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7485 shut_down_emacs.
7486
7487 * emacs.c (USAGE1): Mention --chdir.
7488 (main): Handle --chdir.
7489 (standard_args): Add --chdir.
7490 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7491 #5552).
7492
e4814a9f
DN
74932010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7494
cd03c74a
DN
7495 Remove LD_SWITCH_MACHINE.
7496 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7497 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7498
c3a398a1
DN
7499 Clean up IRIX code.
7500 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7501 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7502
87e7285c
DN
7503 Clean up AIX code.
7504 * m/ibmrs6000.inp: Remove file, unused.
7505 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7506 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7507 definition ...
7508 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7509
80f00217
JB
7510 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7511 unused.
e4814a9f 7512
59ca28de
EZ
75132010-05-01 Eli Zaretskii <eliz@gnu.org>
7514
197daef4
EZ
7515 Emulate POSIX_SIGNALS on MS-Windows.
7516
7517 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7518 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
7519
7520 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7521 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7522 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7523
80f00217
JB
7524 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7525 New stubs.
197daef4 7526
af7c7572
EZ
7527 Miscellaneous fixes of bidi display.
7528
59ca28de
EZ
7529 * xdisp.c (find_row_end): New function, refactored from display_line.
7530 (display_line): Use it.
017ea819
EZ
7531 (extend_face_to_end_of_line): In almost-filled rows, extend only
7532 if the row is R2L and not continued.
166e930d 7533 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 7534 Preserve overlay and string info in row->end.
166e930d
EZ
7535 (insert_left_trunc_glyphs): Support addition of left truncation
7536 glyphs to R2L rows.
b47e0dcf 7537 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
7538 glyph between adjacent windows. Fix a crash when a display string
7539 is continued to the next line. Don't return zero if cursor was
7540 found by `cursor' property of a display string.
b47e0dcf
EZ
7541 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7542 test for that explicitly.
59ca28de 7543
7acac9f4
GM
75442010-05-01 Glenn Morris <rgm@gnu.org>
7545
7546 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7547 for clarity.
7548 (OTHER_OBJ): Remove.
7549 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7550 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7551
45841e65
KK
75522010-05-01 Karel Klíč <kklic@redhat.com>
7553
7554 * fileio.c (Ffile_selinux_context): Context functions may return null.
7555
afc61943
DN
75562010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7557
80f00217 7558 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 7559
5a1bb006
GM
75602010-04-30 Glenn Morris <rgm@gnu.org>
7561
7562 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7563 (OTHER_OBJ): Define as a separate variable, for clarity.
7564
210af043
J
75652010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7566
7567 * xsettings.c: include limits.h and update file comment.
7568
0a7df391
GM
75692010-04-30 Glenn Morris <rgm@gnu.org>
7570
d5096f16
GM
7571 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7572 Set with configure, not cpp.
7573 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7574
7eb1ac33
GM
7575 * Makefile.in (mallocobj): Remove.
7576 (otherobj): Simplify using @OTHER_OBJ@.
7577
517d086b
GM
7578 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7579 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7580 Don't bother making nsgui.h dependency platform-specific.
7581
0a7df391
GM
7582 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7583
d6d23852
SM
75842010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7585
d2630aef
SM
7586 * process.c (read_process_output, exec_sentinel): Don't burp if the
7587 sentinel/filter kills the current buffer (bug#6060).
7588
f9dddf52 7589 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
7590 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7591 Remove unused var `args'.
7592 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7593 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7594 * doc.c (store_function_docstring): Use XSETCAR.
7595
f1e3642a
GM
75962010-04-28 Glenn Morris <rgm@gnu.org>
7597
faf535f8
GM
7598 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7599 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7600
c40f9449
GM
7601 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7602
658f86ca
GM
7603 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7604 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7605
bc0b5f61
GM
7606 * Makefile.in (FONT_OBJ): New, set by configure.
7607 (FONT_DRIVERS): Use $FONT_OBJ.
7608
294c50a0
GM
7609 * Makefile.in (LIBXMU): Set with configure, not cpp.
7610 * s/aix4-2.h (LIBXMU):
7611 * s/hpux10-20.h (LIBXMU):
7612 Remove definition, now set in configure.
7613
e6ec4e99
GM
7614 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7615
f1e3642a
GM
7616 * m/amdx86-64.h [i386]: Move this test to configure.in.
7617
c6ea2936
GM
76182010-04-27 Glenn Morris <rgm@gnu.org>
7619
8fdac2c3
GM
7620 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7621 * s/unixware.h (NEED_LIBW): Remove definition.
7622
986fb647
GM
7623 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7624 (TOOLKIT_LIBW): New, set by configure.
7625 (@X_TOOLKIT_TYPE@): No longer define it.
7626
c6ea2936
GM
7627 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7628 (MOTIF_LIBW): Set with configure, not cpp.
7629 * s/aix4-2.h (LIB_MOTIF):
7630 * s/gnu-linux.h (LIB_MOTIF):
7631 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7632
aaa36002
DN
76332010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7634
7635 Reduce CPP usage.
7636 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7637 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
7638 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7639 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 7640 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 7641
b678dd8b
GM
76422010-04-27 Glenn Morris <rgm@gnu.org>
7643
76cda504
GM
7644 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7645 since the defaults (set by the system file) are fine in most cases.
7646 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7647 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7648 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7649 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7650 Remove definitions, since they are set correctly in s/gnu-linux.h.
7651 * s/freebsd.h (START_FILES, LIB_STANDARD):
7652 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7653 * s/hpux10-20.h (START_FILES):
7654 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7655 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7656
b678dd8b
GM
7657 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7658 (MOTIF_LIBW): Use $LIBXP.
7659 (otherobj): Use $WIDGET_OBJ.
7660
9452ded1
DN
76612010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7662
7e10844c
DN
7663 * Makefile.in (LIBS_MACHINE): Remove, unused.
7664
9452ded1
DN
7665 Use autoconf instead of cpp for LIB_MATH.
7666 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7667 * s/cygwin.h (LIB_MATH): Likewise.
7668 * Makefile.in (LIB_MATH): Do not define with cpp.
7669 (LIBES): Use autoconf for LIB_MATH.
7670
fcebfc6a
KH
76712010-04-26 Kenichi Handa <handa@m17n.org>
7672
7673 * composite.c (Ffind_composition_internal): Fix the return value
7674 for an automatic composition.
7675
39e2ad1b
DN
76762010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7677
7678 Remove all NO_ARG_ARRAY uses.
7679 * fns.c (concat2, concat3, nconc2):
7680 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7681 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7682 * m/xtensa.h (NO_ARG_ARRAY):
7683 * m/template.h (NO_ARG_ARRAY):
7684 * m/sparc.h (NO_ARG_ARRAY):
7685 * m/sh3.h (NO_ARG_ARRAY):
7686 * m/mips.h (NO_ARG_ARRAY):
7687 * m/macppc.h (NO_ARG_ARRAY):
7688 * m/iris4d.h (NO_ARG_ARRAY):
7689 * m/intel386.h (NO_ARG_ARRAY):
7690 * m/ibms390x.h (NO_ARG_ARRAY):
7691 * m/ibms390.h (NO_ARG_ARRAY):
7692 * m/ibmrs6000.h (NO_ARG_ARRAY):
7693 * m/ia64.h (NO_ARG_ARRAY):
7694 * m/hp800.h (NO_ARG_ARRAY):
7695 * m/arm.h (NO_ARG_ARRAY):
7696 * m/amdx86-64.h (NO_ARG_ARRAY):
7697 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7698
adf4f59c
EZ
76992010-04-25 Eli Zaretskii <eliz@gnu.org>
7700
6bdf5d65
EZ
7701 * xdisp.c (display_line): Don't assume 2nd call to
7702 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
7703 (iterate_out_of_display_property): New function, body from pop_it.
7704 (pop_it): Use it.
adf4f59c 7705
dfbbda83
GM
77062010-04-24 Glenn Morris <rgm@gnu.org>
7707
7708 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7709 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7710 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7711 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7712
2d4018aa
EZ
77132010-04-24 Eli Zaretskii <eliz@gnu.org>
7714
a49884a6
EZ
7715 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7716 use `get_next_display_element' and `set_iterator_to_next' to
7717 advance to the next character, when looking for the character that
7718 begins the next row.
7719
76db6fcc 7720 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
7721 definition of "struct Lisp_Symbol".
7722
70eab5c1
GM
77232010-04-24 Glenn Morris <rgm@gnu.org>
7724
7725 * Makefile.in (CRT_DIR): New variable, set by configure.
7726 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7727 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7728
1ad4cc3d
DN
77292010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7730
e769f484
DN
7731 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7732
4196ff33
DN
7733 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7734
879b0ee4
DN
7735 Remove redundant flags.
7736 * s/freebsd.h (C_SWITCH_SYSTEM):
7737 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7738 * s/netbsd.h (C_SWITCH_SYSTEM):
7739 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7740 of these.
7741
03cbbcb8
DN
7742 Simplify m/intel386.h.
7743 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7744 user: ecrt0.c.
7745 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7746 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7747 the only user: s/unixware.h.
7748 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7749 from m/intel386.h.
bba3e508
SM
7750 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7751 Definitions moved here from m/intel386.h.
03cbbcb8 7752
1ad4cc3d
DN
7753 * m/mips.h: Remove #if 0 code.
7754
8785b888
EZ
77552010-04-23 Eli Zaretskii <eliz@gnu.org>
7756
728588cc
EZ
7757 Fix display of composed characters from L2R scripts in bidi buffers.
7758 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7759 After advancing IT past the composition, resync the bidi iterator
7760 with IT's position. (Bug#5977)
7761
a63f80b4
DN
77622010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7763
7764 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7765 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7766
ff5dec5c
SM
77672010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7768
7769 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7770
8785b888
EZ
77712010-04-23 Eli Zaretskii <eliz@gnu.org>
7772
58ccf243 7773 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
7774 * xdisp.c (pop_it): When the stack is popped after displaying
7775 from a string, bidi-iterate to exit from the text portion covered
7776 by the `display' property or overlay. (Bug#5988, bug#5920)
7777
feeb1604
DN
77782010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7779
8e324eb6
DN
7780 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7781 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7782
809fcaba
DN
7783 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7784 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7785
ed710380
DN
7786 Simplify STARTFILES definition.
7787 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7788 relying on Makefile.in to define it.
7789 * s/cygwin.h (START_FILES): Likewise.
7790 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7791
feeb1604
DN
7792 Clean up Solaris code.
7793 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7794 (LIB_MOTIF): Remove, configure takes care of this.
7795 (NOT_USING_MOTIF): Remove, unused.
7796 * xrdb.c: Remove #if 0-ed #include.
7797 (SYSV): Remove conditional for old SysV.
7798 * sysdep.c (closedir): Remove conditional code for Solaris,
7799 Solaris has closedir.
7800
a0d0b563
JD
78012010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7802
7803 * xsettings.c (read_and_apply_settings): Check if current_font is
7804 NULL before strcmp (Bug#6001).
7805
56bae7c7
DN
78062010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7807
7808 Clean up HP-UX files.
7809 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7810 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7811 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7812 * s/hpux10-20.h: ... to the only user, here.
7813
372b7a95
EZ
78142010-04-21 Eli Zaretskii <eliz@gnu.org>
7815
7816 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7817 use buffer-local values of paragraph-start and paragraph-separate.
7818 <paragraph_start_re, paragraph_separate_re>: Rename from
7819 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7820 (Bug#5992)
7821
f904c0f9
JD
78222010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7823
7824 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7825 current_tool_bar_style are new.
7826 (store_config_changed_event): Rename from store_font_changed_event.
7827 (XSETTINGS_TOOL_BAR_STYLE): New define.
7828 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7829 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7830 HAVE_XFT.
7831 (something_changedCB): store_font_changed_event is now
c4cc8b9a 7832 store_config_changed_event.
bba3e508
SM
7833 (parse_settings): Rename from parse_xft_settings.
7834 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 7835 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
7836 (apply_xft_settings): Take current settings as parameter. Do not
7837 call read_(xft)_settings.
7838 (read_and_apply_settings): New function.
bba3e508
SM
7839 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7840 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 7841 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
7842 Call read_and_apply_settings unconditionally.
7843 (xsettings_initialize): Call init_xsettings.
7844 (Ftool_bar_get_system_style): New function.
7845 (syms_of_xsettings): Define Qmonospace_font_name and
7846 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 7847 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 7848 dynamic-setting.
31a01b90 7849 Move misplaced HAVE_GCONF
f904c0f9
JD
7850
7851 * xsettings.h (Ftool_bar_get_system_style): Declare.
7852
7853 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7854 Qtext, Qboth, Qboth_horiz are new.
7855 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7856 Vtool_bar_style, tool_bar_max_label_size.
7857
7858 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7859
7860 * keyboard.c: QClabel is new.
7861 (parse_tool_bar_item): Take out QClabel from tool bar items.
7862 Try to construct a label if ther is no QClabel.
7863 (syms_of_keyboard): Intern :label as QClabel.
7864
7865 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7866 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7867 New.
7868
7869 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7870 dynamic-setting.el.
7871
7872 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7873 (xg_make_tool_item, xg_show_toolbar_item): New function.
7874 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7875 Call xg_make_tool_item to make a tool bar item.
7876 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7877
7878 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7879 into account for toolbars.
7880
c632dfda
JD
78812010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7882
7883 * data.c (make_blv): Declarations before code (Bug#5993).
7884
10efe302
GM
78852010-04-21 Glenn Morris <rgm@gnu.org>
7886
7887 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7888 Define using autoconf, not cpp.
7889 (LIBXSM): New variable, set by autoconf.
7890 (LIBXT): Use $LIBXSM.
7891
4285ac5a
DN
78922010-04-21 Dan Nicolaescu <local_user@dannlt>
7893
3ec759e7
DN
7894 Remove NOMULTIPLEJOBS, unused.
7895 * s/template.h (NOMULTIPLEJOBS):
7896 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7897
4285ac5a
DN
7898 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7899 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7900 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7901 detects -znocombreloc and passes it to the linker
7902 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7903
2807228d
GM
79042010-04-21 Glenn Morris <rgm@gnu.org>
7905
7906 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7907
574c05e2
KK
79082010-04-21 Karel Klíč <kklic@redhat.com>
7909
7910 * Makefile.in (LIBSELINUX_LIBS): New.
7911 (LIBES): Add $LIBSELINUX_LIBS.
7912 * eval.c, lisp.h (call7): New function.
7913 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7914 (Ffile_selinux_context, Fset_file_selinux_context):
7915 New functions.
7916 (Fcopy_file): New parameter preserve-selinux-context.
7917 (Frename_file): Preserve selinux context when renaming by copy-file.
7918
91eac4bb 79192010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 7920 Eli Zaretskii <eliz@gnu.org>
91eac4bb 7921
50426a04
JB
7922 Don't depend on cm.c or termcap.c on Windows, use stubs.
7923 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7924 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7925 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7926 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7927 (sys_tputs, sys_tgetstr): New stubs.
7928 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7929 (tputs, tgetstr): New; define to sys_*.
91eac4bb 7930
938efb77
JB
79312010-04-20 Juanma Barranquero <lekktu@gmail.com>
7932
7933 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7934
b4bf28b7
SM
79352010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7936
8b1e1112
SM
7937 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7938 Just signal a warning rather than an error when inside a let.
7939 (Fmake_variable_frame_local): Add the same test.
7940
933ac235
SM
7941 * font.c (syms_of_font): Make the style table vars read-only.
7942
b4bf28b7
SM
7943 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7944 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7945
7946 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7947
93d68d0c
EZ
79482010-04-20 Eli Zaretskii <eliz@gnu.org>
7949
7950 Fix R2L paragraph display on TTY.
7951
7952 * xdisp.c (unproduce_glyphs): New function.
7953 (display_line): Use it when produced glyphs are discarded from R2L
7954 glyph rows.
7955 (append_composite_glyph): In R2L rows, prepend the glyph rather
7956 than appending it.
7957
7958 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7959 rather than append it. Set up the resolved_level and bidi_type
7960 attributes of the appended glyph.
283ccc18
EZ
7961 (produce_special_glyphs): Mirror the backslash continuation
7962 character in R2L lines.
93d68d0c 7963
283ccc18 7964 Implement display of R2L paragraphs in GUI sessions.
26cdf528 7965
283ccc18
EZ
7966 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7967 append_stretch_glyph.
bba3e508
SM
7968 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7969 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
7970 (append_stretch_glyph): In reversed row, prepend the glyph rather
7971 than append it. Set resolved_level and bidi_type of the glyph.
7972 (extend_face_to_end_of_line): If the row is reversed, prepend a
7973 stretch glyph whose width is such that the rightmost glyph will be
7974 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
7975 TTY frames in testing whether a line needs face extension.
7976 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
7977 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7978 region face.
bba3e508
SM
7979 (set_cursor_from_row, display_line):
7980 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 7981 row->continuation_lines_width.
283ccc18
EZ
7982 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7983 are at ZV. Fixes a crash when reseated to ZV by
7984 try_window_reusing_current_matrix.
45903529
EZ
7985 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7986 which happens with R2L glyph rows. Fixes a crash when inserting a
7987 character at end of an R2L line.
283ccc18
EZ
7988 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7989 treat them as having zero-width characters. Improve comments.
7990 Don't reverse pos_before and pos_after for reversed glyph rows.
7991 Set cursor.x to negative value when the cursor might be on the
7992 left fringe.
7993 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7994 left fringe, not the right one.
f951a506
EZ
7995 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7996 (erase_phys_cursor): For reversed cursor_row, support cursor on
7997 the left fringe.
7998
283ccc18
EZ
7999 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
8000 of continuation indicators on the fringes.
8001 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
8002 left fringe.
8003
f951a506
EZ
8004 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
8005 draw cursor on the left fringe.
8006
8007 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
8008 cursor on the left fringe.
8009
f951a506
EZ
8010 * dispnew.c (update_text_area): Handle reversed desired rows when
8011 the cursor is on the left fringe.
8012 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
8013 below, not by 0, for when the cursor is on the left fringe.
8014
3bb49aaf
JD
80152010-04-20 Jan Djärv <jan.h.d@swipnet.se>
8016
8017 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
8018 widget is a scrollbar.
8019
c0be27fd
KH
80202010-04-20 Kenichi Handa <handa@m17n.org>
8021
8022 * charset.c (char_charset): Consider Vcharset_non_preferred_head
8023 only when the arg CHARSET_LIST is nil.
8024
ce5b453a
SM
80252010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8026
8027 Make variable forwarding explicit rather the using special values.
8028 Basically, this makes the structure of buffer-local values and object
8029 forwarding explicit in the type of Lisp_Symbols rather than use
8030 special Lisp_Objects for that. This tends to lead to slightly more
8031 verbose code, but is more C-like, simpler, and makes it easier to make
8032 sure we handled all cases, among other things by letting the compiler
8033 help us check it.
8034 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
8035 Removing forwarding objects.
8036 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
8037 (struct Lisp_Symbol): Make the various forms of variable-forwarding
8038 explicit rather than hiding them inside Lisp_Object "values".
8039 (XFWDTYPE): New macro.
8040 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
8041 (XBUFFER_LOCAL_VALUE): Remove.
8042 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
8043 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
8044 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
8045 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
8046 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
8047 Remove the Lisp_Misc_* header.
8048 (struct Lisp_Buffer_Local_Value): Redefine.
8049 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
8050 (struct Lisp_Misc_Any): Add filler to get the right size.
8051 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
8052 Lisp_Intfwd.
8053 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
8054 (DEFVAR_KBOARD): Allocate a forwarding object.
8055 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
8056 (let_shadows_global_binding_p): New function.
8057 (union Lisp_Val_Fwd): New type.
8058 (make_blv): New function.
8059 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
8060 (store_symval_forwarding, swap_in_global_binding, Fboundp)
8061 (swap_in_symval_forwarding, find_symbol_value, Fset)
8062 (let_shadows_buffer_binding_p, set_internal, default_value)
8063 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
8064 (Fkill_local_variable, Fmake_variable_frame_local)
8065 (Flocal_variable_p, Flocal_variable_if_set_p)
8066 (Fvariable_binding_locus):
8067 * xdisp.c (select_frame_for_redisplay):
8068 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8069 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8070 * frame.c (store_frame_param):
8071 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8072 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8073 value structure.
8074 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8075 (clone_per_buffer_values): Only adjust markers into the current buffer.
8076 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8077 (Fbuffer_local_value, set_buffer_internal_1)
8078 (swap_out_buffer_local_variables):
8079 Adapt to the new symbol value structure.
8080 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8081 (defvar_per_buffer): Take a new arg for the fwd object.
8082 (buffer_lisp_local_variables): Return a proper alist (different fix
8083 for bug#4138).
8084 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8085 (Fgarbage_collect): Don't handle buffer_defaults specially.
8086 (mark_object): Handle new symbol value structure rather than the old
8087 special Lisp_Misc_* objects.
8088 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8089 * term.c (set_tty_color_mode):
8090 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8091 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8092 a buffer_local_flags.
8093 * print.c (print_object): Get rid of impossible forwarding objects.
8094
fd3998ff
EZ
80952010-04-19 Eli Zaretskii <eliz@gnu.org>
8096
8097 * bidi.c (bidi_get_type, bidi_get_category)
8098 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
8099 (bidi_type_of_next_char, bidi_level_of_next_char):
8100 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 8101
e42cd1a7
JB
81022010-04-19 Juanma Barranquero <lekktu@gmail.com>
8103
8104 * dired.c (Ffile_attributes): Fix typo in docstring.
8105
6e104790 81062010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
8107
8108 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8109 NSInteger (Bug#5811).
8110
6e104790 81112010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
8112
8113 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8114 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8115
6e104790 81162010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
8117
8118 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8119
6e104790
SM
81202010-04-19 Chong Yidong <cyd@stupidchicken.com>
8121
8122 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8123 terminal frames (Bug#5837).
8124
37dcfea0
EZ
81252010-04-19 Eli Zaretskii <eliz@gnu.org>
8126
d1da276f
EZ
8127 * .gdbinit (xsubchartable): New command.
8128
37dcfea0
EZ
81292010-04-19 Eli Zaretskii <eliz@gnu.org>
8130
8131 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 8132 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
8133 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8134 and
8135 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8136
e9515805
SM
81372010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8138
8139 * alloc.c (Fpurecopy): Hash-cons if requested.
8140 (syms_of_alloc): Update purify-flag docstring.
8141
22aa44a8
JD
81422010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8143
8144 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8145 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8146
ebb5722e
EZ
81472010-04-17 Eli Zaretskii <eliz@gnu.org>
8148
8149 Fix a crash when an NSM character is inserted at BEGV.
8150
8151 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8152 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8153 NEUTRAL_B or UNKNOWN_BT.
8154
0f4442ef
EZ
81552010-04-16 Eli Zaretskii <eliz@gnu.org>
8156
8157 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8158 other rows with cursor unless they are different from this row and
8159 this row is part of a continued line. (Bug#5943)
8160
7d4e45f8
DN
81612010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8162
8163 * s/freebsd.h: Restore osreldate.h include.
8164 Suggested by Naohiro Aota.
8165
5ba5ec85
J
81662010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8167
8168 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8169
20af301d
CY
81702010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8171
8172 * s/cygwin.h: Avoid linking against static libgcc.
8173
a4b000fb
JL
81742010-04-15 Juri Linkov <juri@jurta.org>
8175
8176 * window.c: Add Qscroll_command.
8177 Remove Vscroll_preserve_screen_position_commands.
8178 (window_scroll_pixel_based, window_scroll_line_based): Check the
8179 `scroll-command' property on the last command instead of searching
8180 the last command in Vscroll_preserve_screen_position_commands.
8181 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8182 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8183 (scroll-preserve-screen-position): Doc fix.
8184 (Vscroll_preserve_screen_position_commands): Remove variable.
8185
bc319ba4
DN
81862010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8187
6bb24457
DN
8188 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8189
19d4c244
DN
81902010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8191
8192 Reduce cpp use in Makefile.in.
8193 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8194 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8195 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8196 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8197 (CRT0_COMPILE): Remove, inline it in the only user.
8198
32129746
JL
81992010-04-14 Juri Linkov <juri@jurta.org>
8200
8201 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8202 `scroll-up-command' and `M-v' from `scroll-down' to
8203 `scroll-down-command'.
8204
9013a7f8
JL
82052010-04-14 Juri Linkov <juri@jurta.org>
8206
8207 * window.c (Vscroll_preserve_screen_position_commands): New variable
8208 with the default value as the list of Qscroll_down and Qscroll_up.
8209 (window_scroll_pixel_based, window_scroll_line_based): Search the
8210 last command in the list Vscroll_preserve_screen_position_commands
8211 instead of comparing with Qscroll_up and Qscroll_down.
8212
4bef8d26
JD
82132010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8214
92848133
JD
8215 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8216 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8217 does that.
8218
4bef8d26
JD
8219 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8220 to zero.
8221
58b963f7
SM
82222010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8223
84164a0d
SM
8224 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8225
2b0a91e7
SM
8226 Try to solve the problem of spurious EOF chars in long lines of text
8227 sent to interactive subprocesses.
8228 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8229 (system_process_attributes): Remove unused var `ttotal'.
8230 * process.c (send_process): Don't bother breaking long line with EOF
8231 chars when talking to ttys any more.
8232 (wait_reading_process_output): Output a warning when called in such
8233 a way that it could block without being interruptible.
8234
58b963f7
SM
8235 Try to detect file modification within the same second.
8236 * buffer.h (struct buffer): New field modtime_size.
8237 * buffer.c (reset_buffer): Initialize it.
8238 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8239 (Fverify_visited_file_modtime): Check it.
8240 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8241 (Fset_visited_file_modtime): Set (or clear) it.
8242
01f5787b
SM
82432010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8244
8245 * process.c (status_notify): Remove unused var `ro'.
8246
83725342
JD
82472010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8248
8249 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8250 more than one visual (Bug#5938).
8251
b9465836
DN
82522010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8253
50426a04
JB
8254 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8255 Undefine.
b9465836 8256
8d9c8ece
DN
82572010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8258
b1f52161
DN
8259 Remove C_SWITCH_SYSTEM_TEMACS.
8260 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8261 (malloc, realloc, free): Use emacs, not temacs for conditional
8262 definition.
8263
8264 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8265 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8266
8d9c8ece
DN
8267 Use autoconf, not cpp for some variables.
8268 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8269 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8270 (ALL_CFLAGS): Use them as make variables.
8271 (really-lwlib, really-oldXMenu): Do not pass them.
8272
1ecb2d3f
JD
82732010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8274
8275 * xmenu.c (apply_systemfont_to_dialog): New.
8276 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8277
3a4fa2f2
SM
82782010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8279
97e53006
SM
8280 * process.c (exec_sentinel): Preserve current-buffer.
8281
3a4fa2f2
SM
8282 * process.c (read_process_output): Move the save-current-buffer to
8283 apply to both the filter and the non-filter branches.
8284
88df7221
DN
82852010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8286
8287 * s/msdos.h (UNEXEC): New definition.
8288
5634ff85
YM
82892010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8290
6eff5c3d
YM
8291 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8292 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8293
8294 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8295 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8296 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8297 TRY_WINDOW_CHECK_MARGINS.
8298
8299 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
8300 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8301 width only when it is for padding.
5634ff85 8302
b13aef54
J
83032010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8304
8305 * xfns.c (Fx_show_tip): Call try_window in a loop until
8306 fonts_changed_p is zero (Bug#2423).
8307
21d28484
EZ
83082010-04-08 Eli Zaretskii <eliz@gnu.org>
8309
8310 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8311 the end of TEXT_AREA. (Bug#5856)
8312
0269ef77
JD
83132010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8314
8315 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8316 HAVE_GCONF.
8317
5930fe97
EZ
83182010-04-08 Eli Zaretskii <eliz@gnu.org>
8319
8320 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8321 prev.orig_type, for resolving type of NSM. (Bug#5858)
8322
99852628
JD
83232010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8324
8325 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8326 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8327 in current_font.
8328 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
8329 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8330 New functions.
8331 (syms_of_xsettings): Initialize current_font.
8332 defsubr Sfont_get_system_normal_font.
99852628 8333
686b968e
JB
8334 * xsettings.h (Ffont_get_system_normal_font)
8335 (xsettings_get_system_normal_font): Declare.
99852628
JD
8336
8337 * xfns.c (extern xlwmenu_default_font): Remove.
8338 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8339 to xlwmenu.c.
8340
8341 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8342 menu items in UTF-8.
8343
8344 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8345 (apply_systemfont_to_menu): New function.
bba3e508
SM
8346 (set_frame_menubar, create_and_show_popup_menu):
8347 Call apply_systemfont_to_menu.
99852628 8348
7fc874c4
J
83492010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8350
8351 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8352 FRAME_LINE_TO_PIXEL_Y.
8353
8354 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8355 pixelwidth/height.
8356
863bf481
DN
83572010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8358
5e5a3b92
DN
8359 Simplify code for HP machines.
8360 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8361 for GNU_LINUX, not needed.
8362 (UNEXEC, NEED_BSDTTY): Move definitions...
8363 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8364
863bf481
DN
8365 * m/iris4d.h (UNEXEC): Move definition ...
8366 * s/irix6-5.h (UNEXEC): ... here.
8367
3e6bec3b
JD
83682010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8369
8370 * xfns.c (set_machine_and_pid_properties): New function.
8371 (Fx_create_frame): Call set_machine_and_pid_properties.
8372
2912322b
SM
83732010-04-03 Eli Zaretskii <eliz@gnu.org>
8374
bba3e508
SM
8375 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8376 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
8377 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8378
2912322b
SM
8379 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8380 in this function. (Bug#5703)
8381
83822010-04-03 Chong Yidong <cyd@stupidchicken.com>
8383
8384 * nsterm.h: Fix last change.
8385
c435b432
DN
83862010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8387
a568f507
DN
8388 * m/intel386.h (NO_REMAP): Move definition ...
8389 * s/msdos.h (NO_REMAP): ... here.
8390
4cd9f6c2
DN
8391 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8392
c435b432
DN
8393 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8394 used on those platforms.
8395
42a2c622
DN
83962010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8397
8398 Remove extern errno declarations.
8399 * xterm.c:
8400 * xrdb.c:
8401 * w32term.c:
8402 * unexec.c:
8403 * unexaix.c:
8404 * sysdep.c:
8405 * process.c:
8406 * lread.c:
8407 * keyboard.c:
8408 * floatfns.c:
8409 * filelock.c:
8410 * fileio.c:
8411 * emacs.c (main):
8412 * ecrt0.c:
8413 * dispnew.c:
8414 * callproc.c:
8415 * buffer.c: Remove errno extern declarations.
8416 * s/netbsd.h (NEED_ERRNO): Remove.
8417
8224f93d
DN
84182010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8419
8420 Remove all uses of LIBX11_SYSTEM.
8421 * Makefile.in (LIBX11_SYSTEM): Remove.
8422 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8423 instead.
8424
814062c7
EZ
84252010-04-01 Eli Zaretskii <eliz@gnu.org>
8426
ed68db4d
EZ
8427 Remove support for DJGPP v1.x (bug#5813).
8428
8429 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
8430 * s/msdos.h:
8431 * unexec.c (make_hdr, copy_text_and_data):
8432 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 8433 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
8434 (IT_set_terminal_modes, __write, _rename, gethostname)
8435 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8436 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8437 the value of __DJGPP__.
ed68db4d
EZ
8438 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8439 compatibility code.
8224f93d
DN
8440 * lread.c:
8441 * gmalloc.c (memalign):
8442 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8443 * emacs.c (main):
8444 * dosfns.c (init_dosfns):
ed68db4d
EZ
8445 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8446
52f4d8d5
EZ
84472010-04-01 Eli Zaretskii <eliz@gnu.org>
8448
814062c7
EZ
8449 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8450 string with `cursor' property comes from an `after-string'
8451 overlay. (Bug#5816)
8452
0dc2e11d
GM
84532010-04-01 Glenn Morris <rgm@gnu.org>
8454
8455 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8456 Define as Makefile variables.
8457 (LIBX): Use above variables rather than directly using autoconf.
8458
1d29df59
DN
84592010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8460
8461 Clean up BSD_SYSTEM use.
8462 * xterm.c:
8463 * process.c:
8464 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8465 for including <sys/ioctl.h>.
8466 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8467 code is only used for MSDOS.
8468
1546c559
JL
84692010-03-31 Juri Linkov <juri@jurta.org>
8470
8471 * image.c: Add `Qextension_data'.
8472 (syms_of_image): Initialize and staticpro `Qextension_data'.
8473 (Fimage_metadata): Rename from `Fimage_extension_data'.
8474 (gif_load): Put GIF extension data to the property
8475 `Qextension_data'.
8476
6521c534
CY
84772010-03-31 Chong Yidong <cyd@stupidchicken.com>
8478
8479 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8480 * nsterm.h: Fix prototype.
8481
52c30783
EZ
84822010-03-31 Eli Zaretskii <eliz@gnu.org>
8483
8484 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8485 trailing whitespace in right-to-left rows.
8486
855a0da7
SM
84872010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8488
8489 Get rid of the direct_output optimizations.
8490 * keyboard.c (nonundocount): Remove extern declaration.
8491 (command_loop_1): Remove brittle optimisation for cheap and
8492 common operations.
8493 * xdisp.c (redisplay_internal): Don't bother checking
8494 redisplay_performed_directly_p any more.
8495 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8496 any more.
8497 * dispnew.c (redisplay_performed_directly_p)
8498 (direct_output_for_insert, direct_output_forward_char):
8499 * dispextern.h (redisplay_performed_directly_p)
8500 (direct_output_for_insert, direct_output_forward_char): Remove.
8501 * cmds.c (nonundocount): Make it static.
8502
85738751 85032010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
8504
8505 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8506
85738751 85072010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
8508
8509 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8510 invisible (Bug#5766).
8511
85738751 85122010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 8513
855a0da7
SM
8514 * xdisp.c (x_consider_frame_title, update_window_cursor):
8515 Remove HAVE_NS conditionals.
194d44e7 8516 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
8517
8518 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8519 filename for the title.
8520 (ns_set_doc_edited): Do nothing if the selected window is a
8521 minibuffer window.
8522
8523 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8524 ns_set_doc_edited.
8525
8526 * nsterm.m: Remove unneeded prototype.
8527
85738751 85282010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
8529
8530 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8531 in the DOC file. (Bug#5336)
8532
85738751 85332010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
8534
8535 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8536
75d1428c
SM
85372010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8538
8539 * window.c (keys_of_window): Remove redundant/overridden bindings.
8540
82043cfb
EZ
85412010-03-30 Eli Zaretskii <eliz@gnu.org>
8542
8543 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8544 Restore original behavior when the iterator is not bidi_p.
8545
b5dd0ae7
DN
85462010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8547
8548 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8549
bd924a5d
EZ
85502010-03-30 Eli Zaretskii <eliz@gnu.org>
8551
8552 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8553 are outside the range of cached character positions.
8554
3580374b
JB
85552010-03-30 Juanma Barranquero <lekktu@gmail.com>
8556
8557 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8558
a7b02820
EZ
85592010-03-30 Eli Zaretskii <eliz@gnu.org>
8560
8561 Initial support for bidirectional editing.
8562
8563 * Makefile.in (obj): Include bidi.o.
8564 (bidi.o): New target.
8565
8566 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8567 ($(BLD)/bidi.$(O)): New target.
8568
8569 * bidi.c: New file.
8570
8571 * buffer.h (struct buffer): New members bidi_display_reordering
8572 and bidi_paragraph_direction.
8573
8574 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8575 and bidi_paragraph_direction.
8576 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8577 and bidi-paragraph-direction.
8578 (Fbuffer_swap_text): Swap the values of
8579 bidi_display_reordering and bidi_paragraph_direction.
8580
8581 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8582 (bidi_type_t, bidi_dir_t): New types.
8583 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8584 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8585 prev_stop, base_level_stop, and eol_pos.
8586 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8587 (IT_STACK_SIZE): Enlarge to 5.
8588 (struct glyph_row): New member reversed_p.
8589 <string_buffer_position>: Update prototype.
8590 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8591 glyph_row if bidi_it.paragraph_dir == R2L.
8592 (struct glyph): New members resolved_level and bidi_type.
8593
8594 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8595 processing or buffer's direction is right-to-left.
8596 (prepare_desired_row): Preserve the reversed_p flag.
8597 (row_equal_p): Compare the reversed_p attributes as well.
8598
bba3e508
SM
8599 * xdisp.c (init_iterator): Initialize it->bidi_p.
8600 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
8601 buffer's value of bidi_paragraph_direction.
8602 (reseat_1): Initialize bidi_it.first_elt.
8603 (set_iterator_to_next, next_element_from_buffer): Use the value of
8604 paragraph_embedding to determine the paragraph direction.
8605 (set_iterator_to_next): Under bidi reordering, call
8606 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8607 new_paragraph flag is set in the bidi iterator.
8608 (next_element_from_buffer): If bidi_it.first_elt is set,
8609 initialize paragraph direction and find the first character to
8610 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
8611 prime the bidi iterator starting at the line's beginning.
8612 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
8613 non-linearity of the bidi iteration. Likewise for when we back up
8614 beyond the previous stop_charpos. When moving across stop_charpos,
8615 record it in prev_stop.
8616 (display_line): Set row->end and it->start for the next row to the
8617 next character in logical order. Always extend reversed_p rows to
8618 the end of line, even if they end at ZV. Copy the reversed_p flag
8619 to the next glyph row. Keep calling set_cursor_from_row for
8620 bidi-reordered rows even if we already have a possible candidate
8621 for cursor position. Set row_end after all the row's glyphs have
8622 been produced, by looping over the glyphs. Record the position
8623 after EOL in it->eol_pos, and use it to set end_pos of the last
8624 row produced for a continued line.
8625 <Qright_to_left, Qleft_to_right>: New variables.
8626 (syms_of_xdisp): Initialize and staticpro them.
8627 (string_buffer_position_lim): New function.
8628 (string_buffer_position): Most of code moved to
8629 string_buffer_position_lim. Last argument and return value are
8630 now EMACS_INT; all callers changed.
8631 (set_cursor_from_row): Rewritten to support bidirectional text and
8632 reversed glyph rows.
bba3e508
SM
8633 (text_outside_line_unchanged_p, try_window_id):
8634 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
8635 paragraph direction can be affected by the change.
8636 (append_glyph, append_composite_glyph)
8637 (produce_image_glyph, append_stretch_glyph): Set the
8638 resolved_level and bidi_type members of each glyph.
8639 (append_glyph): If the glyph row is reversed, prepend the glyph
8640 rather than appending it.
8641 (handle_stop_backwards): New function.
8642 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8643 (reseat): call handle_stop_backwards to recompute prev_stop and
8644 base_level_stop for the new position.
8645 (handle_invisible_prop): Under bidi iteration, skip invisible text
8646 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8647 paragraph direction. Update IT->prev_stop after skipping
8648 invisible text.
8649 (move_it_in_display_line_to): New variables prev_method
8650 and prev_pos. Compare for strict equality in
8651 BUFFER_POS_REACHED_P.
8652 (try_cursor_movement): Examine all the candidate rows that occlude
8653 point, to return the best match. If rows are bidi-reordered
8654 and point moved backwards, back up to the row that is not a
8655 continuation line, and start looking for a suitable row from
8656 there.
8657
8658 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8659 rather than appending, if the glyph_row's reversed_p flag is set.
8660 Set the resolved_level and bidi_type members of each glyph.
8661
8662 * .gdbinit (pbiditype): New command.
8663 (pgx): Use it to display bidi level and type of the glyph.
8664 (pitx): Display some bidi information about the iterator.
8665 (prowlims, pmtxrows): New commands.
8666
32a8894e
DN
86672010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8668
8669 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8670 * s/usg5-4.h (LIBS_DEBUG):
8671 * s/irix6-5.h (C_DEBUG_SWITCH):
8672 * s/gnu-linux.h (LIBS_DEBUG):
8673 * s/darwin.h (LIBS_DEBUG):
8674 * s/bsd-common.h (LIBS_DEBUG):
8675 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8676 * m/iris4d.h (LIBS_DEBUG):
8677 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8678
8679 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8680 (LIBS_DEBUG): Remove definition.
8681
649dbf36
CY
86822010-03-27 Chong Yidong <cyd@stupidchicken.com>
8683
8684 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8685 Windows.
8686
cad4261f
YM
86872010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8688
8689 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8690 `connect' (Bug#5723).
8691
cd591dbc
HE
86922010-03-25 Helmut Eller <eller.helmut@gmail.com>
8693
8694 * process.c (Fmake_network_process): Call `select' for interrupted
8695 `connect' rather than creating new socket (Bug#5173).
8696
e867cb5d 86972010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
8698
8699 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8700
8701 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8702
8703 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8704
e867cb5d 87052010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
8706
8707 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8708 XLoadQueryFont.
8709
e867cb5d 87102010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
8711
8712 * coding.c (decode_coding_ccl): Fix previous change for the
8713 multibyte case.
fb608df3
KH
8714 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8715 case that the output buffer is fullfilled.
8716 (encode_coding): Setup ccl program here.
fbdc1721 8717
5845f0ed
DN
87182010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8719
814fb708
DN
8720 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8721
5845f0ed
DN
8722 Simplify LIBS_MACHINE definitions.
8723 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8724 * m/iris4d.h (LIBS_MACHINE): Likewise.
8725 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8726 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 8727 * s/netbsd.h: Remove commented out code.
5845f0ed 8728
b7064064
DN
87292010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8730
df7734b2
DN
8731 Remove dead code dealing with POSIX_SIGNALS.
8732 * atimer.c (set_alarm): Remove dead code, all USG systems define
8733 POSIX_SIGNALS.
8734 * data.c (arith_error): Likewise.
8735 * keyboard.c (input_available_signal, handle_user_signal)
8736 (interrupt_signal): Likewise.
8737 * process.c (sigchld_handler): Likewise.
8738 (create_process): Remove if 0 code. Remove HPUX conditional when
8739 !defined (POSIX_SIGNALS), it cannot be true.
8740 * syssignal.h: Remove USG5_4 and USG conditionals when
8741 !POSIX_SIGNALS, they cannot be true.
8742
b7064064
DN
8743 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8744 NO_SOCK_SIGIO, not used anymore.
8745
55da5ee3
DN
87462010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8747
0be96e3a
DN
8748 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8749 support vax on BSDs.
8750
55da5ee3
DN
8751 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8752 * s/aix4-2.h (ORDINARY_LINK): ... here.
8753
c0282183
AS
87542010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8755
82c3d67a
AS
8756 * Makefile.in (abs_builddir): Define.
8757 (bootstrap_exe): Use it.
8758 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 8759
3613edce
SM
87602010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8761
8762 * Makefile.in (bootstrap_exe): Use an absolute name.
8763
7f110ddc
DN
87642010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8765
22e87574
DN
8766 Remove support for old GNU/Linux using libc version 5.
8767 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8768 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8769
05a670e6
DN
8770 Consolidate redundant definitions in s/bsd-common.h.
8771 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8772 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8773 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8774 doing it in all files that include this one.
8775 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8776 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8777 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8778 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8779 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8780 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8781 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8782 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8783 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8784
2968f561
DN
8785 Consolidate redundant definitions.
8786 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8787 it's undefined in all files that include this one.
8788 (POSIX_SIGNALS): Define here instead of doing it in all files that
8789 include this one.
8790 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8791 (POSIX_SIGNALS): Do not define.
8792 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8793 (POSIX_SIGNALS): Do not define.
8794 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8795 (POSIX_SIGNALS): Do not define.
8796
15d25dc0
DN
8797 Remove support for old UNIX System V systems.
8798 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8799 * s/usg-5-4-2.h: Remove.
8800
07e339e4
DN
8801 Remove support for Solaris on PPC and for old versions.
8802 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8803 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8804 that cancel each other.
8805 * s/sol2-3.h:
8806 * s/sol2-4.h:
8807 * s/sol2-5.h: Remove.
8808 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8809 (NO_REMAP): Remove, unused.
8810 (UNEXEC): Move definition ...
8811 * s/aix4-2.h (UNEXEC): ... here.
8812
7f110ddc
DN
8813 * s/openbsd.h: Remove support for non-ELF and for systems that do
8814 not support shared libraries.
8815 * s/netbsd.h:
8816 * s/freebsd.h: Likewise.
8817
605f35cd
DN
88182010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8819
8820 Remove non-working support for lynxos 3.0.
8821 * s/lynxos.h: Remove file.
8822
8823 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8824 COFF_BSD_SYMBOLS, nothing defines it anymore.
8825
aed71cf4
DN
88262010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8827
8828 Remove obsolete uses of HAVE_SHM.
8829 * emacs.c (standard_args):
8830 (Fdump_emacs):
8831 (syms_of_emacs): Remove code depending on HAVE_SHM.
8832
8833 * alloc.c: Remove HAVE_SHM dependent definition.
8834
8835 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8836
aded53ff
GM
88372010-03-18 Glenn Morris <rgm@gnu.org>
8838
17284745
GM
8839 * emacs.c (USAGE4): Hard-code bug address.
8840 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8841 (bug_reporting_address): Remove.
8842 (main): Don't call bug_reporting_address.
8843
aded53ff
GM
8844 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8845 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8846
303500aa
CY
88472010-03-15 Chong Yidong <cyd@stupidchicken.com>
8848
8849 * xfns.c (Fx_create_frame):
8850 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8851 on left.
8852
cef3058f
CY
88532010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8854
8855 * editfns.c (Fformat): Account for string precision when computing
8856 field width (Bug#5710).
8857
a647d59d
CY
88582010-03-12 Chong Yidong <cyd@stupidchicken.com>
8859
4fa42018
CY
8860 * xfns.c (Fx_create_frame): Set default to Qright.
8861
a647d59d
CY
8862 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8863 all window systems.
8864
6da23aaa
EZ
88652010-03-12 Eli Zaretskii <eliz@gnu.org>
8866
a96f6398 8867 These changes remove termcap.c from the build on Posix platforms.
83d02def 8868 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
8869 (MSDOS_OBJ): ...to here.
8870 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8871 now identical to when LIBS_TERMCAP is defined.
8872
8873 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8874
8875 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8876
a96f6398 8877 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 8878
288f9fc0
CY
88792010-03-10 Chong Yidong <cyd@stupidchicken.com>
8880
8881 * Branch for 23.2.
8882
d48cd3f4
SM
88832010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8884
8885 Cleanup setup of gl_state in various parts of the code.
8886 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8887 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8888 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8889 (skip_chars):
8890 * regex.c (regex_compile): Use it.
8891 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8892 it's now set in regex_compile when/if we need it.
8893
618db430
SM
88942010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8895
c0335e02
SM
8896 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8897 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8898 (QUIT): Use it to consolidate code and remove redundancy.
8899 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8900
254c06a8
SM
8901 * regex.c (regex_compile): Setup gl_state as well.
8902
618db430
SM
8903 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8904 (in_classes): Use CONSP before XCAR/XCDR.
8905
233f0c9f
CY
89062010-03-03 Chong Yidong <cyd@stupidchicken.com>
8907
8908 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8909 definitions, so that keyboard macros are correctly handled
8910 (Bug#5481).
8911
75f80e63
EZ
89122010-03-02 Eli Zaretskii <eliz@gnu.org>
8913
8914 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8915 text that could be relocated inside the call to emacs_mule_char.
8916 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8917 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8918
dcfb9bc4
KH
89192010-03-02 Kenichi Handa <handa@m17n.org>
8920
fc9a17bc
KH
8921 * character.c (parse_str_as_multibyte): Fix handling of the
8922 multibyte form of raw-bytes.
8923 (str_as_multibyte): Likewise.
8924
dcfb9bc4
KH
8925 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8926 form of raw-bytes.
8927
412c01b6
CY
89282010-02-28 Chong Yidong <cyd@stupidchicken.com>
8929
8930 * charset.c (load_charset_map_from_file)
8931 (load_charset_map_from_vector): Zero out allocated
8932 charset_map_entries before using them.
8933
df7e1ea0
AS
89342010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8935
8936 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8937
fe69a722
CY
89382010-02-27 Chong Yidong <cyd@stupidchicken.com>
8939
4ed28cf4
CY
8940 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8941 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 8942
7379cfce
KH
89432010-02-26 Kenichi Handa <handa@m17n.org>
8944
f88cc4d6
KH
8945 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8946
7379cfce
KH
8947 * xdisp.c (reseat_to_string): Fix previous change.
8948
cf2fdcfb
CY
89492010-02-26 David Reitter <david.reitter@gmail.com>
8950
8951 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8952 Lisp_Object (Bug#4736).
8953
cc6c7c75
KH
89542010-02-25 Kenichi Handa <handa@m17n.org>
8955
8956 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8957
32e737d7
JD
89582010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8959
8960 * xterm.c (XTflash): Move declarations before statements.
8961
8962 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8963 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8964 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8965 (xg_create_tool_bar): Remove unused variables.
8966 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 8967 (xg_create_frame_widgets): Remove variable grav.
32e737d7 8968
676cae9f
CY
89692010-02-21 Chong Yidong <cyd@stupidchicken.com>
8970
8971 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8972
886cc2b8
SM
89732010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8974
8975 * term.c (fatal): Add a final \n if needed (bug#5596).
8976
ddb2d8e2
CY
89772010-02-18 Chong Yidong <cyd@stupidchicken.com>
8978
8979 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8980
2a4f8d3d
GM
89812010-02-18 Glenn Morris <rgm@gnu.org>
8982
8983 * callint.c (Finteractive): Doc fix.
8984
ebaf11b6
KH
89852010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8986
886cc2b8
SM
8987 * coding.c (record_conversion_result):
8988 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
8989 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8990 memory allocation error.
8991
d0396581
KH
89922010-02-17 Kenichi Handa <handa@m17n.org>
8993
886cc2b8
SM
8994 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8995 Fix for the case that the output buffer is fullfilled.
d0396581
KH
8996 (decode_coding): Setup ccl program here. Keep looping when the
8997 decoder stopped because the output buffer is
8998 fullfilled (bug#5534).
8999
9000 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
9001
98599f74
JD
90022010-02-13 Jan Djärv <jan.h.d@swipnet.se>
9003
471e4f04 9004 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 9005 bug #5571.
886cc2b8 9006 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 9007 overdrawn.
98599f74 9008
182659ae
JD
90092010-02-10 Jan Djärv <jan.h.d@swipnet.se>
9010
9011 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
9012 doing_interact here.
9013 (ice_connection_closed): New function.
9014 (x_session_check_input, smc_die_CB, ice_io_error_handler)
9015 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
9016 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
9017 returns I/O error.
9018 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
9019 bug #5512.
9020
9be32c4e 90212010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
9022
9023 * nsfont.m (nsfont_open): The system's value for the font descent
9024 is negative, so round it down to avoid clipping.
9025
a2f3eb19
CY
90262010-02-06 Chong Yidong <cyd@stupidchicken.com>
9027
9028 * charset.c (load_charset_map_from_file)
9029 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 9030 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 9031
3088147c
CY
90322010-02-05 Chong Yidong <cyd@stupidchicken.com>
9033
9034 * charset.c (load_charset_map_from_file): Allocate large
9035 charset_map_entries structure on the heap rather than the stack.
9036 (Bug#5526).
9037
b57d9029
KH
90382010-01-31 Kenichi Handa <handa@m17n.org>
9039
9040 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 9041 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 9042
c67d885b
CY
90432010-01-31 Chong Yidong <cyd@stupidchicken.com>
9044
9045 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
9046 <deactivated@gmail.com> (Bug#3605).
9047
8fab2362
CY
90482010-01-31 David De La Harpe Golden <david@harpegolden.net>
9049
9050 * fileio.c (Frename_file): Correctly rename symlinks to
9051 directories (Bug#5496).
9052
cb2a62f2
CY
90532010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
9054
9055 * nsterm.m (ns_ring_bell): Handle visible bell like X.
9056
944c7a26
AS
90572010-01-30 Andreas Schwab <schwab@linux-m68k.org>
9058
9059 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
9060
c024ac08
CY
90612010-01-29 Chong Yidong <cyd@stupidchicken.com>
9062
9063 * frame.c (DEFAULT_ROWS): Change default to 35.
9064
9065 * xfns.c (x_default_font_parameter): Change default XFT font to
9066 monospace-10 (Bug#3643).
9067
af93af83
EZ
90682010-01-29 Eli Zaretskii <eliz@gnu.org>
9069
9070 * w32inevt.c (key_event): Remove unnecessary comparison of
9071 event->uChar.AsciiChar with 128.
9072
ca0eb708
CY
90732010-01-28 Chong Yidong <cyd@stupidchicken.com>
9074
b242dbfc
CY
9075 * fileio.c (Frename_file): Fix last change (Bug#5487).
9076
ca0eb708
CY
9077 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9078
9079 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9080
45d45af5
JD
90812010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9082
9083 * xfns.c (Fx_create_frame): Remove window size matching code from
9084 2010-01-15.
a73f9c9d 9085 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 9086
7e233730
JR
90872010-01-27 Jason Rumney <jasonr@gnu.org>
9088
9089 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 9090 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 9091
86e893e3
KH
90922010-01-27 Kenichi Handa <handa@m17n.org>
9093
9094 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 9095 pattern string (Bug#4209).
86e893e3 9096
8719abec
CY
90972010-01-27 David De La Harpe Golden <david@harpegolden.net>
9098
9099 * fileio.c (Frename_file): Call copy-directory and
9100 delete-directory for directories, in order to handle cross-device
9101 renaming (Bug#3353).
9102
844794c8
JD
91032010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9104
aa3e13b5 9105 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 9106 sizes 24 and 10. Bug #3643.
844794c8 9107
bd4b5750
SM
91082010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9109
8dc1adf6 9110 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
9111 * keymap.c (shadow_lookup): Add `remap' arg.
9112 (describe_map, describe_vector): Update calls to shadow_lookup.
9113 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9114 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
9115 perform remapping during shadow_lookup check of remapped_sequences.
9116
285d07e2
CY
91172010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9118
9119 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9120 png_check_sig, which has been removed in libpng 1.4.
9121
c6d09b8d
CY
91222010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9123
9124 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9125 lacks this header file).
9126
3d782998
YM
91272010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9128
9129 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9130 as in Emacs 22.
9131
2aff7c53
YM
91322010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9133
9134 * lisp.h (make_pure_string): String pointer arg now points to const.
9135
9136 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9137 args now point to const.
9138
74327f7a
EZ
91392010-01-22 Eli Zaretskii <eliz@gnu.org>
9140
9141 * lread.c (Fload): Don't treat files without .elc extension as
9142 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9143 them. (bug#5303)
9144
4d1e6632
KH
91452010-01-20 Kenichi Handa <handa@m17n.org>
9146
9147 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9148 treat the source as actual byte sequence.
9149
1fdede8f
AM
91502010-01-19 Alan Mackenzie <acm@muc.de>
9151
9152 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 9153 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
9154 `signal_after_change_p' to `coherent_change_p', and make the
9155 invocation of `modify_region' conditional on it.
9156
67477f30
JD
91572010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9158
9159 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9160 for debug purpose.
9161 (syms_of_xsettings): Declare xft-settings.
9162
244b023e
CY
91632010-01-18 Chong Yidong <cyd@stupidchicken.com>
9164
9165 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9166
617364fe
CY
91672010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9168
9169 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9170
4fe22cdf
CY
91712010-01-16 Chong Yidong <cyd@stupidchicken.com>
9172
9173 * emacs.c (standard_args): Adjust arg priorities to reflect how
9174 they are processed in startup.el.
9175
e118d2be
AS
91762010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9177
9178 * Makefile.in (lisp, shortlisp): Update.
9179
523ae620
SM
91802010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9181
9182 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9183 code, link the new kboard into all_kboard before running Lisp code,
9184 and protect the new terminal with GCPRO (Bug#5365).
9185 (x_term_init): Remove unused var `atom'.
9186 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9187
f0d13888
JD
91882010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9189
9190 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9191 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9192 to find out usable size of the desktop. Don't make frames larger than
ac146f82 9193 this. Bug #3643.
f0d13888 9194
cc320f07
KH
91952010-01-15 Kenichi Handa <handa@m17n.org>
9196
9197 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9198
7ffdf101
CY
91992010-01-15 Chong Yidong <cyd@stupidchicken.com>
9200
9201 * nsterm.m (Qnone): Define.
9202
9203 * nsfns.m (Qnone): Move definition to nsterm.m.
9204
d12bd917
KH
92052010-01-14 Kenichi Handa <handa@m17n.org>
9206
9207 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9208 systems.
9209
d9a7c140
KH
92102010-01-14 Kenichi Handa <handa@m17n.org>
9211
9212 Make auto-composition work on all buffers even if they are
9213 fundamental mode.
9214
9215 * composite.c (Vauto_composition_mode): New variable.
9216 (composition_compute_stop_pos): Check Vauto_composition_mode
9217 instead of Vauto_composition_function.
9218 (composition_adjust_point, Ffind_composition_internal): Likewise.
9219 (syms_of_composite): Declare Lisp variable
9220 "auto-composition-mode" here.
9221
63286bb2
CY
92222010-01-13 Chong Yidong <cyd@stupidchicken.com>
9223
9224 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9225 during call to vendor-specific-keysyms (Bug#5365).
9226
c2623ee7
YM
92272010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9228
9229 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9230 Call SIGNAL_THREAD_CHECK (Bug#5333).
9231
9232 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9233 Call SIGNAL_THREAD_CHECK.
9234
0b5397c2
SM
92352010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9236
9237 Try to fix bug#5314. This is probably not the final word, tho.
9238 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9239 recent-auto-save-p as a side-effect.
9240 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9241 * buffer.c (Fkill_buffer, reset_buffer):
9242 * editfns.c (Fsubst_char_in_region):
9243 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9244 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9245
dc954cb2
KH
92462010-01-13 Kenichi Handa <handa@m17n.org>
9247
9248 Display buffer name, etc. in mode line by composing correctly.
9249
9250 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9251 STRING is not nil.
0b5397c2 9252 (display_mode_element): Adjust for the change of
dc954cb2
KH
9253 decode_mode_spec and display_line.
9254 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9255 (display_string): Handle the case that STRING is non-null and
9256 LISP_STRING is not nil.
9257
0b5397c2
SM
9258 * xterm.c (x_draw_composite_glyph_string_foreground):
9259 Pay attention to s->face->overstrike.
dc954cb2
KH
9260
9261 * composite.c (composition_reseat_it): Don't check PT if STRING is
9262 non nil.
9263
4a00eaca
YM
92642010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9265
9266 * keyboard.c (read_char): Don't apply previous change when current
9267 buffer is unchanged by command execution.
9268
60abb287
JD
92692010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9270
9271 * keyboard.c (read_char): Return after executing from special map.
9272
893db5bc
GM
92732010-01-12 Glenn Morris <rgm@gnu.org>
9274
9275 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9276 bug-gnu-emacs rather than emacs-pretest-bug.
9277
4d03ece0
CY
92782010-01-11 Chong Yidong <cyd@stupidchicken.com>
9279
9280 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9281 initializing the Lisp variables that depend on them.
9282
1df47e38
YM
92832010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9284
9285 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9286 Clear areas that will not be updated after change of menu bar lines.
9287 Clear the menu bar window's current matrix when the window gets empty.
9288
2f1c6384
CY
92892010-01-09 Chong Yidong <cyd@stupidchicken.com>
9290
e398c61c
CY
9291 * intervals.h, textprop.c (extend_property_ranges): Return value
9292 and args changed. Discard properties that begin at or after the
9293 new end (Bug#5306).
9294
9295 * editfns.c (Fformat): Caller changed.
9296
e5a29a10
CY
9297 * nsterm.m (ns_set_default_prefs): Delete function.
9298 (syms_of_nsterm): Initialize ns_command_modifier,
9299 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9300 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9301
2f1c6384
CY
9302 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9303 position (Bug#4040).
9304
d427a9fa
EZ
93052010-01-09 Eli Zaretskii <eliz@gnu.org>
9306
9307 * editfns.c (Ffloat_time): Doc fix.
9308
21b9df2f
JD
93092010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9310
9311 * xfns.c (Fx_create_frame): Don't create frame larger than display
9312 by default bug#3643.
9313
4b00d3b1
YM
93142010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9315
9316 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9317 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9318 windows above internal border.
9319
9320 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9321 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9322 windows above internal border.
9323
9324 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9325 tool bar windows specially.
9326
9327 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9328
9329 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9330 specially.
9331 (XTflash): Take account of menu bar height.
9332
9333 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9334 specially.
9335
5075d853
JD
93362010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9337
ac146f82 9338 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
9339 also be true before we can return early (bug #5339).
9340
474217c8
CY
93412010-01-06 David Reitter <david.reitter@gmail.com>
9342
9343 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9344 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9345 (Bug#3233).
9346
c0e6d47d
JD
93472010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9348
d0cf45b7
JD
9349 * font.c (font_open_entity): Enable chache and call cached_font_ok
9350 for the driver if defined.
9351 (QCuser_spec): New symbol.
9352 (font_spec_from_name): Save name as user-spec.
9353 (font_load_for_lface): Keep user-spec instead of name.
9354 (font_open_by_name): Save name as user-spec.
9355 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 9356 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
9357
9358 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9359 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9360 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9361
9362 * font.h (struct font_driver): Add cached_font_ok.
9363
c0e6d47d
JD
9364 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9365
7c583cd8
JD
93662010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9367
9368 * xterm.c (x_new_font): Move code for setting rows/cols before
9369 resizing ...
ac146f82 9370 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
9371
9372 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
9373 (xg_frame_resized, xg_frame_set_char_size):
9374 Call xg_clear_under_internal_border.
7c583cd8 9375 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 9376
03f77f0a
CY
93772010-01-05 Chong Yidong <cyd@stupidchicken.com>
9378
9379 * keyboard.c (read_key_sequence): Catch keyboard switch after
9380 making a new tty frame (Bug#5095).
9381
2a1ef5be
KH
93822010-01-05 Kenichi Handa <handa@m17n.org>
9383
9384 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9385
e3eb1dae
SM
93862010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9387
9388 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9389 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9390 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9391
777013f2
MA
93922010-01-03 Michael Albinus <michael.albinus@gmx.de>
9393
9394 * dbusbind.c (xd_add_watch): Improve debug message.
9395 (xd_remove_watch): Improve debug message. If DATA is the session
9396 bus, unset D-Bus session environment.
9397 (Fdbus_init_bus): Pass the bus as argument to
9398 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 9399
8932b1c2
CY
94002010-01-01 Chong Yidong <cyd@stupidchicken.com>
9401
87231e2c
CY
9402 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9403
4801c5fa
CY
9404 * lread.c (syms_of_lread): Make it clearer that these are the
9405 names of loaded files (Bug#5068).
9406
8932b1c2
CY
9407 * eval.c (run_hook_with_args): Handle the case where the global
9408 value has the obsolete single-function form (Bug#5026).
9409
11e3c684
CY
94102009-12-27 Chong Yidong <cyd@stupidchicken.com>
9411
9412 * minibuf.c (Fall_completions): Minor optimization.
9413
5b28ce35
EZ
94142009-12-26 Eli Zaretskii <eliz@gnu.org>
9415
5ce6e4f4
JB
9416 * .gdbinit (pgx): Fix display of composite glyphs.
9417 Display cmp.from and cmp.to as well.
9418 (pitx): Fix last change.
5b28ce35 9419
bcffff46
KH
94202009-12-25 Kenichi Handa <handa@m17n.org>
9421
9422 * composite.h (composition_adjust_point): Update prototype.
9423
9424 * composite.c (composition_reseat_it): Don't make a composition
9425 spanning over point.
9426 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9427 composable characters.
9428 (composition_adjust_point): New arg NEW_PT. Callers changed.
9429
9430 * keyboard.c (command_loop_1): Force redisplay if the last point
9431 was within a composition.
9432 (adjust_point_for_property): Don't adjust point for automatic
9433 composition when called after buffer modification.
9434
3f670e9a
EZ
94352009-12-19 Eli Zaretskii <eliz@gnu.org>
9436
5ce6e4f4
JB
9437 * .gdbinit (pitx): Don't use enum names, use their values.
9438 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
9439 (pgx): Don't use enum names, use their values.
9440 (pitmethod): New helper command.
9441 (pitx): Use it to display iteration method.
9442 (pgrowit): New command.
9443
ad903955
EZ
9444 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9445
3f670e9a
EZ
9446 Update dependencies in Makefile.in.
9447
9448 * Makefile.in (alloc.o): Depend on termhooks.h.
9449 (atimer.o): Depend on blockinput.h.
9450 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9451 and frame.h.
9452 (callint.o): Depend on systime.h, coding.h, and composite.h.
9453 (callproc.o): Depend on buffer.h.
9454 (casefiddle.o): Don't depend on charset.h.
9455 (casetab.o): Depend on character.h.
9456 (ccl.o): Depend on composite.h.
9457 (chartab.o): Depend on ccl.h.
9458 (cm.o): Depend on dispextern.h.
9459 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9460 (coding.o): Don't depend on $(INTERVALS_H).
9461 (composite.o): Don't depend on dispextern.h explicitly (it's in
9462 $(INTERVALS_H)). Depend on ccl.h.
9463 (data.o): Depend on systime.h, coding.h, composite.h,
9464 dispextern.h, font.h, and ccl.h.
9465 (dired.o): Depend on composite.h.
9466 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9467 composite.h (it's in $(INTERVALS_H)).
9468 (doc.o): Depend on systime.h, coding.h, and composite.h.
9469 (editfns.o): Don't depend explicitly on dispextern.h.
9470 (emacs.o): Depend on frame.h and coding.h.
9471 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9472 (fileio.o): Depend on frame.h and commands.h. Don't depend
9473 explicitly on dispextern.h.
9474 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9475 composite.h.
9476 (fns.o): Don't depend on termhooks.h.
9477 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9478 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9479 coding.h, $(INTERVALS_H), window.h, xterm.h.
9480 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9481 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9482 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9483 fontset.h, ccl.h, and ftfont.h.
9484 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9485 (gtkutil.o): Depend on dispextern.h and composite.h.
9486 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9487 termhooks.h, and ccl.h.
9488 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9489 (intervals.o): Depend on systime.h and coding.h.
9490 (keyboard.o): Depend on composite.h and coding.h.
9491 (keymap.o): Depend on coding.h and frame.h.
9492 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9493 (macros.o): Depend on systime.h, coding.h, and composite.h.
9494 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9495 and atimer.h.
9496 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9497 dispextern.h explicitly.
0b5397c2
SM
9498 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9499 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
9500 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9501 (regex.o): Don't depend on charset.h.
9502 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9503 (search.o): Don't depend explicitly on composite.h.
9504 (sound.o): Depend on atimer.h and systime.h.
9505 (syntax.o): Don't depend explicitly on composite.h.
9506 (sysdep.o): Depend on coding.h and composite.h.
9507 (term.o): Depend on xterm.h and buffer.h.
9508 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9509 (textprop.o): Don't depend on dispextern.h explicitly.
9510 (undo.o): Depend on dispextern.h.
9511 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9512 dispextern.h and composite.h explicitly.
9513 (xdisp.o): Depend on ccl.h.
9514 (xfaces.o): Depend on coding.h and ccl.h.
9515 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9516 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9517 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9518 ftfont.h.
9519 (xgselect.o): New dependency.
9520 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9521 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9522 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9523 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9524 (xsmfns.o): Depend on frame.h and dispextern.h.
9525 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9526 sysselect.h.
9527
7a6f7fea
AS
95282009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9529
9530 * font.c (Fclear_font_cache): Pass correct cache argument to
9531 font_clear_cache.
9532
f4c21026
AS
95332009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9534
9535 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9536 twice.
9537
f7ab0997
CY
95382009-12-15 Chong Yidong <cyd@stupidchicken.com>
9539
9540 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9541 calling file-remote-p. Reported by Jim Meyering.
9542
fa8e045a
MA
95432009-12-15 Michael Albinus <michael.albinus@gmx.de>
9544
9545 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 9546 avoid compiler warnings. (Bug #5217)
fa8e045a 9547
a63dba42
KH
95482009-12-14 Kenichi Handa <handa@m17n.org>
9549
9550 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9551 in 8-bit encoding.
9552
5ce6e4f4 95532009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
9554
9555 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9556 tooltip windows.
9557
223e5fc6
JD
95582009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9559
36acb2a7
JD
9560 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9561 Xatom_net_window_type.
9562
9563 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9564 Xatom_net_window_type.
9565
b8f00677
JD
9566 * xterm.c (my_log_handler): New function.
9567 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 9568 so we can filter out buggy messages. (Bug #5120).
b8f00677 9569
e5f0bc9a
JD
9570 * xterm.c (xg_scroll_callback): Parameter list changed,
9571 use parameter GtkScrollType to determine scroll/line/page.
9572 Only allow dragging if a button < 4 is grabbed (bug #5177).
9573 (xg_end_scroll_callback): New function.
9574 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9575 xg_create_scroll_bar.
9576
9577 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9578 (scroll_end_callback): Remove.
9579 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9580 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 9581 bug #5177.
e5f0bc9a
JD
9582 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9583 bug #5177.
9584
9585 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9586 (xg_create_scroll_bar): Add GCallback end_callback.
9587
223e5fc6
JD
9588 * xftfont.c (QClcdfilter): New variable.
9589 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9590 (syms_of_xftfont): Initialize QClcdfilter.
9591
3c055b77
JD
95922009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9593
9594 * xsettings.c (struct xsettings): Add member seen.
9595 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 9596 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
9597 (apply_xft_settings): Only update Xft settings with what member seen
9598 indicates as new.
9599
05fe33ff
EZ
96002009-12-12 Eli Zaretskii <eliz@gnu.org>
9601
c4cc8b9a 9602 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
9603 (struct glyph): Use EMACS_INT for charpos.
9604 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9605 region_beg_charpos, region_end_charpos,
9606 redisplay_end_trigger_charpos, and also for
9607 iterator_stack_entry.end_charpos and
9608 iterator_stack_entry.stop_charpos.
9609
e8d7886a
JD
96102009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9611
5ce6e4f4 9612 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
9613 (xg_create_scroll_bar): Call scroll_end_callback on button release
9614 event (bug #5177).
9615 (xg_event_is_for_scrollbar): != replaced with ==.
9616
d0db2ec8
KH
96172009-12-12 Kenichi Handa <handa@m17n.org>
9618
9619 * ftfont.c (struct ftfont_info): New member matrix.
9620 (ftfont_open): Setup xftfont_info->matrix.
9621 (MFLTFontFT): New member matrix.
9622 (FLOOR, CEIL, ROUND): New macros.
9623 (ftfont_get_metrics): Handle matrix transformation.
9624 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9625
9626 * xftfont.c (struct xftfont_info): New member matrix.
9627 (xftfont_open): Setup xftfont_info->matrix.
9628
96292009-12-10 Kenichi Handa <handa@m17n.org>
9630
9631 * xdisp.c (append_space_for_newline): Consider face-remapping.
9632
2cc7b62f
AS
96332009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9634
b87dd913
AS
9635 * xsettings.c: Include "keyboard.h".
9636
eba5eb94
AS
9637 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9638
2cc7b62f
AS
9639 Fix implicit function declarations.
9640 * cmds.c: Include "frame.h".
9641 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9642 * frame.h: Move declaration of delete_frame outside of
9643 HAVE_WINDOW_SYSTEM.
9644
a4ef73c8
CY
96452009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9646
9647 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9648
9649 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9650 GTK builds.
9651
944a300c
AS
96522009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9653
9654 * unexelf.c (unexec): Don't search for .data twice.
9655
022eef62
CY
96562009-12-05 Chong Yidong <cyd@stupidchicken.com>
9657
426ac949
CY
9658 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9659 if push failed.
9660 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9661 of push_display_prop (Bug#5000).
9662
022eef62
CY
9663 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9664 value of font_list_entities (Bug#5085).
9665
be95bee9
JB
96662009-12-04 Juanma Barranquero <lekktu@gmail.com>
9667
9668 Fix `string-to-number' to deal consistently with integers and floats.
9669 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9670 trailing characters, not just whitespace.
9671 (read1): Pass new arg 0 to keep old behavior.
9672 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9673 trailing chars, as it is already done for integers. Doc fixes.
9674 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9675
24c2d7ce
EZ
96762009-12-04 Eli Zaretskii <eliz@gnu.org>
9677
0b5397c2
SM
9678 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9679 Delete unused enumeration value.
24c2d7ce 9680
7e694795
EZ
96812009-12-03 Eli Zaretskii <eliz@gnu.org>
9682
9683 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9684
84b31826
SM
96852009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9686
9687 * process.c (Fmake_network_process): Fix up the tests for
9688 "connectionless socket", so they DTRT for seqpacket sockets as well.
9689
f00c449b
SM
96902009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9691
9692 * process.c (Qseqpacket): New symbol.
9693 (HAVE_SEQPACKET): New macro.
9694 (Fmake_network_process): Accept new :type `seqpacket'.
9695 (init_process): Add `seqpacket' feature when applicable.
9696 (syms_of_process): Initialize Qseqpacket.
9697
8096a0ff
YM
96982009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9699
9700 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9701 if entity is Qnil.
9702
3e0de07f
SM
97032009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9704
9705 * print.c (print_preprocess): Preprocess the key_and_value table of
9706 hashtables, even tho they're "hidden" (bug#5082).
9707
abeafb2a
JD
97082009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9709
9710 * frame.c (frame_make_pointer_invisible)
9711 (frame_make_pointer_visible): Declare f before statements.
9712
4bf47195
EZ
97132009-11-28 Eli Zaretskii <eliz@gnu.org>
9714
9715 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9716 omitted dependencies on lisp.h.
9717
c525b3f2
JD
97182009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9719
ece2d4ed
JD
9720 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9721 is NULL.
9722
9723 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9724
9725 * frame.c (frame_make_pointer_invisible)
3e0de07f 9726 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
9727 frame.
9728
c525b3f2
JD
9729 * search.c (simple_search): Remove warning by making *p const.
9730
2f00e299
DN
97312009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9732
9733 * xdisp.c (power_letter): Remove duplicate const.
9734
084b049b
JD
97352009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9736
a1fadc6f
JD
9737 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9738
5ce6e4f4 9739 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
9740 defaults (bug #5025).
9741
28259cac
SM
97422009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9743
9744 * insdel.c (adjust_markers_for_delete): Move it in the
9745 right direction! (bug#4803)
9746
e8e14166
YM
97472009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9748
9749 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9750
9751 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9752
86677b58
GM
97532009-11-24 Glenn Morris <rgm@gnu.org>
9754
9755 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9756
581e51e8
JD
97572009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9758
cfc86c7a
JD
9759 * Makefile.in: Must create deps for ecrt0.o in its rule.
9760
581e51e8
JD
9761 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9762 because that is what Gtk+ font dialog understands.
9763
9764 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9765 of Fcopy_sequence.
9766 (font_open_by_name): Put name given into QCname for font-object returned.
9767
9768 * frame.c (x_set_font): Save original font name as frame parameter
9769 font-parameter.
9770
9771 * xsettings.c (set_default_xft_settings): New function.
9772 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9773 is found.
9774
8b264ecb
AS
97752009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9776
9777 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9778 searching backwards through multibyte buffer.
9779
872870b2
JD
97802009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9781
9782 * xterm.c: #include xgselect.h.
9783 (x_initialize): Call xgselect_initialize.
9784
9785 * xsettings.c (something_changedCB): C++ comments => C comments.
9786 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9787 does that now.
9788
9789 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9790 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9791 (scroll_bar_button_cb): Remove.
5ce6e4f4 9792 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
9793 event.
9794 (xg_create_scroll_bar): Don't bind button-press-event and
9795 button-release-event.
9796
9797 * process.c: Include xgselect.h if defined (USE_GTK) ||
9798 defined (HAVE_GCONF).
9799 (wait_reading_process_output): Call xg_select for the same condition.
9800
9801 * xgselect.c (xg_select): New function to better integrate with
9802 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9803
9804 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9805
9806 * Makefile.in (XOBJ): Add xgselect.o.
9807
62a6e103
AS
98082009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9809
0b5397c2
SM
9810 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9811 Remove ignored second argument. All callers changed.
62a6e103
AS
9812 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9813 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9814 * xdisp.c (string_char_and_length): Likewise.
9815
b0ca0f33
DN
98162009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9817
9818 * xterm.c (x_new_font):
9819 * print.c (print_object):
9820 * cmds.c (Fself_insert_command): Move declarations before statements.
9821
dd5a6279
CY
98222009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9823
9824 * s/cygwin.h: Remove unneeded linker flags.
9825
4a8e097d
JD
98262009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9827
0d1d0d26
JD
9828 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9829
9830 * xsettings.h: Declare xsettings_get_system_font.
9831
9832 * xsettings.c (xsettings_get_system_font): New function.
9833 (init_gconf): No use initiating gconf unless we have Xft also.
9834 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9835 HAVE_GCONF.
9836
4a8e097d
JD
9837 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9838 add a blank entry so it doesn't collapse into nothing.
9839
8ab1650e
SM
98402009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9841
9842 * lread.c (Funintern): Comment out last change.
9843
82c602f0
RS
98442009-11-19 Richard Stallman <rms@gnu.org>
9845
9846 * lread.c (Funintern): Error if symbol is t or nil.
9847
87e32266
SM
98482009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9849
9850 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9851 representation of Lisp integers.
9852 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9853
1b9ac145
AS
98542009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9855
9856 * lisp.h: Remove declaration of Ffont_get_system_font.
9857 * xfns.c: Move include of "xsettings.h".
9858 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9859
dfb3c4c6
JD
98602009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9861
87e32266
SM
9862 * xsettings.c (something_changedCB, Ffont_get_system_font):
9863 Check use_system_font.
dfb3c4c6
JD
9864 (syms_of_xsettings): DEFVAR font-use-system-font.
9865
9370c1d8
AS
98662009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9867
25fe851a
AS
9868 * xfns.c (x_default_font_parameter): Remove dead assignment.
9869
9370c1d8
AS
9870 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9871
637fa988
JD
98722009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9873
87e32266 9874 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 9875 not have FC_LCD_*. #define them if not there.
a6eb20d8 9876
87e32266 9877 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 9878
637fa988
JD
9879 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9880
9881 * xterm.c (handle_one_xevent): Call xft_settings_event for
9882 ClientMessage, PropertyNotify and DestroyNotify.
9883 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9884 Call xsettings_initialize.
9885
9886 * xftfont.c (xftfont_fix_match): New function.
9887 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9888 Call xftfont_fix_match after XftFontMatch.
9889
9890 * xfont.c (xfont_driver): Initialize all members.
9891
87e32266
SM
9892 * xfns.c (x_default_font_parameter):
9893 Try font from Ffont_get_system_font.
637fa988
JD
9894 Do not get font from x_default_parameter if we got one from
9895 Ffont_get_system_font.
87e32266 9896 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
9897
9898 * w32font.c (w32font_driver): Initialize all members.
9899
9900 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9901
9902 * lisp.h: Declare syms_of_xsettings.
9903
87e32266
SM
9904 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9905 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
9906
9907 * ftfont.c (ftfont_filter_properties): New function.
9908
9909 * frame.c (x_set_font): Remove unused variable lval.
9910
87e32266 9911 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
9912
9913 * font.c (font_put_extra): Don't return if val is nil, it means
9914 boolean option is off.
9915 (font_parse_fcname): Collect all extra properties in extra_props
9916 and call filter_properties for all drivers with extra_props and
9917 font as parameter.
87e32266
SM
9918 (font_open_entity): Do not use cache, it does not pick up new
9919 fontconfig settings like hinting.
637fa988
JD
9920 (font_load_for_lface): If spec had a name in it, store it in entity.
9921
a73f9c9d 9922 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
9923
9924 * config.in: HAVE_GCONF is new.
9925
9926 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9927 xsettings.o is new.
9928
5a942932
KH
99292009-11-17 Kenichi Handa <handa@m17n.org>
9930
9931 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9932 back to the default font in case that no suitable font is found.
9933
b7c7a4d1
SM
99342009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9935
9936 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9937 Suggested by Chad Brown <yandros@mit.edu>.
9938 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9939
072f1e39
JD
99402009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9941
9942 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9943
5d1e70a2
AS
99442009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9945
87e32266 9946 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 9947
a53cfbe5
JD
99482009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9949
473a99b7
JD
9950 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9951 has a parent.
9952
a53cfbe5 9953 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 9954 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
9955
9956 * config.in: Generated (AUTO_DEPEND).
9957
f04bb9b2
MA
99582009-11-13 Michael Albinus <michael.albinus@gmx.de>
9959
b7c7a4d1 9960 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
9961 Vdbus_registered_functions_table, because it contains also
9962 properties. Fix docstring.
b7c7a4d1 9963 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 9964
8f11f7ec
SM
99652009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9966
9967 * alloc.c (mark_object): Don't reprocess marked strings.
9968 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9969 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9970
8a605fe8
KH
99712009-11-13 Kenichi Handa <handa@m17n.org>
9972
8f11f7ec 9973 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
9974 semantics of Vword_combining_categories.
9975 (Vword_combining_categories): Describe the slight change of the
9976 semantics.
9977
241c4680
EZ
99782009-11-13 Eli Zaretskii <eliz@gnu.org>
9979
9980 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9981
9982 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9983
5d58e44c
SM
99842009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9985
9986 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9987
5e13f9d3
JB
99882009-11-12 Juanma Barranquero <lekktu@gmail.com>
9989
9990 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9991
cf54c754
DR
99922009-11-11 David Reitter <david.reitter@gmail.com>
9993
9994 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9995 variables to fix 2009-11-09 change.
9996
a4ada374
DN
99972009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9998
91433552
DN
9999 * process.c (ifflag_def): Make flag_sym constant.
10000 (Fnetwork_interface_info): Use a constant pointer.
10001 (ifflag_table):
10002 * xfns.c (cursor_bits):
10003 * xdisp.c (power_letter):
10004 * termcap.c (speeds, esctab):
10005 * sysdep.c (baud_convert):
10006 * keyboard.c (lispy_accent_codes, modifier_names):
10007 * image.c (xbm_format, xpm_format, pbm_format, png_format)
10008 (jpeg_format, tiff_format, gif_format, svg_format)
10009 (interlace_start, interlace_increment, gs_format):
10010 * gtkutil.c (separator_names):
10011 * fringe.c (swap_nibble):
10012 * fns.c (base64_value_to_char, base64_char_to_value):
10013 * fileio.c (make_temp_name_tbl):
10014 * coding.c (suffixes): Make constant.
10015
f4265f6c
DN
10016 * frame.c (make_initial_frame):
10017 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
10018 build_string.
10019 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
10020
04420943
DN
10021 * s/freebsd.h:
10022 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
10023
0a5d24ae
DN
10024 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
10025 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
10026
a4ada374
DN
10027 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
10028 * xterm.c (syms_of_xterm):
10029 * xfaces.c (syms_of_xfaces):
10030 * xdisp.c (syms_of_xdisp):
10031 * lread.c (syms_of_lread):
10032 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
10033 build_string.
91433552 10034
a4ada374
DN
10035 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
10036
af98fc7f
SM
100372009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10038
8ab1650e 10039 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 10040
e90292a9
JD
100412009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10042
10043 * keyboard.h: Declare timer_check.
10044
10045 * keyboard.c (timer_check_2): New function that does what the old
10046 timer_check did.
10047 (timer_check): Call timer_check_2 until -1 or a non-zero time is
10048 returned, i.e. don't return -1 with timers pending.
10049
10050 * process.c: Remove extern declaration of timer_check.
10051
10052 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
10053 even if timer_check returned -1.
10054
af98fc7f
SM
10055 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
10056 xg_dialog_data.
e90292a9
JD
10057 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
10058 the event loop.
10059 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
10060 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
10061 Destroy the dialog after xg_dialog_run.
10062
045b83c0
SM
100632009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10064
10065 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10066
1fb99a3a
JD
100672009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10068
10069 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10070
04e452cb
JB
100712009-11-09 Juanma Barranquero <lekktu@gmail.com>
10072
10073 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10074
ef7417fd
SM
100752009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10076
10077 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10078 w32menu.c, and nsmenu.m.
10079 Simplify the obsolete case where position is nil.
10080 (cleanup_popup_menu): New function, moved from nsmenu.m.
10081 (struct skp): Remove slot `notreal'.
10082 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10083 adjust callers.
10084 (single_menu_item): Adjust call to parse_menu_item.
10085 (syms_of_menu): Defsubr x-popup-menu.
10086 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10087 (keymap_panes): Don't export any more.
10088 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10089 (xmenu_show): Declare.
10090 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10091 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10092 * keyboard.h (parse_menu_item): Update declaration.
10093 * xmenu.c (Fx_popup_menu): Remove.
10094 (syms_of_xmenu): Don't defsubr x-popup-menu.
10095 * w32menu.c (Fx_popup_menu): Remove.
10096 (syms_of_w32menu): Don't defsubr x-popup-menu.
10097 * nsmenu.m (cleanup_popup_menu): Remove.
10098 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10099 moved to menu.c's Fx_popup_menu.
10100 (Fx_popup_menu): Remove.
10101 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10102 menu_items (it's done in menu.c already).
10103
424d6179
SM
101042009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10105
10106 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10107 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10108
c0df13a6 101092009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
10110
10111 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 10112 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
10113 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10114 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10115
2de9f71c
SM
101162009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10117
10118 Let integers use up 2 tags to give them one extra bit and thus double
10119 their range.
10120 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10121 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10122 New macros.
10123 (enum Lisp_Type): Use them. Give explicit values.
10124 (Lisp_Type_Limit): Remove.
10125 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10126 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10127 Pay attention to USE_2_TAGS_FOR_INTS.
10128 (INTEGERP): Use LISP_INT_TAG_P.
10129 * fns.c (internal_equal): Simplify the default case.
10130 (sxhash): Use case_Lisp_Int.
10131 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10132 any more.
10133 (Ftype_of): Use case_Lisp_Int.
10134 (store_symval_forwarding): Take into account the fact that Ints can
10135 now have more than one tag.
10136 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 10137 (buffer_slot_type_mismatch):
2de9f71c
SM
10138 * xfaces.c (face_attr_equal_p):
10139 * print.c (print_object):
10140 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10141 Use case_Lisp_Int.
10142
323637a2
EZ
101432009-11-06 Eli Zaretskii <eliz@gnu.org>
10144
7ac65b38
EZ
10145 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10146
323637a2
EZ
10147 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10148 warning.
10149
e511451f
JD
101502009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10151
10152 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10153
10154 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10155
10156 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10157 ButtonPressRelease and MotionNotify (bug#4870).
10158
5e2327cf
DN
101592009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10160
5adc433e
DN
10161 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10162
d67b4f80
DN
10163 * xterm.c (syms_of_xterm):
10164 * xselect.c (syms_of_xselect):
10165 * xmenu.c (syms_of_xmenu):
10166 * xfns.c (syms_of_xfns):
10167 * xfaces.c (syms_of_xfaces):
10168 * xdisp.c (syms_of_xdisp):
10169 * window.c (syms_of_window):
10170 * w32fns.c (syms_of_w32fns):
10171 * undo.c (syms_of_undo):
10172 * textprop.c (syms_of_textprop):
10173 * terminal.c (syms_of_terminal):
10174 * syntax.c (syms_of_syntax):
10175 * sound.c (syms_of_sound):
10176 * search.c (syms_of_search):
10177 * print.c (syms_of_print):
10178 * minibuf.c (syms_of_minibuf):
10179 * macros.c (syms_of_macros):
10180 * keymap.c (syms_of_keymap, initial_define_key)
10181 (initial_define_lispy_key):
10182 * keyboard.c (syms_of_keyboard):
10183 * insdel.c (syms_of_insdel):
10184 * image.c (syms_of_image):
10185 * fringe.c (syms_of_fringe):
10186 * frame.c (syms_of_frame):
10187 * fontset.c (syms_of_fontset):
10188 * fns.c (syms_of_fns):
10189 * fns.c (syms_of_fns):
10190 * fileio.c (syms_of_fileio):
10191 * fileio.c (syms_of_fileio):
10192 * eval.c (syms_of_eval):
10193 * doc.c (syms_of_doc):
10194 * dispnew.c (syms_of_display):
10195 * dired.c (syms_of_dired):
10196 * dbusbind.c (syms_of_dbusbind):
10197 * data.c (syms_of_data):
10198 * composite.c (syms_of_composite):
10199 * coding.c (syms_of_coding):
10200 * cmds.c (syms_of_cmds):
10201 * charset.c (define_charset_internal, syms_of_character):
10202 * ccl.c (syms_of_ccl):
10203 * category.c (syms_of_category, init_category_once):
10204 * casetab.c (syms_of_casetab):
10205 * casefiddle.c (syms_of_casefiddle):
10206 * callint.c (syms_of_callint):
10207 * bytecode.c (syms_of_bytecode):
10208 * buffer.c (keys_of_buffer, syms_of_buffer):
10209 * alloc.c (syms_of_alloc):
10210 * process.c (syms_of_process, init_process):
10211 * lread.c (syms_of_lread, init_obarray):
10212 * font.c (build_style_table):
10213 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10214 intern_c_string, calls to make_pure_string with
10215 make_pure_c_string. Use pure_cons instead of Fcons.
10216
5e2327cf
DN
10217 * process.c (socket_options): Make it const.
10218 (set_socket_option, init_process): Use a const pointer.
10219
10220 * lread.c (intern_c_string): New function.
10221 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10222 (defvar_int): Uset it. Make the name const char*.
10223
10224 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10225 (defvar_int): Update prototypes.
10226 (DEFUN, EXFUN): Support for prototypes is now required.
10227 (intern_c_string): New prototype.
10228 (struct Lisp_Subr): Make symbol_name constant.
10229
10230 * font.c (struct table_entry): Remove unused member. Make NAMES
10231 constant.
10232 (weight_table, slant_table, width_table): Make constant.
10233
10234 * emacs.c (struct standard_args): Make name and longname constant.
10235
10236 * character.h (DEFSYM): Use intern_c_string.
10237
a56eaaef
DN
102382009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10239
10240 * alloc.c (make_pure_c_string): New function.
10241
10242 * eval.c (Fautoload): Purecopy all arguments.
10243
f6a07420
KH
102442009-11-05 Kenichi Handa <handa@m17n.org>
10245
10246 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10247 the buffer in case of replace.
10248
5d28d4b1
DN
102492009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10250
10251 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10252
b349d111
SM
102532009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10254
d528b1ce
SM
10255 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10256 when applicable (bug#4851).
10257
b349d111
SM
10258 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10259 (P_): Support for prototypes is now required.
10260
c38eb027
CY
102612009-10-31 Chong Yidong <cyd@stupidchicken.com>
10262
10263 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10264 (Bug#4827).
10265
0405f8d9
EZ
102662009-10-30 Eli Zaretskii <eliz@gnu.org>
10267
d528b1ce 10268 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 10269
ca0a881a
DN
102702009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10271
10272 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10273
d528b1ce
SM
10274 * lread.c (Fload): Purecopy the file name when building
10275 Vpreloaded_file_list.
ca0a881a 10276
47e0e0e4
JR
102772009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10278
10279 * w32fns.c (syms_of_w32fns): Change default value of
10280 w32-scroll-lock-modifier to nil. (Bug#2827)
10281
057bce6f
JB
102822009-10-26 Juanma Barranquero <lekktu@gmail.com>
10283
782a943e 10284 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 10285
242bc74c
AS
102862009-10-26 Andreas Schwab <schwab@redhat.com>
10287
10288 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10289
522d013a
JB
102902009-10-26 Juanma Barranquero <lekktu@gmail.com>
10291
10292 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10293 For delta < 0, skip check that only makes sense when the mini-window
10294 is going to be enlarged. (Bug#4534)
10295
18060980
CY
102962009-10-25 Chong Yidong <cyd@stupidchicken.com>
10297
10298 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10299 string in menu maps (Bug#4471).
10300
fec8f0fe
CY
103012009-10-24 Chong Yidong <cyd@stupidchicken.com>
10302
10303 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10304 FRAME_NS_VIEW on terminal frames (Bug#4765).
10305
10d66ec0
AS
103062009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10307
1cae01f7
AS
10308 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10309 DBUS_TYPE_UINTnn separately to get proper sign extension.
10310
58a12889
AS
10311 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10312 can properly handle unsigned types.
d528b1ce 10313 (make_uid, make_gid): Remove.
58a12889 10314
987c9327
AS
10315 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10316 types again.
10317
522d013a 10318 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
10319 (system_process_attributes): Likewise.
10320
905a9ed3
DN
103212009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10322
10323 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10324
10325 * eval.c (Fautoload): Purecopy the filename. Simplify.
10326
10327 * category.c (Fdefine_category): Purecopy docstring.
10328
a599b3e8
AS
103292009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10330
7b792fc9
AS
10331 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10332
a599b3e8
AS
10333 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10334
b35ac83e
CY
103352009-10-23 Chong Yidong <cyd@stupidchicken.com>
10336
10337 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10338 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10339 (Bug#4775).
10340
e8903e00
SM
103412009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10342
10343 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10344 (init_fileio_once):
10345 * lisp.h (init_fileio_once): Remove.
10346 * emacs.c (main): Don't call init_fileio_once.
10347
8f43cbf3
DN
103482009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10349
10350 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10351
26898943
AS
103522009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10353
10354 * doprnt.c (doprnt): Fix overflow check.
10355
5c646d5a
JD
103562009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10357
3132a7ea
JD
10358 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10359
5c646d5a
JD
10360 * xterm.h (x_wait_for_event): Declare it.
10361
10362 * xterm.c (pending_event_wait): New variable.
10363 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10364 see pending_event_wait.eventtype.
10365 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
10366 (x_new_font): Call change_frame_size with new rows/columns before we
10367 try to resize the frame.
5c646d5a 10368 (x_wait_for_event): New function.
d528b1ce
SM
10369 (x_set_window_size_1): Don't change gravity unless change_gravity
10370 is set.
5c646d5a
JD
10371 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10372 don't change frame size, instead wait for the ConfigureNotify.
10373 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10374 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10375 (x_initialize): Initialize pending_event_wait.
10376
10377 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10378 size.
10379
10380 * widget.c (EmacsFrameSetValues): Add comment.
10381 (EmacsFrameSetCharSize): Just call x_set_window_size.
10382
10383 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10384 x_wait_for_event.
d528b1ce 10385 (flush_and_sync): Remove again.
5c646d5a
JD
10386 (xg_get_font_name): Suggest monospace if no previous font is known.
10387
e9c1637d
SM
103882009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10389
10390 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 10391 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 10392
5a72cccb
YM
103932009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10394
10395 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10396 processing pending events when event is filtered for input method.
ab04798f 10397 (Bug#3681)
5a72cccb 10398
2629aa37
JB
103992009-10-20 Juanma Barranquero <lekktu@gmail.com>
10400
10401 * fns.c: Add #endif accidentally removed in previous change.
10402
c3417a74
DN
104032009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10404
10405 * fns.c: Remove code for unsupported system: MAC_OS.
10406 * image.c: Likewise. Include setjmp.h.
10407
9685cef2
JD
104082009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10409
10410 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10411 pixel -1 (bug #4742).
10412
d7306fe6
DN
104132009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10414
019d2c4c
DN
10415 * process.c (create_pty): Remove conditionals for no longer
10416 supported systems: UNIPLUS and RTU.
10417
ee6bacd4
DN
10418 * xterm.c:
10419 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10420
d7306fe6
DN
10421 * alloc.c: Do not define struct catchtag.
10422 * eval.c: Move struct catchtag definition ...
10423 * lisp.h: ... here.
10424
10425 * image.c: Move png.h #include earlier to avoid warnings.
10426
10427 * xterm.c:
10428 * xsmfns.c:
10429 * xselect.c:
10430 * xrdb.c:
10431 * xmenu.c:
10432 * xftfont.c:
10433 * xfont.c:
10434 * xfns.c:
10435 * xfaces.c:
10436 * xdisp.c:
10437 * window.c:
10438 * widget.c:
10439 * w32xfns.c:
10440 * w32uniscribe.c:
10441 * w32term.c:
10442 * w32select.c:
10443 * w32reg.c:
10444 * w32proc.c:
10445 * w32menu.c:
10446 * w32inevt.c:
10447 * w32heap.c:
10448 * w32font.c:
10449 * w32fns.c:
10450 * w32console.c:
10451 * w32.c:
10452 * w16select.c:
10453 * vm-limit.c:
10454 * unexsol.c:
10455 * unexec.c:
10456 * unexcw.c:
10457 * unexaix.c:
10458 * undo.c:
10459 * tparam.c:
10460 * textprop.c:
10461 * terminfo.c:
10462 * terminal.c:
10463 * termcap.c:
10464 * term.c:
10465 * syntax.c:
10466 * sound.c:
10467 * sheap.c:
10468 * search.c:
10469 * scroll.c:
10470 * region-cache.c:
10471 * regex.c:
10472 * ralloc.c:
10473 * process.c:
10474 * print.c:
b024548b
DN
10475 * nsterm.m:
10476 * nsselect.m:
10477 * nsmenu.m:
10478 * nsimage.m:
10479 * nsfont.m:
10480 * nsfns.m:
d7306fe6
DN
10481 * msdos.c:
10482 * minibuf.c:
10483 * menu.c:
10484 * marker.c:
10485 * macros.c:
10486 * keymap.c:
10487 * keyboard.c:
10488 * intervals.c:
10489 * insdel.c:
10490 * indent.c:
10491 * gtkutil.c:
10492 * ftxfont.c:
10493 * ftfont.c:
10494 * fringe.c:
10495 * frame.c:
10496 * fontset.c:
10497 * font.c:
10498 * fns.c:
10499 * floatfns.c:
10500 * filelock.c:
10501 * fileio.c:
10502 * emacs.c:
10503 * editfns.c:
10504 * dosfns.c:
10505 * doprnt.c:
10506 * doc.c:
10507 * dispnew.c:
10508 * dired.c:
10509 * dbusbind.c:
10510 * data.c:
10511 * composite.c:
10512 * coding.c:
10513 * cmds.c:
10514 * cm.c:
10515 * chartab.c:
10516 * charset.c:
10517 * character.c:
10518 * ccl.c:
10519 * category.c:
10520 * casetab.c:
10521 * casefiddle.c:
10522 * callproc.c:
10523 * callint.c:
10524 * bytecode.c:
10525 * buffer.c:
10526 * atimer.c: Include setjmp.h. (Bug#4643)
10527
fd5f21e6
SM
105282009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10529
4c0354d7
SM
10530 Remove leftover table unibyte_to_multibyte_table.
10531 * character.c (unibyte_to_multibyte_table): Remove.
10532 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10533 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10534 * character.h (UNIBYTE_TO_CHAR): New macro.
10535 (MAKE_CHAR_MULTIBYTE): Use it.
10536 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10537 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10538 (message_dolog, set_message_1):
10539 * search.c (Freplace_match):
10540 * editfns.c (Fcompare_buffer_substrings):
10541 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10542 (concat):
10543 * insdel.c (copy_text, count_size_as_multibyte):
10544 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10545 * term.c (produce_glyphs):
10546 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10547 * regex.c (RE_CHAR_TO_MULTIBYTE):
10548 * cmds.c (internal_self_insert):
10549 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10550
fd5f21e6
SM
10551 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10552
4418646e
DN
105532009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10554
10555 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10556
35f5c1d2
JB
105572009-10-16 Juanma Barranquero <lekktu@gmail.com>
10558
10559 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10560
a0cd8f6b
AR
105612009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10562
10563 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10564 still needed under Tiger.
10565
10566 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10567
10568 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10569 __Apple__.
10570
10571 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10572
01a8d3fa
KH
105732009-10-15 Kenichi Handa <handa@m17n.org>
10574
10575 * print.c (print_object): Escape a symbol like "2E10" too.
10576
bf6c75c9 105772009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
10578
10579 Cleanups and changes for 64-bit compile under Snow Leopard.
10580 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
10581
10582 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10583
c5959062 10584 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
10585 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10586 cast argument.
10587 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 10588 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
10589
10590 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10591
10592 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10593 where appropriate.
10594
10595 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10596 where appropriate.
6e4780c5
JB
10597 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10598 Use stringWithUTF8String.
bf6c75c9
AR
10599 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10600
6e4780c5
JB
10601 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10602 Add formal protocol mention to inheritance.
bf6c75c9
AR
10603 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10604
6e4780c5
JB
10605 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10606 Fix printf format.
bf6c75c9
AR
10607 (ns_query_color): Use CGFloat where appropriate.
10608 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 10609 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
10610 argument.
10611
3d87f118
AR
10612 * config.in (NS_HAVE_NSINTEGER): Drop.
10613
a95c8102
AR
10614 * dbusbind.c (dbus-method-return-internal)
10615 (dbus-method-error-internal): Use long format in printf, and cast
10616 argument.
10617
10618 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10619 in printf, and cast argument.
10620
6873acca 10621 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
10622 cast argument.
10623
9ec6f100
GM
106242009-10-11 Glenn Morris <rgm@gnu.org>
10625
10626 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10627
5be883cd
JD
106282009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10629
10630 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10631 menu bar with a small width so it doesn't enlarge the frame.
10632
d7a39b51
JB
106332009-10-08 Juanma Barranquero <lekktu@gmail.com>
10634
10635 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10636
0c2b6f8e
GM
106372009-10-06 Glenn Morris <rgm@gnu.org>
10638
10639 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10640 SOME_MACHINE_LISP (this enters indirectly via DOC).
10641
e02131a2
EZ
106422009-10-05 Eli Zaretskii <eliz@gnu.org>
10643
10644 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10645
b4744254
EZ
106462009-10-04 Eli Zaretskii <eliz@gnu.org>
10647
10648 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10649 Doc fix.
10650
dbf64827
JB
106512009-10-03 Martin Rudalics <rudalics@gmx.at>
10652
10653 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10654
e9a0aef8
MA
106552009-10-02 Michael Albinus <michael.albinus@gmx.de>
10656
d528b1ce 10657 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
10658 used anymore outside fileio.c.
10659
10660 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10661
64eb2b56
JB
106622009-10-01 Juanma Barranquero <lekktu@gmail.com>
10663
10664 * lisp.h (Qdelete_directory_internal):
10665 Declare, instead of Qdelete_directory.
10666
10667 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10668
9d28c33e
SM
106692009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10670
10671 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10672
9d8f3bd9
MA
106732009-10-01 Michael Albinus <michael.albinus@gmx.de>
10674
9d28c33e 10675 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
10676 Fdelete_directory. It is not a command anymore. It has no file
10677 name handler.
10678
9694740b
SM
106792009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10680
10681 * xdisp.c (get_next_display_element): Use an enum in last change.
10682
748e162f
KH
106832009-09-28 Kenichi Handa <handa@m17n.org>
10684
9694740b 10685 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
10686 unibyte_display_via_language_environment in handling
10687 Vnobreak_char_display.
10688
17efd58d
AR
106892009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10690
10691 * nsterm.h (ns_app_name): New extern variable.
10692
10693 * nsterm.m (ns_app_name): New variable.
10694 (ns_term_init): Set and use it.
10695 (ns_term_shutdown): Use it.
10696
10697 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10698 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10699
10700 * nsfns.m (ns_set_name_iconic, ns_set_name)
10701 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10702 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10703
9694740b
SM
10704 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10705 Remove double-casting in client_data comparison.
31c2d412 10706
3208cb35
YM
107072009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10708
10709 * keyboard.c (make_lispy_event): Remember last wheel direction.
10710 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10711
b7d552d6
GM
107122009-09-26 Glenn Morris <rgm@gnu.org>
10713
10714 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10715 internal.elc. Add term/pc-win.elc.
10716 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10717 term/x-win.elc.
10718 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10719 term/w32-win.elc.
10720 (NS_SUPPORT): New.
10721 (lisp): Add NS_SUPPORT.
10722 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10723
4ff670a8
DR
107242009-09-25 David Reitter <david.reitter@gmail.com>
10725
10726 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10727 on Mac OS X 10.6+ (bug#4513).
10728
feabfb6c
JB
107292009-09-24 Juanma Barranquero <lekktu@gmail.com>
10730
10731 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
10732 some parts of Emacs code (like font selection) don't grok them.
10733 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 10734
de59072a
AS
107352009-09-24 Andreas Schwab <schwab@redhat.com>
10736
10737 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10738
a489517b
JB
107392009-09-24 Juanma Barranquero <lekktu@gmail.com>
10740
10741 * dired.c (Fdirectory_files): Fix typo in docstring.
10742
0592970c
AR
107432009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10744
10745 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10746 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10747 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10748 under GNUstep.
10749 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10750
10751 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10752 glyph advancement.
10753
48e8a88b
AR
107542009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10755
10756 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 10757 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
10758
10759 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10760 deleted (bug #4492).
10761
e14f0a78
AR
10762 * nsfont.m (Vns_reg_to_script): New lisp variable.
10763 (syms_of_nsfont): Declare it.
10764 (ns_registry_to_script): New function.
10765 (ns_get_req_script): Call it.
10766 (ns_findfonts): Don't give up on non-unicode registry.
10767
10768 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10769
5b650faa
SM
107702009-09-20 Tom Tromey <tromey@redhat.com>
10771
10772 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10773 batch mode (bug#4228).
10774
a489517b 107752009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
10776
10777 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 10778 carefully. (Bug #4339)
0bae4e09 10779
fcfe06f3
CY
107802009-09-18 Chong Yidong <cyd@stupidchicken.com>
10781
d798ba87 10782 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 10783
31642728
AR
107842009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10785
10786 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
10787 (main) [HAVE_NS]: Don't process --no-init-file option.
10788 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
10789
10790 * nsterm.h (ns_no_defaults): Remove.
10791
10792 * nsterm.m (ns_no_defaults): Remove.
10793 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10794 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
10795 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10796 don't update the NSWindow itself.
bba3e508
SM
10797 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10798 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
10799
10800 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10801 ns_use_qd_smoothing.
10802
10803 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10804 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 10805 (x-close-connection): Drop PSFlush() under OS X.
a489517b 10806 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 10807
8686ac71
JB
108082009-09-17 Juanma Barranquero <lekktu@gmail.com>
10809
10810 * emacs.c (inhibit_x_resources): New variable.
10811 (main) [HAVE_NS]: Don't process --quick command line option.
10812 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10813
10814 * lisp.h (inhibit_x_resources): Declare it extern.
10815
10816 * w32reg.c (x_get_string_resource):
10817 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10818
e227ba05
EZ
108192009-09-17 Eli Zaretskii <eliz@gnu.org>
10820
362654a6
JB
10821 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10822 Add lisp/term/internal.elc.
e227ba05 10823
742d40e8
SM
108242009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10825
10826 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10827 (bug#4461).
10828
005bd5a2
DN
108292009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10830
10831 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10832
10833 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10834 (OBJECTS_MACHINE): Remove, unused.
10835
f9af9719
SM
108362009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10837
10838 * frame.c (x_get_resource_string): Remove unused.
10839
0307c7d2
JD
108402009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10841
10842 * xterm.c (x_new_font): Call change_frame_size before calling
10843 x_set_window_size, in case frame size won't change.
10844
10845 * frame.c (x_set_font): Remove dead code.
10846
428b13d6
SM
108472009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10848
10849 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10850
5766c380
SM
108512009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10852
10853 * lread.c (Fload): Don't output a message after loading an obsolete
10854 package any more (done in Lisp now).
10855
2fd0161b
CY
108562009-09-12 Chong Yidong <cyd@stupidchicken.com>
10857
10858 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10859
bc5e75b6
SM
108602009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10861
10862 * keymap.c (Fwhere_is_internal): Use nconc2.
10863
c31c985e
AM
108642009-09-11 Alan Mackenzie <acm@muc.de>
10865
10866 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10867 batch mode.
10868
78012bd2
AS
108692009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10870
10871 * xdisp.c (display_mode_element): Detect cycles.
10872
9d889332
SM
108732009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10874
10875 * keymap.c (where_is_internal): Don't erroneously return nil right after
10876 filling the cache.
10877 (where_is_internal_1): Fix up typo.
10878
7ab5d780
GM
108792009-09-11 Glenn Morris <rgm@gnu.org>
10880
10881 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10882 share a common doc-string.
10883
5238a749
SM
108842009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10885
66d77eda
SM
10886 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10887 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10888
5238a749
SM
10889 * keymap.c (QCadvertised_binding): New constant.
10890 (syms_of_keymap): Initialize it.
10891 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10892 if applicable.
10893
19f48442
SM
108942009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10895
50d4ba39
SM
10896 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10897 (parse_menu_item): Streamline since bindings are recomputed all the
10898 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10899 more and don't support lmenu's menu-alias any more either.
10900
a88a5372
SM
10901 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10902 (where_is_internal): Strip it down to only traverse the keymaps.
10903 Move the cache handling from Fwhere_is_internal to here.
10904 (Fwhere_is_internal): Move the handling of remapping and the choice of
10905 the best binding from where_is_internal to here.
10906 Unify the cached/noncached paths, so remapping is also handled
10907 correctly when the cache is used, and so the cache can be used to
10908 speed up remap-handling when applicable.
10909 Give preference to non-remapped bindings.
10910 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10911 non-remapped bindings.
10912 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10913 command remapping.
10914
19f48442
SM
10915 * xdisp.c (display_mode_element): Move list length limit from 50 to
10916 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10917
599498c3 109182009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
10919
10920 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10921
f9b7b5ac
SM
109222009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10923
a53af587
JB
10924 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10925 (Bug#4334)
10926
f9b7b5ac
SM
10927 * keymap.c (where_is_internal): Filter out shadowed remappings.
10928 Assume that where_is_internal returns unshadowed bindings to simplify
10929 the code and get rid of the gotos. Use ASIZE.
10930
04f4b72d
JD
109312009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10932
4da146f2
JD
10933 * xterm.c (x_focus_changed): If we get a focusout and pointer
10934 is invisible, make it visible.
10935
04f4b72d
JD
10936 * xterm.h: Remove condition for declaration of
10937 x_*_window_to_frame.
10938
7cef7ce3
SM
109392009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10940
10941 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10942 initial terminal as well.
10943
a54fa5b7
JD
109442009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10945
10946 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 10947 x_menubar_window_to_frame.
a54fa5b7 10948
50426a04 10949 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
10950 (XTmouse_position): Do not return valid positions
10951 for clicks in the menubar and the toolbar for Gtk+.
10952
10953 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10954 if the widget for the event has the same top level as a frame,
10955 return the frame.
10956 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10957 internal windows, bug #4122.
10958 (x_non_menubar_window_to_frame): Remove.
10959
5a021dd0
GM
109602009-09-02 Glenn Morris <rgm@gnu.org>
10961
10962 * buffer.c (default-major-mode): Move most of the doc from here...
10963 (major-mode): ... to here.
10964
548fe2f3
NR
109652009-08-30 Nick Roberts <nickrob@snap.net.nz>
10966
10967 * process.c (wait_reading_process_output): Keep the descriptor
10968 when pty is used by a non-child process, e.g., in I/O buffer of
10969 GDB this allows inferior to be restarted.
10970
e0840eef
EZ
109712009-08-29 Eli Zaretskii <eliz@gnu.org>
10972
10973 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10974 both branches into one.
10975
82e98df4
SM
109762009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10977
10978 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10979 (main): Use enable-multibyte-characters rather than
10980 default-enable-multibyte-characters. Output a warning message when
10981 running a unibyte session.
10982
890617cb
YM
109832009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10984
10985 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10986 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10987 (copy_data_segment): Also copy __program_vars section.
10988 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10989 (dump_it) [LC_DYLD_INFO]: Use it.
10990
10991 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10992
e7adeadc
EZ
109932009-08-28 Eli Zaretskii <eliz@gnu.org>
10994
10995 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10996 $(SRC)/buildobj.h.
ef1b0ba7 10997 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
10998 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10999 $(SRC)/buildobj.h.
11000 (clean): Add buildobj.h.
11001
3ed8bbdc
TZ
110022009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
11003
11004 * print.c (print_object): Set escapeflag to 1 when printing
11005 hashtable keys and values.
11006
155a6764
SM
110072009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
11008
11009 * lread.c (read_integer): Use doubles (and potentially return a float
11010 number) as we do in string-to-number.
11011 (read1): Use strtol to read integers, signal errors on strtol's
11012 overflow and use floats if strtol's output is too large for
11013 Elisp integers.
11014
877610de
EZ
110152009-08-27 Eli Zaretskii <eliz@gnu.org>
11016
11017 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
11018 (make-buildobj-SH): Fix last change.
11019 (SRC): Move to before where it's first used.
11020
ef73e7be
KH
110212009-08-27 Kenichi Handa <handa@m17n.org>
11022
550c8289
KH
11023 * process.c (send_process): Use encode_coding_object instead of
11024 encode_coding_string to perform eol-conversion even if the string
11025 is unibyte.
11026
60afa08d
KH
11027 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
11028 character.
11029
ef73e7be 11030 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 11031 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 11032
7b3a82d7
DN
110332009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
11034
5654bf63
DN
11035 * callproc.c (Fcall_process): Remove always true #if.
11036
7b3a82d7
DN
11037 * lisp.h: Replace #if 0 code for checking with text pointing to
11038 the --enable-checking configure flag.
11039
11040 * emacs.c (main): Mention the --enable-profiling configure flag
11041 instead of using CFLAGS.
11042
878bde49
KR
110432009-08-26 Ken Raeburn <raeburn@raeburn.org>
11044
11045 * Makefile.in (buildobj.h): New target.
11046 (doc.o): Depend on it.
11047 (temacs${EXEEXT}): Don't generate buildobj.lst.
11048 (mostlyclean): Delete buildobj.h, not buildobj.lst.
11049 * makefile.w32-in ($(SRC)/buildobj.h): New target.
11050 ($(BLD)/doc.$(O)): Depend on it.
11051 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
11052 provided by Eli Zaretskii.)
11053 ($(TEMACS)): Don't generate buildobj.lst.
11054 * doc.c: Include buildobj.h.
11055 (buildobj): New static variable.
11056 (Fsnarf_documentation): Use it, instead of opening and reading
11057 buildobj.lst.
11058
1574224c
MA
110592009-08-25 Michael Albinus <michael.albinus@gmx.de>
11060
11061 * dbusbind.c (Fdbus_call_method)
11062 (Fdbus_call_method_asynchronously): Use English numeric format for
11063 timeout values in doc string.
11064
d9da2f45
KH
110652009-08-25 Kenichi Handa <handa@m17n.org>
11066
ef73e7be
KH
11067 * alloc.c (mark_char_table): New function.
11068 (mark_object): Use mark_char_table for a char-table.
11069
d9da2f45
KH
11070 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11071 (CHAR_TABLE_REF): Use it.
11072
c8edcc01
KR
110732009-08-23 Ken Raeburn <raeburn@raeburn.org>
11074
11075 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11076 before invoking the newly build emacs to check for load-path
11077 shadowing.
11078
7763401b
GM
110792009-08-22 Glenn Morris <rgm@gnu.org>
11080
11081 * Makefile.in (bootstrap_exe): New variable.
11082 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11083 Use ${bootstrap_exe}.
11084
729eadda
EZ
110852009-08-22 Eli Zaretskii <eliz@gnu.org>
11086
11087 * coding.h (encode_coding_string): Don't encode unibyte strings.
11088 (Bug#4047)
11089
eb4c6ace
MA
110902009-08-22 Michael Albinus <michael.albinus@gmx.de>
11091
11092 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11093
11094 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11095 intended as hotfix only.
11096 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11097
36e34d1b
AR
110982009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11099
11100 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
11101 change, and clean up loose ends in the code left by it.
11102 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
11103 yet another X11 format (rgb:r/g/b) for compatibility.
11104 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11105 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11106
f983eb8a
SM
111072009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11108
11109 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11110
3f56d3c6
MA
111112009-08-20 Michael Albinus <michael.albinus@gmx.de>
11112
11113 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11114 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11115 (xd_initialize, xd_pending_messages): Check, whether
11116 $DBUS_SESSION_BUS_ADDRESS is set.
11117
fb641d68
YM
111182009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11119
11120 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11121
11122 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11123
cf59a374
GM
111242009-08-20 Glenn Morris <rgm@gnu.org>
11125
11126 * emacs.c (system-type): Doc fix.
11127
1373f3be
SM
111282009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11129
11130 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11131 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11132
058ed861
MA
111332009-08-18 Michael Albinus <michael.albinus@gmx.de>
11134
1373f3be
SM
11135 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11136 New functions.
058ed861
MA
11137 (xd_initialize): Revert change from 2009-08-16.
11138
563a866e 111392009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
11140
11141 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 11142 font-group vector, return nil.
5fc05db0 11143
e42bdf01
CY
111442009-08-17 Chong Yidong <cyd@stupidchicken.com>
11145
11146 * process.c (status_notify): Don't perform redisplay.
11147 (Fdelete_process, list_processes_1, process_send_signal):
11148 Expliticly perform redisplay.
11149 (wait_reading_process_output): Always check process status, but
11150 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11151
4230ab74
KR
111522009-08-17 Ken Raeburn <raeburn@raeburn.org>
11153
1373f3be 11154 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
11155 (XFLOAT_INIT): New macro for storing a float value.
11156 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11157 * fns.c (sxhash): Copy out the value of a float in order to
11158 examine its bytes.
11159 * dbusbind.c (xd_append_arg): Likewise.
11160
4230ab74
KR
11161 * emacs.c (main): Don't call syms_of_data twice.
11162
a0645cdd
MA
111632009-08-16 Michael Albinus <michael.albinus@gmx.de>
11164
11165 * dbusbind.c (xd_initialize): Add connection file descriptor to
11166 input_wait_mask, in order to let select() detect, whether a new
11167 message has been arrived.
ca4f31ea 11168 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 11169
485db0ba
MA
111702009-08-15 Michael Albinus <michael.albinus@gmx.de>
11171
1373f3be
SM
11172 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11173 New functions.
485db0ba
MA
11174
11175 * lisp.h (xd_pending_messages): Declare.
11176
11177 * keyboard.c (readable_events): Call xd_pending_messages.
11178
b5b98ff4
CY
111792009-08-15 Chong Yidong <cyd@stupidchicken.com>
11180
1373f3be 11181 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 11182
f8354c6e
CY
11183 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11184
b5b98ff4
CY
11185 * buffer.c (set_buffer_internal_1)
11186 (swap_out_buffer_local_variables): Check for unbound local
11187 variables (Bug#4138).
11188
8b9fc636
EZ
111892009-08-14 Eli Zaretskii <eliz@gnu.org>
11190
11191 * process.c (create_pty): Fix last change.
11192
ce959360
CY
111932009-08-13 Chong Yidong <cyd@stupidchicken.com>
11194
11195 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11196 (xbm_load_image): Caller changed.
64b807c9 11197 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 11198
c7baf7e9
NR
111992009-08-13 Nick Roberts <nickrob@snap.net.nz>
11200
11201 * process.c (create_pty): New function.
11202 (Fstart_process): Use it to allow Emacs to just associate a pty
11203 with the buffer. See associated change in gdb-mi.el.
11204 (list_processes_1): Deal with no program name.
11205 (start_process_unwind): Use pid == -2 to mean no process.
11206
1ac9108a
SM
112072009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11208
11209 * cmds.c (nonundocount): New global variable.
11210 (keys_of_cmds): Initialize it.
11211 (Fself_insert_command): Use it to combine upto 20 sequential chars
11212 into a single undo entry, just like the Qself_insert_command code in
11213 keyboard.c does.
11214 Call frame_make_pointer_invisible, also like the Qself_insert_command
11215 code in keyboard.c does.
11216 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11217 than its own local replacement for it.
11218
e267324c
KR
112192009-08-10 Ken Raeburn <raeburn@raeburn.org>
11220
1ac9108a 11221 * fns.c (concat): Don't re-set string length to its current value.
77437343 11222
1ac9108a
SM
11223 * coding.h (decode_coding_string, encode_coding_string):
11224 Use SBYTES macro.
f0bed503 11225
1ac9108a 11226 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
11227 (doprnt): Merge with doprnt1, discarding lispstrings code.
11228 * lisp.h (doprnt_lisp): Don't declare.
11229
416e006d
JL
112302009-08-07 Juri Linkov <juri@jurta.org>
11231
11232 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11233
6f7d5780
DN
112342009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11235
11236 * print.c (syms_of_print): Undo previous change.
11237
f19a0f5b
TZ
112382009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11239
11240 * lread.c (read1, syms_of_lread): Read hashtables back from the
11241 readable format.
11242
11243 * print.c (print_preprocess, print_object): Print hashtables fully
11244 and readably.
11245 (syms_of_print): Provide 'hashtable-print-readable.
11246
b9173dc2
AR
112472009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11248
11249 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11250 no family set.
11251 (nsfont_open): Handle case when entity has no family.
11252
1586503c
AR
112532009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11254
11255 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11256 element, not a list, for match case.
11257
087048cd
KH
112582009-07-28 Kenichi Handa <handa@m17n.org>
11259
11260 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11261 rigidly.
11262
11263 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11264 font_parse_xlfd. Check font properties more rigidly.
11265
780c2506
DN
112662009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11267
31fd7c5c
JB
11268 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11269 bsd-common.h.
780c2506 11270
a8c0cc18
KH
112712009-07-27 Kenichi Handa <handa@m17n.org>
11272
11273 * xfaces.c (face_with_height): Call font_clear_prop.
11274
4fbe2306
CY
112752009-07-26 Chong Yidong <cyd@stupidchicken.com>
11276
111d9af3
CY
11277 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11278
11279 * xterm.c (x_term_init): Use Qx.
11280
4fbe2306
CY
11281 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11282
1ac9108a 11283 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
11284 (ns_get_color): Revert 2009-07-16 change.
11285
beb0b7f9
EZ
112862009-07-25 Eli Zaretskii <eliz@gnu.org>
11287
11288 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 11289 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 11290
2baf5e76
KR
112912009-07-25 Ken Raeburn <raeburn@raeburn.org>
11292
1ac9108a
SM
11293 * coding.h (decode_coding_string, encode_coding_string):
11294 Use SCHARS macro.
8890e5f5 11295
2baf5e76 11296 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 11297 (load_depth): Delete.
2baf5e76
KR
11298 (Qload_in_progress): New variable.
11299 (load_unwind): Don't reference load_depth or load_in_progress.
11300 (Fload): Likewise; specbind Qload_in_progress instead.
11301 (init_lread): Don't initialize load_depth.
11302 (syms_of_lread): Initialize and protect Qload_in_progress.
11303
1395c6f5
AR
113042009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11305
11306 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11307
4e2f36cf
AR
113082009-07-23 Yavor Doganov <yavor@gnu.org>
11309
11310 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11311
5dd9a6f7
AR
113122009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11313
11314 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
11315 Bugs 3792, 3720, 2402.
11316 (ns_lookup_indexed_color): Check for bad index.
11317 (ns_index_color): Init unused slot to 0.
11318 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11319 Bug 3714, possibly 3082.
5dd9a6f7 11320
c902b920
JR
113212009-07-22 Jason Rumney <jasonr@gnu.org>
11322
1ac9108a
SM
11323 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11324 Position IME window at cursor (Bug#2570).
c902b920
JR
11325 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11326 (globals_of_w32fns): Dynamically load functions required above.
11327
11328 * w32term.c (w32_draw_window_cursor): Send message to reposition
11329 any IME window.
11330
090101cf
CY
113312009-07-21 Chong Yidong <cyd@stupidchicken.com>
11332
11333 * fileio.c: Revert 2009-07-16 changes.
11334 (Vauto_save_include_big_deletions): New variable.
11335 (Fdo_auto_save): Disable auto-save only if
11336 auto-save-include-big-deletions is nil.
11337
e6583e3d
CY
113382009-07-21 Chong Yidong <cyd@stupidchicken.com>
11339
11340 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11341 the overflowed pixels into account (Bug#3879).
11342
ece435a5
KR
113432009-07-21 Ken Raeburn <raeburn@raeburn.org>
11344
11345 * lread.c (load_depth): New variable.
11346 (Fload, load_unwind, init_lread): Set it to the load recursion
11347 depth; set load_in_progress as a simple boolean based on the
11348 current load_depth. (Bug#3892)
11349
40b2d973
AR
113502009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11351
11352 * nsfont.m (ns_has_attribute): Remove.
11353 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11354
10be7e0d
JL
113552009-07-18 Juri Linkov <juri@jurta.org>
11356
11357 * process.c (Fset_process_query_on_exit_flag): Mention killing
11358 a buffer in docstring.
11359
fa055055
KH
113602009-07-17 Kenichi Handa <handa@m17n.org>
11361
11362 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11363
042f7b69
YM
113642009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11365
11366 * nsfns.m (Fns_set_alpha): Remove function.
11367 (syms_of_nsfns): Don't defsubr it.
11368
11369 * nsterm.m (ns_get_color): Remove incompatible color formats.
11370 (ns_color_to_lisp): Generate #rrggbb color format string.
11371
4be941e3
RS
113722009-07-16 Richard Stallman <rms@gnu.org>
11373
11374 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11375 (Fset_buffer_auto_saved): Handle save_length = -2.
11376
4e6b227d
CY
113772009-07-16 Chong Yidong <cyd@stupidchicken.com>
11378
11379 * xterm.c (Qx_gtk_map_stock): New var.
11380
11381 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11382 of calling intern each time.
11383
a1856973
YM
113842009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11385
11386 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11387 does tiling.
11388
11389 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11390
497e54d8
KH
113912009-07-14 Kenichi Handa <handa@m17n.org>
11392
72d36834
KH
11393 * font.c (font_vconcat_entity_vectors): New function.
11394 (struct font_sort_data): New member font_driver_preference.
11395 (font_compare): Check font_driver_preference.
11396 (font_sort_entities): The format of the first argument changed.
11397 (font_delete_unmatched): Likewise.
11398 (font_list_entities): The return type changed.
11399 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
11400 (font_find_for_lface): Adjuste for the above changes.
11401 Don't suppress the checking of C even if the repertory supports it.
11402 (Flist_fonts): Adjust for the above changes.
72d36834 11403
1ac9108a
SM
11404 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11405 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
11406 Reject a font who has adstyle property that is different from a
11407 langname derived from registry property.
1ac9108a 11408 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 11409
b6046155
EZ
114102009-07-13 Eli Zaretskii <eliz@gnu.org>
11411
11412 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11413 local copy of dirfilename.
11414
fb6b6049
KH
114152009-07-13 Kenichi Handa <handa@m17n.org>
11416
e2402a5e
KH
11417 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11418 against max_char.
11419
fb6b6049
KH
11420 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11421 calling XSYMBOL (sym).
11422
65156807
EZ
114232009-07-11 Eli Zaretskii <eliz@gnu.org>
11424
1ac9108a
SM
11425 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11426 New function.
11427 (directory_files_internal) [WINDOWSNT]:
11428 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
11429 the filesystem of the directory is fast or slow.
11430
11431 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11432 file name.
11433 (is_slow_fs): New function.
11434 (stat): Use it to determine whether to issue more system calls to
11435 get accurate file attributes, when w32-get-true-file-attributes is
11436 `local'.
11437
e0ab5fcf
JD
114382009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11439
11440 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 11441 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
11442 parameter font-parameter as default to the font dialog.
11443
784ceded
KH
114442009-07-10 Kenichi Handa <handa@m17n.org>
11445
11446 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11447
fb8edc0b
EZ
114482009-07-09 Eli Zaretskii <eliz@gnu.org>
11449
1ac9108a 11450 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 11451
fb8edc0b
EZ
11452 * w32.c (stat): Treat UNC file names as residing on remote
11453 drives. (Bug#3542)
11454
635c75b1
KH
114552009-07-09 Kenichi Handa <handa@m17n.org>
11456
11457 * fontset.c (fontset_find_font): Fix previous change.
11458
c1d5ce94
MA
114592009-07-08 Michael Albinus <michael.albinus@gmx.de>
11460
11461 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11462 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11463 error flag.
11464
edb61b39
KH
114652009-07-08 Kenichi Handa <handa@m17n.org>
11466
374bf7e4
KH
11467 * fontset.c (fontset_find_font): Fix the logic of handling
11468 charset_matched.
11469 (font_for_char): Delete unused var.
11470 (generate_ascii_font_name): Delete it.
11471
edb61b39
KH
11472 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11473
11474 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11475 (encode_coding_sjis): Fix the code range check.
11476
0f3f018c
CY
114772009-07-07 Chong Yidong <cyd@stupidchicken.com>
11478
11479 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11480 (Fexpand_file_name): Copy string data properly (Bug#3772).
11481
fcaf6f3a
JD
114822009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11483
11484 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11485 first MapNotify.
11486
6809ca75
KH
114872009-07-07 Kenichi Handa <handa@m17n.org>
11488
11489 * character.h (unibyte_has_multibyte_table): Delete extern.
11490 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11491
11492 * charset.c (Fset_charset_priority): Update charset_unibyte.
11493 (syms_of_charset): Initialize charset_unibyte.
11494
11495 * character.c (unibyte_has_multibyte_table): Delete it.
11496 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11497 charset_unibyte.
11498 (multibyte_char_to_unibyte_safe): Likewise.
11499 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11500
1ac9108a 11501 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
11502 (x_produce_glyphs): Likewise.
11503
11504 * .gdbinit (xcharset): Fix the treating $arg0.
11505
ad9e2d54
EZ
115062009-07-04 Eli Zaretskii <eliz@gnu.org>
11507
11508 Emulation of `getloadavg' on MS-Windows.
50426a04 11509 * w32.c: Include float.h.
ad9e2d54
EZ
11510 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11511 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11512 (get_native_system_info, get_system_times): New functions.
11513 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11514 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11515 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11516 g_b_init_get_system_times, and num_of_processors.
11517
0a3472c7
JR
115182009-07-03 Jason Rumney <jasonr@gnu.org>
11519
11520 * w32term.c (w32_initialize): Use standard types.
11521
80904120
EZ
115222009-07-03 Eli Zaretskii <eliz@gnu.org>
11523
11524 * dired.c (Ffile_attributes): Decode user and group names by the
11525 locale's encoding. (Bug#3443)
11526
6978862d
DN
115272009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11528
f8d23104
DN
11529 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11530 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11531
11532 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11533
11534 * term.c (init_tty): Remove spurious #ifdef.
11535
6978862d
DN
11536 * m/mips.h: Mention this file is also used for netbsd.
11537 * m/pmax.h: Remove file.
11538
e044e4fc
JD
115392009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11540
11541 * xterm.h (struct x_display_info): Add invisible_cursor.
11542 (struct x_output): Add current_cursor.
11543
11544 * xterm.c (XTtoggle_invisible_pointer): New function.
11545 (x_define_frame_cursor): Don't define cursor if invisible or the
11546 same as before. Set current_cursor.
11547 (x_create_terminal): Set toggle_invisible_pointer_hook.
11548
11549 * xfns.c (make_invisible_cursor): New function.
11550 (x_set_mouse_color): Call make_invisible_cursor.
11551 Set current_cursor.
11552 (x_window): Set current_cursor.
11553
11554 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11555
11556 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11557 inserting a character.
11558 (read_avail_input): Call frame_make_pointer_visible.
11559
11560 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
11561 (frame_make_pointer_invisible, frame_make_pointer_visible):
11562 New functions.
e044e4fc
JD
11563 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11564
11565 * frame.h: Declare frame_make_pointer_invisible and
11566 frame_make_pointer_visible.
11567 (struct frame): Add pointer_invisible.
11568
574c8efa
JD
115692009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11570
7b507248
JD
11571 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11572 frame isn't visible.
11573 (xg_frame_resized): If width/height is -1, get size of window
11574 from X server.
11575
11576 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11577 for MapNotify.
11578
835bdaa7 11579 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 11580 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 11581 (flush_and_sync): Reintroduce.
574c8efa 11582
3f1c6666 115832009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 11584
31fd7c5c 11585 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
11586
11587 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11588 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11589
11590 * frame.h: Declare Qsticky.
11591
cad9ef74
JD
11592 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11593
11594 * nsfns.m (ns_frame_parm_handlers): Ditto.
11595
11596 * frame.c: Declare Qsticky.
11597 (frame_parms): Add sticky.
11598
11599 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11600
11601 * xterm.h: Declare x_set_sticky.
11602
11603 * xterm.c (x_set_sticky): New function.
11604
69b16610
JD
11605 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11606 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11607 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
11608
11609 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11610
11611 * frame.c: Qmaximized is new.
11612 (x_set_frame_parameters): Do not handle fullscreen specially.
11613 Only set width and height if explicitly set.
11614 (x_set_fullscreen): Handle Qmaximized.
11615 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11616 (syms_of_frame): Initialize Qmaximized.
11617
1ac9108a
SM
11618 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11619 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
11620
11621 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
11622 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11623 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
11624 set gravity to NorthWestGravity when USE_GTK.
11625 (set_wm_state): New function.
31fd7c5c 11626 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
11627 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11628 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 11629 or the case when no window manager is running. That means remove calls
3f1c6666
JD
11630 to x_real_positions and x_fullscreen_adjust.
11631
11632 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11633 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11634 flush_and_sync.
11635 (xg_height_changed): New function.
11636 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
11637 and gtk_window_set_policy. Set frame gravity after parsing the
11638 geometry string.
3f1c6666
JD
11639 (xg_update_frame_menubar, free_frame_menubar)
11640 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11641 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11642 Remove calls to xg_frame_set_char_size.
11643
fd503d99
KH
116442009-07-01 Kenichi Handa <handa@m17n.org>
11645
11646 * keyboard.c (decode_keyboard_code): New function.
11647 (tty_read_avail_input): Decode the input bytes if necessary.
11648
1ac9108a
SM
11649 * coding.c (setup_coding_system):
11650 Initialize coding->carryover_bytes to 0.
fd503d99
KH
11651 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11652 use Qno_conversion.
11653
24ed93fb
YM
116542009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11655
11656 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11657
99061dfc
CY
116582009-06-30 Chong Yidong <cyd@stupidchicken.com>
11659
1ac9108a 11660 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 11661
ff90fbde
JR
116622009-06-30 Jason Rumney <jasonr@gnu.org>
11663
11664 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11665 is already loaded.
11666 Set user model ID if supported (bug#1849).
11667
5f445726
JM
116682009-06-29 Jim Meyering <meyering@redhat.com>
11669
11670 Remove useless if-before-xfree test.
11671 * nsfont.m (nsfont_close): Remove useless test.
11672 * term.c (delete_tty): Likewise.
11673 * w32.c (system_process_attributes): Likewise.
11674 * w32font.c (w32font_close): Likewise.
11675 * xfaces.c (x_free_gc): Likewise.
11676 * xselect.c (buffer): Likewise.
11677
b9607587
AS
116782009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11679
11680 * process.c (send_process): Keep decoded string in a local
11681 variable and protect it from GC. (Bug#3521)
11682
89ba96f4
EZ
116832009-06-28 Eli Zaretskii <eliz@gnu.org>
11684
11685 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11686 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11687
098a1589
CY
116882009-06-28 Chong Yidong <cyd@stupidchicken.com>
11689
485422be
CY
11690 * xdisp.c (start_display, handle_face_prop)
11691 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
11692 (redisplay_window, try_window_id, produce_image_glyph):
11693 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 11694
098a1589
CY
11695 * xterm.c (x_update_window_begin, x_new_focus_frame)
11696 (x_scroll_bar_handle_click, handle_one_xevent)
11697 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11698 (x_make_frame_visible, x_make_frame_invisible)
11699 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11700 code chunks that are now obsolete.
11701
78c38319
MA
117022009-06-28 Michael Albinus <michael.albinus@gmx.de>
11703
11704 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11705 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11706 for hours, when optimzation is enabled.
11707 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11708 (xd_read_message): Make them static.
11709
4189ed40
CY
117102009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11711
11712 * term.c (turn_on_face): Allow simultaneously bold and dim
11713 terminal faces (Bug#3530).
11714
cd9b5e16
CY
117152009-06-27 Chong Yidong <cyd@stupidchicken.com>
11716
4e23bedb
CY
11717 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11718
cd9b5e16
CY
11719 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11720 truncation glyphs (Bug#3686).
11721
07cc3c35
GM
117222009-06-27 Glenn Morris <rgm@gnu.org>
11723
11724 * m/pmax.h: Restore file, with only netbsd portions.
11725
31fd7c5c 117262009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 11727
cd9b5e16 11728 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 11729
42d4a64f
KH
117302009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11731
11732 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11733 the arg FORCE_SYMBOL.
11734
930fe55b 117352009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
11736
11737 * fontset.c (fontset_find_font): When a usable rfont_def is found
11738 in a fallback font-group, make it the first element of the group.
11739
57ebc3fd
CY
117402009-06-24 Chong Yidong <cyd@stupidchicken.com>
11741
11742 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11743
f084f942
KH
117442009-06-24 Kenichi Handa <handa@m17n.org>
11745
11746 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11747 set for C.
11748 (fontset_font): Record the availability of a font for C both in
11749 the realized fontsets of the current one and the default one.
11750
2f686c87
DN
117512009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11752
11753 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11754 conditional, it is always defined on AIX.
11755
666e158e
MB
117562009-06-23 Miles Bader <miles@gnu.org>
11757
11758 * window.c (Vrecenter_redisplay): New variable.
11759 (syms_of_window): Initialize it.
11760 (Qtty): New extern declaration.
11761 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11762
c6da7cd2
JM
117632009-06-23 Jim Meyering <meyering@redhat.com>
11764
1ac9108a
SM
11765 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11766 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 11767 pointer dereferences are guaranteed to be valid.
c6da7cd2 11768
678dca3d
KH
117692009-06-23 Kenichi Handa <handa@m17n.org>
11770
74d75424
KH
11771 * emacs.c (main): Call init_font ().
11772
11773 * font.h (Vfont_log): Extern it.
11774 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11775
11776 * font.c (font_sort_entities, font_list_entities)
11777 (font_matching_entity, font_open_entity)
11778 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11779 (Vfont_log): Delete static.
11780 (font_log_env_checked): Delete this variable.
11781 (font_add_log): Don't check font_log_env_checked.
11782 (font_deferred_log): Check Vfont_log.
11783 (init_font): New function.
11784
678dca3d
KH
11785 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11786
11787 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11788
11789 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11790
11791 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11792
11793 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11794 (face_for_char): Don't call font_deferred_log here.
11795 (font_for_char): Likewise.
11796
8a668709
CY
117972009-06-22 Chong Yidong <cyd@stupidchicken.com>
11798
9a01ee33
CY
11799 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11800 rather than its background_width for drawing the overline and
11801 underline (Bug#489).
11802
11803 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11804 rather than its background_width for drawing the overline and
11805 underline (Bug#489).
ec7c9926
CY
11806 (xg_default_icon_file): New variable.
11807 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11808 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 11809
8a668709
CY
11810 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11811 (load_overlay_strings): Remove externs.
11812 (fast_find_position): Function deleted.
11813 (mouse_face_from_buffer_pos): New function, based on
11814 fast_find_position. Correctly handle before-strings,
11815 display-strings, and after-strings (Bug#1220).
11816 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11817
4d4c02d8
CY
118182009-06-21 Chong Yidong <cyd@stupidchicken.com>
11819
1ac9108a 11820 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
11821 (move_it_in_display_line_to, move_it_in_display_line_to)
11822 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11823
70243478
CY
118242009-06-21 Chong Yidong <cyd@stupidchicken.com>
11825
11826 * Branch for 23.1.
11827
13087e59
JR
118282009-06-21 Jason Rumney <jasonr@gnu.org>
11829
11830 * w32term.c (keyboard_codepage): New static variable.
11831 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11832 (w32_read_socket) [WM_CHAR]: Use it to decode character
11833 input (bug#3237).
11834 (w32_initialize): Initialize it.
11835 (codepage_for_locale): New function.
11836
4735b74e
KR
118372009-06-20 Ken Raeburn <raeburn@raeburn.org>
11838
11839 * process.c (status_message): Pass Faset index argument as a lisp
11840 object, so as to work with USE_LISP_UNION_TYPE.
11841
0e727afa
YM
118422009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11843
11844 * coding.c (Ffind_coding_systems_region_internal):
11845 Cache checked characters.
11846
cf299835
KH
118472009-06-18 Kenichi Handa <handa@m17n.org>
11848
1ac9108a 11849 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 11850
90f20d94
AS
118512009-06-18 Andreas Schwab <aschwab@redhat.com>
11852
11853 * xdisp.c (redisplay_internal): Check that the frame is still
11854 live after redisplay of its windows.
11855 (redisplay_windows): Check that the window is still live.
11856
7f1faf1c
KH
118572009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11858
11859 * coding.c (detect_coding_utf_16): Fix previous change.
11860
cc13543e
KH
118612009-06-16 Kenichi Handa <handa@m17n.org>
11862
11863 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11864 UTF-16 by checking the dispersion of Eth and Oth bytes.
11865
977b85f4
AS
118662009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11867
11868 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11869
66bd43d1
KH
118702009-06-15 Kenichi Handa <handa@m17n.org>
11871
11872 * process.c (status_message): Fix previous change. Be sure to
11873 decode a localized string.
11874
cb5ca9c5
YM
118752009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11876
11877 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11878 add comment explaining why.
11879
ec7709ba 118802009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 11881
ec7709ba 11882 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 11883
4b7f335c
AR
118842009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11885
11886 * nsfont.m (ns_attribute_value): Remove.
11887 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11888 (ns_has_attribute): Shrink the normal range.
11889 (ns_findfonts): Don't worry about requested spec in determining
11890 need for synthItal.
e41820ee 11891 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 11892
73b26103
SZ
118932009-06-14 Seiji Zenitani <zenitani@mac.com>
11894
11895 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11896
5753e4da
KH
118972009-06-11 Kenichi Handa <handa@m17n.org>
11898
11899 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11900 overhang for the static composition case.
11901
3561b671
KH
119022009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11903
5753e4da
KH
11904 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11905 overhang for the automatic composition case.
11906
3561b671
KH
11907 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11908 composition case.
11909
852bbd41
CY
119102009-06-10 Chong Yidong <cyd@stupidchicken.com>
11911
11912 * xdisp.c (get_next_display_element): When handling wrap-prefix
11913 and line-prefix, treat \n as a control character (bug#3502).
11914
9903d1e6
KH
119152009-06-10 Kenichi Handa <handa@m17n.org>
11916
11917 * font.c (font_parse_family_registry): Fix for one-char foundry.
11918 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11919
0bcbaaaa
CY
119202009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11921
11922 * process.c (status_message): Fix handling of multibyte signal
11923 string (Bug#3499).
11924
40aa3f13
JM
119252009-06-09 Jim Meyering <meyering@redhat.com>
11926
1f80c7e2
CY
11927 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11928 color name is missing.
40aa3f13 11929
72d51285
KH
119302009-06-09 Kenichi Handa <handa@m17n.org>
11931
11932 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11933 FROM-CODE and TO-CODE are codepoints of CHARSET.
11934
c1d04d84
AR
119352009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11936
11937 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11938
119392009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11940
11941 Changes to support :script/:lang/:otf in NS font driver.
11942 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11943 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11944 indicate not part of font driver interface, and change callers.
11945 (ns_get_family): Remove pointless null check.
11946 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11947 ns_spec_to_descriptor, ns_descriptor_to_entity.
11948 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11949 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11950 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11951 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11952 (ns_get_req_script, ns_accumulate_script_ranges)
11953 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11954 New functions.
11955 (nsfont_list, nsfont_match): Use ns_findfonts.
11956 (nsfont_open): Use font descriptor instead of traits.
11957 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11958 (dump_glyphstring): Rename to ns_dump_glyphstring.
11959
c7eb9816
AR
11960 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11961
c1d04d84
AR
11962 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11963
11964 * fontset.c (fontset_from_font): Remove NS-specific code.
11965
ec7709ba 119662009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
11967
11968 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11969 nonactive windows.
11970
31fd7c5c 119712009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 11972
1ac9108a 11973 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 11974
68852c13 119752009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
11976
11977 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11978
6756cd1d
CY
119792009-06-07 Chong Yidong <cyd@stupidchicken.com>
11980
11981 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11982 account for the overflowing of newlines into the last glyph on the
11983 display line (Bug#3482).
11984
28bf482a
DR
119852009-06-05 David Reitter <david.reitter@gmail.com>
11986
ec7709ba
JB
11987 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11988 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
11989 Fns_selection_exists_p, Fns_selection_owner_p.
11990
fdb55376
JR
119912009-06-03 Jason Rumney <jasonr@gnu.org>
11992
11993 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11994 available. (Bug#3379)
11995
05129fbe
KH
119962009-05-29 Kenichi Handa <handa@m17n.org>
11997
1ac9108a
SM
11998 * coding.c (get_translation_table):
11999 Check Venable_character_translation.
05129fbe 12000
ec7709ba 120012009-05-26 David Reitter <david.reitter@gmail.com>
15891144 12002
ec7709ba
JB
12003 * nsterm.m (ns_raise_frame): Only raise frame if visible.
12004 (x_make_frame_visible): Move frame to front rather than calling
15891144 12005 ns_raise_frame().
ec7709ba 12006 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 12007 isn't key window.
ec7709ba 12008 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
12009 drawRect may be called by NSView even if the frame is hidden.
12010
ec7709ba
JB
12011 * nsfns.m (Fx_create_frame): Follow other ports in
12012 determining visibility; default to t. Ensure async_visible is set.
15891144 12013
21f73755
EZ
120142009-05-23 Eli Zaretskii <eliz@gnu.org>
12015
12016 * dired.c (Ffile_attributes): Doc fix.
12017
34001e41
CY
120182009-05-22 Chong Yidong <cyd@stupidchicken.com>
12019
12020 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
12021
46306a17
SM
120222009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
12023
12024 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
12025 and xfont_scratch_props.
12026 (syms_of_xfont): Do it here instead.
12027 (xfont_find_ccl_program): Delete, unused.
12028 (xfont_open): Delete unused var `i'.
12029
ef6e0694
KH
120302009-05-21 Kenichi Handa <handa@m17n.org>
12031
12032 * fontset.c (Qlatin): Don't make it static.
12033
46306a17
SM
12034 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
12035 New functions.
ef6e0694
KH
12036 (xfont_scripts_cache, xfont_scratch_props): New variables.
12037 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
12038 (xfont_list_pattern): Argument changed. Callers changed.
12039 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
12040 (xfont_list): Don't reject a font spec with :script property.
12041 (xfont_has_char): Fix setting of encoding.
12042 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
12043 xfont_scratch_props.
12044
120452009-05-19 Kenichi Handa <handa@m17n.org>
12046
46306a17 12047 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
12048 Callers changed.
12049
120502009-05-18 Kenichi Handa <handa@m17n.org>
12051
12052 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
12053
ac71ced7
SM
120542009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12055
12056 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
12057 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
12058
1c6d1051
YM
120592009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12060
12061 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
12062 (x_delete_terminal): Dissociate resource database from display and
12063 then call XrmDestroyDatabase before closing display.
12064
9b9b779c
AR
120652009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12066
12067 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
12068 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12069 whether selected frame is viable before raising it (based on patch
12070 by David Reitter), and improve commentary.
12071 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 12072
cccd42d5
KH
120732009-05-15 Kenichi Handa <handa@m17n.org>
12074
12075 * font.c (Ffont_spec): Check arguments.
12076
337fbd17
CY
120772009-05-14 Chong Yidong <cyd@stupidchicken.com>
12078
12079 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12080 weight when testing attributes (Bug#3282).
12081
47a6002f
JD
120822009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12083
12084 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12085 what we expect to get in the next ConfigureNotify event.
12086
9cb363db
YM
12087 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12088 before Xft one (Bug#1696).
12089
b9126609
CY
120902009-05-07 David Reitter <david.reitter@gmail.com>
12091
12092 * nsfns.m (Fx_display_planes): Compute bitplanes using
12093 NSBitsPerPixelFromDepth (Bug#3207).
12094
27a69fd9
CY
120952009-05-10 Chong Yidong <cyd@stupidchicken.com>
12096
12097 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12098
00f37552
TTN
120992009-05-10 Ulrich Mueller <ulm@gentoo.org>
12100
12101 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12102
2d82a920
DR
121032009-05-07 David Reitter <david.reitter@gmail.com>
12104
ec7709ba
JB
12105 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12106 Respect mouse face background.
2d82a920 12107
46b0d52d
DR
121082009-05-07 David Reitter <david.reitter@gmail.com>
12109
ec7709ba
JB
12110 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12111 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
12112 in ns_update_begin and ns_update_end.
12113
ce1b23bb
SM
121142009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12115
5996e1b7
SM
12116 * nsfns.m (ns_get_screen): Rewrite.
12117 Don't presume selected-frame is of type `ns'.
12118
ba98e3a0
SM
12119 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12120 all drivers.
12121
ce1b23bb
SM
12122 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12123
bcda200f
YM
121242009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12125
12126 * keyboard.h (add_user_signal): Fix typo in extern.
12127
12128 * lisp.h (add_user_signal): Remove extern.
12129
12130 * unexelf.c (unexec): Consider a section to precede the .bss section
12131 if its addresses overlap that of .bss.
12132 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12133 instead of dumping process.
12134
864660a2
SM
121352009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12136
12137 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12138
50da4e56
SM
121392009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12140
12141 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12142
51520a1a
DN
121432009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12144
12145 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12146 any statements.
12147
409ea3a1
AS
121482009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12149
59c4c60f
AS
12150 * process.c (read_process_output): Make sure the current buffer is
12151 always restored.
12152
409ea3a1
AS
12153 * coding.c (record_conversion_result): Don't modify
12154 Vlast_code_conversion_error for successful result.
12155 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12156
56f00ed2
KH
121572009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12158
12159 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 12160 (load_charset_map): Remove unnecessary code.
56f00ed2 12161
4491c9d2
DR
121622009-04-30 David Reitter <david.reitter@gmail.com>
12163
35f5b128 12164 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
12165 through f24.
12166
6970f632
CY
121672009-04-30 Chong Yidong <cyd@stupidchicken.com>
12168
12169 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12170
12171 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12172 face_at_buffer_position.
12173 (face_before_or_after_it_pos, get_next_display_element)
12174 (note_mouse_highlight): Update face_at_buffer_position call.
12175
12176 * term.c (term_mouse_highlight):
12177 * msdos.c (IT_note_mouse_highlight):
12178 * fontset.c (Finternal_char_font):
35f5b128 12179 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
12180
12181 * dispextern.h (face_at_buffer_position): Update prototype.
12182
0c616f63
KH
121832009-04-30 Kenichi Handa <handa@m17n.org>
12184
35f5b128 12185 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 12186
ad3aaf33
AS
121872009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12188
12189 * callproc.c (Fcall_process): Fix GC protection. Make sure
12190 current buffer is always restored.
12191
c3c963a0
YM
121922009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12193
12194 * atimer.c (init_atimer): Also clear stopped_atimers.
12195
12196 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12197
7e3386cb
YM
12198 * process.c (create_process): Clean up merger residues of
12199 2008-07-17 change.
12200
91f68422
CY
122012009-04-29 Ulrich Mueller <ulm@gentoo.org>
12202
12203 * lread.c (Vread_circle): New variable.
12204 (read1): Disable recursive read if Vread_circle is nil.
12205
24b34550
KH
122062009-04-29 Kenichi Handa <handa@m17n.org>
12207
12208 * fontset.h (set_default_ascii_font): Delete extern.
12209
12210 * fontset.c (set_default_ascii_font): Delete this unused function.
12211
12212 * frame.c (x_set_font): When ARG is a font-object, check if the
12213 font-object matches with the ASCII font-spec of the frame's
9c358bda 12214 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 12215
77bf07e1
AS
122162009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12217
12218 * fns.c (Flocale_info): Protect vector from GC during decoding.
12219
12220 * process.c (Fstart_process): Protect argv strings from GC during
12221 encoding.
12222
2c55aacf
AS
122232009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12224
12225 * sysdep.c: Include <ctype.h>.
12226
b892d3c9
DR
122272009-04-27 David Reitter <david.reitter@gmail.com>
12228
35f5b128 12229 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
12230 Remove commented-out code.
12231
9d0644c4
JB
122322009-04-26 Johan Bockgård <bojohan@gnu.org>
12233
12234 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12235
b7053016
JR
122362009-04-25 Jason Rumney <jasonr@gnu.org>
12237
12238 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12239
4e8231f3
YM
122402009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12241
12242 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12243 Swap bytes in short integer if fringe bitmap width > 8.
12244
493dcf2c
KH
122452009-04-23 Kenichi Handa <handa@m17n.org>
12246
12247 * xfaces.c (Fx_list_fonts): If a font size is specified in
12248 PATTERN, set it in returned scalable fonts.
12249
401e9e57
CY
122502009-04-22 Chong Yidong <cyd@stupidchicken.com>
12251
708e05dc
CY
12252 * keyboard.c (Fset_input_meta_mode): Doc fix.
12253
12254 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12255
1ac9108a 12256 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
12257
12258 * coding.c (Fterminal_coding_system): Doc fix.
12259
12260 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12261 (Fx_display_pixel_height, Fx_display_planes)
12262 (Fx_display_color_cells, Fx_server_max_request_size)
12263 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12264 (Fx_display_mm_height, Fx_display_mm_width)
12265 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
12266 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12267 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
12268 (check_x_display_info): Handle terminal objects instead of
12269 terminal ids.
12270
401e9e57
CY
12271 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12272 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
12273 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12274 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 12275
df80c7f0
KH
122762009-04-21 Kenichi Handa <handa@m17n.org>
12277
5a8f12af 12278 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 12279 (font_score): Check AVGWIDTH too.
908567ef 12280
df80c7f0
KH
12281 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12282 worst case.
1ac9108a
SM
12283 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12284 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 12285
705af33f
JR
122862009-04-19 Jason Rumney <jasonr@gnu.org>
12287
12288 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 12289 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
12290
12291 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12292 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12293 get_phys_cursor_geometry.
12294
b71ac3dd 12295 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
12296 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12297 using get_phys_cursor_geometry.
12298
12299 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12300 correctly calculated.
12301
dc2933eb
JD
123022009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12303
1ac9108a
SM
12304 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12305 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
12306 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12307 is deprecated.
12308
973e7849
AS
123092009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12310
12311 * font.c (font_put_frame_data): Use xfree instead of free.
12312
314d66f4
JB
123132009-04-17 Juanma Barranquero <lekktu@gmail.com>
12314
12315 * w32font.c (Qja, Qko): Remove declarations.
12316 (syms_of_w32font): Don't DEFSYM them.
12317
cf702558
CY
123182009-04-17 Chong Yidong <cyd@stupidchicken.com>
12319
12320 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12321
12322 * font.h (Qja, Qko): Extern them.
12323
12324 * ftfont.c (Qja, Qko): Remove declarations.
12325
12326 * xfont.c (Qja, Qko): Remove declarations.
12327
b50504f5
KH
123282009-04-17 Kenichi Handa <handa@m17n.org>
12329
bde25748
KH
12330 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12331 string from a vector to handle Latin-1 characters correctly.
12332
b50504f5
KH
12333 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12334 entity even if the cache hits.
12335
f4646fff
AS
123362009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12337
12338 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 12339 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 12340
e7deaab0
AS
12341 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12342 * lisp.h: Adjust prototypes.
12343
0a0e7d49
CY
123442009-04-16 Chong Yidong <cyd@stupidchicken.com>
12345
12346 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12347 change (Bug#3003).
12348
3c908a57
KH
123492009-04-16 Kenichi Handa <handa@m17n.org>
12350
1ac9108a 12351 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
12352
12353 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12354 adstyle.
12355
12356 * ftfont.c (Qja, Qko): Don't make them static.
12357 (enum ftfont_cache_for): New enum.
12358 (fc_charset_table): Undo the previous change.
12359 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
12360 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12361 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
12362 non-scarable font, try to get AVERAGE_WIDTH.
12363 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12364 Change ft_face_cache from a list of a hash-table. Don't check
12365 `ja' and `ko' adstyle here.
12366 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12367 FTFONT_CACHE_FOR_CHARET.
12368 (ftfont_get_charset): Undo the previous change.
1ac9108a 12369 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
12370 (ftfont_close): Likewise.
12371 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12372
12373 * font.c (font_sort_entites): Change the meaning of the arg
12374 BEST-ONLY. Don't optimize for VEC of lenght 1.
12375 (font_select_entity): Just return the value of font_sort_entites.
12376
12377 * xfaces.c (merge_face_vectors): Reflect font properties in
12378 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12379 font_clear_prop if a face attribute doesn't change.
12380
3c908a57
KH
12381 * charset.h (charset_ksc5601): Extern it.
12382
12383 * charset.c (charset_ksc5601): New variable.
12384 (Fdefine_charset_internal): Set charset_ksc5601.
12385 (init_charset_once): Initialize charset_ksc5601 to -1.
12386
d65859c3
DN
123872009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12388
12389 * fileio.c (history_delete_duplicates): Remove unused declaration.
12390
12391 * callint.c (history_delete_duplicates): New declaration.
12392 (Fcall_interactively): Remove command history duplicates when
12393 history_delete_duplicates is true.
12394
3ba010e5
EZ
123952009-04-14 Eli Zaretskii <eliz@gnu.org>
12396
12397 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12398
06f19b91
KH
123992009-04-14 Kenichi Handa <handa@m17n.org>
12400
12401 * font.c (Ffont_info): Fix docstring. Fix the second element of
12402 the returned value (bug#2949).
12403
2cce8bfc
CY
124042009-04-14 Chong Yidong <cyd@stupidchicken.com>
12405
12406 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12407
d156542d
KH
124082009-04-14 Kenichi Handa <handa@m17n.org>
12409
12410 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12411 encoding charset is ascii_compatible.
12412
12413 * charset.c (Fdefine_charset_internal): Make charset
12414 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12415 code_offset is 0, and covers all ASCII characters.
12416
86fa089e
SM
124172009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12418
12419 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12420 (ns_string_to_pasteboard_internal):
12421 * nsmenu.m (process_dialog):
12422 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12423 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12424 * lisp.h (Fx_load_color_file): Declare.
12425
a8a3728b
KH
124262009-04-13 Kenichi Handa <handa@m17n.org>
12427
1ac9108a 12428 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
12429 (font_select_entity): Suppress the code to optimize for the same
12430 kind of fonts.
12431 (font_load_for_lface): Get a font that supports at least ASCII
12432 characters.
12433
12434 * ftfont.c (Qja, Qko): New variables.
12435 (fc_charset_table): Delete uniquifier data for iso8859-1.
12436 (ftfont_get_latin1_charset): New function.
12437 (get_adstyle_property): New function.
12438 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12439 bitmap fonts.
12440 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12441 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12442 `ko' or `ja'.
12443 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 12444 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
12445 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12446 property.
12447 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12448 (syms_of_ftfont): DEFSYM Qja and Qko.
12449
483670b5
KH
124502009-04-09 Kenichi Handa <handa@m17n.org>
12451
12b55765
KH
12452 * charset.c (map_charset_chars): For a charset of `superset'
12453 method, fix calculation of code range.
12454
483670b5
KH
12455 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12456 from the list of extra properties.
12457 (font_clear_prop): Be sure to delete `:name' font property.
12458
57d3b93b
KH
124592009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12460
b4b2c2ca
YM
12461 * dispnew.c (redraw_overlapping_rows): Fix detection of
12462 overlapping for topmost and bottommost rows.
12463
1ac9108a 12464 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 12465
472c3609
JR
124662009-04-06 Jason Rumney <jasonr@gnu.org>
12467
12468 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12469
ab193662
KH
124702009-04-06 Kenichi Handa <handa@m17n.org>
12471
12472 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12473
12474 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12475
0c26f026
KH
124762009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12477
12478 * ftfont.c (ftfont_open): Fix checking of the return value of
12479 FT_Load_Char. Fix setting font->underline_thickness.
12480
e173bbce
CY
124812009-04-04 Chong Yidong <cyd@stupidchicken.com>
12482
12483 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12484 (Fterminal_parameters, Fterminal_parameter)
12485 (Fset_terminal_parameter): In doc string, refer to terminal
12486 objects rather than terminal ids.
12487
693a2698
EZ
124882009-04-04 Eli Zaretskii <eliz@gnu.org>
12489
12490 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12491 ret_lim_data. (Bug#2867)
12492
d5221487
CY
124932009-04-03 Chong Yidong <cyd@stupidchicken.com>
12494
12495 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12496 so they don't get wider than the window, matching 2006-01-23
12497 change to the partner function in xdisp.c (Bug#2800).
12498
223509a3
KH
124992009-04-03 Kenichi Handa <handa@m17n.org>
12500
12501 * print.c (print_object): Make each lowest sub_char_table start a
12502 new line (Bug#2866).
12503
74fcd0b1
KH
125042009-04-02 Kenichi Handa <handa@m17n.org>
12505
12506 * fontset.c (fontset_font): Record no-font when a fontset
12507 explicitly tells not to try another font-specs.
12508
c542407d
SM
125092009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12510
12511 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12512
e3869731
KH
125132009-03-30 Kenichi Handa <handa@m17n.org>
12514
d8d2f142
KH
12515 * fontset.c (fontset_from_font): Specify only registry in a
12516 font-spec for all characters supported by that registry.
12517
e3869731
KH
12518 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12519 even if HAVE_M17N_FLT is not defined.
12520
5da5f805
CY
125212009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12522
12523 * ftfont.c: Conditionalize prototyping and use of
12524 ftfont_variation_glyphs.
12525
ab226c50
SM
125262009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12527
9628fed7
SM
12528 * frame.c (delete_frame): Work around compiler bug.
12529
12530 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12531 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12532 Some more EMACS_INT.
12533 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12534
12535 * xdisp.c (dump_glyph): Fix typo.
12536
ae19ba7c
SM
12537 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12538 (adjust_markers_gap_motion, adjust_markers_for_delete)
12539 (adjust_markers_for_insert, adjust_point)
12540 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12541 (make_gap, copy_text, count_size_as_multibyte, insert)
12542 (insert_and_inherit, insert_before_markers)
12543 (insert_before_markers_and_inherit, insert_1)
12544 (count_combining_before, count_combining_after, insert_1_both)
12545 (insert_from_string, insert_from_string_before_markers)
12546 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12547 (insert_from_buffer_1, adjust_after_replace)
12548 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12549 (replace_range_2, del_range, del_range_1, del_range_byte)
12550 (del_range_both, del_range_2, modify_region)
12551 (prepare_to_modify_buffer, signal_before_change)
12552 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12553 for buffer positions and sizes.
12554 * lisp.h: Adjust prototypes accordingly.
12555
12556 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12557 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12558 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12559
ab226c50
SM
12560 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12561
46dfb8fb
JD
125622009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12563
12564 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12565 lines and columns so we keep the same pixel height and width.
12566
12567 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12568 the property _NET_WM_STATE has changed.
46dfb8fb
JD
12569 (x_handle_net_wm_state): New function to update frame parameter
12570 fullscreen.
12571 (x_term_init): Initialize atoms for _NET_WM_STATE.
12572
12573 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12574
d347e494
SM
125752009-03-27 Kevin Ryde <user42@zip.com.au>
12576
12577 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12578 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12579 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12580 (Fgpm_mouse_stop): Pass that new parameter.
12581 * termhooks.h (close_gpm): Adjust prototype.
12582
84db11d6
SM
125832009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12584
c95a5008
SM
12585 * lisp.h (Fx_focus_frame): Declare.
12586
84db11d6
SM
12587 * callint.c (Fcall_interactively): For '^' just delegate the work to
12588 handle-shift-selection.
12589 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12590
0a1958d6
CY
125912009-03-24 Chong Yidong <cyd@stupidchicken.com>
12592
0bfdff23
CY
12593 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12594
0a1958d6
CY
12595 * data.c (Qinteractive_form): New variable.
12596 (Finteractive_form): Use it.
12597
12598 * eval.c (Fcommandp): Use Qinteractive_form.
12599
58aec0d6
JR
126002009-03-24 Jason Rumney <jasonr@gnu.org>
12601
12602 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12603 Calculate total size precisely. Decode environment variables
12604 before substituting. (Bug#38)
12605
553dd618
KH
126062009-03-24 Kenichi Handa <handa@m17n.org>
12607
12608 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 12609 encoding (Bug#2722).
553dd618 12610
c39ea606
JD
126112009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12612
12613 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12614 that gdpy is set.
12615
bc9b2b5e
AM
126162009-03-22 Alan Mackenzie <acm@muc.de>
12617
12618 * callint.c (Finteractive): Clarify the doc string - even
12619 promptless elements need \n separators.
12620
9f995a76
JR
126212009-03-22 Jason Rumney <jasonr@gnu.org>
12622
12623 * w32term.c (syms_of_w32term): Doc fix for
12624 x-use-underline-position-properties.
12625
22749e9a
EZ
126262009-03-21 Eli Zaretskii <eliz@gnu.org>
12627
12628 * w32.c (getpwuid): Change argument type to unsigned.
12629 (struct w32_id): Change type of `rid' member to unsigned.
12630 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12631 argument ID to unsigned. All callers changed.
12632 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12633
e00553bf
EZ
126342009-03-20 Eli Zaretskii <eliz@gnu.org>
12635
12636 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12637 negative, produce a float value.
12638
12639 * dired.c (make_uid, make_gid): New functions.
12640 (Ffile_attributes): Use them to avoid negative UID and GID.
12641
f761d6b6
JB
126422009-03-20 Juanma Barranquero <lekktu@gmail.com>
12643
12644 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12645 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12646 Fix typos in docstrings.
12647
d507f8d7
KH
126482009-03-19 Kenichi Handa <handa@m17n.org>
12649
12650 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
12651 changed, use font_load_for_lface to get a new font object.
12652 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
12653
12654 * frame.c (x_set_font): Handle the case that ARG is a cons.
12655
c68845e0
GM
126562009-03-19 Glenn Morris <rgm@gnu.org>
12657
12658 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12659
bfa49dd1
CY
126602009-03-19 Chong Yidong <cyd@stupidchicken.com>
12661
12662 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12663
8458d4c1
KH
126642009-03-19 Kenichi Handa <handa@m17n.org>
12665
12666 * charset.c (load_charset_map_from_file): When a mapfile can't be
12667 loaded, signal an error.
12668
78e7d1fe
EZ
126692009-03-18 Eli Zaretskii <eliz@gnu.org>
12670
12671 * dired.c (Ffile_attributes): Make sure UID and GID are always
12672 positive, even if the value is too large for a positive EMACS_INT.
12673 Doc fix.
12674
12675 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12676
5da9fdfa
YM
126772009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12678
12679 * xmenu.c (xdialog_show): Move Fredisplay call ...
12680 (Fx_popup_dialog): ... here.
12681
7519c40d
SM
126822009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12683
12684 * dired.c (file_name_completion): Disable the first optimization just
12685 installed, since it is not implemented correctly.
12686
2cd298e2
SM
126872009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12688
12689 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 12690 only if the entry can affect bestmatch.
2cd298e2
SM
12691 Stop the search early, as Ftry_completion already does.
12692
48d37adf
CY
126932009-03-17 Chong Yidong <cyd@stupidchicken.com>
12694
e10c9c93 12695 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 12696
9286b16a
CY
126972009-03-15 Chong Yidong <cyd@stupidchicken.com>
12698
12699 * keyboard.c (parse_menu_item): Don't display remappings as menu
12700 equivalent bindings (Bug#788).
12701
f7b146dc
JR
127022009-03-15 Jason Rumney <jasonr@gnu.org>
12703
12704 * w32term.h (WM_EMACS_PAINT): New message.
12705 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12706 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12707 before passing to lisp thread. (Bug#950)
12708
f761d6b6 127092009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 12710
d93f9575
CY
12711 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12712 variable as it was never reset.
12713 (ns_term_init): Remove initialization of Lisp-settable defaults
12714 and ns_expand_space.
12715 (-setPanelFromDefaultValues): Remove ns_expand_space.
12716 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12717 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
12718 i.e. no additional spacing, similar to Carbon port.
12719
d93f9575
CY
12720 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12721 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 12722
305018ec
JD
127232009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12724
12725 * sound.c (alsa_configure): Remove call to deprecated
12726 snd_pcm_sw_params_set_xfer_align.
12727
f761d6b6 127282009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
12729
12730 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12731 after clicking in a detached tool bar.
12732 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12733
46e722a9
SM
127342009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12735
348db3dd
SM
12736 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12737 int/Lisp_Object mixup).
46e722a9 12738
a3d16f39
KH
127392009-03-13 Kenichi Handa <handa@m17n.org>
12740
12741 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 12742 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
12743 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12744 (set_fontset_font): Change ARG to a vector. Handle range_list in
12745 ARG correctly.
12746 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 12747 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
12748 the above change.
12749 (fontset_from_font): Fix previous change.
fe24f56a 12750 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
12751 entry. If FONTSET is the default fontset, don't set the extra
12752 slot of the returning char-table.
12753
b066e6b6
JB
127542009-03-12 Juanma Barranquero <lekktu@gmail.com>
12755
12756 * nsfns.m (Fx_close_connection): Doc fix.
12757 (Fns_do_applescript): Reflow docstring.
12758 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12759 (Fx_display_pixel_width, Fx_display_pixel_height)
12760 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12761 Fix typos in docstrings.
12762 (Fns_set_alpha): Fix typos in error messages.
12763
d472514e 127642009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 12765
d472514e 12766 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
12767 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12768 were used for such events.
12769
d472514e
JB
12770 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12771 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 12772
d472514e 12773 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
12774 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12775
fb930676
KH
127762009-03-11 Kenichi Handa <handa@m17n.org>
12777
ff85581a
KH
12778 * font.h (font_open_by_spec): Extern it.
12779
c50b7e98
KH
12780 * font.c (font_open_by_spec): New function.
12781 (font_open_by_name): Use font_open_by_spec.
12782
fb930676
KH
12783 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12784 fontset of the frame.
12785
12786 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12787 modify the default font of frames that use this fontset.
12788 (num_auto_fontsets): New variable.
12789 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12790 name. Be sure to set FONTSET_ASCII to the correct font name.
12791 (update_auto_fontset_alist): New function.
12792
df4e8455
JB
127932009-03-11 Juanma Barranquero <lekktu@gmail.com>
12794
12795 * makefile.w32-in: Update dependencies.
12796
0a375797
AR
127972009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12798
12799 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12800
61313fa3
SM
128012009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12802
12803 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12804
b55103fb
CY
128052009-03-10 Chong Yidong <cyd@stupidchicken.com>
12806
12807 * lread.c (Feval_buffer): Doc fix.
12808
dde2559c
KH
128092009-03-09 Kenichi Handa <handa@m17n.org>
12810
12811 * charset.c (Qfile_name_handler_alist): Extern it.
12812 (load_charset_map_from_file): Temporarily bind
12813 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12814
df4e8455 128152009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 12816
47f588bb
GM
12817 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12818 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 12819
4ddf94bd
AR
128202009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12821
4c9bdfc2
AR
12822 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12823 (x_set_window_size): Change back to calculated method of setting
12824 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
12825 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12826 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12827
fe41ae9e
AR
12828 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12829
4c9bdfc2
AR
12830 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12831 accelerator in parens under GNUstep.
12832
825d0875
KH
128332009-03-06 Kenichi Handa <handa@m17n.org>
12834
12835 These changes are to detect incorrect composition sequence without
f3b3be74 12836 looking ahead the source. (Bug#2370)
825d0875
KH
12837
12838 * coding.h: Include "composite.h".
12839 (enum compisition_state): New enum.
12840 (struct compisition_status): New struct.
12841 (struct iso_2022_spec): New member cmp_status.
12842 (struct emacs_mule_spec): New struct.
12843 (struct coding_system): New members ctext_extended_segment_len and
12844 embedded_utf_8. Change the union member
12845 spec.emacs_mule_full_support to spec.emacs_mule.
12846
12847 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12848 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 12849 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
12850 (ADD_COMPOSITION_DATA): New arg nbytes.
12851 (emacs_mule_char): New arg cmp_status.
12852 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12853 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12854 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12855 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12856 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12857 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12858 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12859 (EMACS_MULE_COMPOSITION_END): New macro.
12860 (emacs_mule_finish_composition): New function.
12861 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12862 (decode_coding_emacs_mule): Avoid long looking ahead while
12863 handling composition.
12864 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12865 (ENCODE_COMPOSITION_RULE): New macro.
12866 (finish_composition): New function.
12867 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12868 (DECODE_COMPOSITION_START): New implementation.
12869 (DECODE_COMPOSITION_END): Likewise.
12870 (STORE_COMPOSITION_RULE): New macro.
12871 (decode_coding_iso_2022): Avoid long looking ahead while handling
12872 composition, CTEXT extended segment, and embedded UTF-8.
12873 (setup_coding_system): For a coding of type iso-2022, reset
12874 CODING_ISO_EXTSEGMENT_LEN (coding) and
12875 CODING_ISO_EMBEDDED_UTF_8 (coding).
12876 (get_translation): Delete arguments last_block, from_nchars,
12877 to_nchars. Callers changed.
12878 (produce_chars): Don't modify charbuf. Adjusted for the change of
12879 get_translation.
98a326f7 12880 (produce_composition): Adjust for the new annotation sequence.
825d0875 12881 (handle_composition_annotation): Likewise.
98a326f7 12882 (consume_chars): Adjust for the change of get_translation.
825d0875 12883
ccbc4452
AR
128842009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12885
4ddf94bd 12886 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 12887
988a7ddb
KH
128882009-03-05 Kenichi Handa <handa@m17n.org>
12889
12890 * font.c (font_select_entity): New function.
12891 (font_find_for_lface): Use font_select_entity to select a font.
12892
12893 * fontset.c (fontset_find_font): If a font found without
a8a3728b 12894 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
12895 font with C restriction.
12896
98a326f7 128972009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 12898
be1bce46 12899 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 12900
10ea2b82
JR
129012009-03-04 Jason Rumney <jasonr@gnu.org>
12902
2c93b248 12903 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 12904 characters that have already been read. (Bug#2569)
2c93b248 12905
10ea2b82
JR
12906 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12907 Log an error message if check_image_size failed.
12908 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 12909 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 12910
71a0c011
EZ
129112009-03-02 Eli Zaretskii <eliz@gnu.org>
12912
12913 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12914 when decoding process output.
12915
2f63bba8
RS
129162009-03-01 Richard M Stallman <rms@gnu.org>
12917
12918 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12919
12920 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12921
0a9564cb
EZ
129222009-02-28 Eli Zaretskii <eliz@gnu.org>
12923
12924 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12925 (decode_coding_emacs_mule, decode_coding_iso_2022)
12926 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12927 (decode_coding_raw_text, decode_coding_charset)
12928 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12929 Honor inhibit-eol-conversion. (Bug #2186)
12930
449148b3
JR
129312009-02-28 Jason Rumney <jasonr@gnu.org>
12932
12933 * coding.c (detect_coding_charset): If not checking latin extra,
12934 fail on characters between 0x80 and 0xA0. (Bug#2354)
12935
a4aee864
EZ
129362009-02-28 Eli Zaretskii <eliz@gnu.org>
12937
12938 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 12939 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 12940
d88bee5a
GM
129412009-02-27 Glenn Morris <rgm@gnu.org>
12942
12943 * callint.c (Finteractive): Doc fix.
12944
a808f22d
KH
129452009-02-27 Kenichi Handa <handa@m17n.org>
12946
12947 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12948
caf8d60c
CY
129492009-02-27 Chong Yidong <cyd@stupidchicken.com>
12950
12951 * font.c (font_style_to_value): Set value for unknown symbols to
12952 100 instead of 255.
b61137ea
CY
12953 (weight_table, slant_table, width_table): Treat "unspecified" as
12954 the default value.
caf8d60c 12955
1a0de25c
JB
129562009-02-26 Juanma Barranquero <lekktu@gmail.com>
12957
12958 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12959
8fc45744
JB
129602009-02-25 Juanma Barranquero <lekktu@gmail.com>
12961
107bd7d1
JB
12962 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12963 error as soon as a recursive load is detected.
8fc45744 12964
f097e223
AR
129652009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12966
12967 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12968 before caching.
12969
8810a12f
KH
129702009-02-24 Kenichi Handa <handa@m17n.org>
12971
12972 * fontset.c (fontset_find_font): Fix the condition for checking
12973 unavailable font.
12974
2c7d1565
GM
129752009-02-24 Glenn Morris <rgm@gnu.org>
12976
12977 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12978 whitespace that confuses documentation.
12979
a20878b6
MB
129802009-02-23 Miles Bader <miles@gnu.org>
12981
12982 * process.c (Flist_system_processes, Fprocess_attributes)
12983 (syms_of_process): Rename `system-process-attributes' to
12984 `process-attributes'.
12985
b3b58c01
AS
129862009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12987
1b3b981b
AS
12988 * coding.h (struct coding_system): Make safe_charsets a pointer to
12989 unsigned char.
12990 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12991 being 255.
12992 (SAFE_CHARSET_P): Likewise.
12993 (setup_iso_safe_charsets): Properly setup safe_charsets.
12994 (Fdefine_coding_system_internal): Likewise.
12995 (setup_coding_system): Likewise. Remove unneeded casts.
12996 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
12997 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12998 Remove unneeded casts.
1b3b981b 12999
b3b58c01
AS
13000 * insdel.c (del_range_2): Don't modify gap contents when called
13001 from decode_coding_object. (Bug#1809)
13002
0b6f228c
CY
130032009-02-21 Chong Yidong <cyd@stupidchicken.com>
13004
13005 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
13006 Qfont_object.
13007 (Ftype_of): Recognize font objects.
13008
13009 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
13010
bba3e508
SM
13011 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
13012 Definitions moved to data.c.
0b6f228c 13013
52f8870b
AR
130142009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13015
13016 * nsterm.m (x_make_frame_invisible): Unset async_visible,
13017 async_iconified. Based on a patch by Christian Lynbech
13018 <christian.lynbech@tieto.com>.
13019 (EmacsView-windowDidMiniaturize:): Unset async_visible.
13020
7087d5e9
GM
130212009-02-20 Glenn Morris <rgm@gnu.org>
13022
13023 * syntax.c (Fskip_chars_forward): Fix doc typo.
13024
41d2ceef
CY
130252009-02-20 Chong Yidong <cyd@stupidchicken.com>
13026
13027 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
13028
1a3b7ca6
CY
130292009-02-19 Chong Yidong <cyd@stupidchicken.com>
13030
13031 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
13032
73cce38d
KH
130332009-02-19 Kenichi Handa <handa@m17n.org>
13034
13035 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 13036 Don't overflow coding->carryover. (Bug#2370)
73cce38d 13037
a51092ee
DN
130382009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
13039
13040 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
13041
c423ecca
KH
130422009-02-18 Kenichi Handa <handa@m17n.org>
13043
13044 * font.c (font_check_otf_features): Fix handling of `nil' element.
13045 (Ffont_spec): Describe :lang and :otf in the docstring.
13046
4c1958f4
AS
130472009-02-16 Andreas Schwab <schwab@suse.de>
13048
13049 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
13050 string.
13051
5704f39a
KH
130522009-02-16 Kenichi Handa <handa@m17n.org>
13053
13054 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 13055 (Bug#1723)
5704f39a 13056
8f0085aa
CY
130572009-02-14 Chong Yidong <cyd@stupidchicken.com>
13058
a057d86a 13059 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
13060
13061 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
13062 (handle_line_prefix): Suppress wrapping of wrap prefixes.
13063
aff01dd9
EZ
130642009-02-14 Eli Zaretskii <eliz@gnu.org>
13065
13066 * msdos.c (MAX_SCREEN_BUF): New macro.
13067 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13068 Encode the entire run of glyphs sharing the same face, instead of
13069 doing that one glyph at a time (fixes a bug with displaying
13070 double-size characters).
13071
ba301db3
AR
130722009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13073
13074 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13075
13076 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13077 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 13078 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
13079
13080 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 13081 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 13082
51d861de
SM
130832009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13084
ac146f82 13085 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
13086 invisible areas.
13087
7fed8996
JR
130882009-02-12 Jason Rumney <jasonr@gnu.org>
13089
631ea4fb
JR
13090 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13091 (add_font_entity_to_list): Call check_face_name even when family
13092 is unspecified.
13093
cb4a3e42
JR
13094 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13095 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 13096 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 13097
7fed8996 13098 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 13099 raster fonts. (Bug#2219)
7fed8996 13100
895416e3
KH
131012009-02-12 Kenichi Handa <handa@m17n.org>
13102
13103 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13104 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13105 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 13106 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13107 (find_automatic_composition): While looking forward and backward,
13108 check static composition. Fix where to stop looking forward.
13109 (composition_adjust_point): Fix checking of static composition.
13110 (Fcomposition_get_gstring): Pay attention to
1dacf998 13111 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13112
13113 * lisp.h (fast_looking_at): Extern it.
13114
13115 * search.c (fast_looking_at): New function.
13116
51d861de 13117 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
13118 <struct glyph>.u.cmp.to.
13119 (append_composite_glyph): Likewise.
13120
51d861de 13121 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
13122 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13123 composition.
51d861de 13124 (append_composite_glyph): Adjust for the change of
895416e3
KH
13125 <strcut glyph>.u.cmp.to.
13126
8510724d
JB
131272009-02-11 Juanma Barranquero <lekktu@gmail.com>
13128
13129 * casetab.c (init_casetab_once):
13130 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13131 * font.c (font_update_lface):
13132 * fontset.c (Fnew_fontset):
13133 * ftfont.c (ftfont_drive_otf):
13134 * xfont.c (xfont_open):
13135 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13136
294fa707
SM
131372009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13138
13139 * fileio.c (Fwrite_region): !NILP -> CONSP.
13140
b5bfebec
AS
131412009-02-10 Andreas Schwab <schwab@suse.de>
13142
13143 * process.c (send_process): Properly relocate pointer into data
adab88bd 13144 when using encoded data. (Bug#2272)
b5bfebec 13145
cb84a2be
KH
131462009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13147
13148 * coding.c (detect_coding_charset): Fix previous change.
13149
89e09428
JR
131502009-02-08 Jason Rumney <jasonr@gnu.org>
13151
13152 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 13153 disappeared while hourglass was displayed. (Bug #2193)
89e09428 13154
4470a277
AS
131552009-02-07 Andreas Schwab <schwab@suse.de>
13156
13157 * unexelf.c (unexec): Fix error message.
13158
3175b12a
AR
131592009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13160
13161 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 13162 when modal window is active. (Bug #2152)
3175b12a
AR
13163 (applicationShouldTerminate:): Remove now-unneeded while loop
13164 around NSRunAlertPanel.
13165
13166 * nsmenu.m (popupSession): New file-global variable.
13167 (pop_down_menu): End the popupSession before closing dialog.
13168 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13169 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13170 don't query NSApp for events (just sleep instead).
13171
8434d0b8
EZ
131722009-02-07 Eli Zaretskii <eliz@gnu.org>
13173
51d861de
SM
13174 * coding.c (syms_of_coding) <translation-table-for-input>:
13175 Modify doc string to discourage use for character code unification.
8434d0b8 13176
aa82edfd
CY
131772009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13178
13179 * atimer.c (run_timers): Update pending_atimers.
13180
2d283c7c
CY
131812009-02-06 Chong Yidong <cyd@stupidchicken.com>
13182
eb306cab
CY
13183 * image.c (svg_load_image): Fix last change.
13184
2d283c7c
CY
13185 * xfns.c (Fx_create_frame): Signal an error if no font is
13186 found (Bug#2147).
13187
4d8e170e
JB
131882009-02-05 Juanma Barranquero <lekktu@gmail.com>
13189
13190 * character.c (syms_of_character) <script-representative-chars>:
13191 Fix typo in docstring.
13192
c96169a0
AR
131932009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13194
13195 * nsmenu.m (pop_down_menu): New function.
13196 (ns_popup_dialog): Call it on unwind.
13197 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13198 call timer_check() (Bug#2154).
13199 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13200 handling_signal is set.
13201 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13202
31fd7c5c 13203 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
13204
13205 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13206
13207 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13208
51d861de
SM
13209 * keyboard.c (poll_for_input_1, handle_async_input):
13210 Set handling_signal under HAVE_NS.
c96169a0 13211
aacd8ba1
GM
132122009-02-04 Glenn Morris <rgm@gnu.org>
13213
13214 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13215
4cb75c4b
KH
132162009-02-04 Kenichi Handa <handa@m17n.org>
13217
13218 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13219
13220 * charset.c (Fchar_charset): New optional arg restriction.
13221
13222 * coding.h (coding_system_charset_list): Extern it.
13223
13224 * coding.c (coding_system_charset_list): New function.
13225
13226 * composite.c: Include coding.h and termhooks.h.
13227 (composition_gstring_p): Fix for the terminal case.
13228 (composition_gstring_width): Likewise.
13229 (fill_gstring_body): Likewise.
13230 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13231 the frame.
13232 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13233 is within a composition.
867d4bb3 13234 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
13235
13236 * term.c (encode_terminal_code): Fix handling of composition.
13237 (produce_composite_glyph): For static composition, get pixel_width
13238 from struct composition.
13239
826ba17e
AS
132402009-02-02 Andreas Schwab <schwab@suse.de>
13241
13242 * unexelf.c (unexec): Handle unaligned bss offset.
13243
8ad093db
AR
132442009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13245
13246 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13247 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 13248
8ad093db
AR
13249 * keyboard.c (handle_interrupt): Don't call
13250 quit_throw_to_read_char() under NS.
d0a76a6e 13251
8ad093db
AR
13252 * blockinput.h: Remove NS-specific code.
13253
4d18a7a2
DN
132542009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13255
db878925
DN
13256 * dispnew.c (window_change_signal): Don't try to get the size of a
13257 suspended tty frame.
13258 * term.c (Fresume_tty): Resize if the size has changed while the
13259 tty was suspended.
13260
4d18a7a2
DN
13261 * alloc.c (mark_stack): Properly conditionalize previous change.
13262
8984df7c
JB
132632009-01-30 Juanma Barranquero <lekktu@gmail.com>
13264
13265 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13266 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13267 Remove; this code is not used on Windows.
13268
75f4f1ac
EZ
132692009-01-30 Eli Zaretskii <eliz@gnu.org>
13270
13271 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13272 EOLs that also has stray ^M characters.
13273
07a1e794
JB
132742009-01-30 Juanma Barranquero <lekktu@gmail.com>
13275
13276 * atimer.c (run_timers, alarm_signal_handler):
13277 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13278 * w32inevt.c (w32_console_read_socket):
13279 * w32term.c (w32_read_socket):
13280 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13281
a8b11cc9
CY
132822009-01-30 Chong Yidong <cyd@stupidchicken.com>
13283
13284 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13285 Initialize it as a relative filename pattern.
13286 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13287 (Fcall_process_region): Simplify temp file creation using
13288 temporary-file-directory.
13289
c279587b
EZ
132902009-01-29 Eli Zaretskii <eliz@gnu.org>
13291
13292 * msdos.c: Rename pending_signals to msdos_pending_signals.
13293 (sig_suspender, sigprocmask): Adjust.
13294
a8fe3242
CY
132952009-01-29 Chong Yidong <cyd@stupidchicken.com>
13296
13297 * keyboard.c (pending_signals): New var.
13298 (poll_for_input, input_available_signal, init_keyboard): Set it.
13299 (process_pending_signals): New function.
13300
13301 * lisp.h (QUIT): Check pending_signals instead of
13302 interrupt_input_pending. Use process_pending_signals.
13303
51d861de 13304 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 13305
51d861de 13306 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
13307
13308 * sysdep.c (emacs_write): Use process_pending_signals.
13309
13310 * xterm.c (XTread_socket): Update pending_signals.
13311
13312 * w32term.c (w32_read_socket): Update pending_signals.
13313
13314 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13315
6570a1c4
KH
133162009-01-29 Kenichi Handa <handa@m17n.org>
13317
13318 * xftfont.c (xftfont_has_char): New function.
13319 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13320
d72a4afa
AR
133212009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13322
13323 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13324 under GNUstep.
13325 (ns_query_color): New declaration.
13326
13327 * nsterm.m (ns_confirm_quit): New variable.
13328 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13329 (EmacsApp-applicationShouldTerminate:): Use it.
13330 (EmacsPrefsController): Let user set it.
13331 (ns_query_color): New function.
13332 (ns_defined_color): Use it.
13333 (ns_initialize): Drop.
13334 (ns_term_init): Add two lines from ns_initialize(), and set
13335 input_interrupt_mode to nil.
13336
13337 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 13338 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 13339
9fe78804
KH
133402009-01-28 Kenichi Handa <handa@m17n.org>
13341
13342 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
13343 (fontset_get_font_group): Remember that no font-group is specified
13344 for C.
9fe78804 13345
fa57de36
CY
133462009-01-27 Chong Yidong <cyd@stupidchicken.com>
13347
930600e9
CY
13348 * fns.c (concat): Check for string overflow (bug#1787).
13349
fa57de36
CY
13350 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13351 Quadruple undo limits (bug#1501).
13352
7179ce7b
KH
133532009-01-27 Kenichi Handa <handa@m17n.org>
13354
13355 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13356 directly use GT_Get_Char_index.
13357
13358 * xftfont.c (struct xftfont_info): New member `index'.
13359
13360 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 13361 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 13362
5be8fcc0
CY
133632009-01-26 Kenichi Handa <handa@m17n.org>
13364
13365 * fontset.c (fontset_find_font): Fix handling of non-cons return
13366 value of fontset_get_font_group.
13367 (fontset_font): Revert last change.
13368
19ae3e61
JR
133692009-01-26 Jason Rumney <jasonr@gnu.org>
13370
13371 * w32font.c (w32font_list_internal): Return quickly if registry is
13372 unknown. Simplify final return.
13373 (add_font_entity_to_list): Break complex logic down into more
13374 manageable chunks. Move unknown registry check to
13375 w32font_list_internal.
13376
8612b71a
AR
133772009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13378
13379 Changes to remove Feval calls from GUI under NS.
13380
d8038940
JB
13381 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13382 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
13383 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13384
13385 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13386 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13387 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13388 instead of NON_ASCII_KEYSTROKE_EVENT.
13389 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13390 (EmacsApp-applicationShouldTerminate:): Query user.
13391 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13392 instead of Feval.
13393
13394 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13395
13396 * keyboard.c (kbd_buffer_get_event): Check for it.
13397 (keys_of_keyboard): Define lispy keys for
13398 ns-put/unput-working-text.
13399
13400 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13401 versions.
13402 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13403
6288ae55
CY
134042009-01-25 Chong Yidong <cyd@stupidchicken.com>
13405
13406 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 13407 setting current_buffer directly. (Bug#2044)
6288ae55 13408
289e7f8f
CY
134092009-01-24 Chong Yidong <cyd@stupidchicken.com>
13410
5ce87308 13411 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 13412 any work. (Bug#1952, bug#1990).
5ce87308 13413
64cc3cf6 13414 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 13415
b3243e6f
AR
134162009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13417
13418 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
13419 (ns_no_defaults): New declaration.
13420 (main): Use it.
e0d2e69a 13421
d900b2af 13422 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 13423
d900b2af 13424 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 13425
d900b2af
AR
13426 * nsterm.m (ns_no_defaults): New variable.
13427 (ns_initialize): Don't read defaults when ns_no_defaults.
13428 (EmacsView-readSelectionFromPasteboard:)
13429 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 13430 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
13431 (ns_dumpglyphs_stretch): New function.
13432 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 13433 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 13434
e0d2e69a
AR
13435 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13436
3ac71f5d
CY
134372009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13438
13439 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13440 call for Sparc64.
13441
3fe53a83
AR
134422009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13443
13444 * nsfns.m:
13445 * nsgui.h:
13446 * nsmenu.m:
13447 * nsselect.m:
13448 * nsterm.h:
13449 * nsterm.m: Remove '23' comments that indicated code added during
13450 update from emacs-20 -> emacs-23.
13451
10f87c6f 134522009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
13453
13454 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 13455 ns_alternate_modifier. (Bug#1217)
a3b53a85 13456
c7cef62d
AR
13457 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13458 Display all shortcuts, including those w/o super modifier.
13459
575fb8bd
AR
13460 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13461
918b848b
CY
134622009-01-22 Chong Yidong <cyd@stupidchicken.com>
13463
13464 * fileio.c (Vwrite_region_post_annotation_function)
13465 (Vwrite_region_annotation_buffers): New vars.
13466 (build_annotations_unwind): Just reset
13467 Vwrite_region_annotation_buffers.
13468 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13469 Call write-region-post-annotation-function.
13470 (build_annotations): Add to Vwrite_region_annotation_buffers if
13471 buffer changes.
13472
a39e2539
AR
134732009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13474
13475 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13476 Tiger.
51d861de
SM
13477 * nsfns.m (ns_do_applescript):
13478 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 13479
35ed44db
AR
134802009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13481
13482 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13483
cbe0b5bf
AR
134842009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13485
13486 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 13487
6049d3a0
AR
13488 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13489
13490 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
13491 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13492 handle Ctrl-tab. (Bug#1841)
13493 (ns_get_color): Use unsigned long long for scanned hex string value.
13494 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 13495 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 13496 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 13497 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 13498 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 13499 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 13500 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 13501
d3810c21 13502 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 13503 DPI. (Bug#1316)
d3810c21
AR
13504 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13505 values in onTiger section.
4c7077c3 13506
e301e634
CY
135072009-01-19 Chong Yidong <cyd@stupidchicken.com>
13508
7f82490b
CY
13509 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13510 Check return value of font_spec_from_name.
64cc3cf6 13511 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
13512
13513 * font.c (font_spec_from_name): Return Qnil if font name could not
13514 be parsed.
13515 (font_parse_name): Treat a `?' character as part of an XLFD.
13516
e301e634
CY
13517 * fns.c (Fsubstring): Doc fix.
13518
1c0db158
KH
135192009-01-19 Kenichi Handa <handa@m17n.org>
13520
51d861de 13521 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
13522 (ftfont_list): Likewise.
13523
acf20901
JB
135242009-01-18 Juanma Barranquero <lekktu@gmail.com>
13525
fff4e459
JB
13526 * dbusbind.c (Fdbus_register_signal):
13527 * process.c (conv_sockaddr_to_lisp):
13528 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13529
acf20901
JB
13530 * callproc.c (Fgetenv_internal): Doc fix.
13531
e7abcdfb
CY
135322009-01-16 Chong Yidong <cyd@stupidchicken.com>
13533
13534 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13535 it is not even used.
13536
b60861e6
GM
135372009-01-16 Glenn Morris <rgm@gnu.org>
13538
13539 * font.c (Ffont_variation_glyphs): Silence compiler.
13540
8db52afe
JB
135412009-01-15 Juanma Barranquero <lekktu@gmail.com>
13542
13543 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13544 Reported by David Robinow <drobinow@gmail.com>.
13545
4cddb209
KH
135462009-01-15 Kenichi Handa <handa@m17n.org>
13547
51d861de 13548 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 13549
f247f67b
JR
135502009-01-14 Jason Rumney <jasonr@gnu.org>
13551
13552 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 13553 never a fontset. (Bug#1562)
f247f67b 13554
f56a4450
KH
135552009-01-14 Kenichi Handa <handa@m17n.org>
13556
13557 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 13558 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 13559
4e99855e
CY
135602009-01-13 Chong Yidong <cyd@stupidchicken.com>
13561
13562 * font.c (font_clear_prop): If clearing the family, clear the font
13563 width index too.
13564
fff4e459 13565 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 13566
24f01470
JB
135672009-01-12 Juanma Barranquero <lekktu@gmail.com>
13568
13569 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13570 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13571 functions, use sizeof.
13572
a41240a3
MR
135732009-01-12 Martin Rudalics <rudalics@gmx.at>
13574
13575 * keyboard.c (read_char): Fix case where last_nonmenu_event
13576 returned a bad value with submenus. (Bug#447)
13577
944636b8
CY
135782009-01-12 Chong Yidong <cyd@stupidchicken.com>
13579
13580 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13581 family, clear the font width index too.
13582
0dad7c6f
JR
135832009-01-11 Jason Rumney <jasonr@gnu.org>
13584
13585 * keyboard.c (cmd_error_internal): Exit when errors occur before
13586 frame creation and not in daemon mode. (Bug#1836)
13587
7c2363af
CY
135882009-01-10 Chong Yidong <cyd@stupidchicken.com>
13589
13590 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13591 of a display vector, backtrack.
13592 (try_window_reusing_current_matrix): Check glyph type before
13593 referencing charpos member.
13594
97b1b294
EZ
135952009-01-10 Eli Zaretskii <eliz@gnu.org>
13596
13597 Fix Bug #876:
13598
13599 * coding.c (inhibit_null_byte_detection): New variable.
13600 (detect_coding, detect_coding_system): Don't pay attention to null
13601 bytes if inhibit_null_byte_detection is non-zero.
51d861de 13602 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
13603 <inhibit-iso-escape-detection>: Doc fix.
13604
4624b6e3
JR
136052009-01-09 Jason Rumney <jasonr@gnu.org>
13606
13607 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 13608 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
13609 Only report Unicode Plane 2 fonts as unicode-sip.
13610
323b840c
CY
136112009-01-09 Chong Yidong <cyd@stupidchicken.com>
13612
51d861de
SM
13613 * xfaces.c (Fx_font_family_list): Delete function.
13614 Move compatibility version to faces.el.
323b840c 13615
51d861de 13616 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 13617
eba7400d
MR
136182009-01-09 Martin Rudalics <rudalics@gmx.at>
13619
13620 * frame.c (x_set_frame_parameters): Remember requested value for
13621 fullscreen before it's reset by the parameter handler.
13622
4b09796d
GM
136232009-01-09 Glenn Morris <rgm@gnu.org>
13624
13625 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 13626 (last_command_event): ... and update all users.
4b09796d
GM
13627 (last_input_char): For clarity, rename to...
13628 (last_input_event): ... and update all users.
13629 (last-command-char, last-input-char): Move to subr.el as aliases.
13630 * cmds.c, commands.h: Update for last_command_char rename.
13631
14ccea62
CY
136322009-01-08 Chong Yidong <cyd@stupidchicken.com>
13633
51d861de 13634 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 13635
5f004711
JR
136362009-01-08 Jason Rumney <jasonr@gnu.org>
13637
13638 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13639 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13640 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13641 Don't declare.
fff4e459 13642 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
13643 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13644
b71f6f73
KH
136452009-01-07 Kenichi Handa <handa@m17n.org>
13646
50b06221 13647 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 13648 remember the coding system used for decoding in
50b06221
KH
13649 coding_system (Bug#1039).
13650
b71f6f73 13651 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 13652 breaking the loop. (Bug#870)
b71f6f73
KH
13653 (decode_coding_utf_16, decode_coding_emacs_mule)
13654 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13655 (decode_coding_charset): Likewise.
13656
56f668f7
MR
136572009-01-05 Martin Rudalics <rudalics@gmx.at>
13658
13659 * frame.c (x_set_frame_parameters): Make sure height (width) get
13660 applied when fullwidth (fullheight) is set. (Bug#1522)
13661
5da9424d
JB
136622009-01-04 Juanma Barranquero <lekktu@gmail.com>
13663
13664 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13665 (utc_base): Declare as ULONGLONG, not long double.
13666 (convert_time_raw): Delete.
13667 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13668 (initialize_utc_base): New function.
13669 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13670 (convert_from_time_t): Use initialize_utc_base; compute result with
13671 64-bit arithmetic.
13672 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13673
c4605e09
EZ
136742009-01-03 Eli Zaretskii <eliz@gnu.org>
13675
9acef61c 13676 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
13677 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13678 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13679 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13680 [!subprocesses]: Define.
13681 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13682 (Flist_system_processes, Fsystem_process_attributes)
13683 [!subprocesses]: Call list_system_processes and
13684 system_process_attributes instead of returning Qnil.
13685
9acef61c
JB
13686 * dosfns.c (system_process_attributes, list_system_processes):
13687 New functions.
c4605e09
EZ
13688
13689 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13690
13691 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13692 Don't use the default (no-op) implementation.
13693
8b7d0a16
JR
136942009-01-03 Jason Rumney <jasonr@gnu.org>
13695
a6d46bc1
JR
13696 * keyboard.c (parse_modifiers_uncached): Wheel events are
13697 clicks (bug#687).
13698
8b7d0a16
JR
13699 * w32term.c (x_query_colors, x_query_color): New functions.
13700
13701 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13702 (svg_load_image): Cast returned pointers from dynamically loaded
13703 functions. Eliminate W32 specific code.
13704
bfe11752
DN
137052009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13706
89e2438a
DN
13707 * nsfns.m (x_set_foreground_color, x_set_background_color)
13708 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13709 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13710 x_ prefix instead of ns_. Update references.
13711 (syms_of_nsfns): Add a FIXME comment.
13712
13713 * nsterm.m (x_set_cursor_type): New prototype.
13714 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13715
bfe11752
DN
13716 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13717 for Solaris instead of incorrectly providing Qutime and Qcutime.
13718
031da700
EZ
137192009-01-02 Eli Zaretskii <eliz@gnu.org>
13720
13721 * w32.c (process_times): Compute sum of utime and stime.
13722 (system_process_attributes): Add Qtime to the alist.
13723
13724 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13725 and add them to the alist.
13726
13727 * process.c (top level) <Qtime, Qctime>: New variables.
13728 (syms_of_process): staticpro them.
13729 (Fsystem_process_attributes): Add their documentation to the doc
13730 string.
13731
13732 * process.h: Declare Qtime and Qctime.
13733
df23bf08
JR
137342009-01-02 Jason Rumney <jasonr@gnu.org>
13735
9acef61c 13736 * image.c (Qgobject): New symbol.
df23bf08
JR
13737 (syms_of_image): Initialize it.
13738 (init_svg_functions): Load some functions from gobject library.
13739
5bbdf7aa
DN
137402009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13741
13742 * frame.c (make_terminal_frame): Remove redundant code and useless
13743 block.
13744
63136da6
AS
137452009-01-01 Andreas Schwab <schwab@suse.de>
13746
13747 * process.c (conv_sockaddr_to_lisp): Add workaround for
13748 getsockname bug on BSD.
13749
9ef69046
CY
137502009-01-01 Chong Yidong <cyd@stupidchicken.com>
13751
d6fafbe0
CY
13752 * xfns.c (x_create_tip_frame): Set border width of the X window.
13753
51d861de 13754 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 13755
f9c34147
JR
137562009-01-01 Jason Rumney <jasonr@gnu.org>
13757
9acef61c 13758 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
13759 Don't block input, as per earlier xterm.c changes.
13760
f5497e45
AR
137612008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13762
13763 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13764 (ns_appkit_version_int): New function.
13765 (x-server-version): Use ns_appkit_version_int and follow 21+
13766 convention of returning 3 integers.
13767
c19cab20
KH
137682008-12-30 Kenichi Handa <handa@m17n.org>
13769
13770 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13771 (CHAR_SURROGATE_PAIR_P): New macro.
13772
13773 * font.h (struct font_driver): New member get_variation_glyphs.
13774
9acef61c 13775 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
13776 (Ffont_variation_glyphs): New function.
13777 (syms_of_font): Defsubr it.
13778
13779 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13780 ftfont_variation_glyphs.
13781 (setup_otf_gstring): New function.
13782 (ftfont_drive_otf): Use it.
13783 (ftfont_shape_by_flt): Handle variation selector.
13784 (ftfont_variation_glyphs): New function.
13785
28cd591f
MR
137862008-12-30 Martin Rudalics <rudalics@gmx.at>
13787
13788 * frame.c (Vemacs_iconified): Remove.
13789
7f714baf
JR
137902008-12-30 Jason Rumney <jasonr@gnu.org>
13791
13792 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 13793 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 13794
9d2d22ab
CY
137952008-12-30 Chong Yidong <cyd@stupidchicken.com>
13796
13797 * indent.c (Fvertical_motion): Don't advance iterator if we have
13798 reseated to the desired position.
13799
13800 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13801 checking for pos match.
13802
545312c2
KH
138032008-12-30 Kenichi Handa <handa@m17n.org>
13804
1ede3eb6
KH
13805 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13806 just get the low 8-bit of the code.
13807
545312c2
KH
13808 * font.c (font_intern_prop): Validate str as multibyte.
13809
bd7bbf29
DN
138102008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13811
31e0750e
DN
13812 * dispextern.h (struct face): Move lface and hash from the middle
13813 of bitfields.
13814
bd7bbf29
DN
13815 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13816
b5672e7c
DN
138172008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13818
13819 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13820 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13821 instead of intervals.h.
13822
d704470f
AS
138232008-12-26 Andreas Schwab <schwab@suse.de>
13824
13825 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13826 cons.
13827
54b33868
MR
138282008-12-26 Martin Rudalics <rudalics@gmx.at>
13829
13830 * textprop.c (Qminibuffer_prompt): New variable.
13831 (syms_of_textprop): Initialize it.
13832 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13833 in minibuffer-prompt face. (Bug#1662)
13834
40b615d6
JR
138352008-12-25 Jason Rumney <jasonr@gnu.org>
13836
13837 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13838
baae5c2d
JR
138392008-12-24 Jason Rumney <jasonr@gnu.org>
13840
13841 * ralloc.c (r_alloc_reset_variable): New function.
13842
13843 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 13844 record of what points where. (Bug#716)
baae5c2d 13845
a9051c88
DN
138462008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13847
13848 * minibuf.c (read_minibuf): Follow the non-interactive case when
13849 running as a daemon, before detaching.
13850
8b146312
AS
138512008-12-22 Andreas Schwab <schwab@suse.de>
13852
13853 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13854 * gtkutil.c (free_widget_value): Use xfree instead of free.
13855
56f2de10
MR
138562008-12-22 Martin Rudalics <rudalics@gmx.at>
13857
13858 * frame.c (delete_frame): New function derived from
13859 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13860 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13861 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13862 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13863 * frame.h: Extern delete_frame.
13864 * window.c (window_loop):
13865 * terminal.c (delete_terminal):
13866 * xterm.c (x_connection_closed):
13867 * xfns.c (Fx_hide_tip):
9acef61c 13868 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 13869
1fc200d6
JR
138702008-12-21 Jason Rumney <jasonr@gnu.org>
13871
13872 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13873 when character maps to .notdef character.
13874
5e252df2
SM
138752008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13876
13877 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13878
99b72cc4
JR
138792008-12-20 Jason Rumney <jasonr@gnu.org>
13880
13881 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 13882 a graphical frame on Windows. (Bug#1325)
99b72cc4 13883
acc49a52
JD
138842008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13885
13886 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13887
6ea15123
CY
138882008-12-20 Chong Yidong <cyd@stupidchicken.com>
13889
13890 * minibuf.c (Fread_buffer): Doc fix.
13891
b2dab6c8
JR
138922008-12-20 Jason Rumney <jasonr@gnu.org>
13893
54ea0c87 13894 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 13895 server name in UNC paths. (Bug#719)
54ea0c87 13896
b2dab6c8 13897 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 13898 charbuf. (Bug#1035)
b2dab6c8 13899
6d1921be
DN
139002008-12-19 Daniel Engeler <engeler@gmail.com>
13901
13902 * sysdep.c (serial_configure): Fix typo.
13903
53934c98
DN
139042008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13905
13906 * sysdep.c: Include alloca.h.
f4f634e8
DN
13907 (system_process_attributes): Add implementation for Solaris.
13908
13909 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 13910
06e111a6
DN
139112008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13912
13913 Reorganize implementation of Flist_system_processes and
13914 Fsystem_process_attributes. No functional changes.
13915 * process.c: Don't #include pwd.h, grp.h and limits.h.
13916 (Flist_system_processes): Just call list_system_processes.
13917 (Fsystem_process_attributes): Just call system_process_attributes.
13918 (procfs_list_system_processes, time_from_jiffies)
13919 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13920 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13921
13922 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13923 (list_system_processes): Rename from
13924 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13925 Provide a do nothing implementation.
13926 (system_process_attributes): Rename from
13927 procfs_list_system_processes.
13928 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 13929 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
13930
13931 * w32.c (list_system_processes): Rename from
13932 w32_list_system_processes.
13933 (system_process_attributes): Rename from
13934 w32_system_process_attributes.
13935
13936 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13937
13938 * process.h (w32_list_system_processes)
13939 (w32_system_process_attributes): Remove.
362654a6
JB
13940 (list_system_processes, system_process_attributes):
13941 New prototypes.
06e111a6 13942
6a705b23
KH
139432008-12-19 Kenichi Handa <handa@m17n.org>
13944
13945 * xfont.c (xfont_decode_coding_xlfd): New function.
13946 (xfont_encode_coding_xlfd): New function.
13947 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13948 (xfont_list): Decode and encode XLFD by iso-8859-1.
13949 (xfont_match): Likewise.
13950 (xfont_list_family): Likewise.
13951 (xfont_open): Likewise.
13952
d66c0241 13953 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
13954 names are utf-8.
13955
d66c0241 13956 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
13957 names are utf-8.
13958
5a130941
JD
139592008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13960
13961 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13962 changed.
bfd20325
JD
13963 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13964 clicked on a detached tool bar button.
5a130941 13965
fd95644b
DN
139662008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13967
13968 * emacs.c (main): Print and error and exit when no data is read
13969 from the pipe.
13970
e6eee6ae
JR
139712008-12-17 Jason Rumney <jasonr@gnu.org>
13972
13973 * w32font.c (w32font_has_char): Always return -1.
13974
a35dd56b
KH
139752008-12-16 Kenichi Handa <handa@m17n.org>
13976
13977 * font.c (font_open_entity): Fix previous change.
13978
0e3635c2
DN
139792008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13980
13981 * process.c: Include <limits.h>.
13982
d4835507 139832008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
13984
13985 * font.c (font_update_drivers): Fix mistake in reconstructing the
13986 driver list.
13987
139882008-12-16 Chong Yidong <cyd@stupidchicken.com>
13989
13990 * font.c (font_clear_cache): Fix format of font cache data.
13991
e2cbc401
CY
139922008-12-15 Chong Yidong <cyd@stupidchicken.com>
13993
13994 * xftfont.c (xftfont_open): Free Xft font pattern if
13995 XftFontOpenPattern fails.
13996
13997 * xterm.c (x_free_frame_resources): Remove extraneous call to
13998 free_frame_faces.
13999
b131d535
CY
140002008-12-13 Chong Yidong <cyd@stupidchicken.com>
14001
14002 * xterm.c (x_delete_display): Move xim_close_dpy call to
14003 x_delete_terminal.
14004 (x_delete_terminal): Call xim_close_dpy.
14005
e6df5336
JR
140062008-12-13 Jason Rumney <jasonr@gnu.org>
14007
14008 * w32font.c (intern_font_name): New function.
14009 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
14010 (w32font_open_internal, Fx_select_font): Decode font name.
14011 (fill_in_logfont, list_all_matching_fonts): Encode font name.
14012
14013 * w32font.h (intern_font_name): Declare new function.
14014
14015 * w32uniscribe.c (add_opentype_font_name_to_list):
14016 Use intern_font_name.
14017
20d68145
CY
140182008-12-13 Chong Yidong <cyd@stupidchicken.com>
14019
9f2554de
CY
14020 * frame.c (Fdelete_frame): Call free_font_driver_list.
14021
3d9bec9a
CY
14022 * font.c (free_font_driver_list): Implement missing function.
14023
20d68145
CY
14024 * w32term.c (w32_term_init): Don't initialize the image cache
14025 here; it will be done in init_frame_faces.
14026
14027 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
14028 (struct x_display_info): Remove unused member null_pixel.
14029 New member xim_callback_data.
20d68145
CY
14030
14031 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
14032 (xim_initialize): Save pointer to callback function data.
14033 (xim_close_dpy): Free callback function data. Call XCloseIM,
14034 reverting 2008-11-04 change by David Smith.
14035 (x_term_init): Don't initialize the image cache here; it will be
14036 done in init_frame_faces. Remove ancient "null_pixel" cruft.
14037 (x_delete_display): Free x_dnd_atoms member.
14038
96f9306b
KH
140392008-12-13 Kenichi Handa <handa@m17n.org>
14040
ef1b0ba7 14041 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 14042 Argument type changed. Handle a font-spec too.
96f9306b 14043 (font_score): Check Vface_font_rescale_alist.
6dec9044 14044 (font_open_entity): Likewise. (Bug#1547)
96f9306b 14045
ef1b0ba7 14046 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 14047
8d5b4964
CY
140482008-12-13 Chong Yidong <cyd@stupidchicken.com>
14049
14050 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
14051
e6df5336
JR
140522008-12-12 Jason Rumney <jasonr@gnu.org>
14053
bba3e508
SM
14054 * w32fns.c (x_display_info_for_name, Fx_open_connection):
14055 Set Vwindow_system_version to the real w32 major version.
e6df5336 14056
97c6058a
DN
140572008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
14058
14059 * term.c (init_tty): Move setting the terminal name before the
14060 potential user: maybe_fatal.
14061
ec4e88d7
CY
140622008-12-11 Chong Yidong <cyd@stupidchicken.com>
14063
ef1b0ba7 14064 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 14065 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 14066
b4233ec9
JR
140672008-12-11 Jason Rumney <jasonr@gnu.org>
14068
8ec71e23 14069 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 14070 SYMBOL_CHARSET. (Bug#547)
8ec71e23 14071
b4233ec9 14072 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 14073 size for surrogates. (Bug#1096, bug#872)
b4233ec9 14074
011a0143
JB
140752008-12-11 Juanma Barranquero <lekktu@gmail.com>
14076
14077 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14078
3c309f34
JB
140792008-12-11 Juanma Barranquero <lekktu@gmail.com>
14080
14081 * process.c (Fsystem_process_attributes, syms_of_process):
14082 Fix typo in name of Ssystem_process_attributes.
14083 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14084
fedc6ab5
JB
140852008-12-11 Juanma Barranquero <lekktu@gmail.com>
14086
14087 * syntax.c (Fmodify_syntax_entry): Doc fix.
14088
ba3de0e8
JB
140892008-12-10 Juanma Barranquero <lekktu@gmail.com>
14090
14091 * font.c (Ffont_spec): Move usage to end of docstring.
14092
174f1c74
JR
140932008-12-10 Jason Rumney <jasonr@gnu.org>
14094
14095 * w32font.c (Qcham): New symbol.
14096 (font_supported_scripts): Add cham, and comments for other new
14097 scripts in bitfield from OpenType spec.
9d32f818
JR
14098 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14099 contain characters beyond the bmp.
174f1c74 14100
7b649478
KH
141012008-12-10 Kenichi Handa <handa@m17n.org>
14102
14103 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 14104 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
14105 Qunicode_sip.
14106
2133e2d1
JB
141072008-12-10 Juanma Barranquero <lekktu@gmail.com>
14108
14109 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14110 (Fcoding_system_put): Use QCdefault_char.
14111 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14112
9af886ee
CY
141132008-12-09 Chong Yidong <cyd@stupidchicken.com>
14114
74d819eb
CY
14115 * xftfont.c (syms_of_xftfont): Fix typo.
14116
4ccfa1c0 14117 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 14118
7c19d3ae
DN
141192008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14120
14121 * emacs.c (main): Close daemon_pipe on exec.
14122
567826bb
CY
141232008-12-08 Chong Yidong <cyd@stupidchicken.com>
14124
14125 * termchar.h (struct tty): New members termcap_term_buffer and
14126 termcap_strings_buffer.
14127
14128 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 14129 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
14130 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14131 All callers changed.
14132 (init_tty): Store termcap data and string buffers in new struct
14133 tty members termcap_term_buffer and termcap_strings_buffer.
14134 (delete_tty): Free them.
4ccfa1c0 14135 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 14136
aa96c42b
SZ
141372008-12-07 Seiji Zenitani <zenitani@mac.com>
14138
14139 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 14140 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 14141
b7e1d896
CY
141422008-12-06 Chong Yidong <cyd@stupidchicken.com>
14143
14144 * coding.c (make_conversion_work_buffer): Disable buffer
14145 modification hooks in the work buffer.
14146
b5ec91a5
EZ
141472008-12-05 Eli Zaretskii <eliz@gnu.org>
14148
14149 * process.c (procfs_system_process_attributes): If `nread' has a
14150 negative value, assign zero to it.
14151
a5d2a52b
CY
141522008-12-05 Chong Yidong <cyd@stupidchicken.com>
14153
68c5540b 14154 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 14155
7bf1bb21
KH
141562008-12-05 Kenichi Handa <handa@m17n.org>
14157
14158 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14159 second character is a combining character.
14160
2fdc7d00
EZ
141612008-12-05 Eli Zaretskii <eliz@gnu.org>
14162
14163 * process.c (procfs_system_process_attributes): Don't use cmd,
14164 cmdsize, and q without initializing them first.
14165
bf6bfba8
JR
141662008-12-04 Jason Rumney <jasonr@gnu.org>
14167
14168 * w32font.c (w32font_draw): Initialize orig_clip before getting
14169 it, and delete it when finished.
14170
a3b1a468
DN
141712008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14172
14173 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14174 case when running as a daemon before detaching.
14175
8b8be8eb
JB
141762008-12-03 Juanma Barranquero <lekktu@gmail.com>
14177
805f2638 14178 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 14179
b1bde622
KH
141802008-12-03 Kenichi Handa <handa@m17n.org>
14181
e500c47d
KH
14182 * font.c (font_at): Set `multibyte' at first.
14183
ca516334
KH
14184 * coding.c (decode_coding_charset): Check type of an element of
14185 vector VALIDS.
7bf1bb21 14186 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 14187
4ccfa1c0 14188 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
14189 (font_for_char): Likewise.
14190
1e5ecd37
CY
141912008-12-03 Chong Yidong <cyd@stupidchicken.com>
14192
d5b01609 14193 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
14194 (font_update_lface): Handle fonts with corrupted size specs,
14195 i.e. non-int and non-float.
d5b01609 14196
11e3a6e4 14197 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 14198 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 14199 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 14200
ab06788b
CY
14201 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14202
1e5ecd37 14203 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 14204 underline_minimum_offset for underline position.
1e5ecd37 14205
63c125ab
DN
142062008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14207
14208 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14209
14210 * character.c (c_string_width): Specify the type for LEN.
14211
3a8406e1
KH
142122008-12-03 Kenichi Handa <handa@m17n.org>
14213
4ccfa1c0 14214 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 14215 (decode_coding_utf_8): Likewise.
4ccfa1c0 14216 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 14217 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 14218
651df7d9
CY
142192008-12-02 Chong Yidong <cyd@stupidchicken.com>
14220
14221 * keyboard.c (make_lispy_position): Only use PT if the selected
14222 window is current.
14223
1f625c6c
AS
142242008-12-02 Andreas Schwab <schwab@suse.de>
14225
f7741ce9
AS
14226 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14227
1f625c6c
AS
14228 * doprnt.c (doprnt1): Fix size of charbuf.
14229
92bc2678
CY
142302008-12-02 Chong Yidong <cyd@stupidchicken.com>
14231
14232 * keyboard.c (timer_check): Revert last change.
14233
93b9e8cc
JB
142342008-12-02 Juanma Barranquero <lekktu@gmail.com>
14235
14236 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14237
fd7a37d5
JB
142382008-12-01 Juanma Barranquero <lekktu@gmail.com>
14239
14240 * makefile.w32-in: Update dependencies.
14241 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14242
c115043b
AS
142432008-12-01 Andreas Schwab <schwab@suse.de>
14244
14245 * font.c (register_font_driver): Use xmalloc.
14246 (font_put_frame_data): Likewise.
14247
f5668d2a
CY
142482008-12-01 Chong Yidong <cyd@stupidchicken.com>
14249
860d96be
CY
14250 * xfaces.c (realize_x_face): Make abort condition clearer.
14251
f5668d2a
CY
14252 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14253
379c17e7
CY
142542008-11-30 Chong Yidong <cyd@stupidchicken.com>
14255
14256 * keyboard.c (timer_check): After a timer runs, ensure that the
14257 selected window's buffer is current.
14258
35f36d65
JB
142592008-11-30 Juanma Barranquero <lekktu@gmail.com>
14260
f952c61c
JB
14261 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14262 It was accidentally restored by the Unicode merge.
14263
35f36d65
JB
14264 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14265
b23077df
JB
142662008-11-29 Juanma Barranquero <lekktu@gmail.com>
14267
14268 * w32proc.c: Include "coding.h".
14269 (Fw32_short_file_name): Encode filename passed to Windows API.
14270 (Fw32_long_file_name): Encode filename passed to Windows API and
14271 decode back the result. (Bug#1433)
14272
b8ebe9dd
KH
142732008-11-29 Kenichi Handa <handa@m17n.org>
14274
8cc53f96
KH
14275 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14276 not before accessing it.
14277
b8ebe9dd
KH
14278 * charset.c (Fdefine_charset_internal): After calculating
14279 min_char, max_char, and fastmap, copy the charset structure again.
14280 (encode_char): Fix the previous change.
14281
59bc82c0
SZ
142822008-11-28 Seiji Zenitani <zenitani@mac.com>
14283
14284 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14285
14286 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14287
14288 * nsterm.m (x_set_frame_alpha): New function.
14289
32247e3d
EZ
142902008-11-27 Eli Zaretskii <eliz@gnu.org>
14291
14292 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14293
b003e5ff
JB
142942008-11-27 Juanma Barranquero <lekktu@gmail.com>
14295
14296 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14297 pointer to check_face_name.
14298
708550f5
KH
142992008-11-27 Kenichi Handa <handa@m17n.org>
14300
14301 * category.h (SET_CATEGORY_SET): Call set_category_set.
14302 (set_category_set): Extern it.
14303
14304 * category.c (hash_get_category_set): New function.
bba3e508 14305 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
14306 char_table_ref_and_range. Call hash_get_category_set to get a
14307 category set to store in the table.
14308
14309 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14310 Funify_charset.
14311
2ae37cf0 14312 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
14313 (DECODE_CHAR): Check if the decoder vector is ready.
14314 (ENCODE_CHAR): Check if the encoder char-table is ready.
14315 (maybe_unify_char): Extern it.
14316
14317 * charset.c (Vchar_unified_charset_table): Delete it.
14318 (inhibit_load_charset_map): New variable.
14319 (temp_charset_work): New variable.
14320 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14321 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14322 New macros.
bba3e508
SM
14323 (load_charset_map): Meaning of control_flag changed.
14324 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
14325 temp_charset_work.
14326 (load_charset): New argument control_flag.
14327 (map_charset_for_dump): New function.
14328 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14329 map_charset_for_dump.
14330 (Fdefine_charset_internal): If the charset method is MAP, load
14331 mapping tables by calling load_charset.
14332 (Funify_charset): Don't load a mapping table but directly set
14333 Vchar_unify_table.
14334 (maybe_unify_char): New function.
14335 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14336 Handle the case of inhibit_load_charset_map being nonzero.
14337 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14338 Handle the case of inhibit_load_charset_map being nonzero.
14339 (Fclear_charset_maps): Just free temp_charset_work.
14340 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14341 variable.
14342
bba3e508 14343 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
14344 change of char_table_ref_and_range.
14345 (char_table_ref_and_range): Change the meaning of argument FROM
14346 and TO. Now the caller must provide initial values for *FROM
14347 and *TO.
14348
bba3e508 14349 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
14350 char_table_ref_and_range.
14351 (fontset_get_font_group): Likewise.
14352 (Ffontset_info): Likewise.
14353
bba3e508 14354 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
14355 char_table_ref_and_range. For char-table, put boundary between
14356 non-ASCII and 8-bit characters.
14357
14358 * print.c (print_object): For bool-vector, delete unnecessary
14359 check of ASCII_BYTE_P.
14360
9196133b
JR
143612008-11-26 Jason Rumney <jasonr@gnu.org>
14362
14363 * w32font.c (w32font_open_internal): Don't include external
9acef61c 14364 leading in font height. (Bug#879)
9196133b 14365
9f688acf
GM
143662008-11-26 Glenn Morris <rgm@gnu.org>
14367
14368 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14369 redefinition with ifdef. (Bug#1383)
14370
90d19aff
AR
143712008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14372
14373 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14374
4ccfa1c0 143752008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
14376
14377 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14378 New EmacsView methods.
14379 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14380 Fixes bug #1048,1357,1414.
14381
143822008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14383
14384 Fix bug #1362.
14385 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14386 is not an indexed color.
14387 * nsterm.m (free_indexed_color): Add argument checking.
14388 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14389
e7d5ecb3
CY
143902008-11-24 Chong Yidong <cyd@stupidchicken.com>
14391
14392 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14393 Document confirm-after-completion value for
14394 minibuffer-completion-confirm.
14395
c285743c
JR
143962008-11-24 Jason Rumney <jasonr@gnu.org>
14397
14398 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14399 warning.
14400
b0857706
JR
144012008-11-23 Jason Rumney <jasonr@gnu.org>
14402
14403 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14404 restored before returning.
14405
14406 * w32font.c (check_face_name): New function.
14407 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 14408 fonts. (Bug#642)
b0857706 14409
ee50ff07
MR
144102008-11-22 Martin Rudalics <rudalics@gmx.at>
14411
14412 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14413 confirm-nonexistent-file-or-buffer in doc-string.
14414
b8ff72fa
SM
144152008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14416
14417 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14418 Fix copy/paste typo. Add checks.
14419
cee53ed4
KH
144202008-11-21 Kenichi Handa <handa@m17n.org>
14421
14422 * coding.c (detect_coding_iso_2022): Reject invalid composition
14423 sequence.
14424 (DECODE_COMPOSITION_START): If the current source is the last
14425 block, and the current composition doesn't end, regard this
14426 sequence as invalid.
14427 (decode_coding_iso_2022): Handle invalid composition sequence.
14428
f6ef1e65
MR
144292008-11-20 Martin Rudalics <rudalics@gmx.at>
14430
14431 * window.c (coordinates_in_window): Don't return
14432 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14433 line when the window is not the rightmost one. (Bug#1372)
14434
e08b1705
MR
144352008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14436
14437 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14438
ad98e89f
EZ
144392008-11-15 Eli Zaretskii <eliz@gnu.org>
14440
14441 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14442 and bright_bg if noninteractive is non-zero.
14443
fb098a4b
CY
144442008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14445
14446 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14447 x_draw_glyph_string_background.
14448
14449 * w32term.c (x_draw_glyph_string): Likewise.
14450
ce952b6e
CY
144512008-11-15 Chong Yidong <cyd@stupidchicken.com>
14452
14453 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14454 the next glyph string once past the overhang width.
14455
14456 * nsterm.m (ns_draw_glyph_string): Likewise.
14457
14458 * w32term.c (x_draw_glyph_string): Likewise.
14459
26ea7079
CY
144602008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14461
14462 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14463 double file close.
14464
1c33c906
MR
144652008-11-14 Martin Rudalics <rudalics@gmx.at>
14466
14467 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14468 dedicated status of window before attempting to display another
14469 buffer in it.
14470
8fc29035
JB
144712008-11-14 Juanma Barranquero <lekktu@gmail.com>
14472
14473 * msdos.c (Fmsdos_long_file_names):
14474 (syms_of_msdos) <dos-unsupported-char-glyph>:
14475 * dosfns.c (Fint86): Fix typos in docstrings.
14476
55fb4286
EZ
144772008-11-14 Eli Zaretskii <eliz@gnu.org>
14478
14479 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14480
3fda0315
KY
144812008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14482
14483 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14484
7e849c17
CY
144852008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14486
14487 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14488
14489 * frame.h: Negative alpha means "don't touch".
14490
14491 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14492
14493 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14494
b9fd67bd
DN
144952008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14496
14497 * hftctl.c:
14498 * chpdef.h:
14499 * acldef.h: Remove files used only for systems no longer supported.
14500
14501 * Makefile.in: Fix .o alphabetical ordering.
14502 (hftctl.o): Remove dependency, file removed.
14503 (keymap.o, print.o): Depend on charset.h.
14504
d5998e03
KH
145052008-11-10 Kenichi Handa <handa@m17n.org>
14506
2ae37cf0 14507 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 14508
be70e183
CY
145092008-11-08 Chong Yidong <cyd@stupidchicken.com>
14510
14511 * dired.c (file_name_completion): If completion_ignore_case is
14512 enabled, ignore case when checking completion-regexp-list.
14513
7cf94eac
EZ
145142008-11-08 Eli Zaretskii <eliz@gnu.org>
14515
14516 * vm-limit.c (get_lim_data): Fix last change.
14517
ee107a89
KH
145182008-11-08 Kenichi Handa <handa@m17n.org>
14519
14520 * character.c (Fget_byte): New function.
14521 (syms_of_character): Defsubr Fget_byte.
14522
5fd15622
CY
145232008-11-07 Chong Yidong <cyd@stupidchicken.com>
14524
14525 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14526 cursor position is valid after scrolling.
14527
13d62fad
JB
145282008-11-06 Juanma Barranquero <lekktu@gmail.com>
14529
14530 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14531
a1dd2936
GM
145322008-11-06 Glenn Morris <rgm@gnu.org>
14533
14534 * xterm.c (handle_one_xevent): Don't let popup menus cause
14535 mouse-autoselect-window related window switching. (Bug#1261)
14536
860cd236
CY
145372008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14538
14539 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14540
653a3150
AS
145412008-11-04 Andreas Schwab <schwab@suse.de>
14542
14543 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14544
870f5cac
CY
145452008-11-03 Chong Yidong <cyd@stupidchicken.com>
14546
14547 * xfns.c (Fx_wm_set_size_hint): New function.
14548
1e02f3cb
MR
145492008-11-03 Martin Rudalics <rudalics@gmx.at>
14550
14551 * textprop.c (Fprevious_single_char_property_change): Return 0
14552 when there's no change in a string. (Bug#1301)
14553
e630dfc6
MR
145542008-11-02 Martin Rudalics <rudalics@gmx.at>
14555
14556 * frame.c (do_switch_frame): New argument NORECORD passed to
14557 Fselect_window.
14558 (Fselect_frame): New argument NORECORD passed to
14559 do_switch_frame.
14560 (Fset_frame_selected_window): New argument NORECORD passed to
14561 Fselect_frame.
14562 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14563 in call of do_switch_frame.
14564 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14565 Handle NORECORD argument in call of Fselect_frame.
14566 * lisp.h (do_switch_frame, Fselect_frame)
14567 (Fset_frame_selected_window): Adjust declarations.
14568 * window.c (select_frame_norecord): New function.
14569 (run_window_configuration_change_hook): Use it and call
14570 Fselect_frame with NORECORD set.
14571 (Fselect_window): Pass NORECORD to Fselect_frame.
14572 (Fset_window_configuration): Handle NORECORD argument in call of
14573 do_switch_frame.
14574 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14575 Fset_frame_selected_window.
14576 * keyboard.c (command_loop_1): Handle NORECORD in call of
14577 Fselect_frame (currently ifdefd).
14578
9020b223
GM
145792008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14580
14581 * emacs.c (USAGE2): Untabify.
14582
793ffee8
SM
145832008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14584
14585 * composite.c (fill_gstring_header): Fix copy/paste typo.
14586
ab6d1131
MR
145872008-10-31 Martin Rudalics <rudalics@gmx.at>
14588
14589 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14590 (Fother_window): Rename argument and rewrite doc-string.
14591 (select_window_norecord): Fix return value. (Bug#1276)
14592
601a9cf1
JB
145932008-10-30 Juanma Barranquero <lekktu@gmail.com>
14594
14595 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14596 new frames overriding foreground for tooltips. Based on similar patch
14597 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14598
813b0652
CY
145992008-10-29 Chong Yidong <cyd@stupidchicken.com>
14600
14601 * emacs.c (Fdaemon_initialized): Initialize nfd.
14602
4414f58f
MR
146032008-10-29 Martin Rudalics <rudalics@gmx.at>
14604
14605 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14606 (Fwindow_text_height): Clarify doc-strings.
14607 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14608 doc-string of window-scroll-functions.
14609
ecdcaa09
RS
146102008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14611
14612 * category.c (syms_of_category): Fix typo in docstring.
14613
23fe745a
JB
146142008-10-28 Juanma Barranquero <lekktu@gmail.com>
14615
14616 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14617 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14618 Fix typos in docstrings.
14619
ff808935
DN
146202008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14621
14622 * emacs.c (daemon_pipe): Make non-static.
14623 (IS_DAEMON): Move definition ...
14624 * lisp.h (IS_DAEMON): ... here.
14625 (daemon_pipe): Declare.
14626 (is_daemon): Remove.
14627 * dispnew.c (init_display): Use IS_DAEMON.
14628
fc012771
SM
146292008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14630
14631 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14632 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14633
14634 * emacs.c (is_daemon): Remove.
14635 (main): Don't set is_daemon.
14636 (IS_DAEMON): New macro.
14637 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 14638 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
14639 parent exits.
14640 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14641
d8bdbe6f
CY
146422008-10-27 Chong Yidong <cyd@stupidchicken.com>
14643
d1a072bf
CY
14644 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14645 over-sized glyph, draw it with the default glyph width.
14646
e2e325aa
CY
14647 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14648 glyph, draw it with the default glyph width.
14649
14650 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14651 glyph, draw it with the default glyph width.
14652
d8bdbe6f
CY
14653 * xdisp.c (try_scrolling): When computing the distance from the
14654 scroll margin to PT, try moving some distance past the window
14655 bottom before giving up.
14656
7bfac547
MR
146572008-10-27 Martin Rudalics <rudalics@gmx.at>
14658
14659 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14660 (Fset_window_buffer): Explain in doc-string that a window can be
14661 "strongly" dedicated to its buffer.
14662
4ff029f6
DN
146632008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14664
14665 * emacs.c (daemon_name): New variable.
14666 (main): Deal with --daemon=SERVER_NAME.
14667 (Fdaemonp): Return a name if one was passed to --daemon.
14668
5790ef40
DN
146692008-10-26 Romain Francoise <romain@orebokech.com>
14670
f9bd0df9 14671 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
14672 (main): Create a pipe before forking, make the parent exit only after
14673 the child has closed its end of the pipe. Move closing the
14674 descriptors ...
14675 (Fdaemon_initialized): ... here. New function.
14676
f5385255
SM
146772008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14678
4d632321
SM
14679 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14680 the previous unoptimized table.
14681
f5385255
SM
14682 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14683 the distinction between non-nil and non-t value of `dedicated'.
14684
6c56a0f3
CY
146852008-10-25 Chong Yidong <cyd@stupidchicken.com>
14686
14687 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 14688 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 14689
fec89261
MR
146902008-10-25 Martin Rudalics <rudalics@gmx.at>
14691
14692 * window.c (Fget_buffer_window, Fdelete_windows_on)
14693 (Freplace_buffer_in_windows): Make buffer argument optional and
14694 rename to buffer_or_name.
14695
34fcddd0
CY
146962008-10-24 Chong Yidong <cyd@stupidchicken.com>
14697
f5385255
SM
14698 * xdisp.c (handle_single_display_spec, handle_display_prop):
14699 Undo 2005-05-16 change.
34fcddd0
CY
14700 (handle_stop): Pop iterator if it's loaded with an empty string.
14701 (get_overlay_strings_1): Don't save iterator if it's loaded with
14702 an empty string (bug#1201).
14703
064766f2
KH
147042008-10-24 Kenichi Handa <handa@m17n.org>
14705
14706 * ftfont.c (ftfont_otf_features): Fix previous change.
14707 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14708 calling ftfont_otf_features.
14709
f9bd0df9 147102008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
14711
14712 * font.c (font_match_p): Fix for the case that a vector of
14713 characters is in script-representative-chars.
14714
1dae9197
MA
147152008-10-24 Michael Albinus <michael.albinus@gmx.de>
14716
14717 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 14718 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
14719 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14720 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 14721 macro. (Bug#1186)
1dae9197 14722
f9bd0df9 147232008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
14724
14725 * s/sol2-10.h: New file.
14726
878a4584
JB
147272008-10-23 Juanma Barranquero <lekktu@gmail.com>
14728
14729 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14730 poor beast has survived 9+ years and the jump from xterm.c!).
14731
cd265ca6
MR
147322008-10-23 Martin Rudalics <rudalics@gmx.at>
14733
14734 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14735 Reword doc-string.
f5385255 14736 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 14737
472a4dc9
JB
147382008-10-23 Juanma Barranquero <lekktu@gmail.com>
14739
14740 * character.c (syms_of_character) <script-representative-chars>:
14741 <unicode-category-table>: Doc fixes.
14742
159bd5a2
NF
147432008-10-23 Noah Friedman <friedman@splode.com>
14744
14745 * coding.c (make_conversion_work_buffer): Check that
14746 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14747 Fget_buffer_create.
14748
49f9c344
KH
147492008-10-23 Kenichi Handa <handa@m17n.org>
14750
14751 * font.c (font_add_log): Check the values of extra properties.
14752
12bb3111
MR
147532008-10-22 Martin Rudalics <rudalics@gmx.at>
14754
14755 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14756 Reword doc-string.
14757 (Fset_window_parameter): Use NILP.
14758 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 14759 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 14760
bbeb4e99
JB
147612008-10-22 Juanma Barranquero <lekktu@gmail.com>
14762
14763 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14764
147652008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
14766
14767 * nsfns.m (ns_appkit_version): New function.
14768 (x-server-version): Use it.
14769 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14770 (x-server-vendor): Don't check_ns().
14771
14772 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14773
a9b555d3
JB
147742008-10-22 Juanma Barranquero <lekktu@gmail.com>
14775
14776 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14777 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14778
4626499f
KH
147792008-10-22 Kenichi Handa <handa@m17n.org>
14780
e3681952
KH
14781 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14782 scripts.
14783
4626499f
KH
14784 * category.c (word_boundary_p): Check scripts instead of charset.
14785 Handle nil value in word-separating-categories and
14786 word-combining-categories.
14787 (syms_of_category): Fix docstrings of word-separating-categories
14788 and word-combining-categories.
14789
1560f91a
EZ
147902008-10-21 Eli Zaretskii <eliz@gnu.org>
14791
14792 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14793 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14794
f4668441
MR
147952008-10-21 Martin Rudalics <rudalics@gmx.at>
14796
14797 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14798 Rename arg "buffer" to "buffer_or_name".
14799 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14800 it optional.
14801 (no_switch_window): Remove since the return value is not used.
a9b555d3 14802 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
14803 Consider window as dedicated when Fwindow_dedicated_p returns a
14804 non-nil value.
14805 * lisp.h: Remove prototype for no_switch_window.
14806
fd75ddb2
JD
148072008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14808
14809 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 14810 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 14811
07295713
KH
148122008-10-21 Kenichi Handa <handa@m17n.org>
14813
14814 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14815 check Vlatin_extra_code_table.
14816
712adc82
EZ
148172008-10-20 Eli Zaretskii <eliz@gnu.org>
14818
14819 * fileio.c (Fset_file_modes): Doc fix.
14820
f549eb0b
MA
148212008-10-19 Michael Albinus <michael.albinus@gmx.de>
14822
14823 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14824 in arrays.
14825
aac0c6e3
MR
148262008-10-19 Martin Rudalics <rudalics@gmx.at>
14827
14828 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14829 Mention kill-buffer in doc-string.
14830 (Fset_window_buffer): Reinsert tem check removed in last commit.
14831 (Fenlarge_window, Fshrink_window): Have argument names and
14832 doc-string follow Elisp manual more closely.
14833
148342008-10-18 Eli Zaretskii <eliz@gnu.org>
14835
14836 * fileio.c (Fset_file_modes): Doc fix.
14837
148382008-10-18 Martin Rudalics <rudalics@gmx.at>
14839
14840 * window.c (Fwindow_width, Fset_window_start)
14841 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
14842 (Fdelete_windows_on, Freplace_buffer_in_windows):
14843 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
14844 (Fwindow_dedicated_p): Make window argument optional.
14845 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14846 (Fset_window_buffer): Respect any non-nil dedicated value for
14847 window. Rename "buffer" argument to "buffer_or_name".
14848
148492008-10-18 Ulrich Mueller <ulm@gentoo.org>
14850
14851 * m/sh3.h: New file, machine description for SuperH.
14852
148532008-10-17 Martin Rudalics <rudalics@gmx.at>
14854
14855 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14856
148572008-10-17 Kenichi Handa <handa@m17n.org>
14858
14859 * ftfont.c (ftfont_otf_features): Fix indexing
14860 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14861
148622008-10-16 Magnus Henoch <mange@freemail.hu>
14863
14864 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14865 (Fdbus_call_method_asynchronously): Ditto.
14866 This change makes C-h f display the argument list.
14867
148682008-10-16 Chong Yidong <cyd@stupidchicken.com>
14869
14870 * fileio.c (Fexpand_file_name): Doc fix.
14871
14872 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14873 of :foreground and :background equivalent to unspecified (20.x
14874 compatibility).
14875
148762008-10-15 Eli Zaretskii <eliz@gnu.org>
14877
14878 * buffer.c (syms_of_buffer): Doc fix.
14879
148802008-10-14 Kenichi Handa <handa@m17n.org>
14881
14882 * font.c (font_clear_prop): When clearing font width, clear the
14883 average width field too.
14884
148852008-10-12 Andreas Schwab <schwab@suse.de>
14886
14887 * ftfont.c (ftfont_shape_by_flt): Make static.
14888 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14889
14890 * font.c: Don't include <m17n-flt.h>.
14891
148922008-10-10 Eli Zaretskii <eliz@gnu.org>
14893
14894 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14895
148962008-10-09 Eli Zaretskii <eliz@gnu.org>
14897
14898 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14899 away code.
14900
149012008-10-09 Chong Yidong <cyd@stupidchicken.com>
14902
14903 * dispnew.c (update_text_area): Avoid looping due to large glyph
14904 overhangs (bug#1070).
14905
149062008-10-09 Kenichi Handa <handa@m17n.org>
14907
14908 * fontset.c (face_for_char): If face->fontset is negative, just
14909 return ascii_face.
14910
f5385255
SM
14911 * font.c (font_delete_unmatched): Fix previous change.
14912 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
14913
149142008-10-09 Martin Rudalics <rudalics@gmx.at>
14915
14916 * frame.c (Fraise_frame): On text-only terminals select frame in
14917 order to make it visible. (Bug#1061)
14918
149192008-10-08 Chong Yidong <cyd@stupidchicken.com>
14920
14921 * fontset.c (fontset_find_font): Check frame validity.
14922
149232008-10-07 Chong Yidong <cyd@stupidchicken.com>
14924
a9b555d3 14925 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
14926 (xg_display_close): Allow Emacs to close all displays (bug#985).
14927
149282008-10-06 Andreas Schwab <schwab@suse.de>
14929
f5385255 14930 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
14931
149322008-10-06 Chong Yidong <cyd@stupidchicken.com>
14933
f5385255 14934 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 14935
a9b555d3 14936 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
14937
14938 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14939 during initialization.
14940
149412008-10-04 Eli Zaretskii <eliz@gnu.org>
14942
14943 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14944 whole thing on MSDOS frames as well as on a TTY.
14945
14946 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14947 well as for TTY.
14948 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14949 well as on a TTY.
14950
14951 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14952 as well as for TTY.
14953
14954 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14955
14956 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14957 MSDOS frames as well.
14958
149592008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14960
14961 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14962 correct arguments.
b71ac3dd 14963 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
14964
149652008-10-03 Glenn Morris <rgm@gnu.org>
14966
14967 * emacs.c (USAGE1): Add --daemon.
14968
149692008-10-02 Eli Zaretskii <eliz@gnu.org>
14970
14971 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14972 100, so it's in percents as advertised.
14973
149742008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14975
14976 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14977 (ns_output.current_cursor, ns_output.desired_cursor)
14978 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14979 (FRAME_NEW_CURSOR_COLOR): Remove.
14980
14981 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 14982 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
14983 enumeration (HOLLOW_BOX_CURSOR, etc.).
14984
14985 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14986 (draw_window_cursor): Simplify code.
f5385255
SM
14987 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14988 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 14989 updates manually.
a9b555d3
JB
14990 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14991 Use core Emacs cursor types.
aac0c6e3 14992
b8ff72fa 14993 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
14994
149952008-10-02 Martin Rudalics <rudalics@gmx.at>
14996
14997 * process.c (Faccept_process_output): Fix doc-string.
14998
149992008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
15000
15001 * gmalloc.c (__sbrk): Also define for uClibc.
15002
15003 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
15004 for uClibc.
15005
150062008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15007
15008 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
15009 styles.
15010 (nsfont_open): Reenable the cache.
15011
150122008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15013
15014 * font.c (font_matching_entity): Reflect ATTRS in font selection.
15015 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
15016
150172008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
15018
15019 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
15020 a suspended terminal.
15021
150222008-09-30 Michael Albinus <michael.albinus@gmx.de>
15023
15024 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
15025
150262008-09-30 Eli Zaretskii <eliz@gnu.org>
15027
15028 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
15029
150302008-09-30 Chong Yidong <cyd@stupidchicken.com>
15031
15032 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
15033 in a continued line coincides with a line beginning.
15034
150352008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15036
15037 * nsfont.m (nsfont_trait_distance): Fix bug.
15038 (nsfont_list): Return a list rather than a vector (syncs with Handa
15039 changes of 2008-05-14).
15040 (nsfont_open): Improve logging.
15041
150422008-09-29 Andreas Schwab <schwab@suse.de>
15043
15044 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
15045
150462008-09-28 Martin Rudalics <rudalics@gmx.at>
15047
15048 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
15049 name as char-resolve-modifiers.
15050 Reported by: Markus Triska <markus.triska@gmx.at>
15051
150522008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15053
15054 * dispnew.c (init_display): Return earlier when running as a daemon.
15055
150562008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15057
15058 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
15059
150602008-09-27 Eli Zaretskii <eliz@gnu.org>
15061
15062 * composite.c (Fcomposition_get_gstring)
15063 (Fcompose_region_internal, Fcompose_string_internal)
15064 (Ffind_composition_internal): Doc fix.
15065 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15066 (syms_of_composite) <auto-composition-function>: Doc fix.
15067 (syms_of_composite) <composition-function-table>: Doc fix.
15068
150692008-09-25 Chong Yidong <cyd@stupidchicken.com>
15070
15071 * search.c (wordify): New argument for lax word-ends.
15072 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15073
150742008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15075
15076 * lisp.h (is_daemon): Declare.
15077 * dispnew.c (init_display): Do not try to initialize the terminal
15078 when running as a daemon.
15079
150802008-09-22 Chong Yidong <cyd@stupidchicken.com>
15081
15082 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15083 x_display_pixel_height.
15084
150852008-09-22 Martin Rudalics <rudalics@gmx.at>
15086
15087 * undo.c (record_point): Don't call Fundo_boundary for first
15088 change. (Bug#731)
15089
150902008-09-22 Juanma Barranquero <lekktu@gmail.com>
15091
15092 * emacs.c (Fdaemonp): Doc fix.
15093
150942008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15095
15096 * emacs.c (main): Place #ifdef in the proper place.
15097
150982008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15099
15100 * emacs.c (standard_args): Add --daemon.
15101 (main): Disconnect from the terminal when --daemon is passed.
15102 (is_daemon): New variable.
15103 (Fdaemonp): New function.
15104 (syms_of_emacs): Defsubr it.
15105
151062008-09-20 Chong Yidong <cyd@stupidchicken.com>
15107
15108 * xdisp.c (get_next_display_element): Handle string display
15109 correctly when checking for the end of a box run.
15110
151112008-09-20 Glenn Morris <rgm@gnu.org>
15112
15113 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15114 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15115 (Frename_file): Avoid copying to trash if a rename involves
15116 a delete. (Bug#964).
15117
151182008-09-20 Eli Zaretskii <eliz@gnu.org>
15119
15120 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15121 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15122 frames as well as termcap frames.
15123 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15124 get_named_tty.
15125
151262008-09-19 Eli Zaretskii <eliz@gnu.org>
15127
15128 * process.c (procfs_system_process_attributes): Fix cmdline in
15129 case /proc/PID/cmdline is empty.
15130
15131 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15132 x_display_pixel_height.
15133
151342008-09-19 Juanma Barranquero <lekktu@gmail.com>
15135
15136 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15137
15138 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15139 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15140
151412008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15142
15143 * dispextern.h (struct it): Move line_wrap away from the middle of
15144 bitfields. Move voffset in struct iterator_stack_entry after the
15145 bitfields. Move tab_width near after another short.
15146
151472008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15148
15149 * frame.h (struct frame): Move alpha from the middle of bitfields.
15150
15151 * window.h (struct window): Move frozen_window_start_p after the
15152 rest of the bitfields to reduce padding.
15153
151542008-09-18 Chong Yidong <cyd@stupidchicken.com>
15155
15156 * xterm.h (x_display_info): Remove `height' and `width' members.
15157
15158 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15159
15160 * w32term.h (w32_display_info): Remove `height', `width',
15161 `height_in', and `width_in' members.
15162
b8ff72fa
SM
15163 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15164 New functions.
aac0c6e3
MR
15165 (x_calc_absolute_position): Use them.
15166 (x_term_init): Omit removed `height' and `width' members.
15167
b8ff72fa
SM
15168 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15169 New functions.
aac0c6e3
MR
15170 (w32_read_socket, x_calc_absolute_position): Use them.
15171 (w32_initialize_display_info, w32_term_init): Omit removed members
15172 of w32_display_info.
15173
b8ff72fa
SM
15174 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15175 New functions.
15176 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 15177
b8ff72fa
SM
15178 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15179 New functions.
aac0c6e3
MR
15180 (x_calc_absolute_position): Use them.
15181 (x_term_init): Omit removed `height' and `width' members.
15182
15183 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
15184 (compute_tip_xy):
15185 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
15186 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15187 x_display_pixel_width.
15188
151892008-09-18 Kenichi Handa <handa@m17n.org>
15190
15191 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15192 (composition_compute_stop_pos): Fix handling of static composition.
15193 (Fcomposition_get_gstring): Check FROM and TO at first.
15194
151952008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15196
46e722a9 15197 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
15198 mixup (YAILOM).
15199
152002008-09-17 Chong Yidong <cyd@stupidchicken.com>
15201
15202 * indent.c (Fvertical_motion): Use position reported by iterator
15203 instead of PT for determining screen motion (bug#943).
15204
152052008-09-17 Romain Francoise <romain@orebokech.com>
15206
15207 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15208
152092008-09-17 Kenichi Handa <handa@m17n.org>
15210
15211 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15212
15213 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15214 if necessary.
15215
152162008-09-16 Kenichi Handa <handa@m17n.org>
15217
15218 * coding.c (make_conversion_work_buffer): Avoid calling
15219 Fget_buffer_create if it is not necessary.
15220
152212008-09-15 Martin Rudalics <rudalics@gmx.at>
15222
15223 * window.c (Fselect_window): Don't update window_select_count and
15224 use_time when norecord is not nil.
15225
152262008-09-14 Kenichi Handa <handa@m17n.org>
15227
15228 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15229 specpdl_ptr.
15230
152312008-09-12 Kenichi Handa <handa@m17n.org>
15232
15233 * indent.c (scan_for_column): Don't handle automatic composition
15234 if the current buffer is not associated with a window.
15235
15236 * composite.c (composition_reseat_it): If the current buffer is
15237 not associated with a window, ignore the automatic composition.
15238 (find_automatic_composition): Likewise.
15239
152402008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15241
15242 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15243 (Fgpm_mouse_stop): Use it.
15244 * termhooks.h (close_gpm): Declare.
15245 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15246 connection if Gpm_GetEvent fails.
15247
15248 * window.c (set_window_buffer): Always preserve current-buffer.
15249
152502008-09-12 Glenn Morris <rgm@gnu.org>
15251
15252 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15253
152542008-09-11 Glenn Morris <rgm@gnu.org>
15255
15256 * charset.c (charset-map-path): Doc fix.
15257
152582008-09-10 Kenichi Handa <handa@m17n.org>
15259
15260 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15261
15262 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15263 compose a grapheme cluster with the preceding base glyph.
15264
15265 * composite.c (composition_compute_stop_pos): Fix previous change.
15266 Reset cmp_it->id to -1 at first.
15267
152682008-09-10 Glenn Morris <rgm@gnu.org>
15269
15270 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15271
152722008-09-09 Chong Yidong <cyd@stupidchicken.com>
15273
15274 * keyboard.c (read_key_sequence): Reapply translation maps when
15275 switching keyboards.
15276
152772008-09-09 Kenichi Handa <handa@m17n.org>
15278
15279 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15280 characters.
15281
15282 * composite.c (FORWARD_CHAR): Fix calculation
15283 of (POSITION).pos_byte.
15284 (composition_compute_stop_pos): Limit the search of composition to
15285 at most 500 characters ahead. If we reach the limit or find a
15286 newline, set cmp_it->ch to -2 and return 0.
15287 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15288
152892008-09-08 Kenichi Handa <handa@m17n.org>
15290
15291 * indent.c (Fvertical_motion): Be sure to set
15292 it_overshoot_expected if it.cmp_it.id is non-negative.
15293
152942008-09-07 Andreas Schwab <schwab@suse.de>
15295
15296 * callproc.c (Fcall_process): Don't hold references to string data
15297 across garbage collection. Move initialisation of new_argv down
15298 to avoid compiler bug.
15299
153002008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15301
15302 * process.c (Fsystem_process_attributes): Doc fix.
15303
153042008-09-07 Chong Yidong <cyd@stupidchicken.com>
15305
15306 * callproc.c (Fcall_process): Canonicalize current directory name.
15307
15308 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15309 iterator advances to the next line if the current line ends in a
15310 continued tab.
15311
153122008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15313
15314 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15315 member to point to cmp_from.
15316
15317 * xdisp.c: Doc fix for references to gidx data member.
15318
153192008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15320
15321 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15322
153232008-09-07 Kenichi Handa <handa@m17n.org>
15324
15325 * composite.c (FORWARD_CHAR): Check STOP after
15326 incrementing (POSITION).pos.
15327
153282008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15329
15330 * process.c (Fsystem_process_attributes): Doc fix.
15331
153322008-09-06 Chong Yidong <cyd@stupidchicken.com>
15333
15334 * keyboard.c (Ftop_level): Doc fix.
15335
153362008-09-06 Eli Zaretskii <eliz@gnu.org>
15337
15338 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15339 minibuffer, don't let lower part of menu invade the echo area.
15340
15341 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15342 "char *q" to access menu text and advance through it. Revert the
15343 change that displayed ">" instead of ASCII character 0x10.
15344
153452008-09-05 Eli Zaretskii <eliz@gnu.org>
15346
15347 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15348 toggle boxes and radio buttons on MS-DOS as well.
15349
153502008-09-05 Kenichi Handa <handa@m17n.org>
15351
15352 * composite.c (autocmp_chars): Check lookback count.
15353 (composition_compute_stop_pos): Set cmp_it->lookback.
15354 (composition_reseat_it): Check lookback count.
15355 (struct position_record): New struct.
15356 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15357 (find_automatic_composition): New function.
15358 (composition_adjust_point): Use find_automatic_composition.
15359
15360 * dispextern.h (struct composition_it): New member lookback.
15361
153622008-09-02 Chong Yidong <cyd@stupidchicken.com>
15363
15364 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15365 if moving by a single line.
15366
153672008-09-02 Andreas Schwab <schwab@suse.de>
15368
15369 * xterm.c (x_delete_display): Fix merge error.
15370
15371 * fileio.c (Fexpand_file_name): Remove unused variables.
15372
153732008-09-02 Eli Zaretskii <eliz@gnu.org>
15374
15375 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15376 storage on all platforms, not just on DOS_NT.
15377
153782008-09-02 Jason Rumney <jasonr@gnu.org>
15379
b8ff72fa
SM
15380 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15381 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
15382
153832008-09-01 Chong Yidong <cyd@stupidchicken.com>
15384
15385 * xfaces.c (Finternal_set_alternative_font_family_alist)
15386 (Finternal_set_alternative_font_registry_alist): Properly copy
15387 entire alist structure.
15388
153892008-09-01 Kenichi Handa <handa@m17n.org>
15390
d66c0241 15391 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 15392 representative chars of the script is a vector.
d66c0241
JB
15393 (ftfont_list): Handle the case where the representative chars of
15394 the script is a vector.
aac0c6e3
MR
15395
15396 * character.c (syms_of_character): Docstring of
15397 script-representative-chars fixed.
15398
153992008-08-31 Eli Zaretskii <eliz@gnu.org>
15400
15401 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15402 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15403 the menu. Allocate larger buffer for `text', to account for
15404 possible ^C characters.
15405
154062008-08-31 Martin Rudalics <rudalics@gmx.at>
15407
15408 * xdisp.c (prepare_menu_bars): Don't call
15409 Vwindow_size_change_functions with arg Qt.
15410
154112008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15412
15413 * font.h (font_range):
15414 * fileio.c (report_file_error):
46e722a9
SM
15415 * composite.c (composition_update_it): Yet another int/Lisp_Object
15416 mixup (YAILOM).
aac0c6e3
MR
15417
154182008-08-30 Glenn Morris <rgm@gnu.org>
15419
15420 * data.c (Fmake_variable_frame_local): Doc fix.
15421
15422 * frame.c (Fmodify_frame_parameters): Doc fix.
15423
154242008-08-30 Eli Zaretskii <eliz@gnu.org>
15425
15426 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15427 needed by GetTokenInformation.
15428 (w32_system_process_attributes): Check return values of all system
15429 APIs.
15430
15431 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15432 only when the state changes.
15433 (IT_update_begin, IT_update_end): Add termscript trace.
15434
15435 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15436 clipboard is unavailable. Set dst to NULL if it doesn't point to
15437 malloc'ed data.
15438 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15439 passing random values to xfree.
15440
15441 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 15442 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
15443
154442008-08-29 Jason Rumney <jasonr@gnu.org>
15445
15446 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15447
154482008-08-29 Eli Zaretskii <eliz@gnu.org>
15449
15450 * composite.c (fill_gstring_body): Avoid compiler warnings.
15451
15452 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15453 LGLYPH_SET_CODE to avoid compiler warnings.
15454
2ae37cf0 15455 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
15456
15457 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15458
15459 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15460 LGLYPH_SET_CODE.
15461
154622008-08-29 Kenichi Handa <handa@m17n.org>
15463
15464 * fileio.c (report_file_error): Don't downcase the first character
15465 of errstring if it is still unibyte.
15466
154672008-08-29 Kenichi Handa <handa@m17n.org>
15468
15469 These changes are to re-implement the automatic composition so
15470 that it doesn't use text properties.
15471
15472 * Makefile.in (ftfont.o): Depend on composite.h.
15473 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15474
15475 * character.h (Vunicode_category_table): Extern it.
15476
15477 * character.c (Vunicode_category_table): New variable.
15478 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15479
15480 * chartab.c (optimize_sub_char_table): Perform more greedy
15481 optimization.
15482
b8ff72fa
SM
15483 * composite.h (enum composition_method):
15484 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
15485 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15486 (Vcomposition_function_table): Extern it.
15487 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15488 (composition_gstring_put_cache, composition_gstring_from_id)
15489 (composition_gstring_p, composition_gstring_width)
15490 (composition_compute_stop_pos, composition_reseat_it)
15491 (composition_update_it, composition_adjust_point): Extern them.
15492 (Fcomposition_get_gstring): EXFUN it.
15493
d66c0241 15494 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
15495 (Vcomposition_function_table)
15496 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
15497 (gstring_hash_table, gstring_work, gstring_work_headers):
15498 New variables.
aac0c6e3
MR
15499 (gstring_lookup_cache, composition_gstring_put_cache)
15500 (composition_gstring_from_id, composition_gstring_p)
15501 (composition_gstring_width, fill_gstring_header)
15502 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15503 (composition_reseat_it, composition_update_it)
b8ff72fa 15504 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
15505 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15506 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 15507 Defsubr composition_get_gstring.
aac0c6e3
MR
15508
15509 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15510 cmp_id.
15511 (struct glyph_string): Delete the member gidx. New members
15512 cmp_id, cmp_from, and cmp_to.
15513 (enum it_method): Delete GET_FROM_COMPOSITION.
15514 (struct composition_it): New struct.
15515 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15516 Delete c, len, cmp_id, cmp_len in u.comp.
15517
15518 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 15519 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 15520 (enum lglyph_indices): Likewise.
b8ff72fa 15521 (font_range): Adjust extern.
aac0c6e3
MR
15522 (font_fill_lglyph_metrics): Extern it.
15523
15524 * font.c (QCf): New variable.
15525 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15526 (font_prepare_composition): Delete this function.
15527 (font_range): Type and arguments changed.
15528 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15529 (font_fill_lglyph_metrics): New function.
b8ff72fa 15530 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 15531 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
15532 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15533 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
15534
15535 * fontset.h (font_for_char): Extern it.
15536
15537 * fontset.c (font_for_char): New function.
15538
15539 * ftfont.c: Include composite.h.
15540 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 15541 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
15542
15543 * indent.c: Include composite.h and dispextern.h.
15544 (check_composition): Delete this function.
15545 (scan_for_column): Handle composition by
15546 composition_compute_stop_pos, composition_reseat_it, and
15547 composition_update_it.
15548 (compute_motion): Likewise.
15549 (Fvertical_motion): Fix checking of composition.
15550
15551 * keyboard.c (adjust_point_for_property): Check composition by
15552 composition_adjust_point.
15553
b8ff72fa 15554 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
15555 struct glyph_string.
15556
b8ff72fa
SM
15557 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15558 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
15559 struct glyph.
15560 (produce_composite_glyph): Likewise.
15561
b8ff72fa
SM
15562 * w32term.c (x_draw_composite_glyph_string_foreground):
15563 Adjust for the change of struct glyph_string.
aac0c6e3
MR
15564 (x_draw_glyph_string): Likewise.
15565
15566 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15567 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15568
15569 * xdisp.c: Include font.h.
15570 (it_props): Delete the entry for Qauto_composed.
15571 (init_iterator): Initialize it->cmp_it.id to -1.
15572 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 15573 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
15574 (handle_auto_composed_prop): Delete it.
15575 (handle_composition_prop): Handle only static composition.
15576 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15577 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 15578 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
15579 (pop_it): Likewise.
15580 (get_next_element): Delete next_element_from_composition.
15581 (CHAR_COMPOSED_P): New macro.
15582 (get_next_display_element): For automatic composition, get a face
15583 from the font in the glyph-string.
15584 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 15585 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
15586 (next_element_from_string): Check if the character at the current
15587 position is composed by CHAR_COMPOSED_P.
15588 (next_element_from_buffer): Likewise.
d66c0241
JB
15589 (next_element_from_composition): Adjust for the change of struct it.
15590 Update it->cmp_it.
b8ff72fa
SM
15591 (dump_glyph): Adjust for the change of struct glyph.
15592 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
15593 it and struct glyph. Don't handle automatic composition here.
15594 (fill_gstring_glyph_string): New function.
15595 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 15596 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
15597 (BUILD_GSTRING_GLYPH_STRING): New macro.
15598 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15599 automatic composition.
b8ff72fa 15600 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 15601 struct glyph.
b8ff72fa 15602 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 15603
b8ff72fa 15604 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
15605 the change of struct glyph_string.
15606 (x_draw_glyph_string): Likewise.
15607
156082008-08-29 Glenn Morris <rgm@gnu.org>
15609
15610 * buffer.c (word-wrap): Doc fix.
15611 * xdisp.c (truncate-partial-width-windows): Doc fix.
15612 Increase default to 50.
15613
156142008-08-29 Chong Yidong <cyd@stupidchicken.com>
15615
15616 * xdisp.c (update_tool_bar_unwind): New function.
15617 (update_tool_bar): Temporarily set selected frame before building
15618 tool-bar items.
15619
156202008-08-28 Michael Albinus <michael.albinus@gmx.de>
15621
15622 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15623 snprintf, respectively.
15624 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15625
156262008-08-28 Chong Yidong <cyd@stupidchicken.com>
15627
15628 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15629 LDFLAGS to GNUstep CC invocation.
15630
156312008-08-27 Chong Yidong <cyd@stupidchicken.com>
15632
15633 * indent.c (Fvertical_motion): Revert last change. Handle the
15634 general case where we are moving forward, and PT spans multiple
15635 screen lines.
15636
15637 * eval.c (find_handler_clause): Temporarily increase
15638 max-lisp-eval-depth while printing the backtrace buffer, to
15639 guarantee that help-mode code can run.
15640
156412008-08-27 Eli Zaretskii <eliz@gnu.org>
15642
15643 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15644 colors under -rv.
15645 (IT_set_frame_parameters): Don't swap foreground and background
15646 colors if `(reverse . t)' is present in the frame properties.
15647 (internal_terminal_init): Call init_frame_faces only for the
15648 initial frame.
15649
156502008-08-27 Andreas Schwab <schwab@suse.de>
15651
15652 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15653
156542008-08-27 Andreas Schwab <schwab@suse.de>
15655
15656 * search.c (search_buffer): Set char_base to zero only at the end.
15657
156582008-08-27 Kenichi Handa <handa@m17n.org>
15659
b8ff72fa 15660 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
15661
156622008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15663
15664 * xterm.c (x_term_init): Temporarily hide the partially
15665 initialized terminal while calling vendor-specific-keysyms.
15666
156672008-08-26 Eli Zaretskii <eliz@gnu.org>
15668
15669 * msdos.c (internal_terminal_init): Most initializations done only
15670 once, especially initial_screen_colors[] and termscript open.
15671
156722008-08-26 Chong Yidong <cyd@stupidchicken.com>
15673
15674 * eval.c (Fcondition_case): Doc fix.
15675
15676 * widgetprv.h (EmacsFramePart): Change font member to the new font
15677 struct.
15678
15679 * widget.c: Include character.h and font.h for XSETFONT.
15680 (setup_frame_gcs): Compute X font id from font struct, just once.
15681
156822008-08-26 Eli Zaretskii <eliz@gnu.org>
15683
15684 * term.c (get_named_tty): Fix last change.
15685
156862008-08-26 Chong Yidong <cyd@stupidchicken.com>
15687
15688 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 15689 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
15690
156912008-08-25 Eli Zaretskii <eliz@gnu.org>
15692
15693 * frame.c (do_switch_frame): Mark previously displayed frame as
15694 obscured for FRAME_MSDOS_P frames as well.
15695
156962008-08-24 Eli Zaretskii <eliz@gnu.org>
15697
15698 * frame.c (make_terminal_frame): Initialize f->terminal,
15699 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15700 Set the top frame to newly created frame.
15701 (Fmake_terminal_frame): Reuse the_only_display_info.
15702
15703 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15704 estimating available memory.
15705
b97439ce 157062008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
15707
15708 * nsterm.m (ns_draw_window_cursor): Don't call
15709 NSDisableScreenUpdates and NSEnableScreenUpdates on
15710 non-NS_IMPL_COCOA systems.
15711
157122008-08-23 Andreas Schwab <schwab@suse.de>
15713
15714 * process.c (procfs_system_process_attributes): Fix use of
15715 uninitialized variables.
15716
157172008-08-23 Eli Zaretskii <eliz@gnu.org>
15718
15719 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15720
15721 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15722 calling tty-set-up-initial-frame-faces.
15723
b8ff72fa
SM
15724 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15725 Allow MSDOS frames along with X frames.
aac0c6e3
MR
15726
15727 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15728 addition to output_termcap.
15729
15730 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15731
15732 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15733 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15734 highlight.
15735
15736 * process.c [!subprocesses]: Define QCname.
15737 (syms_of_process): Intern and staticpro it.
15738
15739 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
15740 Adjust for changes in encoding/decoding routines.
15741 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
15742 encode_coding and decode_coding.
15743
b8ff72fa 15744 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
15745
15746 * dosfns.c: Include frame.h before termhooks.h.
15747 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15748 variable termscript.
15749
15750 * s/msdos.h (USER_FULL_NAME): Define.
15751 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15752
15753 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15754 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15755 pw->pw_gecos.
15756
15757 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15758 SELECTED_FRAME as additional (1st) argument.
15759 (tty_read_avail_input): Handle output_msdos_raw in
15760 addition to output_termcap.
15761
15762 * msdos.c: Include frame.h before termhooks.h.
15763 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15764 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15765 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15766 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15767 (IT_set_terminal_modes, IT_reset_terminal_modes)
15768 (IT_set_frame_parameters): Use tty->termscript instead of a global
15769 variable termscript.
15770 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15771 global variable terminal_coding. Don't refer to
15772 Vnonascii_translation_table.
15773 (internal_terminal_init): Set Vwindow_system in current_kboard.
15774 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15775 Announce date and time of session start, if termscript is open.
15776 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
15777 term.c:init_tty). Open termscript only of not already open.
15778 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
15779 here instead of dos_ttraw. Don't initialize display if this is an
15780 initial tty. Don't set FRAME_FONT.
15781 (Vwindow_system_version): Bump to 23.
15782 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15783 is available, set up mouse_position_hook.
15784 (dos_ttraw, IT_set_terminal_modes): If called with initial
15785 terminal, do nothing.
15786 (IT_set_frame_parameters): Handle the Qtty_type frame
15787 parameter by calling internal_terminal_init.
15788 (dos_set_window_size, show_mouse_face)
15789 (clear_mouse_face, IT_note_mode_line_highlight)
15790 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15791 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15792 (initialize_msdos_display): New function.
15793 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15794 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15795 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15796 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 15797 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
15798 (request_sigio, unrequest_sigio): Don't define, now defined on
15799 sysdep.c.
15800 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15801
15802 * term.c [MSDOS]: Include msdos.h.
15803 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15804 conditional to DOS_NT. Allow only one call to this function in a
15805 session. Don't allocate a new struct tty_display_info; instead,
15806 reuse the_only_display_info. Call get_tty_size to get screen
15807 dimensions. Call init_baud_rate to set bad_rate.
15808 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15809 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 15810 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
15811 (get_tty_terminal, get_named_tty, Ftty_type)
15812 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15813 output_termcap.
b8ff72fa
SM
15814 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15815 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 15816 only when subprocesses are supported.
aac0c6e3
MR
15817
15818 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15819 f->output_data.x.
15820 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15821 terminal devices.
15822
5582fbc7 15823 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
15824 x_output.
15825 (FRAME_FONT): Use output_data.tty.
15826 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
15827 (struct x_display_info): Rename from display_info. Update all users in
15828 msdos.c.
aac0c6e3 15829 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 15830 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
15831 (dos_ttraw): Update prototype.
15832
15833 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15834 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15835
158362008-08-23 Jason Rumney <jasonr@gnu.org>
15837
15838 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15839 (fn_TIFFSetDirectory): New library function used.
15840 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15841 (tiff_load): Use :index to select among multiple images. Set count
15842 property when multiple images exist.
15843 (gif_format): Use :index, not :image.
15844
158452008-08-23 Chong Yidong <cyd@stupidchicken.com>
15846
15847 * xdisp.c (try_scrolling): Check INT_MAX instead of
15848 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15849 to obtain INT_MAX.
15850
158512008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15852
15853 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15854
158552008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15856
15857 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15858 GNUstep library location.
15859
158602008-08-21 Chong Yidong <cyd@stupidchicken.com>
15861
15862 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15863 before using it.
15864
15865 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15866
158672008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15868
15869 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15870 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15871 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15872 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15873 (EmacsApp-cursor_blink_handler): Remove declaration.
15874 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15875 match 01 Feb 2008 changes in xterm.c.
15876 (ns_read_socket): Add cast to avoid warning.
15877 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15878 GNUstep.
15879
158802008-08-20 Chong Yidong <cyd@stupidchicken.com>
15881
15882 * xselect.c (x_get_foreign_selection): Return nil if desired
15883 selection could not be obtained, instead of signalling an error.
15884
158852008-08-20 David Reitter <david.reitter@gmail.com>
15886
15887 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15888 * nsterm.m: Remove ns-specific code for cursor blinking.
15889 (ns_draw_window_cursor): Clear cursor properly rather than
15890 redrawing the area. Respect width of bar cursors.
15891 These changes enable the use of generic blink-cursor-mode and
15892 generic cursor types in NS and support smooth cursor movements (do
15893 not blink off after command).
15894 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15895 Nextstep, too.
15896
158972008-08-19 Kenichi Handa <handa@m17n.org>
15898
15899 * font.c (Vfont_log_deferred): New variable.
15900 (font_add_log): Check Vfont_log_deferred.
15901 (font_deferred_log): New function.
15902
15903 * font.h (font_deferred_log): Extern it.
15904
15905 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15906 for sorting.
15907 (face_for_char): Use deferred log.
15908
159092008-08-18 Kenichi Handa <handa@m17n.org>
15910
15911 * fontset.c (face_for_char): Add font log.
15912
15913 * font.c (font_add_log): Add the font properties :script, :lang,
15914 and :otf in the log.
15915
159162008-08-17 Chong Yidong <cyd@stupidchicken.com>
15917
15918 * xdisp.c: Remove dead code.
15919 (handle_invisible_prop, next_overlay_string): Defer call to
15920 setup_for_ellipsis.
15921 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15922
159232008-08-15 Chong Yidong <cyd@stupidchicken.com>
15924
15925 * xfaces.c (lookup_derived_face): Properly handle possible zero
15926 return value of get_lface_attributes.
15927 (merge_faces): Don't tell lookup_derived_face to signal an error
15928 if face is not found.
15929
15930 * dired.c (Fdirectory_files): Doc fix.
15931
15932 * process.c (make_process): Initialize kill_without_query struct
15933 member.
15934
159352008-08-15 Eli Zaretskii <eliz@gnu.org>
15936
15937 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15938 Alternative calculation of totphys for Visual Studio 6.
15939
15940 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15941
15942 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15943 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15944 All users changed.
15945 (stat): Only root directory passed to GetDriveType. Allow RAM
15946 disk as well as local fixed disk when w32-get-true-file-attributes
15947 is set to `local'.
15948 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15949 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15950 (w32_cached_id, w32_add_to_cache): New functions.
15951 (get_name_and_id): Look account names in the cache before calling
15952 lookup_account_sid.
15953 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15954 New initialization flags.
15955 (globals_of_w32): Initialize them to zero.
15956 (w32_system_process_attributes): Use w32_cached_id and
15957 w32_add_to_cache.
15958
159592008-08-14 Lawrence Mitchell <wence@gmx.li>
15960
15961 * lread.c (Fread_char, Fread_char_exclusive): If no character
15962 event is read before timeout is reached, return nil, rather than
15963 converting to a number.
15964
159652008-08-14 Chong Yidong <cyd@stupidchicken.com>
15966
15967 * fns.c (use_dialog_box): Doc fix.
15968
15969 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15970 on OS X.
15971
159722008-08-13 Chong Yidong <cyd@stupidchicken.com>
15973
15974 * frame.c (Qns_parse_geometry): New var.
15975 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15976
159772008-08-11 Chong Yidong <cyd@stupidchicken.com>
15978
15979 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15980 space character in calculating tabs.
15981
159822008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15983
15984 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15985
159862008-08-10 Glenn Morris <rgm@gnu.org>
15987
15988 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15989 silence gcc "limited range of data type" warnings in some
15990 make_fixnum_or_float calls.
15991
159922008-08-09 Eli Zaretskii <eliz@gnu.org>
15993
15994 * w32.c (w32_system_process_attributes): If the process does not
15995 exist, return nil.
15996
15997 * w32.c: Include thelp32.h, psapi.h and coding.h.
15998 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15999 declarations.
16000 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
16001 (Process32Next_Proc): New typedefs.
16002 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
16003 (g_b_init_process32_next, g_b_init_open_thread_token)
16004 (g_b_init_impersonate_self, g_b_init_revert_to_self)
16005 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
16006 (g_b_init_get_process_working_set_size)
16007 (g_b_init_global_memory_status_ex): New static variables.
16008 (globals_of_w32): Initialize them.
16009 (create_toolhelp32_snapshot, process32_first, process32_next)
16010 (open_thread_token, impersonate_self, revert_to_self)
16011 (get_process_memory_info, get_process_working_set_size)
16012 (global_memory_status, global_memory_status_ex): New wrapper
16013 functions.
16014 (w32_list_system_processes, w32_system_process_attributes)
16015 (enable_privilege, restore_privilege, ltime, process_times):
16016 New functions.
16017 (convert_time_raw): New function.
16018 (convert_time): Remove conversion of FILETIME into time in 100
16019 nsec units, call convert_time_raw instead.
16020
16021 * process.h (w32_list_system_processes, w32_system_process_attributes):
16022 Add prototypes.
16023 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
16024 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
16025 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
16026 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
16027
16028 * process.c (Fsystem_process_attributes): Doc fix.
16029
160302008-08-08 Chong Yidong <cyd@stupidchicken.com>
16031
16032 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
16033 a continued multi-char glyph; if so, advance to the actual glyph.
16034
160352008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
16036
16037 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
16038
16039 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
16040 (.m.o): Use it.
16041 * config.in: Regenerate.
16042
160432008-08-07 Chong Yidong <cyd@stupidchicken.com>
16044
16045 * xdisp.c (redisplay_window): Revert last change.
16046 (try_window): Check bottom scroll margin too.
16047
160482008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16049
16050 * config.in: Regenerate.
16051
16052 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
16053 -list-load-path-shadows'.
16054 (nsgui.h): Reduce number of things depending on it.
16055
160562008-08-06 Chong Yidong <cyd@stupidchicken.com>
16057
16058 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
16059 instead of window-end which does the wrong thing at eob.
16060 (try_cursor_movement): Minor optimization.
16061 (redisplay_window): If scroll margin is defined, don't assume
16062 window doesn't need scrolling.
16063
160642008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16065
16066 * config.in: Regenerate.
16067
16068 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16069 (mostlyclean): Don't delete *.d under NS.
16070
16071 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16072
160732008-08-06 Kenichi Handa <handa@m17n.org>
16074
16075 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16076
160772008-08-06 Andreas Schwab <schwab@suse.de>
16078
16079 * config.in: Regenerate.
16080
160812008-08-05 Chong Yidong <cyd@stupidchicken.com>
16082
16083 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16084 forcing a window start.
16085
16086 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16087 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16088
160892008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16090
16091 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16092 argument.
16093
160942008-08-05 Juanma Barranquero <lekktu@gmail.com>
16095
16096 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16097 <scroll-down-aggressively, before-change-functions>:
16098 <after-change-functions>: Reflow docstrings.
16099
161002008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 16101 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
16102
16103 Dock menu customization, based on a patch by Ken Raeburn, plus some
16104 other fixes.
16105 * nsmenu.m (dockMenu): New variable.
16106 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16107
16108 * nsterm.h (dockMenu): Declare.
16109
16110 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16111 (ns_term_init): Initialize dockMenu.
16112 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16113 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16114 left.
16115
16116 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16117
161182008-08-04 Chong Yidong <cyd@stupidchicken.com>
16119
16120 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16121
16122 * config.in: Regenerate.
16123
161242008-08-04 Seiji Zenitani <zenitani@mac.com>
16125
16126 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16127
161282008-08-04 Chong Yidong <cyd@stupidchicken.com>
16129
16130 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16131
161322008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16133
16134 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16135
16136 * keyboard.h: Comment an #endif.
16137
16138 * lisp.h (have_menus_p): Adjust comment.
16139
16140 * menu.c (find_and_return_menu_selection): Fix comparison with
16141 client_data.
16142
16143 * nsmenu.m (popup_activated_flag): New variable.
16144 (popup_activated): New function.
16145 (menu-or-popup-active-p): New exported lisp definition.
16146 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16147 when popup done.
16148 (ns_popup_dialog): Set popup_activated_flag.
16149
16150 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16151 version for GNUstep (handled by conditional typedef in nsterm.m).
16152 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16153 in rgb.txt).
16154
16155 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16156
16157 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16158
16159 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16160
16161 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16162 shortcircuit if popup_activated like GTK and X toolkit.
16163
16164 * m/inter386.h: Change DARWIN to DARWIN_OS.
16165
16166 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16167 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
16168 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16169 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
16170
161712008-08-03 Chong Yidong <cyd@stupidchicken.com>
16172
16173 * nsterm.m (windowDidResize): Remove stopModal call.
16174
161752008-08-03 Andreas Schwab <schwab@suse.de>
16176
16177 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16178 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16179
161802008-08-02 Chong Yidong <cyd@stupidchicken.com>
16181
16182 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16183 Don't use uninitialized pointer variable when using getrlimit.
16184
161852008-08-02 Jason Rumney <jasonr@gnu.org>
16186
16187 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16188
161892008-08-02 Eli Zaretskii <eliz@gnu.org>
16190
16191 * alloc.c (NSTATICS): Bump to 0x640.
16192
16193 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16194
16195 * lisp.h: Add prototype for directory_files_internal.
16196
16197 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16198 New functions.
16199 (syms_of_process): Defsubr them. Add initializations for various
16200 Q* symbols used in procfs_system_process_attributes.
16201 (procfs_list_system_processes, procfs_system_process_attributes)
16202 [HAVE_PROCFS]: New functions.
16203 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16204 (procfs_get_total_memory): New functions.
16205
162062008-08-01 Juanma Barranquero <lekktu@gmail.com>
16207
16208 * xfaces.c (Fx_load_color_file): Fix previous change;
16209 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16210
162112008-08-01 Michael Albinus <michael.albinus@gmx.de>
16212
16213 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16214
162152008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16216
16217 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16218
162192008-08-01 Chong Yidong <cyd@stupidchicken.com>
16220
16221 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16222
16223 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16224 define NSApplicationDelegateReplySuccess.
16225 (EmacsView -converstationIdentifier): Use long instead of
16226 NSInteger for GNUstep, since it doesn't have NSInteger.
16227
16228 * xmenu.c: Revert last change.
16229
16230 * keyboard.h: Fix last change.
16231
162322008-08-01 Juanma Barranquero <lekktu@gmail.com>
16233
16234 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16235 on Windows.
16236
162372008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16238
16239 Warning clearing and clean-up in NS port.
16240 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16241 Add prototypes.
16242 * nsgui.h (FACE_DEFAULT): Remove, unused.
16243 (XGCValues): Change colors to unsigned long.
16244 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16245 nsterm.m.
16246 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16247 (ns_list_fonts): Remove, unused.
16248 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16249 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16250 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16251 (nsfont_draw): Compare face colors to 0, not nil.
16252 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16253 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16254 (-addSubmenuWithTitle:): Use NSMenuItem class.
16255 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16256 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16257 (ns_clip_to_row): Make gc arg a BOOL.
16258 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16259 ns_clip_to_row() call.
16260 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16261 used). Cast FRAME_FONT assignments.
16262 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16263 (ns_string_to_lispmod): Change arg to const char.
16264 (ns_term_init): Use NSMenuItem class.
16265 (EmacsApp -openFile:): Move to different section of file.
16266 (EmacsApp -application:openFiles:): Don't return a value, call
16267 -replyToOpenOrPrint:.
16268 (EmacsView -keyDown:): Fix up cast.
16269 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16270 (EmacsView -menuDown:): Cast tag in call to
16271 find_and_call_menu_selection().
16272 (ns_list_fonts): Remove, unused.
16273 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16274 (ns_fontname_to_xlfd): Make static.
16275 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16276 Remove prototypes (now in keyboard.h).
16277 (next_menubar_widget_id): Remove, unused.
16278 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16279 Remove prototypes (now in keyboard.h).
16280 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16281
162822008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16283
16284 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16285 (floatfns.o): Depend on syssignal.h.
16286 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16287
16288 * systty.h: Fix previous change that removed BSD_TERMIOS.
16289 Add comments to #ifdefs.
16290
162912008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16292
16293 * w32fns.c (w32-load-color-file): Remove.
16294 (x-open-connection): Use renamed Fx_load_color_file.
16295 * xfaces.c (x-load-color-file): Add.
16296 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16297 Emacs.clr.
16298 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16299
163002008-07-31 Michael Albinus <michael.albinus@gmx.de>
16301
16302 * dbusbind.c (Fdbus_call_method_asynchronously)
16303 (Fdbus_method_error_internal): New defuns.
16304 (xd_read_message): Handle also reply messages.
16305 (Vdbus_registered_functions_table): Extend docstring.
16306
163072008-07-31 Juanma Barranquero <lekktu@gmail.com>
16308
16309 * keyboard.c (gobble_input): Fix previous change.
16310
163112008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16312
16313 * bitmaps/README:
16314 * xfns.c:
16315 * termcap.c:
16316 * term.c:
16317 * syswait.h:
16318 * systty.h:
16319 * systime.h:
16320 * syssignal.h:
16321 * sysdep.c:
16322 * process.h:
16323 * process.c:
16324 * print.c:
16325 * ndir.h:
16326 * lread.c:
16327 * keyboard.c:
16328 * getpagesize.h:
16329 * floatfns.c:
16330 * fileio.c:
16331 * emacs.c:
16332 * doc.c:
16333 * dispnew.c:
16334 * dired.c:
16335 * data.c:
16336 * callproc.c:
16337 * buffer.c:
16338 * README:
16339 * Makefile.in:
16340 * s/template.h:
16341 * s/msdos.h:
16342 * m/vax.h: Remove VMS support.
16343 * s/vms.h:
16344 * vlimit.h:
16345 * uaf.h:
16346 * temacs.opt:
16347 * param.h:
16348 * ioctl.h: Remove file.
16349
163502008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16351
16352 * s/ms-w32.h (MULTI_KBOARD): Remove.
16353 * xterm.c:
16354 * xselect.c:
16355 * xfns.c:
16356 * window.c:
16357 * w32term.c:
16358 * w32fns.c:
16359 * terminal.c:
16360 * termhooks.h:
16361 * term.c:
16362 * sysdep.c:
16363 * keyboard.h:
16364 * keyboard.c:
16365 * frame.h:
16366 * frame.c:
16367 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16368 * config.in: Regenerate.
16369
163702008-07-30 Jason Rumney <jasonr@gnu.org>
16371
16372 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16373
16374 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16375 (w32font_open_internal): Get unicode version of textmetrics.
16376 Don't enable or disable glyph indices here.
16377 (w32font_open): Disable use of glyph indices.
16378
16379 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16380
163812008-07-30 Chong Yidong <cyd@stupidchicken.com>
16382
16383 * minibuf.c (Vread_buffer_function): Doc fix.
16384
163852008-07-30 John Paul Wallington <jpw@pobox.com>
16386
16387 * minibuf.c (read_buffer_completion_ignore_case): New var.
16388 (Fread_buffer): Use it.
16389
163902008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16391
16392 * systty.h (sensemode): Remove empty #if. Remove reference to
16393 BSD_TERMIOS, unused.
16394
16395 * sysdep.c: Remove reference to DGUX.
16396 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16397
16398 * config.in: Regenerate.
16399
164002008-07-30 Jason Rumney <jasonr@gnu.org>
16401
16402 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16403
164042008-07-29 Jason Rumney <jasonr@gnu.org>
16405
16406 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16407 is populated.
16408 (uniscribe_encode_char): Always use uniscribe.
16409 Avoid using context if cache is populated.
16410
164112008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16412
16413 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16414 open menu.
16415
16416 * gtkutil.c (menu_nav_ended): Remove.
16417 (create_menus): Remove signal connect for menu_nav_ended.
16418
164192008-07-28 Chong Yidong <cyd@stupidchicken.com>
16420
16421 * xdisp.c (redisplay_window): Check return value of
16422 compute_window_start_on_continuation_line before forcing a window
16423 start.
16424
164252008-07-28 Jason Rumney <jasonr@gnu.org>
16426
16427 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16428
16429 * w32term.c (w32_enable_unicode_output, cleartype_active):
16430 Remove obsolete display options.
16431 (x_draw_glyph_string_background): Don't use old cleartype_active
16432 workaround.
16433 (w32_initialize): Remove cleartype_active initialization.
16434 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16435
164362008-07-28 Andreas Schwab <schwab@suse.de>
16437
16438 * lisp.h (init_weak_hash_tables, syms_of_font)
16439 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16440 (remove_hash_entry): Don't declare.
16441 * eval.c (maybe_call_debugger): Make static and move before use.
16442 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16443 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16444 * xterm.h (x_set_frame_alpha): Declare.
16445
164462008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16447
16448 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16449 (create_menus): Connect selection-done to menu_nav_ended.
16450
164512008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16452
16453 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16454 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16455 parameter with read of 'alpha' one.
16456 (Qns_frame_parameter): Remove.
5582fbc7 16457 * nsselect.m (selection-coding-system)
aac0c6e3
MR
16458 (next-selection-coding-system, Vselection_coding_system)
16459 (Vnext_selection_coding_system): Drop.
16460
164612008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16462
16463 * nsfns.m (do-applescript, do_applescript): Rename to
16464 ns-do-applescript, ns_do_applescript, and move within file.
16465
164662008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16467
16468 Remove support for Mac Carbon.
16469 * mactoolbox.c:
16470 * macterm.h:
16471 * macterm.c:
16472 * macselect.c:
16473 * macmenu.c:
16474 * macgui.h:
16475 * macfns.c:
16476 * mac.c: Remove file.
16477 * s/darwin.h:
16478 * m/intel386.h:
16479 * xfaces.c:
16480 * xdisp.c:
16481 * window.c:
16482 * tparam.c:
16483 * termhooks.h:
16484 * termcap.c:
16485 * term.c:
16486 * syssignal.h:
16487 * sysselect.h:
16488 * sysdep.c:
16489 * process.c:
16490 * lread.c:
16491 * lisp.h:
16492 * keyboard.c:
16493 * image.c:
16494 * fringe.c:
16495 * frame.h:
16496 * frame.c:
16497 * fontset.c:
16498 * font.h:
16499 * font.c:
16500 * fns.c:
16501 * fileio.c:
16502 * emacs.c:
16503 * dispnew.c:
16504 * dispextern.h:
16505 * config.in:
16506 * atimer.c:
2ae37cf0 16507 * Makefile.in: Remove code for Carbon.
aac0c6e3 16508
f0131492 165092008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
16510
16511 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16512
165132008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16514
16515 * macterm.h (kCGBitmapByteOrder32Host): New define for
16516 non-universal SDKs.
16517
16518 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16519 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16520
16521 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16522 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16523
165242008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16525
16526 * w32inevt.c: Include dispextern.h.
16527
165282008-07-26 Andreas Schwab <schwab@suse.de>
16529
16530 * print.c (print_object): Fix off-by-one in last change.
16531
165322008-07-25 Juanma Barranquero <lekktu@gmail.com>
16533
16534 * term.c (syms_of_term): Don't initialize default_orig_pair,
16535 default_set_foreground and default_set_background on Windows.
16536
165372008-07-25 Jason Rumney <jasonr@gnu.org>
16538
16539 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16540 ScriptItemize. Clean up return value checking. Remove unused
16541 variables.
16542 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16543 shaping engine.
16544
16545 * w32font.c (w32font_has_char): Handle the case where we can't
16546 determine the script for a character.
16547
165482008-07-25 Chong Yidong <cyd@stupidchicken.com>
16549
16550 * term.c (syms_of_term): Initialize default_orig_pair,
16551 default_set_foreground, and default_set_background.
16552
16553 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16554 clash (bug#86).
16555 (getloadavg): Callers changed.
16556
16557 * image.c (svg_load_image): Fix last change.
16558 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16559 image size is valid. Use g_object_unref instead of deprecated
16560 rsvg_handle_free to free rsvg handle.
16561 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16562
165632008-07-25 Jason Rumney <jasonr@gnu.org>
16564
16565 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16566 surrogates before looking up glyph index.
16567 (w32font_text_extents): Encode as surrogates if falling back to
16568 functions that need UTF-16 wide chars.
16569
16570 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16571 BMP as surrogates before looking up glyph index.
16572
165732008-07-25 Chong Yidong <cyd@stupidchicken.com>
16574
16575 * image.c (svg_load_image): Check for failure in return value of
16576 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16577
165782008-07-25 Jason Rumney <jasonr@gnu.org>
16579
16580 * w32font.c (Fx_select_font): Reverse sense of second arg.
16581
165822008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16583
16584 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16585 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16586
16587 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16588 (PURESIZE): Use it.
16589
165902008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16591
16592 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16593 * m/alpha.h (TEXT_END):
16594 * m/ibmrs6000.h (TEXT_END):
16595 * m/macppc.h (TEXT_END):
16596 * s/darwin.h (TEXT_END):
16597 * s/msdos.h (TEXT_END): Remove, unused.
16598 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16599 * s/cygwin.h: Remove comment.
16600
16601 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16602 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16603 * m/intel386.h (DOT_GLOBAL_START):
16604 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16605 (USG): Remove, file not used on USG platforms.
16606
16607 * Makefile.in (HAVE_X11): Remove empty #else.
16608
166092008-07-24 Andreas Schwab <schwab@suse.de>
16610
16611 * fileio.c (Finsert_file_contents): Properly adjust undo list
16612 after format conversion.
16613
166142008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16615
16616 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16617 (menu_nav_ended): Remove.
16618 (create_menus): Remove signal connect for menu_nav_ended.
16619 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16620 create_menus.
16621 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16622
166232008-07-23 Jason Rumney <jasonr@gnu.org>
16624
16625 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16626 with opened font.
16627 (w32font_open): Set font type to gdi.
16628
16629 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16630
166312008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16632
16633 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16634 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16635 defines it.
16636 * unexec.c (ADDR_CORRECT): Define unconditionally.
16637
16638 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16639
16640 * unexec.c: Remove code depending on !COFF and USG, the file is
16641 not used for such systems.
16642
16643 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16644 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16645 (LD_SWITCH_SYSTEM_1): Remove, update users.
16646
16647 * s/darwin.h (DATA_END):
16648 * m/intel386.h (DATA_END):
16649 * m/ibmrs6000.h (DATA_END):
16650 * m/alpha.h (DATA_END): Remove, unused.
16651
16652 * config.in: Regenerate.
16653 * s/ms-w32.h (subprocesses): Define unconditionally.
16654 * s/template.h (subprocesses): Update comment.
16655 * s/vms.h (subprocesses):
16656 * s/usg5-4.h (subprocesses):
16657 * s/hpux10-20.h (subprocesses):
16658 * s/gnu-linux.h (subprocesses):
16659 * s/cygwin.h (subprocesses):
16660 * s/bsd-common.h (subprocesses):
16661 * s/aix4-2.h (subprocesses):
16662 * s/darwin.h (subprocesses): Do not define, defined by default now.
16663
16664 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16665 Remove all references.
16666 (temacs): Add GNUstep specific ld flags.
16667
16668 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16669 similarly to what X does.
16670
166712008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16672
16673 * nsfns.m (x-list-fonts): Remove.
16674 (syms_of_nsfns): Drop the x-list-fonts declaration.
16675 * nsterm.m: Get rid of remaining "//" comments.
16676
166772008-07-22 Chong Yidong <cyd@stupidchicken.com>
16678
16679 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16680
16681 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16682 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16683 (Fns_own_selection_internal, Fx_disown_selection_internal)
16684 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16685
16686 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16687 ... */' style of docstrings. Doc fixes.
16688
166892008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16690
16691 * terminfo.c (UP, BC, PC): Undo previous change.
16692
16693 * nsfns.m: Rename ns prefixed functions/variables to the
16694 corresponding x versions. Update references.
16695
166962008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16697
16698 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16699
167002008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16701
16702 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16703 Remove forwarding functions.
16704 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16705 non-static.
16706 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16707 non-static.
16708 (ns_frame_parm_handlers): Use the new names.
16709 (syms_of_nsfns): Move to the end of file.
16710
16711 * nsterm.m (syms_of_nsterm): Move to the end of file.
16712
16713 * dispnew.c (init_display): Remove code for X10.
16714
167152008-07-22 Jason Rumney <jasonr@gnu.org>
16716
16717 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16718 bare drive.
16719
167202008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16721
16722 * nsterm.m (syms_of_nsterm): Remove debugging println.
16723
167242008-07-22 David Reitter <david.reitter@gmail.com>
16725
16726 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16727 Carbon implementation of the same functionality: execute arbitrary
16728 AppleScript code.
16729
167302008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16731
16732 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16733 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16734 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16735 (Fx_display_mm_height, Fx_display_mm_width)
16736 (Fx_display_backing_store, Fx_display_visual_class)
16737 (Fx_display_save_under, Fx_open_connection)
16738 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16739 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16740 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16741 (Fx_display_pixel_width, Fx_display_pixel_height)
16742 (Fx_display_usable_bounds, Fx_display_planes)
16743 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16744 ... */' style of docstrings.
16745
167462008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16747
16748 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16749 on this platform.
16750 (mips):
16751 * m/iris4d.h (mips): Do not define.
16752 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16753
16754 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16755
16756 * image.c:
16757 * nsfns.m:
16758 * nsselect.m:
16759 * nsterm.h:
16760 * nsterm.m: Rename ns prefixed functions/variables to the
16761 corresponding x versions. Update references.
16762
16763 * m/ibms390x.h (NO_REMAP): Do not undefine.
16764
16765 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16766
167672008-07-21 Chong Yidong <cyd@stupidchicken.com>
16768
16769 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16770 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16771 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16772 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16773 (Fns_display_mm_height, Fns_display_mm_width)
16774 (Fns_display_backing_store, Fns_display_visual_class)
16775 (Fns_display_save_under, Fns_open_connection)
16776 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16777 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16778 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16779 (Fns_display_pixel_width, Fns_display_pixel_height)
16780 (Fns_display_usable_bounds, Fx_display_planes)
16781 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16782
167832008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16784
16785 * print.c (print_object): Check print_depth before searching for
16786 circularities.
16787
167882008-07-21 Michael Albinus <michael.albinus@gmx.de>
16789
16790 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16791 only sprintf.
16792
167932008-07-21 Kenichi Handa <handa@m17n.org>
16794
16795 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16796
167972008-07-20 Andreas Schwab <schwab@suse.de>
16798
16799 * syntax.c (find_start_pos, find_start_value)
16800 (find_start_value_byte, find_start_begv, find_defun_start)
16801 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16802
168032008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16804
16805 * s/sol2-3.h: Insert contents of s/sol2.h.
16806 (LD_SWITCH_SYSTEM): Remove redundant definition.
16807 * s/sol2.h: Remove, unused.
16808
168092008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16810
16811 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16812
168132008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16814
16815 * Makefile.in (ns_appdir): Fix typo in find command.
16816
168172008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16818
16819 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16820
16821 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16822 added not supported anymore.
16823
16824 * s/usg5-4-2.h (LIBS_SYSTEM):
16825 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16826
16827 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16828 * s/lynxos.h (GETPGRP_NO_ARG):
16829 * s/hpux10-20.h (NO_SIOCTL_H):
16830 * s/gnu.h (GETPGRP_NO_ARG):
16831 * s/gnu-linux.h (NO_SIOCTL_H):
16832 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16833 * s/cygwin.h (GETPGRP_NO_ARG):
16834 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16835 (C_DEBUG_SWITCH): Remove duplicate definition.
16836
16837 * m/ibms390.h: Remove boilerplate comments.
16838
16839 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16840
16841 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16842 (wait_reading_process_output): Remove code for SunOS, platform not
16843 supported anymore. Use SOLARIS2 instead of sun.
16844
168452008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16846
16847 * font.c (font_open_by_name): Under NS, default lface height to zero.
16848 (font_open_for_lface): Under NS, set size based on frame fontsize.
16849 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16850 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16851
168522008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16853
16854 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16855 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16856 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16857 YES/NO.
16858 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16859 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16860 * Makefile.in (clean): Clear out build destination dir.
16861
168622008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16863
16864 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16865 xterm, xselect.
16866 * lisp.h: Remove declaration of hash_remove.
16867 * nsgui.h: Remove redefinitions of hash_remove.
16868 * fns.c (hash_remove): Rename to hash_remove_from_table.
16869
168702008-07-19 Seiji Zenitani <zenitani@mac.com>
16871
16872 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16873 strdup() the family UTF8String before modifying it.
16874
168752008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16876
16877 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16878 NS_FACE_BACKGROUND with 0 instead of nil.
16879 * nsfont.m (nsfont_draw): Same.
16880
168812008-07-19 Chong Yidong <cyd@stupidchicken.com>
16882
16883 * nsfns.m (ns_set_background_color): Fix crash.
16884
168852008-07-18 Chong Yidong <cyd@stupidchicken.com>
16886
16887 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16888
168892008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16890
16891 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16892
168932008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16894
16895 * gtkutil.c: Include <config.h> instead of "config.h".
16896
16897 * lisp.h (Foverlay_buffer): Add EXFUN.
16898
16899 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16900 child process to complete child_setup. Undo 2005-09-21 change.
16901
16902 * s/darwin.h: Mention setsid after vfork.
16903
169042008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16905
16906 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16907 Depend on macgui.h.
16908
16909 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16910 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16911
16912 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16913 and f19.
16914 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16915
16916 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16917 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16918 Remove enumerators.
16919
16920 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16921 Check if FACE_FROM_ID returns NULL.
16922
169232008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16924
16925 * w32inevt.c (change_frame_size): Remove extern declaration.
16926 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16927 change_frame_size.
16928
169292008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16930
16931 * getloadavg.c: Revert last change (2008-07-15).
16932
169332008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16934
16935 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 16936 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
16937 from configure.
16938
169392008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16940
16941 * s/sol2.h:
16942 * s/sol2-4.h: Reorganize conditionals.
16943
16944 * ecrt0.c: Remove code depending on m68000, not used anymore.
16945
16946 * fns.c (hash_remove): Make static.
16947 * lisp.h (hash_remove): Don't prototype.
16948
16949 * m/ibmrs6000.h:
16950 * m/ibms390x.h:
16951 * m/macppc.h: Remove boilerplate comments.
16952
16953 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16954 Solaris, which does not need them.
16955
16956 * m/vax.h: Remove comments about unsupported systems.
16957
16958 * s/darwin.h: Reorganize ifdefs.
16959
169602008-07-17 Andreas Schwab <schwab@suse.de>
16961
16962 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16963
169642008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16965
16966 Use SDATA. Follow coding convention of placing operators at
16967 beginning of next line rather than end of previous line, and placing
16968 spaces around infix operators.
16969
16970 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16971 in case it was defined already.
16972 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16973 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16974 ns_default.
16975 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16976 Lisp_Objects.
16977 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16978 (ns_defined_color, ns_color_to_lisp): Declare.
16979 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16980 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16981 it's accepted even with USE_LISP_UNION_TYPE.
16982 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16983 (update_frame_tool_bar): Remove apparently obsolete tests for
16984 non-integerness of f->tool_bar_lines.
16985 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16986 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16987 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16988 (nsfont_open): Don't confuse NULL for Qnil.
16989 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16990 * menu.h (find_and_call_menu_selection):
16991 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16992 (find_and_return_menu_selection): Always return something.
16993 * frame.h: Include dispextern.h for Display_Info.
16994 (display_x_get_resource): Declare.
16995
169962008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16997
16998 * syntax.c: Remove stdio.h include accidentally introduced in
16999 Emacs.app commit.
17000 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
17001 NS_IMPL_COCOA.
17002 * keyboard.c (handle_async_input, input_available_signal): Remove
17003 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
17004
170052008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17006
17007 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
17008 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
17009 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
17010 Use SDATA.
17011
17012 * keymap.c: Remove all NS-specific code.
17013 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
17014 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
17015 where_is_preferred_modifier, return a different value depending on how
17016 preferred is the binding.
17017 (where_is_internal): Adjust accordingly.
17018 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
17019 Adjust to new preferred_sequence_p.
17020 (syms_of_keymap): Declare `where-is-preferred-modifier'.
17021 * keyboard.c (parse_solitary_modifier): Not static any more.
17022 * keyboard.h (parse_solitary_modifier): Declare.
17023
170242008-07-16 Andreas Schwab <schwab@suse.de>
17025
17026 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
17027 of easymenu.
17028
170292008-07-16 Chong Yidong <cyd@stupidchicken.com>
17030
17031 * xdisp.c (move_it_in_display_line): Account for word wrap, so
17032 that we don't move off the line.
17033
170342008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17035
17036 * keyboard.c (Qsuper): Remove.
17037 (parse_menu_item): Don't call where_is_internal specially for NS.
17038
170392008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17040
17041 * s/gnu-linux.h: Remove boilerplate comments.
17042
17043 * m/alpha.h (__ELF__): Consolidate conditions.
17044
17045 * m/m68k.h (linux): Use GNU_LINUX instead.
17046 Remove boilerplate comments.
17047
17048 * m/intel386.h: Undo refactoring from previous change.
17049 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
17050 too, remove dead code.
17051 (linux): Use GNU_LINUX instead.
17052
170532008-07-16 Jason Rumney <jasonr@gnu.org>
17054
17055 * w32gui.h: Repeat 26 June changes lost by last change.
17056
170572008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17058
17059 * systty.h: Remove code for Aix on 386, unsupported platform.
17060
17061 * s/ms-w32.h: Remove boilerplate comments.
17062 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
17063
17064 * s/gnu-linux.h (TERM): Remove support.
17065 (HAVE_SYSVIPC): Remove, unused.
17066 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17067 for this system.
17068
17069 * process.c: Remove support for IRIS, unused.
17070 Remove support for TERM, not relevant anymore.
17071
17072 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17073 used with the definition.
17074
17075 * s/aix4-2.h (static): Do not undef.
17076
17077 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17078 only used on Aix.
17079 (HAVE_SYSVIPC): Remove, unused.
17080
17081 * m/hp800.h (CANNOT_DUMP): Do not undef.
17082
17083 * m/alpha.h: Fix comment.
17084
17085 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17086 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17087 used by this configuration.
17088 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17089 * unexec.c: Remove code depending on HPUX and
17090 USG_SHARED_LIBRARIES, not used with this file. Remove code
17091 depending on IRIS, unused. Remove if 0-ed code.
17092
17093 * s/template.h: Remove comments about static.
17094
17095 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17096 Remove if 0-ed code.
17097 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17098 were the same as the default.
17099 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17100 Remove boilerplate comments.
17101 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17102 (HAVE_SYSVIPC): Remove, unused.
17103 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17104
17105 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17106 Remove boilerplate comments.
17107 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17108 Remove boilerplate comments.
17109 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17110 Remove boilerplate comments.
17111 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17112
17113 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17114 USG systems which do not use DATA_SEG_BITS.
17115 Refactor code. Remove boilerplate comments.
17116
17117 * m/ibms390.h:
17118 * m/m68k.h:
17119 * s/bsd-common.h:
17120 * s/cygwin.h:
17121 * s/darwin.h:
17122 * s/freebsd.h:
17123 * s/gnu.h:
17124 * s/msdos.h: Remove boilerplate comments.
17125
17126 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 17127 do not use this file.
aac0c6e3
MR
17128 (IRIS_4D): Remove, unused.
17129
17130 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 17131 do not use this file.
aac0c6e3
MR
17132 (SIGN_EXTEND_CHAR):
17133 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17134 * unexmips.c: Remove file, unused.
17135
17136 * editfns.c (Fuser_full_name): Replace the only use of
17137 USER_FULL_NAME with its value.
17138 * config.in: Regenerate.
17139
171402008-07-16 David Reitter <david.reitter@gmail.com>
17141
17142 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17143 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17144
171452008-07-16 Glenn Morris <rgm@gnu.org>
17146
17147 * emacs.c (system-type): Doc fix.
17148
171492008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17150
17151 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17152 If the cache doesn't work, let's fix it, rather than work around it.
17153
171542008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17155
17156 * Makefile.in: Correct additions for nsfont.o in last commit.
17157 * nsfont.m: New file (forgot last commit).
17158
171592008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17160
bba3e508
SM
17161 * callproc.c (set_initial_environment):
17162 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
17163 batch-compiling for bootstrap).
17164
171652008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 17166 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 17167
c4cc8b9a
JB
17168 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17169 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
17170
171712008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17172
17173 Changes and additions for NeXTstep windowing system (Cocoa and
17174 GNUstep) support.
17175
17176 * Makefile.in:
17177 * config.in: Support defines and build commands for NS port.
17178 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17179 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17180 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17181 windowing.
17182 (struct face): Add synth_ital field.
17183 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17184 (init_display): Initialize Vinitial_window_system to "ns" when so
17185 compiled.
17186 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17187 (display_arg): Use under NS.
17188 (main): Under NS, allocate autorelease pool and handle command line
17189 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17190 (standard_args): Add NS-specific args.
17191 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17192 * font.c (DEFAULT_ENCODING): New variable.
17193 (font_find_for_lface): Use it.
17194 (syms_of_font): Load syms_of_nsfont under NS.
17195 * font.h: Declare nsfont_driver when compiled under NS.
17196 * fontset.c: When compiling under NS, include nsterm.h.
17197 (fontset_from_font): Autoconstruct fontset under NS.
17198 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17199 symbol, document and use it.
17200 (do_switch_frame): When for_deletion under Cocoa, add
17201 Fraise_frame(Qnil).
17202 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17203 (x_get_arg): Allow "yes" and "no" as boolean values.
17204 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17205 Qright under Cocoa.
17206 (focus-follows-mouse): Default to 0 under NS.
17207 * frame.h (enum output_method): Add output_ns.
17208 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17209 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17210 (FRAME_WINDOW_P): NS-specific definition.
17211 * fringe.c (max_used_fringe_bitmap): Make public.
17212 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17213 (getloadavg): Use NeXT code under descendant OS's.
17214 * image.c (includes and header section, x_create_bitmap_from_data)
17215 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17216 (image_background_transparent, x_clear_image_1)
17217 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17218 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17219 (x_to_xcolors, x_from_xcolors, x_disable_image)
17220 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17221 other GUIs, including XPM support using code originally written for
17222 Carbon GUI.
17223 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17224 using NS API.
17225 (image_ascent): Use font metrics macros instead of direct struct field
17226 access.
17227 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17228 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17229 Also, handle NS as GTK for menu bar purposes.
17230 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17231 toolkit where they differ.
17232 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17233 use cachelist, still needed under NS.
17234 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17235 (struct widget_value): Define it here for menu.c.
17236 * keymap.c (includes): Include modifier internals.
17237 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17238 NS.
17239 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17240 support for preferring sequences using certain modifiers, specified by
17241 the FIRSTONLY argument.
17242 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17243 under NS GNUstep implementation.
17244 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17245 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17246 * menu.c: Include nsterm.h under NS.
17247 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17248 (free_menubar_widget_tree_value, update_submenu_strings)
17249 (find_and_call_menu_selection): Treat NS as X and NT.
17250 (find_and_return_menu_selection): New function, used for popup menus.
17251 * nsgui.h:
17252 * nsterm.h:
17253 * nsfns.m:
17254 * nsimage.m:
17255 * nsmenu.m:
17256 * nsselect.m:
17257 * nsterm.m: New files.
17258 * process.c (wait_reading_process_output): Under NS, call ns_select()
17259 instead of plain select().
17260 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17261 beginning of buffer.
17262 * sysselect.h (init_process): Rename when compiling under Cocoa to
17263 avoid name conflict.
17264 * termhooks.h (display_info): Add ns_display_info to union.
17265 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17266 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17267 COCOA environment.
17268 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17269 unexec() signature. (Note, this will dump, but the resulting file
17270 crashes; unexosx is used instead; keeping around for reference and
17271 possible aid in getting dump working under GNUstep.)
17272 * w32gui.h (button_type, widget_value): Remove definitions (now in
17273 keyboard.h).
17274 * window.c: Include nsterm.h when compiling under NS.
17275 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17276 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17277 other GUI windowing systems.
17278 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17279 GTK.
17280 (x_consider_frame_title): Under NS, set icon type and frame
17281 modified-state indicator; use ns_set_name_as_filename() when using
17282 formatted title.
17283 (update_window_cursor): Make public when compiling under NS.
17284 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17285 (hourglass_atimer, Vhourglass_delay
17286 * xfaces.c (header section, init_frame_faces, clear_font_table)
17287 (defined_color, unload_color, x_face_list_fonts)
17288 (prepare_face_for_display): Add NS support parallel to other GUIs.
17289 Emulate GCs like other non-X GUIs.
17290 (split_font_name): Don't lowercase font name under NS.
17291 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17292 under NS.
17293 * s/darwin.h: Add support for compilation under NS.
17294
172952008-07-15 Jason Rumney <jasonr@gnu.org>
17296
17297 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17298 (w32_show_hourglass): Rename from show_hourglass.
17299 (w32_hide_hourglass): Rename from hide_hourglass.
17300 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17301 (Vhourglass_delay): Declare extern.
17302 (hourglass_started): Remove.
17303
17304 * xdisp.c (Vhourglass_delay): Remove static.
17305 (hourglass_started, start_hourglass, cancel_hourglass):
17306 Don't include these versions on WINDOWSNT.
17307
173082008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17309
17310 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17311 variables (formerly in xfns.c).
17312 (show_hourglass, hide_hourglass): New prototypes (same).
17313 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17314 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17315 in xfns.c).
17316 (syms_of_xdisp): Declare/initialize display-hourglass,
17317 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17318 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17319 formerly in xfns.c.
17320 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17321 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17322 (start_hourglass, cancel_hourglass): Remove.
17323 (show_hourglass, hide_hourglass): Remove prototypes and static
17324 modifiers.
17325 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17326 hourglass_atimer, hourglass_shown_p declaration/initialization.
17327 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17328 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17329 (start_hourglass, cancel_hourglass): Remove.
17330 (show_hourglass, hide_hourglass): Remove prototypes and static
17331 modifiers.
17332 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17333 hourglass_atimer, hourglass_shown_p declaration/initialization.
17334 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17335 (DEFAULT_HOURGLASS_DELAY): Remove.
17336 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17337 hourglass_shown_p declaration/initialization.
17338
173392008-07-14 Jason Rumney <jasonr@gnu.org>
17340
17341 * w32fns.c (w32_get_arg): Remove wrapper function.
17342 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17343 directly.
17344 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17345
173462008-07-14 Kenichi Handa <handa@m17n.org>
17347
17348 * xfont.c (xfont_open): Add workaround for X's bug.
17349
173502008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17351
17352 * fontset.c: Include <stdio.h> unconditionally.
17353
173542008-07-13 Michael Albinus <michael.albinus@gmx.de>
17355
17356 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17357 for filtering.
17358
173592008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17360
17361 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17362
17363 * m/macppc.h:
17364 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17365
c4cc8b9a 17366 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
17367 (SPECIAL_EMACS_INT):
17368 * m/ia64.h (SPECIAL_EMACS_INT):
17369 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17370 * s/gnu.h (NLIST_STRUCT):
17371 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17372 * s/gnu-linux.h (LINUX):
17373 * s/msdos.h (HAVE_FACES):
17374 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17375
17376 * systty.h:
17377 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17378 anymore.
17379
173802008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17381
17382 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17383 always defined as int.
17384
17385 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17386 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17387 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17388 * s/freebsd.h (HAVE_WAIT_HEADER):
17389 * s/bsd-common.h (HAVE_UNION_WAIT):
17390 * s/aix4-2.h (HAVE_WAIT_HEADER):
17391 * m/mips.h (HAVE_UNION_WAIT):
17392 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17393 (COFF, static): Do not define, they are undefined later in the file.
17394
17395 * process.c (update_status): Don't use a union.
17396 (status_convert):
17397 (sigchld_handler): Use int instead of WAITTYPE.
17398
173992008-07-12 Chong Yidong <cyd@stupidchicken.com>
17400
17401 * indent.c (Fvertical_motion): Restore hscroll before moving to
17402 goal column.
17403
174042008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17405
17406 * lisp.h: Remove left over code.
17407
174082008-07-11 Andreas Schwab <schwab@suse.de>
17409
17410 * lisp.h: Fix logic in last change.
17411
17412 * menu.h: New file.
17413 * menu.c: Include it.
17414 * xmenu.c: Likewise.
17415 * Makefile.in: Update dependencies.
17416
174172008-07-11 Kenichi Handa <handa@m17n.org>
17418
17419 * fontset.c (fontset_from_font): Cancel the previous change.
17420
174212008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17422
17423 * lisp.h:
17424 * w32heap.c:
17425 * emacs.c:
17426 * alloc.c: Replace all references of NO_UNION_TYPE with
17427 USE_LISP_UNION_TYPE.
17428
17429 * m/xtensa.h (NO_UNION_TYPE):
17430 * m/vax.h (NO_UNION_TYPE):
17431 * m/template.h (NO_UNION_TYPE):
17432 * m/sparc.h (NO_UNION_TYPE):
17433 * m/mips.h (NO_UNION_TYPE):
17434 * m/macppc.h (NO_UNION_TYPE):
17435 * m/m68k.h (NO_UNION_TYPE):
17436 * m/iris4d.h (NO_UNION_TYPE):
17437 * m/intel386.h (NO_UNION_TYPE):
17438 * m/ibms390x.h (NO_UNION_TYPE):
17439 * m/ibms390.h (NO_UNION_TYPE):
17440 * m/ibmrs6000.h (NO_UNION_TYPE):
17441 * m/ia64.h (NO_UNION_TYPE):
17442 * m/hp800.h (NO_UNION_TYPE):
17443 * m/arm.h (NO_UNION_TYPE):
17444 * m/amdx86-64.h (NO_UNION_TYPE):
17445 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17446 defining it the same.
17447
174482008-07-10 Chong Yidong <cyd@stupidchicken.com>
17449
17450 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17451
174522008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17453
17454 * fileio.c:
50426a04 17455 * sysdep.c:
aac0c6e3
MR
17456 * systty.h:
17457 * m/ibmrs6000.h:
17458 * m/iris4d.h:
17459 * s/aix4-2.h:
17460 * s/freebsd.h:
17461 * s/gnu-linux.h:
17462 * s/hpux10-20.h:
17463 * s/hpux11.h:
17464 * s/netbsd.h:
17465 * s/sol2-3.h:
17466 * s/sol2-4.h:
17467 * s/sol2.h:
17468 * s/usg5-4.h:
17469 * s/vms.h: Remove references to unused variables.
17470
174712008-07-10 Andreas Schwab <schwab@suse.de>
17472
17473 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17474 pattern before matching the generic family.
17475
174762008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17477
17478 * unexec.c:
17479 * s/vms.h:
17480 * s/usg5-4-2.h:
17481 * s/sol2-5.h:
17482 * s/freebsd.h:
17483 * s/darwin.h: Remove dead code.
17484
17485 * m/template.h:
17486 * m/sparc.h:
17487 * m/mips.h:
17488 * m/m68k.h:
17489 * m/iris4d.h:
17490 * m/intel386.h:
17491 * m/ibms390x.h:
17492 * m/ibms390.h:
17493 * m/ia64.h:
17494 * m/hp800.h:
17495 * m/arm.h:
17496 * m/amdx86-64.h: Remove dead code and references to unused
17497 and compiler defined symbols.
17498
17499 * unexmips.c:
17500 * unexelf.c: Remove references to desupported systems.
17501
17502 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17503
17504 * m/powermac.h: Remove boilerplate comments.
17505 (NO_REMAP): Remove unused definition.
17506
17507 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17508 define them.
17509
175102008-07-10 Kenichi Handa <handa@m17n.org>
17511
17512 * xfont.c (xfont_open): Log the reason of failure.
17513
175142008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17515
17516 * fontset.c (fontset_get_font_group):
17517 * font.c (font_check_otf): Specify argument types.
17518
175192008-07-09 Kenichi Handa <handa@m17n.org>
17520
17521 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17522 non-ASCII char is found.
17523
17524 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17525 (reorder_font_vector): Change the arg preferred_family to font.
17526 Prefer the spec matching with font.
17527 (fontset_get_font_group): New function.
17528 (fontset_find_font): Change the format of an element of a realized
17529 fontset. Use fontset_get_font_group.
17530 (fontset_font): Try the current fontset, the default fontset, the
17531 fallbacks of the current fontset, and the fallbacks of the default
17532 fontset in this order.
17533 (face_for_char): Delete the shortcut to use the current font.
17534 (fontset_from_font): Don't set fonts for Latin in the fontset.
17535
17536 * font.h (font_make_object, font_match_p): Adjust prototypes.
17537
17538 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17539
17540 * font.c (font_make_object): New arg entity and pixelsize.
17541 (font_check_otf_features, font_check_otf): New functions.
17542 (font_match_p): Check :lang, :script, and :otf properties.
17543
17544 * xfont.c (xfont_open): Adjust it for the change of
17545 font_make_object.
17546 (xfont_text_extents): Fix initial setting of metrics.
17547
17548 * ftfont.c (struct ftfont_info): New member index, delete member
17549 fc_charset_idx. Make the member order compatible with struct
17550 xftfont_info.
17551 (fc_charset_table): Change charset names to registry names.
17552 (ftfont_pattern_entity): Delete the args registry and
17553 fc_charset_idx. Change the value of :font-entity property
17554 to (FONTNAME . INDEX). Always set :registry property to
17555 `iso10646-1'.
17556 (struct ftfont_cache_data): New struct.
17557 (ftfont_lookup_cache): New arg for_face.
17558 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17559 (ftfont_driver): Set the member otf_capability.
17560 (ftfont_get_charset): Adjust it for the change of
17561 fc_charset_table.
17562 (OTF_TAG_SYM): New macro.
17563 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17564 for the change of fc_charset_table.
17565 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17566 ftfont_pattern_entity. Add FC_INDEX to objset.
17567 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17568 and ftfont_pattern_entity.
17569 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17570 font_make_object, struct ftfont_info.
17571 (ftfont_has_char): Use ftfont_get_fc_charset.
17572 (ftfont_otf_features, ftfont_otf_capability): New functions.
17573 (ftfont_shape): Use ftfont_get_otf.
17574 (ftfont_text_extents): Fix initial setting of metrics.
17575
17576 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17577 member order compatible with struct ftfont_info.
bba3e508
SM
17578 (xftfont_open): Add FC_CHARSET to the pattern.
17579 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
17580 properties if appropriate.
17581 (xftfont_close): Unlock the face.
17582 (xftfont_anchor_point, xftfont_shape): Deleted.
17583 (syms_of_xftfont): Don't set members anchor_point and shape of
17584 xftfont_driver.
17585
17586 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17587 font_make_object.
17588
17589 * w32font.c (w32font_open): Adjust it for the change of
17590 font_make_object.
17591 (w32font_open_internal): Don't set properties of font_object here.
17592
175932008-07-08 Chong Yidong <cyd@stupidchicken.com>
17594
17595 * macfns.c (x_create_tip_frame):
17596 * w32fns.c (x_create_tip_frame):
17597 * xfns.c (x_create_tip_frame): Pass parameter argument to
17598 face-set-after-frame-default.
17599
17600 * xfaces.c (Finternal_merge_in_global_face): Save merged
17601 attributes for the default face back into the face vector.
17602
176032008-07-08 Andreas Schwab <schwab@suse.de>
17604
17605 * fontset.h: Declare fontset_from_font. Don't declare
17606 new_fontset_from_font and fontset_from_font_name.
17607 * xterm.c: Include "fontset.h".
17608 * Makefile.in (xterm.o): Update dependencies.
17609
176102008-07-08 Glenn Morris <rgm@gnu.org>
17611
17612 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17613 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17614
176152008-07-07 Chong Yidong <cyd@stupidchicken.com>
17616
17617 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17618 (x_set_frame_parameters): Don't bind it.
17619
176202008-07-07 Juanma Barranquero <lekktu@gmail.com>
17621
17622 * w32fns.c (map_w32_filename): Declare extern.
17623
176242008-07-07 Jason Rumney <jasonr@gnu.org>
17625
17626 * w32term.c (WS_EX_LAYERED): Define if not already.
17627
176282008-07-06 Chong Yidong <cyd@stupidchicken.com>
17629
17630 * xfaces.c (set_font_frame_param): Don't try to set the font
17631 parameter if it is still unspecified in the lface.
17632
176332008-07-05 Chong Yidong <cyd@stupidchicken.com>
17634
17635 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17636 face if it didn't already exist.
17637
17638 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17639
176402008-07-05 Andreas Schwab <schwab@suse.de>
17641
17642 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17643
176442008-07-05 Chong Yidong <cyd@stupidchicken.com>
17645
17646 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17647 word-wrapping.
17648 (IT_DISPLAYING_WHITESPACE): New macro.
17649 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17650 when word-wrapping. Simplify word-wrapping logic. Use correct
17651 pixel positions when saving copies of the iterator.
17652 (display_line): Use proper wrap point if the last character on a
17653 line was preceded by whitespace.
17654
176552008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17656
17657 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17658
176592008-07-04 Kenichi Handa <handa@m17n.org>
17660
17661 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17662
17663 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17664
176652008-07-02 Jason Rumney <jasonr@gnu.org>
17666
17667 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 17668 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
17669
17670 * xdisp.c (next_element_from_display_vector): Move assignment out
17671 of if statement.
17672
176732008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17674
17675 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17676
17677 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17678 (syms_of_fileio): Initialize and export them.
17679 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17680
17681 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17682 (Fsystem_move_file_to_trash): New function.
17683 (syms_of_w32fns): Export it to lisp.
17684
176852008-07-01 Jason Rumney <jasonr@gnu.org>
17686
17687 * w32font.c (w32font_text_extents): Don't count overhang as part
17688 of width.
17689
176902008-06-30 Miles Bader <miles@gnu.org>
17691
17692 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17693 Add `avoid_cursor_p' field.
17694
17695 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17696 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17697 (append_glyph, append_composite_glyph, produce_image_glyph)
17698 (append_stretch_glyph): Initialize avoid_cursor_p.
17699 (get_it_property): Rename from `get_line_height_property'.
17700 (x_produce_glyphs): Use get_it_property.
17701 (handle_line_prefix, push_display_prop): New functions.
17702 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17703 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17704 New variables.
17705 (syms_of_xdisp): Initialize them.
17706
177072008-06-30 Kenichi Handa <handa@m17n.org>
17708
17709 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17710 XftDefaultSubstitute (they are called in XftFontMatch).
17711 (xftfont_open): Fix args to ftfont_font_format.
17712
17713 * ftfont.c (fc_charset_table): New member lang.
17714 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 17715 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
17716 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17717 (ftfont_open): Fix args to ftfont_font_format.
17718 (ftfont_font_format): New arg filename.
17719
177202008-06-30 Chong Yidong <cyd@stupidchicken.com>
17721
17722 * xfaces.c (Finternal_merge_in_global_face): If default face was
17723 modified, realize it again. Update the font face attribute.
17724
177252008-06-29 Jason Rumney <jasonr@gnu.org>
17726
17727 * w32term.c (x_set_frame_alpha): Fix logic.
17728
177292008-06-29 Kenichi Handa <handa@m17n.org>
17730
17731 * fontset.c (Finternal_char_font): Return font-object instead of
17732 font-name.
17733
17734 * composite.c (get_composition_id): Fix the width calculation for TAB.
17735
177362008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17737
17738 * indent.c (Fvertical_motion): Properly handle float column arg.
17739
177402008-06-28 Jason Rumney <jasonr@gnu.org>
17741
17742 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17743 (pfnSetLayeredWindowAttributes): New function pointer.
17744 (w32_initialize): Initialize it when supported.
17745 (x_set_frame_alpha): New function.
17746
17747 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17748 (w32_frame_parm_handlers): Set alpha handler.
17749
17750 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17751
177522008-06-27 Jason Rumney <jasonr@gnu.org>
17753
17754 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17755 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17756 (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 to w32font.c.
17764 (Qw32_charset_unicode): Remove.
17765 (syms_of_w32fns): Update for above changes.
17766
17767 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17768 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17769 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17770 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17771 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17772 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17773 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17774 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17775 (syms_of_w32font): Update for above changes.
17776
177772008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17778
17779 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17780 removed #if.
17781 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17782
177832008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 17784 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
17785
17786 * makefile.w32-in (LOCAL_FLAGS):
17787 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17788
17789 * sysdep.c (_spawnlp, _getpid):
17790 Declare with explicit _cdecl instead of _CRTAPI1.
17791
17792 * editfns.c (Fget_internal_run_time):
17793 Check for WINDOWSNT with #ifdef, not #if.
17794
177952008-06-26 Jason Rumney <jasonr@gnu.org>
17796
17797 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17798
17799 * w32term.c (x_draw_glyph_string_foreground)
17800 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17801 Use FONT_HANDLE macro.
17802 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17803
17804 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17805 (uniscribe_encode_char): Use FONT_HANDLE macro.
17806
17807 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17808 (w32font_text_extents): Use precast w32_font.
17809 (w32font_close): Free cached metrics.
17810 (w32font_open_internal): Allocate space for name on stack.
17811
178122008-06-26 Chong Yidong <cyd@stupidchicken.com>
17813
17814 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17815
178162008-06-26 Jason Rumney <jasonr@gnu.org>
17817
17818 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17819 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17820
178212008-06-26 Juanma Barranquero <lekktu@gmail.com>
17822
17823 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17824
178252008-06-26 Jason Rumney <jasonr@gnu.org>
17826
17827 * w32bdf.c, w32bdf.h: Remove obsolete files.
17828
17829 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17830
17831 * w32gui.h: Don't include w32bdf.h.
17832 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17833 Remove obsolete font support.
17834
17835 * w32font.h (struct w32font_info): Remove compat_w32_font.
17836 Add hfont member.
17837 (FONT_COMPAT): Remove obsolete macro.
17838
17839 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17840 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17841 (w32font_open_internal): Remove compat code. Set new hfont member.
17842 (Fx_select_font): Use new hfont member.
17843
17844 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17845 (uniscribe_encode_char): Use new hfont member.
17846
17847 * w32term.c (x_draw_glyph_string_foreground)
17848 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17849 (x_draw_glyph_string): Use metrics in w32font_info.
17850
178512008-06-26 Kenichi Handa <handa@m17n.org>
17852
17853 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17854
178552008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17856
17857 * unexnext.c:
17858 * m/ews4800.h:
17859 * m/hp9000s300.h:
17860 * m/ibm370aix.h:
17861 * m/mips-siemens.h:
17862 * m/ncr386.h:
17863 * m/next.h:
17864 * m/pmax.h:
17865 * m/powerpcle.h:
17866 * m/tandem-s2.h:
17867 * s/386bsd.h:
17868 * s/bsd386.h:
17869 * s/bsd4-1.h:
17870 * s/bsd4-2.h:
17871 * s/bsdos2-1.h:
17872 * s/bsdos2.h:
17873 * s/bsdos3.h:
17874 * s/bsdos4.h:
17875 * s/nextstep.h:
17876 * s/ultrix4-3.h:
17877 * s/usg5-0.h:
17878 * s/usg5-2-2.h:
17879 * s/usg5-2.h:
17880 * s/usg5-4-3.h:
17881 * s/ux4800.h:
17882 * s/uxpds.h:
17883 * s/uxpv.h: Remove support for obsolete systems.
17884 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 17885 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
17886 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17887 Remove, insert contents in s/aix4-2.h.
17888 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17889 * s/bsd4-3.h: Rename to ...
17890 * s/bsd-common.h: ... this.
17891 * data.c:
17892 * doc.c:
17893 * ecrt0.c:
17894 * emacs.c:
17895 * fileio.c:
17896 * floatfns.c:
17897 * keyboard.c:
17898 * mem-limits.h:
17899 * print.c:
17900 * process.c:
17901 * sysdep.c:
17902 * syssignal.h:
17903 * systty.h:
17904 * syswait.h:
17905 * term.c:
17906 * unexec.c:
17907 * unexelf.c:
17908 * unexhp9k800.c:
17909 * m/hp800.h:
17910 * m/ibmrs6000.h:
17911 * m/mips.h:
17912 * m/vax.h:
17913 * s/darwin.h:
17914 * s/freebsd.h:
17915 * s/gnu.h:
17916 * s/ms-w32.h:
17917 * s/msdos.h:
17918 * s/netbsd.h:
17919 * s/template.h: Remove references to obsolete variables.
17920
17921 * Makefile.in: Add dependencies for all unexec files.
17922 (admindir): Remove unused variable.
17923 (UNEXEC_SRC): Remove references.
17924
179252008-06-25 Chong Yidong <cyd@stupidchicken.com>
17926
17927 * xfns.c (x_default_font_parameter): If Xft is available, first
17928 try Monospace-12 for the default font.
17929
179302008-06-25 Jason Rumney <jasonr@gnu.org>
17931
17932 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17933
179342008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17935
17936 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17937
17938 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17939
179402008-06-25 Juanma Barranquero <lekktu@gmail.com>
17941
17942 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17943 <scroll-conservatively>: Fix typo in docstring.
17944
17945 * xselect.c (Fx_send_client_event): Doc fix.
17946
179472008-06-25 Kenichi Handa <handa@m17n.org>
17948
17949 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17950
17951 * font.c (font_parse_fcname): Remove unused variables.
17952 (font_sort_entites): Delete the arg SPEC. Caller changed.
17953 Fix for the case of ! best_only.
17954 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17955
17956 * lisp.h (Fstring_to_unibyte): EXFUN it.
17957
17958 * character.h (str_to_unibyte): Extern it.
17959
17960 * character.c (str_to_unibyte): New function.
17961
17962 * fns.c (Fstring_to_unibyte): New function.
17963 (syms_of_fns): Defsubr it.
17964
179652008-06-24 Kenichi Handa <handa@m17n.org>
17966
17967 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17968 DPI too.
17969 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17970
179712008-06-24 Andreas Schwab <schwab@suse.de>
17972
17973 * Makefile.in (${lispsource}loaddefs.el): Rename from
17974 ../lisp/loaddefs.el.
17975 (bootstrap-clean): Do what distclean does but don't remove
17976 Makefile.
17977 (distclean): Depend on bootstrap-clean and remove Makefile.
17978
179792008-06-24 Chong Yidong <cyd@stupidchicken.com>
17980
17981 * buffer.h (struct buffer): New member word_wrap.
17982
17983 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17984 word-wrap.
17985 (init_buffer_once): Initialize them.
17986
17987 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17988 line_wrap enum possessing three possible values.
17989
17990 * termopts.h: Replace truncate_partial_width_windows with
17991 Vtruncate_partial_width_windows.
17992
17993 * dispnew.c (direct_output_for_insert): Avoid direct output when
17994 inserting a space with word wrap on.
17995
17996 * indent.c (compute_motion): Obey integer values of
17997 truncate-partial-width-windows.
17998
17999 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
18000 replacing truncate_partial_width_windows.
18001 (init_iterator): If Vtruncate_partial_width_windows is an integer,
18002 truncate only if the window width is below that integer.
18003 (start_display, resize_mini_window, produce_stretch_glyph)
18004 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
18005 (back_to_previous_visible_line_start, reseat_1):
18006 Reset string_from_display_prop_p.
aac0c6e3
MR
18007 (display_line): Extend default face to end of line when wrapping.
18008
180092008-06-24 Kim F. Storm <storm@cua.dk>
18010
18011 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
18012 to wrap continued lines at word boundaries.
18013
180142008-06-24 Jason Rumney <jasonr@gnu.org>
18015
18016 * font.c (Ffont_face_attributes): Multiply pixel size before point
18017 conversion to avoid multiplying rounding error.
18018
180192008-06-23 Jason Rumney <jasonr@gnu.org>
18020
18021 * w32term.c (x_draw_glyph_string_background)
18022 (x_draw_glyph_string): Remove old bdf font code.
18023
18024 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
18025
180262008-06-22 Kenichi Handa <handa@m17n.org>
18027
18028 * font.c (font_find_for_lface): Try the adstyle specified in
18029 the property of LFACE_FONT of LFACE (if any).
18030
180312008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18032 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
18033
18034 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
18035
180362008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
18037
18038 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
18039 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
18040 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
18041 (witness-emacs): Remove.
18042 (lisp, shortlisp): Move loaddefs.el earlier.
18043 (mostlyclean): Forget about witness-emacs.
18044
180452008-06-22 Glenn Morris <rgm@gnu.org>
18046
18047 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
18048 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
18049
180502008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18051
18052 * Makefile.in (PRECOMP): Remove.
18053 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
18054 (witness-emacs): Run `compile-first'.
18055 (.el.elc): Use the new compile-onefile target.
18056
180572008-06-21 Kenichi Handa <handa@m17n.org>
18058
18059 * xftfont.c (xftfont_open): Handle QCembolden only when
18060 FC_EMBOLDEN is defined.
18061
180622008-06-21 Andreas Schwab <schwab@suse.de>
18063
18064 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18065 (.el.elc): Likewise.
18066
180672008-06-21 Miles Bader <miles@gnu.org>
18068
18069 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18070 build dir, not the lisp source dir.
18071
180722008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18073
18074 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18075 (bootstrapclean): Remove.
18076 (.el.elc): New rule.
18077 (PRECOMP): New var.
18078 (../lisp/subdirs.el): Remove.
18079 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18080 (witness-emacs): New target.
18081 (mostlyclean): Remove witness-emacs as well.
18082 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18083 Add witness-emacs dependency.
18084
180852008-06-20 Chong Yidong <cyd@stupidchicken.com>
18086
18087 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18088 defined by the font.
18089
180902008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18091
18092 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18093 (bootstrap-clean): New target that keeps TAGS around.
18094 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18095 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18096
180972008-06-20 Jason Rumney <jasonr@gnu.org>
18098
18099 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18100 Remove obsolete font code.
18101
18102 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18103 to determine language support.
18104
181052008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18106
18107 * sysdep.c (cfsetspeed): New fun extracted from the code.
18108 (cfmakeraw): Move before first use.
18109
181102008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18111
18112 * sysdep.c (cfmakeraw): Provide fallback implementation.
18113 (serial_configure): Provide fallback implementation of cfsetspeed.
18114
181152008-06-20 Kenichi Handa <handa@m17n.org>
18116
18117 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18118 the pattern.
18119
18120 * fontset.c (fontset_from_font): Copy font_spec before changing
18121 the elements.
18122
18123 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18124
181252008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18126
18127 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18128 for explicit `font' parameters.
18129
18130 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18131
181322008-06-19 Kenichi Handa <handa@m17n.org>
18133
18134 * frame.c: Include <ctype.h>.
18135 (x_set_font_backend): Allow spacing characters in the X resource
18136 for FontBackend.
18137
181382008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18139
18140 * w32fns.c, xfns.c (Qfont_param): New var.
18141 (syms_of_w32fns): Initialize it.
18142 (x_default_font_parameter): Record explicit `font' into
18143 `font-parameter'.
18144
181452008-06-18 Kenichi Handa <handa@m17n.org>
18146
18147 * font.c (font_parse_xlfd): Fix previous change.
18148 (font_parse_fcname): Don't use :fc-unknown-spec.
18149 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18150 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18151 (font_add_log): Prepend the driver name to the resulting fonts.
18152
18153 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18154 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18155 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18156
18157 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18158 (QCembolden): New variables.
18159 (syms_of_xftfont): DEFSYM them.
18160 (xftfont_open): Call XftFontMatch. Don't trust the result of
18161 XftTextExtents8 if the pixel_size is less than 5.
18162
181632008-06-18 Andreas Schwab <schwab@suse.de>
18164
18165 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18166 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18167
181682008-06-18 Jason Rumney <jasonr@gnu.org>
18169
18170 * w32font.c (w32font_list, w32font_match): Add logging.
18171
18172 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18173
181742008-06-17 Chong Yidong <cyd@stupidchicken.com>
18175
18176 * font.c (font_parse_fcname): Store divider characters for
18177 unknown-spec list. For known key symbols, intern using correct
18178 symbol name.
18179
181802008-06-17 Kenichi Handa <handa@m17n.org>
18181
18182 * xfaces.c (realize_default_face): If the frame is not on window
18183 system, set the fontset of face to nil.
18184
181852008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18186
18187 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18188
181892008-06-16 Juanma Barranquero <lekktu@gmail.com>
18190
18191 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18192 (build_font_name_from_vector): Delete externs.
18193
18194 * xfaces.c (struct font_name): Don't declare.
18195
181962008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18197
18198 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18199
182002008-06-16 Chong Yidong <cyd@stupidchicken.com>
18201
18202 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18203
182042008-06-16 Juanma Barranquero <lekktu@gmail.com>
18205
18206 * font.c (Ffont_spec): Fix usage in docstring.
18207 (Ffont_face_attributes): Doc fix.
18208
182092008-06-16 Andreas Schwab <schwab@suse.de>
18210
18211 * font.c (Ffont_face_attributes): Fix definition.
18212
182132008-06-16 Jason Rumney <jasonr@gnu.org>
18214
18215 * font.h (font_style_symbolic_from_value): Remove.
18216
18217 * font.c (font_style_symbolic_from_value): Remove.
18218 (font_style_symbolic): Revert to pre 2008-06-13 version.
18219
18220 * w32font.c (w32_to_fc_weight): New function.
18221 (w32font_full_name, logfont_to_fcname): Use it.
18222
182232008-06-16 Kenichi Handa <handa@m17n.org>
18224
18225 * font.c (font_check_object): Delete it.
18226 (font_clear_cache): Check if a font-object is alive.
18227 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18228 font-object to nil.
18229 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18230 (font_at): Don't call font_check_object.
18231 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18232
182332008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18234
18235 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18236
182372008-06-16 Chong Yidong <cyd@stupidchicken.com>
18238
18239 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18240
182412008-06-15 Chong Yidong <cyd@stupidchicken.com>
18242
18243 * font.c (font_parse_fcname): Only one decimal point.
18244 (font_unparse_fcname): Handle data in family and foundry indices
18245 as symbols, not strings.
18246 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18247
18248 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18249
18250 * font.h (font_unparse_gtkname): Add prototype.
18251
182522008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18253
18254 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18255
182562008-06-15 Andreas Schwab <schwab@suse.de>
18257
18258 * font.c (font_update_drivers): Fix crash when no drivers match.
18259
182602008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18261
18262 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18263 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18264
182652008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18266
18267 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18268
182692008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18270
18271 * process.c (Fserial_process_configure, Fprocess_send_eof):
18272 Use EQ to compare Lisp_Objects.
18273
182742008-06-13 Jason Rumney <jasonr@gnu.org>
18275
18276 * w32fns.c (Fw32_select_font): Remove old font API function.
18277
18278 * w32font.c (logfont_to_fcname): New function.
18279 (Fx_select_font): New font dialog function compatible with
18280 GTK/fontconfig version.
18281
18282 * font.c (font_style_symbolic_from_value): New function.
18283 (font_style_symbolic): Use it.
18284
18285 * font.h (font_style_symbolic_from_value): Declare new function.
18286
182872008-06-13 Juanma Barranquero <lekktu@gmail.com>
18288
18289 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18290 <font-width-table>: Fix typos in docstrings.
18291
182922008-06-13 Daniel Engeler <engeler@gmail.com>
18293
18294 These changes add serial port access.
18295 * process.c: Add HAVE_SERIAL.
18296 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18297 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18298 (list_processes_1, select_wrapper, Fstop_process)
18299 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18300 (status_notify): Modify to handle serial processes.
18301 [HAVE_SERIAL] (Fserial_process_configure)
18302 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18303 New functions.
18304 * process.h (struct Lisp_Process): Add `type'.
18305 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18306 New functions.
18307 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18308 serial ports.
b71ac3dd 18309 (serial_open, serial_configure): New functions.
aac0c6e3
MR
18310 * w32.h: Add FILE_SERIAL.
18311 (struct _child_process): Add ovl_read, ovl_write.
18312
183132008-06-13 Kenichi Handa <handa@m17n.org>
18314
18315 * dispextern.h (enum lface_attribute_index): New member
18316 LFACE_FOUNDRY_INDEX.
18317
18318 * font.c (font_score): Delete arg alternate_families. Check only
18319 weight, slant, width, and size. Ignore the difference of alias
18320 style symbols.
18321 (font_sort_entites): Adjust for the above change. Reflect the
18322 order of font-driver to scores.
18323 (font_list_entities): Don't check alternate_familes here.
18324 (font_clear_prop): Handle foundry.
18325 (font_update_lface): Don't parse "foundry-family" form here.
18326 Handle FONT_FOUNDRY_INDEX.
18327 (font_find_for_lface): Likewise. Handle alternate families here.
18328 If registry is nil, try iso8859-1 and ascii-0.
18329 (font_open_for_lface): Pay attention to size in ENTITY.
18330 (font_open_by_name): Simplify by calling font_load_for_lface.
18331 (free_font_driver_list): Delete it.
18332 (font_update_drivers): Preserve the order of backends.
18333 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18334 of font_score and font_sort_entites.
18335 (font_update_sort_order): Likewise.
18336
18337 * xfaces.c (LFACE_FOUNDRY): New macro.
18338 (check_lface_attrs): Check foundry.
18339 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18340 (merge_face_vectors): Check foundry.
18341 (merge_face_ref): Likewise.
18342 (Finternal_set_lisp_face_attribute): Likewise.
18343 (x_update_menu_appearance): Likewise.
18344 (Finternal_get_lisp_face_attribute): Likewise.
18345 (lface_hash): Likewise.
18346 (lface_same_font_attributes_p): Likewise.
18347 (x_supports_face_attributes_p): Likewise.
18348 (tty_supports_face_attributes_p): Likewise.
18349 (Finternal_set_alternative_font_family_alist): Intern strings.
18350 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18351 (realize_default_face): Set LFACE_FOUNDRY (lface).
18352
18353 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18354 font-driver at first.
18355
18356 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18357
183582008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18359
18360 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18361
183622008-06-12 Jim Meyering <meyering@redhat.com>
18363
18364 Make unexec_free handle NULL the same way free does.
18365 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18366
183672008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18368
18369 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18370 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18371 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18372 (WEAK_ALIAS): Simplify.
18373 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18374 when searching a unibyte buffer.
18375
183762008-06-12 Chong Yidong <cyd@stupidchicken.com>
18377
18378 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18379
183802008-06-12 Juanma Barranquero <lekktu@gmail.com>
18381
18382 * w32font.c: Include ctype.h.
18383
183842008-06-11 Jason Rumney <jasonr@gnu.org>
18385
18386 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18387 misreported as space.
18388 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18389 as aliases for registry iso10646-1.
18390
183912008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18392
18393 * buffer.c (clone_per_buffer_values): Skip `name'.
18394
183952008-06-11 Chong Yidong <cyd@stupidchicken.com>
18396
18397 * font.c (font_parse_fcname): Fix last change; accept decimal
18398 points in font size.
18399
184002008-06-10 Jason Rumney <jasonr@gnu.org>
18401
18402 * w32uniscribe.c (add_opentype_font_name_to_list):
18403 Skip non unicode fonts.
18404
184052008-06-10 Chong Yidong <cyd@stupidchicken.com>
18406
18407 * xfns.c (Fx_font_dialog): New function.
18408
18409 * gtkutil.c (xg_dialog_response_cb): Rename from
18410 xg_file_response_callback.
18411 (pop_down_dialog): Rename from pop_down_file_dialog.
18412 (xg_get_file_name): Callers changed.
18413 (xg_get_font_name): New function.
18414
18415 * gtkutil.h (xg_get_font_name): Insert prototype.
18416
184172008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18418
18419 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18420 x_underline_minimum_display_offset.
18421 (syms_of_xdisp): Declare it here rather than in xterm.c.
18422 * dispextern.h (underline_minimum_offset): Declare it.
18423 * w32term.c (x_draw_glyph_string): Use it.
18424 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18425 (syms_of_xterm): Don't declare it any more.
18426 (x_draw_glyph_string): Adjust to the new name.
18427
8719abec 184282008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
18429
18430 * xterm.c (x_underline_minimum_display_offset): New var.
18431 (x_draw_glyph_string): Use it.
18432 (syms_of_xterm): Declare it.
18433
184342008-06-10 Chong Yidong <cyd@stupidchicken.com>
18435
18436 * font.c (font_parse_fcname): Accept GTK-style font names too.
18437
184382008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18439
18440 * dired.c (file_name_completion): Don't return t if the match is exact
18441 but with different capitalization.
18442 * minibuf.c (Ftry_completion): Simplify.
18443
18444 * window.c (Vwindow_point_insertion_type): New var.
18445 (set_window_buffer): Use it.
18446 (syms_of_window): Init and export it to Lisp.
18447
184482008-06-10 Kenichi Handa <handa@m17n.org>
18449
18450 * font.h (font_intern_prop): Prototype adjusted.
18451
18452 * font.c (font_intern_prop): New arg force_symbol.
18453 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18454 Adjust for the change of font_intern_prop.
18455
18456 * ftfont.c (ftfont_pattern_entity):
18457 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18458 (w32_registry):
18459 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18460 the change of font_intern_prop.
18461
184622008-06-09 Juanma Barranquero <lekktu@gmail.com>
18463
18464 * w32menu.c (digest_single_submenu): Declare extern.
18465
184662008-06-09 Jason Rumney <jasonr@gnu.org>
18467
18468 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18469
18470 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18471 (parse_single_submenu): Remove.
18472 (digest_single_submenu): Remove.
18473 (syms_of_w32menu): Don't initialise variables that have moved
18474 to menu.c.
18475 (set_frame_menubar): Sync with version in xmenu.c.
18476 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18477
18478 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18479 Make static again.
18480
184812008-06-09 Jason Rumney <jasonr@gnu.org>
18482
18483 Changes to w32 files related to the move of common menu code
18484 to menu.c on 2008-06-08 by Chong Yidong.
18485
18486 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18487 defs to w32gui.h.
18488 (single_keymap_panes, push_menu_item, push_menu_pane):
18489 Make globally visible.
18490
18491 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18492 (local_free, malloc_widget_value, free_widget_value)
18493 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18494 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18495 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18496 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18497 (menu_items, menu_items_allocated, menu_items_used)
18498 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18499 (init_menu_items, finish_menu_items, discard_menu_items)
18500 (grow_menu_items, push_submenu_start, push_submenu_end)
18501 (push_left_right_boundary, push_menu_pane, push_menu_item)
18502 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18503 (free_menubar_widget_tree_value, parse_single_submenu)
18504 (update_submenu_strings): Remove functions.
18505 (xmalloc_widget_value): Remove and declare extern.
18506
18507 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18508 (OBJ1): Build it.
18509
18510 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18511 (local_heap, local_alloc, local_free, malloc_widget_value)
18512 (free_widget_value): Define here.
18513
185142008-06-09 Kenichi Handa <handa@m17n.org>
18515
18516 * font.h (Qascii_0): Extern it.
18517
18518 * font.c (Qascii_0): New variable.
18519 (syms_of_font): DEFSYM it.
18520 (font_open_by_name): If the registry "iso8859-1" fails, try also
18521 "ascii-0".
18522
18523 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18524
185252008-06-08 Kenichi Handa <handa@m17n.org>
18526
18527 * .gdbinit (xfont): New command.
18528
185292008-06-08 Andreas Schwab <schwab@suse.de>
18530
18531 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18532 * Makefile.in (menu.o): Update dependencies.
18533
18534 * Makefile.in (obj): Always add menu.o.
18535 * emacs.c (main): Always call syms_of_menu.
18536 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18537
185382008-06-08 Chong Yidong <cyd@stupidchicken.com>
18539
18540 * Makefile.in: Compile menu.c.
18541
18542 * lisp.h: Declare syms_of_menu.
18543
18544 * emacs.c (main): Call syms_of_menu.
18545
18546 * keyboard.h: Relocate platform-independent menu definitions from
18547 xmenu.c.
18548
18549 * menu.c: New file. Relocate platform-independent menu
18550 definitions from xmenu.c. Suggested by Adrian Robert.
18551
18552 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 18553 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
18554 (menu_items_used, menu_items_n_panes)
18555 (menu_items_submenu_depth): Move to keyboard.h.
18556 (init_menu_items, finish_menu_items, unuse_menu_items)
18557 (discard_menu_items, restore_menu_items, save_menu_items)
18558 (grow_menu_items, push_submenu_start, push_submenu_end)
18559 (push_left_right_boundary, push_menu_pane, push_menu_item)
18560 (keymap_panes, single_keymap_panes, single_menu_item)
18561 (list_of_panes, list_of_items, find_and_call_menu_selection)
18562 (xmalloc_widget_value, free_menubar_widget_value_tree)
18563 (parse_single_submenu, digest_single_submenu)
18564 (update_submenu_strings): Move to menu.c.
18565
185662008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18567
18568 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18569
185702008-06-06 Miles Bader <miles@gnu.org>
18571
18572 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18573 face, not frame default.
18574
185752008-06-05 Martin Rudalics <rudalics@gmx.at>
18576
18577 * window.c (pop_up_windows, pop_up_frames)
18578 (display_buffer_reuse_frames, Vpop_up_frame_function)
18579 (Vdisplay_buffer_function, Veven_window_heights)
18580 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18581 (Vspecial_display_function, Vsame_window_buffer_names)
18582 (Vsame_window_regexps, split_height_threshold)
18583 (Vsplit_window_preferred_function): Move those vars to window.el.
18584 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18585 (Fdisplay_buffer): Move those functions to window.el.
18586 (syms_of_window): Remove corresponding declarations.
18587 (display_buffer): New function.
18588 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18589 * dispnew.c (Flast_nonminibuf_frame): New function.
18590 * buffer.c (Fpop_to_buffer): Move to window.el.
18591
185922008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18593
18594 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18595
185962008-06-05 Kenichi Handa <handa@m17n.org>
18597
18598 * coding.c (detect_coding): Fix previous change.
18599 (detect_coding_system): Likewise.
18600
186012008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18602
18603 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18604
18605 * keymap.c (Vminibuffer_local_filename_must_match_map):
18606 Rename from Vminibuffer_local_must_match_filename_map.
18607 (syms_of_keymap):
18608 * minibuf.c (Fcompleting_read): Adjust accordingly.
18609 * commands.h: Rename declaration as well.
18610
186112008-06-05 Kenichi Handa <handa@m17n.org>
18612
18613 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18614 family name.
18615 (Ffont_put): Likewise.
18616
18617 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18618 current font-spec.
18619
18620 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18621 is unspecified.
18622
18623 * xfaces.c (realize_x_face): If the font-related face attributes
18624 are the same as those of default face, realize a new fontset from
18625 default->fontset.
18626 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18627
186282008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18629
18630 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18631 (move_it_in_display_line): New wrapper.
18632
18633 * window.c (window_scroll_pixel_based_preserve_x)
18634 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18635 (window_scroll_pixel_based, window_scroll_line_based):
18636 Use them to preserve column positions.
18637 (syms_of_window): Initialize them.
18638
18639 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18640 (HPOS . VPOS) pair.
18641
18642 * dispextern.h (move_it_in_display_line): Declare.
18643
186442008-06-05 Juanma Barranquero <lekktu@gmail.com>
18645
18646 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18647 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18648 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18649
186502008-06-04 Juanma Barranquero <lekktu@gmail.com>
18651
18652 * window.c (Fset_window_parameter): Doc fix.
18653 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18654
186552008-06-04 Joakim Verona <joakim@verona.se>
18656
18657 * window.h (struct window): Add new member window_parameters.
18658
18659 * window.c (Fwindow_parameters, Fwindow_parameter)
18660 (Fset_window_parameter): New defuns.
18661 (syms_of_window): Defsubr the new defuns.
18662 (make_window): Initialize window_parameters to nil.
18663
186642008-06-04 John Paul Wallington <jpw@pobox.com>
18665
18666 * eval.c (Fdefmacro): Doc fix.
18667
186682008-06-04 Kenichi Handa <handa@m17n.org>
18669
18670 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18671 Be sure to call setup_coding_system when we find a proper coding system.
18672 (detect_coding_system): Fix handling of coding->head_ascii.
18673
186742008-06-03 Andreas Schwab <schwab@suse.de>
18675
18676 * font.c (font_prop_validate_spacing): Fix last change.
18677
186782008-06-03 Kenichi Handa <handa@m17n.org>
18679
18680 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18681 (font_parse_fcname): Fix handling of unknown key.
18682
18683 * xfont.c (xfont_list): Try an alias.
18684
18685 * charset.c (char_charset): Return NULL if the arg charset_list is
18686 specified and C doesn't belong to any of them.
18687
186882008-06-02 Chip Coldwell <coldwell@redhat.com>
18689
18690 * font.c (font_pixel_size): Don't take cdr of an integer.
18691
186922008-06-02 Jim Meyering <meyering@redhat.com>
18693
18694 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18695 * alloc.c (xfree): Return right away for a NULL arg.
18696 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18697 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18698 * mac.c (create_apple_event_from_event_ref): Likewise.
18699 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18700 Likewise.
18701 * doprnt.c (doprnt1): Likewise.
18702 * frame.c (frame): Likewise.
18703 * keyboard.c (wipe_kboard): Likewise.
18704 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18705 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18706 * term.c (tty_default_color_capabilities, maybe_fatal)
18707 (delete_tty): Likewise.
18708 * w16select.c (string): Likewise.
18709 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18710 * w32bdf.c (w32_free_bdf_font): Likewise.
18711 * w32fns.c (w32_unload_font): Likewise.
18712 * w32font.c (w32font_close): Likewise.
18713 * window.c (size_window): Likewise.
18714 * xselect.c (receive_incremental_selection): Likewise.
18715 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18716 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18717 * w32.c (stat): Likewise.
18718
18719 Remove useless if-before-free tests.
18720 * editfns.c (Fset_time_zone_rule): Likewise.
18721 * lread.c (nosuffix): Likewise.
18722 * ralloc.c (get_bloc): Likewise.
18723 * regex.c (reg_free): Likewise.
18724 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18725 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18726 * xsmfns.c (smc_save_yourself_CB): Likewise.
18727
187282008-06-02 Kenichi Handa <handa@m17n.org>
18729
18730 * font.c (font_find_for_lface): Handle float font size.
18731 (font_open_for_lface): Likewise.
18732
18733 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18734 comparing the properties.
18735
187362008-06-01 Jason Rumney <jasonr@gnu.org>
18737
18738 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18739 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18740 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18741 Don't add empty script list.
18742 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18743
187442008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18745
18746 * Makefile.in (dot, dotdot): Remove, update users.
18747 ".." has been used elsewhere in the file for a long time.
18748 (LIBXT_STATIC): Remove conditional based on unused variable.
18749
187502008-06-01 Miles Bader <miles@gnu.org>
18751
18752 * xfaces.c (Vface_remapping_alist): New variable.
18753 (syms_of_xfaces): Initialize it.
18754 (enum named_merge_point_kind): New type.
18755 (struct named_merge_point): Add `named_merge_point_kind' field.
18756 (push_named_merge_point): Make cycle detection respect different
18757 named-merge-point kinds.
18758 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18759 Remove face-name alias resolution.
18760 (lface_from_face_name): New definition using
18761 `lface_from_face_name_no_resolve'.
18762 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18763 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18764 (get_lface_attributes): New definition that layers face-remapping on
18765 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18766 (lookup_basic_face): New function.
18767 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18768 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18769 `get_lface_attributes'.
18770 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18771 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18772 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18773
18774 * xdisp.c (init_iterator): Pass base_face_id through
18775 `lookup_basic_face' when we actually use it as a face-id.
18776 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18777 DEFAULT_FACE_ID.
18778
18779 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18780 lookup the initial face-id.
18781
18782 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18783
187842008-06-01 Juanma Barranquero <lekktu@gmail.com>
18785
18786 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18787 (Fremove_text_properties): Fix typos in docstrings.
18788
187892008-05-31 Kenichi Handa <handa@m17n.org>
18790
18791 * font.c (font_list_entities): Fix the car part of data to be
18792 stored in the cache.
18793
18794 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18795
187962008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18797
18798 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18799 Add a `test' argument so another predicate than `equal' can be used.
18800 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18801 (map_char_table): Remove unused vars `c' and `i'.
18802 * lisp.h (Foptimize_char_table): Adjust declaration.
18803 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18804
188052008-05-30 Kenichi Handa <handa@m17n.org>
18806
18807 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18808 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18809 defined.
18810
188112008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18812
18813 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18814 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18815 frame-local settings for the same variable.
18816
188172008-05-30 Kenichi Handa <handa@m17n.org>
18818
18819 * fontset.c (Ffont_info): Move to font.c.
18820 (syms_of_fontset): Delete defsubr of Sfont_info.
18821
18822 * font.c (font_style_to_value, font_score): Delete casting of the
18823 args to xstcasecmp.
18824 (register_font_driver): Increment num_font_drivers only when
18825 registering the driver globally.
18826 (Ffont_info): Move from fontset.c. Handle a font object too.
18827 (syms_of_font): Defsubr Sfont_info.
18828
188292008-05-29 Kenichi Handa <handa@m17n.org>
18830
18831 * coding.h (enum define_coding_utf8_arg_index): New enum.
18832 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18833 coding_attr_utf_bom.
18834 (enum utf_bom_type): Rename from utf_16_bom_type.
18835 (struct utf_16_spec): Adjust for the above change.
18836 (struct coding_system): Add utf_8_bom in `spec' union.
18837
18838 * coding.c (CODING_UTF_8_BOM): New macro.
18839 (enum coding_category): Delete coding_category_utf_8, add
18840 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18841 coding_category_utf_8_sig.
18842 (CATEGORY_MASK_UTF_8): Delete it.
18843 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18844 (CATEGORY_MASK_UTF_8_SIG): New macros.
18845 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18846 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18847 CATEGORY_MASK_UTF_8_SIG.
18848 (CATEGORY_MASK_UTF_8): New macro.
18849 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18850 (detect_coding_utf_8): Check BOM.
18851 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18852 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18853 (encode_coding_utf_16): Likewise.
18854 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18855 (detect_coding, detect_coding_system): Handle utf-8-auto.
18856 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18857 (syms_of_coding): Fix setting up of Vcoding_category_table.
18858
188592008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18860
18861 * process.c (Faccept_process_output): If `millisec' is non-nil,
18862 `seconds' default to 0.
18863 (wait_reading_process_output): Also return non-nil if we read output
18864 from a non-running process.
18865
188662008-05-29 Jason Rumney <jasonr@gnu.org>
18867
18868 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18869 `raster' specified.
18870 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18871 in the uniscribe backend, but disallow any font that has no
18872 unicode subrange support.
18873
188742008-05-29 Juanma Barranquero <lekktu@gmail.com>
18875
18876 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18877 Fix typos in docstrings.
18878
188792008-05-29 Kenichi Handa <handa@m17n.org>
18880
18881 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18882 (Fx_family_fonts): Set frame correctly.
18883
188842008-05-28 Jason Rumney <jasonr@gnu.org>
18885
18886 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18887
188882008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18889
18890 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18891 calling build_annotations.
18892
188932008-05-28 Juanma Barranquero <lekktu@gmail.com>
18894
18895 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18896 (Fencode_coding_string):
18897 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18898 <latin-extra-code-table>: Fix typos in docstrings.
18899 (syms_of_coding) <coding-system-alist>: Doc fix.
18900 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18901
189022008-05-28 Kenichi Handa <handa@m17n.org>
18903
18904 * fontset.c (Ffont_info): Don't call font_close_object.
18905
18906 * font.c (font_parse_family_registry): Use Ffont_put to validate
18907 foundry and family.
18908 (font_delete_unmatched): Don't check spacing.
18909 (font_list_entities): Add spacing to the spec to list fonts.
18910
18911 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18912 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18913
18914 * coding.c (encode_coding_raw_text): Fix previous change.
18915 (encode_coding_object): When the dst_object is a buffer and is
18916 different from src_object, move gap to PT.
18917
189182008-05-27 Chong Yidong <cyd@stupidchicken.com>
18919
18920 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18921
189222008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18923
18924 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18925 all branches. Compute it differently.
18926
18927 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18928
189292008-05-27 Juanma Barranquero <lekktu@gmail.com>
18930
18931 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18932 into "else if () ... else ...".
18933
189342008-05-27 Jason Rumney <jasonr@gnu.org>
18935
18936 * w32font.c (w32font_open_internal): Determine if glyph indices
18937 are likely to work here.
18938
189392008-05-27 Chong Yidong <cyd@stupidchicken.com>
18940
18941 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18942 draw overlap glyphs with appropriate highlighting.
18943
189442008-05-27 Kenichi Handa <handa@m17n.org>
18945
18946 * xfont.c (xfont_open): Fix calculation of font->average_width.
18947
189482008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18949
18950 * casefiddle.c (casify_object): Try to guess better whether the
18951 argument is a byte or a char.
18952
189532008-05-26 Andreas Schwab <schwab@suse.de>
18954
18955 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18956 Always send multiples of format size.
18957
18958 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18959
189602008-05-26 Jason Rumney <jasonr@gnu.org>
18961
18962 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18963 (compute_metrics): Don't set failure if we just cleared the cache.
18964 (w32_weight_table): Remove unused variable.
18965 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18966 backwards compatibility.
18967
189682008-05-25 Kenichi Handa <handa@m17n.org>
18969
18970 * w32term.c (x_draw_glyph_string):
18971 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18972
18973 * xfaces.c: Delete unused function prototypes.
18974 (xstrlwr, font_frame): Delete them.
18975 (clear_face_cache): Delete unused variable.
18976
18977 * xftfont.c (xftfont_open): Delete unused variable.
18978 If underline_thickness is not 1, adjust underline_position.
18979
18980 * ftxfont.c (ftxfont_open): Delete unused variable.
18981
18982 * fontset.c (face_for_char): Optimize for the case of no charset
18983 property.
18984
18985 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18986 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18987 (otf_open, font_otf_capability, generate_otf_features)
18988 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18989 Comment out by surrounding "#if 0" and "#endif" for the moment.
18990 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18991 (syms_of_font): Codes for accessing above commented out.
18992
189932008-05-24 Eli Zaretskii <eliz@gnu.org>
18994
18995 * w32proc.c: Include dispextern.h.
18996
18997 * w32.c: Include dispextern.h.
18998
189992008-05-23 Juanma Barranquero <lekktu@gmail.com>
19000
19001 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
19002 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
19003 Fix typos in docstrings.
19004
190052008-05-23 Jason Rumney <jasonr@gnu.org>
19006
19007 * xsmfns.c: Remove includes that are already included by config.h.
19008
190092008-05-23 Kenichi Handa <handa@m17n.org>
19010
19011 * charset.c (Qemacs, charset_emacs): New variables.
19012 (char_charset): Fix for non-Unicode characters.
19013 (syms_of_charset): Define charset_emacs.
19014
19015 * w32term.c (x_draw_glyph_string): Be sure to update
19016 s->underline_thickness and s->underline_position. Be sure to draw
19017 underline within the current line area.
19018
19019 * xterm.c (x_draw_glyph_string): Be sure to update
19020 s->underline_thickness and s->underline_position. Be sure to draw
19021 underline within the current line area.
19022
19023 * fontset.c: Delete unused variables and add casting for char *
19024 throughout the file.
19025 (fontset_font): Try the fallback fonts of the current fontset
19026 before consulting the default fontset.
19027
19028 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
19029
19030 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
19031
190322008-05-22 Jason Rumney <jasonr@gnu.org>
19033
19034 * font.c: Don't include strings.h.
19035
19036 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
19037
19038 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
19039 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
19040 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
19041 to call xstrcasecmp.
19042
19043 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
19044
19045 * fontset.c (fs_query_fontset): Use xstrcasecmp.
19046
19047 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
19048
19049 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
19050
190512008-05-22 Kenichi Handa <handa@m17n.org>
19052
19053 * puresize.h (BASE_PURESIZE): Increase to 1220000.
19054
19055 * font.c (font_prop_validate_style): Adjust for the format
19056 change of font_style_table.
19057
19058 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
19059 two args.
19060
19061 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
19062 two args.
19063
190642008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19065
19066 * minibuf.c (keys_of_minibuf): Delete.
19067 * lisp.h (keys_of_minibuf): Delete.
19068 * emacs.c (main): Don't call keys_of_minibuf.
19069
190702008-05-22 Kenichi Handa <handa@m17n.org>
19071
19072 * ftfont.c (ftfont_resolve_generic_family): Rename from
19073 ftfont_list_generic_family. Return a single family for each
19074 generic family.
19075 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19076 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19077 Call font_add_log.
19078 (ftfont_match): Call font_add_log.
19079
19080 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19081 (FONT_DEBUG): Define it.
19082 (font_add_log): Extern it.
19083 (font_assert): Rename from xassert.
19084
19085 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19086 (xfont_list_family): Call font_add_log.
19087 (xfont_match): Likewise.
19088 (memq_no_quit): Delete.
19089
19090 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19091 call of Ffont_xlfd_name.
19092
19093 * xfaces.c (struct table_entry, slant_table, weight_table)
19094 (swidth_table): Move to font.c.
19095
19096 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19097 xassert are changed to font_assert. Delete many unused variables.
19098 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19099 New variables.
19100 (struct table_entry): Move from xfaces.c and modified.
19101 (weight_table, slant_table, width_table): Move from xfaces.c and
19102 contents adjusted for the change of struct table_entry.
19103 (font_style_to_value, font_style_symbolic): Adjust for the
19104 format change of font_style_table.
19105 (font_parse_family_registry): Don't overwrite existing foundry and
19106 family of font_spec.
19107 (font_score): Fix calculation of diff for sizes.
19108 (font_sort_entites): Call font_add_log.
19109 (font_delete_unmatched): Return a newly created list.
19110 (font_list_entities): Fix previous change. Call font_add_log.
19111 (font_matching_entity, font_open_entity, font_close_entity):
19112 Call font_add_log.
19113 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19114 (Finternal_set_font_style_table): Delete.
19115 (BUILD_STYLE_TABLE): New macro.
19116 (build_style_table): New function.
19117 (Vfont_log, font_log_env_checked): New variables.
19118 (font_add_log): New function.
19119 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19120 Declare Lisp variables "font-weight-table", "font-slant-table",
19121 "font-width-table", and "font-log". Initialize font_style_table.
19122
191232008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19124
19125 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19126
191272008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19128 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19129
19130 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19131 (Vframe_alpha_lower_limit): New variable.
19132 (x_set_alpha): New function.
19133
19134 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19135
19136 * xfns.c (x-create-frame, Qalpha):
19137 Initialize the frame parameter `alpha'.
19138 * xterm.c (OPAQUE, OPACITY): New.
19139 (x_set_frame_alpha): New function.
19140 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19141
19142 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19143 * w32fns.c (w32_frame_parm_handlers): Likewise.
19144
191452008-05-20 Jason Rumney <jasonr@gnu.org>
19146
19147 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19148 truetype fonts to opentype list.
19149
191502008-05-20 Juanma Barranquero <lekktu@gmail.com>
19151
19152 * fontset.c (Ffontset_info): Doc fix.
19153 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19154 <ignore-relative-composition>: Fix typos in docstrings.
19155
19156 * font.c (syms-of-font) <font-encoding-alist>:
19157 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19158 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19159 (Ffont_otf_alternates): Doc fixes.
19160
191612008-05-20 Kenichi Handa <handa@m17n.org>
19162
19163 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19164 font.h through out the file.
19165 (FONT_DRIVERS): Rename from FONTOBJ.
19166 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19167 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19168
19169 * emacs.c (main): Call syms_of_font unconditionally.
19170
19171 * font.h (find_font_encoding): Extern it.
19172
19173 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19174 fontset.c.
194d44e7 19175 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
19176 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19177 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19178 only when HAVE_WINDOW_SYSTEM is defined.
19179 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19180 when HAVE_WINDOW_SYSTEM is defined.
19181
19182 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19183 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19184
19185 * xfaces.c: Include font.h unconditionally.
19186 (merge_face_ref, merge_face_vectors)
19187 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19188
191892008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19190
19191 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19192 indirect_variable.
19193 * eval.c (lisp_indirect_variable): New fun.
19194 (Fuser_variable_p): Use it.
19195
191962008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19197
19198 * lisp.h (indirect_variable):
19199 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19200 Use Lisp_Symbol pointers rather than Lisp_Object.
19201 Adjust callers.
19202 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19203 To this end, change calling-convention.
19204
19205 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19206 if some non-hidden buffers are selected by string&pred.
19207
192082008-05-19 Chong Yidong <cyd@stupidchicken.com>
19209
19210 * process.c (wait_reading_process_output): Always check status
19211 when in batch mode.
19212
192132008-05-19 Kenichi Handa <handa@m17n.org>
19214
19215 * font.c (font_list_entities): Fix handling of cache.
19216 (font_matching_entity): Likewise.
19217
19218 * ftfont.c (cs_iso8859_1): Delete.
19219 (ft_face_cache): New variable.
19220 (struct ftfont_info): New member fc_charset_idx.
19221 (ftfont_build_basic_charsets): Delete.
19222 (fc_charset_table): New variable.
19223 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19224 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19225 Callers changed.
19226 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19227 (ftfont_spec_pattern): New argument fc_charset_idx.
19228 Check registry more rigidly. Change callers.
19229 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19230 change of :font-entity property of the font.
19231
19232 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19233 property of the font.
19234
192352008-05-18 Juanma Barranquero <lekktu@gmail.com>
19236
19237 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19238 (Funencodable_char_position, Fcheck_coding_systems_region)
19239 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19240 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19241 (Ffind_operation_coding_system, Fset_coding_system_priority)
19242 (Fcoding_system_eol_type): Doc fixes.
19243
192442008-05-17 Glenn Morris <rgm@gnu.org>
19245
19246 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19247
192482008-05-16 Eli Zaretskii <eliz@gnu.org>
19249
19250 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19251 and st_gid.
19252
19253 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19254 HAVE_WINDOW_SYSTEM is not defined.
19255
19256 * xfaces.c (merge_face_ref, merge_face_vectors)
19257 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19258 HAVE_WINDOW_SYSTEM is defined.
19259 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19260
192612008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19262
19263 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19264
192652008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19266
19267 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19268
192692008-05-15 Kenichi Handa <handa@m17n.org>
19270
19271 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19272 preference.
19273
192742008-05-15 Glenn Morris <rgm@gnu.org>
19275
19276 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19277
192782008-05-15 Chong Yidong <cyd@stupidchicken.com>
19279
19280 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19281 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19282
19283 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19284
192852008-05-15 Kenichi Handa <handa@m17n.org>
19286
19287 * ftfont.c (ftfont_list): Downcase family name to check generic
19288 families.
19289
19290 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19291 font-spec for QCfont value.
19292
19293 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19294 buffer. Check the return value of it.
19295
192962008-05-14 Jason Rumney <jasonr@gnu.org>
19297
19298 * w32term.c (w32_get_glyph_overhangs): Remove.
19299 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19300
193012008-05-14 Kenichi Handa <handa@m17n.org>
19302
19303 * font.c (font_prop_validate): Make nil a valid value.
19304 (font_clear_cache): Check if the cached vector of entities is nil
19305 or not.
19306
193072008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19308
19309 * emacs.c (main_thread): Conditionalize on
19310 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19311 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19312
19313 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19314 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19315 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19316
193172008-05-14 Kenichi Handa <handa@m17n.org>
19318
19319 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19320 has no corresponding coding system.
19321
193222008-05-14 Jason Rumney <jasonr@gnu.org>
19323
19324 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19325
19326 * w32font.h (w32font_open_internal): Update declaration.
19327
19328 * w32font.c (w32font_open_internal): Change last argument from
19329 w32font_info struct to font object. Fill in font object from
19330 font_entity. Get Outline metrics if possible. Use them to
19331 calculate underline position and thickness. Use xlfd name as name
19332 property. Don't set codepage.
19333 (w32font_open): Pass font_object to w32font_open_internal. Don't
19334 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19335 (w32font_draw): Use s->font.
19336 (clear_cached_metrics): Don't clear non-existent blocks.
19337
19338 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19339 font was not found.
19340 (x_draw_glyph_string): Use underline position and thickness from font.
19341
19342 * w32uniscribe.c (uniscribe_open): Pass font_object to
19343 w32font_open_internal.
19344
193452008-05-14 Kenichi Handa <handa@m17n.org>
19346
19347 These changes are to delete all legacy font-handling codes, and
19348 make Emacs use only font-backends.
19349
19350 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19351 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19352
19353 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19354
19355 * charset.h (Vcharset_non_preferred_head)
19356 (Vcurrent_iso639_language): Extern them.
19357
19358 * charset.c (Vcharset_non_preferred_head): New variable.
19359 (Vcurrent_iso639_language): New variable.
19360 (syms_of_charset): Declare it as a Lisp variable.
19361 (char_charset): Don't check non preferred charsets. As a last
19362 resort, return charset_unicode.
19363 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19364
19365 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19366 conditionals. Don't check enable_font_backend. Delete all codes
19367 used only when USE_FONT_BACKEND is not defined.
19368
19369 * dispextern.h (struct glyph_string): Change type of `font' to
19370 `struct font *'.
19371 (struct glyph_string): New member underline_position and
19372 underline_thickness.
19373 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
19374 (struct face): Change type of `font' to `struct font *'.
19375 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
19376 (per_char_metric, encode_char): Delete externs.
19377 (calc_pixel_width_or_height): Adjust the prototype.
19378
19379 * emacs.c (enable_font_backend): Delete extern.
19380 (main): Don't set enable_font_backend. Don't check the command
19381 line argument "-disable-font-backend".
19382
19383 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19384 (enum font_property_index): New members FONT_DPI_INDEX,
19385 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19386 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19387 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19388 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19389 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19390 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19391 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19392 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19393 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 19394 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
19395 (struct font): Many members from old "struct font_info" moved to
19396 here. Members font and entity deleted.
19397 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19398 the new font-related objects.
19399 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19400 (CHECK_FONT_GET_OBJECT): Likewise.
19401 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 19402 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
19403 (struct font_driver): New members case_sensitive anc check.
19404 Type of the member list and open changed.
aac0c6e3
MR
19405 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19406 (font_symbolic_width, font_find_object, font_get_spec)
19407 (font_set_lface_from_name): Delete extern.
19408 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19409
19410 * font.c: Include <strings.h>.
19411 (enable_font_backend): Delete it.
19412 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19413 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 19414 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
19415 (null_string): Delete it.
19416 (null_vector): Make it static.
19417 (font_family_alist): Delete it.
19418 (Qnormal): Extern it.
19419 (QCextra, QClanguage): Delete it.
19420 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19421 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 19422 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 19423 the string. Callers changed.
bba3e508 19424 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
19425 objects.
19426 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19427 (font_style_to_value, font_style_symbolic): New function.
19428 (build_font_family_alist): Delete it.
19429 (font_registry_charsets): Use Fassoc_string instead of
19430 assq_no_quit.
19431 (font_prop_validate_symbol): Don't return null_string.
bba3e508 19432 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
19433 style-related values in a font vector.
19434 (font_property_table): Delete entries for QClanguage and
19435 QCantialias, add entries for QCavgwidth.
19436 (get_font_prop_index): Delete the 2nd argument FROM.
19437 (font_prop_validate): Arguments changed.
bba3e508 19438 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
19439 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19440 (font_parse_fcname, font_unparse_fcname)
19441 (font_prepare_composition): Likewise.
ef1b0ba7 19442 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 19443 (otf_open): Delete the 1st arg entity.
bba3e508 19444 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
19445 (font_score): New arg alternate_families. Adjusted for the change
19446 of font-related objects.
19447 (font_sort_entites): New arg best_only.
19448 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19449 Delete them.
19450 (font_match_p): Check alternate families.
19451 (font_find_object): Delete it.
19452 (font_check_object): New function.
bba3e508 19453 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
19454 (font_delete_unmatched): New arg.
19455 (font_list_entities): Call font_driver->list with a spec that
19456 doesn't specify style-related properties.
19457 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 19458 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
19459 (font_close_object, font_has_char, font_encode_char)
19460 (font_get_name, font_get_spec): Likewise.
19461 (font_spec_from_name, font_clear_prop, font_update_lface):
19462 New functions.
19463 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19464 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 19465 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
19466 (font_range): New function.
19467 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 19468 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 19469 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 19470 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
19471 (Finternal_set_font_style_table): Arguments changed.
19472 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 19473 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
19474 change of font-related objects.
19475 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19476
19477 * fontset.h (struct font_info): Delete it. Most members go to
19478 struct font.
ef1b0ba7 19479 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
19480 (enum FONT_SPEC_INDEX): Delete it.
19481 (font_info, list_fonts_func, load_font_func, query_font_func)
19482 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
19483 (get_font_repertory_func, new_fontset_from_font_name):
19484 Delete externs.
aac0c6e3
MR
19485 (fontset_from_font_name): Extern it.
19486 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19487 (FONT_INFO_FROM_FACE): Deleted.
19488 (face_for_font): Adjust prototype.
19489
19490 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19491 conditionals. Don't check enable_font_backend. Delete all codes
19492 used only when USE_FONT_BACKEND is not defined.
19493 (get_font_info_func, list_font_func, load_font_func)
19494 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19495 (get_font_repertory_func): Delete them.
19496 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19497 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19498 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19499 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19500 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19501 (fontset_compare_rfontdef): New function.
19502 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19503 rfont-defs by qsort. Adjusted for the change of font-group vector.
19504 (load_font_get_repertory): Deleted.
19505 (fontset_find_font): Use new macros to ref/set elements of
19506 font-def and rfont-def.
19507 (fontset_font): Fix the timing of remembering that no font for C.
19508 (free_face_fontset): Do nothing if the face has no fontset.
19509 (face_suitable_for_char_p): Use new macros to ref/set elements of
19510 rfont-def.
19511 (face_for_char): Likewise. Call face_for_char with font_object.
19512 (fs_load_font): Delete. Delete #pragma surrounding it.
19513 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 19514 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
19515 font-spec.
19516 (Fset_fontset_font): Likewise. Use new macros to set elements of
19517 font-def.
19518 (Fnew_fontset): Use font_unparse_xlfd to generate
19519 FONTSET_ASCII (fontset).
19520 (new_fontset_from_font_name): Deleted.
ef1b0ba7 19521 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
19522 a fontset is already created for the font. FIx updating of
19523 Vfontset_alias_alist.
19524 (fontset_ascii_font): Deleted.
bba3e508 19525 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
19526 (Finternal_char_font): Likewise.
19527 (Ffontset_info): Likewise.
19528 (syms_of_fontset): Don't check load_font_func.
19529
19530 * fns.c (internal_equal): Handle PREV_FONT.
19531
19532 * frame.h: Delete USE_FONT_BACKEND conditional.
19533
19534 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19535 conditionals. Don't check enable_font_backend. Delete all codes
19536 used only when USE_FONT_BACKEND is not defined.
19537 (x_set_font): Call x_new_font, not x_new_fontset2.
19538 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19539 already set for the frame.
19540
bba3e508
SM
19541 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19542 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
19543 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19544 font property. If a font is scalable, set avgwidth property to 0.
19545 Set font-entity property by font_put_extra.
19546 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 19547 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19548 (ftfont_spec_pattern): New function.
19549 (ftfont_list): Return a list, not vector.
19550 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19551 (ftfont_list_family): Don't downcase names.
19552 (ftfont_free_entity): Deleted.
19553 (ftfont_open): Return a font-object. Adjusted for the change of
19554 struct font. Get underline_thickness and underline_position from
19555 font property. Don't update dpyinfo->smallest_font_height and
19556 dpyinfo->smallest_char_width.
19557 (ftfont_close): Don't free `struct font'.
bba3e508 19558 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
19559 (ftfont_encode_char, ftfont_text_extents): Likewise.
19560
19561 * ftxfont.c (ftxfont_list): Return a list, not vector.
19562 (ftxfont_open): Return a font-object. Adjusted for the change of
19563 struct font. Get underline_thickness and underline_position from
19564 font property. Don't update dpyinfo->smallest_font_height and
19565 dpyinfo->smallest_char_width.
19566 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 19567 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 19568
bba3e508
SM
19569 * image.c (image_ascent): Don't include "charset.h".
19570 Include "character.h" and "font.h".
aac0c6e3
MR
19571
19572 * lisp.h (enum pvec_type): New member PREV_FONT.
19573 (Fassoc_string): EXFUN it.
19574
19575 * print.c: Include font.h.
19576 (print_object): Handle font-related objects.
19577
19578 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19579 conditionals. Don't check enable_font_backend. Delete all codes
19580 used only when USE_FONT_BACKEND is not defined.
19581 (handle_auto_composed_prop): Do nothing if it->f is not on a
19582 window system. Check how many following characters can be
19583 displayed by the same font.
19584 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19585 'struct font *'.
19586 (get_char_face_and_encoding): Assign the whole encoding task to
19587 the `encode-char' method of a font driver.
bba3e508 19588 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
19589 face' and `struct glyph_string'.
19590 (fill_glyph_string): Likewise.
19591 (get_per_char_metric): Arguments changed.
bba3e508 19592 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
19593 and `struct glyph_string'.
19594 (produce_stretch_glyph, calc_line_height_property)
19595 (x_produce_glyphs): Likewise.
19596
19597 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19598 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
19599 used only when USE_FONT_BACKEND is not defined.
19600 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
19601 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19602 (Qp): Extern them.
19603 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19604 Deleted.
19605 (struct font_name): Deleted.
19606 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19607 (compare_fonts_by_sort_order): New function.
19608 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19609 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19610 Deleted.
19611 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19612 compare_fonts_by_sort_order.
19613 (Fx_font_family_list): Call Ffont_family_list.
19614 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19615 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19616 (face_symbolic_slant, face_symbolic_swidth)
19617 (split_font_name_into_vector, build_font_name_from_vector)
19618 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19619 (font_rescale_ratio, split_font_name, build_font_name)
19620 (free_font_names, sort_fonts, x_face_list_fonts)
19621 (face_font_available_p, sorted_font_list, cmp_font_names)
19622 (font_list_1, concat_font_list, font_list, remove_duplicates):
19623 Deleted.
19624 (Fx_list_fonts): Use Ffont_list.
19625 (LFACE_AVGWIDTH): Deleted.
19626 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19627 by FONTP.
19628 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19629 (set_lface_from_font_name): Delete it.
ef1b0ba7 19630 (set_lface_from_font): Rename from
aac0c6e3
MR
19631 set_lface_from_font_and_fontset. Caller changed. Don't set
19632 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19633 for face.
19634 (merge_face_vectors): Copy font-spec if necessary.
19635 Clear properties of the font-spec if necessary.
19636 (merge_face_ref): Clear properties of the font-spec if necessary.
19637 (Finternal_set_lisp_face_attribute): Likewise.
19638 (set_font_frame_param): Use font_load_for_lface to load a
19639 font-object, and call Fmodify_frame_parameters with it.
19640 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19641 font name by Ffont_xlfd_name.
19642 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19643 QCslant, and QCwidth.
19644 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19645 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19646 Compare fonts by EQ.
19647 (lookup_non_ascii_face): Deleted.
19648 (face_for_font): The 2nd argument changed.
19649 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19650 Check atomic font properties by case insensitive.
19651 (realize_non_ascii_face): Set face->overstrike correctly.
19652 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19653 (dump_realized_face): Get font name from
19654 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19655
19656 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19657 conditionals. Don't check enable_font_backend. Delete all codes
19658 used only when USE_FONT_BACKEND is not defined.
19659 (xic_create_xfontset): Original code deleted and renamed from
19660 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19661 (x_make_gc): Don't set GCFont in GCs.
19662 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19663 opened by "fixed".
19664 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19665 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19666 get_font_repertory_func.
19667
19668 * xfont.c: Include <stdlib.h> and "ccl.h".
19669 (struct xfont_info): New structure.
19670 (xfont_query_font): Deleted.
ef1b0ba7 19671 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 19672 moved from xterm.c.
bba3e508 19673 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 19674 (compare_font_names): New function.
ef1b0ba7
SM
19675 (xfont_list_pattern): Sort font names case insensitively.
19676 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
19677 (xfont_list): Return a list, not vector.
19678 (xfont_match): If the font doesn't have QCname property, generate
19679 a name from the other font properties.
19680 (xfont_open): Return a font-object. Adjusted for the change of
19681 struct font. Get underline_thickness and underline_position from
19682 font property. Don't update dpyinfo->smallest_font_height and
19683 dpyinfo->smallest_char_width.
19684 (xfont_close): Don't free struct font.
bba3e508 19685 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 19686 (xfont_done_face): Deleted.
bba3e508 19687 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
19688 (xfont_encode_char, xfont_draw): Likewise.
19689 (xfont_check): New function.
19690
bba3e508 19691 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 19692 callback function.
bba3e508
SM
19693 (xftfont_match): Adjust for the format change of font-entity.
19694 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
19695 font-object. Adjusted for the change of struct font. Return a
19696 font-object. Don't update dpyinfo->smallest_font_height and
19697 dpyinfo->smallest_char_width.
19698 (xftfont_close): Block input while calling XftFontClose.
19699 (xftfont_prepare_face): Don't block input while calling
19700 xftfont_get_colors. Adjusted for the change of struct font.
19701 (xftfont_shape): Return value of error case fixed.
19702
19703 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19704
19705 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19706 conditionals.
19707 (FONT_WIDTH): Return (f)->max_width.
19708 (struct x_display_info): Delete member `font'.
19709 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19710 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19711 (struct x_output): Change type of `font' to `struct font *'.
19712
19713 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19714 conditionals. Don't check enable_font_backend. Delete all codes
19715 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19716 (x_per_char_metric, x_encode_char): Deleted.
19717 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 19718 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
19719 `struct face'.
19720 (x_draw_glyph_string_foreground)
19721 (x_draw_composite_glyph_string_foreground): Likewise.
19722 (x_draw_glyph_string): Likewise. Use font->underline_position and
19723 font->underline_thickness.
ef1b0ba7 19724 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
19725 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19726 (x_check_font): Call `check' method of a font driver.
19727 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19728 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 19729 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 19730 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
19731 redisplay_interface'.
19732
19733 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19734 conditionals. Don't check enable_font_backend. Delete all codes
19735 used only when USE_FONT_BACKEND is not defined. Surround non-used
19736 code by "#ifdef OLD_FONT" and "endif".
19737 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19738
19739 * w32font.h (struct w32font_info): New member.
19740 (FONT_COMPAT): New macro.
19741 (w32font_open_internal): Prototype adjusted.
19742
19743 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19744 OLD_FONT" and "endif".
19745
19746 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19747 conditionals. Don't check enable_font_backend. Delete all codes
19748 used only when USE_FONT_BACKEND is not defined.
19749 (w32font_open): Return a font-object. Make a font-object by
19750 font_make_object. Adjusted for the change of struct w32font_info.
19751 (w32font_close): Don't free struct font. Adjusted for the change
19752 of struct w32font_info.
19753 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 19754 Adjust for the change of struct w32font_info.
aac0c6e3
MR
19755 (w32font_draw): Likewise.
19756 (w32font_list_internal): Return a list, not vector.
19757 (w32font_open_internal): Change the 4th arg to font-object.
19758 Adjusted for the change of struct w32font_info and font-object format.
19759 (add_font_name_to_list): Don't downcase names.
19760 (w32_enumfont_pattern_entity): Make a font-entity by
19761 font_make_entity. Adjusted for the format change of font-entity.
19762 Use FONT_SET_STYLE to set a style-related font property. If a
19763 font is scalable, set avgwidth property to 0. Set font-entity
19764 property by font_put_extra.
bba3e508 19765 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
19766 (w32_weight_table, w32_decode_weight): New variables.
19767 (w32_encode_weight): New function.
bba3e508 19768 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
19769 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19770 weight value.
bba3e508 19771 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19772
19773 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19774 conditionals. Don't check enable_font_backend. Surround non-used
19775 code by "#ifdef OLD_FONT" and "endif".
19776 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 19777 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
19778
19779 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19780 conditionals. Don't check enable_font_backend. Delete all codes
19781 used only when USE_FONT_BACKEND is not defined. Surround non-used
19782 code by "#ifdef OLD_FONT" and "endif".
19783
19784 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19785 (uniscribe_open): Return value changed to font-object.
19786 Adjusted for the format change of font-object.
bba3e508 19787 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 19788 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 19789 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
19790 font_driver.
19791
197922008-05-13 Chong Yidong <cyd@stupidchicken.com>
19793
19794 * dispnew.c (update_frame_1): Check if tty output is still valid
19795 before flushing it.
19796
197972008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19798
19799 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19800 to Gtk+ menus.
19801
198022008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19803
19804 * dired.c (file_name_completion): Tweak the code so as to always do it
19805 in a single pass. Tighten the scope of some variables.
19806
19807 * dired.c (Qdefault_directory): New var.
19808 (file_name_completion): Use it instead of Fexpand_file_name.
19809 (syms_of_dired): Initialize it.
19810
198112008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19812
19813 * fileio.c (double_dollars): Remove dead code.
19814
198152008-05-10 Eli Zaretskii <eliz@gnu.org>
19816
19817 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19818 Mention w32-get-true-file-attributes in doc string.
19819
19820 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19821
198222008-05-09 Glenn Morris <rgm@gnu.org>
19823
19824 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19825 2008-04-23.
19826
198272008-05-09 Eli Zaretskii <eliz@gnu.org>
19828
19829 Support for reporting owner and group of each file on MS-Windows:
19830 * dired.c (stat_uname, stat_gname): New functions, with special
19831 implementation for w32.
19832 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19833
19834 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19835 (dflt_group_name): New static variable.
19836 (dflt_group): Rename from the_group.
19837 (init_user_info): Init dflt_group fields. Get user's group name
19838 from LookupAccountSid.
19839 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19840 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19841 New initialization states.
19842 (globals_of_w32): Initialize them to zero. Initialize the default
19843 group name to "None".
19844 (GetFileSecurity_Name): New global var, the name of the function
19845 to call for GetFileSecurity.
19846 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19847 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19848 (get_file_security, get_security_descriptor_owner)
19849 (get_security_descriptor_group, is_valid_sid)
19850 (get_file_security_desc, get_rid, get_name_and_id)
19851 (get_file_owner_and_group): New functions.
19852 (stat): Use get_file_security_desc and get_file_owner_and_group to
19853 report the owner and primary group of each file. Don't ignore the
19854 high 32 bits of file's size, now that st_size is 64-bit wide.
19855 Fix test when to get true file attributes.
19856 (init_user_info): Use get_rid instead of equivalent inline code.
19857 (fstat): Don't ignore the high 32 bits of file's size.
19858
198592008-05-09 Chong Yidong <cyd@stupidchicken.com>
19860
19861 * image.c (png_load): Use correct bit-depth for setting background
19862 color.
19863
198642008-05-08 Eli Zaretskii <eliz@gnu.org>
19865
19866 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19867 epa-hook.elc.
19868
198692008-05-08 Juanma Barranquero <lekktu@gmail.com>
19870
19871 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19872
198732008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19874
19875 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19876 because the original parameters are in pure storage now.
19877 (mac_window): Remove unused params. Update callers.
19878
198792008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19880
19881 * lread.c (substitute_object_recurse): Use lower-level primitives.
19882 Don't signal errors when traversing sub-char-tables.
19883 Don't loop over all the possible characters when traversing char-tables.
19884
19885 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19886 just like we do in print.c.
19887
198882008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19889
19890 * minibuf.c (Ftry_completion): Remove code left over from when we used
19891 scmp instead of Fcompare_strings.
19892
198932008-05-04 Juanma Barranquero <lekktu@gmail.com>
19894
19895 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19896
198972008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19898
19899 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19900 Create bitmap context in native byte order.
19901
19902 * macterm.c (XDrawLine)
19903 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19904 context in native byte order.
19905
199062008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19907
19908 * config.in: Regenerate.
19909
19910 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19911 New definitions for Image I/O support.
19912 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19913 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19914 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19915 (mac_data_provider_release_data, image_load_image_io)
19916 [USE_MAC_IMAGE_IO]: New functions.
19917 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19918 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19919 (init_image_func_pointer) [MAC_OSX]: Remove function.
19920 (image_load_quartz2d) [MAC_OSX]: Check availability of
19921 CGImageCreateWithPNGDataProvider at compile time.
19922 Use lowercase `false' for boolean constant.
19923 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19924 Use image_load_image_io.
19925 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19926 Don't check MyCGImageCreateWithPNGDataProvider.
19927 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19928 Don't call init_image_func_pointer.
19929
19930 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19931
19932 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19933 Make variable non-static.
19934 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19935 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19936
19937 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19938 (RED_FROM_ULONG): Mask off higher bits.
19939 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19940
19941 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19942 Include AvailabilityMacros.h.
19943 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19944 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19945
199462008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19947
19948 * chartab.c (Fset_char_table_range): If range is t, really set all
19949 chars to that value.
19950
199512008-05-03 Eli Zaretskii <eliz@gnu.org>
19952
19953 * dired.c (Ffile_attributes): Don't allow the device number become
19954 negative.
19955
199562008-05-02 Daiki Ueno <ueno@unixuser.org>
19957
19958 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19959
199602008-05-02 Juri Linkov <juri@jurta.org>
19961
19962 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19963 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19964 DEFAULT argument as a list of default values in docstrings.
19965
199662008-05-01 Chong Yidong <cyd@stupidchicken.com>
19967
19968 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19969
199702008-05-01 Martin Rudalics <rudalics@gmx.at>
19971
19972 * dispnew.c (change_frame_size_1): Preserve small windows when
19973 shrinking frames by calling set_window_height|width with third
19974 arg 2.
19975
19976 * window.h (struct window): Replace field too_small_ok by field
19977 resize_proportionally.
19978
19979 * window.c (make_window): Initialize resize_proportionally.
19980 (enlarge_window): Temporarily set resize_proportionally to make
19981 sure that shrink_windows does scale the window proportionally.
19982 (shrink_windows): When window has resize_proportionally set try
19983 to shrink it proportionally by stealing from other windows.
19984 (struct saved_window, Fset_window_configuration)
19985 (compare_window_configurations): Handle resize_proportionally.
19986 (WINDOW_TOTAL_SIZE): New macro.
19987 (window_min_size, shrink_windows, size_window): Use it.
19988 (check_min_window_sizes): Remove. Invalid values of
19989 window-min-height|width are handled by window_min_size_2 now.
19990 (size_window, Fsplit_window, enlarge_window)
19991 (adjust_window_trailing_edge, grow_mini_window): Don't call
19992 check_min_window_sizes.
19993 (window_min_size_2, window_min_size_1, window_min_size):
19994 New argument safe_p for retrieving "safe" minimum sizes.
19995 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19996 (adjust_window_trailing_edge, grow_mini_window):
19997 Adjust arguments of window_min_size... functions.
19998 (shrink_windows): Argument min_size removed. New argument
19999 safe_p allows shrinking windows to their safe minimum sizes.
20000 Calculate minimum size and decide whether a window shall be
20001 deleted for each window individually.
20002 (size_window): When nodelete_p equals 2, tell shrink_windows to
20003 delete windows only if their new minimum size is no more safe.
20004 (shrink_window_lowest_first): Call window_min_size_1 to make
20005 sure to preserve modeline of bottom-most window when resizing
20006 the minibuffer.
20007 (Fset_window_configuration, Fcurrent_window_configuration)
20008 (compare_window_configurations): Do not handle
20009 window-min-height|width any more.
20010 (syms_of_window): Clarify window-min-height|width doc-strings.
20011
200122008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
20013
20014 * dired.c (file_name_completion): Fix up the encoding/decoding issue
20015 some more. Copy some of the code from Ftry_completions.
20016 Remove special case code that dates back to initial revision when the
20017 slash was only added when necessary and that can't trigger nowadays.
20018
200192008-04-27 Kenichi Handa <handa@m17n.org>
20020
20021 * font.c (font_prop_validate): Signal `error' instead of `font'.
20022
200232008-04-29 Jason Rumney <jasonr@gnu.org>
20024
20025 * w32fns.c (Fw32_battery_status): New defun.
20026 (syms_of_w32fns): Defsubr it.
20027
200282008-04-28 Andreas Schwab <schwab@suse.de>
20029
20030 * dired.c (file_name_completion): Fix another mixing of encoded
20031 and decoded names.
20032
200332008-04-28 Juanma Barranquero <lekktu@gmail.com>
20034
20035 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
20036
200372008-04-27 Juanma Barranquero <lekktu@gmail.com>
20038
20039 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
20040
200412008-04-27 Andreas Schwab <schwab@suse.de>
20042
20043 * dired.c (file_name_completion): Fix inappropriate mixing of
20044 encoded and decoded names.
20045
20046 * xterm.c (XTread_socket): Fix use of uninitialized variable.
20047
20048 * puresize.h (BASE_PURESIZE): Increase to 1200000.
20049
200502008-04-26 Eli Zaretskii <eliz@gnu.org>
20051
20052 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
20053 2008-03-31, it's not needed anymore with `struct stat' definition
20054 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
20055 for the same reasons.
20056
200572008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
20058
20059 * m/sparc.h: Additional redefinitions for GNU/Linux.
20060
200612008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20062
20063 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
20064 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20065 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20066 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20067 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20068 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20069 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20070 Likewise.
20071
20072 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20073 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20074 (mac_ax_number_of_characters): Add externs.
20075 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20076 [USE_MAC_TSM]: Likewise.
20077 (mac_handle_text_input_event) [MAC_OSX]:
20078 Handle kEventTextInputOffsetToPos for no active input area case.
20079 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20080 (mac_handle_document_access_event)
20081 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20082 (install_application_handler) [MAC_OSX]: Register handlers for
20083 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20084 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20085 Register mac_handle_document_access_event.
20086
20087 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20088 Make functions non-static.
20089
200902008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20091
20092 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20093 (read_file_name_completion_ignore_case, insert_default_directory)
20094 (Qdefault_directory): Move to minibuffer.el.
20095 (Fread_file_name): Call the new `read-file-name' instead.
20096
200972008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20098
20099 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20100 Make function non-static.
20101 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20102 Remove function.
20103 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20104 Move to mactoolbox.c.
20105 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20106
20107 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20108 (mac_rect_make): New macro.
20109
20110 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20111 instead of float.
20112 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20113 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20114 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20115 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20116 CGRectMake.
20117 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20118 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20119 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20120 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20121 instead of WindowRef in argument type.
20122 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20123 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20124 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20125 instead of DISPLAY. All uses changed.
20126 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20127 (x_calc_absolute_position): Simplify so as not to use
20128 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20129
20130 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20131 instead of WindowRef in argument type.
20132 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20133 [TARGET_API_MAC_CARBON]: Remove externs.
20134 (create_apple_event, mac_event_parameters_to_lisp)
20135 [TARGET_API_MAC_CARBON]: Add externs.
20136
20137 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20138 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20139 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20140 is clicked.
20141 (x_activate_menubar): Remove extern for saved_menu_event_location.
20142 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20143 Move from mac.c.
20144
201452008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20146
20147 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20148 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20149
201502008-04-23 Jason Rumney <jasonr@gnu.org>
20151
20152 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20153 attributes only for local files.
20154
20155 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20156 default to Qlocal.
20157
201582008-04-22 Juri Linkov <juri@jurta.org>
20159
20160 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20161 read-buffer-to-switch instead of using the letter "B".
20162
201632008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20164
20165 * fileio.c (Qdefault_directory): New variable.
20166 (Fread_file_name): Use it to pass `dir' to the completion functions.
20167
201682008-04-20 Chong Yidong <cyd@stupidchicken.com>
20169
20170 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20171
201722008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20173
20174 * keyboard.c (Vpre_help_message): Remove.
20175 (show_help_echo): Remove default C code.
20176
20177 * dired.c (directory_files_internal, file_name_completion):
20178 Only call ENCODE_FILE if the string is indeed decoded.
20179
201802008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20181
20182 * Makefile.in (TOOLKIT_DEFINES): Remove.
20183 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20184
201852008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20186
20187 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20188 (mactoolbox.o): New target.
20189
20190 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20191 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20192
20193 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20194 Use mac_set_frame_window_background instead of XSetWindowBackground.
20195 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20196 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20197 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20198 instead of SetWindowTitleWithCFString.
20199 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20200 Move function to mactoolbox.c.
20201 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20202 Use mac_set_window_modified instead of SetWindowModified.
20203 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20204 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20205 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20206 FrontNonFloatingWindow. Use mac_activate_window instead of
20207 ActivateWindow. Use mac_active_non_floating_window instead of
20208 ActiveNonFloatingWindow.
20209 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20210 Use mac_show_hourglass and mac_hide_hourglass.
20211 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20212 instead of GetGlobalMouse.
20213 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20214 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20215 Use mac_bring_window_to_front instead of BringToFront.
20216 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20217 mactoolbox.c.
20218 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20219 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20220 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20221 mactoolbox.c.
20222
20223 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20224 (XtPointer): Move typedef from macmenu.c.
20225 (enum button_type): Move enum from macmenu.c.
20226 (widget_value): Move typedef from macmenu.c.
20227 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20228 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20229 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20230 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20231 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20232 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20233 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20234 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20235 (Selection): Move typedef from macselect.c.
20236 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20237 macterm.c.
20238 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20239 (mac_is_window_collapsed, mac_bring_window_to_front)
20240 (mac_send_window_behind, mac_hide_window, mac_show_window)
20241 (mac_collapse_window, mac_front_non_floating_window)
20242 (mac_active_non_floating_window, mac_activate_window)
20243 (mac_move_window_structure, mac_move_window, mac_size_window)
20244 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20245
20246 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20247 (enum mac_menu_kind): Move enum to mactoolbox.c.
20248 (min_menu_id): Move variable to mactoolbox.c.
20249 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20250 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20251 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20252 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20253 [TARGET_API_MAC_CARBON]: Likewise.
20254 (XtPointer): Move typedef to macgui.h.
20255 (enum button_type): Move enum to macgui.h.
20256 (widget_value): Move typedef to macgui.h.
20257 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20258 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20259 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20260 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20261 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20262 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20263 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20264 (popup_activated_flag): Make variable non-static.
20265 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20266 (add_menu_item, fill_menu, dispose_menus):
20267 Move functions to mactoolbox.c.
20268 (restore_show_help_function, menu_target_item_handler)
20269 (install_menu_target_item_handler, mac_handle_dialog_event)
20270 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20271 [TARGET_API_MAC_CARBON]: Likewise.
20272 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20273 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20274 (find_and_call_menu_selection, name_is_separator): Make function
20275 non-static.
20276 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20277 to mactoolbox.c.
20278 (set_frame_menubar): Don't call install_menu_quit_handler.
20279 (menu_item_selection): New variable.
20280 (mac_menu_show): Use create_and_show_popup_menu.
20281 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20282 selection but set variable menu_item_selection. All uses changed.
20283 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20284 Call install_menu_quit_handler. Move to mactoolbox.c.
20285
20286 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20287 (Selection): Move typedef to macgui.h.
20288 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20289 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20290 Make variables non-static.
20291 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20292 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20293 Make functions non-static.
20294 (Vmac_service_selection) [MAC_OSX]: Likewise.
20295 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20296 (mac_valid_selection_target_p, mac_clear_selection)
20297 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20298 (mac_put_selection_value, mac_selection_has_target_p)
20299 (mac_get_selection_value, mac_get_selection_target_list)
20300 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20301 Move functions to mactoolbox.c.
20302 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20303 Likewise.
20304 (copy_scrap_flavor_data, mac_handle_service_event)
20305 (install_service_handler) [MAC_OSX]: Likewise.
20306 (syms_of_macselect) <Vmac_dnd_known_types>:
20307 Use mac_dnd_default_known_types.
20308
20309 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20310 Move to mactoolbox.c.
20311 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20312 (Fx_selection_owner_p): Add EXFUN.
20313 (install_window_handler, remove_window_handler, XSetWindowBackground):
20314 Remove externs.
20315 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20316 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20317 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20318 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20319 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20320 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20321 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20322 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20323 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20324 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20325 (mac_valid_selection_target_p, mac_clear_selection)
20326 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20327 (mac_put_selection_value, mac_selection_has_target_p)
20328 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20329 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20330 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20331 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20332 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20333 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20334 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20335 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20336 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20337
20338 * mactoolbox.c: New file.
20339
203402008-04-18 Jason Rumney <jasonr@gnu.org>
20341
20342 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20343
203442008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20345
20346 * character.c (Fmultibyte_char_to_unibyte):
20347 Return latin1 chars unchanged.
20348
20349 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20350 relocated if it points to `name'.
20351
203522008-04-17 Kenichi Handa <handa@m17n.org>
20353
20354 * data.c (Faset): Allow setting a multibyte character in an
20355 ASCII-only unibyte string.
20356
20357 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20358
203592008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20360
20361 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20362 done in config.h.
20363
203642008-04-16 Juanma Barranquero <lekktu@gmail.com>
20365
20366 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20367 (Fchar_direction): Add usage in the docstring.
20368
203692008-04-15 Chong Yidong <cyd@stupidchicken.com>
20370
20371 * keyboard.c (read_key_sequence): Remove always-true checks.
20372
203732008-04-14 Jason Rumney <jasonr@gnu.org>
20374
20375 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20376 compatibility struct, for better underline positioning.
20377
203782008-04-13 David Hansen <david.hansen@gmx.net>
20379
20380 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20381 string.
20382
203832008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20384
20385 * m/hp800.h (XUINT, XSET): Remove.
20386
203872008-04-12 Juanma Barranquero <lekktu@gmail.com>
20388
20389 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20390 previous change.
20391
203922008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20393
20394 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20395 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20396
203972008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20398
20399 * keymap.h (map_keymap_canonical): Declare.
20400 * xmenu.c (single_keymap_panes): Use it.
20401
204022008-04-11 Glenn Morris <rgm@gnu.org>
20403
20404 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20405 set the target's value to that of the alias.
20406
204072008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20408
20409 * term.c (set_tty_color_mode): Left over typo.
20410
204112008-04-10 Michael Albinus <michael.albinus@gmx.de>
20412
20413 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20414 only after check for file name handler functions. Signal, when
20415 native functionality is not supported.
20416 (syms_of_fileio): Declare it unconditionally.
20417
204182008-04-10 Jason Rumney <jasonr@gnu.org>
20419
20420 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20421 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20422
20423 * w32.c (logon_network_drive): Also logon to remote drives that
20424 are mapped to drive letters.
20425
204262008-04-10 Glenn Morris <rgm@gnu.org>
20427
20428 * xdisp.c (truncate-partial-width-windows): Doc fix.
20429
204302008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20431
20432 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20433 Move functions to minibuffer.el.
20434 (syms_of_fileio): Don't declare them.
20435
204362008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20437
20438 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20439 (syms_of_minibuf): Remove its initialization.
20440
20441 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20442
204432008-04-09 Juanma Barranquero <lekktu@gmail.com>
20444
20445 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20446
204472008-04-09 Jason Rumney <jasonr@gnu.org>
20448
20449 * makefile.w32-in (distclean): Delete makefile too.
20450 (maintainer-clean): New target.
20451
20452 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20453
20454 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20455 for new font backend and composite cases.
20456
204572008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20458
20459 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20460 Most of the code moved to run_timers.
20461 (do_pending_atimers): Call run_timers.
20462 (run_timers): New function.
20463
20464 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20465 run atimers.
20466
20467 * process.c (wait_reading_process_output): The same as above.
20468
204692008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20470
20471 * minibuf.c (last_exact_completion): Remove variable.
20472 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20473 (complete_and_exit_1, complete_and_exit_2)
20474 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20475 (Fdisplay_completion_list, display_completion_list_1)
20476 (Fminibuffer_completion_help, Fself_insert_and_exit)
20477 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20478 minibuffer.el.
20479 (syms_of_minibuf): Remove corresponding initializations.
20480
20481 * keyboard.c (Qdeactivate_mark): New var.
20482 (command_loop_1): Use it to call `deactivate-mark'.
20483 (syms_of_keyboard): Initialize it.
20484
20485 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20486 to another frame.
20487 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20488 Don't call set_tty_color_mode.
20489 (store_frame_param): Reset previous_frame rather than call
20490 set_tty_color_mode.
20491 * term.c (set_tty_color_mode): Rewrite.
20492 * dispextern.h (set_tty_color_mode): New type.
20493 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20494
204952008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20496
20497 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20498 for generic chars, which do not exist any more in emacs-unicode.
20499
205002008-04-08 Michael Albinus <michael.albinus@gmx.de>
20501
20502 * coding.c (detect_coding_emacs_mule)
20503 (Ffind_operation_coding_system): Fix typo.
20504
205052008-04-08 Jason Rumney <jasonr@gnu.org>
20506
20507 * w32uniscribe.c (SNAME): Extract only symbol name.
20508
20509 * w32font.h (struct w32_metric_cache): New struct.
20510 (w32font_info): Use it.
20511 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20512 (CACHE_BLOCKSIZE): New constants.
20513
20514 * w32font.c (Qja, Qko, Qzh): New symbols.
20515 (syms_of_w32font): Initialise them.
20516 (font_matches_spec): Use them to filter by language.
20517 (recompute_cached_metrics): Remove function.
20518 (compute_metrics, clear_cached_metrics): New functions.
20519 (w32font_encode_char): Use them to manage metric cache.
20520 (w32font_text_extents): Cache metrics for all glyphs on demand.
20521 Delay converting glyph indices to WORD until needed.
20522 (w32font_open_internal): Initialize metric cache to empty.
20523 (registry_to_w32_charset): Charset should always be a symbol.
20524 (fill_in_logfont, list_all_matching_fonts): Family should
20525 always be a symbol.
20526
205272008-04-06 Jason Rumney <jasonr@gnu.org>
20528
20529 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20530 Give up if glyph indices not supported. Use uniscribe obtained
20531 ABC widths for individual metrics. Map glyph clusters back to
20532 characters using fClusterStart flag. Return number of glyphs
20533 produced, not chars processed.
20534 (uniscribe_shape): Map char at FROM to current glyph.
20535
205362008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20537
20538 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20539 Use SetMenuItemHierarchicalMenu.
20540
205412008-04-05 Jason Rumney <jasonr@gnu.org>
20542
20543 * image.c (pbm_load): Allow color values up to 65535.
20544 Throw an error if max_color_idx is outside the supported range.
20545 Report an error when image size is invalid.
20546 Read two bytes at a time when raw images have max_color_idx above 255.
20547
aac0c6e3
MR
205482008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20549
20550 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20551 append "CCL: Quitted" when the CCL program is quitted.
20552 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20553
20554 * ccl.h (struct ccl_program): New member quit_silently.
20555
205562008-04-05 Chong Yidong <cyd@stupidchicken.com>
20557
20558 * search.c (compile_pattern_1): Treat non-nil and non-string of
20559 search-spaces-regexp as nil.
20560
20561 * minibuf.c (Fassoc_string): Tweak docstring.
20562
205632008-04-05 Eli Zaretskii <eliz@gnu.org>
20564
20565 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20566 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20567 2008-03-14 to force inode be positive.
20568
20569 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20570 _S_* ones, since we now use our own sys/stat.h.
20571 (stat, fstat): Don't mangle the inode number.
20572 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20573
205742008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20575
20576 * frame.h (struct frame): Give one more bit to `visible' since we use
20577 values larger than 1 to indicate obscured frames on ttys.
20578
20579 * keymap.c (Qkeymap_canonicalize): New var.
20580 (Fmap_keymap_internal): New fun.
20581 (describe_map): Use keymap-canonicalize.
20582
20583 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20584 (Fundo_boundary): Set them.
20585 (syms_of_undo): Initialize them.
20586 (record_point): Use them instead of last_point_position*.
20587 (last_undo_buffer): Change type.
20588
205892008-04-04 Jason Rumney <jasonr@gnu.org>
20590
20591 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20592 (recompute_cached_metrics): Don't set ascent and descent per char.
20593
20594 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20595 (uniscribe_check_otf): Add GC protection before consing.
20596 Rearrange loop for counting features.
20597
205982008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20599
20600 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20601 buffer with byte-size of source buffer.
20602
206032008-04-03 Chong Yidong <cyd@stupidchicken.com>
20604
20605 * callint.c (Fcall_interactively): Handle temporary region even
20606 when shift-select-mode is off.
20607
206082008-04-03 Jason Rumney <jasonr@gnu.org>
20609
20610 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20611
206122008-04-03 Kenichi Handa <handa@m17n.org>
20613
20614 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20615 (CATEGORY_MASK_UTF_16): Likewise.
20616 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20617 binary file.
20618 (detect_coding): Add null-byte detection for a binary file.
20619 (detect_coding_system): Likewise.
20620
206212008-04-03 Jason Rumney <jasonr@gnu.org>
20622
20623 * w32uniscribe.c: New file.
20624
20625 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20626
20627 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20628
20629 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20630 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20631 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20632 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20633 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20634 (Qphonetic): New symbols.
20635 (syms_of_w32font): Initialize them.
20636 (font_supported_scripts): Use them.
20637 (w32font_list_family): List all charsets.
20638 (w32font_text_extents, recompute_cached_metrics): Fix metric
20639 calculations.
20640 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20641 Give opentype fonts their own format.
20642 (font_matches_spec): New arguments backend and logfont.
20643 Handle :otf spec for uniscribe backend.
20644 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20645 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20646
20647 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20648 font backend.
20649 (globals_of_w32fns): Initialize uniscribe font backend.
20650
20651 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20652 dependencies.
20653 (w32uniscribe.$(O)): New file to build.
20654 (FONT_OBJ): Include w32uniscribe.$(O).
20655 (LIBS): Add uniscribe libraries.
20656
20657 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20658
206592008-04-02 Chong Yidong <cyd@stupidchicken.com>
20660
20661 * callint.c (Vshift_select_mode): New var.
20662 (Finteractive): Document new ^ spec.
20663 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20664 is present.
20665
20666 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20667 (command_loop_1): Avoid running the direct display versions of
20668 forward-char and backward-char if shift-selection may occur.
20669 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20670 shift-translation takes place.
20671
20672 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20673 avoid clobbering by define-minor-mode.
20674
20675 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20676 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20677
20678 * syntax.c (Fforward_word): Add ^ interactive spec.
20679
20680 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20681 (Fscroll_right): Add ^ interactive spec.
20682
206832008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20684
20685 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20686
20687 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20688
20689 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20690
206912008-03-31 Juri Linkov <juri@jurta.org>
20692
20693 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20694
206952008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20696
20697 * gtkutil.c (xg_set_geometry): Fix indentation.
20698 (xg_resize_outer_widget): Remove.
20699 (x_wm_size_hint_off): Fix indentation.
20700 (xg_frame_set_char_size): Call flush_and_sync after
20701 gtk_window_resize.
20702 (x_wm_set_size_hint): Pass NULL as geometry window to
20703 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20704 Add menu bar and tool bar height to base height.
20705 (xg_update_frame_menubar, free_frame_menubar)
20706 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20707 (update_frame_tool_bar, free_frame_tool_bar):
20708 Change xg_resize_outer_widget to xg_frame_set_char_size.
20709
207102008-03-30 Michael Albinus <michael.albinus@gmx.de>
20711
20712 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20713 (Fdbus_call_method): New parameter TIMEOUT.
20714 (dbus-send-signal): Optimize UNGCPRO call.
20715
207162008-03-29 Juri Linkov <juri@jurta.org>
20717
20718 * window.c (Fdisplay_buffer): Move call to
20719 Vsplit_window_preferred_function out of conditions that check
20720 if window is eligible for vertical splitting.
20721 When Vsplit_window_preferred_function is non-nil, call it and use
20722 its non-nil return value as window. Otherwise, continue doing
20723 vertical splitting using Fsplit_window with arg horflag=nil.
20724 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20725 default value from `split-window' to nil.
20726
207272008-03-29 Juri Linkov <juri@jurta.org>
20728
20729 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20730 for interactive code letters 'b' and 'B'.
20731
207322008-03-29 Eli Zaretskii <eliz@gnu.org>
20733
20734 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20735 multibyte string.
20736
207372008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20738
20739 * keyboard.c (pending_funcalls): New var.
20740 (timer_check): Run it.
20741 (syms_of_keyboard): Initialize it.
20742 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20743 (Vdelete_terminal_functions): New vars.
20744 (syms_of_terminal): Initialize them.
20745 (Fdelete_terminal): Run delete-terminal-functions.
20746 * xdisp.c (safe_eval): Rewrite.
20747 (safe_call2): New fun.
20748 * frame.c (Qdelete_frame_functions): New var.
20749 (syms_of_frame): Initialize it.
20750 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20751 * lisp.h (safe_call2, pending_funcalls): Declare.
20752
207532008-03-28 Andreas Schwab <schwab@suse.de>
20754
20755 * indent.c (Fmove_to_column): Move declaration before statements.
20756
207572008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20758
20759 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20760 (struct frame): Use bit fields for boolean vars.
20761
20762 * process.c (server_accept_connection): Simplify naming.
20763 (emacs_get_tty_pgrp): Use SDATA.
20764
20765 * coding.c (decode_coding_object): Fix last change.
20766
207672008-03-27 Jason Rumney <jasonr@gnu.org>
20768
20769 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20770
207712008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20772
20773 * charset.c (Fdefine_charset_internal): Change the way of
20774 registering charsets in Vcharset_order_list.
20775 (syms_of_charset): Make the charset `eight-bit' supplementary.
20776
207772008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20778
20779 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20780 operations, to avoid having the difference between pointers
20781 overflow.
20782
207832008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20784
20785 * indent.c (check_display_width): New fun.
20786 (scan_for_column): Use it.
20787
20788 * data.c (syms_of_data): Mark most-positive-fixnum and
20789 most-negative-fixnum as constants.
20790
20791 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20792
20793 * indent.c (scan_for_column): Extract from current_column_1.
20794 Merge with the same code from Fmove_to_column.
20795 (current_column_1, Fmove_to_column): Use it.
20796
207972008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20798
20799 * keymap.c (map_keymap_internal): New fun.
20800 (map_keymap): Use it.
20801 (Fmap_keymap_internal): New fun.
20802 (Fmap_keymap): Remove left-out test from before make_save_value.
20803
20804 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20805
20806 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20807 Use XCAR/XCDR.
20808
20809 * process.h (struct Lisp_Process): Remove filter_multibyte.
20810 * process.c (QCfilter_multibyte): Remove.
20811 (setup_process_coding_systems): Don't use filter_multibyte.
20812 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20813 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20814 (Fset_process_filter_multibyte): Change the coding-system to
20815 approximate the previous behavior.
20816 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20817 coding-system.
20818
20819 * coding.c (decode_coding_object): When not decoding into a buffer,
20820 obey the coding system's preference of (uni|multi)byte.
20821
208222008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20823
20824 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20825 every char is changed and has a different byte-length.
20826 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20827 Fix int -> EMACS_INT.
20828
208292008-03-23 David Hansen <david.hansen@gmx.net>
20830
20831 * dbusbind.c (xd_read_message): Remove extra copying of message
20832 strings. Check for NULL `interface' or `member'.
20833
208342008-03-22 Eli Zaretskii <eliz@gnu.org>
20835
20836 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20837 cFileName a file name that includes `?' characters, use the 8+3
20838 alias in cAlternateFileName instead.
20839
208402008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20841
20842 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20843
208442008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20845
20846 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20847 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20848 work on current_buffer only instead (that was already the case
20849 for some of the code anyway).
20850 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20851 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20852 (SET_PT, SET_PT_BOTH): Adjust.
20853 * intervals.h (set_point, temp_set_point, set_point_both)
20854 (temp_set_point_both): Remove redundant declarations.
20855
208562008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20857
20858 * fileio.c (Finsert_file_contents):
20859 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20860 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20861 when buffer != current_buffer anyway.
20862
208632008-03-20 Andreas Schwab <schwab@suse.de>
20864
20865 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20866 as default.
20867
208682008-03-19 Jason Rumney <jasonr@gnu.org>
20869
20870 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20871 (syms_of_w32fns): Initialize them.
20872 (HOURGLASS_ID): New constant.
20873 (x_window_to_frame): Don't check hourglass_window.
20874 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20875 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20876 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20877 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20878 Only change the cursor if hourglass is not active.
20879 (Fx_create_frame): Initialize frame's current_cursor.
20880 (hourglass_atimer): Remove.
20881 (hourglass_started): New function.
20882 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20883 (show_hourglass): Adapt to w32, changing argument to frame.
20884
20885 * w32term.h (struct w32_output): Remove hourglass_window.
20886 Add current_cursor.
20887
20888 * eval.c (call_debugger, Fsignal):
20889 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20890 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20891 (Fexecute_extended_command, cancel_hourglass_unwind):
20892 * minibuf.c (read_minibuf):
20893 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20894
208952008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20896
20897 * window.c (run_funs): New fun.
20898 (run_window_configuration_change_hook): Use it to run the buffer-local
20899 and the global part of the hook.
20900
20901 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20902 (unwind_format_mode_line): Restore selected window.
20903 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20904
209052008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20906
20907 * editfns.c (Fchar_equal): Check they are valid characters.
20908
20909 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20910
209112008-03-17 Andreas Schwab <schwab@suse.de>
20912
20913 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20914 against a charset.
20915
20916 * lisp.h (Fbuffer_list): Declare.
20917
209182008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 20919
aac0c6e3
MR
20920 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20921 handlebox_widget is != 0.
20922
209232008-03-16 Juri Linkov <juri@jurta.org>
20924
20925 * callint.c (Fcall_interactively): For interactive code letters
20926 'b' and 'B' put the buffer list into the list of default "future"
20927 values of the minibuffer.
20928
209292008-03-16 Andreas Schwab <schwab@suse.de>
20930
20931 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20932 modifiers.
20933
20934 * regex.c (re_match_2_internal): Correct matching of a charset
20935 against latin-1 characters.
20936
209372008-03-16 Kenichi Handa <handa@m17n.org>
20938
20939 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20940 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20941 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20942 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20943 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20944 CHAR_STRING_ADVANCE.
20945 (produce_chars): Fix for the case that the source and the
20946 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20947 instead of CHAR_STRING_ADVANCE.
20948 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20949 STRING_CHAR_ADVANCE.
20950
209512008-03-15 Andreas Schwab <schwab@suse.de>
20952
20953 * regex.c (re_match_2_internal): Correct matching of eight bit
20954 characters in unibyte strings.
20955
209562008-03-15 Martin Rudalics <rudalics@gmx.at>
20957
20958 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20959 at end of range when it coincides with the end of the buffer.
20960
209612008-03-14 Eli Zaretskii <eliz@gnu.org>
20962
20963 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20964
20965 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20966
209672008-03-14 Jason Rumney <jasonr@gnu.org>
20968
20969 * editfns.c (initial_tz): New variable.
20970 (syms_of_editfns): Initialize it.
20971 (Fset_time_zone_rule): Set it when first called.
20972 Use it when TZSTRING is nil.
20973
20974 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20975 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20976 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20977 (globals_of_w32fns): Initialize them.
20978 (compute_tip_xy): Use them to position tooltips.
20979
209802008-03-14 Glenn Morris <rgm@gnu.org>
20981
20982 * emacs.c (main): Revert previous change.
20983 (standard_args): Revert -internal-script back to -scriptload,
20984 and remove the long-option form.
20985
209862008-03-13 Glenn Morris <rgm@gnu.org>
20987
20988 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20989 Remove option -enable-font-backend.
20990
209912008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20992
20993 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20994
209952008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20996
20997 * xterm.c (x_connection_closed): For GTK: If this is the last
20998 terminal just exit without closing the display.
20999
210002008-03-11 Jason Rumney <jasonr@gnu.org>
21001
21002 * w32font.c (w32font_full_name): Use floor to round.
21003
f0131492 210042008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
21005
21006 * sound.c (alsa_configure): Declare vol at beginning of block.
21007
21008 * fontset.c (Ffontset_info): Remove extra semicolon.
21009
210102008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
21011
21012 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
21013 size of resulting string.
21014
210152008-03-10 Jason Rumney <jasonr@gnu.org>
21016
21017 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
21018
210192008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21020
21021 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
21022 Don't pretend as if characters with display property haven't been
21023 consumed for string-replacing-string case.
21024
210252008-03-08 Kim F. Storm <storm@cua.dk>
21026
21027 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
21028 (get_next_display_element, next_element_from_string)
21029 (next_element_from_ellipsis, next_element_from_buffer): Use it.
21030
210312008-03-08 Andreas Schwab <schwab@suse.de>
21032
21033 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
21034
210352008-03-06 Jason Rumney <jasonr@gnu.org>
21036
21037 * w32font.c (w32_registry): Take font_type argument. Use ANSI
21038 when charset not specified. Only translate ANSI to unicode when
21039 font_type is truetype.
21040 (w32font_coverage_ok): New function.
21041 (add_font_entity_to_list): Use it to filter unsuitable fonts.
21042
210432008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
21044
21045 * lread.c (Fread_char): Resolve modifiers.
21046 (Fread_char_exclusive): Likewise.
21047
21048 * character.c (char_resolve_modifier_mask): New function.
21049 (char_string): Use char_resolve_modifier_mask.
21050 (Fchar_resolve_modifiers): New function.
21051 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
21052 function.
21053
210542008-03-04 Jason Rumney <jasonr@gnu.org>
21055
21056 * makefile.w32-in: Always include w32font.c in the build.
21057 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
21058
210592008-03-04 Andreas Schwab <schwab@suse.de>
21060
21061 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
21062 (versionclean): Likewise.
21063
210642008-03-04 Juanma Barranquero <lekktu@gmail.com>
21065
21066 * .cvsignore: Add oo.
21067
210682008-03-03 Andreas Schwab <schwab@suse.de>
21069
21070 * coding.c (decode_coding_object): Inhibit gap shrinking while
21071 decoding in place.
21072
210732008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21074
21075 * w32term.c: Remove unused include "gnu.h".
21076 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21077
21078 * gnu.h: Rename to ...
21079 * emacs-icon.h: ... this.
21080 * xterm.c: Use emacs-icon.h instead of gnu.h.
21081 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21082
210832008-03-03 Juanma Barranquero <lekktu@gmail.com>
21084
21085 * w32font.c: Include math.h.
21086
210872008-03-03 Jason Rumney <jasonr@gnu.org>
21088
21089 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21090 Compute options separately.
21091 (w32font_open_internal): Set glyph_idx before caching metrics.
21092
21093 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21094 Define if system headers don't.
21095 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21096 (w32font_encode_char): Don't declare here.
21097
21098 * w32font.c (Quniscribe, QCformat): New symbols.
21099 (syms_of_w32font): Define them.
21100 (w32font_has_char): Indicate uncertainty.
21101 (w32font_encode_char): Encode as glyph point. Make static.
21102 (recompute_cached_metrics): New function.
21103 (w32font_open_internal): Use it. Set font to use glyph points
21104 initially. Set format based on type of font.
21105 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21106 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21107 on it. Set format based on information available here.
21108 (add_font_entity_to_list): Identify backend based on opentype_only.
21109
211102008-03-02 Andreas Schwab <schwab@suse.de>
21111
21112 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21113
21114 * coding.c (decode_coding_big5, produce_chars):
21115 Fix typos in last change.
21116
211172008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21118
21119 * gnu.h: New icon.
21120
211212008-03-02 Kenichi Handa <handa@m17n.org>
21122
21123 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21124 `dos', don't decode '\r' if that is the last in the source.
21125 (decode_coding_utf_16, decode_coding_emacs_mule)
21126 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21127 (decode_coding_raw_text, decode_coding_charset): Likewise.
21128 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21129
211302008-03-01 Jason Rumney <jasonr@gnu.org>
21131
21132 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21133
211342008-03-01 Kim F. Storm <storm@cua.dk>
21135
21136 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21137
211382008-03-01 Jason Rumney <jasonr@gnu.org>
21139
21140 * w32font.c (w32font_full_name): New function.
21141 (w32font_open_internal): Use it.
21142
211432008-03-01 Kim F. Storm <storm@cua.dk>
21144
21145 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21146
211472008-03-01 Jason Rumney <jasonr@gnu.org>
21148
21149 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21150
211512008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21152
21153 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21154 xg_frame_resized when the event is for the edit widget.
21155
ef1b0ba7 21156 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
21157
21158 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21159 set_char_size.
ef1b0ba7 21160 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
21161 operations on widgets here. Just set frame size if needed.
21162 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21163 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21164 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21165 the whole frame.
21166 (xg_create_tool_bar): Move attachment of the tool bar to
21167 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21168 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21169
211702008-03-01 Jason Rumney <jasonr@gnu.org>
21171
21172 * w32fns.c (w32_msg_pump): Disable debug code.
21173
211742008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21175
21176 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21177
211782008-02-29 Chong Yidong <cyd@stupidchicken.com>
21179
21180 * xdisp.c (next_overlay_string): Don't set
21181 overlay_strings_at_end_processed_p if we're currently reading from
21182 a display string.
21183
211842008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21185
21186 * xdisp.c (get_overlay_strings_1): Fix typo.
21187
211882008-02-29 Chong Yidong <cyd@stupidchicken.com>
21189
21190 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21191
211922008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21193
21194 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21195
21196 * xdisp.c (display_mode_element): Cancel the previous change.
21197 (decode_mode_spec): Likewise.
21198 (handle_auto_composed_prop): Don't make composition if it->string
21199 is a string.
21200
212012008-02-27 Kim F. Storm <storm@cua.dk>
21202
21203 * lisp.h (GLYPH): Change type from int to struct with separate char
21204 and face_id members.
21205 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21206 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21207 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21208 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21209 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21210 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21211 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21212 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21213 handle new Lisp glyph code encoding, either an integer or a cons.
21214
21215 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21216 (GLYPH_ALIAS): Delete.
21217 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21218 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21219 (GLYPH_FROM_CHAR): Replace macro by ...
21220 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21221
21222 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21223 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21224 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21225 (GLYPH_INVALID_P): New macro.
21226 (spec_glyph_lookup_face): Update prototype.
21227
21228 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21229 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21230 new glyph code encoding.
21231 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21232 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21233
21234 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21235 Adapt to new glyph type and new glyph code encoding.
21236
21237 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21238
21239 * indent.c (current_column, current_column_1, Fmove_to_column)
21240 (compute_motion): Adapt to new glyph code encoding.
21241
21242 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21243
212442008-02-27 Chong Yidong <cyd@stupidchicken.com>
21245
21246 * process.c (wait_reading_process_output): Check for window
21247 changes caused by timers.
21248 Suggested by Johan Bockgård.
21249
212502008-02-27 Glenn Morris <rgm@gnu.org>
21251
21252 * emacs.c (USAGE1): Add `--disable-font-backend'.
21253
212542008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21255
21256 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21257 is made to the buffer.
21258
212592008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21260
21261 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21262 (face_at_string_position):
21263 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21264 (face_at_string_position):
21265 * xdisp.c (display_string, next_overlay_change):
21266 * buffer.h (overlays_at):
21267 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21268 Update callers.
21269
212702008-02-26 Chong Yidong <cyd@stupidchicken.com>
21271
21272 * editfns.c (Fformat): Doc fix.
21273
212742008-02-26 Juanma Barranquero <lekktu@gmail.com>
21275
21276 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21277 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21278 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21279
212802008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21281
21282 * buffer.c (Fbuffer_swap_text): New function.
21283 (syms_of_buffer): Defsubr it.
21284
212852008-02-25 Chong Yidong <cyd@stupidchicken.com>
21286
21287 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21288
212892008-02-25 Jason Rumney <jasonr@gnu.org>
21290
21291 * w32font.c (w32font_draw): Draw one character at a time when padding.
21292
212932008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21294
21295 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21296 Handle a nil arg. Use run_window_configuration_change_hook.
21297 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21298 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21299 Use run_window_configuration_change_hook.
21300
213012008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21302
21303 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21304 1-pixel width.
21305
213062008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21307
21308 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21309 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21310 if the glyph in the font is zero pixel with.
21311
21312 * dispextern.h (struct glyph_string): New member padding_p.
21313
21314 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21315
21316 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21317
21318 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21319
21320 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21321
21322 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21323
213242008-02-25 Jason Rumney <jasonr@gnu.org>
21325
21326 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21327
213282008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21329
21330 Allow fine-grained image-cache flushing.
21331 * dispextern.h (struct image): Add `dependencies' field.
21332 (clear_image_caches): Change arg to Lisp_Object.
21333 * image.c (make_image): Initialize `dependencies' field.
21334 (clear_image_cache): Change arg to allow fine-grained flushing.
21335 Perform the flush even if image-cache-eviction-delay is nil.
21336 (clear_image_caches): Change arg to Lisp_Object.
21337 (Fclear_image_cache): Expand meaning of the argument.
21338 (mark_image): Mark `dependencies' field.
21339 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21340 (lface_hash): Use XHASH rather than XFASTINT.
21341 (face_at_buffer_position): Fix int -> EMACS_INT position.
21342 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21343 (select_frame_for_redisplay): Remove code duplication.
21344 (redisplay_internal): Adapt arg to call to clear_image_caches.
21345
213462008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21347
21348 * s/vms4-0.h:
21349 * s/vms4-2.h:
21350 * s/vms4-4.h:
21351 * s/vms5-5.h: Remove, unused.
21352
21353 * s/irix5-2.h:
21354 * s/irix6-0.h:
21355 * s/riscos5.h:
21356 * s/mach-bsd4-3.h:
21357 * m/mips4.h: Remove files for obsolete systems.
21358
21359 * Makefile.in:
21360 * filelock.c:
21361 * unexmips.c:
21362 * m/hp9000s300.h:
21363 * m/iris4d.h:
21364 * s/aix3-1.h:
21365 * s/hpux.h:
21366 * s/msdos.h:
21367 * s/usg5-0.h:
21368 * s/usg5-2-2.h:
21369 * s/usg5-2.h:
21370 * s/usg5-3.h: Remove references to obsolete variables.
21371
21372 * s/irix5-0.h: Remove, move all the contents ...
21373 * s/irix6-5.h: ... here. Simplify.
21374 * config.in: Regenerate.
21375
213762008-02-24 Jason Rumney <jasonr@gnu.org>
21377
21378 * w32term.c (x_draw_glyph_string_background): Clear the background
21379 manually when cleartype is in use.
21380 (x_draw_glyph_string_foreground): Draw text transparently when
21381 cleartype is in use.
21382
21383 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21384 a font into it unless we have to.
21385
213862008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21387
21388 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21389 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 21390
aac0c6e3
MR
213912008-02-18 Jason Rumney <jasonr@gnu.org>
21392
21393 * w32fns.c (Fw32_shell_execute): Encode parameters.
21394
213952008-02-09 Eli Zaretskii <eliz@gnu.org>
21396
21397 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21398
213992008-02-05 Juanma Barranquero <lekktu@gmail.com>
21400
21401 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21402
214032008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21404
21405 * xterm.c (x_set_offset): Don't change the gravity if
21406 CHANGE_GRAVITY is -1.
21407
214082008-02-23 Chong Yidong <cyd@stupidchicken.com>
21409
21410 * fileio.c (auto_save_error_occurred): New var.
21411 (auto_save_error): Set it.
21412 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21413 error occurred.
21414
214152008-02-23 Eli Zaretskii <eliz@gnu.org>
21416
21417 * w32.c (globals_of_w32): Add initializations for
21418 g_b_init_get_sid_sub_authority and
21419 g_b_init_get_sid_sub_authority_count.
21420
214212008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21422
21423 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21424 (font_parse_xlfd): Use them for sanity check.
21425 (Finternal_set_font_style_table): Make sure the table is bijective.
21426
21427 Consolidate the image_cache to the terminal struct.
21428 * termhooks.h (P_): Remove redundant def.
21429 (struct terminal): New field `image_cache'.
21430 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21431 of FRAME_X_IMAGE_CACHE.
21432 * xterm.h (struct x_display_info): Remove image_cache field.
21433 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21434 * w32term.h (struct w32_display_info): Remove image_cache field.
21435 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21436 * macterm.h (struct mac_display_info): Remove image_cache field.
21437 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21438 * xterm.c (x_term_init):
21439 * w32term.c (w32_term_init):
21440 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21441 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21442 Remove declarations.
21443 (clear_image_caches, mark_image_cache): New declarations.
21444 * xfaces.c (clear_face_cache):
21445 * xdisp.c (redisplay_internal): Use clear_image_caches.
21446 * image.c (clear_image_cache): Don't check that a frame is on
21447 a window-system before checking if it shares the same cache.
21448 (clear_image_caches): New function.
21449 (Fclear_image_cache): Use it.
21450 (mark_image): Move from allo.c.
21451 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21452 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21453 (mark_object): Don't call mark_image_cache for frames.
21454 (mark_terminals): Call mark_image_cache.
21455
21456 * lisp.h (Fdelete_terminal): Declare.
21457
21458 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21459 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21460 wrong_type_argument.
21461
214622008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21463
21464 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21465 malayalam.el, and tamil.el. Add sinhala.el.
21466
214672008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21468
21469 * xterm.c (x_connection_closed): Consolidate identical tests.
21470 (x_delete_terminal): Don't crash if called via x_connection_closed.
21471
214722008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21473
21474 * xdisp.c (decode_mode_spec): New arg string.
21475 (display_mode_element): Adjust for the above change.
21476
214772008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21478
21479 * callint.c (Fcall_interactively): Use AREF.
21480
214812008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21482
21483 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21484
214852008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21486
21487 * xfns.c (Fx_show_tip): Set string to " " if empty.
21488
214892008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21490
21491 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21492 with Qt.
21493
214942008-02-17 Kenichi Handa <handa@m17n.org>
21495
21496 * ftfont.c (ftfont_shape): Return Lispy number.
21497
21498 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21499 for GCs.
21500 (Finternal_set_font_selection_order): Call font_update_sort_order
21501 only when enable_font_backend is set.
21502 (realize_x_face): Set face->font_info to that of default face only
21503 when enable_font_backend is set.
21504
21505 * xdisp.c (handle_composition_prop): Set it->c to the fist
21506 character of the composed region.
21507 (fill_composite_glyph_string): Set base_face->font_info to
21508 s->font_info. Get a face for ascii from base_face->ascii_face.
21509 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21510 with a face already decided.
21511 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21512 non-negative.
21513 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21514 call font_prepare_composition unconditionally.
21515
21516 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21517
21518 * xterm.h (struct x_display_info): New member font.
21519
21520 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21521 (x_set_mouse_face_gc, x_new_font): Likewise.
21522 (x_term_init): Setup display_info->font.
21523 (x_delete_terminal): Free display_info->font.
21524
21525 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21526
21527 * ftxfont.c (ftxfont_default_fid): Delete it.
21528 (ftxfont_open): Set xfont->fid to 0.
21529 (ftxfont_end_for_frame): Clear data specific to the frame and the
21530 font-driver.
21531
21532 * xftfont.c (xftfont_default_fid): Delete it.
21533 (xftfont_open): Set xfont->fid to 0.
21534
21535 * fontset.c (FONTSET_OBJLIST): New macro.
21536 (fontset_find_font): Update font-object list of the fontset.
21537 (free_realized_fontset): New function.
21538 (free_face_fontset): Call free_realized_fontset.
21539 (Ffont_info): Call font_close_object only when enable_font_backend
21540 is set.
21541
21542 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21543 [HAVE_NTGUI]: Include w32term.h.
21544 [MAC_OS]: Include macterm.ch.
21545 (font_otf_ValueRecord): Use make_number.
21546 (font_finish_cache): Fix handling of reference count.
21547 (font_clear_cache): Update num_fonts.
21548 (font_open_entity): Update smallest_char_width and
21549 smallest_font_height of the frame.
21550 (font_close_object): Update num_fonts.
21551 (Fclear_font_cache): Fix finding the target cache data.
21552
215532008-02-16 Glenn Morris <rgm@gnu.org>
21554
21555 * fontset.c (Finternal_char_font): Fix compilation warning.
21556
215572008-02-16 Eli Zaretskii <eliz@gnu.org>
21558
21559 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21560 instead of char arrays. Enlarge the size of array passed to
21561 get_token_information.
21562
21563 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21564 warnings.
21565
215662008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21567
21568 * .gdbinit: Don't set `args', it breaks gdb --args.
21569
215702008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21571
21572 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21573 within a narrowed buffer.
21574
215752008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21576
21577 * coding.c (decode_coding_object, encode_coding_object):
21578 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21579
215802008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21581
21582 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21583 hardcoding 1.
21584 (detect_coding_system):
21585 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21586 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21587 * insdel.c (insert_from_gap):
21588 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21589 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21590 (string_to_multibyte):
21591 * character.c (chars_in_text, multibyte_chars_in_text):
21592 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21593
21594 * character.h (FETCH_STRING_CHAR_ADVANCE)
21595 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21596 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21597 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21598
21599 * casefiddle.c (casify_region): Only call after-change and composition
21600 functions on the part of the region that was changed.
21601
21602 * keyboard.c (read_avail_input):
21603 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21604
216052008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21606
21607 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21608 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21609
216102008-02-11 Juanma Barranquero <lekktu@gmail.com>
21611
21612 * w32menu.c (push_submenu_start, push_submenu_end)
21613 (push_left_right_boundary, push_menu_pane, push_menu_item):
21614 * keyboard.c (read_key_sequence): Don't pass args with side effects
21615 to AREF, it fails when compiling with -DENABLE_CHECKING.
21616
216172008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21618
21619 * Makefile.in (${lispsource}international/charprop.el):
21620 Delete this target.
21621
21622 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21623 emacs-unicode-2.
21624
216252008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21626
21627 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21628
216292008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21630
21631 * frame.c (Qnoelisp): New symbol.
21632 (syms_of_frame): Initialize it.
21633 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21634 harmless Elisp code, from a strong `force' from x_connection_closed.
21635 * frame.h (Qnoelisp): Declare.
21636 * xterm.c (x_connection_closed): Pass `noelisp'.
21637
21638 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21639 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21640 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21641 rather than `int' for the type of `type'.
21642
216432008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21644
21645 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21646
21647 * Makefile.in (GNUC): Remove support for gcc-1.x.
21648
216492008-02-10 Richard Stallman <rms@gnu.org>
21650
21651 * lisp.h (ASET): Use AREF, not ASLOT.
21652
216532008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21654
21655 * lisp.h (ASET): Check bounds.
21656
216572008-02-10 Glenn Morris <rgm@gnu.org>
21658
21659 * buffer.c (mode-name): Doc fix.
21660
216612008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21662
21663 * Makefile.in:
21664 * emacs.c:
21665 * gmalloc.c:
21666 * keyboard.c:
21667 * lisp.h:
21668 * m/ibm370aix.h:
21669 * process.c:
21670 * regex.c:
21671 * s/hpux.h:
21672 * sysdep.c:
21673 * sysselect.h:
21674 * systty.h:
21675 * unexec.c:
21676 * w32term.c:
21677 * xsmfns.c:
21678 * xterm.c: Remove code that deals with obsolete variables.
21679
21680 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21681
21682 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21683 nothing else needs it anymore.
21684
216852008-02-09 Eli Zaretskii <eliz@gnu.org>
21686
21687 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21688 instead of unibyte_char_to_multibyte.
21689
216902008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21691
21692 * s/gnu-linux.h: Remove commented out code.
21693
21694 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21695
21696 * Makefile.in: Update what RMS says about using autoconf.
21697 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21698 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21699 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21700 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21701
217022008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21703
21704 * keymap.c (Fkey_description): Move side effect outside of macro call.
21705
21706 * xfaces.c (Finternal_make_lisp_face):
21707 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21708
21709 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21710 (syms_of_fontset): Use ASET.
21711
21712 * fns.c (concat): Move side effect outside of macro call.
21713 (hash_clear): Use ASET.
21714
217152008-02-08 Richard Stallman <rms@gnu.org>
21716
21717 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21718 If FORCE, and frame has a surrogate minibuffer for another frame,
21719 delete the other frame first.
21720
217212008-02-07 Timo Savola <timo.savola@iki.fi>
21722
21723 * xterm.c (x_detect_focus_change): Handle embed client message.
21724 (handle_one_xevent): Ditto.
21725 (handle_one_xevent): If embedded and we get a button press/release,
21726 request focus.
21727 (xembed_set_info, xembed_send_message): New functions.
21728 (x_make_frame_visible): Call xembed_set_info if embedded.
21729 (x_make_frame_invisible): Call xembed_set_info if embedded.
21730 (x_term_init): Initialize Xatom_XEMBED.
21731 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21732 (x_iconify_frame): Ditto.
21733
21734 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21735 (enum xembed_info, enum xembed_message, enum xembed_focus)
21736 (enum xembed_modifier, enum xembed_accelerator): New.
21737 (xembed_set_info, xembed_send_message): Declare.
21738 (FRAME_X_EMBEDDED_P): New.
21739
21740 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21741 gtk_plug_new.
21742
21743 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21744 window ID of a frame.
21745 (x_window): Reparent frame if embedded.
21746 (Fx_create_frame): Don't set border width if embedded.
21747
21748 * emacs.c (USAGE3): Add --parent-id.
21749 (standard_args): Ditto.
21750
217512008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21752
21753 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21754
217552008-02-07 Jim Meyering <meyering@redhat.com>
21756
21757 Use "do...while (0)", not "if (1)...else" in macro definitions.
21758 The latter provokes a warning from gcc about the empty else, when
21759 followed by ";". Also, without that trailing semicolon, it would
21760 silently swallow up any following statement.
21761 * syntax.h (SETUP_SYNTAX_TABLE)
21762 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21763 * buffer.h (DECODE_POSITION): Likewise.
21764 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21765 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21766 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21767 (FETCH_CHAR_ADVANCE): Likewise.
21768 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21769
217702008-02-07 Jim Meyering <meyering@redhat.com>
21771
21772 * lread.c [lint]: Don't include <sys/inode.h>.
21773
217742008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21775
21776 * xselect.c (x_handle_dnd_message):
21777 * xmenu.c (digest_single_submenu, xmenu_show):
21778 * xdisp.c (with_echo_area_buffer_unwind_data)
21779 (format_mode_line_unwind_data, unwind_format_mode_line)
21780 (display_menu_bar):
21781 * eval.c (Ffetch_bytecode):
21782 * doc.c (store_function_docstring):
21783 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21784 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21785 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21786
217872008-02-07 Kenichi Handa <handa@m17n.org>
21788
21789 * ftxfont.c (ftxfont_open): Don't set
21790 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21791
21792 * ftfont.c (ftfont_open): Fix previous change.
21793
217942008-02-06 Jason Rumney <jasonr@gnu.org>
21795
21796 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21797 Use cached metrics for ASCII characters.
21798 (w32font_open_internal): Don't set font's owning_frame.
21799 Cache metrics for ASCII characters.
21800
21801 * w32font.h (struct w32font_info): Add ascii_metrics.
21802 Remove owning_frame.
21803
218042008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21805
21806 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21807 to negative value.
21808
21809 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21810
21811 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21812
21813 * charset.c (syms_of_charset): Set QCtest and Qeq.
21814
218152008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21816
21817 * process.c (Fstart_process):
21818 * callproc.c (Fcall_process): Handle the case where
21819 Funhandled_file_name_directory returns nil.
21820
21821 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21822 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21823 * font.c (check_gstring): Use them and AREF to access the vector before
21824 we know it's really a gstring.
21825 (Ffont_shape_text): Fix typo.
46e722a9 21826 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
21827
21828 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21829 Declare.
21830
21831 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21832
218332008-02-05 Jason Rumney <jasonr@gnu.org>
21834
21835 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21836 Set smallest_font_height and smallest_char_width in display info.
21837
218382008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21839
21840 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21841
218422008-02-05 Miles Bader <miles@gnu.org>
21843
21844 * xfaces.c (get_lface_attributes, merge_named_face)
21845 (lookup_named_face, lookup_derived_face, realize_named_face):
21846 Revert 2008-02-01 change by cyd@stupidchicken.com.
21847
218482008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21849
21850 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21851 fallback fonts.
21852 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21853
218542008-02-04 Jason Rumney <jasonr@gnu.org>
21855
21856 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21857 set full_name.
21858 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21859
218602008-02-03 Jason Rumney <jasonr@gnu.org>
21861
21862 * makefile.w32-in (OBJ1): Include font.o here.
21863 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21864
218652008-02-02 Jason Rumney <jasonr@gnu.org>
21866
21867 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21868
218692008-02-01 Jason Rumney <jasonr@gnu.org>
21870
21871 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21872
21873 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21874
218752008-02-01 Andreas Schwab <schwab@suse.de>
21876
21877 * Makefile.in (shortlisp, lisp): Update for rename of
21878 ../lisp/language/myanmar.el.
21879
218802008-02-01 Chong Yidong <cyd@stupidchicken.com>
21881
21882 * xfaces.c (get_lface_attributes): Delete function.
21883 (merge_named_face, lookup_named_face, lookup_derived_face)
21884 (realize_named_face): Call lface_from_face_name directly, and use
21885 the fact that merge_face_vectors does not alter its FROM argument.
21886
218872008-02-01 Jason Rumney <jasonr@gnu.org>
21888
21889 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21890 input in the default locale. Handle non-Unicode multibyte input.
21891
218922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21893
21894 * fontset.c (reorder_font_vector): Exclude nil elements from the
21895 font group. Don't try multiple fonts.
21896 (fontset_font): Adjust for the above change.
21897 (Finternal_char_font): Return nil if the found font doesn't
21898 contain the character ch.
21899
21900 * Makefile.in (lisp, shortlisp): Add cham.el.
21901
219022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21903
21904 * font.h (FONTP): Make it return 1 also for a font-object.
21905
21906 * .gdbinit (xfontset): New function.
21907
21908 * font.c (font_find_for_lface): Check if the character C is
21909 supported or not only for the first font.
21910
21911 * fontset.c (reorder_font_vector): Fix typo.
21912 (fontset_find_font): Don't add a font-spec specifying a script.
21913 Use 0 (not Qt) for the indication of empty font-group. Change the
21914 format of RFONT-DEF. Return Qt if no font in the font-group
21915 support the character.
21916 (fontset_font): Adjust for the above change. If no font was
21917 found the character, remember that.
21918 (face_for_char): Adjust for the change of RFONT-DEF.
21919 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21920 no font for the target.
21921 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21922
219232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21924
21925 * font.c (font_load_for_face): Handle the case that the font in
21926 face->lface is a string.
21927
219282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21929
21930 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21931
219322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21933
21934 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21935 Fix previous change. If the frame is not on a window system,
21936 signal an error.
21937
219382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21939
bba3e508
SM
21940 * coding.c (decode_coding_object, encode_coding_object):
21941 Adjust marker positions after conversion.
aac0c6e3
MR
21942
21943 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21944
219452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21946
21947 * font.c (font_find_for_lface): Fix the handling of the return
21948 value of font_has_char.
21949 (Ffont_shape_text): Fix previous change.
21950
21951 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21952 (fontset_ref_and_range): Delete it.
21953 (fontset_find_font): Call char_table_ref_and_range instead of
21954 FONTSET_REF_AND_RANGE.
21955 (make_fontset): Don't setup font groups of Latin here.
21956 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21957 (new_fontset_from_font): Make the specified font the default for
21958 all Latin characters.
21959
219602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21961
21962 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21963 is on a window system before accessing the fontset of the frame.
21964
219652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21966
21967 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21968
21969 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21970 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21971
21972 * font.c (Ffont_shape_text): If the font driver doesn't have a
21973 shaper function, make zero-width glyphs to have at least one-pixel
21974 width. Fix setting of `to' field of glyphs.
21975
219762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21977
21978 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21979 glyphs.
21980
21981 * font.h (struct font_driver): Improve docstring of member `shape'.
21982
219832008-02-01 Kenichi Handa <handa@m17n.org>
21984
21985 * composite.c (syms_of_composite): Fix docstring of
21986 auto-composition-function.
21987
21988 * font.h (LGLYPH_SIZE): New macro.
21989
21990 * font.c (Ffont_fill_gstring): Stop filling when a character not
21991 supported by the font is found.
21992 (Ffont_shape_text): When a shape callback function returns nil,
21993 try at most two more times with larger gstring.
21994 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21995
21996 * xdisp.c (handle_auto_composed_prop): Change the argument to
21997 auto-composition-function.
21998
21999 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
22000 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
22001 Lispy glyph and store it in the lgstring.
22002
22003 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
22004
22005 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
22006
220072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22008
22009 * font.c (Ffont_shape_text): Avoid unnecessary composition.
22010
22011 * fontset.c (Vfont_encoding_charset_alist): New variable.
22012 (syms_of_fontset): DEFVAR it.
22013 (reorder_font_vector, fontset_find_font): Optimize for the case of
22014 no need of reordering.
22015 (face_for_char): Map the charset property by
22016 Vfont_encoding_charset_alist.
22017
220182008-02-01 Jason Rumney <jasonr@gnu.org>
22019
22020 * w32font.c (logfonts_match): Don't check adstyle here.
22021 (font_matches_spec): Check here against physical font instead.
22022 (add_font_entity_to_list): Avoid some substitutions.
22023
22024 * font.c (font_parse_fcname): Default weight and slant to normal.
22025 (font_score): Prefer normal fonts if weight or slant unspecified.
22026 (font_score) [WINDOWSNT]: Scale weight difference down to closer
22027 match freetype scores.
22028
220292008-02-01 Jason Rumney <jasonr@gnu.org>
22030
22031 * w32font.c (w32font_text_extents): Don't use the frame stored in the
22032 font, as it may have been deleted.
22033 (w32_enumfont_pattern_entity): Map generic family to adstyle using
22034 most common hyphenless variation.
22035 (logfonts_match): Check generic family.
22036 (font_matches_spec): Don't check generic family here.
22037 (fill_in_logfont): Set generic family based on adstyle.
22038
22039 * w32font.h (w32font_get_cache): Update declaration.
22040
220412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22042
22043 * ftfont.c (ftfont_get_cache): Adjust the argument type.
22044
22045 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
22046 If none of the new drivers are available, call font_update_drivers
22047 with the old drivers.
22048
22049 * w32font.c (w32font_get_cache): Adjust the argument type.
22050
22051 * xfont.c (xfont_get_cache): Adjust the argument type.
22052
22053 * font.h (struct font_driver): Change argument type of get_cache.
22054
22055 * xftfont.c (xftfont_start_for_frame): Delete prototype.
22056
22057 * font.c (Ffont_get): Fix arguments to Fassoc.
22058 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
22059 (font_clear_cache): New function.
22060 (font_list_entities, font_matching_entity): Use font_get_cache.
22061 (font_update_drivers): Call font_clear_cache when finishing a driver.
22062
22063 * fontset.c (fontset_find_font): Fix previous change.
22064
220652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22066
22067 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22068 dpyinfo->font_table.
22069 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22070 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22071
22072 * font.c (font_at): Handle the case that the arg C is negative.
22073 Handle the unibyte case.
22074 (Ffont_at): Call font_at with the arg C -1.
22075
22076 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22077 the position here, and call font_at with the arg C -1.
22078 Don't check the range of the existing composition at the point.
22079
220802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22081
22082 * fontset.c (fontset_add): New args charset_id and family.
22083 Change caller.
22084 (load_font_get_repertory, fontset_find_font): Assume that
22085 font_spec is always a font-spec object.
22086 (Fset_fontset_font): Always store a font-spec object in a fontset.
22087
22088 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22089 instead of get_property_and_range.
22090
220912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22092
22093 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22094 (xftfont_open): Don't keep locking face.
22095 (xftfont_close): Don't unlock face.
22096 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22097
22098 * fontset.c (fontset_find_font): Don't prefer a font of
22099 supplementary charset.
22100
221012008-02-01 Kenichi Handa <handa@m17n.org>
22102
22103 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22104 script, langsys_tag to langsys, new member script.
22105 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 22106 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
22107 listing to the script specified in that property. Fix arg to
22108 OTF_check_features.
22109
221102008-02-01 Jason Rumney <jasonr@gnu.org>
22111
22112 * w32font.h: New file.
22113
22114 * w32font.c: Include it.
22115 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22116 (w32font_open): Set owning_frame.
22117 (w32font_text_extents): Use owning_frame.
22118 (struct font_callback_data): Add opentype_only field.
22119 (add_font_entity_to_list): Use it to filter fonts.
22120 Don't check against full name.
22121 (w32font_list_internal): New function.
22122 (w32font_list): Use it.
22123 (w32font_match_internal): New function.
22124 (w32font_match): Use it.
22125 (w32font_open_internal): New function.
22126 (w32font_open): Use it.
22127 (w32font_get_cache, w32font_close, w32font_has_char)
22128 (w32font_encode_char, w32font_text_extents, w32font_draw):
22129 Make non-static.
22130
22131 * makefile.w32-in (w32font.o): Depend on w32font.h.
22132
221332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22134
22135 * charset.c (Fdefine_charset_internal): Record a supplementary
22136 charset at the tail of Vcharset_order_list.
22137
22138 * font.c (Ffont_shape_text): Fix the return value.
22139
22140 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22141
22142 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22143
221442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22145
22146 * ftfont.c (struct OpenTypeSpec): New struct.
22147 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22148 (ftfont_get_open_type_spec): New function.
22149 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22150
22151 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22152
221532008-02-01 Jason Rumney <jasonr@gnu.org>
22154
22155 * w32font.c (add_font_entity_to_list): Compare only the beginning
22156 of full name.
22157
221582008-02-01 Kenichi Handa <handa@m17n.org>
22159
22160 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22161 Never return HANDLED_RECOMPUTE_PROPS.
22162
221632008-02-01 Kenichi Handa <handa@m17n.org>
22164
22165 * font.c (font_gstring_produce): Delete it.
22166
22167 * composite.h (COMPOSITION_METHOD):
22168 Handle COMPOSITION_WITH_GLYPH_STRING.
22169
221702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22171
22172 * xfont.c (Qx): Delete.
22173 (syms_of_xfont): Don't initialize Qx.
22174
22175 * composite.h (enum composition_method):
22176 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22177
221782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22179
22180 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22181 (choose_face_font): Accept new form of font-spec.
22182
22183 * frame.h (font_driver_list): Declare it unconditionally.
22184 (struct frame): Define members font_driver_list and font_data_list
22185 unconditionally.
22186
22187 * fontset.c: Include "font.h" unconditionally.
22188 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22189 (Fset_fontset_font): Accept a font-spec object.
22190
22191 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22192 PIXEL_SIZE part a wild card.
22193
22194 * dispextern.h (struct glyph_string): Define members clip and
22195 num_clips unconditionally.
22196 (struct face): Define members font_info and extra unconditionally.
22197
22198 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22199 ftfont_info only when HAVE_LIBOTF is defined.
22200
222012008-02-01 Andreas Schwab <schwab@suse.de>
22202
22203 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22204 and end.
22205
222062008-02-01 Jason Rumney <jasonr@gnu.org>
22207
22208 * w32font.c (w32font_driver): Add new fields.
22209
222102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22211
22212 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22213 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22214 (LIBES): Add @M17N_FLT_CFLAGS@.
22215
22216 * composite.c (compose_text): Don't treat the new style
22217 composition specially.
22218
22219 * emacs.c (main): Call syms_of_font unconditionally.
22220
22221 * font.h (FONT_ENTITY_NOT_LOADABLE)
22222 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22223 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22224 (struct font_driver): New member shape.
22225 (font_registry_charsets): Extern it.
22226 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22227 (font_otf_capability, font_drive_otf): Delete their externs.
22228
22229 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22230 (font_charset_alist, font_registry_charsets): Move from xfont.c
22231 and rename.
22232 (font_prop_validate_otf): New function.
22233 (font_property_table): Register it for QCotf.
22234 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22235 (font_drive_otf): Delete.
22236 (font_prepare_composition): New arg F. Adjust for the change of
22237 lispy gstring.
22238 (font_find_for_lface): New arg C.
22239 (font_load_for_face): Adjust for the change of font_find_for_lface.
22240 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22241 lispy gstring.
22242 (Ffont_shape_text): New function.
22243 (Fopen_font): If the font size is not given, use 12-pixel.
22244 (Ffont_at): New arg STRING.
40b1a3a9 22245 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
22246 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22247 conditionally.
22248
22249 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22250 fonts of the same font-spec. Change the format of RFONT-DEF.
22251 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22252 Adjust for the change of RFONT-DEF.
22253 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22254
22255 * ftfont.h: New file.
22256
22257 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22258 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22259 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22260 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22261 font_otf_capability and font_drive_otf, set ftfont_shape.
22262 (ftfont_list): Adjust for the change of :otf property value.
22263 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22264 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22265 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22266 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22267 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22268 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22269
22270 * w32term.c (x_draw_composite_glyph_string_foreground):
22271 Adjust for the change of lispy gstring.
22272
22273 * xdisp.c (handle_composition_prop): Adjust for the change of
22274 lispy gstring. Call a function for auto-composition with the
22275 third arg it->window.
22276 (fill_composite_glyph_string): Adjust for the change of lispy string.
22277 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22278
22279 * xfaces.c (set_font_frame_param): Adjust for the change of
22280 font_find_for_lface.
22281
22282 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22283 (xfont_registry_charsets): Likewise. Change caller.
22284 (syms_of_xfont): Don't handle x_font_charset_alist.
22285
22286 * xftfont.c: Include "ftfont.h".
22287 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22288 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22289 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22290 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22291 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22292 Set xftfont_driver.shape to xftfont_shape.
22293
22294 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22295 the change of lispy gstring.
22296
222972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22298
22299 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22300
223012008-02-01 Jason Rumney <jasonr@gnu.org>
22302
22303 * w32font.c (w32font_draw): Fill background manually.
22304
223052008-02-01 Jason Rumney <jasonr@gnu.org>
22306
22307 * font.c (Qfontp): Remove unused symbol.
22308 (QCantialias): New symbol.
22309 (syms_of_font): Define it.
22310 (font_property_table): Set a validator for QCantialias.
22311
22312 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22313 Define if not already.
22314 (QCfamily): Share with xfaces.c.
22315 (Qstandard, Qsubpixel, Qnatural): New symbols.
22316 (syms_of_w32font): Define them. Don't define QCfamily here.
22317 (w32_antialias_type, lispy_antialias_type): New functions.
22318 (w32_enumfont_pattern_entity): New arg requested_font.
22319 Set antialias parameter if non-default was requested.
22320 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22321
223222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22323
22324 * lread.c (read1): Undo the previous change.
22325
223262008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22327
22328 * frame.c (Fdelete_frame): Call font_update_drivers only when
22329 USE_FONT_BACKEND is defined.
22330
223312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22332
22333 * font.h (struct font_bitmap): New member bits_per_pixel.
22334 (struct font_driver): New members start_for_frame and end_for_frame.
22335 (struct font_data_list): New struct.
22336 (font_put_frame_data, font_get_frame_data): Extern them.
22337
22338 * frame.h (struct frame): New member font_data_list.
22339
22340 * font.c (font_update_drivers): Call driver->start_for_frame and
22341 driver->end_for_frame at proper timings.
22342 (font_put_frame_data, font_get_frame_data): New functions.
22343 (Ffont_spec): Add usage in the docstring.
22344
22345 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22346 (Fdelete_frame): Call font_update_drivers.
22347
22348 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22349 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22350 (xftfont_get_xft_draw): New function.
22351 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22352 (xftfont_end_for_frame): New function.
22353 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22354
22355 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22356 Change argument. Cache GCs in the per-frame data.
22357 (struct ftxfont_frame_data): New struct.
22358 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22359 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22360 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22361 (ftxfont_end_for_frame): New function.
22362 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22363
22364 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22365
223662008-02-01 Kenichi Handa <handa@m17n.org>
22367
22368 * xselect.c (Vselection_coding_system)
22369 (Vnext_selection_coding_system): Delete them.
22370 (syms_of_xselect): Don't declare selection-coding-system and
22371 next-selection-coding-system. They are declared in select.el.
22372
223732008-02-01 Jason Rumney <jasonr@gnu.org>
22374
22375 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22376
22377 * w32fns.c: Include imm.h.
22378 (get_composition_string_fn, get_ime_context_fn): New optional
22379 system functions.
22380 (globals_of_w32fns): Load them from imm32.dll.
22381 (ignore_ime_char): New flag.
22382 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22383 WM_IME_ENDCOMPOSITION messages.
22384
22385 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22386 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22387
223882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22389
22390 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22391 (READCHAR_REPORT_MULTIBYTE): New macro.
22392 (readchar): New 2nd arg MULTIBYTE.
22393 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22394 Make symbol's name multibyte according to the multibyteness of the
22395 source.
22396
223972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22398
22399 * xfaces.c (face_for_overlay_string): Call lookup_face with
22400 correct arguments (fix of synching with the trunk).
22401
224022008-02-01 Kenichi Handa <handa@m17n.org>
22403
22404 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22405 (font_prop_validate_non_neg, font_prop_validate_spacing):
22406 Delete argument prop_index.
22407 (font_property_table): Change arguments to validater. Change Callers.
22408 (font_lispy_object): Delete.
22409 (font_at): Use font_find_object instead fo font_lispy_object.
22410
224112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22412
22413 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22414 and file names.
22415
224162008-02-01 Jason Rumney <jasonr@gnu.org>
22417
22418 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22419 (font_matches_spec): Remove debug output.
22420 (add_font_entity_to_list): Avoid using substituted fonts.
22421
224222008-02-01 Jason Rumney <jasonr@gnu.org>
22423
22424 * doc.c (Fsnarf_documentation):
22425 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22426
224272008-02-01 Miles Bader <miles@gnu.org>
22428
22429 * dispextern.h (struct glyph_row): Only define "clip" field if
22430 HAVE_WINDOW_SYSTEM is defined.
22431
224322008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22433
22434 Fix up multi-tty merge.
22435
22436 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22437 and indentation.
22438
22439 * xfaces.c (free_realized_face, clear_face_gcs):
22440 Include font_done_for_face in the input_blocked section, just in case.
22441
22442 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22443 (get_char_face_and_encoding): Undo last change and remove the *other*
22444 duplicate definition (i.e. keep the one that's better scoped and that
22445 includes code for the font-backend).
22446
22447 * terminal.c (create_terminal): Default keyboard_coding to
22448 `no-conversion' and terminal_coding to `undecided'.
22449
22450 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22451
22452 * fontset.c (free_realized_fontsets): Check that the table entry does
22453 contain a fontset before trying to compare it to `base'.
22454
22455 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22456 syms_of_charset, and syms_of_coding earlier because init_window_once
22457 now needs Vcoding_system_hash_table to be setup.
22458
22459 * coding.h (default_buffer_file_coding): Remove.
22460
22461 * coding.c (default_buffer_file_coding): Remove.
22462 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22463 than ->symbol, and use the terminal-local coding system.
22464 (syms_of_coding): Don't setup the coding-systems that are not
22465 terminal-local.
22466 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22467
22468 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22469 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22470
22471 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22472 in chartab.c and were re-added here by mistake.
22473 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22474
22475 * doc.c (Fsnarf_documentation):
22476 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22477 src to etc.
22478
22479 * ChangeLog.10: Add mistakenly removed entry.
22480
224812008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22482
22483 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22484
224852008-02-01 Miles Bader <miles@gnu.org>
22486
22487 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22488 Add extra args to FACE_FOR_CHAR.
22489
224902008-02-01 Kenichi Handa <handa@m17n.org>
22491
22492 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22493 in sequence.
22494
22495 * chartab.c (map_sub_char_table, map_char_table): If the range
22496 contains just one character, call the function with that character
22497 even if the depth is not 3.
22498
224992008-02-01 Jason Rumney <jasonr@gnu.org>
22500
22501 * w32font.c (w32font_text_extents): Calculate metrics for the
22502 whole string.
22503
225042008-02-01 Jason Rumney <jasonr@gnu.org>
22505
22506 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22507
225082008-02-01 Jason Rumney <jasonr@gnu.org>
22509
bba3e508
SM
22510 * w32term.c (x_set_glyph_string_clipping):
22511 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22512 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22513 Adjust for the change of struct glyph_string.
22514
22515 * w32font.c (w32font_draw): Do clipping here.
22516
225172008-02-01 Kenichi Handa <handa@m17n.org>
22518
22519 * xftfont.c (xftfont_draw): Adjust for the change of struct
22520 glyph_string.
22521
bba3e508
SM
22522 * xterm.c (x_set_glyph_string_clipping):
22523 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22524 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22525 Adjust for the change of struct glyph_string.
22526
22527 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22528 the resulting clip(s}.
22529 (expose_overlaps): Add arg r. Change callers. Set it to
22530 row->clip temporarily.
22531 (expose_window): Redraw rows overlapping the exposed area.
22532
22533 * dispextern.h (struct glyph_row): New member clip.
22534 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22535 clip_height, new member clip, and num_clips.
22536
225372008-02-01 Kenichi Handa <handa@m17n.org>
22538
22539 * data.c (Fchar_or_string_p): Fix docstring.
22540
225412008-02-01 Kenichi Handa <handa@m17n.org>
22542
22543 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22544 create a temporary XftDraw object.
22545
225462008-02-01 Kenichi Handa <handa@m17n.org>
22547
22548 * font.c (Ffontp): Fix docstring.
22549
22550 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22551 strong evidence of ISO-2022.
22552
225532008-02-01 Kenichi Handa <handa@m17n.org>
22554
22555 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22556 SYNTAX_ENTRY_FOLLOW_PARENT.
22557
225582008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22559
22560 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22561 its type.
22562 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22563 Update to the new type of weak_hash_tables and next_weak.
22564
22565 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22566 a plain C pointer to Lisp_Hash_Table.
22567
22568 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22569 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22570 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22571 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22572 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22573 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22574 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22575 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22576 (GC_EQ): Remove since they've been identical to their non-GC_
22577 alter-egos ever since the markbit was eradicated.
22578
22579 * alloc.c:
22580 * buffer.c:
22581 * buffer.h:
22582 * data.c:
22583 * fileio.c:
22584 * filelock.c:
22585 * fns.c:
22586 * frame.h:
22587 * lisp.h:
22588 * macterm.c:
22589 * print.c:
22590 * process.c:
22591 * w32fns.c:
22592 * w32menu.c:
22593 * w32term.c:
22594 * xfns.c:
22595 * xmenu.c:
22596 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22597
225982008-02-01 Kenichi Handa <handa@m17n.org>
22599
22600 * chartab.c (map_sub_char_table): Make it work for the top-level
22601 char-table. Fix handling of parent char-table.
22602 (map_char_table): Adjust for the above change.
22603
226042008-02-01 Jason Rumney <jasonr@gnu.org>
22605
22606 * w32font.c (Qgdi): Rename from Qw32.
22607
226082008-02-01 Jason Rumney <jasonr@gnu.org>
22609
22610 * w32bdf.c (get_quoted_string): Make function static.
22611
226122008-02-01 Kenichi Handa <handa@m17n.org>
22613
22614 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22615 bigger ascent and descent than those of the font, use them as
22616 font's ascent and descent.
22617
226182008-02-01 Kenichi Handa <handa@m17n.org>
22619
22620 * Makefile.in (${lispsource}international/charprop.el): Move this
22621 target within "#ifdef HAVE_UNIDATA" and "#endif".
22622
226232008-02-01 Kenichi Handa <handa@m17n.org>
22624
22625 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22626 (shortlisp): Add ../lisp/language/tai-viet.el.
22627
226282008-02-01 Ulrich Mueller <ulm@gentoo.org>
22629
22630 * Makefile.in (${lispsource}international/charprop.el): Depend on
22631 temacs${EXEEXT}.
22632
226332008-02-01 Jason Rumney <jasonr@gnu.org>
22634
22635 * w32font.c (w32font_close): Delete the GDI font object.
22636
22637 * w32menu.c: Include character.h.
22638
22639 * w32proc.c: Likewise.
22640
22641 * w32select.c: Likewise.
22642
22643 * makefile.w32-in (w32proc.o): Depend on character.h.
22644
226452008-02-01 Jason Rumney <jasonr@gnu.org>
22646
22647 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22648
22649 * w32menu.c (syms_of_w32menu): Likewise.
22650
22651 * w32proc.c (syms_of_ntproc): Likewise.
22652
22653 * w32select.c (syms_of_w32select): Likewise.
22654
22655 * w32term.c (syms_of_w32term): Likewise.
22656
226572008-02-01 Jason Rumney <jasonr@gnu.org>
22658
22659 * w32font.c (w32font_draw): Delete brush after using it.
22660
226612008-02-01 Jason Rumney <jasonr@gnu.org>
22662
22663 * w32font.c (w32font_open): Don't set font_idx.
22664 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22665 to font settings.
22666 (w32font_draw): Fill background explicitly.
22667
226682008-02-01 Jason Rumney <jasonr@gnu.org>
22669
22670 * w32term.c (w32_initialize): Don't call w32font_initialize.
22671
22672 * w32font.c (w32font_info): Remove subranges.
22673 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22674 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22675 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22676 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22677 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22678 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22679 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22680 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22681 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22682 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22683 New symbols.
22684 (font_callback_data): New struct.
22685 (w32font_list, w32font_match): Use it.
22686 (w32font_open): Don't populate subranges.
22687 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22688 (w32font_encode_char): Always return unicode code-point as-is.
22689 (w32font_text_extents): Supply a transformation matrix to
22690 GetGlyphOutline. Never look up by glyph index. Avoid looping
22691 twice. Use unicode version of GetTexExtentPoint32 instead of
22692 glyph index version.
22693 (set_fonts_frame): Remove.
22694 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22695 set frame parameter. Use backward compatible fake foundries.
22696 Save generic family in extra slot under QCfamily. Make width slot
22697 constant. Save QCspacing value. Save list of scripts instead of
22698 binary subranges.
22699 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
22700 (add_font_entity_to_list): Use font_callback_data struct.
22701 Filter unwanted fonts.
aac0c6e3
MR
22702 (add_one_font_entity_to_list): Use font_callback_data struct.
22703 (w32_registry): Default to iso10646_1.
22704 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22705 string font registries. Don't fill in font name if it is a generic
22706 family name, fill family instead. Use spacing, family and script
22707 extra info to fill pitch, family and charset fields.
22708 (list_all_matching_fonts): Use font_callback_data struct.
22709 (unicode_range_for_char): Remove.
22710 (font_supported_scripts): New function.
22711 (w32font_initialize): Remove.
22712 (syms_of_w32font): Update which symbols are defined.
22713
227142008-02-01 Jason Rumney <jasonr@gnu.org>
22715
22716 * font.c (font_pixel_size): Reverse assq_no_quit args.
22717
22718 * w32term.h (FONT_WIDTH): Report max width, not average.
22719 (FONT_MAX_WIDTH): Remove.
22720 (FONT_AVG_WIDTH): New macro.
22721
22722 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22723 redefinition of FONT_WIDTH.
22724
22725 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22726 (w32_cache_char_metrics): Use FONT_WIDTH.
22727
22728 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22729
227302008-02-01 Jason Rumney <jasonr@gnu.org>
22731
22732 * w32font.c (w32font_open): Make lfHeight negative.
22733
22734 * w32fns.c (x_default_font_parameter): Use new style font name.
22735 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22736
227372008-02-01 Jason Rumney <jasonr@gnu.org>
22738
22739 * w32font.c (QCsubranges): New symbol.
22740 (w32font_open, w32font_has_char): Get subranges from subproperty
22741 of extra.
22742 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22743 (syms_of_w32font): Define :subranges symbol.
22744
22745 * font.c (font_put_extra): Expose externally.
22746
22747 * font.h (font_put_extra): Move declaration from font.c.
22748
22749 * font.c (Ffont_get): Use font driver to determine otf capability.
22750 (adjust_anchor): Check if driver defines anchor_point before using.
22751
22752 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22753 (w32font_draw): Use options.
22754 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22755 Fix detection of truetype fonts.
22756 (registry_to_w32_charset): Handle charsets other than iso8859-1
22757 expressed as lisp symbols.
22758 (w32_registry): Express charset as lisp symbol.
22759 (fill_in_logfont): Reverse pixel and point height logic.
22760 Don't set width here. Set quality to default.
22761
22762 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22763 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22764
22765 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22766 Remove redundant loop and allocation.
22767
22768 * makefile.w32-in (font.o, w32font.o): New objects.
22769 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22770 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22771
22772 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22773 STORE_XCHARB a valid l-value.
22774
22775 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22776 calculations for non-Truetype fonts.
22777 (x_draw_glyph_string): Sync with xterm.c.
22778 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22779 Remove redundant code.
22780 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22781
22782 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22783 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22784
22785 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22786 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22787
22788 * w32font.c: New file for w32 font backend.
22789
227902008-02-01 Kenichi Handa <handa@m17n.org>
22791
22792 * term.c: Don't include "buffer.h" twice.
22793
227942008-02-01 Kenichi Handa <handa@m17n.org>
22795
22796 * character.c (Funibyte_string): New function.
22797 (syms_of_character): Defsubr it.
22798
227992008-02-01 Jason Rumney <jasonr@gnu.org>
22800
22801 * w32term.c [USE_FONT_BACKEND]:
22802 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22803 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22804 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22805 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22806 (x_free_frame_resources): Sync with xterm.c.
22807
228082008-02-01 Andreas Schwab <schwab@suse.de>
22809
22810 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22811 char-table size.
22812
228132008-02-01 Kenichi Handa <handa@m17n.org>
22814
22815 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22816
228172008-02-01 Kenichi Handa <handa@m17n.org>
22818
22819 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22820 font_otf_gpos, add font_drive_otf.
22821
22822 * fontset.c (fontset_find_font): Pay attention to font size
22823 specified for a font.
22824 (reorder_font_vector): Check contents of font_def.
22825
22826 * font.c (struct otf_list): Delete it.
22827 (otf_list): Make it a lisp variable.
22828 (otf_open): Use lispy otf_list.
22829 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22830 (check_otf_features): New function.
22831 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22832 New functions.
22833 (font_drive_otf): New function merging font_otf_gsub and
22834 font_otf_gpos.
22835 (font_open_for_lface): New arg spec. Change argument order.
22836 (font_load_for_face): Adjust for the change of font_open_for_lface.
22837 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22838 Ffont_otf_gpos.
22839 (syms_of_font): Staticpro otf_list. Delete defsubr of
22840 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22841
22842 * xfaces.c (set_font_frame_param): Adjust for the change of
22843 font_open_for_lface.
22844
22845 * font.h (font_open_for_lface): Adjust prototype.
22846 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22847 member otf_drive.
22848 (font_otf_gsub, font_otf_gpos): Delete externs.
22849 (font_drive_otf): Extern it.
22850
228512008-02-01 Kenichi Handa <handa@m17n.org>
22852
22853 * font.c (font_at): If the window W is not on a window system,
22854 return Qnil.
22855
22856 * coding.c (produce_chars, encode_coding): Don't call
22857 insert_from_gap if no characters to produce.
22858
228592008-02-01 Kenichi Handa <handa@m17n.org>
22860
22861 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22862 Fclear_face_cache.
22863
22864 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22865
228662008-02-01 Miles Bader <miles@gnu.org>
22867
22868 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22869 Parse "--disable-font-backend" option.
22870 (standard_args): Add "--disable-font-backend" option.
22871
228722008-02-01 Kenichi Handa <handa@m17n.org>
22873
22874 * fontset.c (fontset_find_font): New function.
22875 (fontset_font): Use fontset_find_font.
22876 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22877 Register the specified font for all Latin characters.
22878 (new_fontset_from_font): Register the specified font for all Latin
22879 characters.
22880 (dump_fontset): For a realized fontset, include the base fontset
22881 name in the returned vector.
22882
228832008-02-01 Kenichi Handa <handa@m17n.org>
22884
22885 * character.h (CHAR_STRING): Cast C to unsigned on calling
22886 char_string.
22887
22888 * character.c (char_string): Type of arg C changed to unsigned.
22889 Signal an error if C is an invalid character code.
22890
22891 * editfns.c (general_insert_function, Fchar_to_string):
22892 Use CHARACTERP, not INTEGERP.
22893
228942008-02-01 Kenichi Handa <handa@m17n.org>
22895
22896 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22897 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22898
22899 * regex.c (analyse_first): Fix for multibyte characters in "case
22900 charset:" and "case categoryspec:".
22901
229022008-02-01 Andreas Schwab <schwab@suse.de>
22903
22904 * Makefile.in (LIBES): Move standard libraries to the end.
22905
229062008-02-01 Kenichi Handa <handa@m17n.org>
22907
22908 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22909 nonzero, don't shrink the buffer nextb.
22910
22911 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22912
22913 * coding.c (coding_alloc_by_making_gap): New arg offset.
22914 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22915 offset.
22916 (decode_coding_iso_2022): Update coding->safe_charsets.
22917 (decode_coding_gap): Temporarily set
22918 current_buffer->text->inhibit_shrinking to 1.
22919
229202008-02-01 Kenichi Handa <handa@m17n.org>
22921
bba3e508
SM
22922 * xterm.c (x_draw_composite_glyph_string_foreground):
22923 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
22924
229252008-02-01 Juanma Barranquero <lekktu@gmail.com>
22926
22927 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22928
229292008-02-01 Kenichi Handa <handa@m17n.org>
22930
22931 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22932 target_multibyte instead of multibyte.
22933 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22934 (bcmp_translate): Change the argument name from multibyte to
22935 target_multibyte.
22936
229372008-02-01 Kenichi Handa <handa@m17n.org>
22938
22939 These changes are to compile a regexp into a pattern that can be
22940 used both for multibyte and unibyte targets.
22941
22942 * Makefile.in (search.o): Depend on charset.h.
22943
22944 * character.c (multibyte_char_to_unibyte_safe): New function.
22945
22946 * search.c: Include "charset.h".
22947 (compile_pattern_1): Delete argument multibyte. Don't set
22948 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22949 (compile_pattern): Don't compare cp->buf.target_multibyte.
22950 Compare cp->buf.charset_unibyte.
22951 (compile_pattern): Set cp->buf.target_multibyte.
22952
22953 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22954
22955 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22956
22957 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22958 multibyte. Change callers.
22959 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22960 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22961 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22962 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22963 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22964 (regex_compile): Make the compiled pattern usable both for
22965 multibyte and unibyte targets.
22966 (analyse_first): Make the fastmap usable both for multibyte and
22967 unibyte targets.
22968 (TRANSLATE_VIA_MULTIBYTE): Delete.
22969 (re_match_2_internal): Pay attention to the case that the
22970 multibyteness of bufp and target may be different.
22971
229722008-02-01 Kenichi Handa <handa@m17n.org>
22973
22974 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22975 empty box occupy at least one column width.
22976
229772008-02-01 Miles Bader <miles@gnu.org>
22978
22979 * Makefile.in: Remove redundant HAVE_XFT clause.
22980
229812008-02-01 Kenichi Handa <handa@m17n.org>
22982
22983 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22984
229852008-02-01 Kenichi Handa <handa@m17n.org>
22986
22987 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22988 being nil.
22989
229902008-02-01 Kenichi Handa <handa@m17n.org>
22991
22992 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22993
229942008-02-01 Kenichi Handa <handa@m17n.org>
22995
22996 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22997
229982008-02-01 Kenichi Handa <handa@m17n.org>
22999
23000 * search.c (simple_search): Fix previous change.
23001
230022008-02-01 Kenichi Handa <handa@m17n.org>
23003
23004 * xftfont.c (ftfont_font_format): Extern declaration.
23005
23006 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
23007
23008 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
23009 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
23010
23011 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
23012 (ftfont_font_format): Fix previous change.
23013
23014 * font.h (Ffont_xlfd_name): EXFUN it.
23015
23016 * font.c (font_parse_xlfd): Fix the array size of `f'.
23017 (register_font_driver): Use EQ to compare driver->type.
23018
23019 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
23020 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
23021 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
23022
230232008-02-01 Kenichi Handa <handa@m17n.org>
23024
23025 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
23026 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
23027
230282008-02-01 Kenichi Handa <handa@m17n.org>
23029
23030 * xfont.c (xfont_open): Set font->format.
23031
23032 * xftfont.c (xftfont_open): Set font->format.
23033
23034 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
23035 (ftfont_list): Include FC_FONTFORMAT in FcObject.
23036 (ftfont_open): Set font->format.
23037 (ftfont_font_format): New function.
23038
23039 * font.h (struct font): New member format.
23040
23041 * font.c (Qopentype): New variable.
23042 (syms_of_font): Defsym it.
23043 (Fquery_font): Change the format of the last element of the return
23044 value.
23045
230462008-02-01 Kenichi Handa <handa@m17n.org>
23047
23048 * xfns.c (xic_create_xfontset): Try the default fontset name as a
23049 last resort.
23050
230512008-02-01 Kenichi Handa <handa@m17n.org>
23052
23053 * coding.c (detect_coding_charset): Fix detection of multi-byte
23054 charset.
23055
230562008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
23057
23058 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
23059
230602008-02-01 Kenichi Handa <handa@m17n.org>
23061
23062 * xdisp.c (get_next_display_element): Set it->face_id for the
23063 first component of a composition.
23064 (x_produce_glyphs): Check if the font is changed or not for composition.
23065
230662008-02-01 Kenichi Handa <handa@m17n.org>
23067
23068 * fontset.c (Qlatin): New variable.
23069 (syms_of_fontset): Define it as a lisp symbol.
23070 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23071
230722008-02-01 Kenichi Handa <handa@m17n.org>
23073
23074 * font.c (font_unparse_fcname): Pay attention to the case that
23075 some of font property is a null string.
23076
230772008-02-01 Kenichi Handa <handa@m17n.org>
23078
23079 * term.c: Include "composite.h".
23080 (encode_terminal_code): Output all components of composition.
23081 Check the size of encode_terminal_src.
23082 (produce_glyphs): For composition, call produce_composite_glyph.
23083 (append_composite_glyph, produce_composite_glyph): New functions.
23084
23085 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23086 is not found, get font_info from the current ascii face.
23087
230882008-02-01 Kenichi Handa <handa@m17n.org>
23089
23090 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23091 buffer-file-name to Qnil before calling insert_from_buffer.
23092
23093 * font.c (font_unparse_fcname): Pay attention to the case that
23094 foundry is a null string.
23095
230962008-02-01 Kenichi Handa <handa@m17n.org>
23097
23098 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23099
23100 * font.c (Qunicode_sip): New variable.
23101 (syms_of_font): Declare it as a Lisp symbol.
23102
23103 * font.h (Qunicode_sip): Extern it.
23104
231052008-02-01 Kenichi Handa <handa@m17n.org>
23106
23107 * composite.c (get_composition_id): Pay attention to TAB component.
23108
23109 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23110 TAB. Adjust for the change of s->char2b which always points to
23111 the first element of allocated memory.
23112
23113 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23114
23115 * xdisp.c (handle_composition_prop): Set it->c to the first
23116 non-TAB component.
23117 (fill_composite_glyph_string): Change argument.
23118 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23119 (x_produce_glyphs): Fix handling of left/right padding.
23120
231212008-02-01 Kenichi Handa <handa@m17n.org>
23122
23123 * coding.c (detect_coding_system): Fix for handling off
23124 inhibit_iso_escape_detection. Fix for the case that no coding
23125 system is defined for a specific coding category.
23126
231272008-02-01 Kenichi Handa <handa@m17n.org>
23128
23129 * font.c (font_matching_entity): Delete unused local var.
23130
23131 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23132 opening a font.
23133
23134 * fileio.c (Finsert_file_contents): On recovering a file, assume
23135 Unix-like eol.
23136 (choose_write_coding_system): On auto-saving a file, force
23137 Unix-like eol.
23138
23139 * coding.c (setup_coding_system): Fix setting of
23140 coding->common_flags based on eol_type.
23141 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23142 inherit from it.
23143
231442008-02-01 Kenichi Handa <handa@m17n.org>
23145
23146 * alloc.c (NSTATICS): Increas to 0x600.
23147
231482008-02-01 Kenichi Handa <handa@m17n.org>
23149
23150 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23151 (ftfont_list): Don't check :name property.
23152 (ftfont_match): New function.
23153 (ftfont_pattern_entity): If the pattern doesn't contain
23154 FC_SPACING, don't assume FC_MONO.
23155
23156 * font.h (struct font_driver): New member `match'.
23157 (font_update_drivers): Adjust prototype.
23158
23159 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23160 property of FONT.
bba3e508
SM
23161 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23162 Define them unconditionally.
aac0c6e3
MR
23163 (font_matching_entity): New function.
23164 (font_open_by_name): Try font_matching_entity if exact match is
23165 not found.
23166 (font_update_drivers): Delete the arg FONT. Return a list of
23167 actually used backends. Don't free faces, font caches here.
23168 Don't store data in frame parameters. Don't call x_set_font.
23169 (Ffont_spec): Store :name property as is.
23170 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23171 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23172 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23173 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23174 Call font->driver->otf_gsub instead of font_otf_gsub.
23175
23176 * frame.c (x_set_font_backend): Do more works that were done in
23177 font_update_drivers before.
23178
23179 * xfont.c (xfont_match): New function.
23180 (xfont_driver): Set xfont_driver.match to xfont_match.
23181 (xfont_draw): Set font in GC if necessary.
23182
23183 * ftxfont.c (ftxfont_match): New function.
23184 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23185
23186 * xftfont.c (xftfont_match): New function.
23187 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23188
231892008-02-01 Kenichi Handa <handa@m17n.org>
23190
23191 * font.h (struct font): New member scalable.
23192 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23193 (font_otf_gsub): Adjust prototype.
23194
23195 * font.c (font_otf_capability): Fix handling of the default langsys.
23196 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23197 Check the contents of SPEC.
23198 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23199 (check_gstring): New function.
23200 (REPLACEMENT_CHARACTER): New macro.
23201 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23202 glyph codes of GSTRING.
23203 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23204 (font_prepare_composition): Set cmp->glyph_len.
23205 (font_open_entity): Set font->scalable.
23206 (Ffont_get): Handle :otf property.
bba3e508
SM
23207 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23208 New functions.
aac0c6e3
MR
23209 (Fquery_font): Use font->font.full_name.
23210 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23211 Sfont_otf_alternates.
23212
23213 * ftfont.c (ftfont_open): Set font->font.full_name and
23214 font->font.name properly. Fix calculation of font->font.height
23215 and font->min_width.
23216
23217 * ftxfont.c (ftxfont_create_gcs): New function.
23218 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23219 (ftxfont_draw_backgrond): Fix filling region.
23220 (ftxfont_default_fid): New function.
23221 (ftxfont_open): Set xfont->fid to the return value of
23222 ftxfont_default_fid.
23223 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23224 (ftxfont_done_face): Free only GCs that are created by
23225 ftxfont_create_gcs.
23226 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23227
23228 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23229 Clip to src->width, etc (not src->clip_XXX).
23230
23231 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23232 FontBackend frame parameter.
23233
232342008-02-01 Kenichi Handa <handa@m17n.org>
23235
23236 * font.h (struct font_driver_list): New member `on'.
23237 (Fclear_font_cache): EXFUN it.
23238 (font_update_drivers): Extern it.
23239
23240 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23241 (font_list_entities): Check driver_list->on.
40b1a3a9 23242 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
23243 (font_update_drivers): New function.
23244 (Fclear_font_cache): Check driver_list->on.
23245
23246 * frame.h (Qfont_backend): Extern it.
23247 (x_set_font_backend): Extern it.
23248
23249 * frame.c (Qfont_backend): New variable.
23250 (frame_parms): New element for font-backend.
23251 (x_set_font_backend): New function.
23252
23253 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23254 FontBackend frame parameter.
23255 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23256 x_set_font_backend.
23257
23258 * xfont.c (xfont_list): Don't try listing by :name property if the
23259 name is not for XLFD.
23260
232612008-02-01 Kenichi Handa <handa@m17n.org>
23262
23263 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23264 (LGLYPH_SET_TO): New macros.
23265 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23266 element of G is vector or not.
23267 (font_at): Extern it.
23268
23269 * font.c: Include window.h.
23270 (font_lispy_object): New function.
23271 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23272 end of valid glyph.
23273 (font_close_object): Fix getting (struct font *).
23274 (font_at): New function.
23275 (Ffont_get): If FONT is a font-object, get entity from it.
23276 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
23277 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23278 Fix range check.
aac0c6e3
MR
23279 (Ffont_at): New function.
23280 (syms_of_font): Defsubr Sfont_at.
23281
23282 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23283 before the entry for Qcomposition.
23284 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23285 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23286 the font in gstring.
23287 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23288 LGLYPH_FORM (g) to detect the end of valid glyph.
23289 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23290 we are composing with gstring.
23291
23292 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23293 Check if adjustment is vector or not.
23294
23295 * Makefile.in (font.o): Make it depends on window.h.
23296
232972008-02-01 Kenichi Handa <handa@m17n.org>
23298
23299 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23300 adjustment is vector or not.
23301
233022008-02-01 Miles Bader <miles@gnu.org>
23303
23304 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23305
233062008-02-01 Kenichi Handa <handa@m17n.org>
23307
23308 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 23309 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
23310 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23311
23312 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23313 (DEVICE_DELTA): Fix typo.
23314 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23315 LGLYPH format.
23316
23317 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23318 the change of LGLYPH format.
23319
233202008-02-01 Kenichi Handa <handa@m17n.org>
23321
23322 * ftfont.c (ftfont_list): Fix typo.
23323 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23324
233252008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23326
23327 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23328
23329 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23330 xftface_info is non-NULL.
23331
233322008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23333
23334 * ftfont.c (ftfont_list): Move misplaced #endif.
23335
233362008-02-01 Kenichi Handa <handa@m17n.org>
23337
23338 * ftfont.c (ftfont_list): Pay attention to the case that
23339 FC_CAPABILITY is not defined.
23340
233412008-02-01 Kenichi Handa <handa@m17n.org>
23342
23343 * xftfont.c (xftfont_open): Set charset related members to -1.
23344
23345 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23346 QCname.
23347 (ftfont_open): Set charset related members to -1.
23348
23349 * fontset.c (Votf_script_alist): New variable.
23350 (syms_of_fontset): Initialize it.
23351 (fontset_font): Delete unused variable.
23352
23353 * fontset.h (Votf_script_alist): Extern it.
23354
23355 * font.c (font_find_for_lface): Optimize code.
23356
23357 * font.h (font_close_object, font_merge_old_spec): Extern them.
23358
233592008-02-01 Kenichi Handa <handa@m17n.org>
23360
23361 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23362 (syms_of_font): Initialize them.
23363 (font_pixel_size): Allow float value in dpi.
23364 (font_prop_validate_type): Delete.
23365 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23366 Change caller.
23367 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23368 (font_prop_validate_extra): Delete.
23369 (font_prop_validate_spacing): New function.
23370 (font_property_table): Add elements for all known properties.
bba3e508
SM
23371 (get_font_prop_index): Rename from check_font_prop_name.
23372 New argument FROM. Change caller.
aac0c6e3
MR
23373 (font_prop_validate): Validate all known properties.
23374 (font_put_extra): Delete argument force. Change caller.
23375 (font_expand_wildcards): Make it static. Fix the way of shrinking
23376 the possible range.
23377 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23378 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23379 Change caller.
23380 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23381 (font_parse_fcname): Delete argument merge. Fix parsing of point
23382 size. Don't validate properties values here. Change caller.
23383 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23384 (font_open_by_name): Delete unused variable.
23385 (Ffont_spec): Likewise. Validate property values.
23386 (Ffont_match_p): New function.
23387
23388 * font.h (QCscalable): Extern it.
23389 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23390
23391 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23392
23393 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23394 (xfont_list_pattern): New function.
23395 (xfont_list): Use xfont_list_pattern.
23396
233972008-02-01 Kenichi Handa <handa@m17n.org>
23398
23399 * font.h (Flist_fonts): EXFUN it.
23400
234012008-02-01 Jason Rumney <jasonr@gnu.org>
23402
23403 * w32term.c (w32_initialize): Add back smoothing_type and
23404 smoothing_enabled definitions.
23405
234062008-02-01 Kenichi Handa <handa@m17n.org>
23407
23408 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23409 s->face->font on determining underline position.
23410
234112008-02-01 Kenichi Handa <handa@m17n.org>
23412
23413 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23414 (font_has_char): Accept font-object too.
23415 (font_find_for_lface): Try at first with a size specified in face.
23416
234172008-02-01 Kenichi Handa <handa@m17n.org>
23418
23419 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23420 font_open_by_name.
23421
234222008-02-01 Kenichi Handa <handa@m17n.org>
23423
23424 * font.h (QCspacing, QCdpi): Extern them.
23425 (enum font_spacing): New enum.
23426 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23427
23428 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23429 (QCspacing, QCdpi): New variables.
23430 (syms_of_font): Initialize them.
23431 (font_pixel_size): New function.
23432 (font_put_extra): New function.
23433 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23434 in FONT_EXTRA.
23435 (font_parse_fcname): Handle enumerated values (e.g. bold).
23436 Fix handling font size. Add QCname property that contains only
23437 unknown properties.
23438 (font_score): Change argument. Change caller. Pay attention to
23439 FONT_PIXEL_SIZE_QUANTUM.
23440 (font_sort_entites, font_list_entities, font_find_for_lface)
23441 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23442 (Ffont_spec): Add QCname property that contains only unknown properties.
23443
bba3e508
SM
23444 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23445 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
23446 listed font. Don't include scalable in pattern. Pay attention to
23447 FONT_PIXEL_SIZE_QUANTUM.
23448
234492008-02-01 Kenichi Handa <handa@m17n.org>
23450
23451 * font.c (font_parse_fcname): Fix parsing of point-size.
23452 (font_unparse_fcname): Produce symbolic names for style properties.
23453 (font_list_entities): Handle float size correctly.
23454 (font_open_by_name): Prefer `normal' property values if the name
23455 doesn't specify them.
23456
23457 * fontset.c (Finternal_char_font): Use font_get_name, not
23458 Ffont_xlfd_name.
23459
23460 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23461 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23462 pattern. Don't force scalable.
23463
23464 * xftfont.c (xftfont_open): For generating a name, start from
23465 96-byte buffer.
23466
234672008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23468
23469 * frame.h (x_new_fontset2): Fix prototype.
23470
234712008-02-01 Kenichi Handa <handa@m17n.org>
23472
23473 * font.h (struct font_driver): Delete member parse_name.
23474 (font_match_p, font_get_spec, font_parse_fcname)
23475 (font_unparse_fcname): Extern them.
23476 (font_get_name): Adjust prototype.
23477
23478 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23479 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
23480 (font_expand_wildcards): Fix handling ENCODING field.
23481 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
23482 (font_parse_fcname): New function.
23483 (font_unparse_fcname): New function.
23484 (font_parse_name): New function.
23485 (font_match_p): New function.
23486 (font_get_name): Change return value to Lisp string.
23487 (font_get_spec): New function.
23488 (Qunspecified, Qignore_defface): Don't extern them.
23489 (font_find_for_lface): Assume that LFACE is fully specified.
23490 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23491 object, use it for FACE.
23492 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23493 driver->parse_name.
23494 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23495
23496 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23497 prototype.
23498
23499 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23500 argument F. Don't call Fnew_fontset. Instead, directly call
23501 make_fontset.
23502
23503 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23504
23505 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23506 of x_new_fontset2.
23507
23508 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23509 (Qsans__serif): New variables.
23510 (ftfont_generic_family_list): New variable.
23511 (syms_of_ftfont): Initialize the above variables.
23512 (ftfont_pattern_entity): Delete argument NAME.
23513 (ftfont_list_generic_family): New function.
23514 (ftfont_parse_name): Delete this function.
23515 (ftfont_list): Try generic family only when FcFontList found no font.
23516 (ftfont_list_family): Fix args to FcObjectSetBuild.
23517
23518 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23519 object in attrs[LFACE_FONT_INDEX].
23520 (set_lface_from_font_name): Cancel all changes for font-backend.
23521 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23522 function.
23523 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23524 font object in QCfont attribute.
23525 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23526 (realize_default_face) [USE_FONT_BACKEND]: Call
23527 set_lface_from_font_and_fontset.
23528
23529 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23530 "fixed", and signal error here if no suitable font was found.
23531
23532 * xfont.c (xfont_parse_name): Delete this function.
23533
23534 * xftfont.c (xftfont_open): Change coding style of error
23535 handling. Generate fontconfig's fontname pattern.
23536
23537 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23538 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23539
23540 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23541 Both args FONTSET and FONT_OBJECT must be existing ones.
23542
235432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23544
23545 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23546
235472008-02-01 Kenichi Handa <handa@m17n.org>
23548
23549 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23550
23551 * font.h (struct font): Fix typo.
23552
23553 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23554 XLFD_XXX_INDEX.
23555 (enum xlfd_field_mask): New enum.
ef1b0ba7 23556 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
23557 are followed by non-digits, return a symbol.
23558 (font_expand_wildcards): New function.
23559 (font_parse_xlfd): Fix wildcard handling.
23560 (Ffont_spec): If :name is specified, reflect the info in the other
23561 properties.
23562
23563 * ftfont.c (ftfont_pattern_entity): Fix typo.
23564 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23565 locale.
23566
235672008-02-01 Kenichi Handa <handa@m17n.org>
23568
23569 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23570
23571 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23572 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23573 registry doesn't specify encoding part.
23574 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23575 (font_open_by_name): At first try parsing the name.
23576 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23577 as Lisp symbols.
23578
23579 * fontset.c (reorder_font_vector): Pay attention to the case that
23580 the 3rd element of font_def is nil.
23581 (fontset_font): For the default fontset, append one more fontset
23582 elements for a script-based font specification. Don't add script
23583 attribute on finding a font.
23584 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23585 font name.
23586 (fontset_ascii_font): If a font can't be opened, return nil.
23587
23588 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23589 (ftfont_pattern_entity): New function.
23590 (ftfont_get_cache): Assume that freetype_font_cache is already
23591 initialized.
23592 (ftfont_list): Handle the case that a file is specified in font
23593 name. Use ftfont_pattern_entity to generate entities.
23594 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23595 (syms_of_ftfont): Initialize freetype_font_cache.
23596
23597 * xftfont.c (xftfont_open): Make the font name fontconfig's
23598 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23599 (xftfont_close): Free font->font.name if not NULL.
23600
23601 * xfont.c (xfont_list): If script is specified for a font, return
23602 null_vector.
23603 (xfont_list_family): Declare argument type.
23604
23605 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23606 name, set LFACE_FONT (lface) to nil.
23607
23608 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23609 return Qnil.
23610
236112008-02-01 Kenichi Handa <handa@m17n.org>
23612
23613 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23614 (standard_args): Add "-enable-font-backend".
23615
236162008-02-01 Kenichi Handa <handa@m17n.org>
23617
23618 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23619 (struct xftdraw_list, xftdraw_list): Delete them.
23620 (register_xftdraw, check_xftdraw): Delete them.
23621 (xftfont_prepare_face): Don't call register_xftdraw.
23622 (xftfont_done_face): Don't call check_xftdraw.
23623 (xftfont_draw): Get background color only when with_background is
23624 nonzero.
23625
23626 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23627
236282008-02-01 Kenichi Handa <handa@m17n.org>
23629
23630 These changes are for the new font handling codes.
23631
23632 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23633 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23634 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23635 (FONTSRC, FONTOBJ): New variables.
23636 (obj): Add $(FONTOBJ).
23637 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23638 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23639 @LIBOTF_LIBS@.
23640 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23641 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23642
23643 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23644
23645 * character.h (Vscript_representative_chars): Extern it.
23646
23647 * character.c (Vscript_representative_chars): New variable.
23648 (syms_of_character): Declare it as a Lisp variable.
23649
23650 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23651 enable_font_backend is nonzero, accept the composition method
23652 COMPOSITION_WITH_GLYPH_STRING.
23653
23654 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23655 enumeration COMPOSITION_WITH_GLYPH_STRING.
23656
23657 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23658 members clip_x, clip_y, clip_width, and clip_height.
23659 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23660
23661 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23662 --enable-font-backend. Call syms_of_font.
23663
23664 * fns.c (assoc_no_quit): New function.
23665
23666 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23667 (face_for_font, new_fontset_from_font)
23668 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23669
23670 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23671 (fontset_font, fontset_ascii, face_for_char)
23672 (make_fontset_for_ascii_face, Ffont_info)
23673 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23674 is nonzero, use font-backend mechanism.
23675 (find_font_encoding): Make it non-static.
23676 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23677 New functions.
23678
23679 * frame.h (struct frame): New members resx and resy.
23680 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23681 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23682
23683 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23684 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23685
23686 * lisp.h (assoc_no_quit): Extern it.
23687
23688 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23689 Through out the file, use FONT_INFO_FROM_FACE instead of
23690 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23691 rif->per_char_metric.
23692 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23693 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23694 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23695 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23696 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23697 nonzero, use font-backend mechanism.
23698 (get_per_char_metric): New function.
23699
23700 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23701 (set_lface_from_font_name)
23702 (set_font_frame_param, free_realized_face)
23703 (prepare_face_for_display, clear_face_gcs)
23704 (Finternal_set_font_selection_order, realize_x_face)
23705 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23706 font-backend mechanism.
23707 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23708 (load_face_font) [USE_FONT_BACKEND]: Abort.
23709 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23710 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23711
23712 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23713 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23714 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
23715 nonzero, register all available font drivers.
23716 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
23717 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23718
23719 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23720 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23721 (x_set_glyph_string_clipping_exactly)
23722 (x_compute_glyph_string_overhangs)
23723 (x_draw_glyph_string_foreground)
23724 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23725 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23726 enable_font_backend is nonzero, use font-backend mechanism.
23727 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23728
237292008-02-01 Kenichi Handa <handa@m17n.org>
23730
23731 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23732 system_eol_type.
23733 (syms_of_coding): Initialize system_eol_type.
23734
23735 * process.c (Fset_process_coding_system): Inherit system's eol
23736 format if necessary.
23737
237382008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23739
23740 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23741
237422008-02-01 Kenichi Handa <handa@m17n.org>
23743
23744 * coding.c (decode_eol): Pay attention to buffer relocation in
23745 del_range_2.
23746 (decode_coding): Call decode_eol before restoring undo_list.
23747
237482008-02-01 Kenichi Handa <handa@m17n.org>
23749
23750 * charset.c (Fdefine_charset_internal): Fix setting of
23751 emacs_mule_bytes.
23752
237532008-02-01 Kenichi Handa <handa@m17n.org>
23754
23755 * keyboard.c (read_char): Check if C is a character or not before
23756 looking up Vkeyboard_translate_table.
23757
237582008-02-01 Kenichi Handa <handa@m17n.org>
23759
bba3e508
SM
23760 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23761 Fix condition to terminate the loop.
aac0c6e3
MR
23762
237632008-02-01 Kenichi Handa <handa@m17n.org>
23764
23765 * coding.c (produce_composition): Compare charbuf[i] instead of
23766 args[i] against 0.
23767 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23768
237692008-02-01 Kenichi Handa <handa@m17n.org>
23770
23771 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23772 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23773 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23774 detect_coding.
23775 (emacs_mule_char): Handle old style (Emacs 20) component character
23776 of a composition.
23777 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23778 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23779 composition rule.
23780 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23781
237822008-02-01 Kenichi Handa <handa@m17n.org>
23783
23784 * coding.c (encode_coding_ccl): Allocate destination dynamically
23785 when necessary.
23786
237872008-02-01 Kenichi Handa <handa@m17n.org>
23788
23789 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23790 the loop. When quitted, show a proper error message.
23791
237922008-02-01 Kenichi Handa <handa@m17n.org>
23793
bba3e508
SM
23794 * xterm.c (x_set_glyph_string_clipping_exactly):
23795 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
23796
23797 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23798 character sequence.
23799 (Fccl_execute_on_string): Use ASET, not XSET.
23800
238012008-02-01 Kenichi Handa <handa@m17n.org>
23802
23803 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23804
238052008-02-01 Kenichi Handa <handa@m17n.org>
23806
23807 * coding.c (decode_coding): Fix the condition of terminating the
23808 decoding loop.
23809
238102008-02-01 Kenichi Handa <handa@m17n.org>
23811
23812 * data.c (Faset): On setting a character bigger than 255 in a
23813 unibyte string, signal an error instead of make the string multibyte.
23814
238152008-02-01 Kenichi Handa <handa@m17n.org>
23816
23817 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23818 made by a mapping table.
23819
238202008-02-01 Kenichi Handa <handa@m17n.org>
23821
23822 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23823 not.
23824 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23825 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23826
bba3e508
SM
23827 * xterm.c (x_draw_composite_glyph_string_foreground):
23828 Check s->face is NULL or not.
aac0c6e3
MR
23829
238302008-02-01 Kenichi Handa <handa@m17n.org>
23831
23832 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23833 (x_draw_glyph_string): Fix drawing of right_overhang and
23834 left_overhang around/on cursor.
23835
23836 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23837
238382008-02-01 Kenichi Handa <handa@m17n.org>
23839
23840 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23841
238422008-02-01 Kenichi Handa <handa@m17n.org>
23843
23844 * coding.c (Fdefine_coding_system_internal)
23845 (Fdefine_coding_system_alias): Avoid a duplicated element in
23846 Vcoding_system_alist.
23847
238482008-02-01 Kenichi Handa <handa@m17n.org>
23849
23850 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23851
23852 * coding.c (Qcoding_system_define_form): New variable.
23853 (syms_of_coding): Intern and staticpro it.
23854 (Fcoding_system_p): Check Qcoding_system_define_form.
23855 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23856
23857 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23858 Fcoding_system_p.
23859 (CHECK_CODING_SYSTEM): If ID is not available, call
23860 Fcheck_coding_system.
23861 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23862 Try also Fcheck_coding_system.
23863
238642008-02-01 Kenichi Handa <handa@m17n.org>
23865
23866 * coding.c (code_conversion_restore): GCPRO arg.
23867
238682008-02-01 Kenichi Handa <handa@m17n.org>
23869
23870 * character.c (lisp_string_width): Check multibyteness of STRING.
23871
238722008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23873
23874 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23875 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23876 (decode_mac_font_name): Use decode_coding_c_string instead of
23877 decode_coding.
bba3e508
SM
23878 (x_load_font): Initialize fontp->fontset to -1.
23879 Set fontp->encoding_type.
aac0c6e3
MR
23880
238812008-02-01 Kenichi Handa <handa@m17n.org>
23882
23883 * search.c (search_buffer): Give up BM search on case-fold-search
23884 if one of a target character has a case-equivalence of different
3b59c351 23885 byte length even if that target character is an ASCII.
aac0c6e3
MR
23886 (simple_search): Fix calculation of byte length of matched text.
23887 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23888
238892008-02-01 Kenichi Handa <handa@m17n.org>
23890
23891 * coding.c (decode_coding): Fix handling of invalid bytes.
23892
238932008-02-01 Kenichi Handa <handa@m17n.org>
23894
23895 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23896 Unicode characters.
23897
238982008-02-01 Kenichi Handa <handa@m17n.org>
23899
23900 * coding.c (encode_coding_object): If a pre-write-conversion
23901 function makes a new buffer, kill it.
23902
239032008-02-01 Kenichi Handa <handa@m17n.org>
23904
23905 * coding.c (QCascii_compatible_p): New variable.
23906 (syms_of_coding): Initialize it.
23907 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23908 calling string_char.
23909 (record_conversion_result): Add `default:' case.
23910 (coding_charset_list): Delete unused variable `coding_type'.
23911 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23912 property in the plist of the coding system.
23913 (Fcoding_system_put): Check QCascii_compatible_p.
23914
239152008-02-01 Miles Bader <miles@gnu.org>
23916
23917 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23918 removed calculation of frame `f', as it's now used.
23919
239202008-02-01 Kenichi Handa <handa@m17n.org>
23921
23922 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23923 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23924 (UNIDATA): New variable.
23925 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
23926 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23927 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
23928
239292008-02-01 Kenichi Handa <handa@m17n.org>
23930
23931 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23932 (admindir): New variable.
23933 ($(lispsource)international/charprop.el): New target.
23934
239352008-02-01 Miles Bader <miles@gnu.org>
23936
23937 * character.c (chars-in-region): Remove obsolete function.
23938 (syms_of_character): Remove its initialization.
23939
239402008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23941
23942 * w32select.c (validate_coding_system)
23943 (setup_windows_coding_system): New functions.
bba3e508
SM
23944 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23945 Use setup_windows_coding_system.
23946 (setup_config, Fw32_get_clipboard_data):
23947 Use validate_coding_system.
aac0c6e3
MR
23948 (Fx_selection_exists): Move call to setup_config to a place
23949 where signals are allowed.
23950
23951 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23952 (Fcheck_coding_system): Add declarations.
23953
239542008-02-01 Kenichi Handa <handa@m17n.org>
23955
23956 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23957
239582008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23959
23960 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23961 string as the second argument for x_new_fontset.
23962
239632008-02-01 Kenichi Handa <handa@m17n.org>
23964
23965 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23966 (encode_coding_object): Use safe_call instead of call2.
23967
239682008-02-01 Kenichi Handa <handa@m17n.org>
23969
23970 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23971
23972 * Makefile.in (lisp): Include charprop.el.
23973
239742008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23975
23976 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23977 Not sure if it's unnecessary.
23978
239792008-02-01 Steven Tamm <steventamm@mac.com>
23980
23981 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23982 some possibly unnecessary fontset checking code that crashed
23983 when creating a new frame.
23984
239852008-02-01 Kenichi Handa <handa@m17n.org>
23986
23987 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23988 lookup_face.
23989
23990 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23991
23992 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23993
239942008-02-01 Kenichi Handa <handa@m17n.org>
23995
23996 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23997 (coding_charset_list): New function.
23998
23999 * coding.h (coding_charset_list): Extern it.
24000
240012008-02-01 Kenichi Handa <handa@m17n.org>
24002
24003 * fontset.c (Fset_fontset_font): Call find_font_encoding with
24004 concatenation of family and registry.
24005
240062008-02-01 Kenichi Handa <handa@m17n.org>
24007
24008 * character.h (BYTE8_STRING): Fix typo.
24009
24010 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
24011 string to multibyte (sync to HEAD).
24012
24013 * casefiddle.c (casify_region): Handle changes in byte-length
24014 using replace_range_2 (sync to HEAD).
24015
240162008-02-01 Andreas Schwab <schwab@suse.de>
24017
24018 * chartab.c (map_char_table): GCPRO table and arg.
24019
240202008-02-01 Kenichi Handa <handa@m17n.org>
24021
24022 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
24023 already at limit.
24024
240252008-02-01 Kenichi Handa <handa@m17n.org>
24026
24027 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
24028 instead of fast_c_string_match_ignore_case.
bba3e508
SM
24029 (find_font_encoding): Change argument to Lisp_Object.
24030 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
24031 fast_c_string_match_ignore_case. Change caller.
24032
240332008-02-01 Kenichi Handa <handa@m17n.org>
24034
24035 * xdisp.c (get_next_display_element): In unibyte case, decide to
24036 display in octal form by checking a character by
24037 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
24038
24039 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
24040
24041 * character.c (unibyte_has_multibyte_table): New variable.
24042
24043 * character.h (unibyte_has_multibyte_table): Extern it.
24044 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
24045
240462008-02-01 Kenichi Handa <handa@m17n.org>
24047
24048 * coding.c (encode_coding_iso_2022): Fix handling of charset
24049 annotation.
24050
240512008-02-01 Kenichi Handa <handa@m17n.org>
24052
24053 * coding.c (setup_coding_system): If coding_system is nil, use
24054 Qundecided.
24055 (Fterminal_coding_system): Return nil if terminal coding system is
24056 `undecided'.
bba3e508
SM
24057 (syms_of_coding): Define coding-system `undecided' here.
24058 Setup terminal_coding as `undecided'.
aac0c6e3
MR
24059
240602008-02-01 Kenichi Handa <handa@m17n.org>
24061
bba3e508
SM
24062 * xdisp.c (message_dolog, set_message_1):
24063 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
24064
24065 * lread.c (read1): Fix reading of a char-table.
24066
24067 * print.c (print_object): Include sub char-table in circularities
24068 detection.
24069
240702008-02-01 Kenichi Handa <handa@m17n.org>
24071
24072 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24073 Append the found sequences in car of ARGS instead of prepending.
24074
240752008-02-01 Kenichi Handa <handa@m17n.org>
24076
24077 * fileio.c (report_file_error): Make a unibyte string from
24078 strerror (errorno).
24079 (Fsubstitute_in_file_name): Fix the arg to
24080 unibyte_char_to_multibyte. It is evaluated twice.
24081
240822008-02-01 Kenichi Handa <handa@m17n.org>
24083
24084 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24085
240862008-02-01 Kenichi Handa <handa@m17n.org>
24087
24088 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24089 BOM is not found.
24090 (detect_coding, detect_coding_system): Optimization for ISO-2022
24091 when no 8-bit data is found.
24092
240932008-02-01 Jason Rumney <jasonr@gnu.org>
24094
24095 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24096
240972008-02-01 Kenichi Handa <handa@m17n.org>
24098
24099 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24100 CHARS.
24101
241022008-02-01 Steven Tamm <steventamm@mac.com>
24103
24104 * macterm.c (mac_encode_char): Add charset argument and update
24105 to use encoding_type.
24106 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24107 switch to pure fontset.
24108 (decode_mac_font_name): Temporarily remove decoding.
24109 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24110 (x_load_font): Temporarily remove encoding.
24111
241122008-02-01 Kenichi Handa <handa@m17n.org>
24113
24114 * xfaces.c (Fface_font): If frame is not on a window system,
24115 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24116 refer to face->font.
24117 (split_font_name_into_vector, build_font_name_from_vector)
24118 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24119 when HAVE_WINDOW_SYSTEM is defined.
24120
241212008-02-01 Kenichi Handa <handa@m17n.org>
24122
24123 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24124 (x_produce_glyphs): Fix setting of members of cmp in case
24125 cmp->glyph_len is zero.
24126
24127 * fontset.c (Fset_fontset_font): Fix docstring.
24128 (Ffontset_info): Make it backward compatible. New arg ALL.
24129
241302008-02-01 Kim F. Storm <storm@cua.dk>
24131
24132 * process.c (read_process_output): Grow decoding_buf when needed;
24133 this could cause a crash in allocate_string and compact_small_strings.
24134
241352008-02-01 Kenichi Handa <handa@m17n.org>
24136
24137 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24138
241392008-02-01 Kenichi Handa <handa@m17n.org>
24140
24141 * coding.c (setup_coding_system): Set coding->common_flags
24142 correctly for raw-text.
24143 (consume_chars): On encoding unibyte text by raw-text, don't check
24144 multibyte form.
24145 (encode_coding): On encoding by raw-text, never use translation tables.
24146
24147 * fileio.c (e_write): Short cut for the case of no encoding.
24148
241492008-02-01 Kenichi Handa <handa@m17n.org>
24150
24151 * coding.c (detect_coding, detect_coding_system): Delete unused
24152 variables.
24153
241542008-02-01 Kenichi Handa <handa@m17n.org>
24155
24156 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24157 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24158
241592008-02-01 Kenichi Handa <handa@m17n.org>
24160
bba3e508
SM
24161 * coding.c (Ffind_coding_systems_region_internal):
24162 Include raw-text and no-conversion in the result.
aac0c6e3
MR
24163
241642008-02-01 Kenichi Handa <handa@m17n.org>
24165
24166 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24167 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24168 FONT_DEF.
24169 (font_def_arg, add_arg, from_arg, to_arg): New args.
24170 (set_fontset_font): Change argument.
24171 (Fset_fontset_font): Fix for the case that TARGET is a script
24172 name and charset name.
24173 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24174
241752008-02-01 Kenichi Handa <handa@m17n.org>
24176
24177 * fontset.c (fontset_font): Rename from fontset_face. Change return
24178 value.
24179 (face_suitable_for_char_p, face_for_char): Adjust for the change
24180 of fontset_font.
24181 (make_fontset_for_ascii_face): Fix setting of the fontset element
24182 for ASCII.
24183 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24184 to get a font name.
24185 (Ffontset_info): Adjust for the change of fontset_font.
24186
24187 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24188
24189 * character.h (LEADING_CODE_LATIN_1_MIN)
24190 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24191
241922008-02-01 Kenichi Handa <handa@m17n.org>
24193
24194 * editfns.c (check_translation): New function.
24195 (Ftranslate_region_internal): Handle M:N mapping.
24196
241972008-02-01 Kenichi Handa <handa@m17n.org>
24198
24199 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24200
242012008-02-01 Kenichi Handa <handa@m17n.org>
24202
24203 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24204 goto invalid_code.
24205 (decode_coding_iso_2022): Fix handling of invalid designation.
24206
24207 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24208 after calling code_conversion_save.
24209
242102008-02-01 Kenichi Handa <handa@m17n.org>
24211
24212 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24213
24214 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24215
24216 * fontset.c: Include "intervals.h".
24217 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
24218 (free_face_fontset, new_fontset_from_font_name):
24219 Fix Lisp_Object/int mixup.
aac0c6e3
MR
24220
24221 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24222
24223 * coding.c: Add many prototypes for static functions.
24224 (get_translation_table): Allow max_lookup to be NULL.
24225 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
24226 (Funencodable_char_position, Fcheck_coding_systems_region):
24227 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
24228
242292008-02-01 Kenichi Handa <handa@m17n.org>
24230
24231 * coding.c (get_translation_table): Declare it as Lisp_Object.
24232 (LOOKUP_TRANSLATION_TABLE): New macro.
24233 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24234 instead of CHAR_TABLE_REF.
24235
242362008-02-01 Kenichi Handa <handa@m17n.org>
24237
24238 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24239 annotation data format.
24240 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24241 Change arguments FROM and TO to single argument NCHARS. Change caller.
24242 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24243 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24244 (decode_coding_ccl, decode_coding_charset): Pay attention to
24245 coding->charbuf_used.
24246 (get_translation): New function.
24247 (produce_chars): New arguments translation_table and last_block.
24248 Translate characters here. Return number of carryover chars.
24249 Change caller.
24250 (produce_composition): New argument pos. Change caller.
24251 Adjust for the change of annotation data format.
24252 (produce_charset, produce_annotation): Likewise.
24253 (decode_coding, encode_coding): Don't call translate_chars.
24254 (consume_chars): New arg translation_table. Change caller.
24255 (translate_chars): Delete.
24256 (syms_of_coding): Make translation-table's number of extra slots 2.
24257
242582008-02-01 Kenichi Handa <handa@m17n.org>
24259
24260 * search.c (simple_search): Fix setting this_pos_byte in backward
24261 search.
24262
24263 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24264 byte sequence.
24265 (detect_coding_ccl): Fix setting of the variable valids.
24266
242672008-02-01 Kenichi Handa <handa@m17n.org>
24268
24269 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24270
24271 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24272
24273 * editfns.c (Ftranslate_region_internal): Rename from
24274 Ftranslate_region. Accept a char-table in TABLE.
24275 (syms_of_editfns): Defsubr Stranslate_region_internal.
24276
24277 * xfaces.c (set_lface_from_font_name): If a font is specified for
24278 a frame, generate a fontset from the font.
24279 (build_scalable_font_name): If the scalable font is requested for
24280 a specific size, don't change that size.
24281 (try_font_list): Try a scalable font also in the case that a
24282 pattern string is specified.
24283
242842008-02-01 Kenichi Handa <handa@m17n.org>
24285
24286 * xfaces.c (Fface_font): New optional arg CHARACTER.
24287
242882008-02-01 Kenichi Handa <handa@m17n.org>
24289
24290 * charset.h (CHARSET_OFFSET): New macro.
24291
242922008-02-01 Kenichi Handa <handa@m17n.org>
24293
24294 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24295
24296 * fontset.c (fontset_face): Handle the case that repertory is a
24297 char-table.
24298 (find_font_encoding): Return nil for unknown encoding.
24299 (Fset_fontset_font): Ignore a font of unknown encoding.
24300
243012008-02-01 Kenichi Handa <handa@m17n.org>
24302
24303 * keymap.c (describe_vector): Handle default value of a char table.
24304
24305 * fontset.c (fontset_face): Handle fallback fonts correctly.
24306 (Ffontset_info): Return infomation about fallback fonts.
24307
243082008-02-01 Kenichi Handa <handa@m17n.org>
24309
24310 * fontset.c (FONTSET_DEFAULT): New macro.
24311 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24312 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24313 the case that it is nil.
24314 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24315 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24316
24317 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24318 subset or superset.
24319
243202008-02-01 Kenichi Handa <handa@m17n.org>
24321
24322 * emacs.c (main): Call init_charset after syms_of_XXX.
24323
24324 * charset.c (Vcharset_map_directory): Delete.
24325 (Vcharset_map_path): New variable.
24326 (load_charset_map_from_file): Use Vcharset_map_path instead.
24327 (init_charset): Initialize Vcharset_map_path.
24328 (syms_of_charset): Delete declaration of "charset-map-directory",
24329 add declaration of "charset-map-path".
24330
243312008-02-01 Kenichi Handa <handa@m17n.org>
24332
24333 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24334 ASCII only string.
24335
24336 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24337
24338 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24339 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24340
243412008-02-01 Kenichi Handa <handa@m17n.org>
24342
24343 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24344
24345 * coding.c (QCmnemonic, QCdefalut_char)
24346 (QCdecode_translation_table, QCencode_translation_table)
24347 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24348 (get_translation_table): Return a list of translation tables if
24349 necessary.
24350 (decode_coding): Call get_translation_table with ENCODEP 0.
24351 (char_encodable_p): If translation_table is non-nil, always call
24352 translate_char.
24353 (Fdefine_coding_system_internal): Accept list of translation
24354 tables as :encode-translation-table and :decode-translation-table.
24355 (Fcoding_system_put): New function.
bba3e508
SM
24356 (syms_of_coding): Declare new symbols.
24357 Defsubr Scoding_system_put.
aac0c6e3
MR
24358 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24359 typically JISX0212.
24360
24361 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24362 when the charset is superset type.
24363
24364 * character.c (translate_char): Accept list of translation tables.
24365
243662008-02-01 Kenichi Handa <handa@m17n.org>
24367
24368 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24369 (CODING_ATTR_TRANS_TBL): New macro.
24370
24371 * coding.c (get_translation_table): New function.
24372 (translate_chars): Fix the bug of skipping annotation data.
24373 (decode_coding, encode_coding): Utilize get_translation_table.
24374 (char_encodable_p, Funencodable_char_position): Translate char if
24375 necessary.
24376 (Ffind_coding_systems_region_internal)
24377 (Fcheck_coding_systems_region): Setup translation table for encode
24378 in a coding system attribute vector in advance.
24379 (Fdefine_coding_system_internal): Allow a symbol as translation
24380 table. For shift-jis type coding system, allow 4th charset.
24381
243822008-02-01 Kenichi Handa <handa@m17n.org>
24383
24384 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24385
24386 * xdisp.c (get_next_display_element): Pass -1 as POS to
24387 FACE_FOR_CHAR if displaying a C-string.
24388
243892008-02-01 Kenichi Handa <handa@m17n.org>
24390
24391 * composite.c (get_composition_id): Handle xoff and yoff in a
24392 composition rule.
24393
24394 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24395 (struct composition): New member lbearing and rbearing.
24396
24397 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24398 (x_get_glyph_overhangs): Handle a composition glyph.
24399 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24400
24401 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24402 composition glyph.
24403
244042008-02-01 Kenichi Handa <handa@m17n.org>
24405
24406 * print.c: Include charset.h.
24407 (Vprint_charset_text_property): New variable.
24408 (Qdefault): Extern it.
24409 (PRINT_STRING_NON_CHARSET_FOUND)
24410 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24411 (print_check_string_result): New variable.
24412 (print_check_string_charset_prop): New function.
24413 (print_prune_charset_plist): New variable.
24414 (print_prune_string_charset): New function.
24415 (print_object): Call print_prune_string_charset if
24416 Vprint_charset_text_property is not t.
24417 (print_interval): Print nothing if interval->plist is nil.
24418 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24419 variable. Init and staticpro print_prune_charset_plist.
24420
244212008-02-01 Kenichi Handa <handa@m17n.org>
24422
24423 * fontset.c (new_fontset_from_font_name): Use the specified font
24424 for all characters in the new fontset.
24425
24426 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24427 OBJECT args.
24428
24429 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24430 OBJECT args for composition too.
24431
24432 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24433 OBJECT args.
24434
244352008-02-01 Kenichi Handa <handa@m17n.org>
24436
24437 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24438
24439 * fontset.c (reorder_font_vector): Adjust for the change of
24440 FONT_DEF format.
24441 (fontset_face): New arg id. Change caller.
24442 (face_for_char): New args pos and object.
24443 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24444 (fs_query_fontset): Check NAME by Fassoc too.
24445 (Fset_fontset_font): Allow non-XLFD font name.
24446 (Ffontset_info): Adjust for the change of FONT_DEF format.
24447
24448 * fontset.h (face_for_char): Adjust prototype.
24449
24450 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24451 (append_space, extend_face_to_end_of_line)
24452 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24453 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24454
24455 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24456 POS and OBJECT args.
24457
24458 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24459 POS and OBJECT args.
24460
244612008-02-01 Jason Rumney <jasonr@gnu.org>
24462
24463 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24464 of GlobalAlloc'ed memory.
24465
244662008-02-01 Kenichi Handa <handa@m17n.org>
24467
24468 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24469
24470 * charset.h (charset_table_used): Delete extern.
24471
24472 * charset.c (charset_table_used): Make it static.
24473 (map_charset_chars): Fix args to c_function with.
24474
24475 * chartab.c (map_sub_char_table_for_charset): Fix args to
24476 c_function with.
24477
bba3e508
SM
24478 * coding.h (enum coding_result_code):
24479 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
24480
24481 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24482 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24483 (Vlast_code_conversion_error): New variables.
24484 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24485 (ONE_MORE_BYTE): Record error if any instead of signaling an
24486 error. If non-ASCII multibyte char is found, return the negative
24487 value of the code. All callers changed to check it.
24488 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24489 (record_conversion_result): New function. Change all codes setting
24490 coding->result to call this function.
24491 (detect_coding_utf_8, decode_coding_utf_8)
24492 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24493 Don't use the local variable incomplete.
24494 (emacs_mule_char): Change the second arg to `const'.
24495 (decode_coding): Fix of flushing out unprocessed data.
24496 (make_conversion_work_buffer): Fix making of a work buffer.
24497 (decode_coding_object): Return coding->dst_object.
24498
24499 * fontset.c (set_fontset_font): Fix args.
24500
24501 * lisp.h (CHARACTERBITS): Define as 22.
24502
24503 * process.c (send_process): Be sure to set coding->src_multibyte.
24504
24505 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24506
245072008-02-01 Kenichi Handa <handa@m17n.org>
24508
24509 * xdisp.c (handle_auto_composed_prop): Give limit to
24510 Fnext_single_char_property_change.
24511
245122008-02-01 Kenichi Handa <handa@m17n.org>
24513
24514 * composite.c (syms_of_composite): Don't make the composition hash
24515 table weak.
24516
24517 * fontset.c (Fset_fontset_font): Fix docstring.
24518
24519 * lisp.h (detect_coding_system): Adjust prototype.
24520
24521 * fileio.c (kill_workbuf_unwind): Delete this function.
24522 (Finsert_file_contents): Adjust the call of detect_coding_system.
24523 Get conversion_buffer by code_conversion_save. Use the macro
24524 CODING_MAY_REQUIRE_DECODING. After decoding, update
24525 coding_system.
24526
24527 * coding.h (make_conversion_work_buffer): Delete extern.
24528 (code_conversion_save): Extern it.
24529
24530 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24531 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24532 (decode_coding_utf_8): Don't do eol converion.
24533 (detect_coding_utf_16): Check coding->src_chars, not
24534 coding->src_bytes. Add heuristics for those that have no signature.
24535 (decode_coding_emacs_mule, decode_coding_iso_2022)
24536 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24537 Don't do eol converion.
24538 (adjust_coding_eol_type): Return a new coding system.
24539 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24540 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24541 each change.
24542 (decode_coding): Pay attention to undo_list. Do eol conversion for
24543 all types of coding-systems (if necessary).
24544 (Vcode_conversion_work_buf_list): Delete it.
24545 (Vcode_conversion_reused_workbuf): Rename from
24546 Vcode_conversion_reused_work_buf.
24547 (Vcode_conversion_workbuf_name): New variable.
24548 (reused_workbuf_in_use): New variable.
24549 (make_conversion_work_buffer): Delete the arg DEPTH.
24550 (code_conversion_restore): Change argument to cons.
24551 (code_conversion_save): Delete the argument BUFFER. Change callers.
24552 (detect_coding_system): New argument src_chars. Change callers.
24553 Fix for utf-16 detection.
24554 (init_coding_once): Don't use ISO_carriage_return.
24555 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24556 reused_workbuf_in_use.
24557
245582008-02-01 Kenichi Handa <handa@m17n.org>
24559
24560 * keymap.c (store_in_keymap): Pay attention to the case that idx
24561 is a cons specifying a character range.
24562
245632008-02-01 Kenichi Handa <handa@m17n.org>
24564
24565 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24566 HANDLED_RECOMPUTE_PROPS.
24567
24568 * coding.c (Fdefine_coding_system_internal): Fix checking of
24569 ascii compatibility.
24570
245712008-02-01 Kenichi Handa <handa@m17n.org>
24572
24573 * charset.c (find_charsets_in_text): Delete unused locale variable.
24574 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24575
24576 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24577 Resync charset_list to Vemacs_mule_charset_list.
24578
24579 * keymap.c (store_in_keymap): Pay attention to the case that idx
24580 is a cons specifying a character range.
24581
245822008-02-01 Kenichi Handa <handa@m17n.org>
24583
24584 * composite.c (update_compositions): Bind inhibit-read-only, etc
24585 to t before calling remove-list-of-text-properties.
24586
24587 * print.c (print_object): Always print ASCII chars as is.
24588
245892008-02-01 Kenichi Handa <handa@m17n.org>
24590
24591 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24592
24593 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24594 is a char table.
24595
245962008-02-01 Kenichi Handa <handa@m17n.org>
24597
24598 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24599
246002008-02-01 Kenichi Handa <handa@m17n.org>
24601
24602 * xfaces.c (set_lface_from_font_name): Fix for the case that
24603 FONTNAME is not fontset name.
24604
246052008-02-01 Kenichi Handa <handa@m17n.org>
24606
24607 * fns.c (base64_encode_1): Fix previous change.
24608
246092008-02-01 Kenichi Handa <handa@m17n.org>
24610
24611 * fontset.c (set_fontset_font): New function.
24612 (Fset_fontset_font): If a font is specified for a charset, use
24613 map_charset_chars to store the font spec in a fontset.
24614
246152008-02-01 Kenichi Handa <handa@m17n.org>
24616
24617 * fontset.c (fontset_face): Create a fallback fontset on demand.
24618 (make_fontset): Don't create a fallback fontset here.
24619 (free_face_fontset): Free a fallback fontset (if any) too.
24620 (n_auto_fontsets): Delete this variable.
24621 (auto_fontset_alist): New variable.
24622 (new_fontset_from_font_name): Check auto_fontset_alist.
24623 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24624 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24625 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24626 Defsubr Sfontset_list_all.
24627
246282008-02-01 Kenichi Handa <handa@m17n.org>
24629
24630 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24631
246322008-02-01 Kenichi Handa <handa@m17n.org>
24633
24634 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24635
246362008-02-01 Kenichi Handa <handa@m17n.org>
24637
24638 * editfns.c (Fgoto_char): Fix docstring.
24639
246402008-02-01 Kenichi Handa <handa@m17n.org>
24641
24642 * insdel.c (insert_from_gap): Adjust intervals correctly.
24643
246442008-02-01 Jason Rumney <jasonr@gnu.org>
24645
24646 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24647 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24648 (w32_initialize): Try to load it.
24649 (x_get_font_repertory): Use it if available.
24650 (w32_encode_char): Add shortcut for unicode output.
24651
24652 * w32fns.c (w32_load_system_font): Default charset to -1.
24653 (x_to_w32_charset): Match all fonts for unicode.
24654 (w32_to_x_charset): New parameter matching. Don't return partial
24655 or wildcard charsets.
24656 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24657 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24658 (w32_to_x_font): Match charset to real charset.
24659 (enum_font_cb2): Always list unicode versions.
24660
24661 * makefile.w32-in (temacs): Increase EMHEAP.
24662
246632008-02-01 Jason Rumney <jasonr@gnu.org>
24664
24665 * w32term.c (w32_encode_char): New charset parameter.
24666 font_info.encoding becomes encoding_type.
24667 (x_get_font_repertory): New function. Warning: stub only!
24668 (x_new_font): Return quickly if font already set.
24669 (x_new_fontset): fontsetname parameter is Lisp_Object.
24670 Use new fs_query_fontset. Try new_fontset_from_font_name.
24671 Use fontset_name for return value.
24672
24673 * w32term.h: Declare x_get_font_repertory.
24674
24675 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24676 place of find_charset_in_text. Use encode_coding_object in place
24677 of encode_coding.
24678 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24679 decode_coding.
24680
24681 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24682 of x_new_fontset.
24683 (w32_load_system_font): Initialize charset as unicode.
24684 font_info.encoding becomes encoding_type.
24685 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24686 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24687 (syms_of_w32fns): Set get_font_repertory_func.
24688
24689 * w32console.c: Include character.h. Use terminal_encode_buffer
24690 from term.c.
bba3e508
SM
24691 (write_glyphs): Use new version of encode_terminal_code.
24692 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
24693
24694 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24695 encoding becomes encoding_type.
24696
24697 * term.c (terminal_encode_buffer): Make externally visible.
24698
24699 * makefile.w32-in: Add character.h dependancies.
24700 (character.o, chartab.o): New targets.
24701
247022008-02-01 Kenichi Handa <handa@m17n.org>
24703
24704 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24705 CODING_ID_EOL_TYPE.
24706
247072008-02-01 Andreas Schwab <schwab@suse.de>
24708
24709 * coding.c (produce_chars): Revert last change.
24710
247112008-02-01 Kenichi Handa <handa@m17n.org>
24712
24713 * charset.h (charset_unicode): Extern it.
24714
24715 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
24716 (find_charsets_in_text): Change format of the arc CHARSETS.
24717 New arg MULTIBYTE.
aac0c6e3
MR
24718 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24719 change of find_charsets_in_text.
24720 (Fsplit_char): Fix doc. Never return unknown.
24721
24722 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24723
bba3e508
SM
24724 * coding.c (Fdefine_coding_system_alias):
24725 Update Vcoding_system_list.
aac0c6e3
MR
24726
24727 * fontset.c (load_font_get_repertory): Pay attention to the case
24728 that ENCODING of a font is specified by a char-table.
24729
24730 * xterm.c (x_get_font_repertory): Handle the case that the
24731 encoding of font is other than Unicode.
24732
247332008-02-01 Kenichi Handa <handa@m17n.org>
24734
bba3e508
SM
24735 * term.c (encode_terminal_code): Don't handle glyph-table.
24736 Check if a character is encodable by the terminal coding system.
24737 If not, produces proper number of `?'s. Update
aac0c6e3
MR
24738 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24739 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24740
247412008-02-01 Kenichi Handa <handa@m17n.org>
24742
bba3e508
SM
24743 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24744 New variables.
aac0c6e3
MR
24745 (encode_terminal_code): Change argument. Encode multiple
24746 characters at once. Store the result of encoding in
24747 terminal_encode_buffer.
24748 (write_glyphs, insert_glyphs): Adjust for the change of
24749 encode_terminal_code.
24750 (term_init): Initialize terminal_encode_buffer and
24751 terminal_encode_buf_size.
24752
24753 * coding.c (consume_chars): If coding->src_object is nil, don't
24754 check annotation.
24755
247562008-02-01 Kenichi Handa <handa@m17n.org>
24757
24758 * character.c (char_string): Use ASCII_CHAR_P instead of
24759 SINGLE_BYTE_CHAR_P.
24760
247612008-02-01 Kenichi Handa <handa@m17n.org>
24762
24763 * xdisp.c (handle_auto_composed_prop): Check if the last
24764 characters of auto-composed region is newly composed with the
24765 following characters.
24766 (handle_composition_prop): Fix checking of point being inside
24767 composition.
24768
247692008-02-01 Kenichi Handa <handa@m17n.org>
24770
24771 * fns.c (concat): Don't change multibyteness of the result by
24772 concatenating an 8-bit character.
24773
24774 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24775 multibyteness of the result when newelt is an 8-bit character.
24776
247772008-02-01 Dave Love <fx@gnu.org>
24778
24779 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24780 EMACS_INT.
24781
24782 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24783
24784 * xfaces.c (face_numeric_value): Declare dim size_t.
24785 (Finternal_lisp_face_equal_p): Remove unused f.
24786
24787 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24788 (MATRIX_ROW): Remove unused vars.
24789 (draw_glyphs, x_insert_glyphs, fast_find_position)
24790 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24791 byte/char counts.
24792
24793 * regex.c (regex_compile): Remove unused var.
24794
24795 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24796
24797 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24798 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24799
24800 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24801
24802 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24803
24804 * fileio.c (Fwrite_region): Remove unused var.
24805
24806 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24807 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24808
24809 * composite.c (Fremove_list_of_text_properties): Declare.
24810
24811 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24812 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24813 (coding_inherit_eol_type): Remove unused attrs.
24814 (detect_coding): Cast arg of detect_eol.
24815
24816 * charset.c (syms_of_charset): Remove unused var p.
24817 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24818 byte/char counts.
24819
24820 * casetab.c (set_case_table): Remove unused var.
24821
bba3e508
SM
24822 * window.c (Fdisplay_buffer, Fframe_selected_window):
24823 Remove unused vars.
aac0c6e3
MR
24824
248252008-02-01 Dave Love <fx@gnu.org>
24826
24827 * xterm.c (x_bitmap_mask): Declare.
24828
248292008-02-01 Dave Love <fx@gnu.org>
24830
24831 * xterm.c (x_term_init): Fix type error.
24832
24833 * lisp.h: Add Funibyte_char_to_multibyte.
24834
24835 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24836 (Fset_coding_system_priority): Doc fix.
24837
24838 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24839
24840 * indent.c (check_composition): Make start and end EMACS_INT.
24841
24842 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24843
24844 * xdisp.c (handle_composition_prop, check_point_in_composition):
24845 Make buffer positions EMACS_INT.
24846
24847 * composite.c (find_composition, run_composition_function)
24848 (update_compositions, Ffind_composition_internal): Make buffer
24849 positions EMACS_INT.
24850
bba3e508
SM
24851 * composite.h (find_composition, update_compositions):
24852 Make position args EMACS_INT.
aac0c6e3
MR
24853
24854 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24855
24856 * intervals.c (get_property_and_range):
24857 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24858
24859 * unexalpha.c: Don't include varargs.h.
24860
248612008-02-01 Dave Love <fx@gnu.org>
24862
24863 * coding.h (ENCODE_UTF_8): New.
24864
24865 * Makefile.in (gtkutil.o): Depend on coding.h.
24866
24867 * coding.c (Fset_coding_system_priority): Doc fix.
24868
248692008-02-01 Kenichi Handa <handa@m17n.org>
24870
24871 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24872 the case of auto saving.
24873
248742008-02-01 Andreas Schwab <schwab@suse.de>
24875
bba3e508
SM
24876 * chartab.c (map_char_table, map_char_table_for_charset):
24877 Protect `range' from GC.
aac0c6e3
MR
24878
248792008-02-01 Kenichi Handa <handa@m17n.org>
24880
24881 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24882
248832008-02-01 Kenichi Handa <handa@m17n.org>
24884
24885 * fileio.c (choose_write_coding_system): Return a decided coding system.
24886 (Fwrite_region): Set Vlast_coding_system_used to the return value
24887 of choose_write_coding_system.
24888
248892008-02-01 Kenichi Handa <handa@m17n.org>
24890
24891 * charset.c (Fset_charset_priority): Pay attention to duplicated
24892 arguments.
24893
24894 * coding.c (QCcategory): New variable.
24895 (syms_of_coding): Defsym it. Set all elements of
24896 Vcoding_category_table and their symbol values.
24897 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24898 coding-category-XXX, and coding-category-list.
24899 (Fdefine_coding_system_internal): Add category in the plist.
24900
249012008-02-01 Kenichi Handa <handa@m17n.org>
24902
24903 * callproc.c (Fcall_process): Handle carryover correctly.
24904
24905 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24906 (raw_text_coding_system): Check NILP (coding_system).
24907 (coding_inherit_eol_type): Check NILP (coding_system) and
24908 NILP (parent).
24909 (consume_chars): Fix for the case of raw-text.
24910
24911 * process.c (read_process_output): Handle carryover correctly.
24912
249132008-02-01 Dave Love <fx@gnu.org>
24914
24915 * regex.c (re_search_2): Fix last change.
24916
249172008-02-01 Kenichi Handa <handa@m17n.org>
24918
24919 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24920 target_multibyte. Even in a unibyte case, return a converted
24921 multibyte char.
24922 (GET_CHAR_AFTER): New macro.
24923 (PATFETCH): Translate via multibyte char.
24924 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24925 (SETUP_MULTIBYTE_RANGE): New macro.
24926 (regex_compile): Setup compiled code so that its multibyteness
24927 matches that of a target. Fix the handling of "[X-YZ]" using
24928 SETUP_MULTIBYTE_RANGE.
24929 (analyse_first) <charset>: For filling fastmap for all multibyte
24930 characters, don't check by BASE_LEADING_CODE_P.
24931 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24932 the same as RE_MULTIBYTE_P (bufp) now.
24933 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24934 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24935 (TRANSLATE_VIA_MULTIBYTE): New macro.
24936 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24937 It is the same as RE_MULTIBYTE_P (bufp) now.
24938 <exactn>: Translate via multibyte.
bba3e508
SM
24939 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24940 Don't translate it.
aac0c6e3
MR
24941 <charset, charset_not>: Fetch a character by
24942 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24943 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24944 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24945 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24946 by GET_CHAR_AFTER.
24947 (bcmp_translate): Likewise.
24948
24949 * search.c (compile_pattern): Check the member target_multibyte,
24950 not the member multibyte of buf.
24951
24952 * lread.c (read1): While reading a string, set force_singlebyte
24953 and force_multibyte correctly.
24954
24955 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24956 up of unibyte_to_multibyte_table.
24957
249582008-02-01 Kenichi Handa <handa@m17n.org>
24959
24960 * coding.c (setup_coding_system): If coding has
24961 post-read-conversion or pre-write-conversion, set
24962 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24963 respectively.
24964 (decode_coding_gap): Run post-read-conversion if any.
24965
24966 * fileio.c (Finsert_file_contents): Even if we read into a
24967 unibyte buffer, check if we must decode the result or not.
24968
249692008-02-01 Kenichi Handa <handa@m17n.org>
24970
24971 * coding.c (make_conversion_work_buffer): Change the work buffer
24972 name to the same one as that of Emacs 21.
24973
249742008-02-01 Kenichi Handa <handa@m17n.org>
24975
24976 * coding.h (make_conversion_work_buffer): Adjust prototype.
24977 (code_conversion_restore): Don't extern it.
24978
24979 * coding.c (detected_mask): Delete unused variable.
24980 (decode_coding_iso_2022): Pay attention to the byte sequence of
24981 CTEXT extended segment, and retain those bytes as is.
24982 (decode_coding_ccl): Delete unused variable `valids'.
24983 (setup_coding_system): Delete unused variable `category'.
24984 (consume_chars): Delete unused variable `category'. Make it work
24985 for non-multibyte case.
24986 (make_conversion_work_buffer): Change argument.
24987 (saved_coding): Delete unused variable.
24988 (code_conversion_restore): Don't check saved_coding->destination.
24989 (code_conversion_save): New function.
24990 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24991 instead of record_unwind_protect.
24992 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24993 (detect_coding_system): Delete unused variable `mask'.
24994 (Fdefine_coding_system_internal): Delete unused variable id.
24995
24996 * fileio.c (kill_workbuf_unwind): New function.
24997 (Finsert_file_contents): On replacing, call
24998 make_conversion_work_buffer with correct args, and call
24999 record_unwind_protect with the first arg kill_workbuf_unwind.
25000
25001 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
25002
250032008-02-01 Kenichi Handa <handa@m17n.org>
25004
25005 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
25006 (fontset_add): Fix for the case that TO is less than TO1.
25007 (Ffontset_info): Don't use fallback fontset on checking the
25008 default fontset.
25009 (dump_fontset): New function for debugging.
25010
25011 * coding.c (Fdefine_coding_system_internal): Fix for the case that
25012 coding_type is Qcharset.
25013
250142008-02-01 Kenichi Handa <handa@m17n.org>
25015
25016 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
25017 (map_char_table): Don't inherit the value from the parent on
25018 initializing VAL. Adjust for the above change.
25019
250202008-02-01 Kenichi Handa <handa@m17n.org>
25021
25022 * coding.c (Qsignature, Qendian): Delete these variables.
25023 (syms_of_coding): Don't initialize them.
25024 (CATEGORY_MASK_UTF_16_AUTO): New macro.
25025 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
25026 detect_info->found.
25027 (decode_coding_utf_16): Don't detect BOM here.
25028 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
25029 is NOT utf_16_without_bom.
25030 (setup_coding_system): For a coding system of type utf-16, check
25031 if the attribute :endian is Qbig or not (not nil or not), and set
25032 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
25033 (detect_coding): If coding type is utf-16 and BOM detection is
25034 required, detect it.
25035 (Fdefine_coding_system_internal): For a coding system of type
25036 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
25037
250382008-02-01 Kenichi Handa <handa@m17n.org>
25039
25040 * coding.c (coding_set_source): Fix for the case that the current
25041 buffer is different from coding->src_object.
25042 (decode_coding_object): Don't use the conversion work buffer if
25043 DST_OBJECT is a buffer.
25044
250452008-02-01 Dave Love <fx@gnu.org>
25046
25047 * lread.c (read_emacs_mule_char) [len==2]: Index
25048 emacs_mule_charset correctly.
25049
250502008-02-01 Dave Love <fx@gnu.org>
25051
25052 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
25053 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
25054 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
25055 treated specially.)
25056 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
25057 (detected_mask): Remove Big5 bits.
25058
250592008-02-01 Kenichi Handa <handa@m17n.org>
25060
25061 The following changes are to make the font rescaling facility
25062 compatible with Emacs 21.
25063
25064 * xfaces.c (Vface_font_rescale_alist): Rename from
25065 Vface_resizing_fonts.
25066 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25067 (font_rescale_ratio): Rename from font_resizing_ratio.
25068 (split_font_name): Set font->rescale_ratio.
25069 (better_font_p): Pay attention to font->rescale_ratio.
25070 (build_scalable_font_name): Likewise. Change RESX, and RESY
25071 fields.
25072 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25073
250742008-02-01 Kenichi Handa <handa@m17n.org>
25075
25076 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25077 (Qutf_16_le): Remove these variables.
25078 (syms_of_coding): Don't DEFSYM them.
25079 (decode_coding_utf_16): Fix handling of BOM.
25080 (encode_coding_utf_16): Fix handling of BOM.
25081
250822008-02-01 Kenichi Handa <handa@m17n.org>
25083
25084 * fileio.c (Finsert_file_contents): On replacing, before decoding
25085 the file into the work buffer, set point of the work buffer to the end.
25086
250872008-02-01 Dave Love <fx@gnu.org>
25088
25089 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25090
250912008-02-01 Dave Love <fx@gnu.org>
25092
25093 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25094 and fix C types.
25095
250962008-02-01 Kenichi Handa <handa@m17n.org>
25097
25098 * xdisp.c (SKIP_GLYPHS): New macro.
25099 (set_cursor_from_row): Pay attention to string display properties.
25100
25101 * category.c (copy_category_entry): Fix for the case that RANGE
25102 is an integer.
25103
25104 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25105
25106 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25107
251082008-02-01 Kenichi Handa <handa@m17n.org>
25109
25110 * charset.c (Fcharset_id_internal): New function.
25111 (syms_of_charset): Defsubr it.
25112
25113 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25114 with the last arg charset_list acquired from coding.
25115 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25116 the attribute coding_attr_ccl_valids.
25117
25118 * coding.h (enum define_coding_ccl_arg_index): Set the first
25119 member coding_arg_ccl_decoder to coding_arg_max.
25120
25121 * ccl.h (ccl_driver): Adjust prototype.
25122
25123 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25124 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 25125 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
25126 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25127 last arg Qnil.
25128
251292008-02-01 Kenichi Handa <handa@m17n.org>
25130
25131 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25132 call encode_char.
25133
25134 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25135
251362008-02-01 Dave Love <fx@gnu.org>
25137
25138 * composite.c (syms_of_composite): Make composition_hash_table weak.
25139
251402008-02-01 Kenichi Handa <handa@m17n.org>
25141
25142 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25143 (font_name_registry): Don't extern them.
25144 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25145
25146 * fontset.h (Qfontset): Don't extern it.
25147 (new_fontset_from_font_name): Extern it.
25148
25149 * fontset.c: Give 8 extra slots to fontset objects.
25150 (Qfontset_info): New variable.
25151 (syms_of_fontset): Defsym it.
25152 (FONTSET_FALLBACK): New macro.
25153 (fontset_face): Try also the default fontset.
25154 (make_fontset): Realize a fallback fontset from the default fontset.
25155 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25156 using split_font_name_into_vector and build_font_name_from_vector.
25157 (Fset_fontset_font): Access the elements of font_spec by enum
25158 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25159 name by using split_font_name_into_vector.
25160 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
25161 generate a proper font name from the fontset name.
25162 Update Vfontset_alias_alist.
aac0c6e3
MR
25163 (n_auto_fontsets): New variable.
25164 (new_fontset_from_font_name): New function.
25165 (Ffont_info): Store the information about fonts generated from the
25166 default fontset in the first extra slot of the returned char-table.
25167
25168 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25169 (font_name_registry): Delete function.
25170 (split_font_name_into_vector): New function.
25171 (build_font_name_from_vector): New function.
25172 (font_list): The argument REGISTRY is now a list of registry names.
25173 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25174 specifies an explicit font name, return the name as is. Make a
25175 list of registy names.
25176
25177 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25178 of x_new_fontset.
25179 (Fx_create_frame): Don't call x_new_fontset here. Just use
25180 x_list_fonts to check the existence of fonts.
25181
25182 * xterm.h (x_new_fontset): Adjust prototype.
25183
25184 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25185 string. Use new_fontset_from_font_name to create a fontset from a
25186 font name.
25187
251882008-02-01 Kenichi Handa <handa@m17n.org>
25189
25190 * syntax.c (Vfind_word_boundary_function_table): New name for
25191 Vnext_word_boundary_function_table.
25192 (find-word-boundary-function-table): New name for
25193 next-word-boundary-function-table.
25194
251952008-02-01 Dave Love <fx@gnu.org>
25196
25197 * Makefile.in: Fix some dependencies.
25198
25199 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25200 set it to nil before returning.
25201
25202 * composite.c (update_compositions): Fix type error.
25203
25204 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25205
252062008-02-01 Kenichi Handa <handa@m17n.org>
25207
25208 * xterm.c (x_new_font): Optimize for the case that the font is
25209 already set for the frame.
25210
252112008-02-01 Kenichi Handa <handa@m17n.org>
25212
25213 * chartab.c (char_table_ascii): Check if the char table contents
25214 is sub-char-table or not.
25215 (char_table_set, char_table_set_range): Fix argument to
25216 char_table_ascii.
25217
25218 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25219 (detect_coding_utf_8, detect_coding_utf_16)
25220 (detect_coding_emacs_mule, detect_coding_iso_2022)
25221 (detect_coding_sjis, detect_coding_big5)
25222 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25223 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25224 sequence is valid in this coding system. Change callers.
25225 (MAX_ANNOTATION_LENGTH): New macro.
25226 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
25227 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25228 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
25229 (ADD_CHARSET_DATA): New macro.
25230 (emacs_mule_char): New argument ID. Change callers.
25231 (decode_coding_emacs_mule, decode_coding_iso_2022)
25232 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25233 Produce charset annotation data in coding->charbuf.
25234 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25235 to charset annotation data in coding->charbuf.
25236 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25237 coding->common_flags if the coding system is iso-2022 based and
25238 uses designation.
25239 (produce_composition): Adjust for the new annotation data format.
25240 (produce_charset): New function.
25241 (produce_annotation): Handle charset annotation.
bba3e508
SM
25242 (handle_composition_annotation, handle_charset_annotation):
25243 New functions.
aac0c6e3
MR
25244 (consume_chars): Handle charset annotation. Utilize the above two
25245 functions.
25246 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25247 buffer, get the deleted text as a string and set
25248 coding->src_object to that string.
25249 (detect_coding, detect_coding_system): Use the new struct
25250 coding_detection_info.
25251
25252 * coding.h (struct coding_detection_info): New structure.
25253 (struct coding_system): Adjust prototype of the member `detector'.
25254 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25255
252562008-02-01 Kenichi Handa <handa@m17n.org>
25257
25258 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25259
252602008-02-01 Dave Love <fx@gnu.org>
25261
25262 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25263 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25264 to new local and nullify apropos_accumulate before returning.
25265 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25266
252672008-02-01 Kenichi Handa <handa@m17n.org>
25268
25269 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25270 correctly.
e3eea1fc 25271
aac0c6e3
MR
252722008-02-01 Dave Love <fx@gnu.org>
25273
25274 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25275
252762008-02-01 Kenichi Handa <handa@m17n.org>
25277
25278 The following changes are to make character composition happen
25279 automatically on displaying.
25280
25281 * Makefile.in (lisp, shortlisp): Add composite.elc.
25282
25283 * composite.h (Qauto_composed, Vauto_composition_function)
25284 (Qauto_composition_function): Extern them.
25285
25286 * composite.c (Vcomposition_function_table)
25287 (Qcomposition_function_table): Delete variables.
25288 (Qauto_composed, Vauto_composition_function)
25289 (Qauto_composition_function): New variables.
25290 (run_composition_function): Don't call
25291 compose-chars-after-function.
25292 (update_compositions): Clear `auto-composed' text property.
25293 (compose_chars_in_text): Delete this function.
25294 (syms_of_composite): Staticpro Qauto_composed and
25295 Qauto_composition_function. Declare Vauto_composition_function as
25296 a Lisp variable.
25297
25298 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25299
25300 * xdisp.c (it_props): Add an entry for Qauto_composed.
25301 (handle_auto_composed_prop): New function.
25302
25303 * xselect.c (selection_data_to_lisp_data): Don't call
25304 compose_chars_in_text.
25305
253062008-02-01 Dave Love <fx@gnu.org>
25307
25308 * keyboard.c (read_char): Modify checking around use of
25309 Vkeyboard_translate_table.
25310
25311 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25312 and fix C types.
25313
253142008-02-01 Kenichi Handa <handa@m17n.org>
25315
25316 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25317 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25318 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25319 the case that the last byte is '\r' correctly.
25320 (decode_coding): Flush out the unprocessed data correctly.
25321 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25322
253232008-02-01 Dave Love <fx@gnu.org>
25324
25325 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25326 Add XK_ISO... case.
25327 (xaw_scroll_callback): Revert last change.
25328
253292008-02-01 Kenichi Handa <handa@m17n.org>
25330
25331 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25332
253332008-02-01 Kenichi Handa <handa@m17n.org>
25334
25335 * xfaces.c (Vface_resizing_fonts): New variable.
25336 (struct font_name): New member `resizing_ratio'.
25337 (font_resizing_ratio): New function.
25338 (split_font_name): Set font->resizing_ratio.
25339 (better_font_p): Pay attention to font->resizing_ratio.
25340 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25341 RESX, and RESY fields.
25342 (try_alternative_families): Try scalable fonts if
25343 Vscalable_fonts_allowed is not Qt.
25344 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25345
253462008-02-01 Dave Love <fx@gnu.org>
25347
25348 * xterm.c (xaw_scroll_callback): Cast correctly.
25349
253502008-02-01 Dave Love <fx@gnu.org>
25351
25352 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25353 (lispy_kana_keys): Comment out.
25354 (make_lispy_event) [XK_kana_A]: Comment out.
25355
25356 * xterm.c (xaw_scroll_callback): Cast call_data.
25357 (XTread_socket): Deal with ASCII keysyms.
25358 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25359
253602008-02-01 Dave Love <fx@gnu.org>
25361
25362 * xterm.c (Vx_keysym_table): New.
25363 (syms_of_xterm): Initialize it.
25364 (XTread_socket): Use it.
25365 From head: Eliminate incorrect optimization that tried to avoid
25366 decoding the output of X*LookupString.
25367 (x_get_font_repertory): Delete charset declaration.
25368
253692008-02-01 Kenichi Handa <handa@m17n.org>
25370
25371 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25372 return 0.
bba3e508
SM
25373 (Fdefine_coding_system_internal):
25374 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
25375
253762008-02-01 Dave Love <fx@gnu.org>
25377
25378 * coding.c (Fcheck_coding_system): Doc fix.
25379
25380 * editfns.c (Finsert_byte): Return a proper value.
25381
253822008-02-01 Kenichi Handa <handa@m17n.org>
25383
bba3e508
SM
25384 * coding.c (decode_coding): Fix args to translate_chars.
25385 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
25386 (encode_coding): Fix args to translate_chars. Pay attention to
25387 Vstandard_translation_table_for_encode.
25388
25389 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25390 SINGLE_BYTE_CHAR_P.
25391
25392 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25393 not by SINGLE_BYTE_CHAR_P.
25394
25395 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25396 SINGLE_BYTE_CHAR_P.
25397
25398 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25399 SINGLE_BYTE_CHAR_P.
25400
25401 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25402 by SINGLE_BYTE_CHAR_P.
25403
25404 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25405 SINGLE_BYTE_CHAR_P.
25406
254072008-02-01 Dave Love <fx@gnu.org>
25408
25409 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25410
254112008-02-01 Dave Love <fx@gnu.org>
25412
25413 * fns.c (Flanginfo): Fix typo.
25414
25415 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25416
254172008-02-01 Kenichi Handa <handa@m17n.org>
25418
25419 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25420 (detect_coding_emacs_mule, detect_coding_iso_2022)
25421 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25422 incomplete byte sequence. Don't update *mask when correctly detected.
25423 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25424 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25425 (detect_coding, detect_coding_system): Adjust for the changes above.
25426
254272008-02-01 Kenichi Handa <handa@m17n.org>
25428
25429 * character.c (char_string): Rename from
25430 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25431 (string_char): Rename from string_char.
25432
25433 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25434 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
25435 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25436 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
25437
254382008-02-01 Dave Love <fx@gnu.org>
25439
25440 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25441
254422008-02-01 Kenichi Handa <handa@m17n.org>
25443
25444 * keymap.c (push_key_description): Pay attention to force_multibyte.
25445
25446 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25447
254482008-02-01 Dave Love <fx@gnu.org>
25449
25450 * charset.c (define_charset_internal): Rename `supprementary'.
25451
25452 * Makefile.in (lisp, shortlisp): Remove latin-N.
25453
254542008-02-01 Dave Love <fx@gnu.org>
25455
25456 * xfns.c (x_window, x_window): Use use_xim.
25457
25458 * xterm.c (use_xim): Initialize.
25459 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25460 (x_term_init): Maybe set use_xim.
25461
25462 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25463
254642008-02-01 Kenichi Handa <handa@m17n.org>
25465
25466 * search.c (search_buffer): Fix case-fold-search of multibyte
25467 characters.
25468 (boyer_moore): Rename the last argument to char_high_bits.
25469
254702008-02-01 Kenichi Handa <handa@m17n.org>
25471
25472 * xdisp.c (display_string): Fix for the case of zero width glyph.
25473
25474 * xfns.c (x_set_font): Change the error message of the case that
25475 x_new_fontset returns Qt.
25476
25477 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25478 (Finternal_set_lisp_face_attribute): Use signal_error for the
25479 error of invalid fontset.
25480
25481 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25482 fontset, return Qt.
25483
254842008-02-01 Dave Love <fx@gnu.org>
25485
25486 * unexelf.c (unexec): Make .got handling not SGI-specific.
25487
25488 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25489
25490 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25491
25492 * keyboard.c (read_key_sequence): Fix type error.
25493
bba3e508
SM
25494 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25495 Fix type error.
aac0c6e3
MR
25496
25497 * fontset.c (fontset_add): Return Lisp_Object.
25498
254992008-02-01 Dave Love <fx@gnu.org>
25500
25501 * charset.h (charset_ordered_list_tick): Declare extern.
25502
255032008-02-01 Kenichi Handa <handa@m17n.org>
25504
25505 The following changes (and some of 2008-02-01 changes of mine) are
25506 for handling syntax, category, and case conversion for unibyte
25507 characters by converting them to multibyte on the fly. With these
25508 changes, we don't have to setup syntax and case tables for unibyte
25509 characters in each language environment.
25510
25511 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25512 multibyte if necessary.
25513
25514 * bytecode.c (Fbyte_code): Likewise.
25515
25516 * character.h (LEADING_CODE_LATIN_1_MIN)
25517 (LEADING_CODE_LATIN_1_MAX): New macros.
25518 (unibyte_to_multibyte_table): Extern it.
25519 (unibyte_char_to_multibyte): New macro.
25520 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25521 (CHAR_LEADING_CODE): New macro.
25522 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25523
25524 * character.c (unibyte_to_multibyte_table): New variable.
25525 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25526 (multibyte_char_to_unibyte): If C is an eight-bit character,
25527 convert it to the corresponding byte value.
25528
25529 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25530 not 1, signals an error. Update the elements of
25531 unibyte_to_multibyte_table.
25532 (init_charset_once): Initialize unibyte_to_multibyte_table.
25533 (syms_of_charset): Define the charset `iso-8859-1'.
25534
25535 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25536 as is without converting it to unibyte. In a unibyte buffer,
25537 convert C to multibyte before checking the syntax.
25538
25539 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25540
25541 * minibuf.c (Fminibuffer_complete_word): Use the macro
25542 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25543
25544 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25545
25546 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
25547 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25548 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
25549 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25550 non-emacs case.
25551 (PATFETCH): Convert an eight-bit char to multibyte.
25552 (HANDLE_UNIBYTE_RANGE): New macro.
25553 (regex_compile): Setup the compiled pattern for multibyte chars
25554 even if the given regex string is unibyte. Use PATFETCH_RAW
25555 instead of PATFETCH in many places. To handle `charset'
25556 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25557 only for ASCII chars.
25558 (analyse_first) <exactn>: Simplify because the compiled pattern
25559 is multibyte.
25560 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25561 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25562 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25563 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25564 multibyte always 1.
25565 (re_search_2): In emacs, set the locale variable multibyte to 1,
25566 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
25567 to decide the multibyteness of STR1 and STR2.
25568 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
25569 before translating and checking fastmap.
25570 (TARGET_CHAR_AND_LENGTH): New macro.
25571 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
25572 to 1, otherwise to 0. New local variable target_multibyte.
25573 Check it to decide the multibyteness of STR1 and STR2.
25574 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
25575 <charset, charset_not>: If multibyte is nonzero, check fastmap
25576 only for ASCII chars. Call bcmp_translate with
25577 target_multibyte, not with multibyte.
25578 <begline>: Declare the local variable C as `unsigned'.
25579 (bcmp_translate): Change the last arg name to target_multibyte.
25580
25581 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25582 the regexp pattern and the matching target. Set cp->buf.multibyte
25583 to the multibyteness of the regexp pattern. Set
25584 cp->but.target_multibyte to the multibyteness of the matching target.
25585 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25586 FETCH_STRING_CHAR_ADVANCE.
25587 (Freplace_match): Convert unibyte chars to multibyte.
25588
25589 * syntax.c (char_quoted, back_comment, scan_words)
25590 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25591 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25592 unibyte chars to multibyte.
25593 (skip_chars): Delete the arg syntaxp, and move the code for
25594 handling syntaxes to skip_syntaxes. Change callers.
25595 Fix the case that the multibyteness of STRING and the current
25596 buffer doesn't match.
25597 (skip_syntaxes): New function.
25598 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25599 SINGLE_BYTE_CHAR_P.
25600
256012008-02-01 Kenichi Handa <handa@m17n.org>
25602
25603 * xfaces.c (QCfontset): New variable.
25604 (LFACE_FONTSET): New macro.
25605 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25606 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25607 (Finternal_set_lisp_face_attribute)
25608 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25609 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25610 check also LFACE_FONTSET_INDEX.
25611 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25612 attrs[LFACE_FONT_INDEX].
25613 (syms_of_xfaces): Intern and staticpro QCfontset.
25614
25615 * dispextern.h (enum lface_attribute_index): New member
25616 LFACE_FONTSET_INDEX.
25617
25618 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25619
256202008-02-01 Kenichi Handa <handa@m17n.org>
25621
25622 * coding.c (coding_set_destination): Fix coding->destination for
25623 the case converting a region.
25624 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25625 (encode_coding_object): Fix coding->dst_pos and
25626 coding->dst_pos_byte for the case converting a region.
25627
25628 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25629
25630 * character.h (BYTE8_STRING): New macro.
25631
25632 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25633
256342008-02-01 Kenichi Handa <handa@m17n.org>
25635
25636 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25637 characters by octal form.
25638
25639 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25640
25641 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25642 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25643 _fetch_multibyte_char_len.
25644 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25645
25646 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25647
25648 * casefiddle.c (casify_object): Simplify. Handle the case that
25649 the case conversion change the byte length.
25650 (casify_region): Likewise.
25651
25652 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25653
25654 * character.c (_fetch_multibyte_char_len): Delete this variable.
25655 (syms_of_character): Setup Vprintable_chars.
25656
25657 * editfns.c (Fchar_equal): Fix for the unibyte case.
25658 (Finsert_byte): New function.
25659 (syms_of_editfns): Defsubr it.
25660
25661 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25662 of direct code 0x3ffff.
25663
25664 * search.c (Freplace_match): Fix for the unibyte case.
25665
256662008-02-01 Kenichi Handa <handa@m17n.org>
25667
25668 * lread.c (safe_to_load_p): Fix the logic.
25669
25670 * syntax.c (scan_words): Don't treat characters belonging to
25671 different scripts as constituting a word.
25672
25673 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25674
25675 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25676
25677 * emacs.c (main): In the case of --unibyte, instead of aborting on
25678 finding non-empty buffer, make it unibyte.
25679
256802008-02-01 Kenichi Handa <handa@m17n.org>
25681
25682 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25683 to create a fontset.
25684
256852008-02-01 Dave Love <fx@gnu.org>
25686
25687 * character.c (Funibyte_char_to_multibyte): Doc fix.
25688
25689 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25690
256912008-02-01 Kenichi Handa <handa@m17n.org>
25692
25693 * fontset.c (fontset_add): Make the type `int'.
25694 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25695
25696 * character.c (unibyte_char_to_multibyte)
25697 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25698 charset_unibyte, not charset_primary.
25699
25700 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25701
25702 * charset.c (charset_unibyte): Rename from charset_primary.
25703 (Funibyte_charset): Rename from Fprimary_charset.
25704 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25705 (syms_of_charset): Adjust for the above changes.
25706
25707 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25708 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25709 it->multibyte_p is zero.
25710
25711 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25712 Delete extern.
25713
257142008-02-01 Kenichi Handa <handa@m17n.org>
25715
25716 * coding.c (Fdefine_coding_system_internal): Fix category setting
25717 for a coding system of type iso-2022.
25718
257192008-02-01 Kenichi Handa <handa@m17n.org>
25720
25721 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25722
257232008-02-01 Kenichi Handa <handa@m17n.org>
25724
25725 * syntax.c (Vnext_word_boundary_function_table): New variable.
25726 (next-word-boundary-function-table): Declare it as a Lisp variable
25727 in syms_of_syntax.
25728 (scan_words): Call functions in Vnext_word_boundary_function_table
25729 if any.
25730
25731 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25732
25733 * fontset.c (fs_load_font): If fontp->charset is not negative,
25734 return fontp without setting its members.
25735
257362008-02-01 Dave Love <fx@gnu.org>
25737
25738 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25739
25740 * m/sparc.h (HAVE_ALLOCA): Delete.
25741
25742 * s/irix6-5.h: Don't include strings.h.
25743 (bcopy, bzero, bcmp): Don't undef.
25744
25745 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25746
25747 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25748 (TIOCSIGSEND): Don't test IRIX6.
25749 (bcopy, bzero, bcmp): Define conditionally.
25750
257512008-02-01 Kenichi Handa <handa@m17n.org>
25752
25753 * buffer.c (Qas, Qmake, Qto): New variables.
25754 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25755 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25756
25757 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25758 we are inserting a process output into a multibyte buffer.
25759
25760 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25761 multibyte_char_to_unibyte.
25762
25763 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25764 by the primary charset, make it eight-bit char.
25765 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25766
25767 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25768 (charset_8_bit__control, charset_8_bit_graphic)
25769 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25770 (define_charset_internal): New function.
25771 (syms_of_charset): Call define_charset_internal for pre-defined
25772 charsets.
25773
25774 * charset.h (charset_8_bit): Extern it.
25775
25776 * coding.c (make_conversion_work_buffer): Adjust for the change
25777 of Fset_buffer_multibyte.
25778 (encode_coding_raw_text): Increment p0 in the loop.
25779
25780 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25781
bba3e508
SM
25782 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25783 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
25784
25785 * fns.c (Fstring_to_multibyte): New function.
25786 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25787
257882008-02-01 Dave Love <fx@gnu.org>
25789
25790 * xfns.c (x_put_x_image): Declare args.
25791
25792 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25793 (try_font_list): Declare an arg.
25794
25795 * xdisp.c (message2_nolog, set_message): Declare an arg.
25796
25797 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25798
25799 * syntax.c (scan_sexps_forward): Declare an arg.
25800
25801 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25802 Declare an arg.
25803
25804 * lisp.h (Fnew_fontset): Declare.
25805
25806 * keymap.c (push_key_description): Call CHARACTERP correctly.
25807
25808 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25809 (face_for_char): Delete unused vars.
25810 (Fset_fontset_font): Doc fix. Delete unused vars.
25811
25812 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25813
25814 * composite.c (update_compositions): Declare arg.
25815
25816 * cm.c (calccost, cmgoto): Declare args.
25817
25818 * charset.c: Remove `emacs' conditional. Doc fixes.
25819 (map_char_table_for_charset): Declare.
25820
25821 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25822
25823 * ccl.c: Remove `emacs' conditional.
25824
258252008-02-01 Kenichi Handa <handa@m17n.org>
25826
25827 The following changes are to allow specifying multiple font
25828 patterns for a character range (specified by script or charset).
25829
25830 * Makefile.in (abbrev.o): Depend on syntax.h.
25831 (xfaces.o): Depend on charset.h.
25832
25833 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25834 SINGLE_BYTE_CHAR_P.
25835
25836 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25837
25838 * character.h (Vchar_script_table): Extern it.
25839
25840 * character.c (Vscript_alist): Delete.
25841 (Vchar_script_table, Qchar_script_table): New variable.
25842 (syms_of_character): Declare Vchar_script_table as a lisp variable
25843 and initialize it.
25844
25845 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25846 have property char-table-extra-slots, make no extra slot.
25847
25848 * dispextern.h (struct face): Delete member `charset'.
25849 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25850 SINGLE_BYTE_CHAR_P.
25851 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25852 Add prototypes.
25853 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25854 (generate_ascii_font_name): Rename from generate_ascii_font.
25855
25856 * fontset.h (get_font_repertory_func): New prototype.
25857 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25858 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25859
25860 * fontset.c (Qprepend, Qappend): New variables.
25861 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25862 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25863 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25864 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25865 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25866 (load_font_get_repertory): New functions.
25867 (fontset_set): Delete.
25868 (fontset_face): New arg FACE. Return face ID, not face.
25869 Complete re-write to handle new fontset structure. Change caller.
25870 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25871 (face_for_char): Don't call lookup_face.
25872 (make_fontset_for_ascii_face): New arg FACE.
25873 (fs_load_font): New arg CHARSET_ID. Don't check
25874 Vfont_encoding_alist here.
25875 (find_font_encoding): New function.
25876 (list_fontsets): Use STRINGP, not ! NILP.
25877 (accumulate_script_ranges): New function.
bba3e508
SM
25878 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25879 Completely re-written to handle new fontset structure.
aac0c6e3 25880 (Ffontset_font): Return a copy of element.
bba3e508
SM
25881 (syms_of_fontset): Define symbols Qprepend and Qappend.
25882 Fix docstring of font-encoding-alist.
aac0c6e3
MR
25883
25884 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25885 (Fset_fotset_font): Fix arguments to 5.
25886
25887 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25888
25889 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25890 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25891 (highlight_trailing_whitespace): Adjust for the change of
25892 lookup_named_face.
25893
25894 * xfaces.c: Include charset.h.
25895 (load_face_font): Delete argument C. Change caller.
25896 (generate_ascii_font_name): Rename from generate_ascii_font.
25897 (font_name_registry): New function.
25898 (cache_face): Store ascii faces before non-ascii faces in buckets.
25899 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25900 Lookup only ascii faces.
25901 (lookup_non_ascii_face): New function.
25902 (lookup_named_face): Delete argument C. Change caller.
25903 (lookup_derived_face): Delete argument C. Change caller.
25904 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25905 a string, just call font_list with it.
25906 (choose_face_font): Delete arguments FACE and C. New arg
25907 FONT_SPEC. Change caller.
25908 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25909 Change caller.
25910 (realize_non_ascii_face): New function.
25911 (realize_x_face): Call load_face_font here.
25912 (realize_tty_face): Delete argument C. Change caller.
25913 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25914 get a face ID.
25915 (dump_realized_face): Don't print charset of FACE.
25916
25917 * xfns.c (x_set_font): Always call x_new_fontset and
25918 store_frame_parameter.
25919 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25920 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25921
25922 * xterm.h (x_get_font_repertory): Extern it.
25923
25924 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25925 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25926 it->multibyte_p is zero.
25927 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25928 (x_new_fontset): If FONTSETNAME doesn't match any existing
25929 fontsets, create a new one.
25930 (x_get_font_repertory): New function.
25931
259322008-02-01 Kenichi Handa <handa@m17n.org>
25933
25934 * coding.c (Ffind_coding_systems_region_internal): Detect an
25935 ASCII only string correctly.
25936
25937 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25938 version is 0.
25939
259402008-02-01 Kenichi Handa <handa@m17n.org>
25941
25942 * lread.c: Include "coding.h".
25943 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25944 (load_each_byte, unread_char): New variables.
25945 (readchar_backlog): Delete.
25946 (readchar): Return a character unless load_each_byte is nonzero.
25947 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25948 cons. If unread_char is not -1, simply return it.
25949 (unreadchar): Handle the case that readcharfun is
25950 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25951 (read_multibyte): Delete.
25952 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25953 (read_emacs_mule_char): New functions.
25954 (Fload): Even if the file doesn't have the extension ".elc", if
25955 safe_to_load_p returns a positive version number, assume that the
25956 file contains bytecompiled code. If the version is less than 22,
25957 load the file while decoding multibyte sequences by emacs-mule.
25958 (readevalloop): Don't use readchar_backlog.
25959 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25960 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25961 (read_escape): Delete the arg BYTEREP.
25962 (read1): Set load_each_byte to 1 temporarily while handling
25963 #@NUMBER. Don't call read_multibyte.
25964 (read_vector): Call Fread with a cons. If readcharfun is
25965 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25966 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25967 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25968 and Qload_force_doc_strings.
25969
259702008-02-01 Kenichi Handa <handa@m17n.org>
25971
bba3e508
SM
25972 * xdisp.c (face_before_or_after_it_pos):
25973 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
25974
259752008-02-01 Kenichi Handa <handa@m17n.org>
25976
25977 * character.h (TRAILING_CODE_P): New macro.
25978 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25979 (string_char_with_unification): Fix prototype.
25980 (Vscript_alist): Extern it.
25981
25982 * character.c (Vscript_alist): New variable.
25983 (string_char_with_unification, str_as_unibyte)
25984 (string_escape_byte8): Add `const' to local variables.
25985 (syms_of_character): Declare script-alist as a Lisp variable.
25986
25987 * charset.h (Vcharset_ordered_list): Extern it.
25988 (charset_ordered_list_tick): Extern it.
25989 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25990 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25991 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25992 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25993 (Funify_charset): Adjust for the change of Funify_charset.
25994
25995 * charset.c (charset_ordered_list_tick): New variable.
25996 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25997 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 25998 deunify instead of unify a charset.
aac0c6e3
MR
25999 (string_xstring_p): Add `const' to local variables.
26000 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
26001 (encode_char): Adjust for the change of Funify_charset.
26002 Fix detecting of invalid code.
aac0c6e3
MR
26003 (Fset_charset_priority): Increment charset_ordered_list_tick.
26004 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
26005 and TO_CODE.
26006
26007 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
26008 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
26009 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
26010 (decode_coding_ccl, consume_chars)
26011 (Ffind_coding_systems_region_internal)
26012 (Fcheck_coding_systems_region): Add `const' to local variables.
26013
26014 * print.c (print_object): Use octal form for printing the
26015 contents of a bool vector.
26016
260172008-02-01 Dave Love <fx@gnu.org>
26018
26019 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
26020 <version == 20>: Refuse to load.
26021
260222008-02-01 Dave Love <fx@gnu.org>
26023
26024 * fns.c: Move coding.h.
26025 (Qcodeset, Qdays, Qmonths): New.
26026 (concat): Use CHARACTERP instead of INTEGERP.
26027 (Flocale_codeset): Delete.
26028 (Flanginfo): New function.
26029 (syms_of_fns): Change accordingly.
26030
26031 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
26032
260332008-02-01 Dave Love <fx@gnu.org>
26034
bba3e508
SM
26035 * casetab.c (init_casetab_once, init_casetab_once):
26036 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
26037
26038 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
26039
26040 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
26041
26042 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
26043 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
26044 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
26045
26046 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
26047
26048 * coding.c (ENCODE_DESIGNATION, decode_eol)
26049 (make_conversion_work_buffer, code_conversion_restore)
26050 (Fdefine_coding_system_internal): Convert Lisp types.
26051 (code_conversion_restore): Use EQ, not ==.
26052 (Fencode_coding_string): Fix code_convert_string call.
26053
26054 * coding.h (code_convert_region): Fix prototype.
26055
26056 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
26057
26058 * fontset.c (fontset_ref, fontset_set, fs_load_font)
26059 (Ffontset_info): Convert Lisp types.
26060
26061 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
26062
26063 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
26064
26065 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26066
26067 * chartab.c: Include "...h", not <...h> in some cases.
26068
26069 * callproc.c (Fcall_process): Remove unused variables.
26070
260712008-02-01 Dave Love <fx@gnu.org>
26072
26073 * coding.c (Fset_coding_system_priority): Allow null arg list.
26074
260752008-02-01 Dave Love <fx@gnu.org>
26076
26077 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26078 (Fself_insert_and_exit): Use CHARACTERP.
26079
26080 * callproc.c (Fcall_process): Remove unused vars.
26081
26082 * xterm.c (XTread_socket): Add extra dead keysyms.
26083
26084 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26085
26086 * dispextern.h: Remove prototypes for redraw_frame,
26087 redraw_garbaged_frames.
26088
26089 * cmds.c (Fself_insert_command): Use CHARACTERP.
26090
26091 * chartab.c (make_sub_char_table): Remove unused var.
26092 (Fset_char_table_default, Fmap_char_table): Doc fix.
26093
26094 * keymap.c (access_keymap): Remove generic char code.
26095 (push_key_description): Use CHARACTERP.
26096
260972008-02-01 Dave Love <fx@gnu.org>
26098
26099 * charset.c: Doc fixes.
26100 (Funify_charset): Extra checking.
26101
261022008-02-01 Dave Love <fx@gnu.org>
26103
26104 * lread.c: Remove some unused variables.
26105 (safe_to_load_p): If safe, return the magic number version byte.
26106 (Fload): Maybe use load-with-code-conversion.
26107
261082008-02-01 Kenichi Handa <handa@m17n.org>
26109
26110 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
26111 of category_set for characters out of the range.
26112 Avoid unnecessary modification.
aac0c6e3
MR
26113
26114 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26115 Vchar_unify_table. The default value of the table is now nil.
26116
26117 * character.c (syms_of_character): Setup Vchar_width_table for
26118 eight-bit-control and raw-byte chars.
26119
bba3e508
SM
26120 * charset.h (enum define_charset_arg_index):
26121 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
26122 charset_arg_superset.
26123 (enum charset_attr_index): Delete charset_parents and add
26124 charset_subset and charset_superset.
26125 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26126 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26127 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26128 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26129 (CHARSET_SUPERSET): New macros.
26130 (charset_work): Extern it.
26131 (ENCODE_CHAR): Use charset_work.
26132 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26133 (map_charset_chars): Extern it.
26134
26135 * charset.c (load_charset_map): Set the default value of encoder
26136 and deunifier char-tables to nil.
bba3e508
SM
26137 (map_charset_chars): Change argument. Change callers.
26138 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
26139 (Fmap_charset_chars): New optional args from_code and to_code.
26140 (Fdefine_charset_internal): Adjust for the change of
26141 `define-charset' (:parents -> :subset or :superset).
26142 (charset_work): New variable.
26143 (encode_char, syms_of_charset): Adjust for the change of
26144 Fdefine_charset_internal.
26145 (Ffind_charset_string): Setup the vector `charsets' correctly.
26146
bba3e508
SM
26147 * chartab.c (sub_char_table_ref_and_range): New arg default.
26148 Fix the previous change.
aac0c6e3
MR
26149 (char_table_ref_and_range): Adjust for the above change.
26150 (map_sub_char_table_for_charset): New function.
26151 (map_char_table_for_charset): New function.
26152
26153 * keymap.c (describe_vector): Handle a char-table directly here.
26154 (describe_char_table): Delete.
26155
26156 * lisp.h (map_charset_chars): Delete.
26157
261582008-02-01 Dave Love <fx@gnu.org>
26159
26160 * fns.c (count_combining): Comment out (unused).
26161 (Flocale_codeset): New.
26162 (syms_of_fns): Defsubr it.
26163
26164 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26165 (size_t): Remove.
26166
261672008-02-01 Dave Love <fx@gnu.org>
26168
26169 * Makefile.in (chartab.o): Depend on charset.h.
26170
261712008-02-01 Kenichi Handa <handa@m17n.org>
26172
26173 * character.c (syms_of_character): Set the default value of
26174 Vprintable_chars to Qnil.
26175
261762008-02-01 Dave Love <fx@gnu.org>
26177
26178 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26179
261802008-02-01 Kenichi Handa <handa@m17n.org>
26181
26182 * charset.c (load_charset_map): Handle the case that from < to
26183 correctly.
26184
26185 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26186 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26187 Pay attention to raw-8-bit chars.
26188
261892008-02-01 Kenichi Handa <handa@m17n.org>
26190
26191 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26192 It is not bytecompiled now.
26193
26194 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26195 (charset_jisx0208): New variables.
26196 (Fdefine_charset_internal): Setup them if appropriate.
26197 (init_charset_once): Initialize them to -1.
26198
26199 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26200 (charset_jisx0208): Extern them.
26201
26202 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26203 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26204 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26205 (setup_iso_safe_charsets): Fix arguments to Fassq.
26206 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26207 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26208 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26209 (encode_coding_iso_2022): Change the 1st arg to
26210 ENCODE_ISO_CHARACTER to a variable.
26211
262122008-02-01 Kenichi Handa <handa@m17n.org>
26213
26214 * charset.h (enum define_charset_arg_index): New enums
26215 charset_arg_min_code and charset_arg_max_code.
26216 (struct charset): New member char_index_offset.
26217
26218 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26219 Take charset->char_index_offset into account.
26220 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26221 args[charset_arg_max_code]. Setup charset.char_index_offset.
26222 (syms_of_charset): Fix args to Fdefine_charset_internal.
26223
262242008-02-01 Dave Love <fx@gnu.org>
26225
26226 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26227
262282008-02-01 Dave Love <fx@gnu.org>
26229
26230 * coding.c: Doc fixes.
26231 (Fcoding_system_aliases): Fix return value.
26232 (Qmac): Remove (duplicated) definition.
26233
262342008-02-01 Dave Love <fx@gnu.org>
26235
362654a6
JB
26236 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26237 New functions.
aac0c6e3
MR
26238
26239 * character.c (Fstring): Doc fix.
26240
26241 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26242
362654a6 26243 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
26244 (font-encoding-alist): Doc fix.
26245
262462008-02-01 Dave Love <fx@gnu.org>
26247
26248 * term.c (costs_set): Declare static, non-initialized for pcc.
26249 (encode_terminal_code): Remove unused var.
26250
26251 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26252 for K&R.
26253
26254 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26255
26256 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26257 (suffixes): Move out of make_subsidiaries for K&R.
26258
26259 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26260
26261 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26262
262632008-02-01 Dave Love <fx@gnu.org>
26264
26265 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26266
26267 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26268
262692008-02-01 Yong Lu <lyongu@asia-infonet.com>
26270
26271 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26272
26273 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26274
262752008-02-01 Kenichi Handa <handa@m17n.org>
26276
26277 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26278 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26279
262802008-02-01 Kenichi Handa <handa@m17n.org>
26281
26282 * coding.c (decode_coding_charset): Adjust for the change of
26283 Fdefine_coding_system_internal.
26284 (Fdefine_coding_system_internal): For a coding system of
26285 `charset' type, store a list of charset IDs in
26286 `charset_attr_charset_valids' element of coding attributes.
26287
262882008-02-01 Kenichi Handa <handa@m17n.org>
26289
26290 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
26291 (emacs_mule_char): New arg src. Delete arg `composition'.
26292 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
26293 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26294 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26295 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
26296 (DECODE_EMACS_MULE_21_COMPOSITION):
26297 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
26298 sequence.
26299 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26300 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26301 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26302 and alt&rule composition.
26303 (decode_coding_iso_2022): Handle composition correctly.
26304 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26305
26306 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26307 re-defining a charset. If the charset has :emacs-mule-id, setup
26308 emacs_mule_bytes.
26309 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26310
263112008-02-01 Kenichi Handa <handa@m17n.org>
26312
26313 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26314 (encode_coding_big5, encode_coding_charset): If coding requires safe
26315 encoding, produce a character specified by
26316 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26317
263182008-02-01 Dave Love <fx@gnu.org>
26319
26320 * xterm.c (XSetIMValues): Declare.
26321
26322 * process.c: Conditionally include sys/wait.h, pty.h.
26323
26324 * print.c (print_object): Fix print format for 64-bit systems.
26325
26326 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26327
26328 * buffer.c (emacs_strerror): Declare.
26329
26330 * fontset.c (Fclear_face_cache): Declare.
26331 (accumulate_font_info): Comment-out (unused).
26332 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26333 variables.
26334
26335 * character.h (string_escape_byte8): Declare.
26336
bba3e508
SM
26337 * charset.c (load_charset_map, load_charset_map_from_file):
26338 Remove unused vars.
aac0c6e3
MR
26339 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26340 (Fmap_charset_chars): Doc fix.
26341
26342 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26343 (Fset_coding_system_priority, Fset_coding_system_priority)
26344 (Fdefine_coding_system_internal): Doc fix.
26345
263462008-02-01 Dave Love <fx@gnu.org>
26347
26348 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26349
263502008-02-01 Kenichi Handa <handa@m17n.org>
26351
26352 * character.c (string_escape_byte8): Make multibyte string with
26353 correct size.
26354
26355 * charset.c (Fmake_char): Delete unnecessary code.
26356
263572008-02-01 Kenichi Handa <handa@m17n.org>
26358
26359 * xfns.c (x_encode_text): Allocate coding.destination here, and
26360 call encode_coding_object with dst_object Qnil.
26361
26362 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26363 multibyte form correctly.
26364
26365 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26366 against Vfont_encoding_alist.
26367
26368 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26369 handling of charset list.
26370 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26371 (decode_coding_object): Move point to coding->dst_pos before
26372 calling post-read-conversion function.
26373 (encode_coding_object): Give correct arguments to
26374 pre-write-conversion. Ignore the return value of
26375 pre-write-conversion function. Pay attention to the case that
26376 pre-write-conversion changes the current buffer. If dst_object is
26377 Qt, even if coding->src_bytes is zero, allocate at least one byte
26378 to coding->destination.
26379
26380 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26381
26382 * charset.c (Fmake_char): Make it more backward compatible.
26383 (Fmap_charset_chars): Fix docstring.
26384
263852008-02-01 Dave Love <fx@gnu.org>
26386
26387 * coding.c: Doc fixes.
26388 (Fdefine_coding_system_alias): Use names, not symbols, in
26389 coding-system-alist.
26390
263912008-02-01 Kenichi Handa <handa@m17n.org>
26392
26393 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26394 of calling free_realized_face.
26395
263962008-02-01 Yong Lu <lyongu@asia-infonet.com>
26397
26398 * charset.c (read_hex): Don't treat SPC as a comment starter.
26399 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26400 (Fdecode_char): Fix typo.
26401
264022008-02-01 Kenichi Handa <handa@m17n.org>
26403
26404 * charset.h (struct charset): New member `code_space_mask'.
26405
26406 * coding.c (coding_set_source): Delete the local variable beg_byte.
26407 (encode_coding_charset, Fdefine_coding_system_internal):
26408 Delete the local variable charset.
bba3e508
SM
26409 (Fdefine_coding_system_internal):
26410 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
26411
26412 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26413 member to check if CODE is valid or not.
26414 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26415 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26416 is within the range of charset->min_code and carset->max_code.
26417
264182008-02-01 Dave Love <fx@gnu.org>
26419
26420 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26421
26422 * dispextern.h (generate_ascii_font): Fix return type.
26423
26424 * xfaces.c (generate_ascii_font): Fix arg declaration.
26425
26426 * coding.c (coding_inherit_eol_type)
26427 (Fset_terminal_coding_system_internal)
26428 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26429
264302008-02-01 Kenichi Handa <handa@m17n.org>
26431
bba3e508
SM
26432 * coding.c (decode_coding_charset, encode_coding_charset):
26433 Handle multiple charsets correctly.
aac0c6e3
MR
26434
264352008-02-01 Kenichi Handa <handa@m17n.org>
26436
26437 * search.c (boyer_moore): Fix handling of multibyte character
26438 translation.
26439
26440 * xdisp.c (display_mode_element): When the variable `elt' is
26441 changed, update `this' and `lisp_string'.
26442
264432008-02-01 Kenichi Handa <handa@m17n.org>
26444
26445 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26446
26447 * callproc.c (Fcall_process): Be sure to give the current buffer
26448 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26449
26450 * charset.c (struct charset_map_entries): New struct.
26451 (load_charset_map): Rename from parse_charset_map. New args
26452 entries and n_entries. Change caller.
26453 (load_charset_map_from_file): Rename from load_charset_map.
26454 Change caller. New arg control_flag. Call load_charset_map at
26455 the tail.
26456 (load_charset_map_from_vector): New function.
26457 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26458 (encode_char): If the charset is compact, change a character index
26459 to a code point.
26460
26461 * coding.c (coding_alloc_by_making_gap): Check the case that the
26462 source and destination are the same correctly.
26463 (decode_coding_raw_text): Set coding->consumed_char and
26464 coding->consumed to 0.
26465 (produce_chars): If coding->chars_at_source is nonzero, update
26466 coding->consumed_char and coding->consumed before calling
26467 alloc_destination.
26468 (Fdefine_coding_system_alias): Register ALIAS in
26469 Vcoding_system_alist.
26470 (syms_of_coding): Define `no-conversion' coding system at the tail.
26471
26472 * fileio.c (Finsert_file_contents): Set coding_system instead of
26473 val. If the current buffer is multibyte, always call
26474 decode_coding_gap.
26475
26476 * xfaces.c (try_font_list): Give higher priority to fontset's
26477 family than face's family.
26478
264792008-02-01 Kenichi Handa <handa@m17n.org>
26480
26481 * callproc.c (Fcall_process): Be sure to give the current buffer
26482 to decode_coding_c_string.
26483
26484 * xfaces.c (try_font_list): Give a family specified in a fontset
26485 higher priority than a family specified in a face.
26486
264872008-02-01 Kenichi Handa <handa@m17n.org>
26488
26489 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26490 Fix arguments to insert_from_buffer.
26491
26492 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26493
264942008-02-01 Kenichi Handa <handa@m17n.org>
26495
26496 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26497 (decode_coding_gap): Set coding->dst_multibyte correctly.
26498
264992008-02-01 Kenichi Handa <handa@m17n.org>
26500
26501 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26502 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26503 (encode_coding_utf_16): Substitute coding->default_char for
26504 non-Unicode characters.
26505 (decode_coding): Don't call record_insert here.
26506 (setup_coding_system): Initialize `surrogate' of
26507 coding->spec.utf_16 to 0.
26508 (EMIT_ONE_BYTE): Fix for multibyte case.
26509
26510 * insdel.c (insert_from_gap): Call record_insert.
26511
265122008-02-01 Kenichi Handa <handa@m17n.org>
26513
26514 * casefiddle.c (casify_region): Fix multibyte case.
26515
26516 * character.c (c_string_width): Add return type `int'.
26517 (char_string_with_unification): Delete arg ADVANCED.
26518
26519 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26520 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26521 (CHAR_STRING_ADVANCE): Make it do-while statement.
26522
26523 * chartab.c (sub_char_table_set_range): Optimize for the case
26524 DEPTH == 3. Add workaround code for a GCC optimization bug.
26525
26526 * charset.c (parse_charset_map): Remove an unused variable.
26527
26528 * coding.c: Delete unused variables.
26529
26530 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26531 earlier. If inserted is zero and the coding system doesn't
26532 require flushing, don't call decode_coding_gap.
26533
26534 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26535
265362008-02-01 Kenichi Handa <handa@m17n.org>
26537
26538 The following changes are for using Unicode as an internal
26539 character model, and use UTF-8 format for buffer/string
26540 representation.
26541
26542 * .gdbinit (xchartable): Adjust for the change of char table structure.
26543 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26544
26545 * Makefile.in (obj): Add character.o and chartab.o.
26546 (lisp, shortlisp): Remove utf-8.elc.
26547 (*.o): For many files, change dependency on charset.h to
26548 character.h, and add dependency on character.h.
26549 (character.o, chartab.o): New targets.
26550
26551 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26552 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26553 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26554 of "charset.h".
26555
26556 * dired.c, filelock.c: Include "character.h".
26557
26558 * alloc.c: Include "character.h" instead of "charset.h".
26559 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26560 (syms_of_alloc): Remove defsubr for Smake_char_table.
26561
26562 * buffer.c: Include "character.h" instead of "charset.h", don't
26563 include "coding.h".
26564 (Fset_buffer_multibyte): Adjust for UTF-8.
26565
26566 * buffer.h: EXFUN Fbuffer_live_p.
26567
26568 * callproc.c: Include "character.h" instead of "charset.h".
26569 (Fcall_process): Big change for the new code-conversion APIs.
26570
26571 * casetab.c: Include "character.h" instead of "charset.h".
26572 (set_canon, set_identity, shuffle): Adjust for the new
26573 map_char_table spec.
26574 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26575 accessing the char table structure.
26576
26577 * chartab.c: New file that implements char table.
26578
26579 * category.c: Include "character.h".
26580 (copy_category_entry): New function.
26581 (copy_category_table): Call map_char_table and copy_category_entry.
26582 (Fmake_category_table): Initialize all top-level slots.
26583 (char_category_set): New function.
26584 (modify_lower_category_set): Delete.
26585 (Fmodify_category_entry): Call char_table_ref_and_range.
26586
26587 * category.h (CATEGORY_SET): Just call char_category_set.
26588
26589 * ccl.c: Include "character.h".
26590 (Qccl, Qcclp): New variables.
26591 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26592 it's less than 256.
26593 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26594 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26595 and DST type.
26596 (ccl_driver): Change types of argument, adjust code accordingly.
26597 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26598 ccl_driver.
26599 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26600
26601 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26602 New members src_multibyte, dst_multibyte, consumed, and produced.
26603 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26604 (CODING_SPEC_CCL_PROGRAM): New macro.
26605 (ccl_driver): Update prototype.
26606 (Qccl, Qcclp, Fccl_program_p): Extern them.
26607 (CHECK_CCL_PROGRAM): New macro.
26608
26609 * character.c, character.h, chartab.c: New files.
26610
26611 * charset.c: Mostly re-written. Move character and multibyte sequence
26612 handling codes to character.c.
26613
26614 * charset.h: Mostly re-written. Move character and multibyte sequence
26615 handling codes to character.h.
26616
26617 * coding.c, coding.h: Mostly re-written.
26618
26619 * composite.c: Include "character.h" instead of "charset.h".
26620 (CHAR_WIDTH): Move to character.h.
26621 (HASH_KEY, HASH_VALUE): Delete.
26622
26623 * composite.h (enum composition_method): Change order of enumeration
26624 symbols.
26625
26626 * data.c: Include "character.h" instead of "charset.h".
26627 (Faref): Call CHAR_TABLE_REF for a char table.
26628 (Faset): Call CHAR_TABLE_SET for a char table.
26629
26630 * dispextern.h (free_realized_face, check_face_attribytes)
26631 (generate_ascii_font): Extern them.
26632 (free_realized_multibyte_face): Delete extern.
26633
26634 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26635 table structure.
26636
26637 * editfns.c: Include "character.h" instead of "charset.h".
26638 (Fchar_to_string): Always call CHAR_STRING.
26639
26640 * emacs.c (main): Call init_charset_once, init_charset,
26641 syms_of_chartab, and syms_of_character.
26642
26643 * fileio.c: Include "character.h" instead of "charset.h".
26644 (Finsert_file_contents): Big change for the new code-conversion API.
26645 (choose_write_coding_system, Fwrite_region): Likewise.
26646 (build_annotations_2): Delete.
26647 (e_write): Big change for the new code-conversion API.
26648
26649 * fns.c: Include "character.h" instead of "charset.h".
26650 (copy_sub_char_table): Move to chartab.c.
26651 (Fcopy_sequence): Call copy_char_table for a char table.
26652 (concat): Delete codes calling count_multibyte.
26653 (string_char_to_byte, string_byte_to_char): Adjust for the new
26654 multibyte form.
26655 (internal_equal): Adjust for the change of char table structure.
26656 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26657 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26658 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26659 (char_table_translate, optimize_sub_char_table)
26660 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26661 chartab.c.
26662 (char_table_ref_and_index): Delete.
26663 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26664 (Fmd5): Call preferred_coding_system instead of accessing
26665 Vcoding_category_list. Adjust for the new code-conversion API.
26666 (syms_of_fns): Move defsubr for char table related functions to
26667 chartab.c.
26668
26669 * fontset.c: Mostly re-written.
26670
26671 * fontset.h (struct font_info): Change type of the member encoding_type.
26672 (enum FONT_SPEC_INDEX): New enum.
26673 (fontset_font_pattern, fs_load_font): Update prototype.
26674 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26675
26676 * indent.c: Include "character.h" instead of "charset.h".
26677 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26678
26679 * insdel.c: Include "character.h" instead of "charset.h".
26680 (copy_text): Don't refer to Vnonascii_translation_table.
26681 (insert_from_gap): New function.
26682
26683 * keyboard.c: Include "character.h" instead of "charset.h".
26684 (command_loop_1): Never call direct_output_forward_char before
26685 a non-ASCII character.
26686 (read_char): If Vkeyboard_translate_table is a char table, always
26687 translate a character.
26688
26689 * keymap.c: Include "character.h".
26690 (store_in_keymap): Handle the case that IDX is a cons.
26691 (Fdefine_key): Handle the case that KEY is a cons and the car part
26692 is also a cons (range).
26693 (push_key_description): Adjust for the new character code.
26694 (describe_vector): Call describe_char_table for a char table.
26695 (describe_char_table): New function.
26696
26697 * keymap.h (describe_char_table): Extern it.
26698
26699 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26700 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26701 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26702 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26703 Delete.
26704 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26705 structure.
26706 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26707 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26708 (CHARTAB_SIZE_BITS_3): New macros.
26709 (chartab_size): Extern it.
26710 (struct Lisp_Char_Table): Re-design.
26711 (struct Lisp_Sub_Char_Table): New structure.
26712 (HASH_KEY, HASH_VALUE): Move from fns.c.
26713 (CHARACTERBITS): Define as 22.
26714 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26715 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26716 (GC_SUB_CHAR_TABLE_P): New macro.
26717 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 26718 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
26719 (init_character_once, syms_of_character, init_charset)
26720 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26721
26722 * lread.c: Include "character.h".
26723 (read_multibyte): New arg NBYTES.
26724 (read_escape): Change the meaning of returned *BYTEREP.
26725 (to_multibyte): Delete.
26726 (read1): Adjust the handling of char table and string.
26727
26728 * print.c: Include "character.h" instead of "charset.h".
26729 (print_string): Convert 8-bit raw bytes to octal form by
26730 string_escape_byte8.
26731 (print_object): Adjust for the new multibyte form. Print 8-bit
26732 raw bytes always in octal form. Handle sub char table correctly.
26733
26734 * process.c: Include "character.h" instead of "charset.h".
26735 (read_process_output, send_process): Adjust for the new
26736 code-conversion API.
26737
26738 * puresize.h (BASE_PURESIZE): Increase.
26739
26740 * regex.c: Include "character.h" instead of "charset.h".
26741 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26742 (regex_compile): Accept a range whose starting and ending
26743 character have different leading bytes.
26744 (analyse_first): Adjust for the above change.
26745
26746 * search.c: Include "character.h" instead of "charset.h".
26747 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26748 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26749
26750 * syntax.c: Include "character.h" instead of "charset.h".
26751 (syntax_parent_lookup): Delete.
26752 (Fmodify_syntax_entry): Accept a cons as CHAR.
26753 (skip_chars): Adjust for the new multibyte form.
26754 (init_syntax_once): Call char_table_set_range instead of directly
26755 accessing the structure of a char table.
26756
26757 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26758 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26759 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26760 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26761
26762 * term.c: Include "buffer.h" and "character.h".
26763 (encode_terminal_code, write_glyphs): Adjust for the new
26764 code-conversion API.
26765 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26766
26767 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26768
26769 * xdisp.c: Include "character.h".
26770 (get_next_display_element): Adjust for the new multibyte form.
26771 (disp_char_vector): Adjust for the new char table structure.
26772 (decode_mode_spec_coding): Adjust for the new structure of
26773 coding system.
26774 (decode_mode_spec): Adjust for the new code-conversion API.
26775
26776 * xfaces.c: Include "character.h" instead of "charset.h".
26777 (load_face_font): Adjust for the change of choose_face_font and
26778 FS_LOAD_FONT.
26779 (generate_ascii_font): New function.
26780 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26781 (set_font_frame_param): Adjust for the change of choose_face_font.
26782 (free_realized_face): Make it public.
26783 (free_realized_faces_for_fontset): Rename from
26784 free_realized_multibyte_face. Free also faces realized for ASCII.
26785 (choose_face_font): Change arguments. Adjust for the change of
26786 fontset_font_pattern and FS_LOAD_FONT.
26787
26788 * xfns.c: Include "character.h".
26789 (x_encode_text): Adjust for the new code-conversion API.
26790
26791 * xselect.c: Don't include "charset.h".
26792 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26793
26794 * xterm.c: Include "character.h".
26795 (x_encode_char): New argument CHARSET. Change caller.
26796 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26797 Call ENCODE_CHAR instead of SPLIT_CHAR.
26798 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26799 CHAR_WIDTH instead of CHARSET_WIDTH.
26800 (XTread_socket): Adjust for the new code-conversion API.
26801 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26802 (x_load_font): Adjust for the change of struct font.
26803
268042008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26805
26806 * xfaces.c (face_at_buffer_position): Remove unused vars.
26807
268082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26809
26810 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26811 Fix overflow checking.
26812
268132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26814
26815 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26816 Cancel previous change.
26817
268182008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26819
26820 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26821 ccl->eight_bit_control. Fix check for buffer overflow.
26822 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26823 (ccl_driver): Initialize extra_bytes to 0.
26824
268252008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26826
26827 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26828 return it ORed with ctrl_modifier.
26829
268302008-01-29 Miles Bader <miles@gnu.org>
26831
26832 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26833
268342008-01-28 Jason Rumney <jasonr@gnu.org>
26835
26836 * w32.c (stat): Don't double check for networked drive.
26837
268382008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26839
26840 * window.c (run_window_configuration_change_hook): New function.
26841 Code extracted from set_window_buffer. Set the selected frame.
26842 (set_window_buffer): Use it.
26843 * window.h (run_window_configuration_change_hook): Declare.
26844 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26845
26846 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26847
268482008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26849
26850 * Makefile.in: Remove references to unused macros.
26851
268522008-01-26 Eli Zaretskii <eliz@gnu.org>
26853
26854 * w32.c (g_b_init_get_sid_sub_authority)
26855 (g_b_init_get_sid_sub_authority_count): New static variables.
26856 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26857 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26858 (init_user_info): Use them to retrieve uid and gid.
26859 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26860 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26861 st_uid and st_gid of the file.
26862
268632008-01-26 Jason Rumney <jasonr@gnu.org>
26864
26865 * w32.c (logon_network_drive): New function.
26866 (stat): Use it.
26867
268682008-01-26 Chong Yidong <cyd@stupidchicken.com>
26869
26870 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26871 invisible text covered with an ellipsis.
26872
268732008-01-25 Richard Stallman <rms@gnu.org>
26874
26875 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26876 jump back to beginning. Move some other initializations after that.
26877 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26878 New variables.
26879 (syms_of_xdisp): Init them.
26880
26881 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26882
26883 * buffer.c (reset_buffer_local_variables):
26884 Implement `permanent-local-hook'.
26885 (Qpermanent_local_hook): New variable.
26886 (syms_of_buffer): Init and staticpro it.
26887
268882008-01-25 Michael Albinus <michael.albinus@gmx.de>
26889
26890 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26891
268922008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26893
26894 * fns.c (Fclrhash): Return TABLE.
26895
268962008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26897
26898 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26899 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26900 is set even without positional changes.
26901 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26902
26903 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26904
269052008-01-23 Jason Rumney <jasonr@gnu.org>
26906
26907 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26908
26909 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26910 the unicode range available in MULE by locale-coding-system.
26911 Improve dbcs lead byte detection. Set event timestamp and modifiers
26912 earlier.
26913
269142008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26915
26916 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26917 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26918 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26919 when used on child processes.
26920
269212008-01-21 Michael Albinus <michael.albinus@gmx.de>
26922
26923 * dbusbind.c (Fdbus_method_return_internal): Rename from
26924 Fdbus_method_return.
26925 (Fdbus_unregister_object): Move to dbus.el.
26926 (Fdbus_call_method, Fdbus_method_return_internal)
26927 (Fdbus_send_signal): Improve debug messages.
26928
269292008-01-20 Martin Rudalics <rudalics@gmx.at>
26930
26931 * undo.c (undo_inhibit_record_point): New variable.
26932 (syms_of_undo): Initialize it.
26933 (record_point): Don't record point when undo_inhibit_record_point
26934 is set.
26935
269362008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26937
26938 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26939
26940 * xdisp.c (Qauto_hscroll_mode): New var.
26941 (syms_of_xdisp): Initialize it.
26942 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26943 window's buffer.
26944 (hscroll_windows): Don't check automatic_hscrolling_p here.
26945
26946 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26947 vscroll if we're setting window-buffer to the value it already has.
26948
269492008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26950
26951 * m/intel386.h: Remove references to XENIX.
26952
269532008-01-17 Andreas Schwab <schwab@suse.de>
26954
26955 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26956 instead of HAVE_X86_64_LIB64_DIR.
26957 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26958
269592008-01-17 Glenn Morris <rgm@gnu.org>
26960
26961 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26962 to HAVE_X86_64_LIB64_DIR.
26963
269642008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26965
26966 * s/irix3-3.h:
26967 * s/irix4-0.h:
26968 * s/386-ix.h:
26969 * s/domain.h:
26970 * s/hpux9-x11r4.h:
26971 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26972
26973 * sysdep.c: Remove code containing references to symbols defined
26974 by unsupported systems.
26975
269762008-01-16 Glenn Morris <rgm@gnu.org>
26977
26978 * coding.c (select-safe-coding-system-function): Doc fix.
26979
269802008-01-15 Glenn Morris <rgm@gnu.org>
26981
26982 * config.in: Revert 2008-01-13 change: this is a generated file.
26983
269842008-01-13 Tom Tromey <tromey@redhat.com>
26985
26986 * lisp.h: Fix typo.
26987
269882008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26989
26990 * m/sequent-ptx.h:
26991 * m/sequent.h:
26992 * s/ptx.h:
26993 * s/ptx4-2.h:
26994 * s/ptx4.h: Remove files for systems no longer supported.
26995
26996 * callproc.c (Fcall_process): Fix previous change.
26997
269982008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26999
27000 * unexsunos4.c: Remove file, system not supported anymore.
27001
27002 * m/mips.h:
27003 * m/intel386.h:
27004 * callproc.c:
27005 * config.in:
27006 * ecrt0.c:
27007 * emacs.c:
27008 * fileio.c:
27009 * frame.c:
27010 * getpagesize.h:
27011 * keyboard.c:
27012 * lread.c:
27013 * process.c:
27014 * puresize.h:
27015 * sysdep.c:
27016 * systty.h:
27017 * syswait.h:
27018 * unexec.c:
27019 * xdisp.c:
27020 * alloc.c: Remove code containing references to symbols defined by
27021 unsupported systems.
27022
270232008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
27024
27025 * coding.c (detect_coding_mask): Fix previous change.
27026
270272008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
27028
27029 * coding.c (detect_coding_iso2022): New arg
27030 latin_extra_code_state. Allow Latin extra codes only
27031 when *latin_extra_code_state is nonzero.
27032 (detect_coding_mask): If there is a NULL byte, detect the encoding
27033 as UTF-16 or binary. If Latin extra codes exist, detect the
27034 encoding as ISO-2022 only when there's no other proper encoding is
27035 found.
27036
270372008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27038
27039 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
27040 #ifdef MAC_OS.
27041
270422008-01-08 Richard Stallman <rms@gnu.org>
27043
27044 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
27045
270462008-01-06 Nick Roberts <nickrob@snap.net.nz>
27047
27048 * keyboard.c (parse_menu_item): Don't enclose key bindings on
27049 menu bar in parentheses.
27050
270512008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
27052
27053 * m/7300.h:
27054 * m/acorn.h:
27055 * m/alliant-2800.h:
27056 * m/alliant.h:
27057 * m/alliant1.h:
27058 * m/alliant4.h:
27059 * m/altos.h:
27060 * m/amdahl.h:
27061 * m/apollo.h:
27062 * m/att3b.h:
27063 * m/aviion-intel.h:
27064 * m/aviion.h:
27065 * m/celerity.h:
27066 * m/clipper.h:
27067 * m/cnvrgnt.h:
27068 * m/convex.h:
27069 * m/cydra5.h:
27070 * m/delta88k.h:
27071 * m/dpx2.h:
27072 * m/dual.h:
27073 * m/elxsi.h:
27074 * m/f301.h:
27075 * m/gould-np1.h:
27076 * m/gould.h:
27077 * m/i860.h:
27078 * m/ibmps2-aix.h:
27079 * m/ibmrt-aix.h:
27080 * m/ibmrt.h:
27081 * m/irist.h:
27082 * m/is386.h:
27083 * m/isi-ov.h:
27084 * m/mega68.h:
27085 * m/mg1.h:
27086 * m/news-r6.h:
27087 * m/news-risc.h:
27088 * m/news.h:
27089 * m/nh3000.h:
27090 * m/nh4000.h:
27091 * m/ns16000.h:
27092 * m/ns32000.h:
27093 * m/nu.h:
27094 * m/orion.h:
27095 * m/orion105.h:
27096 * m/paragon.h:
27097 * m/pfa50.h:
27098 * m/plexus.h:
27099 * m/pyramid.h:
27100 * m/pyrmips.h:
27101 * m/sh3el.h:
27102 * m/sps7.h:
27103 * m/sr2k.h:
27104 * m/stride.h:
27105 * m/sun1.h:
27106 * m/sun2.h:
27107 * m/sun3-68881.h:
27108 * m/sun3-fpa.h:
27109 * m/sun3-soft.h:
27110 * m/sun3.h:
27111 * m/sun386.h:
27112 * m/symmetry.h:
27113 * m/tad68k.h:
27114 * m/tahoe.h:
27115 * m/targon31.h:
27116 * m/tek4300.h:
27117 * m/tekxd88.h:
27118 * m/tower32.h:
27119 * m/tower32v3.h:
27120 * m/ustation.h:
27121 * m/wicat.h:
27122 * m/xps100.h:
27123 * s/cxux.h:
27124 * s/cxux7.h:
27125 * s/dgux.h:
27126 * s/dgux4.h:
27127 * s/dgux5-4-3.h:
27128 * s/dgux5-4r2.h:
27129 * s/esix.h:
27130 * s/esix5r4.h:
27131 * s/hiuxmpp.h:
27132 * s/hiuxwe2.h:
27133 * s/iris3-5.h:
27134 * s/iris3-6.h:
27135 * s/isc2-2.h:
27136 * s/isc3-0.h:
27137 * s/isc4-0.h:
27138 * s/isc4-1.h:
27139 * s/newsos5.h:
27140 * s/newsos6.h:
27141 * s/osf1.h:
27142 * s/osf5-0.h:
27143 * s/riscix1-1.h:
27144 * s/riscix12.h:
27145 * s/sco4.h:
27146 * s/sco5.h:
27147 * s/sunos4-0.h:
27148 * s/sunos4-1.h:
27149 * s/sunos413.h:
27150 * s/sunos4shr.h:
27151 * s/umax.h:
27152 * s/unipl5-2.h:
27153 * s/xenix.h:
27154 * cxux-crt0.s:
27155 * unexapollo.c:
27156 * unexconvex.c:
27157 * unexenix.c:
27158 * unexsni.c: Remove files for systems no longer supported.
27159
27160 * m/intel386.h: Remove references to unsupported systems.
27161
27162 * w32.c (get_emacs_configuration): Remove reference to i860.
27163
27164 * sysdep.c: Remove dead code.
27165
271662008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27167
27168 * s/rtu.h:
27169 * m/masscomp.h: Remove files. Platform is obsolete.
27170
271712008-01-04 Michael Albinus <michael.albinus@gmx.de>
27172
27173 * dbusbind.c (Fdbus_method_return): New function.
27174 (xd_read_message): Add the serial number to the event.
27175 (Fdbus_register_method): Activate the function.
27176
271772008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27178
27179 * keyboard.c (read_key_sequence): Fix typo.
27180
271812008-01-03 Michael Albinus <michael.albinus@gmx.de>
27182
27183 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27184 (xd_signature, xd_append_arg): Handle element type detection for
27185 empty arrays.
27186 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27187 SDATA () calls; this must be solved more general.
27188 (Fdbus_register_signal): Use SBYTES instead of strlen.
27189
271902008-01-03 Magnus Henoch <magnus@zemdatav>
27191
27192 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27193 unsigned int for byte values (necessary for big-endian platform).
27194 (Fdbus_call_method): Handle the case of no returned arguments.
27195
271962007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27197
27198 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27199
272002007-12-31 Magnus Henoch <mange@freemail.hu>
27201
27202 * dbusbind.c (xd_signature): Signature of variant is just "v".
27203
272042007-12-30 Michael Albinus <michael.albinus@gmx.de>
27205
27206 * dbusbind.c: Fix several errors and compiler warnings.
27207 Reported by Tom Tromey <tromey@redhat.com>.
27208 (XD_ERROR, XD_DEBUG_MESSAGE)
27209 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27210 (xd_append_arg): Part for basic D-Bus types rewritten.
27211 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27212 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27213 appropriate.
27214 (xd_read_message): Return Qnil. Don't signal an error; it is not
27215 useful during event reading.
27216 (Fdbus_register_signal): Signal an error if the check for
27217 FUNCTIONP fails.
27218 (Fdbus_register_method): New function. The implementation is not
27219 complete, the call of the function signals an error therefore.
27220 (Fdbus_unregister_object): New function, renamed from
27221 Fdbus_unregister_signal. The initial check signals an error, if
27222 the object is not well formed.
27223
272242007-12-30 Richard Stallman <rms@gnu.org>
27225
27226 * textprop.c (get_char_property_and_overlay):
27227 Signal error if POSITION is out of range in a buffer.
27228
272292007-12-29 Martin Rudalics <rudalics@gmx.at>
27230
27231 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27232 because the original parameters are in pure storage now.
27233
272342007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27235
27236 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27237
272382007-12-22 Eli Zaretskii <eliz@gnu.org>
27239
27240 * callint.c (syms_of_callint) <command-history>: Add reference to
27241 history-length in the doc string.
27242
272432007-12-17 Jason Rumney <jasonr@gnu.org>
27244
27245 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27246 before passing as wParam.
27247
272482007-12-22 Michael Albinus <michael.albinus@gmx.de>
27249
27250 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27251 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27252 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27253 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27254 as number.
27255 (Fdbus_call_method): Fix docstring.
27256
272572007-12-21 Michael Albinus <michael.albinus@gmx.de>
27258
27259 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27260 New macros.
27261 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27262 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27263 Simplify.
27264 (xd_signature): New function.
27265 (xd_append_arg): Compute also signatures. Major rewrite.
27266 (xd_retrieve_arg): Make debug messages friendly.
27267 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27268 Check for signatures of arguments.
27269
272702007-12-19 Michael Albinus <michael.albinus@gmx.de>
27271
27272 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27273 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27274 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27275 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27276 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27277 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27278 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27279 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27280 (xd_retrieve_value): Remove. Functionality included in ...
27281 (xd_append_arg): New function.
27282 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27283
272842007-12-16 Michael Albinus <michael.albinus@gmx.de>
27285
27286 * dbusbind.c (top): Include <stdio.h>.
27287 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27288 dbus_message_new_method_call and dbus_message_new_signal.
27289 (Fdbus_register_signal): Rename unique_name to uname.
27290 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27291 non-existing unique name. Fix typos in matching rule. Return an
27292 object which is useful in Fdbus_unregister_signal.
27293 (Fdbus_unregister_signal): Reimplementation, in order to remove
27294 only the corresponding entry.
27295 (Vdbus_registered_functions_table): Change the order of entries.
27296 Apply these changes in xd_read_message and Fdbus_register_signal.
27297
272982007-12-16 Andreas Schwab <schwab@suse.de>
27299
27300 * fileio.c (Finsert_file_contents): Fix overflow check to not
27301 depend on undefined integer overflow.
27302
273032007-12-14 Jason Rumney <jasonr@gnu.org>
27304
27305 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27306 for characters above 127.
27307
273082007-12-13 Jason Rumney <jasonr@gnu.org>
27309
27310 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27311 before dereferencing array.
27312 (lookup_vk_code): Remove zero comparison.
27313
273142007-12-14 Michael Albinus <michael.albinus@gmx.de>
27315
27316 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27317 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27318 Use `unsigned int' instead of `uint'.
27319 (xd_read_message, Fdbus_register_signal): Split expressions into
27320 multiple lines before operators "&&" and "||", according to the
27321 GNU Coding Standards.
27322
273232007-12-14 Eli Zaretskii <eliz@gnu.org>
27324
27325 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27326
273272007-12-12 Juri Linkov <juri@jurta.org>
27328
27329 * buffer.c (Frename_buffer): In interactive spec replace
27330 `read-buffer' with `read-string' that uses `buffer-name-history'
27331 as history, and the current buffer's name as default.
27332
273332007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27334
27335 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27336 manipulating the backtrace manually.
27337 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27338 (struct backtrace, backtrace_list): Remove.
27339 (command_loop_1): Remove dead var `no_direct'.
27340
27341 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27342 preserve non-built-in buffer-local variables.
27343 (Fkill_all_local_variables): Don't re-create&re-set permanent
27344 buffer-local variables.
27345
273462007-12-09 Juri Linkov <juri@jurta.org>
27347
27348 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27349 Lisp code that uses `read-buffer' with current buffer as default.
27350
273512007-12-08 Michael Albinus <michael.albinus@gmx.de>
27352
27353 * dbusbind.c (xd_read_message): Generate an event for every
27354 registered handler. There might be several handlers registered
27355 for the same signal.
27356 (Fdbus_register_signal): Don't overwrite a registration for the
27357 same signal. Add a new registration if handlers are different.
27358 (Vdbus_registered_functions_table): Rework doc string.
27359
273602007-12-07 Michael Albinus <michael.albinus@gmx.de>
27361
27362 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27363 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27364 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27365 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27366 Unify argument lists.
27367 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27368 arguments and hash table keys. Use unique name for service.
27369 (Fdbus_unregister_signal): Remove checks.
27370 (Vdbus_registered_functions_table): Fix doc string.
27371
273722007-12-05 Magnus Henoch <mange@freemail.hu>
27373
27374 * process.c (make_process): Initialize pty_flag to 0.
27375
273762007-12-05 Jason Rumney <jasonr@gnu.org>
27377
27378 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27379 specified XBMs.
27380
273812007-12-05 Richard Stallman <rms@gnu.org>
27382
27383 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27384
273852007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27386
27387 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27388 New variable.
27389 (mac_try_close_socket) [MAC_OSX]: New function.
27390 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27391 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27392
27393 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27394 Use mac_try_close_socket.
27395
273962007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27397
27398 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27399 reloc_base.
27400 (copy_dysymtab): Compute relocation base here.
27401 (rebase_reloc_address) [__ppc64__]: New function.
27402 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27403 changed.
27404
274052007-12-05 Jason Rumney <jasonr@gnu.org>
27406
27407 * w32proc.c (sys_spawnve): Quote args with wildcards.
27408
274092007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27410
27411 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27412 __objc_* sections.
27413 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27414
274152007-12-05 Michael Albinus <michael.albinus@gmx.de>
27416
27417 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27418 Move check for Vdbus_registered_functions_table to
27419 xd_read_queued_messages.
27420 (xd_read_queued_messages): Protect xd_read_message calls by
27421 internal_condition_case_1.
27422
274232007-12-04 Michael Albinus <michael.albinus@gmx.de>
27424
27425 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27426 Qdbus_system_bus and Qdbus_session_bus, respectively.
27427 (Vdbus_intern_symbols): Remove.
27428 (Vdbus_registered_functions_table): New hash table.
27429 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27430 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27431 Rewrite in order to manage registered functions by hash table
27432 Vdbus_registered_functions_table.
27433
274342007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27435
27436 * xterm.c: Update URL to Window Manager Specification in comment.
27437
274382007-12-02 Michael Albinus <michael.albinus@gmx.de>
27439
27440 * config.in (HAVE_DBUS): Add.
27441
27442 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27443 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27444 (obj): Add $(DBUS_OBJ).
27445 (LIBES): Add $(DBUS_LIBS).
27446 (dbusbind.o): New target.
27447
27448 * dbusbind.c: New file.
27449
27450 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27451
27452 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27453 (Qdbus_event): New Lisp symbol.
27454 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27455 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 27456 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
27457
27458 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27459
274602007-12-01 Richard Stallman <rms@gnu.org>
27461
27462 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27463
274642007-11-30 Jason Rumney <jasonr@gnu.org>
27465
27466 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27467 (w32con_reset_terminal_modes): Clear screen buffer.
27468 (w32_face_attributes): Don't use color indexes that are out of range.
27469 Only reverse the default colors.
27470
27471 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27472 WINDOWSNT.
27473
27474 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27475
274762007-11-29 Jason Rumney <jasonr@gnu.org>
27477
27478 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27479 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27480 if the terminal colors are initialized.
27481 (unspecified_fg, unspecified_bg): Remove unused declarations.
27482
274832007-11-29 Andreas Schwab <schwab@suse.de>
27484
27485 * keyboard.c (apply_modifiers): Fix typo.
27486
274872007-11-29 Richard Stallman <rms@gnu.org>
27488
27489 * keymap.c (Fcurrent_local_map): Doc fix.
27490
274912007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27492
27493 * s/gnu-kfreebsd.h: New file.
27494
274952007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27496
27497 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27498 Don't cast redundantly.
27499
27500 * keyboard.c (KEY_TO_CHAR): New macro.
27501 (parse_modifiers, apply_modifiers): Accept integer arguments.
27502 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27503 for chars and symbol keys.
27504 After doing such remapping, apply function-key-map again.
27505
275062007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27507
27508 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27509 compiled anymore.
27510
275112007-11-26 Andreas Schwab <schwab@suse.de>
27512
27513 * process.c (list_processes_1): Fix indentation level of the
27514 command column.
27515
275162007-11-23 Andreas Schwab <schwab@suse.de>
27517
27518 * editfns.c (Fformat): Handle %c specially since it requires the
27519 argument to be of type int.
27520
275212007-11-23 Markus Triska <markus.triska@gmx.at>
27522
27523 * emacs.c (main): Call init_editfns before init_process, since
27524 init_process sets Vprocess_connection_type depending on OS release.
27525
275262007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27527
27528 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27529 (find_symbol_value): Use do_symval_forwarding.
27530
27531 * data.c (set_internal): Set the value in the `cons-cell' (for
27532 Buffer_Local_values) not only for frame-local variables.
27533
275342007-11-22 Andreas Schwab <schwab@suse.de>
27535
27536 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27537 values to sprintf.
27538 * keymap.c (Fsingle_key_description): Likewise.
27539 * print.c (print_object): Likewise.
27540
275412007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27542
27543 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27544 file for image is nil.
27545
275462007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27547
27548 * term.c: Include stdarg.h.
27549 (fatal): Implement using varargs.
27550 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27551
275522007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27553
27554 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27555 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27556 Update call to buffer_slot_type_mismatch.
27557 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27558 (buffer_slot_type_mismatch): Update.
27559 * buffer.c (buffer_local_types): Remove.
27560 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27561 (defvar_per_buffer): Set the type in the buffer_objfwd.
27562
275632007-11-21 Jason Rumney <jasonr@gnu.org>
27564
27565 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27566 CreateFileMapping returns NULL on failure.
27567
275682007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27569
27570 * search.c (Fset_match_data): Remove the `evaporate' feature.
27571 (unwind_set_match_data): Don't use the `evaporate' feature.
27572
275732007-11-21 Jason Rumney <jasonr@gnu.org>
27574
27575 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27576
27577 * w32console.c (w32con_write_glyphs): Remove unused variables.
27578
275792007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27580
27581 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27582
27583 * s/darwin.h (MULTI_KBOARD): Remove.
27584
27585 * macfns.c (x_create_tip_frame, Fx_create_frame)
27586 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27587
275882007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27589
27590 * buffer.c (Fbuffer_local_value): Remove redundant test.
27591 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27592 than in `current-buffer' to match the comment.
27593 Do the swap using swap_in_global_binding.
27594
27595 * data.c (store_symval_forwarding, set_internal):
27596 * eval.c (specbind): Remove dead code.
27597
27598 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27599 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27600 Since we do not want to see internal Lisp_*fwd objects here.
27601
276022007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27603
27604 * sysdep.c (init_system_name): Use getaddrinfo if available.
27605
27606 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27607 (x_scroll_bar_note_movement): start, end, with, height in struct
27608 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27609
276102007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27611
27612 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27613
276142007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27615
27616 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27617 This undoes Richard's change of 14-Oct-2002.
27618
27619 * alloc.c (allocate_other_vector):
27620 * lisp.h (allocate_other_vector): Remove.
27621
27622 * window.c (struct save_window_data): Move non-lisp data to the end
27623 and make it `int' rather than Lisp_Object.
27624 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27625 Done wrap/unwrap integer values.
27626 (Fset_window_configuration, compare_window_configurations):
27627 Update use of fields to their new types.
27628
27629 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27630 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27631 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27632 (SET_SCROLL_BAR_X_WINDOW): Remove.
27633 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27634 Access the new x_window field directly.
27635 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27636 Don't wrap/unwrap integers into Lisp_Objects.
27637 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27638 (x_scroll_bar_report_motion):
27639 Don't wrap/unwrap integers into Lisp_Objects.
27640 (x_term_init): Use SDATA.
27641 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27642 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27643 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27644 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27645 * xfns.c (x_set_background_color):
27646 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27647 Access the new x_window field directly.
27648
27649 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27650 (allocate_pseudovector): Make non-static.
27651
27652 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27653 (allocate_pseudovector): Declare.
27654 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27655
276562007-11-15 Andreas Schwab <schwab@suse.de>
27657
27658 * editfns.c (Fformat): Correctly format EMACS_INT values.
27659 Also take precision into account when formatting an integer.
27660
27661 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27662
276632007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27664
27665 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27666 (syms_of_keyboard): Defsubr it.
27667
27668 * data.c (swap_in_global_binding): Fix longstanding bug where
27669 store_symval_forwarding was not called with the right second argument,
27670 thus causing objfwd-ing from being dropped.
27671
276722007-11-14 Juanma Barranquero <lekktu@gmail.com>
27673
27674 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
27675 (Fx_display_pixel_height, Fx_display_planes)
27676 (Fx_display_color_cells, Fx_server_max_request_size)
27677 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27678 (Fx_display_visual_class, Fx_display_save_under):
27679 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27680 (Fx_display_pixel_height, Fx_display_planes)
27681 (Fx_display_color_cells, Fx_server_max_request_size)
27682 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27683 (Fx_display_mm_height, Fx_display_mm_width)
27684 (Fx_display_backing_store, Fx_display_visual_class)
27685 (Fw32_select_font, Fx_display_save_under):
27686 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27687 (Fx_display_pixel_height, Fx_display_planes)
27688 (Fx_display_color_cells, Fx_server_max_request_size)
27689 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27690 (Fx_display_save_under): Fix typos in docstrings.
27691
276922007-11-14 Juanma Barranquero <lekktu@gmail.com>
27693
27694 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27695 corresponding to deleted entries; they are an implementation detail.
27696 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27697 Remove variables.
27698 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27699 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27700 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27701 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27702 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27703 (Fw32_define_rgb_color, Fw32_load_color_file)
27704 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27705 Fix typos in docstrings.
27706 (Fx_server_version): Reflow docstring.
27707 (Fw32_shell_execute): Doc fixes.
27708
277092007-11-13 Juanma Barranquero <lekktu@gmail.com>
27710
27711 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27712 if w32_parse_hot_key returned nil.
27713
277142007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27715
27716 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27717
277182007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 27719
aac0c6e3
MR
27720 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27721
27722 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27723
27724 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27725 Remove W32_SCROLL_BAR_CLICK_EVENT.
27726
27727 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27728 Add MULTIMEDIA_KEY_EVENT.
27729
27730 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27731 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27732 (make_lispy_event) [WINDOWSNT]: Use it to translate
27733 MULTIMEDIA_KEY_EVENT.
27734
27735 * w32term.h (WM_APPCOMMAND): Define if not already.
27736 (GET_APPCOMMAND_LPARAM): Likewise.
27737
27738 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27739 WM_APPCOMMAND.
27740
27741 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27742 (syms_of_w32fns): Export and initialize it.
27743 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27744
277452007-11-09 Chong Yidong <cyd@stupidchicken.com>
27746
27747 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27748 twice.
27749
27750 * xdisp.c (handle_face_prop): Fix last change.
27751
277522007-11-09 Richard Stallman <rms@gnu.org>
27753
27754 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27755 not just for after-strings and before-strings.
27756 Call face_for_overlay_string and pass the overlay to it.
27757 (handle_display_prop): Determine whether property came from an overlay.
27758 Pass OVERLAY arg to handle_single_display_spec.
27759 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27760 (load_overlay_strings): Fill in it->string_overlays.
27761 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27762
27763 * xfaces.c (face_for_overlay_string): Function renamed from
27764 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27765
27766 * dispextern.h (struct it): New elt string_overlays.
27767 New elt from_overlay, also in stack.
27768 Rearrange a few elements.
27769 (face_for_overlay_string): Decl renamed from
27770 face_at_buffer_position_no_overlays, and add argument.
27771
277722007-11-09 Richard Stallman <rms@gnu.org>
27773
27774 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27775 to get the base face for an overlay string.
27776
27777 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27778
27779 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27780
27781 * xdisp.c (handle_stop): Move some code out of loop.
27782
277832007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27784
27785 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27786 Fix conversion from Lisp object to ATSUFontID.
27787
277882007-11-09 Jason Rumney <jasonr@gnu.org>
27789
27790 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27791
277922007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27793
27794 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27795 Don't assume regions are aligned to page boundary.
27796 (print_load_command_name): Add LC_UUID if defined.
27797
277982007-11-09 Richard Stallman <rms@gnu.org>
27799
27800 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27801
278022007-11-07 Jason Rumney <jasonr@gnu.org>
27803
27804 * s/windows95.h: Remove.
27805
278062007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27807
27808 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27809 abort with a message on unhandled store_type values.
27810
278112007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27812
27813 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27814 Remove HAVE_X11R5 and HAVE_X11R4.
27815
278162007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27817
27818 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27819
278202007-11-01 Johan Bockgård <bojohan@gnu.org>
27821
27822 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27823 Don't set s->stippled_p here, since it has already been set by
27824 x_set_glyph_string_gc from x_draw_glyph_string.
27825
278262007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27827
27828 * sunfns.c: Remove file.
27829
27830 * m/sun386.h:
27831 * m/sun2.h:
27832 * m/sparc.h: Remove Sun windows code.
27833
278342007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27835
27836 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27837 (init_keyboard): Set current_kboard's window-system to nil.
27838 (tty_read_avail_input): Typo.
27839 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27840
278412007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27842
27843 * s/usg5-4.h:
27844 * s/usg5-3.h:
27845 * s/ptx.h:
27846 * m/is386.h:
27847 * m/ibmps2-aix.h:
27848 * Makefile.in: Remove all mentions of X10.
27849
27850 * dispnew.c (syms_of_display): Don't mention version 10.
27851
278522007-10-28 Juanma Barranquero <lekktu@gmail.com>
27853
27854 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27855 ($(BLD)/abbrev.$(O)): Remove.
27856
278572007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27858
27859 Rewrite abbrev.c in Elisp.
27860 * image.c (Qcount): Don't declare as extern.
27861 (syms_of_image): Initialize and staticpro `Qcount'.
27862 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27863 * emacs.c (main): Don't call syms_of_abbrev.
27864 * Makefile.in (obj): Remove abbrev.o.
27865 (abbrev.o): Remove.
27866 * abbrev.c: Remove.
27867
278682007-10-26 Martin Rudalics <rudalics@gmx.at>
27869
27870 * window.c (window_min_size_2): Don't count header-line.
27871
278722007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27873
27874 * frame.h (struct frame): Move all bit fields after the first bit
27875 field to take advantage of the available space. Group all the
27876 chars together to reduce wasted space due to padding.
27877
278782007-10-26 Juanma Barranquero <lekktu@gmail.com>
27879
27880 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27881
27882 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27883 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27884 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27885 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27886 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27887 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27888 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27889 (last_marked, mark_object_loop_halt): Make static.
27890
27891 * frame.c (syms_of_frame) <delete-frame-functions>:
27892 Fix typo in docstring.
27893
278942007-10-25 Juanma Barranquero <lekktu@gmail.com>
27895
27896 * w32.c (init_environment): Fix tiny memory leak.
27897 (w32_get_resource): Remove unused variable `ok'.
27898
278992007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27900
27901 Make `window-system' into a keyboard-local variable (rather than
27902 frame-local as done originally by multi-tty).
27903
27904 * keyboard.h (struct kboard): Add Vwindow_system.
27905 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27906 (mark_kboards): Mark Vwindow_system.
27907
27908 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27909 (init_display): Don't set the obsolete `window-system' frame-param.
27910
27911 * xterm.c (x_term_init):
27912 * w32term.c (w32_create_terminal):
27913 * term.c (init_tty): Set Vwindow_system.
27914 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27915 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27916
27917 * xfns.c (Fx_create_frame, x_create_tip_frame):
27918 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27919 * macfns.c (Fx_create_frame):
27920 Don't set the obsolete `window-system' frame-param.
27921
27922 * frame.h (Qwindow_system): Remove.
27923 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27924 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27925
279262007-10-24 Richard Stallman <rms@gnu.org>
27927
27928 * frame.c (x_figure_window_size): For fullscreen case,
27929 set USPosition | PPosition without clobbering rest of window_prompting.
27930
27931 * keyboard.c (Fcurrent_idle_time): Doc fix.
27932
27933 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27934
279352007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27936
27937 * process.c (unwind_request_sigio): Only define if __ultrix__.
27938
27939 * callproc.c (child_setup): Remove spurious *.
27940
27941 * lisp.h (Fget_text_property): Declare.
27942 (have_menus_p): Declare it here rather than in sys-dep header files.
27943 * macterm.h (have_menus_p):
27944 * msdos.h (have_menus_p):
27945 * xterm.h (have_menus_p): Remove.
27946
27947 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27948 (Fmake_variable_frame_local): Just check the variable's const-ness
27949 rather than checking nil or t.
27950
279512007-10-22 Jason Rumney <jasonr@gnu.org>
27952
27953 * w32fns.c: Include math.h.
27954 (w32_abort): Declaration moved to nt/config.nt.
27955
27956 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27957 (abort): Redefinition moved to nt/config.nt.
27958
27959 * m/windowsnt.h: Remove.
27960
279612007-10-22 Juanma Barranquero <lekktu@gmail.com>
27962
27963 * emacs.c (Fdump_emacs): Fix typo in message.
27964 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27965 <installation-directory>: Reflow docstring.
27966
279672007-10-22 Juri Linkov <juri@jurta.org>
27968
27969 * minibuf.c: Allow minibuffer default to be a list of default values.
27970 With empty input use the first element of this list as returned default.
27971 (string_to_object)
27972 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27973 (read_minibuf): If defalt is cons, set histstring to its car.
27974 (Fread_string): If default_value is cons, set val to its car.
27975 (Fread_buffer): If def is cons, use its car.
27976 (Fcompleting_read): If defalt is cons, set val to its car.
27977
279782007-10-21 Michael Albinus <michael.albinus@gmx.de>
27979
27980 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27981
279822007-10-20 Juanma Barranquero <lekktu@gmail.com>
27983
27984 * doc.c (Fdocumentation): Check for advice in all cases.
27985
279862007-10-19 Chong Yidong <cyd@stupidchicken.com>
27987
27988 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27989
279902007-10-19 Richard Stallman <rms@gnu.org>
27991
27992 * doc.c (Fdocumentation): Check for and handle an advised function.
27993
279942007-10-19 Juanma Barranquero <lekktu@gmail.com>
27995
27996 * process.c (Fset_process_filter): Doc fix.
27997
279982007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27999
28000 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
28001 which caused key-translation-map to applied repeatedly (thus breaking
28002 double-mode).
28003
280042007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28005
28006 * xselect.c (x_own_selection, x_handle_selection_clear)
28007 (x_clear_frame_selections):
28008 * w32menu.c (list_of_panes, list_of_items):
28009 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
28010 * textprop.c (validate_plist, interval_has_all_properties)
28011 (interval_has_some_properties, interval_has_some_properties_list)
28012 (add_properties, text_property_list):
28013 * process.c (Fget_buffer_process, list_processes_1, status_notify):
28014 * minibuf.c (Fassoc_string):
28015 * macselect.c (x_own_selection, x_clear_frame_selections)
28016 (Fx_disown_selection_internal):
28017 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
28018 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
28019
280202007-10-17 Chong Yidong <cyd@stupidchicken.com>
28021
28022 * process.c: Link to libs for calling res_init() if available.
28023 (Fmake_network_process): Call res_init() before getaddrinfo or
28024 gethostbyname, if possible.
28025
280262007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28027
28028 * lread.c (read1): Set pvectype for char_tables.
28029
28030 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
28031 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
28032 Add type checks.
28033 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
28034
28035 * alloc.c (free_misc): Use XMISCTYPE.
28036 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
28037
280382007-10-17 Glenn Morris <rgm@gnu.org>
28039
28040 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
28041 (syms_of_minibuf): Add Qcompletion_ignore_case.
28042 * dired.c (Qcompletion_ignore_case): Change to external.
28043 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
28044 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
28045 (Fread_file_name): Use it rather than intern'ing.
28046
28047 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
28048 (Fread_coding_system): Ignore case of user input.
28049
280502007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28051
28052 * xdisp.c (handle_display_prop): Ignore display specs after
28053 replacing one when string text is being replaced.
28054 (handle_single_display_spec): Pretend as if characters with display
28055 property haven't been consumed only when buffer text is being replaced.
28056
280572007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
28058
28059 * xfns.c (Fx_create_frame, Fx_display_list):
28060 * window.c (window_fixed_size_p, enlarge_window)
28061 (shrink_window_lowest_first):
28062 * macterm.c (init_font_name_table):
28063 * macfns.c (Fx_create_frame, Fx_display_list):
28064 * lread.c (close_load_descs):
28065 * keyboard.c (read_char_x_menu_prompt):
28066 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28067 * coding.c (code_convert_region_unwind): Test the type of an object
28068 rather than just !NILP before extracting data from it.
28069
28070 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28071
28072 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28073 (XMISCANY): New macro.
28074 (XMISCTYPE): Use it.
28075 (struct Lisp_Misc_Any): New type.
28076 (union Lisp_Misc): Use it.
28077 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28078 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28079 (find_symbol_value, set_internal, default_value, Fset_default)
28080 (Fmake_variable_buffer_local, Fmake_local_variable)
28081 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28082 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28083 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28084 * alloc.c (allocate_buffer): Set the size and tag.
28085 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28086 Use XMISCANY.
28087 (die): Follow the GNU convention for error messages.
28088 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28089 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28090 tag any more.
28091 (set_buffer_internal_1):
28092 * frame.c (store_frame_param):
28093 * eval.c (specbind):
28094 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28095
28096 * doc.c (Fsnarf_documentation): Simplify.
28097
280982007-10-14 Juanma Barranquero <lekktu@gmail.com>
28099
28100 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28101 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28102
281032007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28104
28105 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28106
281072007-10-14 Juanma Barranquero <lekktu@gmail.com>
28108
28109 * eval.c (do_autoload): Don't save autoloads.
28110
28111 * data.c (Ffset): Save autoload of the function being set.
28112
281132007-10-07 John Paul Wallington <jpw@pobox.com>
28114
28115 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28116 parameter before setting up faces.
28117
281182007-10-13 Eli Zaretskii <eliz@gnu.org>
28119
28120 * ccl.c (Fregister_code_conversion_map):
28121 * keyboard.c (append_tool_bar_item): Reformat last change.
28122
28123 * lisp.h (eabs): Rename from `abs'. All callers changed.
28124
281252007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28126
28127 * buffer.c (add_overlay_mod_hooklist):
28128 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28129 * fontset.c (make_fontset):
28130 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28131 (append_tool_bar_item):
28132 * macmenu.c (grow_menu_items):
28133 * w32menu.c (grow_menu_items):
28134 * xmenu.c (grow_menu_items): Use larger_vector.
28135
281362007-10-13 Eli Zaretskii <eliz@gnu.org>
28137
28138 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28139 selected frame'' on MSDOS).
28140
281412007-10-12 Martin Rudalics <rudalics@gmx.at>
28142
28143 * frame.c (Qexplicit_name): New variable.
28144 (x_report_frame_params): Report it in parameter alist.
28145 (syms_of_frame): Intern and staticpro it.
28146
281472007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28148
28149 * macfns.c (x_create_tip_frame): Set terminal for frame.
28150
281512007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28152
28153 * frame.c (Qenvironment): Remove.
28154 (syms_of_frame) <Qenvironment>: Don't initialize.
28155 (Fdelete_frame): Don't treat the `environment' param specially.
28156 * frame.h (Qenvironment): Don't declare.
28157 * callproc.c (set_initial_environment): Don't set unused frame param.
28158
28159 * frame.c (Fframe_with_environment): Remove.
28160 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28161
28162 * lisp.h (Fframe_with_environment): Don't declare.
28163
281642007-10-10 Juanma Barranquero <lekktu@gmail.com>
28165
28166 * indent.c (indent_tabs_mode, last_known_column)
28167 (last_known_column_modified): Make static.
28168 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28169
281702007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28171
28172 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28173
281742007-10-09 Jason Rumney <jasonr@gnu.org>
28175
28176 * w32term.c (x_set_window_size): Disable code that attempts to tell
28177 Lisp code about a size change before it actually happens.
28178
281792007-10-09 Richard Stallman <rms@gnu.org>
28180
28181 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28182 return HANDLED_RETURN.
28183
281842007-10-08 Martin Rudalics <rudalics@gmx.at>
28185
28186 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28187 when there's an unread command event.
28188
28189 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28190 window autoselection act appropriately when leaving selected frame.
28191 (syms_of_frame): Initialize focus_follows_mouse.
28192 * frame.h (focus_follows_mouse): Extern it.
28193 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28194 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28195 * msdos.c (dos_rawgetc): Likewise.
28196 * w32term.c (w32_read_socket): Likewise.
28197 * xterm.c (handle_one_xevent): Likewise.
28198 * xdisp.c (syms_of_xdisp): In doc-string of
28199 mouse-autoselect-window mention focus-follows-mouse.
28200
282012007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28202
28203 * macterm.c (mac_load_query_font): Fix missing return value.
28204 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28205 Add BLOCK_INPUT.
28206
282072007-10-08 Richard Stallman <rms@gnu.org>
28208
28209 * xdisp.c (get_window_cursor_type): Implement documented behavior
28210 for cursor-in-non-selected-windows = t.
28211
282122007-10-08 Jason Rumney <jasonr@gnu.org>
28213
28214 * w32.c (w32_get_resource): Always close registry keys.
28215
282162007-10-08 Jason Rumney <jasonr@gnu.org>
28217
28218 * makefile.w32-in (LIBS): Add COMCTL32.
28219
28220 * w32fns.c (globals_of_w32fns): Init common controls.
28221
282222007-10-08 Richard Stallman <rms@gnu.org>
28223
28224 * image.c (our_memory_buffer): Rename from omfib_buffer.
28225
282262007-10-08 Richard Stallman <rms@gnu.org>
28227
28228 * buffer.c (Foverlays_at): Doc fix.
28229
282302007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28231
28232 * fns.c (Fplist_put): Preserve uneven tail data.
28233
282342007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28235
28236 * termhooks.h (enum event_kind): Remove trailing comma.
28237
28238 * frame.h (enum): Remove trailing comma.
28239
282402007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28241
28242 * w32proc.c (delete_child): Don't terminate threads of zombies.
28243
282442007-10-08 Martin Rudalics <rudalics@gmx.at>
28245
28246 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28247
28248 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28249 last-repeatable-command.
28250 (init_kboard): Initialize Vlast_repeatable_command.
28251 (command_loop_1): Set it to real_this_command unless that was
28252 bound to an input event.
28253 (mark_kboards): Mark it.
28254
282552007-10-08 Richard Stallman <rms@gnu.org>
28256
28257 * eval.c (condition-case): Doc fix.
28258
282592007-10-08 Masatake YAMATO <jet@gyve.org>
28260
28261 * xfaces.c (tty_supports_face_attributes_p): Fix code
28262 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28263 was copied and not edited.
28264
282652007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28266
28267 Add new `input-decode-map' keymap and use it for terminal
28268 escape sequences.
28269 * keyboard.h (struct kboard): Add Vinput_decode_map.
28270 Remove Vlocal_key_translation_map.
28271 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28272 (init_kboard): Init input-decode-map.
28273 Replace local-key-translation-map back with key-translation-map.
28274 (syms_of_keyboard): Declare input-decode-map.
28275 Remove local-key-translation-map. Update docstrings.
28276 (mark_kboards): Mark Vinput_decode_map.
28277 Don't mark Vlocal_key_translation_map.
28278 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28279 Replace local-key-translation-map back with key-translation-map.
28280 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28281 Bind in input-decode-map rather than function-key-map.
28282
28283 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28284 This was made redundant by the previous introduction of XSETPVECTYPE.
28285
282862007-10-09 Richard Stallman <rms@gnu.org>
28287
28288 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28289
282902007-09-29 Richard Stallman <rms@gnu.org>
28291
28292 * eval.c (internal_condition_case_2, internal_condition_case_1)
28293 (internal_condition_case): Reenable abort if x_catching_errors ()
28294 to see if that really happens and why.
28295
282962007-10-06 Andreas Schwab <schwab@suse.de>
28297
28298 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28299
283002007-10-04 Juanma Barranquero <lekktu@gmail.com>
28301
28302 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28303
283042007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28305
28306 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28307
283082007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28309
28310 * window.h (struct window):
28311 * window.c (struct save_window_data, struct saved_window):
28312 * termhooks.h (struct terminal):
28313 * process.h (struct Lisp_Process):
28314 * frame.h (struct frame):
28315 * buffer.h (struct buffer):
28316 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28317 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28318 The size field of (pseudo)vectors is now unsigned.
28319 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28320
28321 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28322 Turn `count' into an integer.
28323
28324 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28325 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28326 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28327 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28328 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28329
28330 * alloc.c (allocate_pseudovector): New fun.
28331 (ALLOCATE_PSEUDOVECTOR): New macro.
28332 (allocate_window, allocate_terminal, allocate_frame)
28333 (allocate_process): Use it.
28334 (mark_vectorlike): New function.
28335 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28336 (mark_terminals): Use it.
28337 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28338 (Fmake_byte_code): Use XSETPVECTYPE.
28339
28340 * frame.c (Fframe_parameters): Minor simplification.
28341
28342 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28343
28344 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28345
28346 * buffer.c (Fget_buffer_create, init_buffer_once):
28347 * lread.c (defsubr):
28348 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28349
28350 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28351 defined differently in the m/*.h files.
28352 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28353 (XSETPVECTYPE): New macro.
28354 (XSETPSEUDOVECTOR): Use it.
28355
28356 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28357 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28358
28359 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28360 * lread.c (defvar_per_buffer):
28361 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28362
28363 * window.c (candidate_window_p): Only consider as visible frames that
28364 are on the same terminal.
28365
28366 * m/ibms390x.h (MARKBIT): Remove unused macro.
28367
283682007-10-01 Juanma Barranquero <lekktu@gmail.com>
28369
28370 * lread.c (Fload): Fix typo in docstring.
28371
283722007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28373
28374 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28375 of a non-zero value can't yield zero.
28376
283772007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28378
28379 * term.c (term_clear_mouse_face, term_mouse_highlight)
28380 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28381
28382 * print.c (safe_debug_print): Use XHASH.
28383
28384 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28385 Lisp elements such as tags.
28386 (XHASH): New macro.
28387 (EQ): Use it.
28388 (SREF, SSET, STRING_COPYIN): Use SDATA.
28389 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28390
28391 * alloc.c (mark_terminal): Remove left-over declaration.
28392 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28393 (allocate_vectorlike): Remove type argument. Adjust callers.
28394 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28395 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28396
28397 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28398 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28399 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28400 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28401 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28402 Use them.
28403
28404 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28405 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28406 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28407
284082007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28409
28410 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28411 loaded by default.
28412
284132007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28414
28415 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28416 on this tty.
28417 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28418
28419 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28420 Update all users.
28421 (handle_one_term_event): Use Gpm_DrawPointer.
28422 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28423 Signal errors instead of returning nil. Always return nil.
28424 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28425 Make it a noop if gpm-mouse was not activated.
28426 (syms_of_term): Update names.
28427
284282007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28429
28430 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28431 (init_sys_modes): Check that gpm_tty is the current tty.
28432
28433 * alloc.c (allocate_terminal): Set the vector size to only count the
28434 lisp fields. Initialize those to nil.
28435 (mark_object): Don't treat terminals specially.
28436 (mark_terminal): Remove.
28437 (mark_terminals): Use mark_object instead.
28438
28439 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28440 the GC to the beginning.
28441
28442 * indent.h:
28443 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28444
28445 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28446
284472007-09-25 Jason Rumney <jasonr@gnu.org>
28448
28449 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28450
28451 * w32console.c (create_w32cons_output): Remove.
28452
28453 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28454
28455 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28456 (reset_sys_modes): Use reset_terminal_modes_hook.
28457
284582007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28459
28460 * eval.c (do_autoload): Don't output any message.
28461
284622007-09-24 Juri Linkov <juri@jurta.org>
28463
28464 * emacs.c (standard_args): Change priority of "--no-splash"
28465 from 40 to 3. Add "--no-desktop" with the same priority.
28466
284672007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28468
28469 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28470 and optimize the case where they are all 1.
28471
284722007-09-23 Johannes Weiner <hannes@saeurebad.de>
28473
28474 * lisp.h (abs): Define if not defined.
28475 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28476 Don't define `abs', since it's defined in lisp.h.
28477
284782007-09-22 Eli Zaretskii <eliz@gnu.org>
28479
28480 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28481 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28482 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28483 (init_tty): Use DEV_TTY instead of "/dev/tty".
28484 [WINDOWSNT]: No need to protect from NAME arg being null.
28485
284862007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28487
28488 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28489 up the tty state.
28490
284912007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28492
28493 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28494 (gpm_tty): Change its type.
28495 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28496 (gpm_tty): Change its type and initialize it.
28497 (Fterm_open_connection): Check the frame is indeed a tty.
28498 Use the new gpm_tty.
28499 (Fterm_close_connection): Use the new gpm_tty.
28500 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28501 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28502
285032007-09-21 Juanma Barranquero <lekktu@gmail.com>
28504
28505 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28506 underline_color, to draw strike-through.
28507
285082007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28509
28510 * lisp.h (allocate_terminal): Declare.
28511
28512 * window.c (candidate_window_p): Consider frames that are being placed
28513 by the user as somewhere between visible and iconified.
28514 (window_loop): Prefer windows on the current frame.
28515 (Fselect_window): Move the use of select-frame to the beginning so we
28516 can just delegate all the work (it'll call us back anyway).
28517
28518 * frame.c (Qdisplay_environment_variable):
28519 * frame.h (Qdisplay_environment_variable): Delete.
28520
28521 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28522 of the first arg, since that value may be a union.
28523
28524 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28525 parameter rather than Qdisplay_environment_variable. If all else
28526 fails, look for DISPLAY in initial-environment.
28527
285282007-09-21 Glenn Morris <rgm@gnu.org>
28529
28530 * Makefile.in (emacstool): Remove target.
28531 (lisp, shortlisp): Remove termdev.elc.
28532
285332007-09-21 Markus Triska <markus.triska@gmx.at>
28534
28535 * xterm.c (x_delete_display): Compile session management conditionally.
28536
285372007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28538
28539 * callproc.c (getenv_internal_1): New function.
28540 (getenv_internal): Use it.
28541 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28542
28543 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28544 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28545 (Fset_terminal_parameter): Work with dead terminals as well.
28546 (Fmodify_terminal_parameters): Remove.
28547
28548 * terminal.c (get_terminal): Handle terminals.
28549 Make sure the terminal returned is live.
28550 (create_terminal): Use allocate_terminal.
28551 (mark_terminals): Move to alloc.c.
28552 (delete_terminal): Use terminal->name as liveness status.
28553 NULL out fields after freeing their contents.
28554 Don't deallocate the object.
28555 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28556 rather than an int.
28557 (Fterminal_live_p): Accept non-integer arguments.
28558 (Fterminal_list): Return terminal objects rather than an ints.
28559
28560 * alloc.c (enum mem_type): New member for `terminal' objects.
28561 (allocate_terminal): New function.
28562 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28563 Handle terminals.
28564 (mark_terminal): New fun.
28565 (mark_terminals): Move from terminal.c.
28566
28567 * term.c (get_tty_terminal): Don't treat output_initial specially.
28568 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28569 (delete_tty): Use terminal->name as liveness status.
28570
28571 * termhooks.h (struct terminal): Make it into a pseudovector.
28572 Remove `deleted' replaced by checking `name's nullness.
28573
28574 * print.c (print_object): Handle terminals.
28575
28576 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28577 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28578
28579 * frame.c (make_terminal_frame):
28580 * keyboard.c (tty_read_avail_input):
28581 * w32term.c (x_delete_terminal):
28582 * xfns.c (Fx_create_frame, x_create_tip_frame):
28583 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28584
285852007-09-20 Glenn Morris <rgm@gnu.org>
28586
28587 * process.c (Fmake_network_process): Doc fix.
28588
285892007-09-19 Jason Rumney <jasonr@gnu.org>
28590
28591 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28592
285932007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28594
28595 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28596 Fix a C warning regarding variable constness.
28597
28598 * xterm.c (handle_one_xevent): Fix a C warning.
28599
286002007-09-18 Jason Rumney <jasonr@gnu.org>
28601
28602 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28603
286042007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28605
28606 * gtkutil.c (gdpy_def): New variable.
28607 (xg_initialize): Initialize gdpy_def.
28608 (xg_display_close): If no other display exists, set gdpy_def to a
28609 new connection.
28610
286112007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28612
28613 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28614 when we have no file name for the icon.
28615 (xg_tool_bar_expose_callback): Remove.
28616 (xg_create_tool_bar): Don't connect expose signal to
28617 xg_tool_bar_expose_callback.
28618 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28619
286202007-09-16 Andreas Schwab <schwab@suse.de>
28621
28622 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28623 values instead of zapping them.
28624
286252007-09-14 Glenn Morris <rgm@gnu.org>
28626
28627 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28628 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28629 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28630 scope and rename to omfib_buffer for clarity.
28631 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28632
286332007-09-14 Kenichi Handa <handa@m17n.org>
28634
28635 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28636
286372007-09-13 Jason Rumney <jasonr@gnu.org>
28638
28639 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28640
28641 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28642
28643 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28644 (mac_term_init): Call here instead, passing rif.
28645
286462007-09-13 Glenn Morris <rgm@gnu.org>
28647
28648 * s/hpux.h: No longer define `static' as nothing.
28649
286502007-09-13 Johan Bockgård <bojohan@gnu.org>
28651
28652 * callint.c (Fcall_interactively): Remove unused var `fun'.
28653
286542007-09-12 Romain Francoise <romain@orebokech.com>
28655
28656 * window.c (prefer_window_split_horizontally, display_buffer):
28657 Revert 2007-09-08 change.
28658
286592007-09-12 Glenn Morris <rgm@gnu.org>
28660
28661 * alloca.c: Remove file.
28662 * Makefile.in (alloca): Do not undef.
28663 (allocaobj, alloca.o): Remove.
28664 (otherobj): Remove allocaobj.
28665 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28666 * regex.c (C_ALLOCA): Remove all references and code that was only
28667 used when this was defined.
28668 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28669 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28670 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28671
28672 * Makefile.in (SOURCES, unlock, relock): Delete.
28673
28674 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28675 (menu_grab_callback): All uses changed.
28676
28677 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28678 (x_reply_selection_request): All uses changed.
28679
286802007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28681
28682 * lread.c (load_warn_old_style_backquotes): Change message to look
28683 better when it appears in the middle of byte-compiler messages.
28684
286852007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28686
28687 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28688
28689 * xterm.c (x_create_terminal): Add comment.
28690
28691 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28692
286932007-09-10 Richard Stallman <rms@gnu.org>
28694
28695 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28696
286972007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28698
28699 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28700 (DEFUN): Document `intspec', use it instead of `prompt'.
28701
28702 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28703
28704 * data.c (Finteractive_form): If the interactive specification starts
28705 with a `(', use it as a Lisp form.
28706
28707 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28708 name and file modes.
28709
28710 * callint.c (Fcall_interactively): Comment fixes.
28711
287122007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28713
28714 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28715 and compiled functions.
28716
287172007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28718
28719 * window.c (prefer_window_split_horizontally): New variable.
28720 (display_buffer): Consider splitting window horizontally depending
28721 on prefer_window_split_horizontally.
28722
287232007-09-08 Eli Zaretskii <eliz@gnu.org>
28724
28725 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28726
287272007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28728
28729 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28730
28731 * frame.c (x_set_frame_parameters): Check number is positive before
28732 using XFASTINT.
28733
28734 * window.c (freeze_window_start): Don't presume selected_window holds
28735 a window object.
28736 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28737
287382007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28739
28740 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28741
287422007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28743
28744 * window.c (Vsplit_window_preferred_function): New var.
28745 (Fdisplay_buffer): Use it.
28746 (syms_of_window): Export, and initialize it.
28747
287482007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28749
28750 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28751
287522007-09-06 Glenn Morris <rgm@gnu.org>
28753
28754 * gtkutil.c (menu_grab_callback) <cnt>:
28755 * xselect.c (x_reply_selection_request) <cnt>: Move static
28756 variable to file scope.
28757
287582007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28759
28760 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28761 consistent values of selected_frame and selected_window.
28762
287632007-09-04 Jason Rumney <jasonr@gnu.org>
28764
28765 * w32console.c (initialize_w32_display): Zero unused hooks.
28766
287672007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28768
28769 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28770 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28771
287722007-09-04 Jason Rumney <jasonr@gnu.org>
28773
28774 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28775 in w32console.c. Set up input. Remove XXX comments that have been
28776 confirmed as correct.
28777
28778 * s/ms-w32.h (MULTI_KBOARD): Define.
28779
28780 * w32console.c (one_and_only_w32cons): Remove.
28781 (initialize_w32_display): Take terminal argument.
28782
28783 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28784 initialize_w32_display.
28785 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28786
28787 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28788
28789 * keyboard.c (discard_mouse_events): Discard it.
28790 (make_lispy_event): Translate it to a lisp event.
28791 (lispy_wheel_names): Add wheel-left and right events.
28792 (syms_of_keyboard): Enlarge wheel_syms.
28793
28794 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28795 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28796
28797 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28798
28799 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28800 from WM_MOUSEHWHEEL.
28801 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28802
28803 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28804 terminal.
28805
28806 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28807 keyboard for the terminal.
28808
288092007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28810
28811 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28812 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28813 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28814 and resume-tty-function to resume-tty-hook.
28815 (Fsuspend_tty, Fresume_tty): Use new names.
28816
288172007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28818
28819 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28820 if it starts with "n:".
28821
288222007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28823
28824 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28825
288262007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28827
28828 * frame.h:
28829 * frame.c (Qterm_environment_variable): Remove.
28830 (syms_of_frame): Don't init and staticpro it.
28831
28832 * callproc.c (getenv_internal): Remove special case for $TERM.
28833
28834 * callproc.c (Vinitial_environment): New variable.
28835 (set_initial_environment): Initialize it.
28836 (syms_of_callproc): Declare it.
28837 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28838 TERM under which a process runs is never related to the TERM in which
28839 Emacs is running.
28840
288412007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28842
28843 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28844 * s/darwin.h: ... do it here.
28845
288462007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28847
28848 * lisp.h (set_initial_environment): Rename from set_global_environment.
28849
28850 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28851 removed by mistake on the multi-tty branch.
28852
28853 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28854 (Fmodify_frame_parameters): Return a value.
28855
28856 * image.c (png_load): Comment-out var only used in commented-out code.
28857
28858 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28859 before passing it to mark_object.
28860
28861 * xfaces.c (internal_resolve_face_name): Return a value.
28862 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28863
28864 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28865 (x_icon): Comment-out var only used in commented-out code.
28866
288672007-08-29 Romain Francoise <romain@orebokech.com>
28868
28869 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28870 QUIT hasn't been provided.
28871
288722007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28873
28874 * callproc.c (child_setup, getenv_internal): Use the
28875 display-environment-variable and term-environment-variable frame params.
28876 (set_initial_environment): Initialise Vprocess_environment.
28877
28878 * config.in: Disable multi-keyboard support on a mac.
28879
28880 * frame.c (Qterm_environment_variable)
28881 (Qdisplay_environment_variable): New variables.
28882 (syms_of_frame): Intern and staticpro them.
28883 (Fmake_terminal_frame): Disable output method test.
28884
28885 * frame.h: Declare them here.
28886
28887 * macfns.c (x_set_mouse_color): Get rif from the frame.
28888 (x_set_tool_bar_lines): Don't use updating_frame.
28889 (mac_window): Add 2 new parameters for consistency with other systems.
28890 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28891 frame parameters following what is done in X11 and w32. Don't use
28892 FRAME_MAC_DISPLAY_INFO.
28893 (Fx_open_connection, start_hourglass): Remove window-system check.
28894 (x_create_tip_frame): Get the keyboard from the terminal.
28895
28896 * macmenu.c: Reorder includes.
28897 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28898
28899 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28900 terminal parameter.
28901 (x_clear_frame): Add a frame parameter.
28902 (note_mouse_movement): Get rif from the frame.
28903 (mac_term_init): Initialize the terminal.
28904 (mac_initialize): Make static and move terminal initialization ...
28905 (mac_create_terminal): ... to this new function.
28906
28907 * macterm.h (struct mac_display_info): Add terminal.
28908 (mac_initialize): Delete declaration.
28909
28910 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28911
28912 * sysdep.c: Comment out text after #endif.
28913
28914 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28915 is defined. Better initialize ttys in windows. Use terminal
28916 specific mouse_position_hook.
28917
28918 * termhooks.h (union display_info): Add mac_display_info.
28919
28920 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28921 Set the default minibuffer frame, window_system and the rest of the
28922 frame parameters following what is done in X11.
28923
28924 * w32term.c (w32_initialize): Make static.
28925
28926 * xselect.c (x_handle_selection_clear): Only access
28927 terminal->kboard when MULTI_KBOARD is defined.
28928
28929 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28930 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28931
289322007-08-29 Jason Rumney <jasonr@gnu.org>
28933
28934 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28935 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28936
28937 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28938 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28939
28940 * keyboard.c (restore_kboard_configuration): Only define when
28941 MULTI_KBOARD defined.
28942
28943 * makefile.w32-in: Update dependancies from Makefile.in.
28944 (OBJ1): Add terminal.$(O)
28945
28946 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28947 Don't define function body.
28948 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28949
28950 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28951
28952 * w32.c (request_sigio, unrequest_sigio): Remove.
28953
28954 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28955 (w32con_clear_frame, w32con_clear_end_of_line)
28956 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28957 (w32con_delete_glyphs, w32con_set_terminal_window)
28958 (scroll_line, w32_sys_ring_bell): Add frame arg.
28959 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28960 Add terminal arg.
28961 (PICK_FRAME): Remove.
28962 (w32con_write_glyphs): Use frame specific terminal coding.
28963 (one_and_only_w32cons): New global variable.
28964 (initialize_w32_display): Use it for storing hooks.
28965 (create_w32cons_output): New function.
28966
28967 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28968 arg a frame.
28969
28970 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28971 Set window_system.
28972 (x_set_tool_bar_lines): Don't use updating_frame.
28973 (Fx_create_frame): Set terminal and ref count.
28974 (Fx_open_connection): Remove window-system check.
28975
28976 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28977
28978 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28979 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28980 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28981 Add frame arg.
28982 (x_delete_terminal, w32_create_terminal): New functions.
28983 (w32_term_init): Create a terminal.
28984 (w32_initialize): Move terminal specific initialization to
28985 w32_create_terminal.
28986
28987 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28988 (w32_clear_rect, w32_clear_area): Use background from frame.
28989 (w32_display_info): Add terminal.
28990 (w32_sys_ring_bell, x_delete_display): Declare here.
28991
28992 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28993
28994 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28995
289962007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28997
28998 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28999 Fix get_named_tty calls for the controlling tty.
29000
290012007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
29002
194d44e7 29003 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
29004
290052007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
29006
29007 * term.c (tty_insert_glyphs): Add missing first parameter.
29008
290092007-08-29 Károly Lőrentey <karoly@lorentey.hu>
29010
29011 * buffer.c (Fbuffer_list, Fbury_buffer):
29012 Take frame->buried_buffer_list into account.
29013
29014 * cm.c (current_tty): New variable, for cmputc().
29015 (cmputc): Use it.
29016 (cmcheckmagic): Add tty parameter, look up terminal streams there.
29017 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
29018 (cmgoto): Add tty parameter. Pass it on to calccost().
29019 Use emacs_tputs() instead of tputs().
29020
29021 * cm.h (emacs_tputs): New macro to set current_tty, and then call
29022 tputs().
29023 (current_tty): New variable, for cmputc().
29024 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
29025
29026 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
29027 (internal_condition_case, internal_condition_case_1)
29028 (internal_condition_case_2): Don't abort when x_catching_errors.
29029
29030 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
29031 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
29032 prevent crashes caused by bogus longjmps in read_char.
29033
29034 * keymap.h (Fset_keymap_parent): Add EXFUN.
29035
29036 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
29037 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29038 Remove redundant definition.
29039
29040 * macfns.c (x_set_mouse_color, x_make_gc):
29041 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29042
29043 * w32term.c (x_free_frame_resources):
29044 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29045 (w32_initialize): Use the accessor macros for terminal characteristics.
29046
29047 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
29048 Use the accessor macros for terminal characteristics.
29049 * msdos.c (internal_terminal_init): Use the accessor macros for
29050 terminal characteristics.
29051 (ScreenVisualBell, internal_terminal_init):
29052 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29053
29054 * termopts.h (no_redraw_on_reenter): Declare.
29055
29056 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
29057 (mark_terminals, mark_ttys): Declare.
29058 (Fgarbage_collect): Call them.
29059 (mark_object): Mark buried_buffer_list.
29060
29061 * prefix-args.c: Include stdlib.h for exit.
29062
29063 * syssignal.h: Add comment.
29064
29065 * indent.c: Include stdio.h.
29066
29067 * window.h (Vinitial_window_system): Declare.
29068 (Vwindow_system): Delete declaration.
29069
29070 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29071
29072 * image.c (lookup_image): Don't initialize `c' until the xasserts
29073 have been run.
29074
29075 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29076 FRAME_FOREGROUND_PIXEL.
29077
29078 * print.c (print_preprocess): Don't lose print_depth levels while
29079 iterating.
29080
29081 * widget.c (update_from_various_frame_slots):
29082 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29083
29084 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29085 frames.
29086 (window_internal_height): Remove bogus make_number call.
29087 (init_window_once): Call make_terminal_frame with two zero parameters.
29088
29089 * fileio.c (Fread_file_name): Update comment.
29090
29091 * callint.c (Fcall_interactively):
29092 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29093 Make sure it is correctly unwound.
29094
29095 * xsmfns.c (x_session_close): New function.
29096
29097 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29098 Delete declarations.
29099
29100 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29101 (x_output): Remove background_pixel and foreground_pixel fields.
29102 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29103 (x_delete_device, x_session_close): Declare.
29104
29105 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29106 (read_filtered_event): Call `read_char' with a local
29107 `wrong_kboard_jmpbuf'.
29108
29109 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29110 Don't call single_kboard_state. Use FRAME_RIF.
29111
29112 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29113 systems.
29114
29115 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29116 (Fframe_with_environment, Fset_input_meta_mode)
29117 (Fset_quit_char): EXFUN.
29118 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29119 (init_sys_modes, reset_sys_modes): Update prototypes.
29120 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29121
29122 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29123 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29124 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29125 Delete declarations.
29126 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29127 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29128 New declarations.
29129
29130 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29131 already does that during init_display(). Call syms_of_keymap
29132 before syms_of_keyboard. Call `syms_of_terminal'.
29133 Call set_initial_environment, not set_process_environment.
29134 (shut_down_emacs): Call reset_all_sys_modes() instead of
29135 reset_sys_modes().
29136
29137 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29138 (internal_resolve_face_name, resolve_face_name_error): New functions.
29139 (resolve_face_name): Protect against loops and errors thrown by Fget.
29140 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29141 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29142
29143 * scroll.c: Replace CURTTY() with local variables throughout the
29144 file (where applicable).
29145 (calculate_scrolling, calculate_direct_scrolling)
29146 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29147 characteristics.
29148
29149 * keymap.c (Vfunction_key_map): Remove.
29150 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29151 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29152 (Vkey_translation_map): Remove.
29153 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29154 (Fdescribe_buffer_bindings)
29155 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29156 Update for terminal-local key-translation-map.
29157
29158 * Makefile.in (callproc.o): Update dependencies.
29159 (lisp, shortlisp): Add termdev.elc.
29160 (obj): Add terminal.o.
29161 (terminal.o): Add dependencies.
29162 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29163 (data.o, fns.o): Add termhooks.h dependency.
29164 (SOME_MACHINE_LISP): Add dnd.elc.
29165 (minibuf.o): Fix typo.
29166 Update dependencies.
29167
29168 * data.c (do_symval_forwarding, store_symval_forwarding)
29169 (find_symbol_value): Use the selected frame's keyboard, not
29170 current_kboard.
29171
29172 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29173 Vwindow_system.
29174
29175 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29176 Fmenu_bar_open.
29177 (syms_of_xmenu): Update defsubr.
29178 (mouse_position_for_popup, Fx_popup_menu)
29179 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29180 (set_frame_menubar, free_frame_menubar)
b97439ce 29181 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
29182 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29183 an X frame.
29184
29185 * xselect.c (x_own_selection): Abort if not an X frame.
29186 (some_frame_on_display): Check if it is an X frame.
29187 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29188
29189 * coding.c: Include frame.h and termhooks.h.
29190 (terminal_coding, keyboard_coding): Delete.
29191 (Fset_terminal_coding_system_internal)
29192 (Fset_keyboard_coding_system_internal)
29193 (Fkeyboard_coding_system)
29194 (Fterminal_coding_system): Add a terminal parameter.
29195 Get terminal_coding from the terminal.
29196 (init_coding_once): Don't call setup_coding_system here.
29197
29198 * dispextern.h (set_scroll_region, turn_off_insert)
29199 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29200 (tty_clear_end_of_line, tty_setup_colors)
29201 (delete_tty, updating_frame)
29202 (produce_special_glyphs, produce_glyphs, write_glyphs)
29203 (insert_glyphs): Remove.
29204 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29205 (tty_turn_off_highlight, get_tty_size): Add declaration.
29206 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29207
29208 * frame.h (enum output_method): Add output_initial.
29209 (struct x_output): Delete.
29210 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29211 Access foreground_pixel and background_pixel directly from the frame.
29212 (tty_display): Delete.
29213 (struct frame): Add buried_buffer_list, foreground_pixel,
29214 background_pixel and terminal. Delete kboard.
29215 (union output_data): Add tty.
29216 (FRAME_KBOARD): Get the kboard from the terminal.
29217 (FRAME_INITIAL_P): New macro.
29218 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29219 (Qterm_environment_variable, Qdisplay_environment_variable)
29220 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29221 New declarations.
29222
29223 * termchar.h (tty_output, tty_display_info): New structures.
29224 (tty_list): Declare.
29225 (FRAME_TTY, CURTTY): New macros.
29226 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29227 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29228 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29229 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29230
29231 * callproc.c: Include frame.h and termhooks.h, for terminal
29232 parameters.
29233 (add_env): New function.
29234 (child_setup): Use it.
29235 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29236 (getenv_internal): Fix get_terminal_param call.
29237 (Fgetenv_internal, egetenv): Update doc.
29238 (syms_of_callproc): Initialize Vprocess_environment to nil.
29239 Register and initialize them. Remove obsolete defvars. Update doc
29240 strings.
29241 (child_setup): Handle Vlocal_environment_variables.
29242 (getenv_internal): Add terminal parameter.
29243 Handle Vlocal_environment_variables.
29244 (Fgetenv_internal): Add terminal parameter.
29245 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29246 environment in a frame (not terminal) parameter. Update doc strings.
29247 (set_initial_environment): Rename from set_global_environment.
29248 Store Emacs environment in initial frame parameter.
29249
29250 * xdisp.c (redisplay_internal): Update references to
29251 `previous_terminal_frame'.
29252 (display_mode_line, Fformat_mode_line): Replace calls to
29253 `push_frame_kboard' with `push_kboard'.
29254 (get_glyph_string_clip_rects): Add extra parentheses and
29255 braces to prevent compiler warnings.
29256 (calc_pixel_width_or_height): Add xassert to check that the
29257 frame is alive. Don't call `lookup_image' on a termcap frame.
29258 (message2_nolog, message3_nolog, redisplay_internal)
29259 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29260 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29261 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29262 (Fx_display_pixel_width, Fx_display_pixel_height)
29263 (Fx_display_planes, Fx_display_color_cells)
29264 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29265 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29266 (Fx_display_backing_store, Fx_display_visual_class)
29267 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29268 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29269
29270 * xfns.c (x_set_foreground_color x_set_background_color)
29271 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29272 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29273 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29274 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29275 terminal that is being deleted.
29276 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29277 frame parameter, and make sure it overrides any user-supplied setting.
29278 (Fx_close_connection, Fx_synchronize): Unify argument names with
29279 the rest of the DEFUNs.
29280
29281 * dispnew.c (Fsend_string_to_terminal): Update call to
29282 `get_tty_terminal'.
29283 (Fredraw_frame, Fsend_string_to_terminal)
29284 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29285 FRAME_TERMCAP_P and FRAME_TTY.
29286 (window_change_signal): Don't believe width/height values that are
29287 impossibly small.
29288 (Vinitial_window_system): Rename from Vwindow_system.
29289 (termscript, Wcm, rif): Delete.
29290
29291 * termhooks.h (struct terminal): New struct containing the
29292 previously global text display hooks and new members NAME,
29293 DELETED and PARAM_ALIST.
29294 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29295 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29296 (FRAME_RIF): New macros.
29297 (get_terminal_param, get_device): New declarations.
29298 (termscript): Delete declaration.
29299
29300 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29301 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29302 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29303 FRAME_FOREGROUND_PIXEL.
29304 (x_fully_uncatch_errors): Disable definition.
29305 (x_scroll_bar_expose): Fix reference to foreground pixel.
29306 (XTread_socket): Disable loop on all X displays.
29307 (x_delete_terminal): Don't set terminal->deleted and let
29308 delete_terminal delete the frames on the terminal.
29309 (x_delete_display): Doc update to reflect changes in
29310 delete_terminal.
29311 (x_display_info) <terminal>: Move member earlier in the struct.
29312 (deleting_tty): Remove old variable.
29313 (Fsuspend_tty): Call clear_tty_hooks.
29314 (Fresume_tty, init_tty): Call set_tty_hooks.
29315 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29316 errors on X frames.
29317 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29318 (handle_one_xevent): Initialize `f' to NULL.
29319 (x_delete_terminal, x_create_terminal): New functions.
29320 (XTset_terminal_modes, XTreset_terminal_modes)
29321 (XTread_socket, x_connection_closed, x_term_init)
29322 (x_term_init, x_delete_display): Add terminal parameter.
29323 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29324 X connections.
29325
29326 * frame.c: Include termchar.h.
29327 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29328 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29329 (Qdisplay_environment_variable): New vars.
29330 (Fframep): Deal with output_initial.
29331 (Fframe-live-p): Doc fix.
29332 (Fwindow-system): New function.
29333 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29334 (make_terminal_frame): Don't create frames on a terminal that is
29335 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29336 (store_frame_param): Check for found_for_frame before calling XFRAME.
29337 (Fmake_terminal_frame): Handle NULL tty names correctly.
29338 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29339 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29340 frames to refer to a deleted frame in their 'environment parameter.
29341 (Fframe_with_environment): New function.
29342 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29343 (get_future_frame_param): New function.
29344 (Fmake_terminal_frame): Use it.
29345 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29346
29347 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29348 * sysdep.c (reset_sys_modes): Update for renames.
29349
29350 * keyboard.c (tty_read_avail_input): New function.
29351 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29352 (syms_of_keyboard): Defsubr them.
29353 (Fset_input_meta_mode, Fset_quit_char): New functions.
29354 (Fset_input_mode): Split to above functions.
29355 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29356 parameter. Use it in call to `read_char'.
29357 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29358 Set wrong_kboard_jmpbuf correctly in recursive calls.
29359 Use current_kboard to access Vkeyboard_translate_table.
29360 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29361 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29362 Update longjmp invocations. Remember the original current_kboard,
29363 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29364 changes it. Comment out unnecessary calls to
29365 `record_single_kboard_state' and `any_kboard_state'.
29366 Update recursive calls.
29367 (wrong_kboard_jmpbuf): Remove global variable.
29368 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29369 Handle deleted interrupted_kboards correctly; that is a legal
29370 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29371 and read_char calls. Abort if interrupted_kboard died in read_char.
29372 (any_kboard_state, single_kboard_state)
29373 (push_frame_kboard): Remove function.
29374 (pop_kboard): Switch out of single_kboard mode if the kboard has
29375 been deleted. Remove unused variable. Help debugging by not
29376 changing current_kboard unnecessarily. Set current_kboard to the
29377 kboard of the selected frame when the stored kboard object has
29378 been deleted before pop_kboard.
29379 (temporarily_switch_to_single_kboard): Change first parameter to a
29380 frame pointer. Throw an error when caller wants to change kboards
29381 while in single_kboard mode. Don't push_kboard if we weren't in
29382 single kboard state. Don't pop_kboard if we popped into any
29383 kboard state.
29384 (restore_kboard_configuration): Abort if pop_kboard changed the
29385 kboard in single_kboard mode. Call pop_kboard only after setting
29386 up single_kboard mode.
29387 (Frecursive_edit): Switch to single_kboard mode only in nested
29388 command loops.
29389 (cmd_error, command_loop, command_loop_1, timer_check):
29390 Comment out unnecessary call to `any_kboard_state' and
29391 `record_single_kboard_state'.
29392 (delete_kboard): Exit single_kboard mode if we have just deleted
29393 that kboard. Use FRAME_KBOARD.
29394 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29395 `fatal_error_signal'.
29396 (record_single_kboard_state): Don't push_kboard if we weren't in
29397 single kboard state. Don't pop_kboard if we popped into any
29398 kboard state.
29399 (push_frame_kboard): Rename to push_kboard.
29400 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29401 (read_avail_input): Read input from all terminals.
29402 (mark_kboards): Also mark Vkeyboard_translate_table.
29403 (kbd_buffer_store_event_hold): Simplify condition.
29404 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29405 (Vkeyboard_translate_table): Move to struct kboard.
29406 (init_kboard): Initialize Vkeyboard_translate_table.
29407 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29408 Vkeyboard_translate_table. Update doc strings. Update docs of
29409 local-function-key-map and function-key-map.
29410
29411 * terminal.c: New file.
29412
29413 * term.c: Include errno.h.
29414 (Vring_bell_function, device_list, initial_device)
29415 (next_device_id, ring_bell, update_begin, update_end)
29416 (set_terminal_window, cursor_to, raw_cursor_to)
29417 (clear_to_end, clear_frame, clear_end_of_line)
29418 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29419 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29420 (syms_of_term): Move their initialization to terminal.c.
29421 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29422 (Ftty_display_color_cells)
29423 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29424 (clear_tty_hooks, set_tty_hooks)
29425 (init_tty, maybe_fatal): New functions.
29426 (Ftty_type): Return nil if terminal is not on a tty instead of
29427 throwing an error. Doc update.
29428 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29429 Doc update. Initialize new subrs and variables.
29430 (delete_tty): Use terminal->deleted.
29431 (tty_set_terminal_modes): Rename from set_terminal_modes.
29432 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29433 (set_scroll_region): Rename to `tty_set_scroll_region'.
29434 (turn_on_insert): Rename to `tty_turn_on_insert'.
29435 (turn_off_insert): Rename to `tty_turn_off_insert'.
29436 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29437 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29438 (toggle_highligh): Rename to `tty_toggle_highlight'.
29439 (background_highlight): Rename to `tty_background_highlight'.
29440 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29441 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29442 (tty_set_scroll_region, tty_background_highlight)
29443 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29444 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29445 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29446 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29447 Add static modifier.
29448 (tty_reset_terminal_modes, tty_set_terminal_window)
29449 (tty_set_scroll_region, tty_background_highlight)
29450 (tty_highlight_if_desired, tty_cursor_to)
29451 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29452 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29453 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29454 renames.
29455
294562007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29457
29458 * keyboard.c: Qrtl is new.
29459 (parse_tool_bar_item): Handle :rtl keyword.
29460 (syms_of_keyboard): Intern :rtl keyword.
29461
29462 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29463
29464 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29465 so no Lisp code is executed.
29466 (file_for_image, find_rtl_image): New functions.
29467 (xg_get_image_for_pixmap): Use file_for_image.
29468 (update_frame_tool_bar): If direction is RTL, use RTL image if
29469 defined. Use Gtk stock images if defined.
29470
294712007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29472
29473 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29474 for nonexistent or zero-width glyph in composition glyph.
29475
294762007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29477
29478 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29479
29480 * xdisp.c (Finvisible_p): New function.
29481 (syms_of_xdisp): defsubr it.
29482
294832007-08-24 Juanma Barranquero <lekktu@gmail.com>
29484
29485 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29486 Doc fixes.
29487
294882007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29489
29490 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29491
294922007-08-24 Martin Rudalics <rudalics@gmx.at>
29493
29494 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29495 whether decoding has modified buffer contents.
29496
294972007-08-24 Jason Rumney <jasonr@gnu.org>
29498
29499 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29500 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29501 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29502 (init_svg_functions) [HAVE_NTGUI]: New function.
29503 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29504 (svg_load_image): Use them.
29505 (svg_load_image) [HAVE_NTGUI]: Implement background.
29506
295072007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29508
29509 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29510 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29511 (LIBX): Remove @RSVG_LIBS@.
29512 (LIBES): Add $(RSVG_LIBS).
29513
29514 * image.c (svg_load_image): Blend with specified background if exists.
29515 Use IMAGE_BACKGROUND. Add Mac OS Support.
29516
29517 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29518 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29519 Remove macros.
29520 [MAC_OSX] (socket_callback): Do nothing.
29521 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29522 ReceiveNextEvent.
29523 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29524 socket_callback.
29525 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29526
295272007-08-22 Glenn Morris <rgm@gnu.org>
29528
29529 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29530
295312007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29532
29533 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29534
29535 * image.c: Add support for SVG images. Some additional comments
29536 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29537 (svg_image_p): New function to test for SVG image.
29538 (svg_load): New function to load SVG image.
29539 (svg_load_image): New function, helper for svg_load.
29540 (Qsvg): New Lisp_object.
29541 (svg_keyword_index): New enum.
29542 (svg_format): New static `image_keyword' struct.
29543 (svg_type): New static `image_type' struct.
29544 (librsvg/rsvg.h): Include it.
29545
295462007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29547
29548 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29549
295502007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29551
29552 * lread.c (Qold_style_backquotes): New var.
29553 (syms_of_lread): Init and staticpro it.
29554 (load_warn_old_style_backquotes): New fun.
29555 (Fload): Use them to warn about old style backquotes.
29556 (end_of_file_error, Fload): Remove unused vars.
29557
29558 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29559
29560 * lread.c (Vold_style_backquotes): New var.
29561 (syms_of_lread): Init and export it to Elisp.
29562 (read1): Set it when we find an old-style (back)quote.
29563
295642007-08-22 Jason Rumney <jasonr@gnu.org>
29565
29566 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29567
295682007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29569
29570 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29571
295722007-08-19 Richard Stallman <rms@gnu.org>
29573
29574 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29575
295762007-08-19 Andreas Schwab <schwab@suse.de>
29577
29578 * alloc.c (pure): Round PURESIZE up.
29579
295802007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29581
29582 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29583 active frame.
29584
295852007-08-16 Richard Stallman <rms@gnu.org>
29586
29587 * eval.c (Fcommandp): Add parens to clarify.
29588
29589 * minibuf.c (Fall_completions): Use enum for type of table.
29590
29591 * emacs.c (USAGE2): Improve text.
29592
295932007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29594
29595 * term.c (tty_default_color_capabilities): Declare static
29596 variables in file scope, to avoid HPUX compiler problem.
29597
295982007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29599
29600 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29601 to gtk_toolbar_insert.
29602
296032007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29604
29605 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29606
29607 * insdel.c (reset_var_on_error): New fun.
29608 (signal_before_change, signal_after_change):
29609 Use it to reset (after|before)-change-functions to nil in case of error.
29610 Bind inhibit-modification-hooks to t.
29611 Don't bind (after|before)-change-functions to nil while they run.
29612
296132007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29614
29615 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29616 filling pixmap with stippled background.
29617
296182007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29619
29620 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29621 Don't use invisible frame as parent window for repositioning.
29622
296232007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29624
29625 * print.c (new_backquote_output): Rename from old_backquote_output.
29626 (print): Inverse its logic (according to its name) so as to match the
29627 behavior of new_backquote_flag in lread.c.
29628
296292007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29630
29631 * gmalloc.c (posix_memalign): New function.
29632
29633 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29634 ActivateControl/DeactivateControl here.
29635 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29636 frame-notice-user-settings is non-nil.
29637 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29638 for kEventParamFMFontStyle.
29639 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29640 mac_pass_command_to_system and mac_pass_control_to_system here.
29641 (XTread_socket): Call ActivateControl/DeactivateControl here.
29642 (XTread_socket) [TARGET_API_MAC_CARBON]:
29643 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29644 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29645 for window repositioning.
29646
296472007-08-08 Glenn Morris <rgm@gnu.org>
29648
29649 * Replace `iff' in doc-strings and comments.
29650
296512007-08-07 Chong Yidong <cyd@stupidchicken.com>
29652
29653 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29654
296552007-08-07 Martin Rudalics <rudalics@gmx.at>
29656
29657 * fileio.c (Finsert_file_contents): Run format-decode and
29658 after_insert_file_functions on entire buffer when REPLACE is
29659 non-nil and inhibit modification_hooks and point_motion_hooks.
29660 For consistency, run after_insert_file_functions iff something
29661 got inserted. Move signal_after_change and update_compositions
29662 after code running after_insert_file_functions. Make sure that
29663 undo_list doesn't record intermediate steps of the decoding process.
29664
296652007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29666
29667 * emacs.c (main)
29668 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29669 Call malloc_enable_thread on interactive startup.
29670
29671 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29672 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29673 [USE_PTHREAD]: Conditionalize with it.
29674 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29675 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29676 New functions.
29677
296782007-08-06 Chong Yidong <cyd@stupidchicken.com>
29679
29680 * xdisp.c (redisplay_window): When restoring original buffer
29681 position, make sure it is still valid.
29682
29683 * image.c (png_load): Ignore png-supplied background color.
29684
296852007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29686
29687 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29688 Use kCFAbsoluteTimeIntervalSince1970.
29689
29690 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29691 New variable.
29692 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29693 event loop should be quit.
29694 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29695 Quit dialog event loop if quit_dialog_event_loop is set.
29696
29697 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29698 (Selection): New typedef. Use instead of ScrapRef.
29699 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29700 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29701 (mac_clear_selection): Rename from clear_scrap.
29702 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29703 scrap_has_target_type. All uses changed.
29704 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29705 (mac_selection_has_target_p): New functions.
29706 (mac_put_selection_value): Rename from put_scrap_string.
29707 (mac_get_selection_value): Rename from get_scrap_string.
29708 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29709 (put_scrap_private_timestamp, scrap_has_target_type)
29710 (get_scrap_private_timestamp): Remove functions.
29711 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29712 (x_own_selection, x_get_local_selection):
29713 Use mac_valid_selection_value_p.
29714 (x_own_selection): Don't use put_scrap_private_timestamp.
29715 Record OWNERSHIP-INFO into Vselection_alist instead.
29716 (x_get_local_selection): Don't check type if request is local.
29717 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29718 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29719
297202007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29721
29722 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29723 add comment explaining why.
29724
297252007-08-03 Richard Stallman <rms@gnu.org>
29726
29727 * fileio.c (Fvisited_file_modtime): Use make_time.
29728
297292007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29730
29731 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29732 build.
29733
297342007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29735
29736 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29737
297382007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29739
29740 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29741
297422007-07-30 Richard Stallman <rms@gnu.org>
29743
29744 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29745
297462007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29747
29748 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29749
297502007-07-28 Nick Roberts <nickrob@snap.net.nz>
29751
29752 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29753 remote default-directory.
29754
29755 * buffer.c (mode-line-format): Update doc string.
29756
297572007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29758
29759 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29760 scroll bar gap.
29761 (x_scroll_bar_create): Set bar->fringe_extended_p.
29762 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29763 on frame edge. Check fringe background extension. Don't clear
29764 extended fringe background area.
29765
29766 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29767 (w32_fill_area): Enclose multiple statements with do ... while (0).
29768
29769 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29770 Extend fringe background to scroll bar gap.
29771 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29772 Set bar->fringe_extended_p.
29773 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29774 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29775 background extension. Don't clear extended fringe background area.
29776
29777 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29778 New member fringe_extended_p.
29779
297802007-07-25 Glenn Morris <rgm@gnu.org>
29781
29782 * Relicense all FSF files to GPLv3 or later.
29783
29784 * COPYING: Switch to GPLv3.
29785
297862007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29787
29788 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29789
29790 * data.c (Finteractive_form): Check for the presence of an
29791 `interactive-form' symbol property more thoroughly.
29792
29793 * data.c (Finteractive_form): Use an `interactive-form' property if
29794 present, analogous to the function-documentation property.
29795
297962007-07-24 Jason Rumney <jasonr@gnu.org>
29797
29798 * w32fns.c (x_real_positions): Get real position from OS instead of
29799 calculating it.
29800
298012007-07-23 Jason Rumney <jasonr@gnu.org>
29802
29803 * filelock.c (current_lock_owner): Allow for @ sign in username.
29804
298052007-07-22 Nick Roberts <nickrob@snap.net.nz>
29806
29807 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29808 remote default-directory.
29809
29810 * buffer.c (mode-line-format): Describe above case in doc string.
29811
298122007-07-20 Eli Zaretskii <eliz@gnu.org>
29813
29814 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29815 Define if not defined.
29816
298172007-07-18 Jason Rumney <jasonr@gnu.org>
29818
29819 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29820
298212007-07-18 Richard Stallman <rms@gnu.org>
29822
29823 * data.c (Fsetq_default): Doc fix.
29824
29825 * eval.c (Fsetq): Doc fix.
29826
298272007-07-18 Juanma Barranquero <lekktu@gmail.com>
29828
29829 * coding.c (Ffind_operation_coding_system):
29830 * eval.c (For, Fand): Doc fixes.
29831 Reported by Johan Bockgård.
29832
298332007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29834
29835 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29836
29837 * xterm.h: Declare x_ewmh_activate_frame.
29838
29839 * xterm.c (x_ewmh_activate_frame): New function.
29840 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29841
298422007-07-17 Martin Rudalics <rudalics@gmx.at>
29843
29844 * window.c (Fdisplay_buffer): If largest or LRU window is the
29845 only window, split it even if it is not eligible for splitting.
29846 This restores the original behavior broken by the 2007-07-15
29847 change.
29848
298492007-07-17 Glenn Morris <rgm@gnu.org>
29850
29851 * abbrev.c (abbrev_check_chars): New function.
29852 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29853 Call abbrev_check_chars to check abbrev characters are word
29854 constituents. Doc fix.
29855
298562007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29857
29858 * process.c (Fstart_process, Fmake_network_process)
29859 (read_process_output): Fix up last changes.
29860
298612007-07-16 Eli Zaretskii <eliz@gnu.org>
29862
29863 * makefile.w32-in (clean): Don't delete *~.
29864
298652007-07-16 Andreas Schwab <schwab@suse.de>
29866
29867 * window.c (Fdisplay_buffer): Use NILP.
29868 (Fset_window_scroll_bars): Likewise.
29869
298702007-07-15 Martin Rudalics <rudalics@gmx.at>
29871
29872 * window.c (window_min_size_2): New function.
29873 (window_min_size_1, size_window, Fdisplay_buffer)
29874 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29875 windows without mode- or header-lines when window-min-height is
29876 too small.
29877 (size_window): Reset nodelete_p after testing it, following an
29878 earlier note by Kim F. Storm.
29879 (display_buffer): Do not set split_height_threshold to twice the
29880 value of window_min_height to avoid changing the value of a
29881 customizable variable. Rather explicitly check whether the
29882 height of the window that shall be splitted is at least as large
29883 as split_height_threshold.
29884 (Fwindow_full_width_p): New defun.
29885 (syms_of_window): Defsubr it.
29886
29887 * window.h: Add EXFUN for Fwindow_full_width_p.
29888
298892007-07-14 Jason Rumney <jasonr@gnu.org>
29890
29891 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29892
298932007-07-14 Richard Stallman <rms@gnu.org>
29894
29895 * eval.c (maybe_call_debugger): New function.
29896 (find_handler_clause): Use maybe_call_debugger.
29897 Call it when the handler says `debug'.
29898 Eliminate DEBUGGER_VALUE_PTR.
29899 (Fsignal): Eliminate debugger_value.
29900 (Qdebug): New variable.
29901 (syms_of_eval): Initialize it.
29902
299032007-07-14 Juanma Barranquero <lekktu@gmail.com>
29904
29905 * eval.c (Fprogn):
29906 * keyboard.c (Ftrack_mouse):
29907 * print.c (Fwith_output_to_temp_buffer):
29908 * window.c (Fsave_window_excursion): Doc fix.
29909
299102007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29911
29912 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29913
299142007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29915
29916 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29917 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29918 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29919 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29920 Remove unused encoding_carryover.
29921 * process.c: Adjust all functions accordingly.
29922
299232007-07-12 Richard Stallman <rms@gnu.org>
29924
29925 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29926
299272007-07-11 Jason Rumney <jasonr@gnu.org>
29928
29929 * makefile.w32-in (LIBS): Include OLE32.
29930
29931 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29932 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29933
299342007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29935
29936 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29937 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29938 from a Lisp_Object into a bare pointer.
29939 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29940 Adjust the code correspondingly.
29941
29942 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29943
29944 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29945 (term_show_mouse_face): Remove unused var `j'.
29946 (handle_one_term_event): Remove unused vars `i' and `j'.
29947 Don't cast return value of ttyname since it's not necessary.
29948
299492007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29950
29951 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29952 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29953
29954 * fns.c (map_char_table): Use an array of int for `indices' rather than
29955 an array of Lisp_Objects (which are only ever integers anyway).
29956 (Fmap_char_table): Update caller.
29957 * lisp.h: Update prototype.
29958 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29959 * fontset.c (Ffontset_info):
29960 * casetab.c (set_case_table): Update callers.
29961
29962 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29963
29964 * keymap.c (struct accessible_keymaps_data)
29965 (struct where_is_internal_data): New structures.
29966 (accessible_keymaps_1, where_is_internal_1): Use them to change
29967 interface to adhere to the one used by map_keymap.
29968 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29969 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29970
29971 * keymap.h (map_keymap_function_t): More informative prototype.
29972
299732007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29974
29975 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29976 (looking_at_1): Don't change search_regs and last_thing_searched
29977 if `inhibit-changing-match-data' is non-nil.
29978 (string_match_1, search_buffer, set_search_regs): Likewise.
29979 (syms_of_search): Add Lisp level definition for
29980 `inhibit-changing-match-data' and set it to nil.
29981 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29982 start and end of the match, instead of using values in search_regs.
29983
299842007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29985
29986 * minibuf.c (Fcompleting_read): New value `confirm-only'
29987 for `require-match'.
29988
299892007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29990
29991 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29992 part of the 2007-06-27 change to syms_of_fileio.
29993
299942007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29995
29996 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29997 Check WINDOWP before using XWINDOW. Consolidate return statements.
29998
299992007-06-27 Richard Stallman <rms@gnu.org>
30000
30001 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
30002
300032007-06-27 Juanma Barranquero <lekktu@gmail.com>
30004
30005 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
30006
300072007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30008
30009 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
30010 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
30011 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
30012 (_free_internal, memalign): Use them.
30013 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
30014 Initialize to PTHREAD_MUTEX_INITIALIZER.
30015 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
30016 (morecore_nolock): Rename from morecore. All uses changed.
30017 Use only nolock versions of internal allocation functions.
30018 (_malloc_internal_nolock, _realloc_internal_nolock)
30019 (_free_internal_nolock): New functions created from
30020 _malloc_internal, _realloc_internal, and _free_internal.
30021 (_malloc_internal, _realloc_internal, _free_internal): Use them.
30022 Copy hook value to automatic variable before its use.
30023 (memalign): Copy hook value to automatic variable before its use.
30024
300252007-06-26 Kenichi Handa <handa@m17n.org>
30026
30027 * coding.c (Ffind_operation_coding_system): Docstring improved.
30028 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
30029
300302007-06-25 David Kastrup <dak@gnu.org>
30031
30032 * keymap.c (Fcurrent_active_maps): Add `position' argument.
30033 (Fwhere_is_internal): Adjust call to `current-active-maps' to
30034 cater for additional parameter.
30035
30036 * keymap.h: Adjust number of parameters to `current-active-maps'.
30037
30038 * doc.c (Fsubstitute_command_keys): Adjust call of
30039 `current-active-maps'.
30040
300412007-06-25 David Kastrup <dak@gnu.org>
30042
30043 * callint.c (Fcall_interactively): Make the parsing of interactive
30044 specs somewhat more readable.
30045
300462007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30047
30048 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
30049 to scroll bar gap also when bitmap fills fringe. Draw only foreground
30050 if extended background has already been filled.
30051
300522007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30053
30054 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
30055 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
30056
30057 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
30058 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
30059 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
30060 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
30061 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
30062 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
30063 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
30064 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30065 Run timers during dialog popup.
30066 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30067
300682007-06-21 Jason Rumney <jasonr@gnu.org>
30069
30070 * image.c (convert_mono_to_color_image): Swap fore and background.
30071
300722007-06-20 Jason Rumney <jasonr@gnu.org>
30073
30074 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30075 (w32_free_bdf_font): Unmap memory not handle.
30076
300772007-06-20 Sam Steingold <sds@gnu.org>
30078
30079 * gmalloc.c (__morecore): Fix the declaration to comply with the
30080 definition.
30081
300822007-06-20 Juanma Barranquero <lekktu@gmail.com>
30083
30084 * w32term.c (w32_delete_display): Remove leftover declaration.
30085 (w32_define_cursor, w32_initialize): Make static.
30086
30087 * w32.c (_wsa_errlist): Fix typo in error message.
30088 (init_environment): Ignore any environment variable from the
30089 registry having a null value.
30090
300912007-06-20 Glenn Morris <rgm@gnu.org>
30092
30093 * Makefile.in (LIBGIF): Default to -lgif.
30094
300952007-06-17 Jason Rumney <jasonr@gnu.org>
30096
30097 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30098 unicode strings.
30099
301002007-06-16 Juanma Barranquero <lekktu@gmail.com>
30101
30102 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30103 Fix typo in docstring.
30104
301052007-06-16 Eli Zaretskii <eliz@gnu.org>
30106
30107 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30108 and their keybindings.
30109
301102007-06-15 Chong Yidong <cyd@stupidchicken.com>
30111
30112 * composite.c (update_compositions): Fix last fix.
30113
301142007-06-14 Jason Rumney <jasonr@gnu.org>
30115
30116 * w32.c (get_process_times_fn): New function pointer.
30117 (globals_of_w32): Intialize it if present in kernel32.dll.
30118 (w32_get_internal_run_time): New function.
30119
30120 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30121
301222007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30123
30124 * composite.c (update_compositions): Check the validness of
30125 compositions.
30126
301272007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30128
30129 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30130 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30131
30132 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30133 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30134
30135 * macgui.h (USE_MAC_TOOLBAR): New define.
30136
30137 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30138 Return immediately unless popup is activated.
30139
30140 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30141 background to scroll bar gap.
30142 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30143 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30144 scroll bars on frame edge. Check fringe background extension.
30145 Don't clear extended fringe background area.
30146 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30147 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30148 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30149 [USE_MAC_TOOLBAR]: New macros.
30150 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30151 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30152 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30153 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30154 [USE_MAC_TOOLBAR]: New functions.
30155 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30156 manually if previous repositioning has failed.
30157 (mac_handle_keyboard_event): Use precomputed event kind.
30158 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30159 as tool bar item click. Handle mouse movement over tool bar items.
30160
30161 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30162 toolbar_win_gravity.
30163 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30164 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30165 Add externs.
30166
30167 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30168 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30169
301702007-06-14 Chong Yidong <cyd@stupidchicken.com>
30171
30172 * image.c (search_image_cache): Remove unused variable.
30173
301742007-06-13 Chong Yidong <cyd@stupidchicken.com>
30175
30176 * xfns.c, xmenu.c: Link to xaw3d if available.
30177
301782007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30179
30180 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30181 frame_foreground and frame_background.
30182
30183 * image.c (lookup_image): Save frame foreground and background colors.
30184 (search_image_cache): Check if saved and current frame colors match.
30185
301862007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30187
30188 * regex.c (regex_compile): Remove the `regnum' counter.
30189 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30190
301912007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30192
30193 * term.c: Include intervals.h to declare Fget_text_property.
30194
301952007-06-10 Jason Rumney <jasonr@gnu.org>
30196
30197 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30198
301992007-06-08 Juanma Barranquero <lekktu@gmail.com>
30200
30201 * callint.c (Fcall_interactively):
30202 * editfns.c (Fdelete_and_extract_region):
30203 * fileio.c (Fread_file_name):
30204 * fns.c (Fmapconcat):
30205 * keyboard.c (cmd_error_internal):
30206 * keymap.c (Fkey_description):
30207 * lread.c (openp):
30208 * minibuf.c (read_minibuf):
30209 * search.c (wordify):
30210 * sunfns.c (sel_read):
30211 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30212 * xfns.c (x_default_scroll_bar_color_parameter):
30213 * xmenu.c (menu_help_callback):
30214 * xselect.c (Fx_get_atom_name):
30215 * xterm.c (x_term_init): Use empty_unibyte_string.
30216
302172007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30218
30219 * alloc.c (init_strings): Initialize canonical empty strings.
30220 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30221 canonical empty string when the requested size is 0.
30222
30223 * emacs.c (empty_unibyte_string): Rename from empty_string.
30224 (empty_multibyte_string): New canonical empty string.
30225 (syms_of_emacs): Don't initialize empty_string.
30226
30227 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30228 string, if appropriate.
30229 (empty_unibyte_string, empty_multibyte_string): New externs.
30230 (empty_string): Remove extern.
30231
30232 * lread.c (syms_of_lread): Use empty_unibyte_string.
30233
302342007-06-07 Jason Rumney <jasonr@gnu.org>
30235
30236 * s/ms-w32.h: Don't define HAVE_TZNAME.
30237
30238 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30239
302402007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30241
30242 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30243
30244 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30245 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30246
30247 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30248 Don't call next handler.
30249 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30250 Remove argument. Install handler to application.
30251 (set_frame_menubar): Don't change deep_p.
30252 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30253 FRAME_OUTER_TO_INNER_DIFF_Y.
30254 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30255 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30256 [HAVE_DIALOGS]: New macros.
30257 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30258 Use them.
30259 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30260
30261 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30262 init_service_handler. All callers changed. Return OSStatus value.
30263
30264 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30265 All callers changed so as not to call SetPortWindowPort.
30266 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30267 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30268 mac_draw_string_common.
30269 (mac_draw_image_string_qd): Likewise.
30270 (mac_draw_string_common): Use them. Add INLINE.
30271 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30272 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30273 GetGlobalMouse.
30274 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30275 and FRAME_OUTER_TO_INNER_DIFF_Y.
30276 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30277 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30278 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30279 repositioning window to mac_handle_window_event.
30280 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30281 saving window location to mac_handle_window_event
30282 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30283 (install_menu_target_item_handler): Remove argument in extern.
30284 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30285 Also accept command events.
30286 (do_keystroke): New function created from XTread_socket.
30287 (init_command_handler): Remove functions.
30288 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30289 and save window location by kEventWindowShowing and kEventWindowHiding
30290 handlers here. Don't call next handler for window state change and
30291 focus events.
30292 (mac_handle_application_event, mac_handle_keyboard_event)
30293 [TARGET_API_MAC_CARBON]: New functions.
30294 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30295 kEventWindowShowing and kEventWindowHiding events. Move installation
30296 of mouse, font, text input and menu target item handlers to
30297 install_application_handler.
30298 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30299 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30300 New function.
30301 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30302 Register it.
30303 (XTread_socket) [TARGET_API_MAC_CARBON]:
30304 Consolidate SendEventToEventTarget calls.
30305 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30306 Move application activation handler to mac_handle_application_event.
30307 Move keyboard handler to mac_handle_keyboard_event.
30308 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30309 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30310 init_command_handler. Call install_application_handler.
30311
30312 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30313 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30314
303152007-06-07 Glenn Morris <rgm@gnu.org>
30316
30317 * emacs.c (main): Use `emacs-copyright' in --version output.
30318
303192007-06-06 Chong Yidong <cyd@stupidchicken.com>
30320
30321 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30322
303232007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30324
30325 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30326
30327 * macgui.h: Replace WindowPtr with WindowRef.
30328
30329 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30330 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30331 Replace ControlHandle with ControlRef.
30332 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30333
30334 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30335 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30336 Replace ControlHandle with ControlRef.
30337 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30338 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30339
30340 * macterm.h (struct scroll_bar): Rename member control_handle_low
30341 and control_handle_high to control_ref_low and control_ref_high.
30342 All uses changed.
30343 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30344 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30345 respectively. All uses changed.
30346 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30347 (install_window_handler, remove_window_handler): Replace WindowPtr
30348 with WindowRef in externs.
30349
303502007-06-05 Juanma Barranquero <lekktu@gmail.com>
30351
30352 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30353
303542007-06-03 Nick Roberts <nickrob@snap.net.nz>
30355
30356 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30357
30358 * frame.c (Fmouse_position, Fmouse_pixel_position):
30359 Condition on HAVE_GPM too.
30360
30361 * term.c (term_mouse_highlight): Remove unused variables.
30362 (Fterm_open_connection): Set gpm_zerobased to 1.
30363 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30364 Use zero based co-ordinates.
30365 (handle_one_term_event): Report a drag as mouse movement too.
30366
30367 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30368
303692007-06-03 Chong Yidong <cyd@stupidchicken.com>
30370
30371 * image.c (search_image_cache): New function. Require background
30372 color match if background color is unspecified in the image spec.
30373 (uncache_image, lookup_image): Use it.
30374
303752007-06-01 Juanma Barranquero <lekktu@gmail.com>
30376
30377 * window.c (Fshrink_window): Reflow docstring.
30378
303792007-06-02 Chong Yidong <cyd@stupidchicken.com>
30380
30381 * Version 22.1 released.
30382
303832007-06-01 Richard Stallman <rms@gnu.org>
30384
30385 * xfns.c (x_encode_text): Add GCPRO.
30386
303872007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30388
30389 * xfns.c (x_set_name_internal): Save encoded name before
30390 x_encode_text in case string data is relocated.
30391
303922007-05-31 Richard Stallman <rms@gnu.org>
30393
30394 * buffer.c (syms_of_buffer): Doc fix.
30395
303962007-05-30 Nick Roberts <nickrob@snap.net.nz>
30397
30398 * sysdep.c (init_sys_modes): Add rather than replace with
30399 O_NONBLOCK.
30400
30401 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30402 term_mouse_moveto.
30403
30404 * termhooks.h (term_mouse_moveto): New extern.
30405
30406 * term.c (mouse_face_window): Rename...
30407 (Qmouse_face_window): ...to this.
30408 (term_show_mouse_face, term_clear_mouse_face)
30409 (term_mouse_highlight): Use Qmouse_face_window.
30410 (term_mouse_moveto): New function.
30411 (term_mouse_position): Make it work.
30412 (syms_of_term): Uncomment assignment to mouse_position_hook.
30413 Staticpro Qmouse_face_window.
30414
304152007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30416
30417 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30418 around current_column call.
30419
304202007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30421
30422 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30423 * xdisp.c (next_element_from_buffer):
30424 * window.c (delete_window):
30425 * term.c (term_mouse_highlight):
30426 * msdos.c (getdefdir):
30427 * macterm.c (mac_create_bitmap_from_bitmap_data)
30428 (init_font_name_table):
30429 * fns.c (Fsxhash):
30430 * data.c (Fmake_local_variable):
30431 * ccl.c (ccl_driver): Likewise.
30432
304332007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30434
30435 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30436 Call mac_wakeup_from_rne on window size change.
30437
304382007-05-25 Chong Yidong <cyd@stupidchicken.com>
30439
30440 * image.c (uncache_image): Fix typo.
30441
304422007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30443
30444 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30445
304462007-05-22 Richard Stallman <rms@gnu.org>
30447
30448 * xterm.c (x_connection_closed): Remove NO_RETURN.
30449
304502007-05-22 Martin Rudalics <rudalics@gmx.at>
30451
30452 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30453
304542007-05-21 Chong Yidong <cyd@stupidchicken.com>
30455
30456 * image.c (uncache_image): New function.
30457 (Fimage_refresh): New function.
30458
304592007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30460
30461 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30462
304632007-05-20 Nick Roberts <nickrob@snap.net.nz>
30464
30465 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30466 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30467
304682007-05-20 Nick Roberts <nickrob@snap.net.nz>
30469
30470 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30471 conditional on [HAVE_GPM_H].
30472
304732007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30474
30475 * syntax.c (skip_chars): Update syntax-table only after we checked that
30476 the new location is valid.
30477
304782007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30479
30480 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30481 mac_get_window_bounds.
30482
304832007-05-20 Nick Roberts <nickrob@snap.net.nz>
30484
30485 * Makefile.in (LIBGPM): Allow it to be set from configure.
30486 If set then link Emacs with it.
30487
30488 * config.in: Regenerate.
30489
30490 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30491 New externs.
30492
30493 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30494 Include gpm.h.
30495 (handle_one_term_event, term_gpm): New externs.
30496
30497 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30498 and allow it to be interrupted by SIGIO.
30499
30500 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30501 (wait_reading_process_output): Wait on gpm_fd too.
30502 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30503 (add_gpm_wait_descriptor_called_flag): New variable.
30504 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30505
30506 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30507 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30508 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30509 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30510 (make_lispy_event): Add case GPM_CLICK_EVENT.
30511 (read_avail_input): Handle mouse input.
30512
30513 * term.c (write_glyphs_with_face): New function.
30514 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30515 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30516 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30517 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30518 (last_mouse_x, last_mouse_y): New variables.
30519 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30520 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30521 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30522 (Fterm_close_connection): New functions.
30523 (term_init): Initialise mouse_face_window.
30524
305252007-05-19 Chong Yidong <cyd@stupidchicken.com>
30526
30527 * xdisp.c (redisplay_window): If first window line is a
30528 continuation line, recompute the new window start instead of
30529 recentering.
30530
305312007-05-18 Glenn Morris <rgm@gnu.org>
30532
30533 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30534 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30535
305362007-05-17 Glenn Morris <rgm@gnu.org>
30537
30538 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30539
305402007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30541
30542 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30543 dead key repeat and up events.
30544
305452007-05-14 Chong Yidong <cyd@stupidchicken.com>
30546
30547 * image.c (pbm_load): Check image size for monochrome pbm.
30548
305492007-05-13 Chong Yidong <cyd@stupidchicken.com>
30550
30551 * xterm.c (XTread_socket): Revert last change.
30552
305532007-05-12 Chong Yidong <cyd@stupidchicken.com>
30554
30555 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30556
30557 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30558
305592007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30560
30561 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30562 mixup (YAILOM).
30563
305642007-05-07 Andreas Schwab <schwab@suse.de>
30565
30566 * keymap.c (Flookup_key): Fix typo in last change.
30567
305682007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30569
30570 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30571 mapping for unibyte strings.
30572
305732007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30574
30575 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30576 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30577
305782007-04-29 Richard Stallman <rms@gnu.org>
30579
30580 * insdel.c (replace_range): For undo, record insertion first.
30581
305822007-04-29 Andreas Schwab <schwab@suse.de>
30583
30584 * lisp.h (VECSIZE): Use OFFSETOF.
30585
305862007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30587
30588 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30589 disabled lines.
30590
305912007-04-28 Richard Stallman <rms@gnu.org>
30592
30593 * lread.c (read_escape): In a string, \s is always space.
30594
305952007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30596
30597 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30598
30599 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30600 submenu for menu bar items.
30601
30602See ChangeLog.10 for earlier changes.
30603
30604;; Local Variables:
30605;; coding: utf-8
aac0c6e3
MR
30606;; End:
30607
73b0cd50 30608 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
30609
30610 This file is part of GNU Emacs.
30611
30612 GNU Emacs is free software: you can redistribute it and/or modify
30613 it under the terms of the GNU General Public License as published by
30614 the Free Software Foundation, either version 3 of the License, or
30615 (at your option) any later version.
30616
30617 GNU Emacs is distributed in the hope that it will be useful,
30618 but WITHOUT ANY WARRANTY; without even the implied warranty of
30619 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30620 GNU General Public License for more details.
30621
30622 You should have received a copy of the GNU General Public License
30623 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.